@xysfe/actui 1.11.50 → 1.11.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/Picker/index.js","@xysfe/actui/es/assets/img/redCircle.png","@xysfe/actui/es/assets/img/purpleCircle.png","@xysfe/actui/es/assets/img/grayCircle.png","@xysfe/actui/es/assets/img/cps-orangeCircle.png","@xysfe/actui/es/assets/img/cps-redCircle.png","@xysfe/actui/es/assets/img/cps-grayCircle.png"],e):"object"==typeof exports?exports.GoldFinanceChart=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):t.GoldFinanceChart=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/Picker/index.js"],t["@xysfe/actui/es/assets/img/redCircle.png"],t["@xysfe/actui/es/assets/img/purpleCircle.png"],t["@xysfe/actui/es/assets/img/grayCircle.png"],t["@xysfe/actui/es/assets/img/cps-orangeCircle.png"],t["@xysfe/actui/es/assets/img/cps-redCircle.png"],t["@xysfe/actui/es/assets/img/cps-grayCircle.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s,l){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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="../es",e(e.s=2089)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var i=n(31)("wks"),r=n(25),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},10:function(t,e,n){var i=n(4),r=n(41),o=n(39),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},11:function(t,e){t.exports={}},111:function(t,e,n){t.exports={default:n(117),__esModule:!0}},117:function(t,e,n){var i=n(2),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1240:function(t,e,n){"use strict";var i=n(146),r=n.n(i),o=n(130),a=n.n(o),s=n(552),l=n(2091),u=n(2098),h=n(2105),c=n(845),p=n.n(c);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:u.a,GoldCostTable:h.a,goldPicker:p.a},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean},unit:{default:"周岁",type:String},note:{default:"",type:String},selectDefaultVal:{default:10,type:Number},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}},notShowLineTypes:{type:Array,default:function(){return[]}},benefitBtnShow:{type:Boolean,default:!0}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.e)(this.chartConfig)))return!1;for(var t=0,e=0,n=0,i=0;i<this.chartConfig.length;i++){var r=this.chartConfig[i];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(n+=1))}return 1===t&&e>=1&&1===n},findTablesIndex:function(t,e){if(Object(s.e)(e))for(var n=0;n<e.length;n++)if(Number(e[n])===Number(t))return n},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,n=void 0,i=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,n=a,i=o}),{firstParamColsType:e,secondParamColsType:n,operator:i}},getExpressionData:function(t,e,n){var i=this.analysisExpression(t),r=i.firstParamColsType,o=i.secondParamColsType,a=i.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(s=this.findTablesIndex(r,n.colsType),l=this.findTablesIndex(o,n.colsType),void 0!==s&&void 0!==l)return n.rows.forEach(function(t,e){var n=void 0;switch(a){case"+":n=t[s]+t[l];break;case"-":n=t[s]-t[l];break;case"/":n=t[s]/t[l];break;case"*":n=t[s]*t[l]}u.push(Number(n).toFixed(1))}),u}},initConfig:function(t,e){var n=this;if(t&&e){for(var i=[],r=[],o=[],u=this.isCps?Object(s.b)(l.b):Object(s.b)(l.a),h=Object(s.b)(u.showType2),c=Object(s.b)(u.showType3),p=t,d=Array.isArray(p),f=0,p=d?p:a()(p);;){var g;if(d){if(f>=p.length)break;g=p[f++]}else{if(f=p.next(),f.done)break;g=f.value}var y=g;(function(r){var a=void 0,p=r.colsType,d=n.findTablesIndex(p,e.colsType);if(!d)return"continue";var f=Number(r.showType),g=r.name||l.c[p],y=r.titleName||r.name||l.c[p],m=n.getExpressionData(r.tipsExpression,t,e),v=r.lineStyle,_=r.boxConfig;if(!(2!==f||v&&_)){h.length||(h=Object(s.b)(u.showType2));var x=h.shift();v=x.lineStyle,_=x.boxConfig}if(3===f&&!v){c.length||(c=Object(s.b)(u.showType3));v=c.shift().lineStyle}o.push(g);var w=[],b=r.multcolType||0;if(31===b){var S=r.multValues||[],C=n.findTablesIndex(b,e.colsType);C&&S.length&&(w=S.map(function(t){var n=e.rows.findIndex(function(e){return t===Math.floor(e[C])});return-1===n?{coord:[],value:0}:{coord:[n,e.rows[n][d]],value:t}}))}var T=!0;n.notShowLineTypes.includes(p)&&(T=!1),a={showType:f,colsType:p,name:g,titleName:y,problemText:r.problemText,tableRowIndex:d,lineStyle:v,boxConfig:_,tipsText:r.tipsText,markPoint:w,displayLine:T,negativeText:r.negativeText||""},m&&(a.expressionData=m),i.push(a)})(y)}var m=e.rows.map(function(t){for(var e=[],n=i,o=Array.isArray(n),s=0,n=o?n:a()(n);;){var l;if(o){if(s>=n.length)break;l=n[s++]}else{if(s=n.next(),s.done)break;l=s.value}var u=l;1===u.showType&&r.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return m.unshift(o),{chartConfig:i,dataSource:m,xAxisData:r}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1241:function(t,e,n){"use strict";var i=n(146),r=n.n(i),o=n(2100),a=n(552);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},benefitBtnShow:{type:Boolean,default:!0},unit:{default:"周岁",type:String},note:{default:"",type:String},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{getNum:function(t,e,n){var i=Math.round(100*this.pureDataSource[t][e])/100;return i<0&&n.negativeText?n.negativeText:(this.percentageTypes.includes(Number(n.colsType))&&(i+="%"),i)},showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];this.dialog?this.dialog.setData(t,e):this.dialog=this.$createGoldDialog({title:t,content:e,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var n=this.$refs.num[e],i=this.$refs.colorBlock[e];for(n.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(n).width)>parseInt(getComputedStyle(i).width)+30))break;var r=parseInt(getComputedStyle(n).fontSize);if(r<=12)break;n.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,n=t.dataSource,i=t.xAxisData;this.chartConfig=e,this.dataSource=n,this.xAxisData=i,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1242:function(t,e,n){"use strict";var i=n(146),r=n.n(i),o=n(130),a=n.n(o),s=n(92),l=n.n(s),u=n(552),h=n(2102);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=i/375*10;return i?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=this,e=[],n=[],i=this.getXAxisName(),r=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var s=this.chartConfig[o];if([2,3].includes(s.showType)&&s.displayLine){var c={};Object(u.e)(s.lineStyle.areaStyleColor)?c.color=new h.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(u.j)(s.lineStyle.areaStyleColor)&&(c.color=s.lineStyle.areaStyleColor),e.push({name:s.name,type:"line",smooth:!0,symbol:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:i,y:s.name},lineStyle:{width:1,color:s.lineStyle.lineColor},emphasis:{lineStyle:{color:s.lineStyle.lineColor}},zlevel:s.lineStyle.zIndex,z:s.lineStyle.zIndex,areaStyle:c.color?c:void 0,markPoint:{symbol:"circle",showSymbol:!0,symbolSize:[this.remToPxBased10Px(.8),this.remToPxBased10Px(.8)],symbolOffset:["-10%","-10%"],silent:!0,data:s.markPoint.map(function(e){return l()({itemStyle:{color:"#ffab11",borderWidth:t.remToPxBased10Px(.21),borderType:"solid",borderColor:"#FFEAC3"},label:{show:!0,position:"top",formatter:"{c}倍",backgroundColor:"#FFAB11",color:"#fff",borderRadius:t.remToPxBased10Px(.21),fontSize:t.remToPxBased10Px(1),width:t.remToPxBased10Px(2.8),height:t.remToPxBased10Px(1.5),borderWidth:t.remToPxBased10Px(.11),borderType:"solid",borderColor:"#FFEAC3",lineHeight:t.remToPxBased10Px(1.5)}},e)})}}),n.push({name:s.name,icon:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle"})}}var p={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.4)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:n,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,n,i,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,n=Array.isArray(e),i=0,e=n?e:a()(e);;){var o;if(n){if(i>=e.length)break;o=e[i++]}else{if(i=e.next(),i.done)break;o=i.value}var s=o;if(s.seriesName===r){var l=s.encode.y[0],u=s.value[l];return r+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:e};this.chart.setOption(p),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=h.init(this.$refs.chart,null,{renderer:"svg"}),this.setEcharts(),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);t.chart.containPixel("grid",n)&&t.index!==Math.round(i[0])&&t.setIndex(Math.round(i[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1243:function(t,e,n){"use strict";var i=n(196),r=n.n(i);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new r.a(n,{})})}}}}},13:function(t,e,n){var i=n(34),r=n(15);t.exports=function(t){return i(r(t))}},130:function(t,e,n){t.exports={default:n(144),__esModule:!0}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},144:function(t,e,n){n(51),n(48),t.exports=n(145)},145:function(t,e,n){var i=n(4),r=n(56);t.exports=n(2).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},146:function(t,e,n){t.exports={default:n(175),__esModule:!0}},147:function(t,e,n){e.f=n(1)},148:function(t,e,n){var i=n(0),r=n(2),o=n(18),a=n(147),s=n(10).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},17:function(t,e,n){var i=n(19);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},174:function(t,e,n){var i=n(9),r=n(2),o=n(12);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},175:function(t,e,n){n(176),t.exports=n(2).Object.keys},176:function(t,e,n){var i=n(33),r=n(29);n(174)("keys",function(){return function(t){return r(i(t))}})},177:function(t,e,n){var i=n(42),r=n(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},195:function(t,e,n){var i=n(25)("meta"),r=n(6),o=n(8),a=n(10).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(12)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[i].i},p=function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[i].w},d=function(t){return u&&f.NEED&&l(t)&&!o(t,i)&&h(t),t},f=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},196:function(t,n){t.exports=e},197:function(t,e,n){var i=n(14);t.exports=Array.isArray||function(t){return"Array"==i(t)}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var i=n(31)("keys"),r=n(25);t.exports=function(t){return i[t]||(i[t]=r(t))}},2089:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(26),r=n.n(i),o=n(2090);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=r()(o.a,t)},e.default=o.a},2090:function(t,e,n){"use strict";var i=n(1240),r=n(2108),o=n(7),a=Object(o.a)(i.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2091:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o});var i={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:n(2092),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:n(2093),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(2094),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:n(2095),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:n(2096),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(2097),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2092:function(t,e){t.exports=i},2093:function(t,e){t.exports=r},2094:function(t,e){t.exports=o},2095:function(t,e){t.exports=a},2096:function(t,e){t.exports=s},2097:function(t,e){t.exports=l},2098:function(t,e,n){"use strict";function i(t){s||n(2099)}var r=n(1241),o=n(2104),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},2099:function(t,e){},2100:function(t,e,n){"use strict";function i(t){s||n(2101)}var r=n(1242),o=n(2103),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},2101:function(t,e){},2102:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(e){"use strict";function n(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Df(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t){for(var e in zf)t[e]&&(zf[e]=t[e])}function r(){return Kf++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Hf.call(t);if("[object Array]"===n){if(!H(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=a(t[i])}else if(Vf[n]){if(!H(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!Ff[n]&&!H(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Zf&&(e[s]=a(t[s]));return e}function s(t,e,n){if(!T(e)||!T(t))return n?a(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==Zf&&(r=t[i],!T(o=e[i])||!T(r)||x(o)||x(r)||k(o)||k(r)||M(o)||M(r)||H(o)||H(r)?!n&&i in t||(t[i]=a(e[i])):s(r,o,n))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Zf&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=v(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i,r=t.prototype;for(i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);(t.prototype.constructor=t).superClass=e}function p(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,n)}function d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Wf)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function g(t,e,n){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===Yf)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function m(t,e,n){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===Uf)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(jf.call(arguments)))}}function x(t){return Array.isArray?Array.isArray(t):"[object Array]"===Hf.call(t)}function w(t){return"function"==typeof t}function b(t){return"string"==typeof t}function S(t){return"[object String]"===Hf.call(t)}function C(t){return"number"==typeof t}function T(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function M(t){return!!Ff[Hf.call(t)]}function I(t){return!!Vf[Hf.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function D(t){return null!=t.colorStops}function A(t){return null!=t.image}function P(t){return"[object RegExp]"===Hf.call(t)}function O(t){return t!=t}function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function R(t,e){return null!=t?t:e}function E(t,e,n){return null!=t?t:null!=e?e:n}function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return jf.apply(t,e)}function B(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function z(t,e){if(!t)throw new Error(e)}function F(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[Jf]=!0}function H(t){return t[Jf]}function G(){this.data={}}function W(t){function e(t,e){n?i.set(t,e):i.set(e,t)}var n=x(t),i=(this.data=new(eg?Map:tg),this);t instanceof W?t.each(e):t&&f(t,e)}function U(t){return new ng(t)}function j(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function Y(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&l(t,e),t}function X(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function K(t,e){return[t=null==t?0:t,e=null==e?0:e]}function $(t){return[t[0],t[1]]}function Q(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function J(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function tt(t){return Math.sqrt(et(t))}function et(t){return t[0]*t[0]+t[1]*t[1]}function nt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function it(t,e){var n=tt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function rt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ot(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function at(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function st(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function lt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ut(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function ht(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function ct(t){t&&(this._$eventProcessor=t)}function pt(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/cg),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*pt(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function dt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=pt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*pt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function ft(t,e,n,i,r){if(e.getBoundingClientRect&&Pf.domSupported&&!gt(e)){var o=e[pg]||(e[pg]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?dt(s,a):dt(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function gt(t){return"CANVAS"===t.nodeName.toUpperCase()}function yt(t){return null==t?"":(t+"").replace(fg,function(t,e){return gg[e]})}function mt(t,e,n,i){return n=n||{},i?vt(t,e,n):vg&&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):vt(t,e,n),n}function vt(t,e,n){if(Pf.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(gt(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(ft(mg,t,r,e))return n.zrX=mg[0],void(n.zrY=mg[1])}n.zrX=n.zrY=0}function _t(t){return t||window.event}function xt(t,e,n){var i;return null==(e=_t(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&mt(t,i,e,n):(mt(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&yg.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function wt(){this._track=[]}function bt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function St(){return[1,0,0,1,0,0]}function Ct(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Tt(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 Mt(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=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],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=n,t}function It(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 kt(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=r*n+s*u,t[1]=-r*u+s*n,t[2]=o*n+l*u,t[3]=-o*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function Dt(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function At(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}function Pt(t,e){this.x=t||0,this.y=e||0}function Ot(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Lt(){_g(this.event)}function Rt(){var t=null!==Rg&&Rg.apply(this,arguments)||this;return t.handler=null,t}function Et(t,e,n,i,r){var o=Eg.call(this)||this;return o._hovered=new Bg(0,0),o.storage=t,o.painter=e,o.painterRoot=i,o._pointerSize=r,n=n||new Ng,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new ug(o),o}function Nt(t,e,n,i,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=!!i.ignoreClip||o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0),a=i.__hostTarget,i=a||i.parent}return!r||Lg}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==Lg)){e.target=a;break}}}function Bt(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}function zt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function Ft(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;var u=i-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:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Vt(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function Ht(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Gt(t,e){function n(n){var l=i[n],u=r[n],h=i[n+1],c=r[n+1],n=(r[n]=u+c,n===a-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),a--,Ht(t[h],t,l,u,0,e));if(l+=n,0!=(u-=n)&&0!==(c=Vt(t[l+u-1],t,h,c,c-1,e)))if(u<=c){var p=l,d=u,n=h,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=n,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,w,b=o;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=Ht(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){w=!0;break}}if(t[v++]=t[m++],0==--f){w=!0;break}if(0!==(x=Vt(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){w=!0;break}}if(t[v++]=s[y++],1==--d){w=!0;break}}while(b--,Gg<=_||Gg<=x);if(w)break;b<0&&(b=0),b+=2}if((o=b)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,C=u,T=h,M=c,I=0;for(I=0;I<M;I++)s[I]=t[T+I];var k=S+C-1,D=M-1,A=T+M-1,P=0,O=0;if(t[A--]=t[k--],0==--C)for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I];else if(1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{for(var L=o;;){var R=0,E=0,N=!1;do{if(e(s[D],t[k])<0){if(t[A--]=t[k--],R++,(E=0)==--C){N=!0;break}}else if(t[A--]=s[D--],E++,R=0,1==--M){N=!0;break}}while((R|E)<L);if(N)break;do{if(0!=(R=C-Ht(s[D],t,S,C,C-1,e))){for(C-=R,O=1+(A-=R),P=1+(k-=R),I=R-1;0<=I;I--)t[O+I]=t[P+I];if(0===C){N=!0;break}}if(t[A--]=s[D--],1==--M){N=!0;break}if(0!=(E=M-Vt(t[k],s,0,M,M-1,e))){for(M-=E,O=1+(A-=E),P=1+(D-=E),I=0;I<E;I++)t[O+I]=s[P+I];if(M<=1){N=!0;break}}if(t[A--]=t[k--],0==--C){N=!0;break}}while(L--,Gg<=R||Gg<=E);if(N)break;L<0&&(L=0),L+=2}if((o=L)<1&&(o=1),1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{if(0===M)throw new Error;for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I]}}}}var i,r,o=Gg,a=0,s=[];return i=[],r=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;n(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&r[t-1]<r[t+1]&&t--,n(t)}},pushRun:function(t,e){i[a]=t,r[a]=e,a+=1}}}function Wt(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<Hg)Ft(t,n,i,n+(o=zt(t,n,i,e)),e);else{var a,s=Gt(t,e),l=function(t){for(var e=0;Hg<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=zt(t,n,i,e))<l&&(Ft(t,n,n+(a=l<(a=r)?l:r),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!=(r-=o));s.forceMergeRuns()}}}function Ut(){jg||(jg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Yt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jt}function Xt(t){return-$g<t&&t<$g}function qt(t){return $g<t||t<-$g}function Zt(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Kt(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function $t(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Xt(r)&&Xt(l)?Xt(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):Xt(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-n/i+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=r*n+1.5*i*(-l-(t=Kg(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-Zg(-t,Jg):Zg(t,Jg))+(e=e<0?-Zg(-e,Jg):Zg(e,Jg))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*Kg(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=Kg(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Qg*Math.sin(e)))/(3*i),r=(-n+l*(t-Qg*Math.sin(e)))/(3*i),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=r&&r<=1&&(o[u++]=r)),u}function Qt(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Xt(i)?qt(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):Xt(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=Kg(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Jt(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function te(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;ty[0]=l,ty[1]=u;for(var m=0;m<1;m+=.05)ey[0]=Zt(t,n,r,a,m),ey[1]=Zt(e,i,o,s,m),(d=ag(ty,ey))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,ey[0]=Zt(t,n,r,a,f=c-g),ey[1]=Zt(e,i,o,s,f),d=ag(ey,ty),0<=f&&d<y?(c=f,y=d):(ny[0]=Zt(t,n,r,a,p),ny[1]=Zt(e,i,o,s,p),f=ag(ny,ty),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Zt(t,n,r,a,c),h[1]=Zt(e,i,o,s,c)),Kg(y)}function ee(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ne(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ie(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function re(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function oe(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;ty[0]=a,ty[1]=s;for(var p=0;p<1;p+=.05)ey[0]=ee(t,n,r,p),ey[1]=ee(e,i,o,p),(y=ag(ty,ey))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(ey[0]=ee(t,n,r,f),ey[1]=ee(e,i,o,f),ag(ey,ty));0<=f&&y<c?(u=f,c=y):(ny[0]=ee(t,n,r,g),ny[1]=ee(e,i,o,g),f=ag(ny,ty),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ee(t,n,r,u),l[1]=ee(e,i,o,u)),Kg(c)}function ae(t){if(t=t&&iy.exec(t)){var e,t=t[1].split(","),n=+F(t[0]),i=+F(t[1]),r=+F(t[2]),o=+F(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:$t(0,n,r,1,t,e)&&Zt(0,i,o,1,e[0])}}}function se(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||Z,this.ondestroy=t.ondestroy||Z,this.onrestart=t.onrestart||Z,t.easing&&this.setEasing(t.easing)}function le(){this._len=0}function ue(t){this._list=new ay,this._maxSize=10,this._map={},this._maxSize=t}function he(t){return(t=Math.round(t))<0?0:255<t?255:t}function ce(t){return t<0?0:1<t?1:t}function pe(t){return he(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function de(t){return ce(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function fe(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ge(t,e,n){return t+(e-t)*n}function ye(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function me(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function ve(t,e){hy&&me(hy,e),hy=uy.put(t,hy||e.slice())}function _e(t,e){if(t){e=e||[];var n=uy.get(t);if(n)return me(e,n);if((n=(t+="").replace(/ /g,"").toLowerCase())in ly)return me(e,ly[n]),ve(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(ye(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),ve(t,e),e):void ye(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(ye(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),ve(t,e),e):void ye(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?ye(e,+a[0],+a[1],+a[2],1):ye(e,0,0,0,1);s=de(a.pop());case"rgb":return 3<=a.length?(ye(e,pe(a[0]),pe(a[1]),pe(a[2]),3===a.length?s:de(a[3])),ve(t,e),e):void ye(e,0,0,0,1);case"hsla":return 4!==a.length?void ye(e,0,0,0,1):(a[3]=de(a[3]),xe(a,e),ve(t,e),e);case"hsl":return 3!==a.length?void ye(e,0,0,0,1):(xe(a,e),ve(t,e),e);default:return}}ye(e,0,0,0,1)}}function xe(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=de(t[1]),r=de(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return ye(e=e||[],he(255*fe(r,i,n+1/3)),he(255*fe(r,i,n)),he(255*fe(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function we(t,e){var n=_e(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Ce(n,4===n.length?"rgba":"rgb")}}function be(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=he(ge(r[0],e[0],o=t-i)),n[1]=he(ge(r[1],e[1],o)),n[2]=he(ge(r[2],e[2],o)),n[3]=ce(ge(r[3],e[3],o)),n}function Se(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),r=Math.ceil(t),a=_e(e[i]),e=_e(e[r]),a=Ce([he(ge(a[0],e[0],o=t-i)),he(ge(a[1],e[1],o)),he(ge(a[2],e[2],o)),ce(ge(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}function Ce(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Te(t,e){return t=_e(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Me(t){var e;return b(t)?((e=dy.get(t))||(e=we(t,-.1),dy.put(t,e)),e):D(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:we(t.color,-.1)}}),e):t}function Ie(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=_e(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function ke(t){return t<1e-4&&-1e-4<t}function De(t){return fy(1e3*t)/1e3}function Ae(t){return fy(1e4*t)/1e4}function Pe(t){return t&&!!t.image}function Oe(t){return Pe(t)||(t=t)&&!!t.svgElement}function Le(t){return"linear"===t.type}function Re(t){return"radial"===t.type}function Ee(t){return t&&("linear"===t.type||"radial"===t.type)}function Ne(t){return"url(#"+t+")"}function Be(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ze(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*ig,r=R(t.scaleX,1),o=R(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===r&&1===o||s.push("scale("+r+","+o+")"),(a||t)&&s.push("skew("+fy(a*ig)+"deg, "+fy(t*ig)+"deg)"),s.join(" ")}function Fe(t,e,n){return(e-t)*n+t}function Ve(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Fe(e[o],n[o],i);return t}function He(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Ge(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function We(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;i<e;i++)n.push(my.call(t[i]));return n}return my.call(t)}return t}function Ue(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function je(t){return 4===t||5===t}function Ye(t){return 1===t||2===t}function Xe(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function qe(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?o("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Ze(){return(new Date).getTime()}function Ke(t){var e=wy.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function $e(t){return"pen"===(t=t.pointerType)||"touch"===t}function Qe(t){t&&(t.zrByTouch=!0)}function Je(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function tn(t,e){var n=e.domHandlers;Pf.pointerEventsSupported?f(Iy.pointer,function(i){nn(e,i,function(e){n[i].call(t,e)})}):(Pf.touchEventsSupported&&f(Iy.touch,function(i){nn(e,i,function(r){var o;n[i].call(t,r),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})}),f(Iy.mouse,function(i){nn(e,i,function(r){r=_t(r),e.touching||n[i].call(t,r)})}))}function en(t,e){function n(n){nn(e,n,function(i){var r;i=_t(i),Je(t,i.target)||(r=i,i=xt(t.dom,new Py(t,r),!0),e.domHandlers[n].call(t,i))},{capture:!0})}Pf.pointerEventsSupported?f(Dy,n):Pf.touchEventsSupported||f(ky,n)}function nn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function rn(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,r=a[i=e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}function on(t,e){var n=Sy.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Ry(t,Oy),My&&(n._globalHandlerScope=new Ry(document,Ly)),tn(n,n._localHandlerScope),n}function an(t){return 5e-5<t||t<-5e-5}function sn(){}function ln(t,e){for(var n=0;n<jy.length;n++){var i=jy[n];t[i]=e[i]}}function un(t,e){var n=Yy[e=e||Nf],i=(n=n||(Yy[e]=new sy(500))).get(t);return null==i&&(i=zf.measureText(t,e).width,n.put(t,i)),i}function hn(t,e,n,i){return t=un(t,e),e=fn(e),n=pn(0,t,n),i=dn(0,e,i),new Og(n,i,t,e)}function cn(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return hn(r[0],e,n,i);for(var o=new Og(0,0,0,0),a=0;a<r.length;a++){var s=hn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function pn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function dn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function fn(t){return un("国",t)}function gn(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function yn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=gn(i[0],n.width),u+=gn(i[1],n.height),c=h=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function mn(t){this.id=Kf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function vn(t,e,n,i){function r(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(Cy,t,{get:function(){var t;return this[e]||(t=this[e]=[],r(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function _n(t,e,n,i,r){function o(){u=!0,--l<=0&&(u?c&&c():p&&p())}function a(){--l<=0&&(u?c&&c():p&&p())}var s=[],l=(function t(e,n,i,r,o,a,s,l){for(var u=v(r),c=o.duration,p=o.delay,f=o.additive,g=o.setToFinal,y=!T(a),_=e.animators,x=[],w=0;w<u.length;w++){var b=u[w],S=r[b];null!=S&&null!=i[b]&&(y||a[b])?!T(S)||d(S)||D(S)?x.push(b):n?l||(i[b]=S,e.updateDuringAnimation(n)):t(e,b,i[b],S,o,a&&a[b],s,l):l||(i[b]=S,e.updateDuringAnimation(n),x.push(b))}var C=x.length;if(!f&&C)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===n&&k.stopTracks(x)&&(M=h(_,k),_.splice(M,1));if(o.force||(x=m(x,function(t){return!bn(r[t],i[t])}),C=x.length),0<C||o.force&&!s.length){var k,A=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(A={}),I=0;I<C;I++)b=x[I],P[b]=i[b],g?A[b]=r[b]:i[b]=r[b];else if(g)for(O={},I=0;I<C;I++)b=x[I],O[b]=We(i[b]),wn(i,r,b);(k=new xy(i,!1,!1,f?m(_,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(k.scope=o.scope),g&&A&&k.whenWithKeys(0,A,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:r,x).delay(p||0),e.addAnimator(k,n),s.push(k)}}(t,"",t,e,n=n||{},i,s,r),s.length),u=!1,c=n.done,p=n.aborted;l||c&&c(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(o),g.aborted(a),n.force&&g.duration(n.duration),g.start(n.easing)}return s}function xn(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function wn(t,e,n){if(d(e[n]))if(d(t[n])||(t[n]=[]),I(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),xn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(d(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?xn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else xn(o,r,a);o.length=r.length}else t[n]=e[n]}function bn(t,e){return t===e||d(t)&&d(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}function Sn(t){var e=Qy.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function Cn(t,e,n){var i,r=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Yg),a=n.renderer||"canvas",a=(tm[a]||(a=v(tm)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new tm[a](e,o,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=o,this.painter=a,Pf.node||Pf.worker||e?null:new Ey(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?Pf.touchEventsSupported:!!s)&&(i=R(n.pointerSize,44)),this.handler=new Vg(o,a,t,a.root,i),this.animation=new Ty({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function Tn(t,e){return t=new rm(Kf++,t,e),em[t.id]=t}function Mn(t,e){tm[t]=e}function In(t){if("function"==typeof nm)return nm(t)}function kn(t){nm=t}function Dn(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}function An(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return b(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Pn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),am),t=(+t).toFixed(e),n?t:+t}function On(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ln(t)}function Ln(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Rn(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function En(t){var e=2*Math.PI;return(t%e+e)%e}function Nn(t){return-1e-4<t&&t<1e-4}function Bn(t){var e,n;return t instanceof Date?t:b(t)?(e=sm.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function zn(t){return Math.pow(10,Fn(t))}function Fn(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Vn(t,e){var n=Fn(t),i=Math.pow(10,n),r=t/i,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Hn(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Gn(t){return!isNaN(Hn(t))}function Wn(){return Math.round(9*Math.random())}function Un(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function jn(t){throw new Error(t)}function Yn(t,e,n){return(e-t)*n+t}function Xn(t){return t instanceof Array?t:null==t?[]:[t]}function qn(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Zn(t){return!T(t)||x(t)||t instanceof Date?t:t.value}function Kn(t,e,n){var i,r,o,a,s,l,u,h,c,p,d="normalMerge"===n,g="replaceMerge"===n,y="replaceAll"===n,m=(t=t||[],e=(e||[]).slice(),U()),n=(f(e,function(t,n){T(t)||(e[n]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||ei(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n));return(d||g)&&(i=n,r=t,o=m,f(a=e,function(t,e){var n,s,l;t&&null!=t.id&&(n=Qn(t.id),null!=(s=o.get(n)))&&(z(!(l=i[s]).newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=r[s],a[e]=null)})),d&&(s=n,f(l=e,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!ei(t)&&!ei(i)&&$n("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||g?(h=n,c=g,f(e,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||ei(e.existing)||e.existing&&null!=t.id&&!$n("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):y&&(u=n,f(e,function(t){u.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=n,p=U(),f(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),f(t,function(t){var e=t.newOption;z(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),f(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(T(i)){if(r.name=null!=i.name?Qn(i.name):n?n.name:lm+e,n)r.id=Qn(n.id);else if(null!=i.id)r.id=Qn(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.id,t)}}),n}function $n(t,e,n){return e=Jn(e[t],null),n=Jn(n[t],null),null!=e&&null!=n&&e===n}function Qn(t){return Jn(t,"")}function Jn(t,e){return null==t?e:b(t)?t:C(t)||S(t)?t+"":e}function ti(t){return!(!(t=t.name)||!t.indexOf(lm))}function ei(t){return t&&null!=t.id&&0===Qn(t.id).indexOf("\0_ec_\0")}function ni(t,e,n){f(t,function(t){var i,r,o=t.newOption;T(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,o=o,t=t.existing,r=n,o.type||(t?t.subType:r.determineSubType(i,o))))})}function ii(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function ri(){var t="__ec_inner_"+hm++;return function(e){return e[t]||(e[t]={})}}function oi(t,e,n){var e=ai(e,n),i=e.mainTypeSpecified,r=e.queryOptionMap,o=e.others,a=n?n.defaultMainType:null;return!i&&a&&r.set(a,{}),r.each(function(e,i){e=si(t,i,e,{useDefault:a===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),o[i+"Models"]=e.models,o[i+"Model"]=e.models[0]}),o}function ai(t,e){var n=b(t)?((n={})[t+"Index"]=0,n):t,i=U(),r={},o=!1;return f(n,function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?r[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&h(e.includeMainTypes,a)<0||(o=o||!!a,(i.get(a)||i.set(a,{}))[n]=t))}),{mainTypeSpecified:o,queryOptionMap:i,others:r}}function si(t,e,n,i){i=i||cm;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};return a.specified?"none"===r||!1===r?(z(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(z(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=n=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})):(r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function li(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ui(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(C(i))return Pn(p=Yn(n||0,i,r),o?Math.max(On(n||0),On(i)):e);if(b(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(r<1&&s?s:l)[h]:(p=Yn(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=Pn(p,o?Math.max(On(d),On(c)):e))}return a}function hi(t){var e={main:"",sub:""};return t&&(t=t.split(pm),e.main=t[0]||"",e.sub=t[1]||""),e}function ci(t){(t.$constructor=t).extend=function(t){function e(){return r.apply(this,arguments)||this}var i,r,o,a=this;return w(o=a)&&/^class\s/.test(Function.prototype.toString.call(o))?(n(e,r=a),i=e):c(i=function(){(t.$constructor||a).apply(this,arguments)},this),l(i.prototype,t),i[fm]=!0,i.extend=this.extend,i.superCall=di,i.superApply=fi,i.superClass=a,i}}function pi(t,e){t.extend=e.extend}function di(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function fi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function gi(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;return i&&(z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),(n=hi(t.prototype.type=i)).sub?n.sub!==dm&&((function(t){var n=e[t.main];return n&&n[dm]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[dm]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var t=hi(t),n=[],t=e[t.main];return t&&t[dm]?f(t,function(t,e){e!==dm&&n.push(t)}):n.push(t),n},t.hasClass=function(t){return t=hi(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){return t=hi(t),(t=e[t.main])&&t[dm]}}function yi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];i&&0<=h(i,s)||r&&h(r,s)<0||null!=(s=n.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}function mi(){}function vi(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=vm.get(t))?xi(e=i.image)||i.pending.push(n):((e=zf.loadImage(t,_i,_i)).__zrImageSrc=t,vm.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function _i(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function xi(t){return t&&t.width&&t.height}function wi(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=bi(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Si(o[a],r);return o.join("\n")}function bi(t,e,n,i){for(var r=l({},i=i||{}),o=(r.font=e,n=R(n,"..."),r.maxIterations=R(i.maxIterations,2),r.minChar=R(i.minChar,0)),a=(r.cnCharWidth=un("国",e),r.ascCharWidth=un("a",e)),s=(r.placeholder=R(i.placeholder,""),t=Math.max(0,t-1)),u=0;u<o&&a<=s;u++)s-=a;return i=un(n,e),s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function Si(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=un(t,i);if(!(o<=n)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=un(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function Ci(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,d+=n,f=Math.max(f,e)}var i=new bm;if(null!=t&&(t+=""),t){for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=_m.lastIndex=0;null!=(r=_m.exec(t));){var h=r.index;u<h&&Ti(i,t.substring(u,h),e,l),Ti(i,r[2],e,l,r[1]),u=_m.lastIndex}u<t.length&&Ti(i,t.substring(u,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var _=i.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(A=_.tokens[b]).styleName&&e.rich[A.styleName]||{},C=A.textPadding=S.padding,T=C?C[1]+C[3]:0,M=A.font=S.font||e.font,I=(A.contentHeight=fn(M),R(S.height,A.contentHeight));if(A.innerHeight=I,C&&(I+=C[0]+C[2]),A.height=I,A.lineHeight=E(S.lineHeight,e.lineHeight,I),A.align=S&&S.align||e.align,A.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+A.lineHeight>a){0<b?(_.tokens=_.tokens.slice(0,b),n(_,w,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var k,C=S.width,D=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(A.percentWidth=C,p.push(A),A.contentWidth=un(A.text,M)):(D&&(C=(C=S.backgroundColor)&&C.image)&&(k=void 0,xi(C="string"==typeof(c=C)?(k=vm.get(c))&&k.image:c))&&(A.width=Math.max(A.width,C.width*I/C.height)),null!=(k=y&&null!=o?o-w:null)&&k<A.width?!D||k<T?(A.text="",A.width=A.contentWidth=0):(A.text=wi(A.text,k-T,M,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=un(A.text,M)):A.contentWidth=un(A.text,M)),A.width+=T,w+=A.width,S&&(x=Math.max(x,A.lineHeight))}n(_,w,x)}for(i.outerWidth=i.width=R(o,f),i.outerHeight=i.height=R(a,d),i.contentHeight=d,i.contentWidth=f,g&&(i.outerWidth+=g[1]+g[3],i.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var A,P=(A=p[v]).percentWidth;A.width=parseInt(P,10)/100*i.width}}return i}function Ti(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=gn(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=Mi(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new xm;y.styleName=r,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:un(g,h),p||c?u.push(new wm([y])):1===(f=(d=(u[u.length-1]||(u[0]=new wm)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function Mi(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=un(g,e),f=!(i||(f=void 0,!(32<=(f=(f=o=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Sm[o]),(a.length?n<c+d:n<r+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}function Ii(t){return im.call(this,t)||this}function ki(t,e,n,i,r,o){r[0]=Pm(t,n),r[1]=Pm(e,i),o[0]=Om(t,n),o[1]=Om(e,i)}function Di(t){return Math.round(t/Jm*1e8)/1e8%2*Jm}function Ai(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Pi(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}function Oi(t){return(t%=av)<0&&(t+=av),t}function Li(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}function Ri(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=$t(e,i,o,s,u,cv);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=cv[y],v=0===m||1===m?.5:1;Zt(t,n,r,a,m)<l||(d<0&&(d=Qt(e,i,o,s,pv),pv[1]<pv[0]&&1<d&&(c=void 0,c=pv[0],pv[0]=pv[1],pv[1]=c),f=Zt(e,i,o,s,pv[0]),1<d)&&(g=Zt(e,i,o,s,pv[1])),2===d?m<pv[0]?p+=f<e?v:-v:m<pv[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<pv[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ei(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=cv,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,Xt(h)?qt(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Xt(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Kg(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=ie(e,i,o);if(0<=g&&g<=1){for(var y=0,m=ee(e,i,o,g),v=0;v<f;v++){var _=0===cv[v]||1===cv[v]?.5:1;ee(t,n,r,cv[v])<a||(cv[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===cv[0]||1===cv[0]?.5:1,ee(t,n,r,cv[0])<a?0:o<e?_:-_}function Ni(t,e,n,i,r){for(var o,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===lv.M&&1<d&&(n||(l+=Li(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case lv.M:u=c=a[d++],h=p=a[d++];break;case lv.L:if(n){if(Pi(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Li(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case lv.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&te(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ri(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case lv.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&oe(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ei(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case lv.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,C=Math.sin(x)*_+m,T=(g?(c=S,p=C):l+=Li(u,h,S,C,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-r)%sv<1e-4||((r=o?(e=i,i=Oi(r),Oi(e)):(i=Oi(i),Oi(r)))<i&&(r+=sv),(t=Math.atan2(l,s))<0&&(t+=sv),i<=t&&t<=r)||i<=t+sv&&t+sv<=r)}(y,m,_,x,x+w,b,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(cv[0]=-e,cv[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(uv-1e-4<=n)return r=uv,h=o?1:-1,a>=cv[i=0]+t&&a<=cv[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=uv,r+=uv);for(var l=0,u=0;u<2;u++){var h,c=cv[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?uv+c:c)&&c<=r||i<=c+uv&&c+uv<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case lv.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],C=p+a[d++],n){if(Pi(c,p,S,p,e,i,r)||Pi(S,p,S,C,e,i,r)||Pi(S,C,c,C,e,i,r)||Pi(c,C,c,p,e,i,r))return!0}else l=(l+=Li(S,p,S,C,i,r))+Li(c,C,c,p,i,r);break;case lv.Z:if(n){if(Pi(u,h,c,p,e,i,r))return!0}else l+=Li(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<hv)||(l+=Li(u,h,c,p,i,r)||0),0!==l}function Bi(t){return iv.call(this,t)||this}function zi(){return null!==rv&&rv.apply(this,arguments)||this}function Fi(){return null!==wv&&wv.apply(this,arguments)||this}function Vi(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(Cv(2*i)===Cv(2*r)&&(t.x1=t.x2=Gi(i,n,!0)),Cv(2*o)===Cv(2*e))&&(t.y1=t.y2=Gi(o,n,!0)),t}function Hi(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=Gi(i,n,!0),t.y=Gi(r,n,!0),t.width=Math.max(Gi(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(Gi(r+e,n,!1)-t.y,0===e?0:1)),t}function Gi(t,e,n){var i;return e?((i=Cv(2*t))+Cv(e))%2==0?i/2:(i+(n?1:-1))/2:t}function Wi(t){return Sv.call(this,t)||this}function Ui(t){var e=kv.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Dv,e.attr(t),e}function ji(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Rf+"px":t+"px":t}function Yi(t,e){for(var n=0;n<Rv.length;n++){var i=Rv[n],r=e[i];null!=r&&(t[i]=r)}}function Xi(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function qi(t){var e;t&&(t.font=Pv.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Ov[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Lv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Zi(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ki(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function $i(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Qi(t){return t=t.text,null!=t&&(t+=""),t}function Ji(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function tr(t){return null!=t&&"none"!==t}function er(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function nr(t){er(t,"emphasis",Gv)}function ir(t){t.hoverState===Gv&&er(t,"normal",Vv)}function rr(t){er(t,"blur",Hv)}function or(t){t.hoverState===Hv&&er(t,"normal",Vv)}function ar(t){t.selected=!0}function sr(t){t.selected=!1}function lr(t,e,n){e(t,n)}function ur(t,e,n){lr(t,e,n),t.isGroup&&t.traverse(function(t){lr(t,e,n)})}function hr(t,e){switch(e){case"emphasis":t.hoverState=Gv;break;case"normal":t.hoverState=Vv;break;case"blur":t.hoverState=Hv;break;case"select":t.selected=!0}}function cr(t,e,n){var i=0<=h(t.currentStates,e),r=t.style.opacity,t=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=l({},n),e=l({opacity:i?r:.1*t.opacity},e),n.style=e),n}function pr(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=h(e,"select"),a=!1,n instanceof yv&&(r=zv(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,tr(o)||tr(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=l({},i),(r=l({},r)).fill=o):!tr(r.fill)&&tr(o)?(a=!0,i=l({},i),(r=l({},r)).fill=Me(o)):!tr(r.stroke)&&tr(e)&&(a||(i=l({},i),r=l({},r)),r.stroke=Me(e)),i.style=r),i&&null==i.z2&&(a||(i=l({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return cr(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=l({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function dr(t){t.stateProxy=pr;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=pr),t&&(t.stateProxy=pr)}function fr(t,e){br(t,e)||t.__highByOuter||ur(t,nr)}function gr(t,e){br(t,e)||t.__highByOuter||ur(t,ir)}function yr(t,e){t.__highByOuter|=1<<(e||0),ur(t,nr)}function mr(t,e){(t.__highByOuter&=~(1<<(e||0)))||ur(t,ir)}function vr(t){ur(t,rr)}function _r(t){ur(t,or)}function xr(t){ur(t,ar)}function wr(t){ur(t,sr)}function br(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Sr(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Fv(r),e="series"===e,a=e?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);e||i.push(a),o.isBlured&&(a.group.traverse(function(t){or(t)}),e)&&n.push(r),o.isBlured=!1}),f(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Cr(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&_r(i)}}var o,a,s,l=i.getModel();n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=l.getSeriesByIndex(t),(a=o.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=o===t,u=t.coordinateSystem,u=(u=u&&u.master?u.master:u)&&a?u===a:l;if(!("series"===n&&!l||"coordinateSystem"===n&&!u||"series"===e&&l)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&l&&"self"===e||rr(t)}),d(e))r(t.getData(),e);else if(T(e))for(var h=v(e),c=0;c<h.length;c++)r(t.getData(h[c]),e[h[c]]);s.push(t),Fv(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(s,!0,l)}))}function Tr(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Fv(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){rr(t)})}function Mr(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;if(!(t=i.getModel().getComponent(t,e)))return r;if(!(e=i.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===Ev(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function Ir(t){f(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){(t.isSelected(n,i)?xr:wr)(e)})})}function kr(t,e,n){Pr(t,!0),ur(t,dr),t=Ev(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function Dr(t,e,n,i){i?Pr(t,!1):kr(t,e,n)}function Ar(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Kv.length;r++){var o=Kv[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[$v[n]]()}}function Pr(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Or(t){return!(!t||!t.__highDownDispatcher)}function Lr(t){return(t=t.type)===Xv||t===qv||t===Zv}function Rr(t){return(t=t.type)===jv||t===Yv}function Er(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Nr(t,e){return(t[0]*e[0]+t[1]*e[1])/(Er(t)*Er(e))}function Br(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Nr(t,e))}function zr(t,e,n,i,r,o,a,s,l,u,h){var l=l*(o_/180),c=r_(l)*(t-n)/2+i_(l)*(e-i)/2,p=-1*i_(l)*(t-n)/2+r_(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=n_(d),s*=n_(d)),(r===o?-1:1)*n_((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+r_(l)*r-i_(l)*d,n=(e+i)/2+i_(l)*r+r_(l)*d,e=Br([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Br(i,c);Nr(i,c)<=-1&&(r=o_),(r=1<=Nr(i,c)?0:r)<0&&(p=Math.round(r/o_*1e6)/1e6,r=2*o_+p%2*o_),h.addData(u,t,n,a,s,e,r,l,o)}function Fr(){return null!==l_&&l_.apply(this,arguments)||this}function Vr(t){return null!=t.setData}function Hr(t,e){var n=function(t){var e=new ov;if(t){var n,i=0,r=0,o=i,a=r,s=ov.CMD,l=t.match(a_);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(s_)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,C=i,T=r,M=void 0,I=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,C,T,i,r);break;case"s":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,C,T,i,r);break;case"Q":C=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"q":C=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"T":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(C=i,T=r,i=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(C=i,T=r,i+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Vr(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=n,i=t;if(i){for(var r,o,a,s,l=e.data,u=e.len(),h=Qv.M,c=Qv.C,p=Qv.L,d=Qv.R,f=Qv.A,g=Qv.Q,y=0,m=0;y<u;){switch(r=l[y++],m=y,o=0,r){case h:case p:o=1;break;case c:o=3;break;case g:o=2;break;case f:var v=i[4],_=i[5],x=t_(i[0]*i[0]+i[1]*i[1]),w=t_(i[2]*i[2]+i[3]*i[3]),b=e_(-i[1]/w,i[0]/x);l[y]*=x,l[y++]+=v,l[y]*=w,l[y++]+=_,l[y++]*=x,l[y++]*=w,l[y++]+=b,l[y++]+=b,m=y+=2;break;case d:s[0]=l[y++],s[1]=l[y++],st(s,s,i),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],st(s,s,i),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<o;a++){var S=Jv[a];S[0]=l[y++],S[1]=l[y++],st(S,S,i),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Gr(t){return u_.call(this,t)||this}function Wr(t){return d_.call(this,t)||this}function Ur(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/C_(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*C_(T_(0,o*o*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(r/o-1),y1:t*(r/o-1)}}function jr(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,w,b,S,C,T,M,I,k,D,A,P,O,L=T_(e.r,0),R=T_(e.r0||0,0),E=0<L;(E||0<R)&&(E||(L=R,R=0),L<R&&(E=L,L=R,R=E),E=e.startAngle,n=e.endAngle,isNaN(E)||isNaN(n)||(i=e.cx,r=e.cy,o=!!e.clockwise,m=S_(n-E),I_<(a=v_<m&&m%v_)&&(m=a),I_<L?v_-I_<m?(t.moveTo(i+L*x_(E),r+L*__(E)),t.arc(i,r,L,E,n,!o),I_<R&&(t.moveTo(i+R*x_(n),r+R*__(n)),t.arc(i,r,R,n,E,o))):(C=S=b=w=_=v=c=h=k=I=M=T=u=l=s=a=void 0,p=L*x_(E),d=L*__(E),f=R*x_(n),g=R*__(n),(y=I_<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(x(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=S_(L-R)/2,T=M_(e,l),M=M_(e,u),I=M_(e,a),k=M_(e,s),v=h=T_(T,M),_=c=T_(I,k),I_<h||I_<c)&&(w=L*x_(n),b=L*__(n),S=R*x_(E),C=R*__(E),m<m_)&&(e=function(t,e,n,i,r,o,a,s){var l=(s-=o)*(n-=t)-(a-=r)*(i-=e);if(!(l*l<I_))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(p,d,S,C,w,b,f,g))&&(T=p-e[0],M=d-e[1],I=w-e[0],k=b-e[1],m=1/__(w_((T*I+M*k)/(C_(T*T+M*M)*C_(I*I+k*k)))/2),T=C_(e[0]*e[0]+e[1]*e[1]),v=M_(h,(L-T)/(1+m)),_=M_(c,(R-T)/(m-1))),y?I_<v?(D=M_(l,v),A=M_(u,v),P=Ur(S,C,p,d,L,D,o),O=Ur(w,b,f,g,L,A,o),t.moveTo(i+P.cx+P.x0,r+P.cy+P.y0),v<h&&D===A?t.arc(i+P.cx,r+P.cy,v,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<D&&t.arc(i+P.cx,r+P.cy,D,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(i,r,L,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),!o),0<A&&t.arc(i+O.cx,r+O.cy,A,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.moveTo(i+p,r+d),t.arc(i,r,L,E,n,!o)):t.moveTo(i+p,r+d),I_<R&&y?I_<_?(D=M_(a,_),P=Ur(f,g,w,b,R,-(A=M_(s,_)),o),O=Ur(p,d,S,C,R,-D,o),t.lineTo(i+P.cx+P.x0,r+P.cy+P.y0),_<c&&D===A?t.arc(i+P.cx,r+P.cy,_,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<A&&t.arc(i+P.cx,r+P.cy,A,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(i,r,R,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),o),0<D&&t.arc(i+O.cx,r+O.cy,D,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.lineTo(i+f,r+g),t.arc(i,r,R,n,E,o)):t.lineTo(i+f,r+g)):t.moveTo(i,r),t.closePath()))}function Yr(t){return y_.call(this,t)||this}function Xr(t){return A_.call(this,t)||this}function qr(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i)for(var o=function(t,e,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)lt(h,h,t[p]),ut(c,c,t[p]);lt(h,h,i[0]),ut(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push($(t[p]));continue}r=t[p-1],o=t[p+1]}J(s,o,r),nt(s,s,e);var g=rt(f,r),y=rt(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),nt(l,s,-g),nt(u,s,y),Q([],f,l)),g=Q([],f,u);i&&(ut(m,m,h),lt(m,m,c),ut(g,g,h),lt(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Zr(t){return L_.call(this,t)||this}function Kr(t){return N_.call(this,t)||this}function $r(t){return F_.call(this,t)||this}function Qr(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Kt:Zt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Kt:Zt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ne:ee)(t.x1,t.cpx1,t.x2,e),(n?ne:ee)(t.y1,t.cpy1,t.y2,e)]}function Jr(t){return j_.call(this,t)||this}function to(t){return X_.call(this,t)||this}function eo(){var t=null!==K_&&K_.apply(this,arguments)||this;return t.type="compound",t}function no(t){this.colorStops=t||[]}function io(t,e,n,i,r,o){return r=J_.call(this,r)||this,r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}function ro(t,e,n,i,r){return i=ex.call(this,i)||this,i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=r||!1,i}function oo(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Sg;for(n=0;n<2;n++)this._axes[n]=new Sg;t&&this.fromBoundingRect(t,e)}function ao(){var t=null!==nx&&nx.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function so(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(w(r)?(a=o,o=r,r=null):T(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=R(l.duration,200),h=R(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=w(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function lo(t,e,n,i,r,o){so("update",t,e,n,i,r,o)}function uo(t,e,n,i,r,o){so("enter",t,e,n,i,r,o)}function ho(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function co(t,e,n,i,r,o){ho(t)||so("leave",t,e,n,i,r,o)}function po(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),co(t,{style:{opacity:0}},e,n,i)}function fo(t){return yv.extend(t)}function go(t,e){return dx(t,e)}function yo(t,e){px[t]=e}function mo(t){if(px.hasOwnProperty(t))return px[t]}function vo(t,e,n,i){return t=new h_(Hr(t,e)),n&&("center"===i&&(n=xo(n,t.getBoundingRect())),bo(t,n)),t}function _o(t,e,n){var i=new bv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(xo(e,t)))}});return i}function xo(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function wo(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new yv(e)).createPathProxy(),e.buildPath=function(t){var e;Vr(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function bo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function So(t,e){return Vi(t,t,{lineWidth:e}),t}function Co(t,e){for(var n=Ct([]);t&&t!==e;)Mt(n,t.getLocalTransform(),n),t=t.parent;return n}function To(t,e,n){return e&&!d(e)&&(e=Uy.getLocalTransform(e)),st([],t,e=n?At([],e):e)}function Mo(t){return!t.isGroup}function Io(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var r,o;t&&e&&(o={},t.traverse(function(t){Mo(t)&&t.anid&&(o[t.anid]=t)}),r=o,e.traverse(function(t){var e,o;Mo(t)&&t.anid&&(e=r[t.anid])&&(o=i(t),t.attr(i(e)),lo(t,o,n,Ev(t).dataIndex))}))}function ko(t,e){return g(t,function(t){var n=t[0],n=hx(n,e.x),t=(n=cx(n,e.x+e.width),t[1]),t=hx(t,e.y);return[n,cx(t,e.y+e.height)]})}function Do(t,e){var n=hx(t.x,e.x),i=cx(t.x+t.width,e.x+e.width),r=hx(t.y,e.y),t=cx(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function Ao(t,e,n){var e=l({rectHover:!0},e),i=e.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),u(i,n),new bv(e)):vo(t.replace("path://",""),e,n,"center")}function Po(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function Oo(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=b(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&f(v(a),function(t){q(o,t)||(o[t]=a[t],o.$vars.push(t))}),Ev(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:u({content:i,encodeHTMLContent:!0,formatterParams:o},e)}}function Lo(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Ro(t,e){if(t)if(x(t))for(var n=0;n<t.length;n++)Lo(t[n],e);else Lo(t,e)}function Eo(t,e){for(var n=0;n<Wv.length;n++){var i=Wv[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function No(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?w(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<Wv.length;u++){var h=Wv[u],c=e[h];l[h]=R(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function Bo(t,e,n,i){n=n||yx;for(var r=t instanceof Pv,o=!1,a=0;a<Uv.length;a++)if((p=e[Uv[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Pv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=No(n,e),u=e.normal,h=!!u.getShallow("show"),c=Fo(u,i&&i.normal,n,!1,!r);for(c.text=l.normal,r||t.setTextConfig(Vo(u,n,!1)),a=0;a<Wv.length;a++){var p,d,f,g=Wv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!R(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Fo(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Vo(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(xx(s).setLabelText=function(t){t=No(n,e,t),Eo(s,t)})}else s&&(s.ignore=!0);t.dirty()}function zo(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Wv.length;i++){var r=Wv[i];n[r]=t.getModel([r,e])}return n}function Fo(t,e,n,i,r){var o,a={},s=a,u=t,h=n,c=i,p=r;h=h||yx;var d,t=u.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||yx).rich;if(n){e=e||{};for(var i=v(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}(u);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(o=u.getModel(["rich",y]),Ho(d[y]={},o,f,h,c,p,!1,!0));return d&&(s.rich=d),(t=u.get("overflow"))&&(s.overflow=t),null!=(t=u.get("minMargin"))&&(s.margin=t),Ho(s,u,f,h,c,p,!0,!1),e&&l(a,e),a}function Vo(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=R(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Ho(t,e,n,i,r,o,a,s){n=!r&&n||yx;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=R(e.getShallow("opacity"),n.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),R(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),R(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),R(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=r||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<mx.length;p++){var d=mx[p];null!=(f=R(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<vx.length;p++)d=vx[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<_x.length;p++){var f,d=_x[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType"),null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Go(t,e,n,i,r){var o,a,s,l=xx(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=R(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?uo:lo)(t,{percent:1},i,e,null,function(i){var u=ui(n,l.precision,a,s,i),i=(l.interpolatedValue=1===i?null:u,No({labelDataIndex:e,labelFetcher:r,defaultText:o?o(u):u+""},l.statesModels,u));Eo(t,i)}))}function Wo(){}function Uo(){}function jo(){}function Yo(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function Xo(t){return[t||"",Lx++].join("_")}function qo(t,e){t=t.toUpperCase(),zx[t]=new Ox(e),Bx[t]=e}function Zo(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ko(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 $o(t,e,n,i){var t=Bn(t),r=t[ta(n)](),o=t[ea(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[na(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[ia(n)](),h=(u-1)%12+1,c=t[ra(n)](),p=t[oa(n)](),t=t[aa(n)](),n=12<=u?"pm":"am",d=n.toUpperCase(),i=(i instanceof Ox?i:zx[i||Fx]||zx[Nx]).getModel("time"),f=i.get("month"),g=i.get("monthAbbr"),y=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,n+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,Zo(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,Zo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Zo(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Zo(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Zo(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Zo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zo(t,3)).replace(/{S}/g,t+"")}function Qo(t,e){var t=Bn(t),n=t[ea(e)]()+1,i=t[na(e)](),r=t[ia(e)](),o=t[ra(e)](),a=t[oa(e)](),t=0===t[aa(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Jo(t,e,n){var i=C(t)?Bn(t):t;switch(e=e||Qo(t,n)){case"year":return i[ta(n)]();case"half-year":return 6<=i[ea(n)]()?1:0;case"quarter":return Math.floor((i[ea(n)]()+1)/4);case"month":return i[ea(n)]();case"day":return i[na(n)]();case"half-day":return i[ia(n)]()/24;case"hour":return i[ia(n)]();case"minute":return i[ra(n)]();case"second":return i[oa(n)]();case"millisecond":return i[aa(n)]()}}function ta(t){return t?"getUTCFullYear":"getFullYear"}function ea(t){return t?"getUTCMonth":"getMonth"}function na(t){return t?"getUTCDate":"getDate"}function ia(t){return t?"getUTCHours":"getHours"}function ra(t){return t?"getUTCMinutes":"getMinutes"}function oa(t){return t?"getUTCSeconds":"getSeconds"}function aa(t){return t?"getUTCMilliseconds":"getMilliseconds"}function sa(t){return t?"setUTCMonth":"setMonth"}function la(t){return t?"setUTCDate":"setDate"}function ua(t){return t?"setUTCHours":"setHours"}function ha(t){return t?"setUTCMinutes":"setMinutes"}function ca(t){return t?"setUTCSeconds":"setSeconds"}function pa(t){return t?"setUTCMilliseconds":"setMilliseconds"}function da(t){var e;return Gn(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function fa(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function ga(t,e,n){function i(t){return t&&F(t)?t:"-"}function r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Bn(t):t;if(!isNaN(+o))return $o(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?S(t)?i(t):C(t)&&r(t)?t+"":"-":r(o=Hn(t))?da(o):S(t)?i(t):"boolean"==typeof t?t+"":"-"}function ya(t,e){return"{"+t+(null==e?"":e)+"}"}function ma(t,e,n){var i=(e=x(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Kx[o];t=t.replace(ya(a),ya(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(ya(Kx[l],s),n?yt(u):u)}return t}function va(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yt(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function _a(t,e){return e=e||"transparent",b(t)?t:T(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function xa(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}function wa(t,e,n,i,r){var o=0,a=0,s=(null==i&&(i=1/0),null==r&&(r=1/0),0);e.eachChild(function(l,u){var h,c,p,d=l.getBoundingRect(),u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(c=d.width+(u?-u.x+d.x:0),i<(h=o+c)||l.newline?(o=0,h=c,a+=s+n,d.height):Math.max(s,d.height)):(c=d.height+(u?-u.y+d.y:0),r<(p=a+c)||l.newline?(o+=s+n,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=p+n)})}function ba(t,e,n){n=Zx(n||0);var i=e.width,r=e.height,o=An(t.left,i),a=An(t.top,r),e=An(t.right,i),s=An(t.bottom,r),l=An(t.width,i),u=An(t.height,r),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-o),isNaN(u)&&(u=r-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/r<p?l=.8*i:u=.8*r),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(o)&&(o=i-e-l-c),isNaN(a)&&(a=r-s-u-h),t.left||t.right){case"center":o=i/2-l/2-n[3];break;case"right":o=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h}return o=o||0,a=a||0,isNaN(l)&&(l=i-c-o-(e||0)),isNaN(u)&&(u=r-h-a-(s||0)),p=new Og(o+n[3],a+n[0],l,u),p.margin=n,p}function Sa(t){return t=t.layoutMode||t.constructor.layoutMode,T(t)?t:t?{type:t}:null}function Ca(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if($x(n,function(e){u[e]=t[e]}),$x(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null);else if(2!==h&&l){if(!(2<=l))for(var c=0;c<n.length;c++){var p=n[c];if(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){$x(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize,n=(x(s)||(s=[s,s]),i(Jx[0],0)),l=i(Jx[1],1);a(Jx[0],t,n),a(Jx[1],t,l)}function Ta(t){return e={},(n=t)&&e&&$x(Qx,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}function Ma(t,e,n){return t=ew.call(this,t,e,n)||this,t.uid=Xo("ec_cpt_model"),t}function Ia(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function ka(t,e,n){function i(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function r(t){return t=t.dimsDef,t?t.length:1}var o,a,s,l,u,h={},c=Da(e);return c&&t&&(o=[],a=[],e=e.ecModel,e=bw(e).datasetMap,c=c.uid+"_"+n.seriesLayoutBy,f(t=t.slice(),function(e,n){e=T(e)?e:t[n]={name:e},"ordinal"===e.type&&null==s&&(s=n,l=r(e)),h[e.name]=[]}),u=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var n,l=t.name,t=r(t);null==s?(n=u.valueWayDim,i(h[l],n,t),i(a,n,t),u.valueWayDim+=t):s===e?(i(h[l],0,t),i(o,0,t)):(n=u.categoryWayDim,i(h[l],n,t),i(a,n,t),u.categoryWayDim+=t)}),o.length&&(h.itemName=o),a.length)&&(h.seriesName=a),h}function Da(t){if(!t.get("data",!0))return si(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},cm).models[0]}function Aa(t,e){function n(t){var e=b(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?ww.Might:ww.Not:e&&"-"!==t?ww.Must:void 0}var i,r,o,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,u=t.dimensionsDefine,h=t.startIndex,c=e;if(!I(a)){if(u&&(T(u=u[c])?(r=u.name,o=u.type):b(u)&&(r=u)),null!=o)return"ordinal"===o?ww.Must:ww.Not;if(s===fw){var p=a;if(l===xw){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(i=n(d[h+f])))return i}else for(f=0;f<p.length&&f<5;f++){var g=p[h+f];if(g&&null!=(i=n(g[c])))return i}}else if(s===gw){var y=a;if(!r)return ww.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(i=n(v[r])))return i}else if(s===yw){if(u=a,!r)return ww.Not;if(!(d=u[r])||I(d))return ww.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(i=n(d[f])))return i}else if(s===dw)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=Zn(v=m[f]);if(!x(_))return ww.Not;if(null!=(i=n(_[c])))return i}}return ww.Not}function Pa(){}function Oa(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function La(){return null!==hw&&hw.apply(this,arguments)||this}function Ra(t,e,n){var i,r;return x(e)?(i=U(),f(e,function(t){null!=t&&null!=Jn(t,null)&&i.set(t,!0)}),m(n,function(e){return e&&i.get(e[t])})):(r=Jn(e,null),m(n,function(e){return e&&null!=r&&e[t]===r}))}function Ea(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function Na(t){var e=U();return t&&f(Xn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Ba(t){f(Aw,function(e){this[e]=Qf(t[e],t)},this)}function za(){this._coordinateSystems=[]}function Fa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Va(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Bw.length;n<i;n++){var r=Bw[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ha(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,r=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,u(t[e],i)):t[e]=i),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function Ga(t){Ha(t,"itemStyle"),Ha(t,"lineStyle"),Ha(t,"areaStyle"),Ha(t,"label"),Ha(t,"labelLine"),Ha(t,"upperLabel"),Ha(t,"edgeLabel")}function Wa(t,e){var n=Nw(t)&&t[e],i=Nw(n)&&n.textStyle;if(i)for(var r=0,o=um.length;r<o;r++){var a=um[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Ua(t){t&&(Ga(t),Wa(t,"label"),t.emphasis)&&Wa(t.emphasis,"label")}function ja(t){return x(t)?t:t?[t]:[]}function Ya(t){return(x(t)?t[0]:t)||{}}function Xa(t,e){Ew(ja(t.series),function(t){if(Nw(t)&&Nw(t)){Va(t),Ga(t),Wa(t,"label"),Wa(t,"upperLabel"),Wa(t,"edgeLabel"),t.emphasis&&(Wa(t.emphasis,"label"),Wa(t.emphasis,"upperLabel"),Wa(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Va(e),Ua(e)),t.markLine),i=(n&&(Va(n),Ua(n)),t.markArea),r=(i&&Ua(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!I(o))for(var a=0;a<o.length;a++)Ua(o[a]);f(t.categories,function(t){Ga(t)})}if(r&&!I(r))for(a=0;a<r.length;a++)Ua(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Ua(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)x(l[a])?(Ua(l[a][0]),Ua(l[a][1])):Ua(l[a]);"gauge"===t.type?(Wa(t,"axisLabel"),Wa(t,"title"),Wa(t,"detail")):"treemap"===t.type?(Ha(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ga(t)})):"tree"===t.type&&Ga(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ew(n,function(e){Ew(ja(t[e]),function(t){t&&(Wa(t,"axisLabel"),Wa(t.axisPointer,"label"))})}),Ew(ja(t.parallel),function(t){t=t&&t.parallelAxisDefault,Wa(t,"axisLabel"),Wa(t&&t.axisPointer,"label")}),Ew(ja(t.calendar),function(t){Ha(t,"itemStyle"),Wa(t,"dayLabel"),Wa(t,"monthLabel"),Wa(t,"yearLabel")}),Ew(ja(t.radar),function(t){Wa(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Ew(ja(t.geo),function(t){Nw(t)&&(Ua(t),Ew(ja(t.regions),function(t){Ua(t)}))}),Ew(ja(t.timeline),function(t){Ua(t),Ha(t,"label"),Ha(t,"itemStyle"),Ha(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){T(t)&&(Ha(t,"label"),Ha(t,"itemStyle"))})}),Ew(ja(t.toolbox),function(t){Ha(t,"iconStyle"),Ew(t.feature,function(t){Ha(t,"iconStyle")})}),Wa(Ya(t.axisPointer),"label"),Wa(Ya(t.tooltip).axisPointer,"label")}function qa(t){t&&f(zw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Za(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Vw.length;n++){var i=Vw[n][1],r=Vw[n][0];null!=e[i]&&(e[r]=e[i])}}function Ka(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function $a(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Qa(t,e){Xa(t,e),t.series=Xn(t.series),f(t.series,function(t){if(T(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ka(t.label),(e=t.data)&&!I(e))for(var i=0;i<e.length;i++)Ka(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){for(var o,a=t,s="itemStyle.color",l=s.split(","),h=a,c=0;c<l.length-1;c++)null==h[o=l[c]]&&(h[o]={}),h=h[o];null!=h[l[c]]||(h[l[c]]=r)}}else if("bar"===n){if(Za(t),Za(t.backgroundStyle),Za(t.emphasis),(e=t.data)&&!I(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Za(e[i]),Za(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),$a(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,$a)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&u(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),qa(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Fw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){qa(t)})})}function Ja(t){f(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,p,d=a.get(e.stackedDimension,h);if(isNaN(d))return r;s?p=a.getRawIndex(h):c=a.get(e.stackedByDimension,h);for(var f,g,y,m=NaN,v=n-1;0<=v;v--){var _=t[v];if(0<=(p=s?p:_.data.rawIndexOf(_.stackedByDimension,c))&&(_=_.data.getByRawIndex(_.stackResultDimension,p),"all"===l||"positive"===l&&0<_||"negative"===l&&_<0||"samesign"===l&&0<=d&&0<_||"samesign"===l&&d<=0&&_<0)){f=d,g=_,y=void 0,y=Math.max(On(f),On(g)),f+=g,d=am<y?f:Pn(f,y),m=_;break}}return i[0]=d,i[1]=m,i})})}function ts(t){return t instanceof Hw}function es(t,e,n){n=n||is(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:rs(r),startIndex:a,dimensionsDetectedCount:o};var s;return e===fw?(s=t,"auto"===i||null==i?os(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],os(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===xw?s.length:s[0]?s[0].length:null):e===gw?r=r||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return v(e)}(t):e===yw?r||(r=[],f(t,function(t,e){r.push(e)})):e===dw&&(i=Zn(t[0]),o=x(i)&&i.length||1),{startIndex:a,dimensionsDefine:rs(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Hw({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function ns(t){return new Hw({data:t,sourceFormat:I(t)?mw:dw})}function is(t){var e=vw;if(I(t))e=mw;else if(x(t)){0===t.length&&(e=fw);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(x(r)||I(r)){e=fw;break}if(T(r)){e=gw;break}}}}else if(T(t))for(var o in t)if(q(t,o)&&d(t[o])){e=yw;break}return e}function rs(t){var e;if(t)return e=U(),g(t,function(t,n){var i,t={name:(t=T(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=e.get(t.name))?t.name+="-"+i.count++:e.set(t.name,{count:1})),t})}function os(t,e,n,i){if(e===xw)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function as(t){return(t=t.sourceFormat)===gw||t===yw}function ss(t,e){var t=ts(t)?t:ns(t),n=(this._source=t,this._data=t.data);t.sourceFormat===mw&&(this._offset=0,this._dimSize=e,this._data=n),Dw(this,n,t)}function ls(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function us(t,e,n,i){return t[i]}function hs(t,e){return Yw[gs(t,e)]}function cs(t,e,n){return t.length}function ps(t,e){return Xw[gs(t,e)]}function ds(t,e,n){return t[e]}function fs(t){return qw[t]}function gs(t,e){return t===fw?t+"_"+e:t}function ys(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),fs(i)(e,t,n)):(r=e,i===dw?Zn(e):r)}}function ms(){}function vs(t){var e,n;return T(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function _s(t){return new ib(t)}function xs(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ws(){return Qw<$w?Qw++:null}function bs(){var t=Qw%eb*Jw+Math.ceil(Qw/eb),t=$w<=Qw?null:t<tb?t:Qw;return Qw++,t}function Ss(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||C(t)||null==t||"-"===t?t:+Bn(t))||""===t?NaN:Number(t)}function Cs(t){return ob.get(t)}function Ts(t,e){C(e)||jn(""),this._opFn=ab[t],this._rvalFloat=Hn(e)}function Ms(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function Is(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Hn(e)}function ks(){}function Ds(t){return Rs(t.sourceFormat)||jn(""),t.data}function As(t){var e=t.sourceFormat,n=t.data;if(Rs(e)||jn(""),e===fw){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===gw){for(i=[],r=0,o=n.length;r<o;r++)i.push(l({},n[r]));return i}}function Ps(t,e,n){if(null!=n)return C(n)||!isNaN(n)&&!q(e,n)?t[n]:q(e,n)?e[n]:void 0}function Os(t){return a(t)}function Ls(t,e){var n=Xn(t),t=n.length;t||jn("");for(var i=0,r=t;i<r;i++)e=function(t,e){e.length||jn(""),T(t)||jn("");var n=t.type,i=pb.get(n);return i||jn(""),n=g(e,function(t){var e=t,t=i,n=new cb,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==_w&&jn(""),[]),l={};if(c=e.dimensionsDefine)f(c,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(q(l,n)&&jn(""),l[n]=e)});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=hs(o,_w),c=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,a,s,t)},n.getRawData=Qf(Ds,null,e)),n.cloneRawData=Qf(As,null,e),ps(o,_w)),p=(n.count=Qf(c,null,r,a,s),fs(o)),d=(n.retrieveValue=function(t,e){return t=h(r,a,s,t),d(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=Qf(Ps,null,s,l),n.cloneAllDimensionInfo=Qf(Os,null,s),n}),g(Xn(i.transform({upstream:n[0],upstreamList:n,config:a(t.config)})),function(t,n){T(t)||jn(""),t.data||jn(""),Rs(is(t.data))||jn("");var i=e[0],n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:_w,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:_w,sourceHeader:0,dimensions:t.dimensions};return es(t.data,n,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Rs(t){return t===fw||t===gw}function Es(t){return 65535<t?db:fb}function Ns(){return[1/0,-1/0]}function Bs(t,e,n,i,r){if(n=yb[n||"float"],r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}function zs(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}function Fs(t,e,n,i){return Ss(t[i],this._dimensions[i])}function Vs(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Hs(t){t.option.transform&&V(t.option.transform)}function Gs(t){return"series"===t.mainType}function Ws(t){throw new Error(t)}function Us(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+yt(i+"")+"px;color:"+yt(n)+";font-weight:"+yt(r+""),valueStyle:"font-size:"+yt(a+"")+"px;color:"+yt(o)+";font-weight:"+yt(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}function js(t,e){return e.type=t,e}function Ys(t){return"section"===t.type}function Xs(t){return Ys(t)?qs:Zs}function qs(t,e,n,i){var r,o=e.noHeader,a=(u=function t(e){var n,i,r;return Ys(e)?(n=0,i=e.blocks.length,r=1<i||0<i&&!e.noHeader,f(e.blocks,function(e){var i=t(e);n<=i&&(n=i+ +(r&&(!i||Ys(e)&&!e.noHeader)))}),n):0}(e),{html:xb[u],richText:wb[u]}),s=[],u=e.blocks||[],h=(z(!u||x(u)),u=u||[],t.orderMode),c=(e.sortBlocks&&h&&(u=u.slice(),q(c={valueAsc:"asc",valueDesc:"desc"},h)?(r=new lb(c[h],null),u.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===h&&u.reverse()),f(u,function(n,r){var o=e.valueFormatter,o=Xs(n)(o?l(l({},t),{valueFormatter:o}):t,n,0<r?a.html:0,i);null!=o&&s.push(o)}),"richText"===t.renderMode?s.join(a.richText):$s(s.join(""),o?n:a.html));return o?c:(h=ga(e.header,"ordinal",t.useUTC),u=Us(i,t.renderMode).nameStyle,"richText"===t.renderMode?Qs(t,h,u)+a.richText+c:$s('<div style="'+u+";"+_b+';">'+yt(h)+"</div>"+c,n))}function Zs(t,e,n,i){var r,o,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return g(t=x(t)?t:[t],function(t,e){return ga(t,x(o)?o[e]:o,d)})};if(!u||!h)return r=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":ga(p,"ordinal",d),o=e.valueType,f=h?[]:f(e.value,e.dataIndex),e=!c||!u,a=!c&&u,i=Us(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":r)+(u?"":Qs(t,p,s))+(h?"":function(t,e,n,i,r){return r=[r],i=i?10:20,n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,r)}(t,f,e,a,i)):$s((c?"":r)+(u?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+yt(p)+"</span>")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=x(t)?t:[t],'<span style="'+e+";"+i+'">'+g(t,yt).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,i)),n)}function Ks(t,e,n,i,r,o){if(t)return Xs(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function $s(t,e){return'<div style="margin: '+e+"px 0 0;"+_b+';">'+t+'<div style="clear:both"></div></div>'}function Qs(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Js(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function tl(){this.richTextStyles={},this._nextStyleNameId=Wn()}function el(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(u?p.push(js("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(h.push(t),c.push(e.type)))}var n,i,r,o,a,s,l,u,h,c,p,d=t.series,g=t.dataIndex,t=t.multipleSeries,m=d.getData(),v=m.mapDimensionsAll("defaultedTooltip"),_=v.length,w=d.getRawValue(g),b=x(w),S=(S=g,_a((C=d).getData().getItemVisual(S,"style")[C.visualDrawType]));1<_||b&&!_?(C=w,o=g,a=v,s=S,l=d.getData(),u=y(C,function(t,e,n){return n=l.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName},!1),h=[],c=[],p=[],a.length?f(a,function(t){e(ys(l,o,t),t)}):f(C,e),n=(a={inlineValues:h,inlineValueTypes:c,blocks:p}).inlineValueTypes,i=a.blocks,r=(a=a.inlineValues)[0]):_?(C=m.getDimensionInfo(v[0]),r=a=ys(m,g,v[0]),n=C.type):r=a=b?w[0]:w;var _=ti(d),v=_&&d.name||"",C=m.getName(g),b=t?v:C;return js("section",{header:v,noHeader:t||!_,sortParam:r,blocks:[js("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:n,dataIndex:g})].concat(i||[])})}function nl(t,e){return t.getName(e)||t.getId(e)}function il(){var t=null!==Cb&&Cb.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function rl(t){var e,n,i=t.name;ti(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],f(t,function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function ol(t){return t.model.getRawData().count()}function al(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),sl}function sl(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ll(t,e){f(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,_(ul,e))})}function ul(t,e){return t=hl(t),t&&t.setOutputEnd((e||this).count()),e}function hl(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}function cl(){this.group=new Jy,this.uid=Xo("viewComponent")}function pl(){var t=ri();return function(e){var n=t(e),e=e.pipelineContext,i=!!n.large,r=!!n.progressiveRender,o=n.large=!(!e||!e.large),n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==o&&r==n)&&"reset"}}function dl(){this.group=new Jy,this.uid=Xo("viewChart"),this.renderTask=_s({plan:yl,reset:ml}),this.renderTask.context={view:this}}function fl(t,e,n){t&&Or(t)&&("emphasis"===e?yr:mr)(t,n)}function gl(t,e,n){var i,r=ii(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=Bv[e])&&Nv<=32?Bv[e]=Nv++:i):null;null!=r?f(Xn(r),function(e){fl(t.getItemGraphicEl(e),n,o)}):t.eachItemGraphicEl(function(t){fl(t,n,o)})}function yl(t){return kb(t.model)}function ml(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Ib(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Ab[o]}function vl(t,e,n){function i(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o=(new Date).getTime(),s=this,l=t;var d=u||e,f=u||n;u=null,a=o-(f?h:c)-d,clearTimeout(p),f?p=setTimeout(i,d):0<=a?i():p=setTimeout(i,-a),h=o}var o,a,s,l,u,h=0,c=0,p=null;return e=e||0,r.clear=function(){p&&(clearTimeout(p),p=null)},r.debounceNextCall=function(t){u=t},r}function _l(t,e,n,i){var r=t[e];if(r){var o=r[Pb]||r,a=r[Lb];if(r[Ob]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=vl(o,n,"debounce"===i))[Pb]=o,r[Lb]=i,r[Ob]=n}}}function xl(t,e){var n=t[e];n&&n[Pb]&&(n.clear&&n.clear(),t[e]=n[Pb])}function wl(t,e){return(t=t.visualStyleMapper||Eb[e])||(console.warn("Unknown style type '"+e+"'."),Eb.itemStyle)}function bl(t,e){return(t=t.visualDrawType||Nb[e])||(console.warn("Unknown style type '"+e+"'."),"fill")}function Sl(t,e,n,i){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Cl(t){t.overallReset(t.ecModel,t.api,t.payload)}function Tl(t){return t.overallProgress&&Ml}function Ml(){this.agent.dirty(),this.getDownstream().dirty()}function Il(){this.agent&&this.agent.dirty()}function kl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Dl(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Xn(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return Al(e)}):Hb}function Al(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Pl(t){return t.data.count()}function Ol(t,e){for(var n in e.prototype)t[n]=Z}function Ll(){return{axisLine:{lineStyle:{color:Ub}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function Rl(){}function El(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Nl(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,i,a=t.seriesIndex,s=t.option.selectedMap,u=r.selected,h=0;h<u.length;h++)u[h].seriesIndex===a&&(i=ii(e=t.getData(),r.fromActionPayload),n.trigger(o,{type:o,seriesId:t.id,name:x(i)?e.getName(i[0]):e.getName(i),selected:b(s)?s:l({},s)}))})}function Bl(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function zl(){this._id="__ec_inner_"+qb++}function Fl(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Vl(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_o(t.slice(8),new Og(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?vo(t.slice(7),{},new Og(e,n,i,r),a?"center":"cover"):new iS({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=Fl,o&&a.setColor(o),a}function Hl(t,e){if(null!=t)return[An((t=x(t)?t:[t,t])[0],e[0])||0,An(R(t[1],t[0]),e[1])||0]}function Gl(t){return isFinite(t)}function Wl(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),u=Gl(u)?u:.5,h=Gl(h)?h:.5,c=0<=c&&Gl(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=Gl(o)?o:0,l=Gl(l)?l:1,i=Gl(i)?i:0,u=Gl(u)?u:0,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Ul(t){return parseInt(t,10)}function jl(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||Ul(n[i])||Ul(t.style[i]))-(Ul(n[o])||0)-(Ul(n[e])||0)|0)}function Yl(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:C(r)?[r]:x(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=g(i,function(t){return t/e}),r/=e),[i,r]}function Xl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function ql(t){return"string"==typeof t&&"none"!==t}function Zl(t){return null!=(t=t.fill)&&"none"!==t}function Kl(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function $l(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Ql(t,e,n){var n=vi(e.image,e.__image,n);if(xi(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*ig),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}function Jl(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(nu(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Tm.opacity:o),!i&&e.blend===n.blend||(a||(nu(t,r),a=!0),t.globalCompositeOperation=e.blend||Tm.blend);for(var s=0;s<oS.length;s++){var l=oS[s];!i&&e[l]===n[l]||(a||(nu(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(nu(t,r),a=!0),t.shadowColor=e.shadowColor||Tm.shadowColor),a}function tu(t,e,n,i,r){var o=iu(e,r.inHover),a=i?null:n&&iu(n,r.inHover)||{};if(o!==a){var s=Jl(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(nu(t,r),s=!0),ql(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(nu(t,r),s=!0),ql(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(nu(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(nu(t,r),s=!0),t.lineWidth=n);for(var l=0;l<aS.length;l++){var u=aS[l],h=u[0];!i&&o[h]===a[h]||(s||(nu(t,r),s=!0),t[h]=o[h]||u[1])}}}function eu(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}function nu(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function iu(t,e){return e&&t.__hoverStyle||t.style}function ru(t,e){ou(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ou(t,e,n,i){var r=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,a)){if(a&&a.length&&(nu(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){nu(t,n),t.save();for(var u=o,h=t,a=n,c=!1,p=0;p<u.length;p++){var d=u[p],c=c||d.isZeroArea();eu(h,d),h.beginPath(),d.buildPath(h,d.shape),h.clip()}a.allClipped=c,s=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,C,T,M,I,k,D,A,P,O,L,R,E,N,a=n.prevEl,B=(a||(l=s=!0),e instanceof yv&&e.autoBatch&&(o=e.style,B=Zl(o),f=Xl(o),!(o.lineDash||!(+B^+f)||B&&"string"!=typeof o.fill||f&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),s=(s||(f=r,o=a.transform,f&&o?f[0]!==o[0]||f[1]!==o[1]||f[2]!==o[2]||f[3]!==o[3]||f[4]!==o[4]||f[5]!==o[5]:f||o)?(nu(t,n),eu(t,e)):B||nu(t,n),iu(e,n.inHover));if(e instanceof yv)n.lastDrawType!==sS&&(l=!0,n.lastDrawType=sS),tu(t,e,a,l,n),B&&(n.batchFill||n.batchStroke)||t.beginPath(),r=t,o=e,G=B,k=Xl(m=s),D=Zl(m),A=m.strokePercent,P=A<1,O=!o.path,o.silent&&!P||!O||o.createPathProxy(),L=o.path||rS,R=o.__dirty,G||(v=m.fill,N=m.stroke,_=D&&!!v.colorStops,x=k&&!!N.colorStops,w=D&&!!v.image,b=k&&!!N.image,E=M=T=C=S=void 0,(_||x)&&(E=o.getBoundingRect()),_&&(S=R?Wl(r,v,E):o.__canvasFillGradient,o.__canvasFillGradient=S),x&&(C=R?Wl(r,N,E):o.__canvasStrokeGradient,o.__canvasStrokeGradient=C),w&&(T=R||!o.__canvasFillPattern?Ql(r,v,o):o.__canvasFillPattern,o.__canvasFillPattern=T),b&&(M=R||!o.__canvasStrokePattern?Ql(r,N,o):o.__canvasStrokePattern,o.__canvasStrokePattern=T),_?r.fillStyle=S:w&&(T?r.fillStyle=T:D=!1),x?r.strokeStyle=C:b&&(M?r.strokeStyle=M:k=!1)),E=o.getGlobalScale(),L.setScale(E[0],E[1],o.segmentIgnoreThreshold),r.setLineDash&&m.lineDash&&(I=(v=Yl(o))[0],H=v[1]),N=!0,(O||R&Ug)&&(L.setDPR(r.dpr),P?L.setContext(null):(L.setContext(r),N=!1),L.reset(),o.buildPath(L,o.shape,G),L.toStatic(),o.pathUpdated()),N&&L.rebuildPath(r,P?A:1),I&&(r.setLineDash(I),r.lineDashOffset=H),G||(m.strokeFirst?(k&&$l(r,m),D&&Kl(r,m)):(D&&Kl(r,m),k&&$l(r,m))),I&&r.setLineDash([]),B&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof vv)n.lastDrawType!==uS&&(l=!0,n.lastDrawType=uS),tu(t,e,a,l,n),_=t,S=e,null!=(T=(w=s).text)&&(T+=""),T&&(_.font=w.font||Nf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,C=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Yl(S))[0],C=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=C),w.strokeFirst?(Xl(w)&&_.strokeText(T,w.x,w.y),Zl(w)&&_.fillText(T,w.x,w.y)):(Zl(w)&&_.fillText(T,w.x,w.y),Xl(w)&&_.strokeText(T,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof bv)n.lastDrawType!==lS&&(l=!0,n.lastDrawType=lS),b=a,M=l,Jl(t,iu(e,(E=n).inHover),b&&iu(b,E.inHover),M,E),v=t,O=s,(o=(R=e).__image=vi(O.image,R.__image,R,R.onload))&&xi(o)&&(N=O.x||0,L=O.y||0,P=R.getWidth(),R=R.getHeight(),A=o.width/o.height,null==P&&null!=R?P=R*A:null==R&&null!=P?R=P/A:null==P&&null==R&&(P=o.width,R=o.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(o,g,y,O.sWidth,O.sHeight,N,L,P,R)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(o,g,y,P-g,R-y,N,L,P,R)):v.drawImage(o,N,L,P,R));else if(e.getTemporalDisplayables){n.lastDrawType!==hS&&(l=!0,n.lastDrawType=hS);var z,F,V=t,H=e,G=n,W=H.getDisplayables(),U=H.getTemporalDisplayables(),j=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:G.viewWidth,viewHeight:G.viewHeight,inHover:G.inHover});for(z=H.getCursor(),F=W.length;z<F;z++)(Y=W[z]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),ou(V,Y,j,z===F-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;for(var Y,X=0,q=U.length;X<q;X++)(Y=U[X]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),ou(V,Y,j,X===q-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;H.clearTemporalDisplayables(),H.notClear=!0,V.restore()}B&&i&&nu(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Wg,e.__isRendered=!1}function au(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type,e=(t.dirty&&cS.delete(t),cS.get(t));if(e)return e;for(var o,a=u(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[n],h=!0,c=0;c<dS.length;++c){var p=a[dS[c]];if(null!=p&&!x(p)&&!b(p)&&!C(p)&&"boolean"!=typeof p){h=!1;break}l.push(p)}h&&(o=l.join(",")+(r?"-svg":""),w=pS.get(o))&&(r?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(C(e))return[[o=Math.ceil(e),o]];for(var n=!0,i=0;i<e.length;++i)if(!C(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;C(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=g(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t))return[e=Math.ceil(t),e];var e=g(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),m=function t(e){if(!e||0===e.length)return[["rect"]];if(b(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!b(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)b(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),v=function(t){return g(t,su)}(f),_=su(y),w=!r&&zf.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},T=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=Un(t,v[e]);for(var i=1,e=0,n=m.length;e<n;++e)i=Un(i,m[e].length);t*=i;var r=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();w&&(w.width=T.width*n,w.height=T.height*n,d=w.getContext("2d")),d&&(d.clearRect(0,0,w.width,w.height),a.backgroundColor)&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,w.width,w.height));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(!(M<=0))for(var k=-_,D=0,A=0,P=0;k<T.height;){if(D%2==0){for(var O=A/2%m.length,L=0,R=0,E=0;L<2*T.width;){for(var N,B,z,F,V,H=0,I=0;I<f[P].length;++I)H+=f[P][I];if(H<=0)break;R%2==0&&(B=.5*(1-a.symbolSize),N=L+f[P][R]*B,B=k+y[D]*B,z=f[P][R]*a.symbolSize,F=y[D]*a.symbolSize,V=E/2%m[O].length,function(t,e,o,s,l){var u=r?1:n,l=Vl(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?(t=i.painter.renderOneToVNode(l))&&S.children.push(t):ru(d,l)}(N,B,z,F,m[O][V])),L+=f[P][R],++E,++R===f[P].length&&(R=0)}++P===f.length&&(P=0)}k+=y[D],++A,++D===y.length&&(D=0)}return h&&pS.put(o,w||S),s.image=w,s.svgElement=S,s.svgWidth=T.width,s.svgHeight=T.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?1:1/n,cS.set(t,e),t.dirty=!1,e}function su(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function lu(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return hu(this,t,e);this.id}}function uu(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return hu(this,t,e)}}function hu(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),hg.prototype[e].apply(t,n)}function cu(){return null!==wS&&wS.apply(this,arguments)||this}function pu(t,e,n){function i(t,e){return t.__prio-e.__prio}var r=VS.call(this,new jb)||this,t=(r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},b(e)&&(e=ZS[e]),r._dom=t,n.ssr&&kn(function(t){var e,t=Ev(t),n=t.dataIndex;if(null!=n)return(e=U()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),r._zr=Tn(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:R(n.useDirtyRect,!1),useCoarsePointer:R(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(r._ssr=n.ssr,r._throttledZrFlush=vl(Qf(t.flush,t),17),(e=a(e))&&Qa(e,!0),r._theme=e,r._locale=b(e=n.locale||Fx)?(n=Bx[e.toUpperCase()]||{},e===Rx||e===Ex?a(n):s(a(n),a(Bx[Nx]),!1)):s(a(e),a(Bx[Nx]),!1),r._coordSysMgr=new Ow,r._api=NS(r));return Wt(qS,i),Wt(YS,i),r._scheduler=new Vb(r,n,YS,qS),r._messageCenter=new HS,r._initEvents(),r.resize=Qf(r.resize,r),t.animation.on("frame",r._onframe,r),PS(t,r),OS(t,r),V(r),r}function du(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function fu(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Gv&&t.states.emphasis?e.push("emphasis"):t.hoverState===Hv&&t.states.blur&&e.push("blur"),t.useStates(e)}function gu(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=Math.max(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);return o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1)),r}(t,n,i,-1/0),!0}))}function yu(t,e){e.eachRendered(function(t){var e,n;ho(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function mu(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,o;t.states&&t.states.emphasis&&(ho(t)||(t instanceof yv&&((o=zv(n=t)).normalFill=n.style.fill,o.normalStroke=n.style.stroke,n=n.states.select||{},o.selectFill=n.style&&n.style.fill||null,o.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),i&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&fu(t)))})}function vu(t){QS[t]=!1}function _u(t){return $S[(e=eC,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function xu(t,e){ZS[t]=e}function wu(t){h(XS,t)<0&&XS.push(t)}function bu(t,e){Au(YS,t,e,2e3)}function Su(t){Tu("afterinit",t)}function Cu(t){Tu("afterupdate",t)}function Tu(t,e){fS.on(t,e)}function Mu(t,e,n){w(e)&&(n=e,e="");var i=T(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,jS[e]||(z(_S.test(i)&&_S.test(e)),US[i]||(US[i]={action:n,actionInfo:t}),jS[e]=i)}function Iu(t,e){Ow.register(t,e)}function ku(t,e){Au(qS,t,e,1e3,"layout")}function Du(t,e){Au(qS,t,e,3e3,"visual")}function Au(t,e,n,i,r){(w(e)||T(e))&&(n=e,e=i),0<=h(nC,n)||(nC.push(n),(i=Vb.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function Pu(t,e){KS[t]=e}function Ou(t,e,n){var i=gS.registerMap;i&&i(t,e,n)}function Lu(t){var e=(t=a(t)).type,n=(e||jn(""),e.split(":")),i=(2!==n.length&&jn(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,pb.set(e,t)}function Ru(t){return null==t?0:t.length||1}function Eu(t){return t}function Nu(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Eu,this._newKeyGetter=i||Eu,this.context=r,this._diffModeMultiple="multiple"===o}function Bu(t,e){this._encode=t,this._schema=e}function zu(t,e){var n={},i=n.encode={},r=U(),o=[],a=[],s={},l=(f(t.dimensions,function(e){var n,l,u=t.getDimensionInfo(e),h=u.coordDim;h&&(n=u.coordDimIndex,Fu(i,h)[n]=e,u.isExtraCoord||(r.set(h,1),"ordinal"!==(l=u.type)&&"time"!==l&&(o[0]=e),Fu(s,h)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),pw.each(function(t,e){var n=Fu(i,e),e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)})}),[]),u={},h=(r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u,i.label),h=(h&&h.length&&(o=h.slice()),i.tooltip);return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new cC(s,e),n}function Fu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Vu(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Hu(t){return t instanceof gC}function Gu(t){for(var e=U(),n=0;n<(t||[]).length;n++){var i=t[n],i=T(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Wu(t){var e=dC(t);return e.dimNameMap||(e.dimNameMap=Gu(t.dimensionsDefine))}function Uu(t,e){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"];for(var n,i,r=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Hu(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=b(c)?new pC({name:c}):c instanceof pC?c:new pC(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),r&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=U(),f(a,function(t){i.set(o[t].storeDimIndex,t)}))}function ju(t,e){function n(t){var e,n,i,r=x[t];return r<0?(e=T(e=h[t])?e:{name:e},n=new pC,null!=(i=e.name)&&null!=m.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),x[t]=p.length,n.storeDimIndex=t,p.push(n),n):p[r]}function i(t,e,n){null!=pw.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,c.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}ts(t)||(t=ns(t));for(var o,a,s=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],c=U(),p=[],d=(g=t,o=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,o.length,h.length,v||0),f(o,function(t){T(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=h===t.dimensionsDefine,m=y?Wu(t):Gu(h),v=e.encodeDefine,_=U(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new gb(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)n(w);_.each(function(t,e){var r,t=Xn(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(r=_.set(e,[]),f(t,function(t,o){null!=(t=b(t)?m.get(t):t)&&t<d&&i(n(r[o]=t),e,o)}))});var S=0;f(s,function(t){b(t)?(a=t,o={}):(a=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=l({},o)).ordinalMeta=t,e=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e,r,o,a,s=_.get(a);if(!1!==s){if(!(s=Xn(s)).length)for(var h=0;h<(e&&e.length||1);h++){for(;S<d&&null!=n(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=n(t),y&&null!=o.type&&(t.type=o.type),i(u(t,o),a,s),null==t.name&&e&&(T(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),r&&u(t.otherDims,r)})}});var C=e.generateCoord,M=null!=(I=e.generateCoordCount),I=C?I||1:0,k=C||"value";if(g)f(p,function(t){r(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var D=0;D<d;D++){var A=n(D);null==A.coordDim&&(A.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(k,c,M),A.coordDimIndex=0,(!C||I<=0)&&(A.isExtraCoord=!0),I--),r(A),null!=A.type||Aa(t,D)!==ww.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}for(var P=p,O=U(),L=0;L<P.length;L++){var R=P[L],E=R.name,N=O.get(E)||0;0<N&&(R.name=E+(N-1)),N++,O.set(E,N)}return new gC({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Yu(t){return"category"===t.get("type")}function Xu(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,g=(Hu(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return f(i,function(t,e){b(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,f(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function qu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Zu(t,e){return qu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Ku(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=ns(t)):h=(i=u.getSource()).sourceFormat===dw,function(t){var e=t.get("coordinateSystem"),n=new bC(e);if(e=SC[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=Ow.get(c),p=(p=r&&r.coordSysDims?g(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=w(p)?p:p?_(ka,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=ju(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&f(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=Xu(e,{schema:p,store:n}),c=new wC(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==dw||x(Zn(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function $u(t){this._setting=t||{},this._extent=[1/0,-1/0]}function Qu(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++TC}function Ju(t){return T(t)&&null!=t.value?t.value:t+""}function th(t){return"interval"===t.type||"log"===t.type}function eh(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=Vn(o/e,!0),e=(null!=n&&o<n&&(o=r.interval=n),null!=i&&i<o&&(o=r.interval=i),r.intervalPrecision=ih(o)),n=r.niceTickExtent=[Pn(Math.ceil(t[0]/o)*o,e),Pn(Math.floor(t[1]/o)*o,e)];return i=n,o=t,isFinite(i[0])||(i[0]=o[0]),isFinite(i[1])||(i[1]=o[1]),rh(i,0,o),rh(i,1,o),i[0]>i[1]&&(i[0]=i[1]),r}function nh(t){var e=Math.pow(10,Fn(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Pn(t*e)}function ih(t){return On(t)+2}function rh(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function oh(t,e){return t>=e[0]&&t<=e[1]}function ah(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function sh(t,e){return t*(e[1]-e[0])+e[0]}function lh(t){var t=IC.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new MC({}))&&(e=new MC({categories:g(e,function(t){return T(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function uh(){var t=null!==DC&&DC.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function hh(t){return x(t)?OC?new Float32Array(t):t:new LC(t)}function ch(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ph(t){return t.dim+t.index}function dh(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function fh(t){var e,n,i=function(t){var e,n={},i=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),i=e.dim+"_"+e.index,r=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(r,a);n[i]?n[i].push(l):n[i]=[l]}}),{});for(e in n)if(n.hasOwnProperty(e)){var r=n[e];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];0<s&&(o=null===o?s:Math.min(o,s))}i[e]=o}}return i}(t),r=[];return f(t,function(t){var e,n,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),s=(e="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(e=o.dim+"_"+o.index,e=i[e],s=Math.abs(a[1]-a[0]),n=o.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?s/n*e:s):(n=t.getData(),Math.abs(a[1]-a[0])/n.count()),An(t.get("barWidth"),e)),a=An(t.get("barMaxWidth"),e),l=An(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),u=t.get("barGap"),h=t.get("barCategoryGap");r.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:u,barCategoryGap:h,axisKey:ph(o),stackId:ch(t)})}),e={},f(r,function(t,n){var i=t.axisKey,r=t.bandWidth,r=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks,i=(e[i]=r,t.stackId),a=(o[i]||r.autoWidthCount++,o[i]=o[i]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[i].width&&(o[i].width=a,a=Math.min(r.remainedWidth,a),r.remainedWidth-=a),t.barMaxWidth),a=(a&&(o[i].maxWidth=a),t.barMinWidth),o=(a&&(o[i].minWidth=a),t.barGap),i=(null!=o&&(r.gap=o),t.barCategoryGap);null!=i&&(r.categoryGap=i)}),n={},f(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(r).length,a=Math.max(35-4*s,15)+"%"),An(a,o)),l=An(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),p=(f(r,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,u-=e+l*e,h--):(e=c,n&&n<e&&(e=Math.min(n,u)),(e=i&&e<i?i:e)!==c&&(t.width=e,u-=e+l*e,h--))}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),0),d=(f(r,function(t,e){t.width||(t.width=c),p+=(i=t).width*(1+l)}),i&&(p-=i.width*l),-p/2);f(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function gh(t){return t=RC.call(this,t)||this,t.type="time",t}function yh(t,e){return 30<(t/=e?Hx:Vx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function mh(){var t=null!==BC&&BC.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new PC,t._interval=0,t}function vh(t,e){return VC(t,On(e))}function _h(t,e,n){this._prepareParams(t,e,n)}function xh(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function wh(t,e){var n,i,r,o,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new YC(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=dh("bar",c),n=!1,f(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=fh(t),c=u,t=h,s=s,a=(a=(i=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,n){if(t&&e)return t=t[ph(e)],t}(s,i.axis))&&(r=1/0,f(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,f(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(i=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function bh(t,e){var n=wh(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof jC&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Sh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new kC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new EC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(CC.getClass(e)||PC)}}function Ch(t){var e,n,i,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=r,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):b(r)?(n=r,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):w(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(Th(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Th(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Mh(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent(),a=n instanceof kC?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=Ch(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:o[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new Og(f.x,f.y,p,c));r?r.union(g):r=g}return r}}function Ih(t){return t=t.get("interval"),null==t?"auto":t}function kh(t){return"category"===t.type&&0===Ih(t.getLabelModel())}function Dh(){}function Ah(t){x(t)?f(t,function(t){Ah(t)}):0<=h(KC,t)||(KC.push(t),(t=w(t)?{install:t}:t).install($C))}function Ph(t,e){return Math.abs(t-e)<QC}function Oh(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Li(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Ph(r[0],s[0])&&Ph(r[1],s[1])||(i+=Li(r[0],r[1],s[0],s[1],e,n)),0!==i}}function Lh(t,e){for(var n=0;n<t.length;n++)st(t[n],t[n],e)}function Rh(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(lt(e,e,o),ut(n,n,o))}}function Eh(t){this.name=t}function Nh(t,e,n){return t=tT.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function Bh(t,e){return t=eT.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function zh(t,e,n){for(var i=0;i<t.length;i++)t[i]=Fh(t[i],e[i],n)}function Fh(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function Vh(t,e){var n,i,r;return g(m((t=(n=t).UTF8Encoding?(null==(r=(i=n).UTF8Scale)&&(r=1024),f(i.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Fh(i,n,r);break;case"Polygon":case"MultiLineString":zh(i,n,r);break;case"MultiPolygon":f(i,function(t,e){return zh(t,n[e],r)})}}),i.UTF8Encoding=!1,i):n).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new nT(o[0],o.slice(1)));break;case"MultiPolygon":f(i.coordinates,function(t){t[0]&&r.push(new nT(t[0],t.slice(1)))});break;case"LineString":r.push(new iT([i.coordinates]));break;case"MultiLineString":r.push(new iT(i.coordinates))}return t=new rT(n[e||"name"],r,n.cp),t.properties=n,t})}function Hh(t,e){return e=g(e,function(e){return t.scale.parse(e)}),"time"===t.type&&0<e.length&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Gh(t){var e,n,i,r,o,a=t.getLabelModel().get("customValues");return a?(e=Ch(t),{labels:Hh(t,a).map(function(n){var i={value:n};return{formattedLabel:e(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}):"category"===t.type?(r=(a=t).getLabelModel(),o=Uh(a,r),!r.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(n=t).scale.getTicks(),i=Ch(n),{labels:g(r,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})})}function Wh(t,e){var n,i,r,o,a,s=t.getTickModel().get("customValues");return s?{ticks:Hh(t,s)}:"category"===t.type?(s=e,r=jh(e=t,"ticks"),o=Ih(s),(a=Yh(r,o))||(s.get("show")&&!e.scale.isBlank()||(n=[]),n=w(o)?Zh(e,o,!0):"auto"===o?(a=Uh(e,e.getLabelModel()),i=a.labelCategoryInterval,g(a.labels,function(t){return t.tickValue})):qh(e,i=o,!0),Xh(r,o,{ticks:n,tickCategoryInterval:i}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Uh(t,e){var n,i=jh(t,"labels"),e=Ih(e),r=Yh(i,e);return r||Xh(i,e,{labels:w(e)?Zh(t,e):qh(t,n="auto"===e?null!=(i=oT(r=t).autoInterval)?i:oT(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:n})}function jh(t,e){return oT(t)[e]||(oT(t)[e]=[])}function Yh(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Xh(t,e,n){return t.push({key:e,value:n}),n}function qh(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}for(var r=Ch(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),e=a[0],h=o.count(),h=(0!==e&&1<u&&2<h/u&&(e=Math.round(Math.ceil(e/u)*u)),kh(t)),t=s.get("showMinLabel")||h,s=s.get("showMaxLabel")||h,c=(t&&e!==a[0]&&i(a[0]),e);c<=a[1];c+=u)i(c);return s&&c-u!==a[1]&&i(a[1]),l}function Zh(t,e,n){var i=t.scale,r=Ch(t),o=[];return f(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function Kh(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function $h(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Qh(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-r)*(u-r)+(s-o)*(s-o))}function Jh(t,e,n,i,r,o,a){return n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),n=t+n,i=e+i,t=a[0]=Math.min(Math.max(r,t),n),n=a[1]=Math.min(Math.max(o,e),i),Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}function tc(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case lT.M:p=f=m[x++],d=g=m[x++];break;case lT.L:b=Qh(p,d,m[x],m[x+1],v,_,hT,!0),p=m[x++],d=m[x++];break;case lT.C:b=te(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,hT),p=m[x++],d=m[x++];break;case lT.Q:b=oe(p,d,m[x++],m[x++],m[x],m[x+1],v,_,hT),p=m[x++],d=m[x++];break;case lT.A:var S=m[x++],C=m[x++],T=m[x++],M=m[x++],I=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(I)*T+S,P=Math.sin(I)*M+C;x<=1&&(f=A,g=P),P=(A=I)+k,D=D,a=(v-S)*(o=M)/T+S,s=_,l=hT,c=h=u=void 0,a-=i=S,s-=r=C,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,b=Math.abs(A-P)%sT<1e-4||((P=D?(D=A,A=Oi(P),Oi(D)):(A=Oi(A),Oi(P)))<A&&(P+=sT),(D=Math.atan2(s,a))<0&&(D+=sT),A<=D&&D<=P)||A<=D+sT&&D+sT<=P?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(A)+i)-a)*(D-a)+((h=o*Math.sin(A)+r)-s)*(h-s))<(i=((u=o*Math.cos(P)+i)-a)*(u-a)+((A=o*Math.sin(P)+r)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(I+k)*T+S,d=Math.sin(I+k)*M+C;break;case lT.R:b=Jh(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,hT);break;case lT.Z:b=Qh(p,d,f,g,v,_,hT,!0),p=f,d=g}b<y&&(y=b,n.set(hT[0],hT[1]))}return y}function ec(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||uT,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&At([],h),p=e.get("length2")||0;u&&dT.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=b=w=x=_=v=m=void 0,y),v=0,_=s,x=cT,w=fT,b=_.width,S=_.height;switch(m){case"top":x.set(_.x+b/2,_.y-v),w.set(0,-1);break;case"bottom":x.set(_.x+b/2,_.y+S+v),w.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),w.set(-1,0);break;case"right":x.set(_.x+b+v,_.y+S/2),w.set(1,0)}Sg.scaleAndAdd(pT,cT,fT,p),pT.transform(c),y=t.getBoundingRect(),y=u?u.distance(pT):t instanceof yv?tc(pT,t.path,dT):(m=dT,d=Jh((d=y).x,y.y,y.width,y.height,pT.x,pT.y,hT),m.set(hT[0],hT[1]),d),y<l&&(l=y,pT.transform(h),dT.transform(h),dT.toArray(o[0]),pT.toArray(o[1]),cT.toArray(o[2]))}i=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,cT.fromArray(i[0]),pT.fromArray(i[1]),dT.fromArray(i[2]),Sg.sub(fT,cT,pT),Sg.sub(gT,dT,pT),e=fT.len(),f=gT.len(),e<.001||f<.001||(fT.scale(1/e),gT.scale(1/f),e=fT.dot(gT),Math.cos(r)<e&&(f=Qh(pT.x,pT.y,dT.x,dT.y,cT.x,cT.y,yT,!1),mT.fromArray(yT),mT.scaleAndAdd(gT,f/Math.tan(Math.PI-r)),e=dT.x!==pT.x?(mT.x-pT.x)/(dT.x-pT.x):(mT.y-pT.y)/(dT.y-pT.y),isNaN(e)||(e<0?Sg.copy(mT,pT):1<e&&Sg.copy(mT,dT),mT.toArray(i[1]))))),n.setShape({points:o})}}}function nc(t,e,n,i){var r="normal"===n,n=r?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());r?t.useStyle(e):n.style=e}function ic(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=og(i[0],i[1]),r=og(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=at([],i[1],i[0],n/e),n=at([],i[1],i[2],n/r),r=at([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}function rc(t){for(var e=[],n=0;n<t.length;n++){var i,r,o,a,s,l,u=t[n];u.defaultAttr.ignore||(r=(i=u.label).getComputedTransform(),o=i.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=i.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new sx(o,r):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:o,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:r}))}return e}function oc(t,e,n,i,r,o){function a(){_=w.rect[e]-i,x=r-b.rect[e]-b.rect[n]}function s(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(l(e*n,0,c),(e+=t)<0&&u(-e*n,1)):u(-t*n,1))}function l(n,i,r){0!==n&&(d=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;s<c;s++){var u=t[s-1].rect,u=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(u),a+=u}if(a){var h=Math.min(Math.abs(i)/a,r);if(0<i)for(s=0;s<c-1;s++)l(o[s]*h,0,s+1);else for(s=c-1;0<s;s--)l(-o[s-1]*h,s,c)}}function h(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(c-1))),i=0;i<c-1;i++)if(0<e?l(n,0,i+1):l(-n,c-i-1,c),(t-=n)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[n]}0<f&&o&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&u(-_,.8),x<0&&u(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&h(-_),x<0&&h(x),d}}function ac(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var n=[],i=(t.sort(function(t,e){return e.priority-t.priority}),new Og(0,0,0,0)),r=0;r<t.length;r++){for(var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine,c=(i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05,o.obb),p=!1,d=0;d<n.length;d++){var f=n[d];if(i.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new sx(f.localRect,f.transform)),(c=c||new sx(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function sc(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}function lc(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function uc(){this._labelList=[],this._chartViewList=[]}function hc(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(CT(e).labelManager||(CT(e).labelManager=new ST)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=CT(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function cc(t,e,n){var i=zf.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}function pc(t,e,n){var i,r=TT.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,n=n||Ny,"string"==typeof t?i=cc(t,e,n):T(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(X(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}function dc(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||Ny,this._singleCanvas=r,(this.root=t).style&&(X(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new MT(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[IT]=o).zlevel=IT,e.push(IT),this._domRoot=t):(this._width=jl(t,0,n),this._height=jl(t,1,n),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}function fc(){var t=null!==DT&&DT.apply(this,arguments)||this;return t.type="dataset",t}function gc(){var t=null!==PT&&PT.apply(this,arguments)||this;return t.type="dataset",t}function yc(t){t.registerComponentModel(AT),t.registerComponentView(OT)}function mc(){var t=null!==LT&&LT.apply(this,arguments)||this;return t.type=mc.type,t.hasSymbolVisual=!0,t}function vc(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=ys(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(ys(t,e,i[a]));return o.join(" ")}}function _c(t,e,n,i){var r=ET.call(this)||this;return r.updateData(t,e,n,i),r}function xc(t,e){this.parent.drift(t,e)}function wc(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function bc(t){return(t=null==t||T(t)?t:{isIgnore:t})||{}}function Sc(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:zo(t),cursorStyle:t.get("cursor")}}function Cc(t){this.group=new Jy,this._SymbolCtor=t||NT}function Tc(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:C(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(r,n),i=i.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(i),s="x"===r||"radius"===r?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return qu(e,t[0])&&(l=!0,t[0]=u),qu(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:r,baseAxisDim:i,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mc(t,e,n,i){var r=NaN,o=(t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Ic(t,e){return isNaN(t)||isNaN(e)}function kc(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(r<=d||d<0)break;if(Ic(g,y)){if(l){d+=o;continue}break}if(d===n)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<i;)f++,d+=o,x=e[2*(_+=o)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Ic(x,w)&&b<i;)b++,x=e[2*(_+=o)],w=e[2*_+1];var S,C,T,M,I,k,D,A,P,m=0,v=0,O=void 0,L=void 0;i<=b||Ic(x,w)?(D=g,A=y):(m=x-u,v=w-h,S=g-u,C=x-g,T=y-h,M=w-y,k=I=void 0,L="x"===s?(D=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,A=y,O=g+P*(k=Math.abs(C))*a,y):"y"===s?(A=y-(P=0<v?1:-1)*(I=Math.abs(T))*a,O=D=g,y+P*(k=Math.abs(M))*a):(I=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(k=Math.sqrt(C*C+M*M))/(k+I))),A=y-v*a*(1-S),L=y+v*a*S,O=FT(O=g+m*a*S,VT(x,g)),L=FT(L,VT(w,y)),O=VT(O,FT(x,g)),A=y-(v=(L=VT(L,FT(w,y)))-y)*I/k,D=FT(D=g-(m=O-g)*I/k,VT(u,g)),A=FT(A,VT(h,y)),O=g+(m=g-(D=VT(D,FT(u,g))))*k/I,y+(v=y-(A=VT(A,FT(h,y))))*k/I)),t.bezierCurveTo(c,p,D,A,g,y),c=O,p=L}else t.lineTo(g,y)}u=g,h=y,d+=o}return f}function Dc(t){return t=BT.call(this,t)||this,t.type="ec-polyline",t}function Ac(){return null!==WT&&WT.apply(this,arguments)||this}function Pc(t){return t=jT.call(this,t)||this,t.type="ec-polygon",t}function Oc(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Lc(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Rc(t,e){var t=Lc(t),n=t[0],t=t[1],e=Lc(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Ec(t){return C(t)?t:t?.5:0}function Nc(t,e,n,i){var e=e.getBaseAxis(),r="x"===e.dim||"radius"===e.dim?0:1,o=[],a=0,s=[],l=[],u=[],h=[];if(i){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||h.push(t[a],t[a+1]);t=h}for(a=0;a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),n){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=[];s[r]=c[r]=(l[r]+u[r])/2,s[1-r]=l[1-r],c[1-r]=u[1-r],o.push(s[0],s[1]),o.push(c[0],c[1]);break;default:s[r]=l[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function Bc(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=i.length-1;0<=o;o--){var a,s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),e=g(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){function n(t,e,n){var i=t.coord;return{coord:n,color:Se((n-i)/(e.coord-i),[t.color,e.color])}}for(var i,r,o=[],a=t.length,s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(e<u){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;return d<.001?"transparent":(f(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"}),e=new tx(0,0,0,0,n,!0),e[a]=p,e[a+"2"]=u,e)}}}function zc(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var r,o,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),r=(isNaN(i)&&(i=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*NT.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return r=e.mapDimension(a.dim),o={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function Fc(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Vc(t,e){return[t[2*e],t[2*e+1]]}function Hc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Wv.length;e++)if(t.get([Wv[e],"endLabel","show"]))return 1}function Gc(t,e,n,i){var r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},x=Hc(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,l=e.getBaseAxis().isHorizontal(),h=n,c=i,p=function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(u=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,y=Math.ceil(y),f!==Math.floor(f)&&(f=Math.floor(f),y++),_=new Iv({shape:{x:f,y:g,width:y,height:m}}),h&&(h=(v=u.getBaseAxis()).isHorizontal(),u=v.inverse,h?(u&&(_.shape.x+=y),_.shape.width=0):(u||(_.shape.y+=m),_.shape.height=0),v=w(d)?function(t){d(t,_)}:null,uo(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),h=_,i.get("clip",!0)||(u=h.shape,y=Math.max(u.width,u.height),l?(u.y-=y,u.height+=2*y):(u.x-=y,u.width+=2*y)),x&&x(1,h),h):(m=n,f=i,c=(g=e).getArea(),p=Pn(c.r0,1),v=Pn(c.r,1),l=new D_({shape:{cx:Pn(g.cx,1),cy:Pn(g.cy,1),r0:p,r:v,startAngle:c.startAngle,endAngle:c.endAngle,clockwise:c.clockwise}}),m&&("angle"===g.getBaseAxis().dim?l.shape.endAngle=c.startAngle:l.shape.r=p,uo(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Wc(){return null!==XT&&XT.apply(this,arguments)||this}function Uc(){return null!==$T&&$T.apply(this,arguments)||this}function jc(){return null!==JT&&JT.apply(this,arguments)||this}function Yc(t,e,i,r){f(nM,function(o,a){function l(){var t=null!==u&&u.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var u,h=s(s({},eM[a],!0),r,!0),h=(n(l,u=i),l.prototype.mergeDefaultAndTheme=function(t,e){var n=Sa(this),i=n?Ta(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Xc(t),n&&Ca(t,i,n)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=MC.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+a,l.defaultOption=h,l);t.registerComponentModel(h)}),t.registerSubTypeDefaulter(e+"Axis",Xc)}function Xc(t){return t.type||(t.data?"category":"value")}function qc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function Zc(t){return"interval"===t.type||"time"===t.type}function Kc(){var t=null!==rM&&rM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=iM,t}function $c(t,e,n,i,r){return t=aM.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=r||"bottom",t}function Qc(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),L(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function Jc(t){return"cartesian2d"===t.get("coordinateSystem")}function tp(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(n,i){var r=i.replace(/Model$/,""),r=t.getReferringComponents(r,cm).models[0];e[i]=r}),e}function ep(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iM,this._initCartesian(t,e,n),this.model=t}function np(t,e){return t.getCoordSysModel()===e}function ip(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)rp(a[n])&&(o=a[n]);else for(var s in a)if(a.hasOwnProperty(s)&&rp(a[s])&&!i[r(a[s])]){o=a[s];break}o&&(i[r(o)]=!0)}}function rp(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function op(t,e){this.group=new Jy,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new Jy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function ap(t){t&&(t.ignore=!0)}function sp(t,e){var n,i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r)return kt(n=Ct([]),n,-t.rotation),i.applyTransform(Mt([],n,t.getLocalTransform())),r.applyTransform(Mt([],n,e.getLocalTransform())),i.intersect(r)}function lp(t){return"middle"===t||"center"===t}function up(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(st(a,a,e),st(s,s,e)),new G_({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));So(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}function hp(t,e){var n,i,r,o,s,l,h,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=c,e=e,r=(i=t).getComponent("tooltip"),o=i.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,r,p){var d,g,y=p.model.getModel("axisPointer",o),m=y.get("show");m&&("auto"!==m||e||dp(y))&&(null==r&&(r=y.get("triggerTooltip")),m=(y=e?function(t,e,n,i,r,o){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===r&&(r=s.get(["label","show"]),e.show=null==r||r,o||(r=l.lineStyle=s.get("crossStyle"))&&u(e,r.textStyle)),t.model.getModel("axisPointer",new Ox(l,n,i))}(p,c,o,i,e,r):y).get("snap"),e=y.get("triggerEmphasis"),d=fp(p.model),g=r||m||"category"===p.type,r=n.axesInfo[d]={key:d,axis:p,coordSys:t,axisPointerModel:y,triggerTooltip:r,triggerEmphasis:e,involveSeries:g,snap:m,useHandle:dp(y),seriesModels:[],linkGroup:null},h[d]=r,n.seriesInvolved=n.seriesInvolved||g,null!=(e=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(cp(o[i+"AxisId"],n.id)||cp(o[i+"AxisIndex"],n.componentIndex)||cp(o[i+"AxisName"],n.name))return r}}(s,p)))&&((m=l[e]||(l[e]={axesInfo:{}})).axesInfo[d]=r,m.mapper=s[e].mapper,r.linkGroup=m)}var h,c,p,d,g;t.axisPointerEnabled&&(p=fp(t.model),h=n.coordSysAxesInfo[p]={},c=(n.coordSysMap[p]=t).model.getModel("tooltip",r),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&r&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(h=c,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&f(h.coordSysAxesInfo[fp(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),c}function cp(t,e){return"all"===t||x(t)&&0<=h(t,e)||t===e}function pp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fp(t)]}function dp(t){return!!t.get(["handle","show"])}function fp(t){return t.type+"||"+t.id}function gp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=gp.type,t}function yp(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.type=yp.type,t.axisPointerClass="CartesianAxisPointer",t}function mp(){var t=null!==cM&&cM.apply(this,arguments)||this;return t.type=mp.type,t}function vp(){var t=null!==SM&&SM.apply(this,arguments)||this;return t.type=bM.type,t}function _p(){var t=null!==TM&&TM.apply(this,arguments)||this;return t.type="grid",t}function xp(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=xp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wp(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type=wp.type,t}function bp(){var t=null!==OM&&OM.apply(this,arguments)||this;return t.type=bp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sp(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=Sp.type,t.newlineDisabled=!1,t}function Cp(t,e,n,i){Ip(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Mp(t,e,n,i)}function Tp(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Mp(t,e,n,i){Tp(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ip(t,e,n,i){Tp(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function kp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Dp(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),f(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),r.hasOwnProperty(t)?r[t]=r[t]&&e:r[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Ap(t){t.registerComponentModel(RM),t.registerComponentView(zM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(Dp,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(Dp,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(Dp,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(Dp,"select")),t.registerAction("legendUnSelect","legendunselected",_(Dp,"unSelect"))}function Pp(){var t=null!==FM&&FM.apply(this,arguments)||this;return t.type=Pp.type,t}function Op(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Ca(e,n,{type:"box",ignoreSize:!!i})}function Lp(){var t=null!==VM&&VM.apply(this,arguments)||this;return t.type=Lp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Rp(){this._dragging=!1,this.animationThreshold=15}function Ep(t,e,n,i){!function t(e,n){var i;return T(e)&&T(n)?(i=!0,f(n,function(n,r){i=i&&t(e[r],n)}),!!i):e===n}(YM(n).lastProp,i)&&(YM(n).lastProp=i,e?lo(n,i,t):(n.stopAnimation(),n.attr(i)))}function Np(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Bp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function zp(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Fp(t,e,n,i,r){var o=Vp(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=Zx(n.get("padding")||0),s=n.getFont(),l=cn(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Fo(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function Vp(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:Th(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(o))),a}function Hp(t,e,n){var i=St();return kt(i,i,n.rotation),It(i,i,n.position),To([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Gp(){return null!==ZM&&ZM.apply(this,arguments)||this}function Wp(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function Up(t){return"x"===t.dim?0:1}function jp(){var t=null!==QM&&QM.apply(this,arguments)||this;return t.type=jp.type,t}function Yp(t,e,n){function i(t,e){o.on(t,function(t){function n(t){var e=r[t.type];e?e.push(t):(t.dispatchAction=n,i.dispatchAction(t))}i=a;var i,r,s={dispatchAction:n,pendings:r={showTip:[],hideTip:[]}};eI(tI(o).records,function(n){n&&e(n,t,s.dispatchAction)});var l,u=s.pendings,h=a,c=u.showTip.length,p=u.hideTip.length;c?l=u.showTip[c-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,h.dispatchAction(l))})}var r,o,a;Pf.node||(r=e.getZr(),tI(r).records||(tI(r).records={}),a=e,tI(o=r).initialized||(tI(o).initialized=!0,i("click",_(qp,"click")),i("mousemove",_(qp,"mousemove")),i("globalout",Xp)),(tI(r).records[t]||(tI(r).records[t]={})).handler=n)}function Xp(t,e,n){t.handler("leave",null,n)}function qp(t,e,n,i){e.handler(t,n,i)}function Zp(t,e){Pf.node||(e=e.getZr(),(tI(e).records||{})[t]&&(tI(e).records[t]=null))}function Kp(){var t=null!==nI&&nI.apply(this,arguments)||this;return t.type=Kp.type,t}function $p(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ii(n=e.getData(),t))||s<0||x(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(g(r.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}function Qp(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||Qf(n.dispatchAction,n),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return id(x)&&(x=$p({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),i=id(x),r=w.axesInfo,o=S.axesInfo,a="leave"===v||id(x),s={},e={list:[],map:{}},u={showPointer:_(td,l={}),showTooltip:_(ed,e)},f(S.coordSysMap,function(t,e){var n=i||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var o=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(r,t);a||!n||r&&!l||null!=(l=null!=(l=l&&l.value)||i?l:o.pointToData(x))&&Jp(t,l,u,!1,s)})}),h={},f(o,function(t,e){var n=t.linkGroup;n&&!l[e]&&f(n.axesInfo,function(e,i){var i=l[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,nd(e),nd(t)))),h[t.key]=i)})}),f(h,function(t,e){Jp(o[e],t,u,!0,s)}),c=l,w=o,p=s.axesInfo=[],f(w,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),v=e,w=t,e=b,id(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=o,w=(t=n).getZr(),b="axisPointerLastHighlights",d=rI(w)[b]||{},g=rI(w)[b]={},f(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&f(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],f(d,function(t,e){g[e]||m.push(t)}),f(g,function(t,e){d[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function Jp(t,e,n,i,r){var o,a,s,u,h,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,u=s.dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData)var r=t.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=t.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;r=t.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=p)&&((n<p||0<=i&&d<0)&&(p=n,d=i,h=r,c.length=0),f(o,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(o={payloadBatch:c,snapToValue:h}).snapToValue,(g=o.payloadBatch)[0]&&null==r.seriesIndex&&l(r,g[0]),!i&&t.snap&&m.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,o,y)):n.showPointer(t,e))}function td(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ed(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=fp(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function nd(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function id(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function rd(t){mM.registerAxisPointerClass("CartesianAxisPointer",KM),t.registerComponentModel(JM),t.registerComponentView(iI),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!x(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=hp(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Qp)}function od(){var t=null!==oI&&oI.apply(this,arguments)||this;return t.type=od.type,t}function ad(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function sd(t){if(Pf.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}function ld(t,e){if(!t)return e;e=fa(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function ud(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return Pf.transformSupported?(i="translate"+((i=Pf.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+uI+":"+i+";":[["top",0],["left",0],[sI,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function hd(t,e,n){var i,r,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Js(t,"html");return o.push("box-shadow:"+h+"px "+c+"px "+l+"px "+u),e&&a&&o.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,n||(l=" "+h+"s "+c,u+=Pf.transformSupported?","+uI+l:",left"+l+",top"+l),lI+":"+u)),s&&o.push("background-color:"+s),f(["width","color","radius"],function(e){var n="border-"+e,i=fa(n),i=t.get(i);null!=i&&o.push(n+":"+i+("color"===e?"":"px"))}),o.push((r=[],e=(i=p).get("fontSize"),(a=i.getTextColor())&&r.push("color:"+a),r.push("font:"+i.getFont()),e&&r.push("line-height:"+Math.round(3*e/2)+"px"),a=i.get("textShadowColor"),e=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,h=i.get("textShadowOffsetY")||0,a&&e&&r.push("text-shadow:"+n+"px "+h+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=i.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=d&&o.push("padding:"+Zx(d).join("px ")+"px"),o.join(";")+";"}function cd(t,e,n,i,r){var o,a,s=e&&e.painter;n?(o=s&&s.getViewportRoot())&&(a=t,n=n,ft(dg,o,i,r,!0))&&ft(a,n,dg[0],dg[1]):(t[0]=i,t[1]=r,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function pd(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Pf.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(b(e)?document.querySelector(e):k(e)?e:w(e)&&e(t.getDom())),r=(cd(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=i.handler,xt(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}function dd(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),yd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function fd(t){return Math.max(0,t)}function gd(t){var e=fd(t.shadowBlur||0),n=fd(t.shadowOffsetX||0),t=fd(t.shadowOffsetY||0);return{left:fd(e-n),right:fd(e+n),top:fd(e-t),bottom:fd(e+t)}}function yd(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function md(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=md.type,t}function vd(t,e,n){for(var i=e.ecModel,r=n?(r=new Ox(n,i,i),new Ox(e.option,r,i)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(b(a=a instanceof Ox?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new Ox(a,r,i))}return r}function _d(t,e){return t.dispatchAction||Qf(e.dispatchAction,e)}function xd(t){return"center"===t||"middle"===t}function wd(t){qn(t,"label",["show"])}function bd(){var t=null!==yI&&yI.apply(this,arguments)||this;return t.type=bd.type,t.createdBySelf=!1,t}function Sd(){var t=null!==_I&&_I.apply(this,arguments)||this;return t.type=Sd.type,t}function Cd(t,e,n,i,r,o){var a=[],s=qu(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=Id(e,s,t),t=e.indicesOfNearest(s,t)[0],r=(a[r]=e.get(n,t),a[o]=e.get(s,t),e.get(i,t)),n=On(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[o]=+a[o].toFixed(n)),[a,r]}function Td(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(n=e,(isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!x(e.coord)&&x(o)&&(n=function(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){return(t=t.getData().getDimensionInfo(e))&&t.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}(e,i,r,t),(e=a(e)).type&&bI[e.type]&&n.baseAxis&&n.valueAxis?(r=h(o,n.baseAxis.dim),t=h(o,n.valueAxis.dim),n=bI[e.type](i,n.baseDataDim,n.valueDataDim,r,t),e.coord=n[0],e.value=n[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&x(o))for(var s=e.coord,l=0;l<2;l++)bI[s[l]]&&(s[l]=Id(i,i.mapDimension(o[l]),s[l]));else e.coord=[];return e}}function Md(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x)))&&isNaN(parseFloat(n.y)))||t.containData(e.coord);var n}function Id(t,e,n){var i,r;return"average"===n?(r=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,r++)}),i/r):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}function kd(){var t=null!==xI&&xI.apply(this,arguments)||this;return t.type=kd.type,t}function Dd(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a,s,l=t.getItemModel(r),u=An(l.get("x"),n.getWidth()),l=An(l.get("y"),n.getHeight());isNaN(u)||isNaN(l)?e.getMarkerPosition?s=e.getMarkerPosition(t.getValues(t.dimensions,r)):i&&(o=t.get(i.dimensions[0],r),a=t.get(i.dimensions[1],r),s=i.dataToPoint([o,a])):s=[u,l],isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l),t.setItemLayout(r,s)})}function Ad(){var t=null!==CI&&CI.apply(this,arguments)||this;return t.type=Ad.type,t}function Pd(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&jn("")}function Od(){}function Ld(){}function Rd(){}function Ed(){}function Nd(){}function Bd(t,e){if(!0===t||!1===t)return(n=new kI).value=t,n;var n;if(Fd(t)||jn(""),t.and)return zd("and",t,e);if(t.or)return zd("or",t,e);if(t.not)return n=e,Fd(o=(o=t).not)||jn(""),(l=new PI).child=Bd(o,n),l.child||jn(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=v(i),l=i.parser,u=l?Cs(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=q(MI,p)?MI[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new ub("eq"===t,e):q(ab,t)?new sb(t,e):null}(c,p)||"reg"===c&&new II(p))||jn(""),a.push(c))}return a.length||jn(""),(l=new OI).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function zd(t,e,n){return e=e[t],x(e)||jn(""),e.length||jn(""),t=new("and"===t?DI:AI),t.children=g(e,function(t){return Bd(t,n)}),t.children.length||jn(""),t}function Fd(t){return T(t)&&!d(t)}function Vd(t,e){this._cond=Bd(t,e)}function Hd(){}function Gd(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof bv)t("opacity",r);else if(null!=(o=(o=e).fill)&&o!==WI?(t("fill",(o=Ie(e.fill)).color),o=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r,(i||o<1)&&t("fill-opacity",o)):t("fill",WI),null!=(o=(o=e).stroke)&&o!==WI){var o=Ie(e.stroke),a=(t("stroke",o.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,o=null!=e.strokeOpacity?e.strokeOpacity*o.opacity*r:o.opacity*r,r=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||r)&&t("paint-order",r?"stroke":"fill"),(i||o<1)&&t("stroke-opacity",o),e.lineDash?(r=(a=Yl(n))[0],o=a[1],r&&(o=UI(o||0),t("stroke-dasharray",r.join(",")),o||i)&&t("stroke-dashoffset",o)):i&&t("stroke-dasharray",WI);for(var s=0;s<jI.length;s++){var l=jI[s];(i||e[l]!==dv[l])&&(l=e[l]||dv[l])&&t(YI[s],l)}}else i&&t("stroke",WI)}function Wd(t){return document.createElementNS(XI,t)}function Ud(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function jd(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,e=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i];!1!==r&&(!0!==r&&null!=r&&(i+='="'+r+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?yt(e):e||"")+(i?n+g(i,t).join(n)+n:"")+"</"+r+">"}(t)}function Yd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Xd(t,e,n,i){return Ud("svg","root",{width:t,height:e,xmlns:XI,"xmlns:xlink":qI,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}function qd(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Zd(t){return b(t)?JI[t]?"cubic-bezier("+JI[t]+")":ae(t)?t:"":""}function Kd(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof $_){if(u=function(t,e,n){var i,r,t=t.shape.paths,o={};if(f(t,function(t){var e=Yd(n.zrId),t=(e.animation=!0,Kd(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,u,h=t[r=e[s-1]];for(l in h){var c=h[l];o[l]=o[l]||{d:""},o[l].d+=c.d||""}for(u in a){var p=a[u].animation;0<=p.indexOf(r)&&(i=p)}}}),i)return e.d=!1,t=qd(o,n),i.replace(r,t)}(t,e,n))a.push(u);else if(!o)return}else if(!o)return;for(var s,u,h,c={},p=0;p<o;p++){var d=r[p],g=[d.getMaxTime()/1e3+"s"],y=Zd(d.getClip().easing),_=d.getDelay(),y=(g.push(y||"linear"),_&&g.push(_/1e3+"s"),d.getLoop()&&g.push("infinite"),g.join(" "));c[y]=c[y]||[y,[]],c[y][1].push(d)}for(s in c)(u=function(r){function o(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/r*100)+"%",p=Zd(h.easing),d=h.rawValue;(b(d)||C(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,u=r[1],h=u.length,c={},p={},d={},f="animation-timing-function",g=0;g<h;g++)(O=(P=u[g]).targetName)?"shape"===O&&o(P,p):i||o(P,c);for(A in c){var y={},_=(ln(y,t),l(y,c[A]),ze(y)),x=c[A][f];d[A]=_?{transform:_}:{},_=d[A],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[tk]=a+"px "+y+"px"),x&&(d[A][f]=x)}var w,S,T,M=!0;for(A in p){d[A]=d[A]||{};var I=!s,x=p[A][f],k=(s=I?new ov:s).len(),D=(s.reset(),d[A].d=(S=p[A],T=s,D=void 0,D=l({},(w=t).shape),l(D,S),w.buildPath(T,D),(S=new GI).reset(Be(w)),T.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==D){M=!1;break}x&&(d[A][f]=x)}if(!M)for(var A in d)delete d[A].d;if(!i)for(var P,O,g=0;g<h;g++)"style"===(O=(P=u[g]).targetName)&&o(P,d,function(t){return ek[t]});for(var L,R=v(d),E=!0,g=1;g<R.length;g++){var N=R[g-1],B=R[g];if(d[N][tk]!==d[B][tk]){E=!1;break}L=d[N][tk]}if(E&&L){for(var A in d)d[A][tk]&&delete d[A][tk];e[tk]=L}if(m(R,function(t){return 0<v(d[t]).length}).length)return qd(d,n)+" "+r[0]+" both"}(c[s]))&&a.push(u);a.length&&(h=n.zrId+"-cls-"+QI++,n.cssNodes["."+h]={animation:a.join(",")},e.class=h)}function $d(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+QI++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}function Qd(t){return t&&b(t.src)}function Jd(t){return t&&w(t.toDataURL)}function tf(t,e,n,i){Gd(function(r,o){var a="fill"===r||"stroke"===r;a&&Ee(o)?uf(e,t,r,i):a&&Oe(o)?hf(n,t,r,i):t[r]=a&&"none"===o?"transparent":o},e,n,!1);var r=t,o=i;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(u=n).style)){var a=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=o.shadowCache,l=s[a];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Ie(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=o.zrId+"-s"+o.shadowIdx++,o.defs[l]=Ud("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ud("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}r.filter=Ne(l)}}function ef(t,e){var n=In(e);n&&(n.each(function(e,n){null!=e&&(t[($I+n).toLowerCase()]=e+"")}),e.isSilent())&&(t[$I+"silent"]="true")}function nf(t){return ke(t[0]-1)&&ke(t[1])&&ke(t[2])&&ke(t[3]-1)}function rf(t,e,n){var i;!e||ke((i=e)[4])&&ke(i[5])&&nf(e)||(i=n?10:1e4,t.transform=nf(e)?"translate("+nk(e[4]*i)/i+" "+nk(e[5]*i)/i+")":"matrix("+De((n=e)[0])+","+De(n[1])+","+De(n[2])+","+De(n[3])+","+Ae(n[4])+","+Ae(n[5])+")")}function of(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(nk(i[o][0]*n)/n),r.push(nk(i[o][1]*n)/n);e.points=r.join(" ")}function af(t){return!t.smooth}function sf(t,e){var n,i,r,o,a,s=t.style,l=t.shape,u=ik[t.type],h={},c=e.animation,p="path",d=t.style.strokePercent,f=e.compress&&Be(t)||4;return!u||e.willUpdate||u[1]&&!u[1](l)||c&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||d<1?(c=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),n=t.path,c&&(n.beginPath(),t.buildPath(n,t.shape),t.pathUpdated()),c=n.getVersion(),r=(i=t).__svgPathBuilder,i.__svgPathVersion===c&&r&&d===i.__svgPathStrokePercent||((r=r||(i.__svgPathBuilder=new GI)).reset(f),n.rebuildPath(r,d),r.generateStr(),i.__svgPathVersion=c,i.__svgPathStrokePercent=d),h.d=r.getStr()):(p=t.type,n=Math.pow(10,f),u[0](l,h,n)),rf(h,t.transform),tf(h,s,t,e),ef(h,t),e.animation&&Kd(t,h,e),e.emphasis&&(c=h,i=e,(d=t).ignore||(d.isSilent()?$d(a={"pointer-events":"none"},c,i,!0):(!(f=(r=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(o=d.style&&d.style.fill,u=d.states.select&&d.states.select.style&&d.states.select.style.fill,u=0<=d.currentStates.indexOf("select")&&u||o)&&(f=Me(u)),(o=r.lineWidth)&&(o/=!r.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),r.stroke&&(a.stroke=r.stroke),o&&(a["stroke-width"]=o),$d(a,c,i,!0)))),Ud(p,t.id+"",h)}function lf(t,e){if(t instanceof yv)return sf(t,e);if(t instanceof bv){var n=t,i=e,r=n.style,o=r.image;if(o&&!b(o)&&(Qd(o)?o=o.src:Jd(o)&&(o=o.toDataURL())),o)return a=r.x||0,s=r.y||0,o={href:o,width:r.width,height:r.height},a&&(o.x=a),s&&(o.y=s),rf(o,n.transform),tf(o,r,n,i),ef(o,n),i.animation&&Kd(n,o,i),Ud("image",n.id+"",o)}else if(t instanceof vv){var a=t,s=e,r=a.style,i=r.text;if(null!=i&&(i+=""),i&&!isNaN(r.x)&&!isNaN(r.y)){var n=r.font||Nf,o=r.x||0,l=(t=r.y||0,e=fn(n),"top"===(l=r.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":gy[r.textAlign]||r.textAlign};if(Xi(r)){var t="",u=r.fontStyle,h=ji(r.fontSize);if(!parseFloat(h))return;var c=r.fontFamily||Ef,p=r.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),o&&(e.x=o),l&&(e.y=l),rf(e,a.transform),tf(e,r,a,s),ef(e,a),s.animation&&Kd(a,e,s),Ud("text",a.id+"",e,void 0,i)}}}function uf(t,e,n,i){var r,t=t[n],o={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Le(t))r="linearGradient",o.x1=t.x,o.y1=t.y,o.x2=t.x2,o.y2=t.y2;else{if(!Re(t))return;r="radialGradient",o.cx=R(t.x,.5),o.cy=R(t.y,.5),o.r=R(t.r,.5)}for(var a=t.colorStops,s=[],l=0,u=a.length;l<u;++l){var h=100*Ae(a[l].offset)+"%",c=Ie(a[l].color),p=c.color,c=c.opacity,h={offset:h};h["stop-color"]=p,c<1&&(h["stop-opacity"]=c),s.push(Ud("stop",l+"",h))}var t=jd(Ud(r,"",o,s)),d=i.gradientCache,f=d[t];f||(f=i.zrId+"-g"+i.gradientIdx++,d[t]=f,o.id=f,i.defs[f]=Ud(r,f,o,s)),e[n]=Ne(f)}function hf(t,e,n,i){var r,o,s,l,u,h,c,p,d=t.style[n],f=t.getBoundingRect(),g={},y=d.repeat,m="no-repeat"===y,v="repeat-x"===y,_="repeat-y"===y;Pe(d)?(o=d.imageWidth,s=d.imageHeight,y=void 0,b(c=d.image)?y=c:Qd(c)?y=c.src:Jd(c)&&(y=c.toDataURL()),"undefined"==typeof Image?(z(o,c="Image width/height must been given explictly in svg-ssr renderer."),z(s,c)):null!=o&&null!=s||(l=function(t,e){var n,i;t&&(n=t.elm,i=o||e.width,e=s||e.height,"pattern"===t.tag&&(v?(e=1,i/=f.width):_&&(i=1,e/=f.height)),t.attrs.width=i,t.attrs.height=e,n)&&(n.setAttribute("width",i),n.setAttribute("height",e))},(c=vi(y,null,t,function(t){m||l(h,t),l(r,t)}))&&c.width&&c.height&&(o=o||c.width,s=s||c.height)),r=Ud("image","img",{href:y,width:o,height:s}),g.width=o,g.height=s):d.svgElement&&(r=a(d.svgElement),g.width=d.svgWidth,g.height=d.svgHeight),r&&(m?p=u=1:v?(u=1,p=g.width/f.width):_?(p=1,u=g.height/f.height):g.patternUnits="userSpaceOnUse",null==p||isNaN(p)||(g.width=p),null==u||isNaN(u)||(g.height=u),(t=ze(d))&&(g.patternTransform=t),c=jd(h=Ud("pattern","",g,[r])),(p=(y=i.patternCache)[c])||(p=i.zrId+"-p"+i.patternIdx++,y[c]=p,g.id=p,h=i.defs[p]=Ud("pattern",p,g,[r])),e[n]=Ne(p))}function cf(t){return document.createTextNode(t)}function pf(t,e,n){t.insertBefore(e,n)}function df(t,e){t.removeChild(e)}function ff(t,e){t.appendChild(e)}function gf(t){return t.parentNode}function yf(t){return t.nextSibling}function mf(t,e){t.textContent=e}function vf(t){return void 0===t}function _f(t){return void 0!==t}function xf(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function wf(t){var e,n=t.children,i=t.tag;if(_f(i)){var r=t.elm=Wd(i);if(Cf(ak,t),x(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&ff(r,wf(o))}else _f(t.text)&&!T(t.text)&&ff(r,cf(t.text))}else t.elm=cf(t.text);return t.elm}function bf(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&pf(t,wf(o),e)}}function Sf(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(_f(r.tag)?df(gf(r.elm),r.elm):df(t,r.elm))}}function Cf(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==ok?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(ZI,n,a):n.charCodeAt(3)===rk?i.setAttributeNS(KI,n,a):n.charCodeAt(5)===rk?i.setAttributeNS(qI,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function Tf(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:xf(u,p)?(Mf(u,p),u=e[++a],p=n[++s]):xf(h,d)?(Mf(h,d),h=e[--l],d=n[--c]):xf(u,d)?(Mf(u,d),pf(t,u.elm,yf(h.elm)),u=e[++a],d=n[--c]):(xf(h,p)?(Mf(h,p),pf(t,h.elm,u.elm),h=e[--l]):(vf(i)&&(i=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(e,a,l)),vf(r=i[p.key])||(o=e[r]).tag!==p.tag?pf(t,wf(p),u.elm):(Mf(o,p),e[r]=void 0,pf(t,o.elm,u.elm))),p=n[++s]);(a<=l||s<=c)&&(l<a?bf(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Sf(t,e,a,l))}function Mf(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Cf(t,e),vf(e.text)?_f(i)&&_f(r)?i!==r&&Tf(n,i,r):_f(r)?(_f(t.text)&&mf(n,""),bf(n,null,r,0,r.length-1)):_f(i)?Sf(n,i,0,i.length-1):_f(t.text)&&mf(n,""):t.text!==e.text&&(_f(i)&&Sf(n,i,0,i.length-1),mf(n,e.text)))}function If(t,e,n){var i;this.type="svg",this.refreshHover=kf(),this.configLayer=kf(),this.storage=e,this._opts=n=l({},n),this.root=t,this._id="zr"+sk++,this._oldVNode=Xd(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=Wd("svg"),Cf(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function kf(){return function(){}}var Df=function(t,e){return(Df=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])}))(t,e)},Af=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Pf=new function(){this.browser=new Af,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Pf.wxa=!0,Pf.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Pf.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Pf.node=!0,Pf.svgSupported=!0):(qf=navigator.userAgent,sg=(rg=Pf).browser,$f=qf.match(/Firefox\/([\d.]+)/),Gf=qf.match(/MSIE\s([\d.]+)/)||qf.match(/Trident\/.+?rv:(([\d.]+))/),Xf=qf.match(/Edge?\/([\d.]+)/),qf=/micromessenger/i.test(qf),$f&&(sg.firefox=!0,sg.version=$f[1]),Gf&&(sg.ie=!0,sg.version=Gf[1]),Xf&&(sg.edge=!0,sg.version=Xf[1],sg.newEdge=18<+Xf[1].split(".")[0]),qf&&(sg.weChat=!0),rg.svgSupported="undefined"!=typeof SVGRect,rg.touchEventsSupported="ontouchstart"in window&&!sg.ie&&!sg.edge,rg.pointerEventsSupported="onpointerdown"in window&&(sg.edge||sg.ie&&11<=+sg.version),rg.domSupported="undefined"!=typeof document,$f=document.documentElement.style,rg.transform3dSupported=(sg.ie&&"transition"in $f||sg.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in $f)&&!("OTransition"in $f),rg.transformSupported=rg.transform3dSupported||sg.ie&&9<=+sg.version);var Of,Lf,Rf=12,Ef="sans-serif",Nf=Rf+"px "+Ef,Bf=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),zf={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(Of||(n=zf.createCanvas(),Of=n&&n.getContext("2d")),Of)return Lf!==e&&(Lf=Of.font=e||Nf),Of.measureText(t);t=t||"",e=e||Nf;var n=/((?:\d+)?\.?\d*)px/.exec(e),i=n&&+n[1]||Rf,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=Bf[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},Ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Vf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Hf=Object.prototype.toString,Gf=Array.prototype,Wf=Gf.forEach,Uf=Gf.filter,jf=Gf.slice,Yf=Gf.map,Xf=function(){}.constructor,qf=Xf?Xf.prototype:null,Zf="__proto__",Kf=2311,$f=zf.createCanvas,Qf=qf&&w(qf.bind)?qf.call.bind(qf.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(jf.call(arguments)))}},Jf="__ec_primitive__";G.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},G.prototype.has=function(t){return this.data.hasOwnProperty(t)},G.prototype.get=function(t){return this.data[t]},G.prototype.set=function(t,e){return this.data[t]=e,this},G.prototype.keys=function(){return v(this.data)},G.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var tg=G,eg="function"==typeof Map;W.prototype.hasKey=function(t){return this.data.has(t)},W.prototype.get=function(t){return this.data.get(t)},W.prototype.set=function(t,e){return this.data.set(t,e),e},W.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},W.prototype.keys=function(){var t=this.data.keys();return eg?Array.from(t):t},W.prototype.removeKey=function(t){this.data.delete(t)};var ng=W,ig=180/Math.PI,rg=Object.freeze({__proto__:null,HashMap:ng,RADIAN_TO_DEGREE:ig,assert:z,bind:Qf,clone:a,concatArray:j,createCanvas:$f,createHashMap:U,createObject:Y,curry:_,defaults:u,disableUserSelect:X,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},guid:r,hasOwn:q,indexOf:h,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:M,isDom:k,isFunction:w,isGradientObject:D,isImagePatternObject:A,isNumber:C,isObject:T,isPrimitive:H,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:o,map:g,merge:s,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=s(n,t[i],e);return n},mixin:p,noop:Z,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:R,retrieve3:E,setAsPrimitive:V,slice:N,trim:F}),og=rt,ag=ot,sg=Object.freeze({__proto__:null,add:Q,applyTransform:st,clone:$,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:K,dist:og,distSquare:ag,distance:rt,distanceSquare:ot,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:tt,lenSquare:et,length:tt,lengthSquare:et,lerp:at,max:ut,min:lt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:it,scale:nt,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:J}),lg=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ug=(ht.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new lg(e,t),"dragstart",t.event))},ht.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new lg(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new lg(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new lg(i,t),"dragenter",t.event)},ht.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new lg(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new lg(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ht);ct.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e],i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},ct.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ct.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ct.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},ct.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var hg=ct,cg=Math.log(2),pg="___zrEVENTSAVED",dg=[],fg=/([&<>"'])/g,gg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mg=[],vg=Pf.browser.firefox&&+Pf.browser.version.split(".")[0]<39,_g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xg=(wt.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},wt.prototype.clear=function(){return this._track.length=0,this},wt.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=mt(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},wt.prototype._recognize=function(t){for(var e in wg)if(wg.hasOwnProperty(e)&&(e=wg[e](this._track,t)))return e},wt),wg={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=bt(n)/bt(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}},bg=Object.freeze({__proto__:null,clone:function(t){var e=St();return Tt(e,t),e},copy:Tt,create:St,identity:Ct,invert:At,mul:Mt,rotate:kt,scale:Dt,translate:It}),Sg=(Pt.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Pt.prototype.clone=function(){return new Pt(this.x,this.y)},Pt.prototype.set=function(t,e){return this.x=t,this.y=e,this},Pt.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Pt.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Pt.prototype.scale=function(t){this.x*=t,this.y*=t},Pt.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Pt.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Pt.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Pt.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Pt.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Pt.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Pt.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Pt.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Pt.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Pt.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Pt.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Pt.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Pt.set=function(t,e,n){t.x=e,t.y=n},Pt.copy=function(t,e){t.x=e.x,t.y=e.y},Pt.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Pt.lenSquare=function(t){return t.x*t.x+t.y*t.y},Pt.dot=function(t,e){return t.x*e.x+t.y*e.y},Pt.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Pt.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Pt.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Pt.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Pt.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},Pt),Cg=Math.min,Tg=Math.max,Mg=new Sg,Ig=new Sg,kg=new Sg,Dg=new Sg,Ag=new Sg,Pg=new Sg,Og=(Ot.prototype.union=function(t){var e=Cg(t.x,this.x),n=Cg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Tg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Tg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Ot.prototype.applyTransform=function(t){Ot.applyTransform(this,this,t)},Ot.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=St();return It(i,i,[-this.x,-this.y]),Dt(i,i,[e,n]),It(i,i,[t.x,t.y]),i},Ot.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ot||(t=Ot.create(t));var n,i,r,o,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(r,o),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,r<o?Sg.set(Pg,-r,0):Sg.set(Pg,o,0)):l<n&&(n=l,r<o?Sg.set(Ag,r,0):Sg.set(Ag,-o,0)),h<y||t<d?i<u&&(i=u,a<s?Sg.set(Pg,0,-a):Sg.set(Pg,0,s)):l<n&&(n=l,a<s?Sg.set(Ag,0,a):Sg.set(Ag,0,-s))),e&&Sg.copy(e,m?Ag:Pg),m},Ot.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Ot.prototype.clone=function(){return new Ot(this.x,this.y,this.width,this.height)},Ot.prototype.copy=function(t){Ot.copy(this,t)},Ot.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ot.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ot.prototype.isZero=function(){return 0===this.width||0===this.height},Ot.create=function(t){return new Ot(t.x,t.y,t.width,t.height)},Ot.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ot.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Mg.x=kg.x=e.x,Mg.y=Dg.y=e.y,Ig.x=Dg.x=e.x+e.width,Ig.y=kg.y=e.y+e.height,Mg.transform(n),Dg.transform(n),Ig.transform(n),kg.transform(n),t.x=Cg(Mg.x,Ig.x,kg.x,Dg.x),t.y=Cg(Mg.y,Ig.y,kg.y,Dg.y),o=Tg(Mg.x,Ig.x,kg.x,Dg.x),a=Tg(Mg.y,Ig.y,kg.y,Dg.y),t.width=o-t.x,t.height=a-t.y):t!==e&&Ot.copy(t,e)},Ot),Lg="silent";n(Rt,Rg=hg),Rt.prototype.dispose=function(){},Rt.prototype.setCursor=function(){};var Rg,Eg,Ng=Rt,Bg=function(t,e){this.x=t,this.y=e},zg=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Fg=new Og(0,0,0,0),Vg=(n(Et,Eg=hg),Et.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f(zg,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},Et.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Bt(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new Bg(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},Et.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})},Et.prototype.resize=function(){this._hovered=new Bg(0,0)},Et.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},Et.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Et.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Et.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.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:Lt};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget||i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},Et.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Bg(t,e);if(Nt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Og(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Fg.copy(h.getBoundingRect()),h.transform&&Fg.applyTransform(h.transform),Fg.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(Nt(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},Et.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new xg);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new Bg).target=i.target,this.dispatchToElement(n,e,i.event))},Et);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Vg.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Bt(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<og(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Hg=32,Gg=7,Wg=1,Ug=4,jg=!1;Yt.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Yt.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Yt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Wt(n,jt)},Yt.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Wg),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else i=t,e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Ut(),i.z=0),isNaN(i.z2)&&(Ut(),i.z2=0),isNaN(i.zlevel)&&(Ut(),i.zlevel=0),this._displayList[this._displayListLen++]=i;i=t.getDecalElement&&t.getDecalElement(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextGuideLine(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextContent(),i&&this._updateAndAddDisplayable(i,e,n)}},Yt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Yt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);0<=i&&this._roots.splice(i,1)}},Yt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Yt.prototype.getRoots=function(){return this._roots},Yt.prototype.dispose=function(){this._displayList=null,this._roots=null};var Yg=Yt,Xg=Pf.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},qg={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;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-qg.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*qg.bounceIn(2*t):.5*qg.bounceOut(2*t-1)+.5}},Zg=Math.pow,Kg=Math.sqrt,$g=1e-8,Qg=Kg(3),Jg=1/3,ty=K(),ey=K(),ny=K(),iy=/cubic-bezier\(([0-9,\.e ]+)\)/;se.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},se.prototype.pause=function(){this._paused=!0},se.prototype.resume=function(){this._paused=!1},se.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:qg[t]||ae(t)};var ry=se,oy=function(t){this.value=t},ay=(le.prototype.insert=function(t){return t=new oy(t),this.insertEntry(t),t},le.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},le.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--},le.prototype.len=function(){return this._len},le.prototype.clear=function(){this.head=this.tail=null,this._len=0},le);ue.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new oy(e),n.key=t,r.insertEntry(n),o[t]=n),a},ue.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},ue.prototype.clear=function(){this._list.clear(),this._map={}},ue.prototype.len=function(){return this._list.len()};var sy=ue,ly={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},uy=new sy(20),hy=null,cy=be,py=Se,dy=new sy(100),cy=Object.freeze({__proto__:null,fastLerp:be,fastMapToColor:cy,lerp:Se,lift:we,liftColor:Me,lum:Te,mapToColor:py,modifyAlpha:function(t,e){if((t=_e(t))&&null!=e)return t[3]=ce(e),Ce(t,"rgba")},modifyHSL:function(t,e,n,i){var r=_e(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),r=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=o=0:(a=r<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?o=u-l:e===i?o=1/3+s-u:n===i&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),h=[360*o,a,r],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=de(n)),null!=i&&(r[2]=de(i)),Ce(xe(r),"rgba")},parse:_e,random:function(){return Ce([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ce,toHex:function(t){if(t=_e(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),fy=Math.round,gy={left:"start",right:"end",center:"middle",middle:"middle"},yy=Pf.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},my=Array.prototype.slice,vy=[0,0,0,0],_y=(Xe.prototype.isFinished=function(){return this._finished},Xe.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Xe.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Xe.prototype.getAdditiveTrack=function(){return this._additiveTrack},Xe.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,u=e,h=(d(e)?(1==(s=i=d((i=e)&&i[0])?2:1)&&!C(e[0])||2==i&&!C(e[0][0]))&&(a=!0):C(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(i=_e(e))&&(u=i,s=3):s=0:D(e)&&((h=l({},u)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:_e(t.color)}}),Le(e)?s=4:Re(e)&&(s=5),u=h),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:u,rawValue:e,percent:0});return n&&(h.easing=n,h.easingFunc=w(n)?n:qg[n]||ae(n)),r.push(h),h},Xe.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),r=n.length,o=n[r-1],a=this.discrete,s=Ye(i),l=je(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:my.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=C=S=b=w=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),C=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:C.offset,color:C.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var M=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-M:3===i?n[u].additiveValue=He([],n[u].value,M,-1):Ye(i)&&(n[u].additiveValue=(1===i?He:Ge)([],n[u].value,M,-1))}},Xe.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,h-1);0<=y&&!(u[y].percent<=e);y--);y=f(y,h-2)}else{for(y=d;y<h&&!(u[y].percent>e);y++);y=f(y-1,h-2)}i=u[y+1],n=u[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?vy:t[c],(Ye(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:Ye(l)?(1===l?Ve:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Fe(e[a][s],n[a][s],i)}})(f,n[s],i[s],r):je(l)?(d=n[s],o=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fe(d.x,o.x,r),y:Fe(d.y,o.y,r),colorStops:g(d.colorStops,function(t,e){return e=o.colorStops[e],{offset:Fe(t.offset,e.offset,r),color:Ue(Ve([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Fe(d.x2,o.x2,r),t[c].y2=Fe(d.y2,o.y2,r)):t[c].r=Fe(d.r,o.r,r)):p?(Ve(f,n[s],i[s],r),a||(t[c]=Ue(f))):(l=Fe(n[s],i[s],r),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Xe.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(_e(t[n],vy),He(vy,vy,i,1),t[n]=Ue(vy)):1===e?He(t[n],t[n],i,1):2===e&&Ge(t[n],t[n],i,1)},Xe);qe.prototype.getMaxTime=function(){return this._maxTime},qe.prototype.getDelay=function(){return this._delay},qe.prototype.getLoop=function(){return this._loop},qe.prototype.getTarget=function(){return this._target},qe.prototype.changeTarget=function(t){this._target=t},qe.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,v(e),n)},qe.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new _y(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&Ue(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,We(u),i),this._trackKeys.push(a)}l.addKeyframe(t,We(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},qe.prototype.pause=function(){this._clip.pause(),this._paused=!0},qe.prototype.resume=function(){this._clip.resume(),this._paused=!1},qe.prototype.isPaused=function(){return!!this._paused},qe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},qe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},qe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},qe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},qe.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},qe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,n=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,u=l.length;s.prepare(r,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[u-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):i.push(s))}return i.length||this._force?(e=new ry({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(n._target,t);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},qe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},qe.prototype.delay=function(t){return this._delay=t,this},qe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},qe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},qe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},qe.prototype.getClip=function(){return this._clip},qe.prototype.getTrack=function(t){return this._tracks[t]},qe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},qe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},qe.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=We(o.rawValue))}}},qe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var xy=qe;n(Ke,wy=hg),Ke.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Ke.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Ke.prototype.removeClip=function(t){var e,n;t.animation&&(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)},Ke.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ke.prototype.update=function(t){for(var e=Ze()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Ke.prototype._startLoop=function(){var t=this;this._running=!0,Xg(function e(){t._running&&(Xg(e),t._paused||t.update())})},Ke.prototype.start=function(){this._running||(this._time=Ze(),this._pausedTime=0,this._startLoop())},Ke.prototype.stop=function(){this._running=!1},Ke.prototype.pause=function(){this._paused||(this._pauseStart=Ze(),this._paused=!0)},Ke.prototype.resume=function(){this._paused&&(this._pausedTime+=Ze()-this._pauseStart,this._paused=!1)},Ke.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},Ke.prototype.isFinished=function(){return null==this._head},Ke.prototype.animate=function(t,e){return e=e||{},this.start(),t=new xy(t,e.loop),this.addAnimator(t),t};var wy,by,Sy,Cy,Ty=Ke,My=Pf.domSupported,Iy=(by={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:py=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(py,function(t){var e=t.replace("mouse","pointer");return by.hasOwnProperty(e)?e:t})}),ky=["mousemove","mouseup"],Dy=["pointermove","pointerup"],Ay=!1,Py=function(t,e){this.stopPropagation=Z,this.stopImmediatePropagation=Z,this.preventDefault=Z,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Oy={mousedown:function(t){t=xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xt(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=xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Je(this,(t=xt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ay=!0,t=xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ay||(t=xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qe(t=xt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Oy.mousemove.call(this,t),Oy.mousedown.call(this,t)},touchmove:function(t){Qe(t=xt(this.dom,t)),this.handler.processGesture(t,"change"),Oy.mousemove.call(this,t)},touchend:function(t){Qe(t=xt(this.dom,t)),this.handler.processGesture(t,"end"),Oy.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Oy.click.call(this,t)},pointerdown:function(t){Oy.mousedown.call(this,t)},pointermove:function(t){$e(t)||Oy.mousemove.call(this,t)},pointerup:function(t){Oy.mouseup.call(this,t)},pointerout:function(t){$e(t)||Oy.mouseout.call(this,t)}},Ly=(f(["click","dblclick","contextmenu"],function(t){Oy[t]=function(e){e=xt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){$e(t)||Ly.mousemove.call(this,t)},pointerup:function(t){Ly.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}}),Ry=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ey=(n(on,Sy=hg),on.prototype.dispose=function(){rn(this._localHandlerScope),My&&rn(this._globalHandlerScope)},on.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},on.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,My&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?en(this,e):rn(e))},on),py=1,Ny=py=Pf.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):py,By="#333",zy="#ccc",Fy=Ct,Vy=[],Hy=[],Gy=St(),Wy=Math.abs,Uy=(sn.prototype.getLocalTransform=function(t){return sn.getLocalTransform(this,t)},sn.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},sn.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},sn.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},sn.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},sn.prototype.needLocalTransform=function(){return an(this.rotation)||an(this.x)||an(this.y)||an(this.scaleX-1)||an(this.scaleY-1)||an(this.skewX)||an(this.skewY)},sn.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||St(),e?this.getLocalTransform(n):Fy(n),t&&(e?Mt(n,t,n):Tt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Fy(n),this.invTransform=null)},sn.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Vy),n=((Vy[1]-(n=Vy[1]<0?-1:1))*i+n)/Vy[1]||0,t[0]*=i=((Vy[0]-(e=Vy[0]<0?-1:1))*i+e)/Vy[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||St(),At(this.invTransform,t)},sn.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},sn.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},sn.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||St(),Mt(Hy,e.invTransform,t),t=Hy),e=this.originX,n=this.originY,(e||n)&&(Gy[4]=e,Gy[5]=n,Mt(Hy,t,Gy),Hy[4]-=e,Hy[5]-=n,t=Hy),this.setLocalTransform(t))},sn.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[0]=1,t[1]=1),t},sn.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&st(t,t,e),t},sn.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&st(t,t,e),t},sn.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Wy(t[0]-1)&&1e-10<Wy(t[3]-1)?Math.sqrt(Wy(t[0]*t[3]-t[2]*t[1])):1},sn.prototype.copyTransform=function(t){ln(this,t)},sn.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&kt(e,e,l),e[4]+=n+u,e[5]+=i+h,e},sn.initDefaultProps=((py=sn.prototype).scaleX=py.scaleY=py.globalScaleRatio=1,void(py.x=py.y=py.originX=py.originY=py.skewX=py.skewY=py.rotation=py.anchorX=py.anchorY=0)),sn),jy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Yy={},Xy="__zr_normal__",qy=jy.concat(["ignore"]),Zy=y(jy,function(t,e){return t[e]=!0,t},{ignore:!1}),Ky={},$y=new Og(0,0,0,0),py=(mn.prototype._init=function(t){this.attr(t)},mn.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},mn.prototype.beforeUpdate=function(){},mn.prototype.afterUpdate=function(){},mn.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},mn.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,r=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=$y,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ky,t,u):yn(Ky,t,u),e.x=Ky.x,e.y=Ky.y,n=Ky.align,i=Ky.verticalAlign,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*u.width,.5*u.height):(a=gn(o[0],u.width),gn(o[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],h||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(r=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=Wg,r&&c.dirtyStyle(!0))},mn.prototype.canBeInsideText=function(){return!0},mn.prototype.getInsideTextFill=function(){return"#fff"},mn.prototype.getInsideTextStroke=function(t){return"#000"},mn.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zy:By},mn.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&_e(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ce(n,"rgba")},mn.prototype.traverse=function(t,e){},mn.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||{},l(this.extra,e)):this[t]=e},mn.prototype.hide=function(){this.ignore=!0,this.markRedraw()},mn.prototype.show=function(){this.ignore=!1,this.markRedraw()},mn.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(T(t))for(var n=v(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},mn.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;i.getLoop()||r&&r!==Xy||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},mn.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,qy)},mn.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},mn.prototype.hasState=function(){return 0<this.currentStates.length},mn.prototype.getState=function(t){return this.states[t]},mn.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},mn.prototype.clearStates=function(t){this.useState(Xy,!1,t)},mn.prototype.useState=function(t,e,n,i){var r=t===Xy,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=h(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&l&&0<l.duration,l),i=this._textContent,l=this._textGuide,i&&i.useState(t,e,n,a),l&&l.useState(t,e,n,a),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg),s;o("State "+t+" not exists.")}}},mn.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[o-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg)}}else this.clearStates()},mn.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},mn.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},mn.prototype.removeState=function(t){var e,t=h(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},mn.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=h(i,t),r=0<=h(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},mn.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},mn.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];l(n,r),r.textConfig&&l(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},mn.prototype._applyStateObj=function(t,e,n,i,r,o){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=l({},(i?this:n).textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,h=0;h<qy.length;h++){var c=qy[h],p=r&&Zy[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,s,o)},mn.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},mn.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},mn.prototype.getClipPath=function(){return this._clipPath},mn.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},mn.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},mn.prototype.getTextContent=function(){return this._textContent},mn.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Uy,this._attachComponent(t),this._textContent=t,this.markRedraw())},mn.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},mn.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},mn.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},mn.prototype.getTextGuideLine=function(){return this._textGuide},mn.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},mn.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},mn.prototype.markRedraw=function(){this.__dirty|=Wg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},mn.prototype.dirty=function(){this.markRedraw()},mn.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},mn.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},mn.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},mn.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new xy(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},mn.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=h(e,t);0<=n&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},mn.prototype.updateDuringAnimation=function(t){this.markRedraw()},mn.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},mn.prototype.animateTo=function(t,e,n){_n(this,t,e,n)},mn.prototype.animateFrom=function(t,e,n){_n(this,t,e,n,!0)},mn.prototype._transitionState=function(t,e,n,i){for(var r=_n(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},mn.prototype.getBoundingRect=function(){return null},mn.prototype.getPaintRect=function(){return null},mn.initDefaultProps=((Cy=mn.prototype).type="element",Cy.name="",Cy.ignore=Cy.silent=Cy.isGroup=Cy.draggable=Cy.dragging=Cy.ignoreClip=Cy.__inHover=!1,Cy.__dirty=Wg,void(Object.defineProperty&&(vn("position","_legacyPos","x","y"),vn("scale","_legacyScale","scaleX","scaleY"),vn("origin","_legacyOrigin","originX","originY")))),mn);p(py,hg),p(py,Uy),n(Sn,Qy=py),Sn.prototype.childrenRef=function(){return this._children},Sn.prototype.children=function(){return this._children.slice()},Sn.prototype.childAt=function(t){return this._children[t]},Sn.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Sn.prototype.childCount=function(){return this._children.length},Sn.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Sn.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},Sn.prototype.replace=function(t,e){return t=h(this._children,t),0<=t&&this.replaceAt(e,t),this},Sn.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},Sn.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},Sn.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Sn.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},Sn.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},Sn.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},Sn.prototype.addSelfToZr=function(t){Qy.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Sn.prototype.removeSelfFromZr=function(t){Qy.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Sn.prototype.getBoundingRect=function(t){for(var e=new Og(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(Og.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var Qy,Jy=Sn;Jy.prototype.type="group";var tm={},em={};Cn.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Cn.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Cn.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Cn.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Te(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Te(e[r].color,1);return(n/=i)<.4}}return!1}(t))},Cn.prototype.getBackgroundColor=function(){return this._backgroundColor},Cn.prototype.setDarkMode=function(t){this._darkMode=t},Cn.prototype.isDarkMode=function(){return this._darkMode},Cn.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Cn.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Cn.prototype.flush=function(){this._disposed||this._flush(!1)},Cn.prototype._flush=function(t){var e,n=Ze(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Ze());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},Cn.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Cn.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Cn.prototype.refreshHover=function(){this._needsRefreshHover=!0},Cn.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Cn.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Cn.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Cn.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Cn.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Cn.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Cn.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Cn.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Cn.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Cn.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Cn.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Jy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Cn.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete em[t])};var nm,im,rm=Cn,om=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in em)em.hasOwnProperty(t)&&em[t].dispose();em={}},getElementSSRData:In,getInstance:function(t){return em[t]},init:Tn,registerPainter:Mn,registerSSRDataGetter:kn,version:"5.6.0"}),am=20,sm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,lm="series\0",um=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],hm=Wn(),cm={useDefault:!0,enableAll:!1,enableNone:!1},pm=".",dm="___EC__COMPONENT__CONTAINER___",fm="___EC__EXTENDED_CLASS___",gm=Math.round(10*Math.random()),ym=yi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mm=(mi.prototype.getAreaStyle=function(t,e){return ym(this,t,e)},mi),vm=new sy(50),_m=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,xm=function(){},wm=function(t){this.tokens=[],t&&(this.tokens=t)},bm=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Sm=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Cm="__zr_style_"+Math.round(10*Math.random()),Tm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Im=(Tm[Cm]=!0,["z","z2","invisible"]),km=["invisible"],py=(n(Ii,im=py),Ii.prototype._init=function(t){for(var e=v(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):im.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},Ii.prototype.beforeBrush=function(){},Ii.prototype.afterBrush=function(){},Ii.prototype.innerBeforeBrush=function(){},Ii.prototype.innerAfterBrush=function(){},Ii.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return Dm.copy(t.getBoundingRect()),t.transform&&Dm.applyTransform(t.transform),Am.width=e,Am.height=n,!Dm.intersect(Am)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},Ii.prototype.contain=function(t,e){return this.rectContain(t,e)},Ii.prototype.traverse=function(t,e){t.call(e,this)},Ii.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},Ii.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new Og(0,0,0,0)),r?Og.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},Ii.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Og(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},Ii.prototype.getPrevPaintRect=function(){return this._prevPaintRect},Ii.prototype.animateStyle=function(t){return this.animate("style",t)},Ii.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},Ii.prototype.attrKV=function(t,e){"style"!==t?im.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},Ii.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},Ii.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},Ii.prototype.dirty=function(){this.dirtyStyle()},Ii.prototype.styleChanged=function(){return!!(2&this.__dirty)},Ii.prototype.styleUpdated=function(){this.__dirty&=-3},Ii.prototype.createStyle=function(t){return Y(Tm,t)},Ii.prototype.useStyle=function(t){t[Cm]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},Ii.prototype.isStyleObject=function(t){return t[Cm]},Ii.prototype._innerSaveToNormal=function(t){im.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Im)},Ii.prototype._applyStateObj=function(t,e,n,i,r,o){im.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=v(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?km:Im,h=0;h<d.length;h++)p=d[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},Ii.prototype._mergeStates=function(t){for(var e,n=im.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},Ii.prototype._mergeStyle=function(t,e){return l(t,e),t},Ii.prototype.getAnimationStyleProps=function(){return Mm},Ii.initDefaultProps=((py=Ii.prototype).type="displayable",py.invisible=!1,py.z=0,py.z2=0,py.zlevel=0,py.culling=!1,py.cursor="pointer",py.rectHover=!1,py.incremental=!1,py._rect=null,py.dirtyRectTolerance=0,void(py.__dirty=2|Wg)),Ii),Dm=new Og(0,0,0,0),Am=new Og(0,0,0,0),Pm=Math.min,Om=Math.max,Lm=Math.sin,Rm=Math.cos,Em=2*Math.PI,Nm=K(),Bm=K(),zm=K(),Fm=[],Vm=[],Hm={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gm=[],Wm=[],Um=[],jm=[],Ym=[],Xm=[],qm=Math.min,Zm=Math.max,Km=Math.cos,$m=Math.sin,Qm=Math.abs,Jm=Math.PI,tv=2*Jm,ev="undefined"!=typeof Float32Array,nv=[];Ai.prototype.increaseVersion=function(){this._version++},Ai.prototype.getVersion=function(){return this._version},Ai.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Qm(n/Ny/t)||0,this._uy=Qm(n/Ny/e)||0)},Ai.prototype.setDPR=function(t){this.dpr=t},Ai.prototype.setContext=function(t){this._ctx=t},Ai.prototype.getContext=function(){return this._ctx},Ai.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Ai.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Ai.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Hm.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},Ai.prototype.lineTo=function(t,e){var n=Qm(t-this._xi),i=Qm(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(Hm.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},Ai.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Hm.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},Ai.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Hm.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},Ai.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),nv[0]=i,nv[1]=r,s=o,(l=Di((a=nv)[0]))<0&&(l+=tv),h=l-a[0],u=a[1],u+=h,!s&&tv<=u-l?u=l+tv:s&&tv<=l-u?u=l-tv:!s&&u<l?u=l+(tv-Di(l-u)):s&&l<u&&(u=l-(tv-Di(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=nv[1])-(i=nv[0]);return this.addData(Hm.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Km(r)*n+t,this._yi=$m(r)*n+e,this},Ai.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},Ai.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Hm.R,t,e,n,i),this},Ai.prototype.closePath=function(){this._drawPendingPt(),this.addData(Hm.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},Ai.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Ai.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Ai.prototype.len=function(){return this._len},Ai.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ev||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},Ai.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();for(ev&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},Ai.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},Ai.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Ai.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},Ai.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ev)&&11<this._len&&(this.data=new Float32Array(t))},Ai.prototype.getBoundingRect=function(){Um[0]=Um[1]=Ym[0]=Ym[1]=Number.MAX_VALUE,jm[0]=jm[1]=Xm[0]=Xm[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(r=n=e[a],o=i=e[a+1]),s){case Hm.M:n=r=e[a++],i=o=e[a++],Ym[0]=r,Ym[1]=o,Xm[0]=r,Xm[1]=o;break;case Hm.L:ki(n,i,e[a],e[a+1],Ym,Xm),n=e[a++],i=e[a++];break;case Hm.C:C=S=b=w=x=_=v=m=y=g=f=d=p=c=h=u=void 0;var u=n,h=i,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=Ym,v=Xm,_=Qt,x=Zt,w=_(u,c,d,g,Fm);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var b=0;b<w;b++){var S=x(u,c,d,g,Fm[b]);m[0]=Pm(S,m[0]),v[0]=Om(S,v[0])}for(w=_(h,p,f,y,Vm),b=0;b<w;b++){var C=x(h,p,f,y,Vm[b]);m[1]=Pm(C,m[1]),v[1]=Om(C,v[1])}m[0]=Pm(u,m[0]),v[0]=Om(u,v[0]),m[0]=Pm(g,m[0]),v[0]=Om(g,v[0]),m[1]=Pm(h,m[1]),v[1]=Om(h,v[1]),m[1]=Pm(y,m[1]),v[1]=Om(y,v[1]),n=e[a++],i=e[a++];break;case Hm.Q:_=n,F=i,P=e[a++],I=e[a++],A=e[a],T=e[a+1],D=Ym,O=Xm,t=k=t=M=void 0,M=ee,t=Om(Pm((k=ie)(_,P,A),1),0),k=Om(Pm(k(F,I,T),1),0),P=M(_,P,A,t),t=M(F,I,T,k),D[0]=Pm(_,A,P),D[1]=Pm(F,T,t),O[0]=Om(_,A,P),O[1]=Om(F,T,t),n=e[a++],i=e[a++];break;case Hm.A:var T,M=e[a++],I=e[a++],k=e[a++],D=e[a++],A=e[a++],P=e[a++]+A,O=(a+=1,!e[a++]),L=(l&&(r=Km(A)*k+M,o=$m(A)*D+I),U=T=W=G=H=V=F=z=B=N=E=R=L=void 0,M),R=I,E=k,N=D,B=A,z=P,F=O,V=Ym,H=Xm,G=lt,W=ut;if((T=Math.abs(B-z))%Em<1e-4&&1e-4<T)V[0]=L-E,V[1]=R-N,H[0]=L+E,H[1]=R+N;else{Nm[0]=Rm(B)*E+L,Nm[1]=Lm(B)*N+R,Bm[0]=Rm(z)*E+L,Bm[1]=Lm(z)*N+R,G(V,Nm,Bm),W(H,Nm,Bm),(B%=Em)<0&&(B+=Em),(z%=Em)<0&&(z+=Em),z<B&&!F?z+=Em:B<z&&F&&(B+=Em),F&&(T=z,z=B,B=T);for(var U=0;U<z;U+=Math.PI/2)B<U&&(zm[0]=Rm(U)*E+L,zm[1]=Lm(U)*N+R,G(V,zm,V),W(H,zm,H))}n=Km(P)*k+M,i=$m(P)*D+I;break;case Hm.R:ki(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],Ym,Xm);break;case Hm.Z:n=r,i=o}lt(Um,Um,Ym),ut(jm,jm,Xm)}return 0===a&&(Um[0]=Um[1]=jm[0]=jm[1]=0),new Og(Um[0],Um[1],jm[0]-Um[0],jm[1]-Um[1])},Ai.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case Hm.M:r=a=t[c++],o=s=t[c++];break;case Hm.L:var g=t[c++],y=(_=t[c++])-o;(Qm(I=g-r)>n||Qm(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);break;case Hm.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zt(t,n,r,a,d),d=Zt(e,i,o,s,d),g=f-u,y=d-h;c+=Math.sqrt(g*g+y*y),u=f,h=d}return c}(r,o,m,v,g,_,x,w),r=x,o=w;break;case Hm.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=ee(t,n,r,c),c=ee(e,i,o,c),d=p-s,f=c-l;u+=Math.sqrt(d*d+f*f),s=p,l=c}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),r=g,o=_;break;case Hm.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],C=t[c++],T=t[c++],M=T+C;c+=1,d&&(a=Km(C)*b+x,s=$m(C)*S+w),f=Zm(b,S)*qm(tv,Math.abs(T)),r=Km(M)*b+x,o=$m(M)*S+w;break;case Hm.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Hm.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},Ai.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=h[v++],x=1===v;switch(x&&(n=r=h[v],i=o=h[v+1]),_!==Hm.L&&0<m&&(t.lineTo(l,u),m=0),_){case Hm.M:n=r=h[v++],i=o=h[v++],t.moveTo(r,o);break;case Hm.L:var w=h[v++],b=h[v++],S=Qm(w-r),C=Qm(b-o);if(c<S||p<C){if(f){if(s<g+(G=a[y++])){var T=(s-g)/G;t.lineTo(r*(1-T)+w*T,o*(1-T)+b*T);break t}g+=G}t.lineTo(w,b),r=w,o=b,m=0}else S=S*S+C*C,m<S&&(l=w,u=b,m=S);break;case Hm.C:var M=h[v++],I=h[v++],k=h[v++],D=h[v++],C=h[v++],S=h[v++];if(f){if(s<g+(G=a[y++])){Jt(r,M,k,C,T=(s-g)/G,Gm),Jt(o,I,D,S,T,Wm),t.bezierCurveTo(Gm[1],Wm[1],Gm[2],Wm[2],Gm[3],Wm[3]);break t}g+=G}t.bezierCurveTo(M,I,k,D,C,S),r=C,o=S;break;case Hm.Q:if(M=h[v++],I=h[v++],k=h[v++],D=h[v++],f){if(s<g+(G=a[y++])){re(r,M,k,T=(s-g)/G,Gm),re(o,I,D,T,Wm),t.quadraticCurveTo(Gm[1],Wm[1],Gm[2],Wm[2]);break t}g+=G}t.quadraticCurveTo(M,I,k,D),r=k,o=D;break;case Hm.A:var A=h[v++],P=h[v++],O=h[v++],L=h[v++],R=h[v++],E=h[v++],N=h[v++],B=!h[v++],z=L<O?O:L,F=.001<Qm(O-L),V=R+E,H=!1;if(f&&(s<g+(G=a[y++])&&(V=R+E*(s-g)/G,H=!0),g+=G),F&&t.ellipse?t.ellipse(A,P,O,L,N,R,V,B):t.arc(A,P,z,R,V,B),H)break t;x&&(n=Km(R)*O+A,i=$m(R)*L+P),r=Km(V)*O+A,o=$m(V)*L+P;break;case Hm.R:n=r=h[v],i=o=h[v+1],w=h[v++],b=h[v++];var G,E=h[v++],F=h[v++];if(f){if(s<g+(G=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+qm(N,E),b),0<(N-=E)&&t.lineTo(w+E,b+qm(N,F)),0<(N-=F)&&t.lineTo(w+Zm(E-N,0),b+F),0<(N-=E)&&t.lineTo(w,b+Zm(F-N,0));break t}g+=G}t.rect(w,b,E,F);break;case Hm.Z:if(f){if(s<g+(G=a[y++])){T=(s-g)/G,t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}g+=G}t.closePath(),r=n,o=i}}},Ai.prototype.clone=function(){var t=new Ai,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Ai.CMD=Hm,Ai.initDefaultProps=((p_=Ai.prototype)._saveData=!0,p_._ux=0,p_._uy=0,p_._pendingPtDist=0,void(p_._version=0));var iv,rv,ov=Ai,av=2*Math.PI,sv=2*Math.PI,lv=ov.CMD,uv=2*Math.PI,hv=1e-4,cv=[-1,-1,-1],pv=[-1,-1],dv=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Tm),fv={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mm.style)},gv=jy.concat(["invisible","culling","z","z2","zlevel","parent"]),yv=(n(Bi,iv=py),Bi.prototype.update=function(){var t=this,e=(iv.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new Bi,r=(i.buildPath===Bi.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0,i.style);for(n in e)r[n]!==e[n]&&(r[n]=e[n]);r.fill=e.fill?e.decal:null,r.decal=null,r.shadowColor=null,e.strokeFirst&&(r.stroke=null);for(var o=0;o<gv.length;++o)i[gv[o]]=this[gv[o]];i.__dirty|=Wg}else this._decalEl&&(this._decalEl=null)},Bi.prototype.getDecalElement=function(){return this._decalEl},Bi.prototype._init=function(t){var e=v(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?l(this.style,o):this.useStyle(o):"shape"===r?l(this.shape,o):iv.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},Bi.prototype.getDefaultStyle=function(){return null},Bi.prototype.getDefaultShape=function(){return{}},Bi.prototype.canBeInsideText=function(){return this.hasFill()},Bi.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=Te(e,0))?By:.2<t?"#eee":zy;if(e)return zy}return By},Bi.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Te(t,0)<.4)return e}},Bi.prototype.buildPath=function(t,e,n){},Bi.prototype.pathUpdated=function(){this.__dirty&=~Ug},Bi.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Bi.prototype.createPathProxy=function(){this.path=new ov(!1)},Bi.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Bi.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Bi.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Ug)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},Bi.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){if(n=this.path,this.hasStroke()&&(i=r.lineWidth,1e-10<(r=r.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),Ni(n,i/r,!0,t,e))))return!0;if(this.hasFill())return Ni(n,0,!1,t,e)}return!1},Bi.prototype.dirtyShape=function(){this.__dirty|=Ug,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Bi.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Bi.prototype.animateShape=function(t){return this.animate("shape",t)},Bi.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Bi.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):iv.prototype.attrKV.call(this,t,e)},Bi.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},Bi.prototype.shapeChanged=function(){return!!(this.__dirty&Ug)},Bi.prototype.createStyle=function(t){return Y(dv,t)},Bi.prototype._innerSaveToNormal=function(t){iv.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},Bi.prototype._applyStateObj=function(t,e,n,i,r,o){iv.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=l({},n.shape),l(a,e.shape)):(a=l({},(i?this:n).shape),l(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=l({},this.shape);for(var u={},h=v(a),c=0;c<h.length;c++){var p=h[c];"object"==typeof a[p]?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},o)}else this.shape=a,this.dirtyShape()},Bi.prototype._mergeStates=function(t){for(var e,n=iv.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},Bi.prototype.getAnimationStyleProps=function(){return fv},Bi.prototype.isZeroArea=function(){return!1},Bi.extend=function(t){function e(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}n(e,i=Bi),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var i,r,o=e;for(r in t)"function"==typeof t[r]&&(o.prototype[r]=t[r]);return o},Bi.initDefaultProps=((p_=Bi.prototype).type="path",p_.strokeContainThreshold=5,p_.segmentIgnoreThreshold=0,p_.subPixelOptimize=!1,p_.autoBatch=!1,void(p_.__dirty=2|Wg|Ug)),Bi),mv=u({strokeFirst:!0,font:Nf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dv),vv=(n(zi,rv=py),zi.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},zi.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},zi.prototype.createStyle=function(t){return Y(mv,t)},zi.prototype.setBoundingRect=function(t){this._rect=t},zi.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=cn(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},zi.initDefaultProps=void(zi.prototype.dirtyRectTolerance=10),zi);vv.prototype.type="tspan";var _v=u({x:0,y:0},Tm),xv={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mm.style)};n(Fi,wv=py),Fi.prototype.createStyle=function(t){return Y(_v,t)},Fi.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},Fi.prototype.getWidth=function(){return this._getSize("width")},Fi.prototype.getHeight=function(){return this._getSize("height")},Fi.prototype.getAnimationStyleProps=function(){return xv},Fi.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Og(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var wv,bv=Fi;bv.prototype.type="image";var Sv,Cv=Math.round,Tv=function(){this.x=0,this.y=0,this.width=0,this.height=0},Mv={},Iv=(n(Wi,Sv=yv),Wi.prototype.getDefaultShape=function(){return new Tv},Wi.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Hi(Mv,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,r,o)},Wi.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Wi);Iv.prototype.type="rect";var kv,Dv={fill:"#000"},Av={style:u({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},Mm.style)},Pv=(n(Ui,kv=py),Ui.prototype.childrenRef=function(){return this._children},Ui.prototype.update=function(){kv.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Ui.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):kv.prototype.updateTransform.call(this)},Ui.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):kv.prototype.getLocalTransform.call(this,t)},Ui.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),kv.prototype.getComputedTransform.call(this)},Ui.prototype._updateSubTexts=function(){var t;this._childCursor=0,qi(t=this.style),f(t.rich,qi),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Ui.prototype.addSelfToZr=function(t){kv.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Ui.prototype.removeSelfFromZr=function(t){kv.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Ui.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Og(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Ui.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Dv},Ui.prototype.setTextContent=function(t){},Ui.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Ui.prototype._mergeRich=function(t,e){for(var n=v(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},Ui.prototype.getAnimationStyleProps=function(){return Av},Ui.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},Ui.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||Nf,i=e.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=fn(o),l=R(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Mi(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=R(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=bi(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=Si(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(un(n[f],o),g);return null==c&&(c=g),t=g,r&&(h+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(Qi(e),e),o=Ji(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=dn(f,r.contentHeight,y),_=((o||i)&&(t=pn(d,l,g),f=dn(f,s,y),o)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=$i(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2])),0),o=!1,x=(Ki(("fill"in e?e:(o=!0,p)).fill)),w=(Zi("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=r.calculatedLineHeight,T=0;T<h.length;T++){var M=this._getOrCreateChild(vv),I=M.createStyle();M.useStyle(I),I.text=h[T],I.x=m,I.y=v,g&&(I.textAlign=g),I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,b&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=w,I.fill=x,w&&(I.lineWidth=e.lineWidth||_,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=n,Yi(I,e),v+=c,S&&M.setBoundingRect(new Og(pn(I.x,e.width,I.textAlign),dn(I.y,C,I.textBaseline),u,C))}},Ui.prototype._updateRichTexts=function(){for(var t=this.style,e=Ci(Qi(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=pn(a,i,u),u=dn(s,r,l),h=a,c=u,p=(o&&(h+=o[3],c+=o[0]),h+n),d=(Ji(t)&&this._renderBackground(t,t,a,u,i,r),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=h,b=p,S=m-1,C=void 0;x<m&&(!(C=y[x]).align||"left"===C.align);)this._placeToken(C,t,v,c,w,"left",d),_-=C.width,w+=C.width,x++;for(;0<=S&&"right"===(C=y[S]).align;)this._placeToken(C,t,v,c,b,"right",d),_-=C.width,b-=C.width,S--;for(w+=(n-(w-h)-(p-b)-_)/2;x<=S;)C=y[x],this._placeToken(C,t,v,c,w+C.width/2,"center",d),w+=C.width,x++;c+=v}},Ui.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Ji(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(r=$i(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(vv)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Ki(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Zi("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=r,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=o,i.textBaseline="middle",i.font=t.font||Nf,i.opacity=E(s.opacity,e.opacity,1),Yi(i,s),l&&(i.lineWidth=E(s.lineWidth,e.lineWidth,p),i.lineDash=R(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new Og(pn(i.x,c,i.textAlign),dn(i.y,h,i.textBaseline),c,h))},Ui.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(Iv)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=r,l.height=o,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=R(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(bv)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=r,l.height=o),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=R(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=E(t.opacity,e.opacity,1)},Ui.makeFont=function(t){var e="";return(e=Xi(t)?[t.fontStyle,t.fontWeight,ji(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Ui),Ov={left:!0,right:1,center:1},Lv={top:1,bottom:1,middle:1},Rv=["fontStyle","fontWeight","fontSize","fontFamily"],Ev=ri(),Nv=1,Bv={},zv=ri(),Fv=ri(),Vv=0,Hv=1,Gv=2,Wv=["emphasis","blur","select"],Uv=["normal","emphasis","blur","select"],jv="highlight",Yv="downplay",Xv="select",qv="unselect",Zv="toggleSelect",Kv=["emphasis","blur","select"],$v={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Qv=ov.CMD,Jv=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,n_=Math.sqrt,i_=Math.sin,r_=Math.cos,o_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;n(Fr,l_=yv),Fr.prototype.applyTransform=function(t){};var l_,u_,h_=Fr,c_=function(){this.cx=0,this.cy=0,this.r=0},p_=(n(Gr,u_=yv),Gr.prototype.getDefaultShape=function(){return new c_},Gr.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},Gr);p_.prototype.type="circle";var d_,f_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},g_=(n(Wr,d_=yv),Wr.prototype.getDefaultShape=function(){return new f_},Wr.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()},Wr);g_.prototype.type="ellipse";var y_,m_=Math.PI,v_=2*m_,__=Math.sin,x_=Math.cos,w_=Math.acos,b_=Math.atan2,S_=Math.abs,C_=Math.sqrt,T_=Math.max,M_=Math.min,I_=1e-4,k_=function(){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},D_=(n(Yr,y_=yv),Yr.prototype.getDefaultShape=function(){return new k_},Yr.prototype.buildPath=function(t,e){jr(t,e)},Yr.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Yr);D_.prototype.type="sector";var A_,P_=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},O_=(n(Xr,A_=yv),Xr.prototype.getDefaultShape=function(){return new P_},Xr.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},Xr);O_.prototype.type="ring";var L_,R_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},E_=(n(Zr,L_=yv),Zr.prototype.getDefaultShape=function(){return new R_},Zr.prototype.buildPath=function(t,e){qr(t,e,!0)},Zr);E_.prototype.type="polygon";var N_,B_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},z_=(n(Kr,N_=yv),Kr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Kr.prototype.getDefaultShape=function(){return new B_},Kr.prototype.buildPath=function(t,e){qr(t,e,!1)},Kr);z_.prototype.type="polyline";var F_,V_={},H_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},G_=(n($r,F_=yv),$r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},$r.prototype.getDefaultShape=function(){return new H_},$r.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=Vi(V_,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},$r.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},$r);G_.prototype.type="line";var W_=[],U_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};n(Jr,j_=yv),Jr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Jr.prototype.getDefaultShape=function(){return new U_},Jr.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(re(n,a,r,e,W_),a=W_[1],r=W_[2],re(i,s,o,e,W_),s=W_[1],o=W_[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Jt(n,a,l,r,e,W_),a=W_[1],l=W_[2],r=W_[3],Jt(i,s,u,o,e,W_),s=W_[1],u=W_[2],o=W_[3]),t.bezierCurveTo(a,s,l,u,r,o)))},Jr.prototype.pointAt=function(t){return Qr(this.shape,t,!1)},Jr.prototype.tangentAt=function(t){return t=Qr(this.shape,t,!0),it(t,t)};var j_,Y_=Jr;Y_.prototype.type="bezier-curve";var X_,q_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=(n(to,X_=yv),to.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},to.prototype.getDefaultShape=function(){return new q_},to.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)},to);Z_.prototype.type="arc",n(eo,K_=yv),eo.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},eo.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},eo.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},eo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},eo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yv.prototype.getBoundingRect.call(this)};var K_,$_=eo;no.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Q_=no;n(io,J_=Q_);var J_,tx=io;n(ro,ex=Q_);var ex,nx,Q_=ro,ix=[0,0],rx=[0,0],ox=new Sg,ax=new Sg,sx=(oo.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(Sg.sub(i[0],n[1],n[0]),Sg.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},oo.prototype.intersect=function(t,e){var n=!0,i=!e;return ox.set(1/0,1/0),ax.set(0,0),!this._intersectCheckOneSide(this,t,ox,ax,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,ox,ax,i,-1)&&(n=!1,i)||i||Sg.copy(e,n?ox:ax),n},oo.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,ix),this._getProjMinMaxOnAxis(s,e._corners,rx),ix[1]<rx[0]||rx[1]<ix[0]){if(a=!1,r)return a;var u=Math.abs(rx[0]-ix[1]),h=Math.abs(ix[0]-rx[1]);Math.min(u,h)>i.len()&&(u<h?Sg.scale(i,l,-u*o):Sg.scale(i,l,h*o))}else n&&(u=Math.abs(rx[0]-ix[1]),h=Math.abs(ix[0]-rx[1]),Math.min(u,h)<n.len())&&(u<h?Sg.scale(n,l,u*o):Sg.scale(n,l,-h*o))}return a},oo.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++)var u=e[l].dot(i)+r[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},oo),lx=[],py=(n(ao,nx=py),ao.prototype.traverse=function(t,e){t.call(e,this)},ao.prototype.useStyle=function(){this.style={}},ao.prototype.getCursor=function(){return this._cursor},ao.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ao.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ao.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ao.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ao.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ao.prototype.getDisplayables=function(){return this._displayables},ao.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ao.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},ao.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},ao.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Og(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(lx)),t.union(i)}this._rect=t}return this._rect},ao.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},ao),ux=ri(),hx=Math.max,cx=Math.min,px={},dx=function(t,e){function i(t){return t=r.call(this,t)||this,t.applyTransform=o.applyTransform,t.buildPath=o.buildPath,t}var r,o=Hr(t,e);return n(i,r=h_),i},fx=Gi;yo("circle",p_),yo("ellipse",g_),yo("sector",D_),yo("ring",O_),yo("polygon",E_),yo("polyline",z_),yo("rect",Iv),yo("line",G_),yo("bezierCurve",Y_),yo("arc",Z_);var gx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:Y_,BoundingRect:Og,Circle:p_,CompoundPath:$_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:G_,LinearGradient:tx,OrientedBoundingRect:sx,Path:yv,Point:Sg,Polygon:E_,Polyline:z_,RadialGradient:Q_,Rect:Iv,Ring:O_,Sector:D_,Text:Pv,applyTransform:To,clipPointsByRect:ko,clipRectByRect:Do,createIcon:Ao,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:Co,groupTransition:Io,initProps:uo,isElementRemoved:ho,lineLineIntersect:Po,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Po(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,removeElement:co,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||po(t,e,n,i)}):po(t,e,n,i)},resizePath:bo,setTooltipConfig:Oo,subPixelOptimize:fx,subPixelOptimizeLine:So,subPixelOptimizeRect:function(t){return Hi(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=To(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:Ro,updateProps:lo}),yx={},mx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_x=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],xx=ri(),bx=["textStyle","color"],Sx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Cx=new Pv,fx=(Wo.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bx):null)},Wo.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),F([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},Wo.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Sx.length;n++)e[Sx[n]]=this.getShallow(Sx[n]);return Cx.useStyle(e),Cx.update(),Cx.getBoundingRect()},Wo),Tx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mx=yi(Tx),Ix=(Uo.prototype.getLineStyle=function(t){return Mx(this,t)},Uo),kx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dx=yi(kx),Ax=(jo.prototype.getItemStyle=function(t,e){return Dx(this,t,e)},jo);Yo.prototype.init=function(t,e,n){},Yo.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Yo.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Yo.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Yo.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Yo(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Yo.prototype.isEmpty=function(){return null==this.option},Yo.prototype.restoreData=function(){},Yo.prototype.clone=function(){return new this.constructor(a(this.option))},Yo.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Yo.prototype.resolveParentPath=function(t){return t},Yo.prototype.isAnimationEnabled=function(){if(!Pf.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Yo.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Px,Ox=Yo;ci(Ox),jx=Ox,Px=["__\0is_clz",gm++].join("_"),jx.prototype[Px]=!0,jx.isInstance=function(t){return!(!t||!t[Px])},p(Ox,Ix),p(Ox,Ax),p(Ox,mm),p(Ox,fx);var Lx=Math.round(10*Math.random()),Rx="ZH",Ex="EN",Nx=Ex,Bx={},zx={},Fx=Pf.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nx).toUpperCase().indexOf(Rx)?Rx:Nx;qo(Ex,{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:". "}}}}),qo(Rx,{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:""}}}});var Vx=1e3,Hx=60*Vx,Gx=60*Hx,Wx=24*Gx,gm=365*Wx,Ux={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}"},jx="{yyyy}-{MM}-{dd}",Yx={year:"{yyyy}",month:"{yyyy}-{MM}",day:jx,hour:jx+" "+Ux.hour,minute:jx+" "+Ux.minute,second:jx+" "+Ux.second,millisecond:Ux.none},Xx=["year","month","day","hour","minute","second","millisecond"],qx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Zx=B,Kx=["a","b","c","d","e","f","g"],$x=f,Qx=["left","right","top","bottom","width","height"],Jx=[["width","left","right"],["height","top","bottom"]],tw=wa;_(wa,"vertical"),_(wa,"horizontal");var ew,nw,iw,rw,ow=ri(),aw=(n(Ma,ew=Ox),Ma.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},Ma.prototype.mergeDefaultAndTheme=function(t,e){var n=Sa(this),i=n?Ta(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),n&&Ca(t,i,n)},Ma.prototype.mergeOption=function(t,e){s(this.option,t,!0);var n=Sa(this);n&&Ca(this.option,t,n)},Ma.prototype.optionUpdated=function(t,e){},Ma.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fm])return t.defaultOption;var e=ow(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;0<=a;a--)o=s(o,n[a],!0);e.defaultOption=o}return e.defaultOption},Ma.prototype.getReferringComponents=function(t,e){var n=t+"Id";return si(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},Ma.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},Ma.prototype.getZLevelKey=function(){return""},Ma.prototype.setZLevel=function(t){this.option.zlevel=t},Ma.protoInitialize=((Ix=Ma.prototype).type="component",Ix.id="",Ix.name="",Ix.mainType="",Ix.subType="",void(Ix.componentIndex=0)),Ma);pi(aw,Ox),gi(aw),iw={},(nw=aw).registerSubTypeDefaulter=function(t,e){t=hi(t),iw[t.main]=e},nw.determineSubType=function(t,e){var n,i=e.type;return i||(n=hi(t).main,nw.hasSubTypes(t)&&iw[n]&&(i=iw[n](e))),i},rw=function(t){var e=[];return f(aw.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return hi(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e},aw.topologicalTravel=function(t,e,n,i){function r(t){0===--u[t].entryCount&&c.push(t)}function o(t){p[t]=!0,r(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,n,i=Ia(s,t),r=i.originalDeps=rw(t),r=(e=a,n=[],f(r,function(t){0<=h(e,t)&&n.push(t)}),n);i.entryCount=r.length,0===i.entryCount&&l.push(t),f(r,function(e){h(i.predecessor,e)<0&&i.predecessor.push(e);var n=Ia(s,e);h(n.successor,e)<0&&n.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},u=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=u[d],y=!!p[d];y&&(n.call(i,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?o:r)}f(p,function(){throw new Error("")})}};var sw,lw,uw,hw,Ax="",mm=("undefined"!=typeof navigator&&(Ax=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),cw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ax.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},pw=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dw="original",fw="arrayRows",gw="objectRows",yw="keyedColumns",mw="typedArray",vw="unknown",_w="column",xw="row",ww={Must:1,Might:2,Not:3},bw=ri(),Sw=U(),Cw=ri(),Tw=(ri(),Pa.prototype.getColorFromPalette=function(t,e,n){var i=Xn(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=Cw;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=n&&r?Oa(r,n):i)||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},Pa.prototype.clearColorPalette=function(){var t,e;(e=Cw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Pa),Mw="\0_ec_inner",Iw=(n(La,hw=Ox),La.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Ox(i),this._locale=new Ox(r),this._optionManager=o},La.prototype.setOption=function(t,e,n){e=Na(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},La.prototype.resetOption=function(t,e){return this._resetOption(t,Na(e))},La.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):uw(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&f(n,function(t){i=!0,this._mergeOption(t,e)},this),i},La.prototype.mergeOption=function(t){this._mergeOption(t,null)},La.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],u=U(),h=e&&e.replaceMergeMainTypeMap;bw(this).datasetMap=U(),f(t,function(t,e){null!=t&&(aw.hasClass(e)?e&&(o.push(e),u.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),h&&h.each(function(t,e){aw.hasClass(e)&&!u.get(e)&&(o.push(e),u.set(e,!0))}),aw.topologicalTravel(o,aw.getAllClassMainTypes(),function(e){var o,a=function(t,e,n){return(e=(e=Sw.get(e))&&e(t))?n.concat(e):n}(this,e,Xn(t[e])),s=i.get(e),u=s?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Kn(s,a,u),c=(ni(s,e,aw),n[e]=null,i.set(e,null),r.set(e,0),[]),p=[],d=0;f(s,function(t,n){var i=t.existing,r=t.newOption;if(r){var a=aw.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1)):(n=l({componentIndex:n},t.keyInfo),l(i=new a(r,this,this,n),n),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))},this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&sw(this)},this),this._seriesIndices||sw(this)},La.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,n){if(aw.hasClass(n)){for(var i=Xn(e),r=i.length,o=!1,a=r-1;0<=a;a--)i[a]&&!ei(i[a])?o=!0:(i[a]=null,o||r--);i.length=r,t[n]=i}}),delete t[Mw],t},La.prototype.getTheme=function(){return this._theme},La.prototype.getLocaleModel=function(){return this._locale},La.prototype.setUpdatePayload=function(t){this._payload=t},La.prototype.getUpdatePayload=function(){return this._payload},La.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0])return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},La.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],f(Xn(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?Ra("id",n,r):null!=i?Ra("name",i,r):m(r,function(t){return!!t}),Ea(o,t)):[]},La.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!(n=n)||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=r?this.queryComponents(r):m(this._componentsMap.get(i),function(t){return!!t});return n=Ea(o,t),t.filter?m(n,t.filter):n},La.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(w(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=b(t)?i.get(t):T(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},La.prototype.getSeriesByName=function(t){var e=Jn(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},La.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},La.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},La.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},La.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},La.prototype.eachSeries=function(t,e){lw(this),f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},La.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},La.prototype.eachSeriesByType=function(t,e,n){lw(this),f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},La.prototype.eachRawSeriesByType=function(t,e,n){return f(this.getSeriesByType(t),e,n)},La.prototype.isSeriesFiltered=function(t){return lw(this),null==this._seriesIndicesMap.get(t.componentIndex)},La.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},La.prototype.filterSeries=function(t,e){lw(this);var n=[];f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=U(n)},La.prototype.restoreData=function(t){sw(this);var e=this._componentsMap,n=[];e.each(function(t,e){aw.hasClass(e)&&n.push(e)}),aw.topologicalTravel(n,aw.getAllClassMainTypes(),function(n){f(e.get(n),function(e){!e||"series"===n&&function(t,e){var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},La.internalField=(sw=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=U(e)},lw=function(t){},void(uw=function(t,e){t.option={},t.option[Mw]=1,t._componentsMap=U({series:[]}),t._componentsCount=U();var n,i,r=e.aria;T(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,f(r,function(t,e){"colorLayer"===e&&i||aw.hasClass(e)||("object"==typeof t?n[e]=n[e]?s(n[e],t,!1):a(t):null==n[e]&&(n[e]=t))}),s(e,cw,!1),t._mergeOption(e,null)})),La);p(Iw,Tw);var kw,Dw,Aw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pw={},Ow=(za.prototype.create=function(t,e){var n=[];f(Pw,function(i,r){i=i.create(t,e),n=n.concat(i||[])}),this._coordinateSystems=n},za.prototype.update=function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},za.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},za.register=function(t,e){Pw[t]=e},za.get=function(t){return Pw[t]},za),Lw=/^(min|max)?(.+)$/,Rw=(Fa.prototype.setOption=function(t,e,n){t&&(f(Xn(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Xn(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var i=this._optionBackup,t=function(t,e,n){function i(t){f(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||c)&&(t.options=t.media=null),o=t),c&&x(h)&&f(h,function(t){t&&t.option&&(t.query?a.push(t):r=r||t)}),i(o),f(u,i),f(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Fa.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},Fa.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?a(n[t.getCurrentIndex()]):e},Fa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(i.length||r){for(var l,u,h=0,c=i.length;h<c;h++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n,e=e.match(Lw);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(r=!1))}),r}(i[h].query,e,n)||o.push(h);(o=!o.length&&r?[-1]:o).length&&(l=o,u=this._currentMediaIndices,l.join(",")!==u.join(","))&&(s=g(o,function(t){return a((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return s},Fa),Ew=f,Nw=T,Bw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],zw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],Hw=function(t){this.data=t.data||(t.sourceFormat===yw?{}:[]),this.sourceFormat=t.sourceFormat||vw,this.seriesLayoutBy=t.seriesLayoutBy||_w,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Aa(this,n)===ww.Must&&(i.type="ordinal")}};ss.prototype.getSource=function(){return this._source},ss.prototype.count=function(){return 0},ss.prototype.getItem=function(t,e){},ss.prototype.appendData=function(t){},ss.prototype.clean=function(){},ss.protoInitialize=((fx=ss.prototype).pure=!1,void(fx.persistent=!0)),ss.internalField=(Dw=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;l(t,kw[gs(r,o)]),r===mw?(t.getItem=Gw,t.count=Uw,t.fillStorage=Ww):(i=hs(r,o),t.getItem=Qf(i,null,e,a,n),i=ps(r,o),t.count=Qf(i,null,e,a,n))},Gw=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},Ww=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Uw=function(){return this._data?this._data.length/this._dimSize:0},(fx={})[fw+"_"+_w]={pure:!0,appendData:ls},fx[fw+"_"+xw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},fx[gw]={pure:!0,appendData:ls},fx[yw]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},fx[dw]={appendData:ls},fx[mw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(kw=fx));var Gw,Ww,Uw,jw=ss;(jx={})[fw+"_"+_w]=function(t,e,n,i){return t[i+e]},jx[fw+"_"+xw]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},jx[gw]=us,jx[yw]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},jx[dw]=us;var Yw=jx;(Ix={})[fw+"_"+_w]=function(t,e,n){return Math.max(0,t.length-e)},Ix[fw+"_"+xw]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},Ix[gw]=cs,Ix[yw]=function(t,e,n){return t=t[n[0].name],t?t.length:0},Ix[dw]=cs;var Xw=Ix;(mm={})[fw]=ds,mm[gw]=function(t,e,n){return t[n]},mm[yw]=ds,mm[dw]=function(t,e,n){return t=Zn(t),t instanceof Array?t[e]:t},mm[mw]=ds;var qw=mm,Zw=/\{@(.+?)\}/g,Kw=(ms.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},ms.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),n=this.getDataParams(t,n);return o&&(n.value=o.interpolatedValue),null!=i&&x(n.value)&&(n.value=n.value[i]),w(r=r||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(n.status=e,n.dimensionIndex=i,r(n)):b(r)?ma(r,n).replace(Zw,function(e,n){var i=n.length,i=("["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),ys(a,t,n));return null!=(i=o&&x(o.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?o.interpolatedValue[n]:i)?i+"":""}):void 0},ms.prototype.getRawValue=function(t,e){return ys(this.getData(e),t)},ms.prototype.formatTooltip=function(t,e,n){},ms);xs.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var n,i,r=this._upstream,o=t&&t.skip,a=(this._dirty&&r&&((a=this.context).data=a.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(n=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;if(a===l&&s===u||(n="reset"),!this._dirty&&"reset"!==n||(this._dirty=!1,i=this._doReset(o)),this._modBy=l,this._modDataCount=u,a=t&&t.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!o&&(i||h<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,l,u);else this._doProgress(p,h,c,l,u)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},xs.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},xs.prototype._doProgress=function(t,e,n,i,r){rb.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:rb.next},this.context)},xs.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),x(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},xs.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},xs.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},xs.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},xs.prototype.getUpstream=function(){return this._upstream},xs.prototype.getDownstream=function(){return this._downstream},xs.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var $w,Qw,Jw,tb,eb,nb,ib=xs,rb=nb={reset:function(t,e,n,i){Qw=t,$w=e,Jw=n,tb=i,eb=Math.ceil(tb/Jw),nb.next=1<Jw&&0<tb?bs:ws}},ob=U({number:function(t){return parseFloat(t)},time:function(t){return+Bn(t)},trim:function(t){return b(t)?F(t):t}}),ab={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},sb=(Ts.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(Hn(t),this._rvalFloat)},Ts);Ms.prototype.evaluate=function(t,e){var n=C(t)?t:Hn(t),i=C(e)?e:Hn(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=b(t),o=b(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var lb=Ms;Is.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Hn(t)===this._rvalFloat),this._isEQ?n:!n};var ub=Is;ks.prototype.getRawData=function(){throw new Error("not supported")},ks.prototype.getRawDataItem=function(t){throw new Error("not supported")},ks.prototype.cloneRawData=function(){},ks.prototype.getDimensionInfo=function(t){},ks.prototype.cloneAllDimensionInfo=function(){},ks.prototype.count=function(){},ks.prototype.retrieveValue=function(t,e){},ks.prototype.retrieveValueFromItem=function(t,e){},ks.prototype.convertValue=Ss;var hb,cb=ks,pb=U(),Ax="undefined",db=typeof Uint32Array==Ax?Array:Uint32Array,fb=typeof Uint16Array==Ax?Array:Uint16Array,gb=typeof Int32Array==Ax?Array:Int32Array,fx=typeof Float64Array==Ax?Array:Float64Array,yb={float:fx,int:gb,ordinal:Array,number:Array,time:fx};zs.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=hb[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],as(i),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},zs.prototype.getProvider=function(){return this._provider},zs.prototype.getSource=function(){return this._provider.getSource()},zs.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new yb[e||"float"](this._rawCount),this._rawExtent[r]=Ns(),r},zs.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length,s=(0===o&&(r[t]=Ns()),r[t]),l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},zs.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},zs.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},zs.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},zs.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)Bs(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=hb.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},zs.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=Ns()),Bs(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},zs.prototype.count=function(){return this._count},zs.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},zs.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},zs.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},zs.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},zs.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},zs.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},zs.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&0<=h&&a<0)&&(o=c,a=h,s=0),h===a)&&(r[s++]=l)}r.length=s}return r},zs.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else for(i=new(e=Es(this._rawCount))(this.count()),r=0;r<i.length;r++)i[r]=r;return i},zs.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Es(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},zs.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=v(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Es(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===r){for(var d=c[i[0]],f=0;f<n;f++)(u<=(_=d[f])&&_<=h||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var _=d[f],x=g[f];(u<=_&&_<=h||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===r)for(f=0;f<o;f++){var w=e.getRawIndex(f);(u<=(_=c[i[0]][w])&&_<=h||isNaN(_))&&(a[s++]=w)}else for(f=0;f<o;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<r;S++){var C=i[S];((_=c[C][w])<t[C][0]||_>t[C][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},zs.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},zs.prototype.modify=function(t,e){this._updateDims(this,t,e)},zs.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Ns();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},zs.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Es(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[C=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var C,y=r[C=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=C)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,w=C)}0<S&&S<m-c&&(u[a++]=Math.min(b,w),w=Math.max(b,w)),l=u[a++]=w}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},zs.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Ns(),c=new(Es(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},zs.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},zs.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Ns();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var r,o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,a]},zs.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},zs.prototype.clone=function(t,e){var n,i,r=new zs,o=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},zs.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=a(this._extent),t._rawExtent=a(this._rawExtent)},zs.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},zs.prototype._getRawIdxIdentity=function(t){return t},zs.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},zs.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},zs.internalField=void(hb={arrayRows:Fs,objectRows:function(t,e,n,i){return Ss(t[e],this._dimensions[i])},keyedColumns:Fs,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),Ss(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var mb=zs;Vs.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Vs.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Vs.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Vs.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Vs.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Gs(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=I(o=i.get("data",!0))?mw:dw,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=R(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=R(i.sourceHeader,r.sourceHeader),i=R(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[es(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[es(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Vs.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Ws(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Ws(""),o.push(e),s.push(t._getVersionSign())}),i?e=Ls(i,o,n.componentIndex):null!=r&&(e=[new Hw({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Vs.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Vs.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Vs.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Vs.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],Gs(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new mb).initData(new jw(e,t.length),t),o[n]=r),r},Vs.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Gs(e)?(t=Da(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?si(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},cm).models:[],function(t){return t.getSourceManager()})},Vs.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Gs(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var vb=Vs,_b="line-height:1",xb=[0,10,20,30],wb=["","\n","\n\n","\n\n\n"];tl.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},tl.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=va({color:e,type:t,renderMode:n,markerId:i});return b(e)?e:(this.richTextStyles[i]=e.style,e.content)},tl.prototype.wrapRichTextStyle=function(t,e){var n={},e=(x(e)?f(e,function(t){return l(n,t)}):l(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var bb=tl,Sb=ri();n(il,Cb=aw),il.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=_s({count:ol,reset:al}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Sb(this).sourceManager=new vb(this)).prepareSource(),t=this.getInitialData(t,n),ll(t,this),this.dataTask.context.data=t,Sb(this).dataBeforeProcessed=t,rl(this),this._initSelectedMapFromData(t)},il.prototype.mergeDefaultAndTheme=function(t,e){var n=Sa(this),i=n?Ta(t):{},r=this.subType;aw.hasClass(r),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),qn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ca(t,i,n)},il.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Sa(this),n=(n&&Ca(this.option,t,n),Sb(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));ll(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Sb(this).dataBeforeProcessed=n,rl(this),this._initSelectedMapFromData(n)},il.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&qn(t[n],"label",e)},il.prototype.getInitialData=function(t,e){},il.prototype.appendData=function(t){this.getRawData().appendData(t.data)},il.prototype.getData=function(t){var e=hl(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Sb(this).data},il.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},il.prototype.setData=function(t){var e,n=hl(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Sb(this).data=t},il.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return U(t)},il.prototype.getSourceManager=function(){return Sb(this).sourceManager},il.prototype.getSource=function(){return this.getSourceManager().getSource()},il.prototype.getRawData=function(){return Sb(this).dataBeforeProcessed},il.prototype.getColorBy=function(){return this.get("colorBy")||"series"},il.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},il.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},il.prototype.formatTooltip=function(t,e,n){return el({series:this,dataIndex:t,multipleSeries:e})},il.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!Pf.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},il.prototype.restoreData=function(){this.dataTask.dirty()},il.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Tw.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},il.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},il.prototype.getProgressive=function(){return this.get("progressive")},il.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},il.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},il.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=nl(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},il.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},il.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},il.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[nl(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},il.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},il.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,r=e.length;if(i&&r)if("series"===i)n.selectedMap="all";else if("multiple"===i){T(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=nl(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=nl(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},il.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),0<e.length&&this._innerSelect(t,e))},il.registerClass=function(t){return aw.registerClass(t)},il.protoInitialize=((jx=il.prototype).type="series.__base__",jx.seriesIndex=0,jx.ignoreStyleOnData=!1,jx.hasSymbolVisual=!1,jx.defaultSymbol="circle",jx.visualStyleAccessPath="itemStyle",void(jx.visualDrawType="fill"));var Cb,Tb=il;p(Tb,Kw),p(Tb,Tw),pi(Tb,aw),cl.prototype.init=function(t,e){},cl.prototype.render=function(t,e,n,i){},cl.prototype.dispose=function(t,e){},cl.prototype.updateView=function(t,e,n,i){},cl.prototype.updateLayout=function(t,e,n,i){},cl.prototype.updateVisual=function(t,e,n,i){},cl.prototype.toggleBlurSeries=function(t,e,n){},cl.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Mb=cl;ci(Mb),gi(Mb);var Ib=ri(),kb=pl(),Db=(dl.prototype.init=function(t,e){},dl.prototype.render=function(t,e,n,i){},dl.prototype.highlight=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&gl(t,i,"emphasis")},dl.prototype.downplay=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&gl(t,i,"normal")},dl.prototype.remove=function(t,e){this.group.removeAll()},dl.prototype.dispose=function(t,e){},dl.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},dl.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},dl.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},dl.prototype.eachRendered=function(t){Ro(this.group,t)},dl.markUpdateMethod=function(t,e){Ib(t).updateMethod=e},dl.protoInitialize=void(dl.prototype.type="chart"),dl);ci(Db),gi(Db);var Ab={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Pb="\0__throttleOriginMethod",Ob="\0__throttleRate",Lb="\0__throttleType",Rb=ri(),Eb={itemStyle:yi(kx,!0),lineStyle:yi(Tx,!0)},Nb={lineStyle:"stroke",itemStyle:"fill"},Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=wl(t,i)(r),r=r.getShallow("decal"),a=(r&&(n.setVisual("decal",r),r.dirty=!0),bl(t,i)),r=o[a],s=w(r)?r:null,i="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!i||(r=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=r,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||w(o.fill)?r:o.fill,o.stroke="auto"===o.stroke||w(o.stroke)?r:o.stroke),n.setVisual("style",o),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},o);r[a]=s(i),e.setItemVisual(n,"style",r)}}}},Bb=new Ox,mm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=wl(t,n),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[n]&&(Bb.option=o[n],o=i(Bb),l(t.ensureUniqueItemVisual(e,"style"),o),Bb.option.decal&&(t.setItemVisual(e,"decal",Bb.option.decal),Bb.option.decal.dirty=!0),r in o)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Ax={performRawSeries:!0,overallReset:function(t){var e=U();t.eachSeries(function(t){var n,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(n=e.get(i))||e.set(i,n={}),Rb(t).scope=n)}),t.eachSeries(function(e){var n,i,r,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),i={},r=e.getData(),o=Rb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bl(e,a),r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a,l=i[t];r.getItemVisual(l,"colorFromPalette")&&(l=r.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,o,a))}))})}},zb=Math.PI;Sl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},Sl.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Sl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Sl.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Sl.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},Sl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;f(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});z(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},Sl.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Sl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Sl.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Sl.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;f(t,function(t,s){var l,u,h,c,p;i.visualType&&i.visualType!==t.visualType||(l=(u=a._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((c=u.agentStubMap).each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n),p=a.getPerformArgs(u,i.block),c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)):l&&l.each(function(s,l){r(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(o=!0)}))}),this.unfinished=o||this.unfinished},Sl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Sl.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Sl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Sl.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,r=s.set(r,a&&a.get(r)||_s({plan:kl,reset:Dl,count:Pl}));r.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,r)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=U(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):e?n.eachRawSeriesByType(e,r):l&&l(n,i).each(r)},Sl.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,_s({reset:Tl,onDirty:Il})));e.context={model:t,overallProgress:h},e.agent=a,e.__block=h,o._pipe(t,e)}var o=this,a=e.overallTask=e.overallTask||_s({reset:Cl}),s=(a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},a.agentStubMap),l=a.agentStubMap=U(),e=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;z(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,r):u?u(n,i).each(r):(h=!1,f(n.getSeries(),r)),c&&a.dirty()},Sl.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Sl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){Fb=null;try{t(Gb,Wb)}catch(t){}return Fb}(t)}:t).uid=Xo("stageHandler"),e&&(t.visualType=e),t};var Fb,Vb=Sl,Hb=Al(0),Gb={},Wb={};Ol(Gb,Iw),Ol(Wb,Ba),Gb.eachSeriesByType=Gb.eachRawSeriesByType=function(t){Fb=t},Gb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Fb=t.subType)};var fx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],jx={color:fx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],fx]},Ub="#B9B8CE",kx="#100C2A",Tx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fx={darkMode:!0,color:Tx,backgroundColor:kx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ub}},textStyle:{color:Ub},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ub}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ub},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ub}},timeline:{lineStyle:{color:Ub},label:{color:Ub},controlStyle:{color:Ub,borderColor:Ub}},calendar:{itemStyle:{color:kx},dayLabel:{color:Ub},monthLabel:{color:Ub},yearLabel:{color:Ub}},timeAxis:Ll(),logAxis:Ll(),valueAxis:Ll(),categoryAxis:Ll(),line:{symbol:"circle"},graph:{color:Tx},gauge:{title:{color:Ub},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ub},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},jb=(fx.categoryAxis.splitLine.show=!1,Rl.prototype.normalizeQuery=function(t){var e,n,i,r={},o={},a={};return b(t)?(e=hi(t),r.mainType=e.main||null,r.subType=e.sub||null):(n=["Index","Name","Id"],i={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],h=e.lastIndexOf(u);0<h&&h===e.length-u.length&&"data"!==(h=e.slice(0,h))&&(r.mainType=h,r[u.toLowerCase()]=t,s=!0)}i.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:r,dataQuery:o,otherQuery:a}},Rl.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i,r,o,a,s,l=this.eventInfo;return!l||(i=l.targetEl,r=l.packedEvent,o=l.model,l=l.view,!o)||!l||(a=e.cptQuery,s=e.dataQuery,n(a,o,"mainType")&&n(a,o,"subType")&&n(a,o,"index","componentIndex")&&n(a,o,"name")&&n(a,o,"id")&&n(s,r,"name")&&n(s,r,"dataIndex")&&n(s,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,i,r)))},Rl.prototype.afterTrigger=function(){this.eventInfo=null},Rl),Yb=["symbol","symbolSize","symbolRotate","symbolOffset"],Xb=Yb.concat(["symbolKeepAspect"]),kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i,r={},o={},a=!1,s=0;s<Yb.length;s++){var u=Yb[s],h=t.get(u);w(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t))return i=v(o),{dataEach:a?function(e,n){for(var r=t.getRawValue(n),a=t.getDataParams(n),s=0;s<i.length;s++){var l=i[s];e.setItemVisual(n,l,o[l](r,a))}}:null}}}},Tx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Xb.length;i++){var r=Xb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},qb=Math.round(9*Math.random()),Zb="function"==typeof Object.defineProperty,Kb=(zl.prototype.get=function(t){return this._guard(t)[this._id]},zl.prototype.set=function(t,e){return t=this._guard(t),Zb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},zl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},zl.prototype.has=function(t){return!!this._guard(t)[this._id]},zl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},zl),$b=yv.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),Qb=yv.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),Jb=yv.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),tS=yv.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),eS={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){n=Math.min(n,i),r.x=t,r.y=e,r.width=n,r.height=n},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},nS={},iS=(f({line:G_,rect:Iv,roundRect:Iv,square:Iv,circle:p_,diamond:Qb,pin:Jb,arrow:tS,triangle:$b},function(t,e){nS[e]=new t}),yv.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=yn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,r=e.symbolType;"none"!==r&&(i=(i=nS[r])||nS[r="rect"],eS[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}})),rS=new ov(!0),oS=["shadowBlur","shadowOffsetX","shadowOffsetY"],aS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],sS=1,lS=2,uS=3,hS=4,cS=new Kb,pS=new sy(100),dS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],fS=new hg,gS={},Qb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},yS="__flagInMainProcess",mS="__pendingUpdate",vS="__needsUpdateStatus",_S=/^[a-zA-Z0-9_]+$/,xS="__connectUpdateStatus";n(cu,wS=hg);var wS,bS,SS,CS,TS,MS,IS,kS,DS,AS,PS,OS,LS,RS,ES,NS,BS,zS,FS,VS,HS=cu,Jb=HS.prototype,GS=(Jb.on=uu("on"),Jb.off=uu("off"),n(pu,VS=hg),pu.prototype._onframe=function(){if(!this._disposed){FS(this);var t=this._scheduler;if(this[mS]){var e=this[mS].silent;this[yS]=!0;try{bS(this),TS.update.call(this,null,this[mS].updateParams)}catch(t){throw this[yS]=!1,this[mS]=null,t}this._zr.flush(),this[yS]=!1,this[mS]=null,DS.call(this,e),AS.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),IS(this,i),t.performVisualTasks(i),ES(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},pu.prototype.getDom=function(){return this._dom},pu.prototype.getId=function(){return this.id},pu.prototype.getZr=function(){return this._zr},pu.prototype.isSSR=function(){return this._ssr},pu.prototype.setOption=function(t,e,n){if(!this[yS])if(this._disposed)this.id;else{T(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[yS]=!0,this._model&&!e||(e=new Rw(this._api),a=this._theme,(s=this._model=new Iw).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},XS);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[mS]={silent:i,updateParams:s},this[yS]=!1,this.getZr().wakeUp();else{try{bS(this),TS.update.call(this,null,s)}catch(t){throw this[mS]=null,this[yS]=!1,t}this._ssr||this._zr.flush(),this[mS]=null,this[yS]=!1,DS.call(this,i),AS.call(this,i)}}},pu.prototype.setTheme=function(){},pu.prototype.getModel=function(){return this._model},pu.prototype.getOption=function(){return this._model&&this._model.getOption()},pu.prototype.getWidth=function(){return this._zr.getWidth()},pu.prototype.getHeight=function(){return this._zr.getHeight()},pu.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Pf.hasGlobalWindow&&window.devicePixelRatio||1},pu.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},pu.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},pu.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},pu.prototype.getSvgDataURL=function(){var t;if(Pf.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},pu.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,f(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(n,function(t){t.group.ignore=!1}),r;this.id},pu.prototype.getConnectedDataURL=function(t){var e,n,i,r,o,s,l,u,h,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,QS[n]?(s=o=1/0,u=l=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f($S,function(c,p){var d;c.group===n&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),o=i(c.left,o),s=i(c.top,s),l=r(c.right,l),u=r(c.bottom,u),h.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(o*=c),d=(u*=c)-(s*=c),g=zf.createCanvas(),(y=Tn(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(h,function(t){var e=t.left-o,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new Iv({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(h,function(t){t=new bv({style:{x:t.left*c-o,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},pu.prototype.convertToPixel=function(t,e){return MS(this,"convertToPixel",t,e)},pu.prototype.convertFromPixel=function(t,e){return MS(this,"convertFromPixel",t,e)},pu.prototype.containPixel=function(t,e){var n;if(!this._disposed)return f(oi(this._model,t),function(t,i){0<=i.indexOf("Models")&&f(t,function(t){var r=t.coordinateSystem;r&&r.containPoint?n=n||!!r.containPoint(e):"seriesModels"===i&&(r=this._chartsMap[t.__viewId])&&r.containPoint&&(n=n||r.containPoint(e,t))},this)},this),!!n;this.id},pu.prototype.getVisual=function(t,e){var t=oi(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null==t)return El(n,e);var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}},pu.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},pu.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},pu.prototype._initEvents=function(){var t,e,n,i=this;f(WS,function(t){function e(e){var n,r,o,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&Bl(s,function(t){var e,t=Ev(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(n=l({},t.eventData),1)},!0),n&&(r=n.componentType,o=n.componentIndex,"markLine"!==r&&"markPoint"!==r&&"markArea"!==r||(r="series",o=n.seriesIndex),o=(r=r&&null!=o&&a.getComponent(r,o))&&i["series"===r.mainType?"_chartsMap":"_componentsMap"][r.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:r,view:o},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),f(jS,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),f(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Nl("map","selectchanged",e,i,t),Nl("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Nl("map","selected",e,i,t),Nl("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Nl("map","unselected",e,i,t),Nl("pie","unselected",e,i,t))})},pu.prototype.isDisposed=function(){return this._disposed},pu.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},pu.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&li(this.getDom(),eC,""),e=(t=this)._api,n=t._model,f(t._componentsViews,function(t){t.dispose(n,e)}),f(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete $S[t.id])},pu.prototype.resize=function(t){if(!this[yS])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[mS]&&(null==n&&(n=this[mS].silent),e=!0,this[mS]=null),this[yS]=!0;try{e&&bS(this),TS.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[yS]=!1,t}this[yS]=!1,DS.call(this,n),AS.call(this,n)}}},pu.prototype.showLoading=function(t,e){this._disposed?this.id:(T(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),KS[t]&&(t=KS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},pu.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},pu.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=jS[t.type],e},pu.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(T(e)||(e={silent:!!e}),US[t.type]&&this._model&&(this[yS]?this._pendingActions.push(t):(n=e.silent,kS.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&Pf.browser.weChat&&this._throttledZrFlush(),DS.call(this,n),AS.call(this,n))))},pu.prototype.updateLabelLayout=function(){fS.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},pu.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},pu.internalField=(bS=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),SS(t,!0),SS(t,!1),e.plan()},SS=function(t,e){function n(t){var n,u=t.__requireNewView,h=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),u=!u&&a[h];u||(n=hi(t.type),(u=new(e?Mb.getClass(n.main,n.sub):Db.getClass(n.sub))).init(i,l),a[h]=u,o.push(u),s.add(u.group)),t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(u,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;for(e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n),u=0;u<o.length;){var h=o[u];h.__alive?u++:(e||h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},CS=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}var a,s,l=t._model;l.setUpdatePayload(n),i?((a={})[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"],a={mainType:i,query:a},r&&(a.subType=r),null!=(r=n.excludeSeriesId)&&(s=U(),f(Xn(r),function(t){null!=(t=Jn(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var i,r,o=s&&null!=s.get(e.id);if(!o)if(Rr(n))if(e instanceof Tb){if(n.type===jv&&!n.notBlur&&!e.get(["emphasis","disabled"])){var o=e,a=n,l=t._api,u=o.seriesIndex,h=o.getData(a.dataType);if(h){var a=(x(a=ii(h,a))?a[0]:a)||0,c=h.getItemGraphicEl(a);if(!c)for(var p=h.count(),d=0;!c&&d<p;)c=h.getItemGraphicEl(d++);c?Cr(u,(a=Ev(c)).focus,a.blurScope,l):(a=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=a&&Cr(u,a,o,l))}}}else u=Mr(e.mainType,e.componentIndex,n.name,t._api),a=u.focusSelf,o=u.dispatchers,n.type===jv&&a&&!n.notBlur&&Tr(e.mainType,e.componentIndex,t._api),o&&f(o,function(t){(n.type===jv?yr:mr)(t)});else Lr(n)&&e instanceof Tb&&(l=e,o=n,t._api,Lr(o)&&(i=o.dataType,x(r=ii(l.getData(i),o))||(r=[r]),l[o.type===Zv?"toggleSelect":o.type===Xv?"select":"unselect"](r,i)),Ir(e),zS(t))},t),l&&l.eachComponent(a,function(e){s&&null!=s.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),o)},TS={prepareAndUpdate:function(t){bS(this),TS.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),IS(this,n),o.update(n,i),du(n),a.performVisualTasks(n,t),LS(this,n,i,t,e),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),fS.trigger("afterupdate",n,i))},updateTransform:function(t){var e,n,i=this,r=this._model,o=this._api;r&&(r.setUpdatePayload(t),e=[],r.eachComponent(function(n,a){"series"!==n&&(n=i.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,r,o,t))&&a.update)&&e.push(n)}),n=U(),r.eachSeries(function(e){var a=i._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,r,o,t))&&a.update)&&n.set(e.uid,1)}),du(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:n}),ES(this,r,o,t,{},n),fS.trigger("afterupdate",r,o))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Db.markUpdateMethod(t,"updateView"),du(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),LS(this,e,this._api,t,{}),fS.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),Db.markUpdateMethod(t,"updateVisual"),du(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){"series"!==i&&(i=e.getViewOfComponentModel(r))&&i.__alive&&i.updateVisual(r,n,e._api,t)}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),fS.trigger("afterupdate",n,this._api))},updateLayout:function(t){TS.update.call(this,t)}},MS=function(t,e,n,i){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=oi(r,n),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,a,i)))return l}},IS=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},kS=function(t,e){var n,i,r=this,o=this.getModel(),a=t.type,s=t.escapeConnect,h=US[a],c=h.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&hi(p[0]),p=(this[yS]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=u(l({},e),t)).batch=null,e})),[]),_=Lr(t),x=Rr(t);if(x&&Sr(this._api),f(p,function(e){var i,o;(n=(n=h.action(e,r._model,r._api))||l({},e)).type=c.event||n.type,v.push(n),x?(i=(o=ai(t)).queryOptionMap,o=o.mainTypeSpecified?i.keys()[0]:"series",CS(r,d,e,o),zS(r)):_?(CS(r,d,e,"series"),zS(r)):y&&CS(r,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[mS]?(bS(this),TS.update.call(this,t),this[mS]=null):TS[d].call(this,t)}catch(e){throw this[yS]=!1,e}n=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[yS]=!1,e||((p=this._messageCenter).trigger(n.type,n),_&&(m={type:"selectchanged",escapeConnect:s,selected:(i=[],o.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),i.push(n))})}),i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},DS=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();kS.call(this,n,t)}},AS=function(t){t||this.trigger("updated")},PS=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[mS]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},OS=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a=Bl(t.target,Or);a&&(a=a,n=t,t=e._api,i=Ev(a),r=(o=Mr(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,o=o.focusSelf,r?(o&&Tr(i.componentMainType,i.componentIndex,t),f(r,function(t){return fr(t,n)})):(Cr(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&Tr(i.componentMainType,i.componentIndex,t),fr(a,n)),zS(e))}).on("mouseout",function(t){var n,i,r=Bl(t.target,Or);r&&(r=r,n=t,Sr(t=e._api),(i=Mr((i=Ev(r)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?f(i,function(t){return gr(t,n)}):gr(r,n),zS(e))}).on("click",function(t){var n,t=Bl(t.target,function(t){return null!=Ev(t).dataIndex},!0);t&&(n=t.selected?"unselect":"select",t=Ev(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},LS=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(Wt(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),RS(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive=!1}),ES(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},RS=function(t,e,n,i,r,o){f(o||t._componentsViews,function(t){var r=t.__model;yu(0,t),t.render(r,e,n,i),gu(r,t),mu(r,t)})},ES=function(t,e,n,i,r,o){var a,s,u,h,c=t._scheduler,p=(r=l(r||{},{updatedSeries:e.getSeries()}),fS.trigger("series:beforeupdate",e,n,r),!1);e.eachSeries(function(e){var n,r=t._chartsMap[e.__viewId],a=(r.__alive=!0,r.renderTask);c.updatePayload(a,i),yu(0,r),o&&o.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),r.group.silent=!!e.get("silent"),a=r,n=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=n)}),Ir(e)}),c.unfinished=p||c.unfinished,fS.trigger("series:layoutlabels",e,n,r),fS.trigger("series:transition",e,n,r),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];gu(e,n),mu(e,n)}),s=e,u=(a=t)._zr.storage,h=0,u.traverse(function(t){t.isGroup||h++}),h>s.get("hoverLayerThreshold")&&!Pf.node&&!Pf.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),fS.trigger("series:afterupdate",e,n,r)},zS=function(t){t[vS]=!0,t.getZr().wakeUp()},FS=function(t){t[vS]&&(t.getZr().storage.traverse(function(t){ho(t)||fu(t)}),t[vS]=!1)},NS=function(t){function e(){return null!==i&&i.apply(this,arguments)||this}return n(e,i=Ba),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){yr(e,n),zS(t)},e.prototype.leaveEmphasis=function(e,n){mr(e,n),zS(t)},e.prototype.enterBlur=function(e){vr(e),zS(t)},e.prototype.leaveBlur=function(e){_r(e),zS(t)},e.prototype.enterSelect=function(e){xr(e),zS(t)},e.prototype.leaveSelect=function(e){wr(e),zS(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);var i},void(BS=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][xS]=e}f(jS,function(n,i){t._messageCenter.on(i,function(n){var i,r;!QS[t.group]||0===t[xS]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),r=[],f($S,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),f(r,function(t){1!==t[xS]&&t.dispatchAction(i)}),e(r,2))})})})),pu),tS=GS.prototype,WS=(tS.on=lu("on"),tS.off=lu("off"),tS.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),US={},jS={},YS=[],XS=[],qS=[],ZS={},KS={},$S={},QS={},JS=+new Date,tC=+new Date,eC="_echarts_instance_";$b=vu;var nC=[];Du(2e3,Ix),Du(4500,mm),Du(4500,Ax),Du(2e3,kx),Du(4500,Tx),Du(7e3,function(t,e){t.eachRawSeries(function(n){var i;!t.isSeriesFiltered(n)&&((i=n.getData()).hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=au(n,e))}),n=i.getVisual("decal"))&&(i.getVisual("style").decal=au(n,e))})}),wu(Qa),bu(900,function(t){var e=U();t.eachSeries(function(t){var n,i=t.get("stack");i&&(i=e.get(i)||e.set(i,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t))}),e.each(Ja)}),Pu("default",function(t,e){u(e=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,i=new Jy,r=new Iv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(i.add(r),new Pv({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 Iv({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new Z_({shape:{startAngle:-zb/2,endAngle:-zb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*zb/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*zb/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),l=t.getHeight()/2;e.showSpinner&&n.setShape({cx:i,cy:l}),a.setShape({x:i-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}),Mu({type:jv,event:jv,update:jv},Z),Mu({type:Yv,event:Yv,update:Yv},Z),Mu({type:Xv,event:Xv,update:Xv},Z),Mu({type:qv,event:qv,update:qv},Z),Mu({type:Zv,event:Zv,update:Zv},Z),xu("light",jx),xu("dark",fx),Nu.prototype.add=function(t){return this._add=t,this},Nu.prototype.update=function(t){return this._update=t,this},Nu.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Nu.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Nu.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Nu.prototype.remove=function(t){return this._remove=t,this},Nu.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Nu.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=i[o],l=n[s],u=Ru(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},Nu.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=Ru(l),c=Ru(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},Nu.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Ru(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},Nu.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=Ru(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var iC=Nu;Bu.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Bu.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var rC,oC,aC,sC,lC,uC,hC,cC=Bu,pC=function(t){this.otherDims={},null!=t&&l(this,t)},dC=ri(),fC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gC=(Vu.prototype.isDimensionOmitted=function(){return this._dimOmitted},Vu.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Wu(this.source))},Vu.prototype.getSourceDimensionIndex=function(t){return R(this._dimNameMap.get(t),-1)},Vu.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Vu.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=as(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(fC[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Vu.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},Vu.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Vu),yC=T,mC=g,vC="undefined"==typeof Int32Array?Array:Int32Array,_C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xC=["_approximateExtent"],wC=(Uu.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},Uu.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Uu.prototype._recognizeDimIndex=function(t){if(C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Uu.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Uu.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Uu.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},Uu.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Uu.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},Uu.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Uu.prototype.getStore=function(){return this._store},Uu.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof mb?t:i)||(r=this.dimensions,t=ts(t)||d(t)?new jw(t,r.length):t,i=new mb,r=mC(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=zu(this,this._schema),this.userOutput=this._dimSummary.userOutput},Uu.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Uu.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&hC(this,o)},Uu.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},Uu.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==mw&&!t.fillStorage},Uu.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===dw&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!T(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=Jn(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=Jn(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)hC(this,a);rC(this)}},Uu.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Uu.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Uu.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Uu.prototype.setCalculationInfo=function(t,e){yC(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Uu.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?aC(this,this._nameDimIdx,t):e)?"":e},Uu.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Uu.prototype.getId=function(t){return oC(this,this.getRawIndex(t))},Uu.prototype.count=function(){return this._store.count()},Uu.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Uu.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Uu.prototype.getIndices=function(){return this._store.getIndices()},Uu.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Uu.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Uu.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Uu.prototype.getValues=function(t,e){var n=this,i=this._store;return x(t)?i.getValues(mC(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},Uu.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Uu.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Uu.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Uu.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Uu.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Uu.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Uu.prototype.each=function(t,e,n){w(t)&&(n=e,e=t,t=[]),n=n||this,t=mC(sC(t),this._getStoreDimIndex,this),this._store.each(t,n?Qf(e,n):e)},Uu.prototype.filterSelf=function(t,e,n){return w(t)&&(n=e,e=t,t=[]),n=n||this,t=mC(sC(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?Qf(e,n):e),this},Uu.prototype.selectRange=function(t){var e=this,n={};return f(v(t),function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]}),this._store=this._store.selectRange(n),this},Uu.prototype.mapArray=function(t,e,n){w(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},Uu.prototype.map=function(t,e,n,i){return n=n||i||this,i=mC(sC(t),this._getStoreDimIndex,this),t=uC(this),t._store=this._store.map(i,n?Qf(e,n):e),t},Uu.prototype.modify=function(t,e,n,i){n=n||i||this,i=mC(sC(t),this._getStoreDimIndex,this),this._store.modify(i,n?Qf(e,n):e)},Uu.prototype.downSample=function(t,e,n,i){var r=uC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},Uu.prototype.lttbDownSample=function(t,e){var n=uC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Uu.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Uu.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Ox(t,e,e&&e.ecModel)},Uu.prototype.diff=function(t){var e=this;return new iC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return oC(t,e)},function(t){return oC(e,t)})},Uu.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Uu.prototype.setVisual=function(t,e){this._visual=this._visual||{},yC(t)?l(this._visual,t):this._visual[t]=e},Uu.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Uu.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Uu.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(x(n=this.getVisual(e))?n=n.slice():yC(n)&&(n=l({},n)),i[e]=n),n},Uu.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,yC(e)?l(i,e):i[e]=n},Uu.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Uu.prototype.setLayout=function(t,e){yC(t)?l(this._layout,t):this._layout[t]=e},Uu.prototype.getLayout=function(t){return this._layout[t]},Uu.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Uu.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},Uu.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Uu.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=Ev(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Ev(t),t.seriesIndex=n,t.dataIndex=r,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},Uu.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Uu.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Uu.prototype.cloneShallow=function(t){return t=t||new Uu(this._schema||mC(this.dimensions,this._getDimInfo,this),this.hostModel),lC(t,this),t._store=this._store,t},Uu.prototype.wrapMethod=function(t,e){var n=this[t];w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Uu.internalField=(rC=function(t){var e=t._invertedIndicesMap;f(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new vC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},aC=function(t,e,n){return Jn(t._getCategory(e,n),null)},oC=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?aC(t,t._idDimIdx,e):n)?"e\0\0"+e:n},sC=function(t){return t=x(t)?t:null!=t?[t]:[]},uC=function(t){var e=new Uu(t._schema||mC(t.dimensions,t._getDimInfo,t),t.hostModel);return lC(e,t),e},lC=function(t,e){f(_C.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,f(xC,function(n){t[n]=a(e[n])}),t._calculationInfo=l({},e._calculationInfo)},void(hC=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=aC(t,r,e)),null==s&&null!=o&&(i[e]=s=aC(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),Uu),bC=function(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t},SC={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",cm).models[0],t=t.getReferringComponents("yAxis",cm).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),Yu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Yu(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",cm).models[0],e.coordSysDims=["single"],n.set("single",t),Yu(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",cm).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),Yu(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Yu(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=r.getComponent("parallelAxis",t),s=o[a];n.set(s,t),Yu(t)&&(i.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};$u.prototype.getSetting=function(t){return this._setting[t]},$u.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},$u.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},$u.prototype.getExtent=function(){return this._extent.slice()},$u.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},$u.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},$u.prototype.isBlank=function(){return this._isBlank},$u.prototype.setBlank=function(t){this._isBlank=t};var CC=$u;gi(CC);var TC=0,MC=(Qu.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Ju);return new Qu({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Qu.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Qu.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return b(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},Qu.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},Qu);n(lh,IC=CC),lh.prototype.parse=function(t){return null==t?NaN:b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},lh.prototype.contain=function(t){return oh(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},lh.prototype.normalize=function(t){return ah(t=this._getTickNumber(this.parse(t)),this._extent)},lh.prototype.scale=function(t){return t=Math.round(sh(t,this._extent)),this.getRawOrdinalNumber(t)},lh.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},lh.prototype.getMinorTicks=function(t){},lh.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}},lh.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},lh.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},lh.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},lh.prototype.count=function(){return this._extent[1]-this._extent[0]+1},lh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},lh.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},lh.prototype.getOrdinalMeta=function(){return this._ordinalMeta},lh.prototype.calcNiceTicks=function(){},lh.prototype.calcNiceExtent=function(){},lh.type="ordinal";var IC,kC=lh;CC.registerClass(kC);var DC,AC=Pn,PC=(n(uh,DC=CC),uh.prototype.parse=function(t){return t},uh.prototype.contain=function(t){return oh(t,this._extent)},uh.prototype.normalize=function(t){return ah(t,this._extent)},uh.prototype.scale=function(t){return sh(t,this._extent)},uh.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},uh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},uh.prototype.getInterval=function(){return this._interval},uh.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ih(t)},uh.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]<i[0]&&o.push(t?{value:AC(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=AC(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:i[1];n[1]>s&&o.push(t?{value:AC(s+e,r)}:{value:n[1]})}return o},uh.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var h=AC(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},uh.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=On(t.value)||0:"auto"===e&&(e=this._intervalPrecision),da(AC(t.value,e,!0)))},uh.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];isFinite(r)&&(r<0&&i.reverse(),r=eh(i,t,e,n),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent)},uh.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=AC(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=AC(Math.ceil(e[1]/n)*n))},uh.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},uh.type="interval",uh);CC.registerClass(PC);var OC="undefined"!=typeof Float32Array,LC=OC?Float32Array:Array;n(gh,RC=PC),gh.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return $o(t.value,Yx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ko(this._minLevelUnit))]||Yx.second,e,this.getSetting("locale"))},gh.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(b(n))o=n;else if(w(n))o=n(t.value,e,{level:t.level});else{var a=l({},Ux);if(0<t.level)for(var s=0;s<Xx.length;++s)a[Xx[s]]="{primary|"+a[Xx[s]]+"}";var h=n?!1===n.inherit?n:u(n,a):a,c=Qo(t.value,i);if(h[c])o=h[c];else if(h.inherit){for(s=qx.indexOf(c)-1;0<=s;--s)if(h[c]){o=h[c];break}o=o||a.none}x(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return $o(new Date(t.value),o,i,r)},gh.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,n,i){for(var r=qx,o=0,a=[],s=[],l=0,u=0,h=0;h<r.length&&o++<1e4;++h){var c=Ko(r[h]);if(function(t){return t===Ko(t)}(r[h])){!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,n,i){function r(t){return Jo(c,t,i)===Jo(p,t,i)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function u(){return l()&&r("minute")}function h(){return u()&&r("second")}var c=Bn(e),p=Bn(n);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&r("millisecond")}}(Ko(t),i[0],i[1],n)){s&&(r=[{value:function(t,e,n){var i=new Date(t);switch(Ko(e)){case"year":case"month":i[sa(n)](0);case"day":i[la(n)](1);case"hour":i[ua(n)](0);case"minute":i[ha(n)](0);case"second":i[ca(n)](0),i[pa(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,h=0;h<r.length-1;h++){var c=r[h].value,p=r[h+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/Wx/365)),f=ta(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,d=6<(u/=30*Wx)?6:3<u?3:2<u?2:1,f=ea(n),g=sa(n);break;case"week":case"half-week":case"day":u=e,d=16<(u/=Wx)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=na(n),g=la(n);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=Gx)?12:6<l?6:3.5<l?4:2<l?2:1,f=ia(n),g=ua(n);break;case"minute":d=yh(e,!0),f=ra(n),g=ha(n);break;case"second":d=yh(e,!1),f=oa(n),g=ca(n);break;case"millisecond":d=Vn(e,!0),f=aa(n),g=pa(n)}C=S=b=w=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,w=a,b=new Date(m),S=m,C=b[_]();S<v&&S<=i[1];)w.push({value:S}),b[x](C+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<o.length&&0===h&&o.unshift({value:o[0].value-d})}}for(h=0;h<a.length;h++)o.push(a[h])}}(r[h],a[a.length-1]||[],s);if(c!==(r[h+1]?Ko(r[h+1]):null)){if(s.length){u=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var f=s[d].value;0!==d&&s[d-1].value===f||(p.push(s[d]),f>=i[0]&&f<=i[1]&&l++)}if(1.5*(c=(i[1]-i[0])/e)<l&&c/1.5<u)break;if(a.push(p),c<l||t===r[h])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,h=0;h<y.length;++h)for(var x=y[h],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-h});v.sort(function(t,e){return t.value-e.value});for(var b=[],h=0;h<v.length;++h)0!==h&&v[h].value===v[h-1].value||b.push(v[h]);return b}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},gh.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Wx,n[1]+=Wx),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-Wx),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},gh.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),NC.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(NC,this._approxInterval,0,i),i-1);this._interval=NC[t][1],this._minLevelUnit=NC[Math.max(t-1,0)][0]},gh.prototype.parse=function(t){return C(t)?t:+Bn(t)},gh.prototype.contain=function(t){return oh(this.parse(t),this._extent)},gh.prototype.normalize=function(t){return ah(this.parse(t),this._extent)},gh.prototype.scale=function(t){return sh(t,this._extent)},gh.type="time";var RC,EC=gh,NC=[["second",Vx],["minute",Hx],["hour",Gx],["quarter-day",6*Gx],["half-day",12*Gx],["day",1.2*Wx],["half-week",3.5*Wx],["week",7*Wx],["month",31*Wx],["quarter",95*Wx],["half-year",gm/2],["year",gm]];CC.registerClass(EC);var BC,zC=CC.prototype,FC=PC.prototype,VC=Pn,HC=Math.floor,GC=Math.ceil,WC=Math.pow,UC=Math.log,jC=(n(mh,BC=CC),mh.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(FC.getTicks.call(this,t),function(t){var t=t.value,e=Pn(WC(this.base,t)),e=t===n[0]&&this._fixMin?vh(e,i[0]):e;return{value:t===n[1]&&this._fixMax?vh(e,i[1]):e}},this)},mh.prototype.setExtent=function(t,e){var n=UC(this.base);t=UC(Math.max(0,t))/n,e=UC(Math.max(0,e))/n,FC.setExtent.call(this,t,e)},mh.prototype.getExtent=function(){var t=this.base,e=zC.getExtent.call(this);return e[0]=WC(t,e[0]),e[1]=WC(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=vh(e[0],t[0])),this._fixMax&&(e[1]=vh(e[1],t[1])),e},mh.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=UC(t[0])/UC(e),t[1]=UC(t[1])/UC(e),zC.unionExtent.call(this,t)},mh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},mh.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=zn(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[Pn(GC(e[0]/i)*i),Pn(HC(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},mh.prototype.calcNiceExtent=function(t){FC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},mh.prototype.parse=function(t){return t},mh.prototype.contain=function(t){return oh(t=UC(t)/UC(this.base),this._extent)},mh.prototype.normalize=function(t){return ah(t=UC(t)/UC(this.base),this._extent)},mh.prototype.scale=function(t){return t=sh(t,this._extent),WC(this.base,t)},mh.type="log",mh);Kb=jC.prototype,Kb.getMinorTicks=FC.getMinorTicks,Kb.getLabel=FC.getLabel,CC.registerClass(jC),_h.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),r=(null==r&&(r=e.get("startValue",!0)),this._modelMinRaw=r),r=(w(r)?this._modelMinNum=xh(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=xh(t,r)),this._modelMaxRaw=e.get("max",!0));w(r)?this._modelMaxNum=xh(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=xh(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[gn(t[0],1),gn(t[1],1)]},_h.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),O(a)||O(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},_h.prototype.modifyDataMinMax=function(t,e){this[qC[t]]=e},_h.prototype.setDeterminedMinMax=function(t,e){this[XC[t]]=e},_h.prototype.freeze=function(){this.frozen=!0};var YC=_h,XC={min:"_determinedMin",max:"_determinedMax"},qC={min:"_dataMin",max:"_dataMax"};Dh.prototype.getNeedCrossZero=function(){return!this.option.scale},Dh.prototype.getCoordSysModel=function(){};var ZC=Dh,Jb=Object.freeze({__proto__:null,createDimensions:function(t,e){return ju(t,e).dimensions},createList:function(t){return Ku(null,t)},createScale:function(t,e){var n=e;return(e=Sh(n=e instanceof Ox?n:new Ox(e))).setExtent(t[0],t[1]),bh(e,n),e},createSymbol:Vl,createTextStyle:function(t,e){return Fo(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qu,enableDataStack:Xu,getStackedDimension:Zu},enableHoverEmphasis:kr,getECData:Ev,getLayoutRect:ba,mixinAxisModelCommonMethods:function(t){p(t,ZC)}}),KC=[],$C={registerPreprocessor:wu,registerProcessor:bu,registerPostInit:Su,registerPostUpdate:Cu,registerUpdateLifecycle:Tu,registerAction:Mu,registerCoordinateSystem:Iu,registerLayout:ku,registerVisual:Du,registerTransform:Lu,registerLoading:Pu,registerMap:Ou,registerImpl:function(t,e){gS[t]=e},PRIORITY:Qb,ComponentModel:aw,ComponentView:Mb,SeriesModel:Tb,ChartView:Db,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){Mb.registerClass(t)},registerSeriesModel:function(t){Tb.registerClass(t)},registerChartView:function(t){Db.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mn(t,e)}},QC=1e-8,JC=[];Eh.prototype.setCenter=function(t){this._center=t},Eh.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},tS=Eh;var tT,eT,nT=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},iT=function(t){this.type="linestring",this.points=t},rT=(n(Nh,tT=tS),Nh.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,o=o&&o.length;n<o&&(t=r,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},Nh.prototype.getBoundingRect=function(t){var e,n,i=this._rect;return i&&!t||(e=[1/0,1/0],n=[-1/0,-1/0],f(this.geometries,function(i){"polygon"===i.type?Rh(i.exterior,e,n,t):f(i.points,function(i){Rh(i,e,n,t)})}),isFinite(e[0])&&isFinite(e[1])&&isFinite(n[0])&&isFinite(n[1])||(e[0]=e[1]=n[0]=n[1]=0),i=new Og(e[0],e[1],n[0]-e[0],n[1]-e[1]),t)||(this._rect=i),i},Nh.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Oh(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Oh(s[l],t[0],t[1]))continue t;return!0}}}return!1},Nh.prototype.transformTo=function(t,e,n,i){for(var r=this.getBoundingRect(),o=r.width/r.height,o=(n?i=i||n/o:n=o*i,new Og(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(Lh(u.exterior,a),f(u.interiors,function(t){Lh(t,a)})):f(u.points,function(t){Lh(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},Nh.prototype.cloneShallow=function(t){return t=new Nh(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Nh);n(Bh,eT=tS),Bh.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ct(JC),i=t;i&&!i.isGeoSVGGraphicRoot;)Mt(n,i.getLocalTransform(),n),i=i.parent;return At(n,n),st(e,e,n),e};var Ix=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),e=g(t,function(t){return(isNaN(t)?0:t)/n*i*100}),r=100*i,o=g(e,function(t){return Math.floor(t)}),a=y(o,function(t,e){return t+e},0),s=g(e,function(t,e){return t-o[e]});a<r;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return g(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Rn,getPrecision:On,getPrecisionSafe:Ln,isNumeric:Gn,isRadianAroundZero:Nn,linearMap:Dn,nice:Vn,numericToNumber:Hn,parseDate:Bn,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e-=n)?i+e*(t[n]-i):i},quantity:zn,quantityExponent:Fn,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},remRadian:En,round:Pn}),mm=Object.freeze({__proto__:null,format:$o,parse:Bn}),Ax=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:Y_,BoundingRect:Og,Circle:p_,CompoundPath:$_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:G_,LinearGradient:tx,Polygon:E_,Polyline:z_,RadialGradient:Q_,Rect:Iv,Ring:O_,Sector:D_,Text:Pv,clipPointsByRect:ko,clipRectByRect:Do,createIcon:Ao,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:Co,initProps:uo,makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,resizePath:bo,updateProps:lo}),kx=Object.freeze({__proto__:null,addCommas:da,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:yt,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Bn(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",Zo(r,2)).replace("M",r).replace("yyyy",i).replace("yy",Zo(i%100+"",2)).replace("dd",Zo(o,2)).replace("d",o).replace("hh",Zo(a,2)).replace("h",a).replace("mm",Zo(s,2)).replace("m",s).replace("ss",Zo(l,2)).replace("s",l).replace("SSS",Zo(e,3))},formatTpl:ma,getTextRect:function(t,e,n,i,r,o,a,s){return new Pv({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:va,normalizeCssArray:Zx,toCamelCase:fa,truncateText:wi}),Tx=Object.freeze({__proto__:null,bind:Qf,clone:a,curry:_,defaults:u,each:f,extend:l,filter:m,indexOf:h,inherits:c,isArray:x,isFunction:w,isObject:T,isString:b,map:g,merge:s,reduce:y}),oT=ri(),aT=[0,1],jx=(Kh.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},Kh.prototype.containData=function(t){return this.scale.contain(t)},Kh.prototype.getExtent=function(){return this._extent.slice()},Kh.prototype.getPixelPrecision=function(t){return Rn(t||this.scale.getExtent(),this._extent)},Kh.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Kh.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&$h(n=n.slice(),i.count()),Dn(t,aT,n,e)},Kh.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&$h(n=n.slice(),i.count()),Dn(t,n,aT,e));return this.scale.scale(i)},Kh.prototype.pointToData=function(t,e){},Kh.prototype.getTicksCoords=function(t){function e(t,e){return t=Pn(t),e=Pn(e),s?e<t:t<e}var n,i,r,o,a,s,l,u=(t=t||{}).tickModel||this.getTickModel(),h=g(Wh(this,u).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),u=u.get("alignWithLabel");return n=this,i=h,u=u,t=t.clamp,l=i.length,n.onBand&&!u&&l&&(u=n.getExtent(),1===l?(i[0].coord=u[0],r=i[1]={coord:u[1]}):(a=i[l-1].tickValue-i[0].tickValue,o=(i[l-1].coord-i[0].coord)/a,f(i,function(t){t.coord-=o/2}),n=1+(a=n.scale.getExtent())[1]-i[l-1].tickValue,r={coord:i[l-1].coord+o*n},i.push(r)),s=u[0]>u[1],e(i[0].coord,u[0])&&(t?i[0].coord=u[0]:i.shift()),t&&e(u[0],i[0].coord)&&i.unshift({coord:u[0]}),e(u[1],r.coord)&&(t?r.coord=u[1]:i.pop()),t)&&e(r.coord,u[1])&&i.push({coord:u[1]}),h},Kh.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),g(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Kh.prototype.getViewLabels=function(){return Gh(this).labels},Kh.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Kh.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Kh.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Kh.prototype.calculateCategoryInterval=function(){r=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=Ch(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(r=d.scale).getExtent(),r=r.count();if(i[1]-i[0]<1)return 0;for(var o=1,a=(40<r&&(o=Math.max(1,Math.floor(r/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=o)var c=1.3*(p=cn(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=oT(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=r,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},Kh),sT=2*Math.PI,lT=ov.CMD,uT=["top","right","bottom","left"],hT=[],cT=new Sg,pT=new Sg,dT=new Sg,fT=new Sg,gT=new Sg,yT=[],mT=new Sg,vT=["align","verticalAlign","width","height","fontSize"],_T=new Uy,xT=ri(),wT=ri(),bT=["x","y","rotation"],ST=(uc.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},uc.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(Og.applyTransform(u,u,l),l?_T.setLocalTransform(l):(_T.x=_T.y=_T.rotation=_T.originX=_T.originY=0,_T.scaleX=_T.scaleY=1),_T.rotation=Oi(_T.rotation),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),Og.applyTransform(o,o,h)),o&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:_T.x,y:_T.y,scaleX:_T.scaleX,scaleY:_T.scaleY,rotation:_T.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},uc.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),i=n.get("labelLayout");(w(i)||v(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),t=Ev(t);r&&!r.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,r,i)})},uc.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=w(r.layoutOption)?r.layoutOption(sc(r,a)):r.layoutOption,u=(r.computedLayoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(o.x=An(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=An(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),xT(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<vT.length;p++){var d=vT[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){ec(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},uc.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),n=rc(this._labelList),i=m(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=m(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});oc(i,"x","width",0,e,void 0),oc(r,"y","height",0,t,void 0),ac(m(n,function(t){return t.layoutOption.hideOverlap}))},uc.prototype.processLabelsOverall=function(){var t=this;f(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();(o=!o&&a?xT(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},uc.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Ev(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),r=(r&&(n=n.getVisual("drawType"),i.stroke=r[n]),e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Wv.length;i++){var r=Wv[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,h=e.get("show"),c=l.ignore,p=0;p<Uv.length;p++){var d,f=Uv[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:R(l.states[f]&&l.states[f].ignore,c))||!R(d,h)?((d=y?s:s&&s.states[f])&&(d.ignore=!0),s&&nc(s,!0,f,g)):(s||(s=new z_,o.setTextGuideLine(s),y||!c&&h||nc(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),nc(s,!1,f,g)))}s&&(u(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=ic)}else s&&o.removeTextGuideLine();ec(t,r)}},uc.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||ho(t))||(o=(r=xT(s)).oldLayout,n=(i=Ev(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=h(t,"select")&&s.attr(r.oldLayoutSelect),0<=h(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),lo(s,a,e,n)):(s.attr(a),xx(s).valueAnimation||(t=R(s.style.opacity,1),s.style.opacity=0,uo(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&(lc(t=r.oldLayoutSelect={},a,bT),lc(t,s.states.select,bT)),s.states.emphasis&&(lc(t=r.oldLayoutEmphasis={},a,bT),lc(t,s.states.emphasis,bT)),Go(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=wT(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),lo(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,uo(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},uc),CT=ri();Ah(hc),n(pc,TT=hg),pc.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},pc.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},pc.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},pc.prototype.setUnpainted=function(){this.__firstTimePaint=!0},pc.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=cc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},pc.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new Og(0,0,0,0)).copy(t),a.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<a.length;++o){var h=a[o];if(h.intersect(t)){var c=new Og(0,0,0,0);c.copy(h),c.union(t),a[o]=c,n=!0;break}l&&(u.copy(t),u.union(h),c=t.width*t.height,h=h.width*h.height,(h=u.width*u.height-c-h)<i)&&(i=h,r=o)}l&&(a[r].union(t),n=!0),n||((e=new Og(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o,a=[],s=this.maxRepaintRectCount,l=!1,u=new Og(0,0,0,0),h=this.__startIndex;h<this.__endIndex;++h)(c=t[h])&&(d=c.shouldBePainted(n,i,!0,!0),(p=c.__isRendered&&(c.__dirty&Wg||!d)?c.getPrevPaintRect():null)&&r(p),o=d&&(c.__dirty&Wg||!c.__isRendered)?c.getPaintRect():null)&&r(o);for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c,p,d=(c=e[h])&&c.shouldBePainted(n,i,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&r(p)}do{for(var f=!1,h=0;h<a.length;)if(a[h].isZero())a.splice(h,1);else{for(var g=h+1;g<a.length;)a[h].intersect(a[g])?(f=!0,a[h].union(a[g]),a.splice(g,1)):g++;h++}}while(f);return this._paintRects=a},pc.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},pc.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},pc.prototype.clear=function(t,e,n){function i(t,n,i,r){var a;o.clearRect(t,n,i,r),e&&"transparent"!==e&&(a=void 0,D(e)?(a=(e.global||e.__width===i&&e.__height===r)&&e.__canvasGradient||Wl(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a,e.__width=i,e.__height=r):A(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=Ql(o,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()),l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height,l=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,h=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h)),this.domBack);!n||l?i(0,0,a,s):n.length&&f(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})};var TT,MT=pc,IT=314159;dc.prototype.getType=function(){return"canvas"},dc.prototype.isSingleCanvas=function(){return this._singleCanvas},dc.prototype.getViewportRoot=function(){return this._domRoot},dc.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},dc.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},dc.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},dc.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),ou(i,a,r,o===e-1))}i&&i.restore()}},dc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},dc.prototype.paintOne=function(t,e){ru(t,e)},dc.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Xg(function(){a._paintList(t,e,n,i)})))},dc.prototype._compositeManually=function(){var t=this.getLayer(IT).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},dc.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||n)&&r.push(s)}for(var l=!0,u=!1,h=this,c=0;c<r.length;c++)!function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(p=y;p<d.__endIndex;p++){var r=t[p];if(r.__inHover&&(u=!0),i._doPaintEl(r,d,o,e,n,p===d.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var c,p,d=r[a],f=d.ctx,g=o&&d.createRepaintRects(t,e,h._width,h._height),y=n?d.__startIndex:d.__drawIndex,m=!n&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!n)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=h.dpr,x=0;x<g.length;++x){var w=g[x];f.save(),f.beginPath(),f.rect(w.x*_,w.y*_,w.width*_,w.height*_),f.clip(),s(w),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return Pf.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:u}},dc.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx,n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(ou(e,t,r,o),t.setPrevPaintRect(n))):ou(e,t,r,o)},dc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IT);var n=this._layers[t];return n||((n=new MT("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?s(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},dc.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},dc.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},dc.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},dc.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},dc.prototype.getLayers=function(){return this._layers},dc.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,a=0,s=0;s<t.length;s++){var l,u=(l=t[s]).zlevel,h=void 0;i!==u&&(i=u,a=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):h=this.getLayer(u+(0<a?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,e(s),r=h),l.__dirty&Wg&&!l.__inHover&&(h.__dirty=!0,h.incremental)&&h.__drawIndex<0&&(h.__drawIndex=s)}e(s),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},dc.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},dc.prototype._clearLayer=function(t){t.clear()},dc.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},dc.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?s(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+.01||s(this._layers[r],n[t],!0)}}},dc.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(h(n,t),1))},dc.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=jl(r,0,i),e=jl(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(IT).resize(t,e)}return this},dc.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},dc.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},dc.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[IT].dom;var e=new MT("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];ou(n,u,o,s===l-1)}return e.dom},dc.prototype.getWidth=function(){return this._width},dc.prototype.getHeight=function(){return this._height};var kT=dc;n(fc,DT=aw),fc.prototype.init=function(t,e,n){DT.prototype.init.call(this,t,e,n),this._sourceManager=new vb(this),Hs(this)},fc.prototype.mergeOption=function(t,e){DT.prototype.mergeOption.call(this,t,e),Hs(this)},fc.prototype.optionUpdated=function(){this._sourceManager.dirty()},fc.prototype.getSourceManager=function(){return this._sourceManager},fc.type="dataset",fc.defaultOption={seriesLayoutBy:_w};var DT,AT=fc;n(gc,PT=Mb),gc.type="dataset";var PT,OT=gc;Ah([function(t){t.registerPainter("canvas",kT)},yc]),Ah(hc),n(mc,LT=Tb),mc.prototype.getInitialData=function(t){return Ku(null,this,{useEncodeDefaulter:!0})},mc.prototype.getLegendIcon=function(t){var e=new Jy,n=Vl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,r=.8*t.itemHeight,r=Vl(n,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),i=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return r.rotation=i*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),e},mc.type="series.line",mc.dependencies=["grid","polar"],mc.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var LT,RT=mc;n(_c,ET=Jy),_c.prototype._createSymbol=function(t,e,n,i,r){this.removeAll(),r=Vl(t,-1,-1,2,2,null,r),r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=xc,this._symbolType=t,this.add(r)},_c.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},_c.prototype.getSymbolType=function(){return this._symbolType},_c.prototype.getSymbolPath=function(){return this.childAt(0)},_c.prototype.highlight=function(){yr(this.childAt(0))},_c.prototype.downplay=function(){mr(this.childAt(0))},_c.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},_c.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},_c.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=_c.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,r)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?o.attr(a):lo(o,a,l,e),ux(s=o).oldStyle=s.style),this._updateCommon(t,e,u,n,i),h&&(o=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,uo(o,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_c.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,u,h,c,p,d,f=this.childAt(0),g=t.hostModel,y=(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,h=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,m=i.cursorStyle,c=i.emphasisDisabled),i&&!t.hasItemOption||(o=(y=(i=i&&i.itemModel?i.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),h=y.get("blurScope"),c=y.get("disabled"),p=zo(i),d=y.getShallow("scale"),m=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),i=(f.attr("rotation",(y||0)*Math.PI/180||0),Hl(t.getItemVisual(e,"symbolOffset"),n)),y=(i&&(f.x=i[0],f.y=i[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),i=y.fill,m=(f instanceof bv?(m=f.style,f.useStyle(l({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(l({},y)):f.useStyle(y),f.style.decal=null,f.setColor(i,r&&r.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),r&&r.useNameLabel);Bo(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):vc(t,e)},inheritColor:i,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,m=f.ensureState("emphasis"),m.style=o,f.ensureState("select").style=a,f.ensureState("blur").style=s,v=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&0<d?+d:1,m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v,this.setSymbolScale(1),Dr(this,u,h,c)},_c.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},_c.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ev(this).dataIndex,o=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&co(n,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}}):i.removeTextContent(),co(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},_c.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var ET,NT=_c;Cc.prototype.updateData=function(t,e){this._progressiveEls=null,e=bc(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Sc(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r,a=u(i);wc(t,a,i,e)&&((r=new o(t,i,s,l)).setPosition(a),t.setItemGraphicEl(i,r),n.add(r))}).update(function(h,c){var p,d,c=r.getItemGraphicEl(c),f=u(h);wc(t,f,h,e)?(p=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(n.remove(c),(c=new o(t,h,s,l)).setPosition(f)):(c.updateData(t,h,s,l),d={x:f[0],y:f[1]},a?c.attr(d):lo(c,d,i)),n.add(c),t.setItemGraphicEl(h,c)):n.remove(c)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},Cc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()})},Cc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sc(t),this._data=null,this.group.removeAll()},Cc.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=bc(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);wc(e,a,r,n)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},Cc.prototype.eachRendered=function(t){Ro(this._progressiveEls||this.group,t)},Cc.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var BT,zT=Cc,FT=Math.min,VT=Math.max,HT=function(){this.smooth=0,this.smoothConstraint=!0},GT=(n(Dc,BT=yv),Dc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Dc.prototype.getDefaultShape=function(){return new HT},Dc.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;0<r&&Ic(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Ic(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=kc(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Dc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=ov.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:var c,u=r[l++],h=r[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case o.C:u=r[l++],h=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[l++],y=a?$t(n,u,p,f,t,s):$t(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Zt(i,h,d,g,_):Zt(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},Dc);n(Ac,WT=HT);var WT,UT=Ac;n(Pc,jT=yv),Pc.prototype.getDefaultShape=function(){return new UT},Pc.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&Ic(n[2*o-2],n[2*o-1]);o--);for(;r<o&&Ic(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=kc(t,n,r,o,o,1,e.smooth,a,e.connectNulls);kc(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var jT,YT=Pc;n(Wc,XT=Db),Wc.prototype.init=function(){var t=new Jy,e=new zT;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Wc.prototype.render=function(t,e,n){function i(t){o._changePolyState(t)}var r,o=this,a=t.coordinateSystem,s=this.group,l=t.getData(),h=t.getModel("lineStyle"),c=t.getModel("areaStyle"),p=l.getLayout("points")||[],d="polar"===a.type,f=this._coordSys,g=this._symbolDraw,y=this._polyline,m=this._polygon,v=this._lineGroup,e=!e.ssr&&t.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Tc(a,l,x),w=_&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=hh(2*i),o=0;o<i;o++){var a=Mc(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(a,l,w),b=t.get("showSymbol"),S=t.get("connectNulls"),C=b&&!d&&zc(t,l,a),T=this._data,M=(T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),T.setItemGraphicEl(e,null))}),b||g.remove(),s.add(v),!d&&t.get("step")),I=(a&&a.getArea&&t.get("clip",!0)&&(null!=(r=a.getArea()).width?(r.x-=.1,r.y-=.1,r.width+=.2,r.height+=.2):r.r0&&(r.r0-=.5,r.r+=.5)),this._clipShapeForSymbol=r,Bc(l,a,n)||l.getVisual("style")[l.getVisual("drawType")]),f=(y&&f.type===a.type&&M===this._step?(_&&!m?m=this._newPolygon(p,w):m&&!_&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),(f=v.getClipPath())?uo(f,{shape:Gc(this,a,!1,t).shape},t):v.setClipPath(Gc(this,a,!0,t)),b&&g.updateData(l,{isIgnore:C,clipShape:r,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),Oc(this._stackedOnPoints,w)&&Oc(this._points,p)||(e?this._doUpdateAnimation(l,w,a,n,M,x,S):(M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,S)),y.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:w})))):(b&&g.updateData(l,{isIgnore:C,clipShape:r,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,r),M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,S)),y=this._newPolyline(p),_?m=this._newPolygon(p,w):m&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),v.setClipPath(Gc(this,a,!0,t))),t.getModel("emphasis")),n=f.get("focus"),b=f.get("blurScope"),g=f.get("disabled"),C=(y.useStyle(u(h.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Ar(y,t,"lineStyle"),0<y.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(y.getState("emphasis").style.lineWidth=+y.style.lineWidth+1),Ev(y).seriesIndex=t.seriesIndex,Dr(y,n,b,g),Ec(t.get("smooth"))),e=t.get("smoothMonotone");y.setShape({smooth:C,smoothMonotone:e,connectNulls:S}),m&&(r=l.getCalculationInfo("stackedOnSeries"),_=0,m.useStyle(u(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),r&&(_=Ec(r.get("smooth"))),m.setShape({smooth:C,stackedOnSmooth:_,smoothMonotone:e,connectNulls:S}),Ar(m,t,"areaStyle"),Ev(m).seriesIndex=t.seriesIndex,Dr(m,n,b,g)),l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=p,this._step=M,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,y),m)&&this.packEventData(t,m)},Wc.prototype.packEventData=function(t,e){Ev(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Wc.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ii(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new NT(r,o)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,r.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Db.prototype.highlight.call(this,t,e,n,i)},Wc.prototype.downplay=function(t,e,n,i){var r,o=t.getData(),a=ii(o,i);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Db.prototype.downplay.call(this,t,e,n,i)},Wc.prototype._changePolyState=function(t){var e=this._polygon;hr(this._polyline,t),e&&hr(e,t)},Wc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new GT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Wc.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new YT({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Wc.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse,o=("cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0),t.hostModel),s=o.get("animationDuration"),l=(w(s)&&(s=s(null)),o.get("animationDelay")||0),u=w(l)?l(null):l;t.eachItemGraphicEl(function(t,o){var h,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=h=void 0,n&&(f=r?(p=n,d=e.pointToCoord(d),i?(h=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(h=p.r0,c=p.r,d[0])):i?(h=n.x,c=n.x+n.width,t.x):(h=n.y+n.height,c=n.y,t.y)),p=c===h?0:(f-h)/(c-h),a&&(p=1-p),d=w(l)?l(o):s*p+u,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},Wc.prototype._initOrUpdateEndLabel=function(t,e,n){var i,r,o,a=t.getModel("endLabel");Hc(t)?(i=t.getData(),r=this._polyline,(o=i.getLayout("points"))?(this._endLabel||((this._endLabel=new Pv({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=Fc(o))&&(Bo(r,zo(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return vc(i,t);var r=i,o=n,a=r.mapDimensionsAll("defaultedLabel");if(!x(o))return o+"";for(var s=[],l=0;l<a.length;l++){var u=r.getDimensionIndex(a[l]);0<=u&&s.push(o[u])}return s.join(" ")},enableTextSetter:!0},(n=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Wc.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=r||e<=i&&r<=e){l=u;break}s=u}i=r}return{range:[s,l],t:(e-i)/(r-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Vc(s,p[0]),m.attr({x:y[0]+h,y:y[1]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=ui(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Vc(s,v=1===t||0<i.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+o})),r)&&"function"==typeof(a=xx(m)).setLabelText&&a.setLabelText(d)},Wc.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Tc(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],C=y[1+b],T=m[w],M=m[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),h.push(n[b],n[1+b]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,C=g.dataDimsForPoint,T=r.dataToPoint([e.get(C[0],S),e.get(C[1],S)]),w=2*S,l.push(T[0],T[1]),u.push(m[w],m[w+1]),M=Mc(g,r,e,S),h.push(M[0],M[1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var I=hh(o=l.length),k=hh(o),D=hh(o),A=hh(o),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,R=2*O;I[L]=l[R],I[1+L]=l[1+R],k[L]=u[R],k[1+L]=u[1+R],D[L]=h[R],D[1+L]=h[1+R],A[L]=c[R],A[1+L]=c[1+R],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:D,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(r&&(h=Nc(e.current,n,r,a),c=Nc(e.stackedOnCurrent,n,r,a),p=Nc(e.next,n,r,a),d=Nc(e.stackedOnNext,n,r,a)),3e3<Rc(h,p)||l&&3e3<Rc(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),lo(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),lo(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},Wc.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Wc.type="line";var XT,qT=Wc,ZT={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],o=Math.abs(r);e<o&&(e=o,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},KT=function(t){return Math.round(t.length/2)};Ah(function(t){var e;t.registerChartView(qT),t.registerSeriesModel(RT),t.registerLayout((e=!0,{seriesType:"line",plan:pl(),reset:function(t){var n,i,r,o,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,u=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),n=t.length,i=s.getCalculationInfo("stackResultDimension"),qu(s,t[0])&&(t[0]=i),qu(s,t[1])&&(t[1]=i),r=s.getStore(),o=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),n&&{progress:function(t,e){for(var i=t.end-t.start,s=u&&hh(i*n),h=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===n?(f=r.get(o,p),l.dataToPoint(f,null,c)):(h[0]=r.get(o,p),h[1]=r.get(a,p),l.dataToPoint(h,null,c)),u?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}u&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===o&&t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/n)),s=void 0,b(o)?s=ZT[o]:w(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/n,s,KT))}})}),n(Uc,$T=aw),Uc.type="grid",Uc.dependencies=["xAxis","yAxis"],Uc.layoutMode="box",Uc.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var $T,QT=Uc;n(jc,JT=aw),jc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cm).models[0]},jc.type="cartesian2dAxis";var JT,tM=jc;p(tM,ZC);var fx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gm=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fx),Kb=s({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},fx),eM={category:gm,value:Kb,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Kb),log:u({logBase:10},Kb)},nM={value:1,category:1,time:1,log:1};qc.prototype.getAxis=function(t){return this._axes[t]},qc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},qc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},qc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var iM=["x","y"];n(Kc,rM=qc),Kc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;Zc(r)&&Zc(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=At([],i))},Kc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Kc.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},Kc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Kc.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new Og(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},Kc.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?st(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},Kc.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},Kc.prototype.pointToData=function(t,e){var n,i,r=[];return this._invTransform?st(r,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),r[0]=n.coordToData(n.toLocalCoord(t[0]),e),r[1]=i.coordToData(i.toLocalCoord(t[1]),e),r)},Kc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Kc.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-r+t;return new Og(i,r,e,n)};var rM,oM=Kc;n($c,aM=jx),$c.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},$c.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},$c.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},$c.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var aM,sM=$c,lM=Math.log;ep.prototype.getRect=function(){return this._rect},ep.prototype.update=function(t,e){function n(t){var e,n=v(t),i=n.length;if(i){for(var r=[],o=i-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;th(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(bh(l,s),th(l)&&(e=a))}r.length&&(e||bh((e=r.pop()).scale,e.model),f(r,function(t){var n=t.scale,t=t.model,i=e.scale,r=PC.prototype,o=r.getTicks.call(i),a=r.getTicks.call(i,!0),s=o.length-1,i=r.getInterval.call(i),l=(t=wh(n,t)).extent,u=t.fixMin,t=t.fixMax,h=("log"===n.type&&(h=lM(n.base),l=[lM(l[0])/h,lM(l[1])/h]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),r.getExtent.call(n)),c=(u&&(l[0]=h[0]),t&&(l[1]=h[1]),r.getInterval.call(n)),p=l[0],d=l[1];if(u&&t)c=(d-p)/s;else if(u)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=nh(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=nh(c),p=l[1]-c*s;else h=(c=s<n.getTicks().length-1?nh(c):c)*s,(p=Pn((d=Math.ceil(l[1]/c)*c)-h))<0&&0<=l[0]?(p=0,d=Pn(h)):0<d&&l[1]<=0&&(d=0,p=-Pn(h));u=(o[0].value-a[0].value)/i,t=(o[s].value-a[s].value)/i,r.setExtent.call(n,p+c*u,d+c*t),r.setInterval.call(n,c),(u||t)&&r.setNiceExtent.call(n,p+c,d-c)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};f(i.x,function(t){ip(i,"y",t,r)}),f(i.y,function(t){ip(i,"x",t,r)}),this.resize(this.model,e)},ep.prototype.resize=function(t,e,n){function i(){f(a,function(t){var e,n,i=t.isHorizontal(),r=i?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=i?o.x:o.y,a=r.getExtent(),n=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return n-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return n-t+e}})}var r=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),o=ba(r,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=o,this._axesList);i(),n&&(f(a,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=Mh(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i))}),i()),f(this._coordsList,function(t){t.calcAffineTransform()})},ep.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},ep.prototype.getAxes=function(){return this._axesList.slice()},ep.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];T(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},ep.prototype.getCartesians=function(){return this._coordsList.slice()},ep.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},ep.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},ep.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",cm).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",cm).models[0],t=t.gridModel,a=this._coordsList;return i?h(a,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},ep.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},ep.prototype._initCartesian=function(t,e,n){function i(e){return function(n,i){var r,u;np(n,t)&&(r=n.get("position"),"x"===e?"top"!==r&&"bottom"!==r&&(r=a.bottom?"top":"bottom"):"left"!==r&&"right"!==r&&(r=a.left?"right":"left"),a[r]=!0,u="category"===(r=new sM(e,Sh(n),[0,0],n.get("type"),r)).type,r.onBand=u&&n.get("boundaryGap"),r.inverse=n.get("inverse"),(n.axis=r).model=n,r.grid=o,r.index=i,o._axesList.push(r),s[e][i]=r,l[e]++)}}var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,n){f(s.y,function(i,o){var o="x"+n+"y"+o,a=new oM(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._coordsList.push(a),a.addAxis(e),a.addAxis(i)})}):(this._axesMap={},this._axesList=[])},ep.prototype._updateScale=function(t,e){function n(t,e){var n,i,r;f((n=t,i=e.dim,r={},f(n.mapDimensionsAll(i),function(t){r[Zu(n,t)]=!0}),v(r)),function(n){e.scale.unionExtentFromData(t,n)})}f(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var i,r;Jc(t)&&(r=(i=tp(t)).xAxisModel,i=i.yAxisModel,np(r,e))&&np(i,e)&&(r=this.getCartesian(r.componentIndex,i.componentIndex),i=t.getData(),t=r.getAxis("x"),r=r.getAxis("y"),n(i,t),n(i,r))},this)},ep.prototype.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),i=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,i)<0&&n.push(i)}),{baseAxes:e,otherAxes:n}},ep.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var o=new ep(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){var e,n,i;Jc(t)&&(e=(n=tp(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),n},ep.dimensions=iM;var uM,hM,cM,pM=ep,dM=Math.PI,fM=(op.prototype.hasBuilder=function(t){return!!gM[t]},op.prototype.add=function(t){gM[t](this.opt,this.axisModel,this.group,this._transformGroup)},op.prototype.getGroup=function(){return this.group},op.innerTextLayout=function(t,e,n){var i,e=En(e-t),t=Nn(e)?(i=0<n?"top":"bottom","center"):Nn(e-dM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<dM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},op.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},op.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},op),gM={axisLine:function(t,e,n,i){var r,o,a,s,u,h,c,p=e.get(["axisLine","show"]);(p="auto"===p&&t.handleAutoShown?t.handleAutoShown("axisLine"):p)&&(p=e.axis.getExtent(),i=i.transform,r=[p[0],0],o=[p[1],0],a=o[0]<r[0],i&&(st(r,r,i),st(o,o,i)),s=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),So((p=new G_({shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).shape,p.style.lineWidth),p.anid="line",n.add(p),null!=(u=e.get(["axisLine","symbol"])))&&(i=e.get(["axisLine","symbolSize"]),b(u)&&(u=[u,u]),(b(i)||C(i))&&(i=[i,i]),p=Hl(e.get(["axisLine","symbolOffset"])||0,i),h=i[0],c=i[1],f([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[1]))}],function(e,i){var l;"none"!==u[i]&&null!=u[i]&&(i=Vl(u[i],-h/2,-c/2,h,c,s.stroke,!0),l=e.r+e.offset,i.attr({rotation:e.rotate,x:(e=a?o:r)[0]+l*Math.cos(t.rotation),y:e[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))}))},axisTickLabel:function(t,e,n,i){var r,o,a,s,l,h=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var a=o.getModel("lineStyle"),i=i.tickDirection*o.get("length"),s=up(r.getTicksCoords(),e.transform,i,u(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),c=function(t,e,n,i){var r,o,a,s,l,u,h,c,p=n.axis,d=L(i.axisLabelShow,n.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return r=n.getModel("axisLabel"),o=r.get("margin"),a=p.getViewLabels(),d=(L(i.labelRotate,r.get("rotate"))||0)*dM/180,s=fM.innerTextLayout(i.rotation,d,i.labelDirection),l=n.getCategories&&n.getCategories(!0),u=[],h=fM.isLabelSilent(n),c=n.get("triggerEvent"),f(a,function(d,f){var g="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,y=d.formattedLabel,m=d.rawLabel,v=r,_=(v=l&&l[g]&&T(_=l[g])&&_.textStyle?new Ox(_.textStyle,r,n.ecModel):v).getTextColor()||n.get(["axisLine","lineStyle","color"]),x=p.dataToCoord(g),b=v.getShallow("align",!0)||s.textAlign,S=R(v.getShallow("alignMinLabel",!0),b),C=R(v.getShallow("alignMaxLabel",!0),b),M=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||s.textVerticalAlign,I=R(v.getShallow("verticalAlignMinLabel",!0),M),k=R(v.getShallow("verticalAlignMaxLabel",!0),M),x=new Pv({x:x,y:i.labelOffset+i.labelDirection*o,rotation:s.rotation,silent:h,z2:10+(d.level||0),style:Fo(v,{text:y,align:0===f?S:f===a.length-1?C:b,verticalAlign:0===f?I:f===a.length-1?k:M,fill:w(_)?_("category"===p.type?m:"value"===p.type?g+"":g,f):_})});x.anid="label_"+g,c&&((d=fM.makeAxisEventDataBase(n)).targetType="axisLabel",d.value=m,d.tickIndex=f,"category"===p.type&&(d.dataIndex=g),Ev(x).eventData=d),e.add(x),x.updateTransform(),u.push(x),t.add(x),x.decomposeTransform()}),u}(n,i,e,t),p=(o=c,h=h,kh((r=e).axis)||(y=r.get(["axisLabel","showMinLabel"]),r=r.get(["axisLabel","showMaxLabel"]),h=h||[],_=(o=o||[])[0],m=o[1],a=o[o.length-1],o=o[o.length-2],s=h[0],v=h[1],l=h[h.length-1],h=h[h.length-2],!1===y?(ap(_),ap(s)):sp(_,m)&&(y?(ap(m),ap(v)):(ap(_),ap(s))),!1===r?(ap(a),ap(l)):sp(o,a)&&(r?(ap(o),ap(h)):(ap(a),ap(l)))),n),d=i,y=e,m=t.tickDirection,v=y.axis,_=y.getModel("minorTick");if(_.get("show")&&!v.scale.isBlank()){var x=v.getMinorTicksCoords();if(x.length)for(var v=_.getModel("lineStyle"),b=m*_.get("length"),S=u(v.getLineStyle(),u(y.getModel("axisTick").getLineStyle(),{stroke:y.get(["axisLine","lineStyle","color"])})),C=0;C<x.length;C++)for(var M=up(x[C],d.transform,b,S,"minorticks_"+C),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&ac(rc(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r,o,a,s,l,u,h,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,r=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,o=(h=e.axis.getExtent())[0]>h[1]?-1:1,o=["start"===c?h[0]-o*u:"end"===c?h[1]+o*u:(h[0]+h[1])/2,lp(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*dM/180),lp(c)?a=fM.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var r,n=En(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=Nn(n-dM/2)?(r=i?"bottom":"top","center"):Nn(n-1.5*dM)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*dM&&dM/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:r}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=r.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=L(t.nameTruncateMaxWidth,c.maxWidth,s),Oo({el:t=new Pv({x:o[0],y:o[1],rotation:a.rotation,silent:fM.isLabelSilent(e),style:Fo(r,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||a.textAlign,verticalAlign:r.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=fM.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Ev(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}},yM={},mM=(n(gp,uM=Mb),gp.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=pp(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=dp(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=r.axis.scale.isBlank()?"hide":"show"),uM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},gp.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},gp.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},gp.prototype.dispose=function(t,e){this._disposeAxisPointer(e),uM.prototype.dispose.apply(this,arguments)},gp.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=gp.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=pp(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},gp.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},gp.registerAxisPointerClass=function(t,e){yM[t]=e},gp.getAxisPointerClass=function(t){return t&&yM[t]},gp.type="axis",gp),vM=ri(),_M=["axisLine","axisTickLabel","axisName"],xM=["splitArea","splitLine","minorSplitLine"],tS=(n(yp,hM=mM),yp.prototype.render=function(t,e,n,i){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new Jy,this.group.add(this._axisGroup),t.get("show")&&(o=Qc(r=t.getCoordSysModel(),t),o=new fM(t,l({handleAutoShown:function(e){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(th(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},o)),f(_M,o.add,o),this._axisGroup.add(o.getGroup()),f(xM,function(e){t.get([e,"show"])&&wM[e](this,this._axisGroup,t,r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Io(a,this._axisGroup,t),hM.prototype.render.call(this,t,e,n,i))},yp.prototype.remove=function(){vM(this).splitAreaColors=null},yp.type="cartesianAxis",yp),wM={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank())for(var n=n.getModel("splitLine"),o=n.getModel("lineStyle"),a=x(a=o.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:n}),p=[],d=[],f=o.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),h++%a.length),m=c[g].tickValue,m=new G_({anid:null!=m?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:u({stroke:a[y]},f),silent:!0});So(m.shape,f.lineWidth),e.add(m)}},minorSplitLine:function(t,e,n,i){var r=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),o=i.coordinateSystem.getRect(),a=r.isHorizontal(),s=r.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=r.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=o.y,u[0]=d,u[1]=o.y+o.height):(l[0]=o.x,l[1]=d,u[0]=o.x+o.width,u[1]=d),new G_({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}));So(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,n,i){var r=e,e=i,o=(i=n).axis;if(!o.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var h=a.length,c=vM(t).splitAreaColors,p=U(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=o.toGlobalCoord(l[0].coord),m=n.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=o.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),r.add(new Iv({anid:null!=v?"area_"+v:null,shape:{x:_,y:w,width:b,height:S},style:u({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}vM(t).splitAreaColors=p}}}},bM=(n(mp,cM=tS),mp.type="xAxis",mp);n(vp,SM=tS),vp.type="yAxis";var SM,CM=vp;n(_p,TM=Mb),_p.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Iv({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},_p.type="grid";var TM,MM=_p,IM={offset:0};Ah(function(t){t.registerComponentView(MM),t.registerComponentModel(QT),t.registerCoordinateSystem("cartesian2d",pM),Yc(t,"x",tM,IM),Yc(t,"y",tM,IM),t.registerComponentView(bM),t.registerComponentView(CM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),n(xp,kM=aw),xp.type="title",xp.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var kM,DM=xp;n(wp,AM=Mb),wp.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=R(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Pv({style:Fo(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Pv({style:Fo(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){xa(o,"_"+t.get("target"))}),a&&r.on("click",function(){xa(a,"_"+t.get("subtarget"))}),Ev(u).eventData=Ev(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=ba(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Iv({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},wp.type="title";var AM,PM=wp;Ah(function(t){t.registerComponentModel(DM),t.registerComponentView(PM)}),n(bp,OM=aw),bp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},bp.prototype.mergeOption=function(t,e){OM.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},bp.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;x(e=!0===e?t.selector=["all","inverse"]:e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=s(t,(i=n,"all"===(t=t.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},bp.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},bp.prototype._updateData=function(t){var e=[],n=[],i=(t.eachRawSeries(function(i){var r,o=i.name;n.push(o),i.legendVisualProvider&&(o=i.legendVisualProvider.getAllNames(),t.isSeriesFiltered(i)||(n=n.concat(o)),o.length)?e=e.concat(o):r=!0,r&&ti(i)&&e.push(i.name)}),this._availableNames=n,this.get("data")||e),r=U(),i=g(i,function(t){return(b(t)||C(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Ox(t,this,this.ecModel))},this);this._data=m(i,function(t){return!!t})},bp.prototype.getData=function(){return this._data},bp.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},bp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},bp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},bp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},bp.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},bp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=h(this._availableNames,t)},bp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},bp.type="legend.plain",bp.dependencies=["series"],bp.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}};var OM,LM,RM=bp,EM=_,NM=f,BM=Jy,zM=(n(Sp,LM=Mb),Sp.prototype.init=function(){this.group.add(this._contentGroup=new BM),this.group.add(this._selectorGroup=new BM),this._isFirstRender=!0},Sp.prototype.getContentGroup=function(){return this._contentGroup},Sp.prototype.getSelectorGroup=function(){return this._selectorGroup},Sp.prototype.render=function(t,e,n){var i,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(r=t.get("align"),i=t.get("orient"),r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(r,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),o=ba(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),o=ba(u({width:(r=this.layoutInner(t,r,o,l,a,s)).width,height:r.height},e),i,n),this.group.x=o.x-r.x,this.group.y=o.y-r.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=r,s=Zx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new Iv({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},Sp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Sp.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),u=U(),h=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),NM(e.getData(),function(r,o){var a,p,d,f,g=r.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=n.getSeriesByName(g)[0],u.get(g)||(a?(f=(d=a.getData()).getVisual("legendLineStyle")||{},p=d.getVisual("legendIcon"),d=d.getVisual("style"),(f=this._createItem(a,g,o,r,e,t,f,d,p,h,i)).on("click",EM(Cp,g,null,i,c)).on("mouseover",EM(Mp,a.name,null,i,c)).on("mouseout",EM(Ip,a.name,null,i,c)),n.ssr&&f.eachChild(function(t){t=Ev(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),u.set(g,!0)):n.eachRawSeries(function(a){var s,p,d;u.get(g)||a.legendVisualProvider&&(p=a.legendVisualProvider).containName(g)&&(d=p.indexOfName(g),s=p.getItemVisual(d,"style"),p=p.getItemVisual(d,"legendIcon"),(d=_e(s.fill))&&0===d[3]&&(d[3]=.2,s=l(l({},s),{fill:Ce(d,"rgba")})),(d=this._createItem(a,g,o,r,e,t,{},s,p,h,i)).on("click",EM(Cp,null,g,i,c)).on("mouseover",EM(Mp,null,g,i,c)).on("mouseout",EM(Ip,null,g,i,c)),n.ssr&&d.eachChild(function(t){t=Ev(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),u.set(g,!0))},this))):((d=new BM).newline=!0,s.add(d))},this),r&&this._createSelector(r,e,i,o,a)},Sp.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();NM(t,function(t){var i=t.type,r=new Pv({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Bo(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),kr(r)})},Sp.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),NM(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");return u.decal=l&&"inherit"!==l?au(l,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[t]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i),l=e.getModel("lineStyle"),a=l.getLineStyle(),s(a,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),o||(r=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===r?0<i.lineWidth&&n?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth")),{itemStyle:u,lineStyle:a}}(l=m||l||"roundRect",i,a,s,c,f,h),s=new BM,c=i.getModel("textStyle"),m=(!w(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=Vl(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]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===o?p+5:-5),h=o,t=r.get("formatter"),l=e,g=(b(t)&&t?l=t.replace("{name}",null!=e?e:""):w(t)&&(l=t(e)),f?c.getTextColor():i.get("inactiveColor")),a=(s.add(new Pv({style:Fo(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new Iv({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=i.getModel("tooltip");return y.get("show")&&Oo({el:a,componentModel:r,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!u,this.getContentGroup().add(s),kr(s),s.__legendDataIndex=n,s},Sp.prototype.layoutInner=function(t,e,n,i,r,o){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(tw(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),r?(tw("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===o?a[t]+=n[l]+s:d[t]+=r[l]+s,a[1-t]+=n[u]/2-r[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=n[l]+s+r[l],o[u]=Math.max(n[u],r[u]),o[h]=Math.min(0,r[h]+a[1-t]),o):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},Sp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Sp.type="legend.plain",Sp);n(Pp,FM=RM),Pp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Pp.prototype.init=function(t,e,n){var i=Ta(t);FM.prototype.init.call(this,t,e,n),Op(this,t,i)},Pp.prototype.mergeOption=function(t,e){FM.prototype.mergeOption.call(this,t,e),Op(this,this.option,t)},Pp.type="legend.scroll",Pp.defaultOption=(Y_=RM.defaultOption,p_={scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},s(s({},Y_,!0),p_,!0));var FM,VM,HM=Pp,GM=Jy,WM=["width","height"],UM=["x","y"],jM=(n(Lp,VM=zM),Lp.prototype.init=function(){VM.prototype.init.call(this),this.group.add(this._containerGroup=new GM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GM)},Lp.prototype.resetInner=function(){VM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Lp.prototype.renderInner=function(t,e,n,i,r,o,a){function s(t,n){var r=t+"DataIndex",n=Ao(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:Qf(l._pageGo,l,r,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});n.name=t,u.add(n)}var l=this,u=(VM.prototype.renderInner.call(this,t,e,n,i,r,o,a),this._controllerGroup),t=e.get("pageIconSize",!0),h=x(t)?t:[t,t],n=(s("pagePrev",0),e.getModel("pageTextStyle"));u.add(new Pv({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},Lp.prototype.layoutInner=function(t,e,n,i,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=WM[l],h=UM[l],c=WM[1-l],p=UM[1-l],d=(r&&tw("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(n),n=(r&&(y[u]=n[u]-f[u]-d),this._layoutContentAndController(t,i,y,l,u,c,p,h));return r&&("end"===o?g[l]+=n[u]+d:(t=f[u]+d,g[l]-=t,n[h]-=t),n[u]+=f[u]+d,g[1-l]+=n[p]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[p]=Math.min(n[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),n},Lp.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(tw(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),tw("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=R(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[r]-p[r]:e[i]+=p[r]+g),s[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[r]=(d?n:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[r],d?((e={x:0,y:0})[r]=Math.max(n[r]-p[r]-g,0),e[o]=f[o],u.setClipPath(new Iv({shape:e})),u.__rectSize=e[r]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&lo(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},Lp.prototype._pageGo=function(t,e,n){null!=(t=this._getPageInfo(e)[t])&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Lp.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],i=n.childOfName(i);i&&(i.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=r?"pointer":"default")}),n.childOfName("pageText")),r=t.get("pageFormatter"),o=e.pageIndex,o=null!=o?o+1:0,a=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):r({current:o,total:a}))},Lp.prototype._getPageInfo=function(t){function e(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[s]+t[s],e:n+e[a],i:t.__legendDataIndex}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,t=t.getOrient().index,a=WM[t],s=UM[t],i=this._findTargetItemIndex(i),l=r.children(),u=l[i],h=l.length,c=h?1:0,p={contentPosition:[r.x,r.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(u){r=e(u),p.contentPosition[t]=-r.s;for(var d=i+1,f=r,g=r,y=null;d<=h;++d)(!(y=e(l[d]))&&g.e>f.s+o||y&&!n(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=i-1,f=r,g=r,y=null;-1<=d;--d)(y=e(l[d]))&&n(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},Lp.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){i=i.__legendDataIndex,null==n&&null!=i&&(n=r),i===t&&(e=r)}),null!=e?e:n):0},Lp.type="legend.scroll",Lp);Ah(function(t){Ah(Ap),t.registerComponentModel(HM),t.registerComponentView(jM),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)})})});var YM=ri(),XM=a,qM=Qf;Rp.prototype.render=function(t,e,n,i){var r,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=_(Ep,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new Jy,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),zp(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},Rp.prototype.remove=function(t){this.clear(t)},Rp.prototype.dispose=function(t){this.clear(t)},Rp.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=pp(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},Rp.prototype.makeElOption=function(t,e,n,i,r){},Rp.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=YM(t).pointerEl=new gx[r.type](XM(e.pointer)),t.add(r))},Rp.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=YM(t).labelEl=new Pv(XM(e.label)),t.add(e),Np(e,i))},Rp.prototype.updatePointerEl=function(t,e,n){(t=YM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Rp.prototype.updateLabelEl=function(t,e,n,i){(t=YM(t).labelEl)&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),Np(t,i))},Rp.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=Ao(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_g(t.event)},onmousedown:qM(this._onHandleDragMove,this,0,0),drift:qM(this._onHandleDragMove,this),ondragend:qM(this._onHandleDragEnd,this)}),n.add(i)),zp(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,_l(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},Rp.prototype._moveHandleToValue=function(t,e){Ep(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Bp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Rp.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(Bp(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(Bp(t)),YM(n).lastProp=null,this._doDispatchAxisPointer())},Rp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},Rp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Rp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),xl(this,"_doDispatchAxisPointer")},Rp.prototype.doClear=function(){},Rp.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},n(Gp,ZM=Rp),Gp.prototype.makeElOption=function(t,e,n,i,r){var o,a,s=n.axis,l=s.grid,u=i.get("type"),h=Wp(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=i).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=$M[u](s,c,h)).style=o,t.graphicKey=a.type,t.pointer=a),Qc(l.model,n));u=e,s=t,c=p,h=n,o=i,a=r,l=fM.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),Fp(s,h,o,a,{position:Hp(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Gp.prototype.getHandleTransform=function(t,e,n){var i=Qc(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),Hp(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Gp.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=Wp(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var ZM,KM=Gp,$M={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=Up(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=Up(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};n(jp,QM=aw),jp.type="axisPointer",jp.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var QM,JM=jp,tI=ri(),eI=f;n(Kp,nI=Mb),Kp.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Yp("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Kp.prototype.remove=function(t,e){Zp("axisPointer",e)},Kp.prototype.dispose=function(t,e){Zp("axisPointer",e)},Kp.type="axisPointer";var nI,iI=Kp,rI=ri();n(od,oI=aw),od.type="tooltip",od.dependencies=["axisPointer"],od.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}};var oI,aI=od,sI=sd(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lI=ld(sd(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),uI=ld(sI,"transform"),hI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Pf.transform3dSupported?"will-change:transform;":"");pd.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},pd.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=hI+hd(t,!this._firstShow,this._longHide)+ud(r[0],r[1],!0)+"border-color:"+_a(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},pd.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,c,p="";if(b(r)&&"item"===n.get("trigger")&&!ad(n)&&(n=n,i=i,p=b(r=r)&&"inside"!==r?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=_a(i),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",d=Math.max(1.5*Math.round(n),6),s="",l=uI+":",-1<h(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==r?225:45)+"deg)"),c=c*Math.PI/180,c=(u=d+n)*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;z-index:-1;",(s+=";"+r+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))o.innerHTML=t+p;else if(t){o.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);p&&o.childNodes.length&&((d=document.createElement("div")).innerHTML=p,o.appendChild(d))}}},pd.prototype.setEnterable=function(t){this._enterable=t},pd.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},pd.prototype.moveTo=function(t,e){var n,i=this._styleCoord;cd(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,f(ud(i[0],i[1]),function(t){n[t[0]]=t[1]}))},pd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},pd.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Pf.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},pd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Qf(this.hide,this),t)):this.hide())},pd.prototype.isShow=function(){return this._show},pd.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var cI=pd;dd.prototype.update=function(t){t=t.get("alwaysShowContent"),t&&this._moveIfResized(),this._alwaysShowContent=t},dd.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},dd.prototype.setContent=function(t,e,n,i,r){var o=this,a=(T(t)&&jn(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new Pv({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Js(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},dd.prototype.setEnterable=function(t){this._enterable=t},dd.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=gd(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},dd.prototype.moveTo=function(t,e){var n,i,r=this.el;r&&(yd(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=fd((i=r.style).borderWidth||0),i=gd(i),r.x=t+n+i.left,r.y=e+n+i.top,r.markRedraw())},dd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},dd.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},dd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Qf(this.hide,this),t)):this.hide())},dd.prototype.isShow=function(){return this._show},dd.prototype.dispose=function(){this._zr.remove(this.el)};var pI,dI=dd,fI=new Iv({shape:{x:-1,y:-1,width:2,height:2}}),gI=(n(md,pI=Mb),md.prototype.init=function(t,e){var n;!Pf.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?Pf.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new dI(e):new cI(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},md.prototype.render=function(t,e,n){!Pf.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?_l(this,"_updatePosition",50,"fixRate"):xl(this,"_updatePosition"))},md.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Yp("itemTooltip",this._api,Qf(function(e,n,i){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},md.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,r=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},md.prototype.manuallyShowTip=function(t,e,n,i){var r,o,a,s;i.from!==this.uid&&!Pf.node&&n.getDom()&&(r=_d(i,n),this._ticket="",s=i.dataByCoordSys,(o=function(t,e,n){var i=ai(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,e=si(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse(function(e){var n=Ev(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o))return{componentMainType:r,componentIndex:e.componentIndex,el:o}}}(i,e,n))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)):i.tooltip&&null!=i.x&&null!=i.y?((a=fI).x=i.x,a.y=i.y,a.update(),Ev(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(o=$p(i,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:i.position,positionDefault:"bottom"},r)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r)))},md.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(_d(i,n))},md.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a&&(a=e.getSeriesByIndex(r))&&(e=vd([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0},md.prototype._tryShow=function(t,e){var n,i,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?"legend"!==Ev(o).ssrType&&(Bl(o,function(t){return null!=Ev(t).dataIndex?(i=t,1):null!=Ev(t).tooltipConfig&&(r=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},md.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=Qf(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},md.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=vd([e.tooltipOption],i),a=this._renderMode,s=[],u=js("section",{blocks:[],noHeader:!0}),h=[],c=new bb,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,r,o=n.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;o&&null!=p&&(e=Vp(p,o.axis,n,t.seriesDataIndices,t.valueLabelOpt),r=js("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),u.blocks.push(r),f(t.seriesDataIndices,function(u){var d,f=n.getSeriesByIndex(u.seriesIndex),u=u.dataIndexInside,g=f.getDataParams(u);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Th(o.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",_a(g.color),a),(d=(u=vs(f.formatTooltip(u,!0,null))).frag)&&(f=vd([f],i).get("valueFormatter"),r.blocks.push(f?l({valueFormatter:f},d):d)),u.text&&h.push(u.text),s.push(g))}))})}),u.blocks.reverse(),h.reverse(),e.position),e=o.get("order"),e=Ks(u,c,a,e,n.get("useUTC"),o.get("textStyle")),e=(e&&h.unshift(e),"richText"===a?"\n\n":"<br/>"),d=h.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,d,s,Math.random()+"",r[0],r[1],p,null,c)})},md.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,u=this._ecModel,e=Ev(e),h=e.seriesIndex,c=u.getSeriesByIndex(h),p=e.dataModel||c,d=e.dataIndex,e=e.dataType,f=p.getData(e),g=this._renderMode,y=t.positionDefault,m=vd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(i=p.getDataParams(d,e),r=new bb,i.marker=r.makeTooltipMarker("item",_a(i.color),g),y=vs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),o=y.frag,a=o?Ks(e?l({valueFormatter:e},o):o,r,g,c,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:h,from:this.uid}))},md.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Ev(e),o=r.tooltipConfig.option||{},s=o.encodeHTMLContent,s=(b(o)&&(o={content:o,formatter:o},s=!0),s&&i&&o.content&&((o=a(o)).content=yt(o.content)),[o]),i=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(i&&s.push(i),s.push({formatter:o.content}),t.positionDefault),l=vd(s,this._tooltipModel,r?{position:r}:null),u=l.get("content"),h=Math.random()+"",c=new bb;this._showOrMove(l,function(){var n=a(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,h,t.offsetX,t.offsetY,t.position,e,c)}),n({type:"showTip",from:this.uid})},md.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){var u,h,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&((u=this._tooltipContent).setEnterable(t.get("enterable")),h=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=b(h)?(p=t.ecModel.get("useUTC"),e=h,ma(e=(d=x(n)?n[0]:n)&&d.axisType&&0<=d.axisType.indexOf("time")?$o(d.axisValue,e,p):e,n,!0)):w(h)?(d=Qf(function(e,i){e===this._ticket&&(u.setContent(i,l,t,c,a),this._updatePosition(t,a,r,o,u,n,s))},this),this._ticket=i,h(n,i,d)):h),u.setContent(e,l,t,c,a),u.show(t,c),this._updatePosition(t,a,r,o,u,n,s))},md.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||x(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:x(e)?void 0:{color:i||e.color||e.borderColor}},md.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=An(e[0],l),i=An(e[1],u)):T(e)?((o=e).width=h[0],o.height=h[1],n=(o=ba(o,{width:l,height:u})).x,i=o.y,p=c=null):(n=(s=b(e)&&a?function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];return null!=o&&(i<t+s+o+2?t-=s+o:t+=o),null!=a&&(r<e+n+a?e-=n+a:e+=a),[t,e]}(n,i,r,l,u,c?null:20,p?null:20))[0],i=s[1]),c&&(n-=xd(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=xd(p)?h[1]/2:"bottom"===p?h[1]:0),ad(t)&&(o=n,a=i,e=l,d=u,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],i=s[1]),r.moveTo(n,i)},md.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&f(n,function(n,o){var n=n.dataByAxis||[],a=(t[o]||{}).dataByAxis||[];(r=r&&n.length===a.length)&&f(n,function(t,n){var n=a[n]||{},o=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(r=r&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===s.length)&&f(o,function(t,e){e=s[e],r=r&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),i&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,n=e[t],t=i[t];n&&t&&t.data!==n.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},md.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},md.prototype.dispose=function(t,e){!Pf.node&&e.getDom()&&(xl(this,"_updatePosition"),this._tooltipContent.dispose(),Zp("itemTooltip",e))},md.type="tooltip",md);Ah(function(t){Ah(rd),t.registerComponentModel(aI),t.registerComponentView(gI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Z),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Z)});var yI,mI=ri(),vI=(n(bd,yI=aw),bd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},bd.prototype.isAnimationEnabled=function(){var t;return!Pf.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},bd.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},bd.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=mI(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&wd(n),f(n.data,function(t){t instanceof Array?(wd(t[0]),wd(t[1])):wd(t)}),l(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),mI(t)[r]=o):mI(t)[r]=null},this)},bd.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),i=i.getName(t);return js("section",{header:this.name,blocks:[js("nameValue",{name:i,value:r,noName:!i,noValue:null==r})]})},bd.prototype.getData=function(){return this._data},bd.prototype.setData=function(t){this._data=t},bd.prototype.getDataParams=function(t,e){return t=Kw.prototype.getDataParams.call(this,t,e),e=this.__hostSeries,e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},bd.getMarkerModelFromSeries=function(t,e){return mI(t)[e]},bd.type="marker",bd.dependencies=["series","grid","polar","geo"],bd);p(vI,Kw.prototype),n(Sd,_I=vI),Sd.prototype.createMarkerModelFromSeries=function(t,e,n){return new Sd(t,e,n)},Sd.type="markPoint",Sd.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var _I,xI,wI=Sd,bI={min:_(Cd,"min"),max:_(Cd,"max"),average:_(Cd,"average"),median:_(Cd,"median")},SI=ri(),g_=(n(kd,xI=Mb),kd.prototype.init=function(){this.markerGroupMap=U()},kd.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){SI(t).keep=!1}),e.eachSeries(function(t){var r=vI.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){SI(t).keep||i.group.remove(t.group)})},kd.prototype.markKeep=function(t){SI(t).keep=!0},kd.prototype.toggleBlurSeries=function(t,e){var n=this;f(t,function(t){(t=vI.getMarkerModelFromSeries(t,n.type))&&t.getData().eachItemGraphicEl(function(t){t&&(e?vr:_r)(t)})})},kd.type="marker",kd);n(Ad,CI=g_),Ad.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=vI.getMarkerModelFromSeries(t,"markPoint");e&&(Dd(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},Ad.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,s=s.get(o)||s.set(o,new zT),u=function(t,e,n){var i;i=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new wC(i,n),n=g(n.get("data"),_(Td,e));return t&&(n=m(n,_(Md,t))),t=function(t,e){return t?function(t,n,i,r){return Ss(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Ss(t.value,e[r])}}(!!t,i),r.initData(n,null,t),r}(r,t,e);e.setData(u),Dd(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect"),h=((w(i)||w(r)||w(o)||w(s))&&(h=e.getRawValue(t),c=e.getDataParams(t),w(i)&&(i=i(h,c)),w(r)&&(r=r(h,c)),w(o)&&(o=o(h,c)),w(s))&&(s=s(h,c)),n.getModel("itemStyle").getItemStyle()),c=El(a,"color");h.fill||(h.fill=c),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})}),s.updateData(u),this.group.add(s.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){Ev(t).dataModel=e})}),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},Ad.type="markPoint";var CI,TI=Ad;Ah(function(t){t.registerComponentModel(wI),t.registerComponentView(TI),t.registerPreprocessor(function(t){!function(t,e){if(t)for(var n=x(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i].markPoint)return 1}(t.series)||(t.markPoint=t.markPoint||{})})}),Ah(yc);var MI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},II=(Pd.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!C(e)&&this._condVal.test(t+"")},Pd);Od.prototype.evaluate=function(){return this.value};var kI=Od;Ld.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var DI=Ld;Rd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var AI=Rd;Ed.prototype.evaluate=function(){return!this.child.evaluate()};var PI=Ed;Nd.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var OI=Nd;Vd.prototype.evaluate=function(){return this._cond.evaluate()};var LI=Vd,RI={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:U({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(q(t,"dimension")||jn(""),i.getDimensionInfo(e));return t||jn(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new LI(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},EI={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Xn(t),n=(t.length||jn(""),[]),t=(f(t,function(t){var i=t.dimension,r=t.order,o=t.parser,t=t.incomparable,i=(null==i&&jn(""),"asc"!==r&&"desc"!==r&&jn(""),t&&"min"!==t&&"max"!==t&&jn(""),"asc"!==r&&"desc"!==r&&jn(""),e.getDimensionInfo(i)),a=(i||jn(""),o?Cs(o):null);o&&!a&&jn(""),n.push({dimIdx:i.index,parser:a,comparator:new lb(r,t)})}),e.sourceFormat),i=(t!==fw&&t!==gw&&jn(""),[]),r=0,o=e.count();r<o;r++)i.push(e.getRawDataItem(r));return i.sort(function(t,i){for(var r=0;r<n.length;r++){var o=n[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(i,o.dimIdx),o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0}),{data:i}}};Ah(function(t){t.registerTransform(RI),t.registerTransform(EI)});var NI,BI=Math.sin,zI=Math.cos,FI=Math.PI,VI=2*Math.PI,HI=180/FI,GI=(Hd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},Hd.prototype.moveTo=function(t,e){this._add("M",t,e)},Hd.prototype.lineTo=function(t,e){this._add("L",t,e)},Hd.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},Hd.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},Hd.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},Hd.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l,u=a-o,s=!s,h=Math.abs(u),c=ke(h-VI)||(s?VI<=u:VI<=-u),p=!1,p=!!c||!ke(h)&&FI<=(0<u?u%VI:u%VI+VI)==!!s,h=t+n*zI(o),u=e+i*BI(o),r=(this._start&&this._add("M",h,u),Math.round(r*HI));c?(c=1/this._p,this._add("A",n,i,r,1,+s,t+n*zI(o+(l=(s?1:-1)*(VI-c))),e+i*BI(o+l)),.01<c&&this._add("A",n,i,r,0,+s,h,u)):(o=t+n*zI(a),l=e+i*BI(a),this._add("A",n,i,r,+p,+s,o,l))},Hd.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},Hd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},Hd.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},Hd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},Hd.prototype.getStr=function(){return this._str},Hd),WI="none",UI=Math.round,jI=["lineCap","miterLimit","lineJoin"],YI=g(jI,function(t){return"stroke-"+t.toLowerCase()}),XI="http://www.w3.org/2000/svg",qI="http://www.w3.org/1999/xlink",ZI="http://www.w3.org/2000/xmlns/",KI="http://www.w3.org/XML/1998/namespace",$I="ecmeta_",QI=0,JI={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tk="transform-origin",ek={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},nk=Math.round,ik={circle:[(NI=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<NI.length;i++){var r=NI[i],o=t[r[0]];null!=o&&(e[r[1]]=nk(o*n)/n)}})],polyline:[of,af],polygon:[of,af]},rk=58,ok=120,ak=Ud("",""),sk=0;If.prototype.getType=function(){return this.type},If.prototype.getViewportRoot=function(){return this._viewport},If.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},If.prototype.getSvgDom=function(){return this._svgDom},If.prototype.refresh=function(){var t,e,n,i,r;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",xf(e=this._oldVNode,n=t)?Mf(e,n):(r=gf(i=e.elm),wf(n),null!==r&&(pf(r,n.elm,yf(i)),Sf(r,[e],0,0))),this._oldVNode=t)},If.prototype.renderOneToVNode=function(t){return lf(t,Yd(this._id))},If.prototype.renderToVNode=function(t){t=t||{};var e,n,i,r,o,a=this.storage.getDisplayList(!0),s=this._width,l=this._height,u=Yd(this._id),h=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,u.emphasis=t.emphasis,[]),c=this._bgVNode=function(t,e,n,i){var r;return n&&"none"!==n&&(r=Ud("rect","bg",{width:t,height:e,x:"0",y:"0"}),Ee(n)?uf({fill:n},r.attrs,"fill",i):Oe(n)?hf({style:{fill:n},dirty:Z,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i):(i=Ie(n),n=i.color,i=i.opacity,r.attrs.fill=n,i<1&&(r.attrs["fill-opacity"]=i))),r}(s,l,this._backgroundColor,u),c=(c&&h.push(c),t.compress?null:this._mainVNode=Ud("g","main",{},[])),a=(this._paintList(a,u,c?c.children:h),c&&h.push(c),g(v(u.defs),function(t){return u.defs[t]}));return a.length&&h.push(Ud("defs","defs",{},a)),t.animation&&(e=u.cssNodes,n=u.cssAnims,i=(c=(c={newline:!0})||{}).newline?"\n":"",r=" {"+i,o=i+"}",c=g(v(e),function(t){return t+r+g(v(e[t]),function(n){return n+":"+e[t][n]+";"}).join(i)+o}).join(i),a=g(v(n),function(t){return"@keyframes "+t+r+g(v(n[t]),function(e){return e+r+g(v(n[t][e]),function(i){var r=n[t][e][i];return i+":"+(r="d"===i?'path("'+r+'")':r)+";"}).join(i)+o}).join(i)+o}).join(i),c=c||a?["<![CDATA[",c,a,"]]>"].join(i):"")&&(a=Ud("style","stl",{},[],c),h.push(a)),Xd(s,l,h,t.useViewBox)},If.prototype.renderToString=function(t){return jd(this.renderToVNode({animation:R((t=t||{}).cssAnimation,!0),emphasis:R(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:R(t.useViewBox,!0)}),{newline:!0})},If.prototype.setBackgroundColor=function(t){this._backgroundColor=t},If.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},If.prototype._paintList=function(t,e,n){for(var i,r,o,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=C&&C.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!C||y[_]!==C[_]);_--);for(var x=v-1;_<x;x--)i=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(r=y[w],o=b,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[r.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[r.id]=u]=Ud("clipPath",u,s,[sf(r,a)])),o["clip-path"]=Ne(u),Ud("g","clip-g-"+d++,b,[]));(i?i.children:n).push(S),i=c[p++]=S}var C=y,v=lf(g,e);v&&(i?i.children:n).push(v)}}},If.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=jl(i,0,n),e=jl(i,1,n),r.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,r&&((i=r.style).width=t+"px",i.height=e+"px"),Oe(this._backgroundColor)?this.refresh():((n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)),(r=this._bgVNode&&this._bgVNode.elm)&&(r.setAttribute("width",t),r.setAttribute("height",e))))},If.prototype.getWidth=function(){return this._width},If.prototype.getHeight=function(){return this._height},If.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},If.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},If.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=yy(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},Mn("svg",If),e.Axis=jx,e.ChartView=Db,e.ComponentModel=aw,e.ComponentView=Mb,e.List=wC,e.Model=Ox,e.PRIORITY=Qb,e.SeriesModel=Tb,e.color=cy,e.connect=function(t){var e;return x(t)&&(e=t,t=null,f(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+tC++,f(e,function(e){e.group=t})),QS[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.6.0"},e.disConnect=$b,e.disconnect=vu,e.dispose=function(t){b(t)?t=$S[t]:t instanceof GS||(t=_u(t)),t instanceof GS&&!t.isDisposed()&&t.dispose()},e.env=Pf,e.extendChartView=function(t){return t=Db.extend(t),Db.registerClass(t),t},e.extendComponentModel=function(t){return t=aw.extend(t),aw.registerClass(t),t},e.extendComponentView=function(t){return t=Mb.extend(t),Mb.registerClass(t),t},e.extendSeriesModel=function(t){return t=Tb.extend(t),Tb.registerClass(t),t},e.format=kx,e.getCoordinateSystemDimensions=function(t){if(t=Ow.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=_u,e.getInstanceById=function(t){return $S[t]},e.getMap=function(t){var e=gS.getMap;return e&&e(t)},e.graphic=Ax,e.helper=Jb,e.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=_u(t);if(r)return r}return(r=new GS(t,e,n)).id="ec_"+JS++,$S[r.id]=r,i&&li(t,eC,r.id),BS(r),fS.trigger("afterinit",r),r},e.innerDrawElementOnCanvas=ru,e.matrix=bg,e.number=Ix,e.parseGeoJSON=Vh,e.parseGeoJson=Vh,e.registerAction=Mu,e.registerCoordinateSystem=Iu,e.registerLayout=ku,e.registerLoading=Pu,e.registerLocale=qo,e.registerMap=Ou,e.registerPostInit=Su,e.registerPostUpdate=Cu,e.registerPreprocessor=wu,e.registerProcessor=bu,e.registerTheme=xu,e.registerTransform=Lu,e.registerUpdateLifecycle=Tu,e.registerVisual=Du,e.setCanvasCreator=function(t){i({createCanvas:t})},e.setPlatformAPI=i,e.throttle=vl,e.time=mm,e.use=Ah,e.util=Tx,e.vector=sg,e.version="5.5.1",e.zrUtil=rg,e.zrender=om})}).call(e,n(913).Buffer)},2103:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];i._withStripped=!0},2104:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chartContainer"},[n("div",{staticClass:"dataDisplay"},[n("div",{staticClass:"selectAge"},[n("div",{staticClass:"leftSelectAge"},[n("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),n("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[n("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),n("i",{staticClass:"dropDown"})]),t._v(" "),n("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.benefitBtnShow,expression:"benefitBtnShow"}],class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"specialShowBox"},[n("div",{staticClass:"numShow"},[n("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][i])/100)+"\n ")]),t._v(" "),n("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),n("div",{staticClass:"titleShow"},[n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?n("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?n("span",[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()])]):t._e()]})]:[n("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"textShowBox"},[n("div",{staticClass:"iconblock"},[n("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),n("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"moneyShowBox"},[n("div",{staticClass:"numShow"},[n("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.getNum(t.selectIndex,i,e))+"\n ")]),t._v(" "),n("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?n("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?n("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()]):t._e()]})],2)]],2),t._v(" "),n("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),n("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?n("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e(),t._v(" "),t.tip?n("div",{staticClass:"tipContent"},[n("div",{staticClass:"tip",domProps:{innerHTML:t._s(t.tip)}})]):t._e()],1)},r=[];i._withStripped=!0},2105:function(t,e,n){"use strict";function i(t){s||n(2106)}var r=n(1243),o=n(2107),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},2106:function(t,e){},2107:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,i){return[t.showCol(i)?n("span",{key:"head-"+i,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,i){return n("tr",{key:"tr-"+i,staticClass:"table-tr"},[t._l(e,function(e,r){return[t.showCol(r)?n("td",{key:"td-"+i+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];i._withStripped=!0},2108:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=this,n=e.$createElement,i=e._self._c||n;return e.isShowChart?i("div",[i("benefit",{attrs:{renderData:e.renderData,benefitBtnShow:e.benefitBtnShow,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,tip:e.tip,percentageTypes:e.percentageTypes,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),i("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),i("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.btnColor},on:{select:function(e,n){t.setSelectIndex(n[0])}}})],1):e._e()},r=[];i._withStripped=!0},22:function(t,e,n){var i=n(6),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},25:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},26:function(e,n){e.exports=t},267:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(268),o=i(r),a=n(270),s=i(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},268:function(t,e,n){t.exports={default:n(269),__esModule:!0}},269:function(t,e,n){n(48),n(51),t.exports=n(147).f("iterator")},27:function(t,e,n){var i=n(10).f,r=n(8),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},270:function(t,e,n){t.exports={default:n(271),__esModule:!0}},271:function(t,e,n){n(272),n(73),n(276),n(277),t.exports=n(2).Symbol},272:function(t,e,n){"use strict";var i=n(0),r=n(8),o=n(3),a=n(9),s=n(54),l=n(195).KEY,u=n(12),h=n(31),c=n(27),p=n(25),d=n(1),f=n(147),g=n(148),y=n(273),m=n(197),v=n(4),_=n(6),x=n(33),w=n(13),b=n(39),S=n(23),C=n(52),T=n(274),M=n(275),I=n(57),k=n(10),D=n(29),A=M.f,P=k.f,O=T.f,L=i.Symbol,R=i.JSON,E=R&&R.stringify,N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),V=h("symbols"),H=h("op-symbols"),G=Object.prototype,W="function"==typeof L&&!!I.f,U=i.QObject,j=!U||!U.prototype||!U.prototype.findChild,Y=o&&u(function(){return 7!=C(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(G,e);i&&delete G[e],P(t,e,n),i&&t!==G&&P(G,e,i)}:P,X=function(t){var e=V[t]=C(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===G&&Z(H,e,n),v(t),e=b(e,!0),v(n),r(V,e)?(n.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),Y(t,e,n)):P(t,e,n)},K=function(t,e){v(t);for(var n,i=y(e=w(e)),r=0,o=i.length;o>r;)Z(t,n=i[r++],e[n]);return t},$=function(t,e){return void 0===e?C(t):K(C(t),e)},Q=function(t){var e=z.call(this,t=b(t,!0));return!(this===G&&r(V,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==G||!r(V,e)||r(H,e)){var n=A(t,e);return!n||!r(V,e)||r(t,N)&&t[N][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=O(w(t)),i=[],o=0;n.length>o;)r(V,e=n[o++])||e==N||e==l||i.push(e);return i},et=function(t){for(var e,n=t===G,i=O(n?H:w(t)),o=[],a=0;i.length>a;)!r(V,e=i[a++])||n&&!r(G,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(H,n),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),Y(this,t,S(1,n))};return o&&j&&Y(G,t,{configurable:!0,set:e}),X(t)},s(L.prototype,"toString",function(){return this._k}),M.f=J,k.f=Z,n(177).f=T.f=tt,n(50).f=Q,I.f=et,o&&!n(18)&&s(G,"propertyIsEnumerable",Q,!0),f.f=function(t){return X(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)d(nt[it++]);for(var rt=D(d.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){j=!0},useSimple:function(){j=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),R&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,E.apply(R,i)}}),L.prototype[B]||n(5)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(i.JSON,"JSON",!0)},273:function(t,e,n){var i=n(29),r=n(57),o=n(50);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},274:function(t,e,n){var i=n(13),r=n(177).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},275:function(t,e,n){var i=n(50),r=n(23),o=n(13),a=n(39),s=n(8),l=n(41),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},276:function(t,e,n){n(148)("asyncIterator")},277:function(t,e,n){n(148)("observable")},29:function(t,e,n){var i=n(42),r=n(32);t.exports=Object.keys||function(t){return i(t,r)}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var i=n(2),r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,n){var i=n(15);t.exports=function(t){return Object(i(t))}},34:function(t,e,n){var i=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},35:function(t,e,n){var i=n(16),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},36:function(t,e,n){"use strict";var i=n(18),r=n(9),o=n(54),a=n(5),s=n(11),l=n(60),u=n(27),h=n(62),c=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,g,y,m){l(n,e,f);var v,_,x,w=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",S="values"==g,C=!1,T=t.prototype,M=T[c]||T["@@iterator"]||g&&T[g],I=M||w(g),k=g?S?w("entries"):I:void 0,D="Array"==e?T.entries||M:M;if(D&&(x=h(D.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),i||"function"==typeof x[c]||a(x,c,d)),S&&M&&"values"!==M.name&&(C=!0,I=function(){return M.call(this)}),i&&!m||!p&&!C&&T[c]||a(T,c,I),s[e]=I,s[b]=d,g)if(v={values:S?I:w("values"),keys:y?I:w("keys"),entries:k},m)for(_ in v)_ in T||o(T,_,v[_]);else r(r.P+r.F*(p||C),e,v);return v}},39:function(t,e,n){var i=n(6);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var i=n(8),r=n(13),o=n(46)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},43:function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},45:function(t,e,n){var i=n(14),r=n(1)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},46:function(t,e,n){var i=n(13),r=n(35),o=n(47);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),h=o(a,u);if(t&&n!=n){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===n)return t||h||0;return!t&&-1}}},47:function(t,e,n){var i=n(16),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},48:function(t,e,n){"use strict";var i=n(59)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,n){var i=n(10),r=n(23);t.exports=n(3)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},50:function(t,e){e.f={}.propertyIsEnumerable},51:function(t,e,n){n(68);for(var i=n(0),r=n(5),o=n(11),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=i[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},52:function(t,e,n){var i=n(4),r=n(61),o=n(32),a=n(20)("IE_PROTO"),s=function(){},l=function(){var t,e=n(22)("iframe"),i=o.length;for(e.style.display="none",n(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},54:function(t,e,n){t.exports=n(5)},551:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},552:function(t,e,n){"use strict";function i(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,i,r){var o=e.call(this,t,i,r);if(o)return n=i,o}),n}function r(t){return t?JSON.parse(y()(t)):t}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0!==t&&null!==t}function h(t){return"function"==typeof t}function c(t,e,n){function i(e){var n=y,i=m;return y=m=void 0,b=e,_=t.apply(i,n)}function r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(h,e),S?i(t):_}function s(t){var n=t-w,i=t-b,r=e-n;return C?Math.min(r,v-i):r}function u(t){var n=t-w,i=t-b;return void 0===w||n>=e||n<0||C&&i>=v}function h(){var t=Date.now();if(u(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,T&&y?i(t):(y=m=void 0,_)}function p(){void 0!==x&&o(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),n=u(t),o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];if(y=s,m=this,w=t,n){if(void 0===x)return a(w);if(C)return x=r(h,e),i(w)}return void 0===x&&(x=r(h,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,C=!1,T=!0,M=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,l(n)&&(S=!!n.leading,C="maxWait"in n,v=C?Math.max(+n.maxWait||0,e):v,T="trailing"in n?!!n.trailing:T),g.cancel=p,g.flush=d,g.pending=f,g}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var n=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),i=e.match(n);return decodeURIComponent(i?i[2]:"")}n.d(e,"k",function(){return L}),e.c=i,e.b=r,e.e=o,e.j=a,e.h=s,e.i=l,e.f=u,e.g=h,e.a=c,e.d=p;var d=n(70),f=(n.n(d),n(267)),g=(n.n(f),n(111)),y=n.n(g),m="undefined"!=typeof window,v=m&&window.navigator.userAgent.toLowerCase(),_=v&&/msie|trident/.test(v),x=v&&v.indexOf("msie 9.0")>0,w=v&&v.indexOf("edge/")>0,b=v&&v.indexOf("android")>0,S=v&&/iphone|ipad|ipod|ios/.test(v),C=v&&/arkweb|harmony/.test(v),T=v&&/chrome\/\d+/.test(v)&&!w,M=v&&/MicroMessenger/i.test(v),I=v&&/wxwork/i.test(v),k=v&&/mucxiaoyusan/i.test(v),D=v&&/muckacabao/i.test(v),A=v&&/mucyanxuan/i.test(v),P=k||D,O=v&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(v),L={isIE:_,isMobile:O,isIE9:x,isEdge:w,isAndroid:b,isIOS:S,isHarmonyOS:C,isChrome:T,isWx:M,isWxWork:I,isApp:P,isXysApp:k,isKcbApp:D,isYxApp:A};/MucWebAutoTester/.test(window.navigator.userAgent)},56:function(t,e,n){var i=n(45),r=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},57:function(t,e){e.f=Object.getOwnPropertySymbols},59:function(t,e,n){var i=n(16),r=n(15);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e,n){"use strict";var i=n(52),r=n(23),o=n(27),a={};n(5)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},61:function(t,e,n){var i=n(10),r=n(4),o=n(29);t.exports=n(3)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},62:function(t,e,n){var i=n(8),r=n(33),o=n(20)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},63:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},68:function(t,e,n){"use strict";var i=n(69),r=n(63),o=n(11),a=n(13);t.exports=n(36)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},69:function(t,e){t.exports=function(){}},7:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o);var h;if(a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=i},70:function(t,e,n){t.exports={default:n(79),__esModule:!0}},73:function(t,e){},79:function(t,e,n){n(80),t.exports=n(2).Object.assign},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){var i=n(9);i(i.S+i.F,"Object",{assign:n(81)})},81:function(t,e,n){"use strict";var i=n(3),r=n(29),o=n(57),a=n(50),s=n(33),l=n(34),u=Object.assign;t.exports=!u||n(12)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,h=1,c=o.f,p=a.f;u>h;)for(var d,f=l(arguments[h++]),g=c?r(f).concat(c(f)):r(f),y=g.length,m=0;y>m;)d=g[m++],i&&!p.call(f,d)||(n[d]=f[d]);return n}:u},845:function(t,e){t.exports=n},9:function(t,e,n){var i=n(0),r=n(2),o=n(17),a=n(5),s=n(8),l=function(t,e,n){var u,h,c,p=t&l.F,d=t&l.G,f=t&l.S,g=t&l.P,y=t&l.B,m=t&l.W,v=d?r:r[e]||(r[e]={}),_=v.prototype,x=d?i:f?i[e]:(i[e]||{}).prototype;d&&(n=e);for(u in n)(h=!p&&x&&void 0!==x[u])&&s(v,u)||(c=h?x[u]:n[u],v[u]=d&&"function"!=typeof x[u]?n[u]:y&&h?o(c,i):m&&x[u]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},913:function(t,e,n){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,n,i):"string"==typeof e?h(t,e,n):d(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}function u(t,e){if(s(e),t=r(t,e<0?0:0|f(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|y(e,n);t=r(t,i);var a=t.write(e,n);return a!==i&&(t=t.slice(0,a)),t}function c(t,e){var n=e.length<0?0:0|f(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function p(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function d(t,e){if(o.isBuffer(e)){var n=0|f(e.length);return t=r(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?r(t,0):c(t,e);if("Buffer"===e.type&&Q(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(i)return U(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!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"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function v(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var h=-1;for(u=n;u<s;u++)if(o(t,u)===o(e,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===l)return h*a}else-1!==h&&(u-=u-h),h=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var c=!0,p=0;p<l;p++)if(o(t,u+p)!==o(e,p)){c=!1;break}if(c)return u}return-1}function w(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,i){return q(U(e,t.length-n),t,n,i)}function S(t,e,n,i){return q(j(e),t,n,i)}function C(t,e,n,i){return S(t,e,n,i)}function T(t,e,n,i){return q(X(e),t,n,i)}function M(t,e,n,i){return q(Y(e,t.length-n),t,n,i)}function I(t,e,n){return 0===e&&n===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,h,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],u=t[r+2],128==(192&l)&&128==(192&u)&&(c=(15&o)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],u=t[r+2],h=t[r+3],128==(192&l)&&128==(192&u)&&128==(192&h)&&(c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&h)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return D(i)}function D(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=J));return n}function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function P(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function O(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=W(t[o]);return r}function L(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function N(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function B(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function z(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,r){return r||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,r){return r||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,i,52,8),n+8}function H(t){if(t=G(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=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 j(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Y(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}function X(t){return K.toByteArray(H(t))}function q(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function Z(t){return t!==t}var K=n(914),$=n(915),Q=n(916);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return l(null,t,e,n)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.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===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,s=n-e,l=Math.min(a,s),u=this.slice(i,r),h=t.slice(e,n),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],s=h[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i;if(o.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=o.prototype;else{var r=e-t;i=new o(r,void 0);for(var a=0;a<r;++a)i[a]=this[a+t]}return i},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--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},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:U(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(551))},914:function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function o(t,e,n){return 3*(e+n)/4-n}function a(t){var e,n,r=i(t),a=r[0],s=r[1],l=new p(o(t,a,s)),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=c[t.charCodeAt(n)]<<18|c[t.charCodeAt(n+1)]<<12|c[t.charCodeAt(n+2)]<<6|c[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=c[t.charCodeAt(n)]<<2|c[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=c[t.charCodeAt(n)]<<10|c[t.charCodeAt(n+1)]<<4|c[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function s(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function l(t,e,n){for(var i,r=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(i));return r.join("")}function u(t){for(var e,n=t.length,i=n%3,r=[],o=0,a=n-i;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===i?(e=t[n-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),r.join("")}e.byteLength=r,e.toByteArray=a,e.fromByteArray=u;for(var h=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)h[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},915:function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?r-1:0,p=n?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?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=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?p/l:p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}},916:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},92:function(t,e,n){"use strict";e.__esModule=!0;var i=n(70),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/Picker/index.js","@xysfe/actui/es/assets/img/redCircle.png","@xysfe/actui/es/assets/img/purpleCircle.png","@xysfe/actui/es/assets/img/grayCircle.png","@xysfe/actui/es/assets/img/cps-orangeCircle.png","@xysfe/actui/es/assets/img/cps-redCircle.png","@xysfe/actui/es/assets/img/cps-grayCircle.png"],e):"object"==typeof exports?exports.GoldFinanceChart=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):t.GoldFinanceChart=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/Picker/index.js"],t["@xysfe/actui/es/assets/img/redCircle.png"],t["@xysfe/actui/es/assets/img/purpleCircle.png"],t["@xysfe/actui/es/assets/img/grayCircle.png"],t["@xysfe/actui/es/assets/img/cps-orangeCircle.png"],t["@xysfe/actui/es/assets/img/cps-redCircle.png"],t["@xysfe/actui/es/assets/img/cps-grayCircle.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s,l){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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="../es",e(e.s=2089)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var i=n(31)("wks"),r=n(25),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},10:function(t,e,n){var i=n(4),r=n(41),o=n(39),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},11:function(t,e){t.exports={}},111:function(t,e,n){t.exports={default:n(117),__esModule:!0}},117:function(t,e,n){var i=n(2),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1240:function(t,e,n){"use strict";var i=n(146),r=n.n(i),o=n(130),a=n.n(o),s=n(552),l=n(2091),u=n(2098),h=n(2105),c=n(845),p=n.n(c);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:u.a,GoldCostTable:h.a,goldPicker:p.a},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean},unit:{default:"周岁",type:String},note:{default:"",type:String},selectDefaultVal:{default:10,type:Number},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}},notShowLineTypes:{type:Array,default:function(){return[]}},benefitBtnShow:{type:Boolean,default:!0}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.e)(this.chartConfig)))return!1;for(var t=0,e=0,n=0,i=0;i<this.chartConfig.length;i++){var r=this.chartConfig[i];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(n+=1))}return 1===t&&e>=1&&1===n},findTablesIndex:function(t,e){if(Object(s.e)(e))for(var n=0;n<e.length;n++)if(Number(e[n])===Number(t))return n},analysisExpression:function(t){if(!/([\d]+)([+*/-])([\d]+)/g.test(t))return{};var e=void 0,n=void 0,i=void 0;return t.replace(/([\d]+)([+*/-])([\d]+)/g,function(t,r,o,a){e=r,n=a,i=o}),{firstParamColsType:e,secondParamColsType:n,operator:i}},getExpressionData:function(t,e,n){var i=this.analysisExpression(t),r=i.firstParamColsType,o=i.secondParamColsType,a=i.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(s=this.findTablesIndex(r,n.colsType),l=this.findTablesIndex(o,n.colsType),void 0!==s&&void 0!==l)return n.rows.forEach(function(t,e){var n=void 0;switch(a){case"+":n=t[s]+t[l];break;case"-":n=t[s]-t[l];break;case"/":n=t[s]/t[l];break;case"*":n=t[s]*t[l]}u.push(Number(n).toFixed(1))}),u}},initConfig:function(t,e){var n=this;if(t&&e){for(var i=[],r=[],o=[],u=this.isCps?Object(s.b)(l.b):Object(s.b)(l.a),h=Object(s.b)(u.showType2),c=Object(s.b)(u.showType3),p=t,d=Array.isArray(p),f=0,p=d?p:a()(p);;){var g;if(d){if(f>=p.length)break;g=p[f++]}else{if(f=p.next(),f.done)break;g=f.value}var y=g;(function(r){var a=void 0,p=r.colsType,d=n.findTablesIndex(p,e.colsType);if(!d)return"continue";var f=Number(r.showType),g=r.name||l.c[p],y=r.titleName||r.name||l.c[p],m=n.getExpressionData(r.tipsExpression,t,e),v=r.lineStyle,_=r.boxConfig;if(!(2!==f||v&&_)){h.length||(h=Object(s.b)(u.showType2));var x=h.shift();v=x.lineStyle,_=x.boxConfig}if(3===f&&!v){c.length||(c=Object(s.b)(u.showType3));v=c.shift().lineStyle}o.push(g);var w=[],b=r.multcolType||0;if(31===b){var S=r.multValues||[],C=n.findTablesIndex(b,e.colsType);C&&S.length&&(w=S.map(function(t){var n=e.rows.findIndex(function(e){return t===Math.floor(e[C])});return-1===n?{coord:[],value:0}:{coord:[n,e.rows[n][d]],value:t}}))}var T=!0;n.notShowLineTypes.includes(p)&&(T=!1),a={showType:f,colsType:p,name:g,titleName:y,problemText:r.problemText,tableRowIndex:d,lineStyle:v,boxConfig:_,tipsText:r.tipsText,markPoint:w,displayLine:T,negativeText:r.negativeText||""},m&&(a.expressionData=m),i.push(a)})(y)}var m=e.rows.map(function(t){for(var e=[],n=i,o=Array.isArray(n),s=0,n=o?n:a()(n);;){var l;if(o){if(s>=n.length)break;l=n[s++]}else{if(s=n.next(),s.done)break;l=s.value}var u=l;1===u.showType&&r.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return m.unshift(o),{chartConfig:i,dataSource:m,xAxisData:r}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1241:function(t,e,n){"use strict";var i=n(146),r=n.n(i),o=n(2100),a=n(552);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},benefitBtnShow:{type:Boolean,default:!0},unit:{default:"周岁",type:String},note:{default:"",type:String},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{getNum:function(t,e,n){var i=Math.round(100*this.pureDataSource[t][e])/100;return i<0&&n.negativeText?n.negativeText:(this.percentageTypes.includes(Number(n.colsType))&&(i+="%"),i)},showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];this.dialog?this.dialog.setData(t,e):this.dialog=this.$createGoldDialog({title:t,content:e,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var n=this.$refs.num[e],i=this.$refs.colorBlock[e];for(n.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(n).width)>parseInt(getComputedStyle(i).width)+30))break;var r=parseInt(getComputedStyle(n).fontSize);if(r<=12)break;n.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,n=t.dataSource,i=t.xAxisData;this.chartConfig=e,this.dataSource=n,this.xAxisData=i,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1242:function(t,e,n){"use strict";var i=n(146),r=n.n(i),o=n(130),a=n.n(o),s=n(92),l=n.n(s),u=n(552),h=n(2102);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=i/375*10;return i?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=this,e=[],n=[],i=this.getXAxisName(),r=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var s=this.chartConfig[o];if([2,3].includes(s.showType)&&s.displayLine){var c={};Object(u.e)(s.lineStyle.areaStyleColor)?c.color=new h.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(u.j)(s.lineStyle.areaStyleColor)&&(c.color=s.lineStyle.areaStyleColor),e.push({name:s.name,type:"line",smooth:!0,symbol:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:i,y:s.name},lineStyle:{width:1,color:s.lineStyle.lineColor},emphasis:{lineStyle:{color:s.lineStyle.lineColor}},zlevel:s.lineStyle.zIndex,z:s.lineStyle.zIndex,areaStyle:c.color?c:void 0,markPoint:{symbol:"circle",showSymbol:!0,symbolSize:[this.remToPxBased10Px(.8),this.remToPxBased10Px(.8)],symbolOffset:["-10%","-10%"],silent:!0,data:s.markPoint.map(function(e){return l()({itemStyle:{color:"#ffab11",borderWidth:t.remToPxBased10Px(.21),borderType:"solid",borderColor:"#FFEAC3"},label:{show:!0,position:"top",formatter:"{c}倍",backgroundColor:"#FFAB11",color:"#fff",borderRadius:t.remToPxBased10Px(.21),fontSize:t.remToPxBased10Px(1),width:t.remToPxBased10Px(2.8),height:t.remToPxBased10Px(1.5),borderWidth:t.remToPxBased10Px(.11),borderType:"solid",borderColor:"#FFEAC3",lineHeight:t.remToPxBased10Px(1.5)}},e)})}}),n.push({name:s.name,icon:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle"})}}var p={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.4)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:n,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,n,i,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,n=Array.isArray(e),i=0,e=n?e:a()(e);;){var o;if(n){if(i>=e.length)break;o=e[i++]}else{if(i=e.next(),i.done)break;o=i.value}var s=o;if(s.seriesName===r){var l=s.encode.y[0],u=s.value[l];return r+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:e};this.chart.setOption(p),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=h.init(this.$refs.chart,null,{renderer:"svg"}),this.setEcharts(),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);t.chart.containPixel("grid",n)&&t.index!==Math.round(i[0])&&t.setIndex(Math.round(i[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1243:function(t,e,n){"use strict";var i=n(196),r=n.n(i);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new r.a(n,{})})}}}}},13:function(t,e,n){var i=n(34),r=n(15);t.exports=function(t){return i(r(t))}},130:function(t,e,n){t.exports={default:n(144),__esModule:!0}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},144:function(t,e,n){n(51),n(48),t.exports=n(145)},145:function(t,e,n){var i=n(4),r=n(56);t.exports=n(2).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},146:function(t,e,n){t.exports={default:n(175),__esModule:!0}},147:function(t,e,n){e.f=n(1)},148:function(t,e,n){var i=n(0),r=n(2),o=n(18),a=n(147),s=n(10).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},17:function(t,e,n){var i=n(19);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},174:function(t,e,n){var i=n(9),r=n(2),o=n(12);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},175:function(t,e,n){n(176),t.exports=n(2).Object.keys},176:function(t,e,n){var i=n(33),r=n(29);n(174)("keys",function(){return function(t){return r(i(t))}})},177:function(t,e,n){var i=n(42),r=n(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},195:function(t,e,n){var i=n(25)("meta"),r=n(6),o=n(8),a=n(10).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(12)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[i].i},p=function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[i].w},d=function(t){return u&&f.NEED&&l(t)&&!o(t,i)&&h(t),t},f=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},196:function(t,n){t.exports=e},197:function(t,e,n){var i=n(14);t.exports=Array.isArray||function(t){return"Array"==i(t)}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var i=n(31)("keys"),r=n(25);t.exports=function(t){return i[t]||(i[t]=r(t))}},2089:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(26),r=n.n(i),o=n(2090);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=r()(o.a,t)},e.default=o.a},2090:function(t,e,n){"use strict";var i=n(1240),r=n(2108),o=n(7),a=Object(o.a)(i.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2091:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o});var i={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:n(2092),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:n(2093),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(2094),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:n(2095),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:n(2096),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(2097),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2092:function(t,e){t.exports=i},2093:function(t,e){t.exports=r},2094:function(t,e){t.exports=o},2095:function(t,e){t.exports=a},2096:function(t,e){t.exports=s},2097:function(t,e){t.exports=l},2098:function(t,e,n){"use strict";function i(t){s||n(2099)}var r=n(1241),o=n(2104),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},2099:function(t,e){},2100:function(t,e,n){"use strict";function i(t){s||n(2101)}var r=n(1242),o=n(2103),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},2101:function(t,e){},2102:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(e){"use strict";function n(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Df(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t){for(var e in zf)t[e]&&(zf[e]=t[e])}function r(){return Kf++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Hf.call(t);if("[object Array]"===n){if(!H(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=a(t[i])}else if(Vf[n]){if(!H(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!Ff[n]&&!H(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Zf&&(e[s]=a(t[s]));return e}function s(t,e,n){if(!T(e)||!T(t))return n?a(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==Zf&&(r=t[i],!T(o=e[i])||!T(r)||x(o)||x(r)||k(o)||k(r)||M(o)||M(r)||H(o)||H(r)?!n&&i in t||(t[i]=a(e[i])):s(r,o,n))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Zf&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=v(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i,r=t.prototype;for(i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);(t.prototype.constructor=t).superClass=e}function p(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,n)}function d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Wf)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function g(t,e,n){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===Yf)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function m(t,e,n){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===Uf)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(jf.call(arguments)))}}function x(t){return Array.isArray?Array.isArray(t):"[object Array]"===Hf.call(t)}function w(t){return"function"==typeof t}function b(t){return"string"==typeof t}function S(t){return"[object String]"===Hf.call(t)}function C(t){return"number"==typeof t}function T(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function M(t){return!!Ff[Hf.call(t)]}function I(t){return!!Vf[Hf.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function D(t){return null!=t.colorStops}function A(t){return null!=t.image}function P(t){return"[object RegExp]"===Hf.call(t)}function O(t){return t!=t}function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function R(t,e){return null!=t?t:e}function E(t,e,n){return null!=t?t:null!=e?e:n}function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return jf.apply(t,e)}function B(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function z(t,e){if(!t)throw new Error(e)}function F(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[Jf]=!0}function H(t){return t[Jf]}function G(){this.data={}}function W(t){function e(t,e){n?i.set(t,e):i.set(e,t)}var n=x(t),i=(this.data=new(eg?Map:tg),this);t instanceof W?t.each(e):t&&f(t,e)}function U(t){return new ng(t)}function j(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function Y(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&l(t,e),t}function X(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function K(t,e){return[t=null==t?0:t,e=null==e?0:e]}function $(t){return[t[0],t[1]]}function Q(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function J(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function tt(t){return Math.sqrt(et(t))}function et(t){return t[0]*t[0]+t[1]*t[1]}function nt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function it(t,e){var n=tt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function rt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ot(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function at(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function st(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function lt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ut(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function ht(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function ct(t){t&&(this._$eventProcessor=t)}function pt(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/cg),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*pt(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function dt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=pt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*pt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function ft(t,e,n,i,r){if(e.getBoundingClientRect&&Pf.domSupported&&!gt(e)){var o=e[pg]||(e[pg]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?dt(s,a):dt(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function gt(t){return"CANVAS"===t.nodeName.toUpperCase()}function yt(t){return null==t?"":(t+"").replace(fg,function(t,e){return gg[e]})}function mt(t,e,n,i){return n=n||{},i?vt(t,e,n):vg&&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):vt(t,e,n),n}function vt(t,e,n){if(Pf.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(gt(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(ft(mg,t,r,e))return n.zrX=mg[0],void(n.zrY=mg[1])}n.zrX=n.zrY=0}function _t(t){return t||window.event}function xt(t,e,n){var i;return null==(e=_t(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&mt(t,i,e,n):(mt(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&yg.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function wt(){this._track=[]}function bt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function St(){return[1,0,0,1,0,0]}function Ct(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Tt(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 Mt(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=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],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=n,t}function It(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 kt(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=r*n+s*u,t[1]=-r*u+s*n,t[2]=o*n+l*u,t[3]=-o*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function Dt(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function At(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}function Pt(t,e){this.x=t||0,this.y=e||0}function Ot(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Lt(){_g(this.event)}function Rt(){var t=null!==Rg&&Rg.apply(this,arguments)||this;return t.handler=null,t}function Et(t,e,n,i,r){var o=Eg.call(this)||this;return o._hovered=new Bg(0,0),o.storage=t,o.painter=e,o.painterRoot=i,o._pointerSize=r,n=n||new Ng,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new ug(o),o}function Nt(t,e,n,i,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=!!i.ignoreClip||o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0),a=i.__hostTarget,i=a||i.parent}return!r||Lg}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==Lg)){e.target=a;break}}}function Bt(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}function zt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function Ft(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;var u=i-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:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Vt(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function Ht(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Gt(t,e){function n(n){var l=i[n],u=r[n],h=i[n+1],c=r[n+1],n=(r[n]=u+c,n===a-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),a--,Ht(t[h],t,l,u,0,e));if(l+=n,0!=(u-=n)&&0!==(c=Vt(t[l+u-1],t,h,c,c-1,e)))if(u<=c){var p=l,d=u,n=h,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=n,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,w,b=o;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=Ht(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){w=!0;break}}if(t[v++]=t[m++],0==--f){w=!0;break}if(0!==(x=Vt(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){w=!0;break}}if(t[v++]=s[y++],1==--d){w=!0;break}}while(b--,Gg<=_||Gg<=x);if(w)break;b<0&&(b=0),b+=2}if((o=b)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,C=u,T=h,M=c,I=0;for(I=0;I<M;I++)s[I]=t[T+I];var k=S+C-1,D=M-1,A=T+M-1,P=0,O=0;if(t[A--]=t[k--],0==--C)for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I];else if(1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{for(var L=o;;){var R=0,E=0,N=!1;do{if(e(s[D],t[k])<0){if(t[A--]=t[k--],R++,(E=0)==--C){N=!0;break}}else if(t[A--]=s[D--],E++,R=0,1==--M){N=!0;break}}while((R|E)<L);if(N)break;do{if(0!=(R=C-Ht(s[D],t,S,C,C-1,e))){for(C-=R,O=1+(A-=R),P=1+(k-=R),I=R-1;0<=I;I--)t[O+I]=t[P+I];if(0===C){N=!0;break}}if(t[A--]=s[D--],1==--M){N=!0;break}if(0!=(E=M-Vt(t[k],s,0,M,M-1,e))){for(M-=E,O=1+(A-=E),P=1+(D-=E),I=0;I<E;I++)t[O+I]=s[P+I];if(M<=1){N=!0;break}}if(t[A--]=t[k--],0==--C){N=!0;break}}while(L--,Gg<=R||Gg<=E);if(N)break;L<0&&(L=0),L+=2}if((o=L)<1&&(o=1),1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{if(0===M)throw new Error;for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I]}}}}var i,r,o=Gg,a=0,s=[];return i=[],r=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;n(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&r[t-1]<r[t+1]&&t--,n(t)}},pushRun:function(t,e){i[a]=t,r[a]=e,a+=1}}}function Wt(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<Hg)Ft(t,n,i,n+(o=zt(t,n,i,e)),e);else{var a,s=Gt(t,e),l=function(t){for(var e=0;Hg<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=zt(t,n,i,e))<l&&(Ft(t,n,n+(a=l<(a=r)?l:r),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!=(r-=o));s.forceMergeRuns()}}}function Ut(){jg||(jg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Yt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jt}function Xt(t){return-$g<t&&t<$g}function qt(t){return $g<t||t<-$g}function Zt(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Kt(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function $t(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Xt(r)&&Xt(l)?Xt(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):Xt(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-n/i+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=r*n+1.5*i*(-l-(t=Kg(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-Zg(-t,Jg):Zg(t,Jg))+(e=e<0?-Zg(-e,Jg):Zg(e,Jg))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*Kg(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=Kg(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Qg*Math.sin(e)))/(3*i),r=(-n+l*(t-Qg*Math.sin(e)))/(3*i),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=r&&r<=1&&(o[u++]=r)),u}function Qt(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Xt(i)?qt(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):Xt(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=Kg(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Jt(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function te(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;ty[0]=l,ty[1]=u;for(var m=0;m<1;m+=.05)ey[0]=Zt(t,n,r,a,m),ey[1]=Zt(e,i,o,s,m),(d=ag(ty,ey))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,ey[0]=Zt(t,n,r,a,f=c-g),ey[1]=Zt(e,i,o,s,f),d=ag(ey,ty),0<=f&&d<y?(c=f,y=d):(ny[0]=Zt(t,n,r,a,p),ny[1]=Zt(e,i,o,s,p),f=ag(ny,ty),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Zt(t,n,r,a,c),h[1]=Zt(e,i,o,s,c)),Kg(y)}function ee(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ne(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ie(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function re(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function oe(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;ty[0]=a,ty[1]=s;for(var p=0;p<1;p+=.05)ey[0]=ee(t,n,r,p),ey[1]=ee(e,i,o,p),(y=ag(ty,ey))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(ey[0]=ee(t,n,r,f),ey[1]=ee(e,i,o,f),ag(ey,ty));0<=f&&y<c?(u=f,c=y):(ny[0]=ee(t,n,r,g),ny[1]=ee(e,i,o,g),f=ag(ny,ty),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ee(t,n,r,u),l[1]=ee(e,i,o,u)),Kg(c)}function ae(t){if(t=t&&iy.exec(t)){var e,t=t[1].split(","),n=+F(t[0]),i=+F(t[1]),r=+F(t[2]),o=+F(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:$t(0,n,r,1,t,e)&&Zt(0,i,o,1,e[0])}}}function se(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||Z,this.ondestroy=t.ondestroy||Z,this.onrestart=t.onrestart||Z,t.easing&&this.setEasing(t.easing)}function le(){this._len=0}function ue(t){this._list=new ay,this._maxSize=10,this._map={},this._maxSize=t}function he(t){return(t=Math.round(t))<0?0:255<t?255:t}function ce(t){return t<0?0:1<t?1:t}function pe(t){return he(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function de(t){return ce(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function fe(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ge(t,e,n){return t+(e-t)*n}function ye(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function me(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function ve(t,e){hy&&me(hy,e),hy=uy.put(t,hy||e.slice())}function _e(t,e){if(t){e=e||[];var n=uy.get(t);if(n)return me(e,n);if((n=(t+="").replace(/ /g,"").toLowerCase())in ly)return me(e,ly[n]),ve(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(ye(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),ve(t,e),e):void ye(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(ye(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),ve(t,e),e):void ye(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?ye(e,+a[0],+a[1],+a[2],1):ye(e,0,0,0,1);s=de(a.pop());case"rgb":return 3<=a.length?(ye(e,pe(a[0]),pe(a[1]),pe(a[2]),3===a.length?s:de(a[3])),ve(t,e),e):void ye(e,0,0,0,1);case"hsla":return 4!==a.length?void ye(e,0,0,0,1):(a[3]=de(a[3]),xe(a,e),ve(t,e),e);case"hsl":return 3!==a.length?void ye(e,0,0,0,1):(xe(a,e),ve(t,e),e);default:return}}ye(e,0,0,0,1)}}function xe(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=de(t[1]),r=de(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return ye(e=e||[],he(255*fe(r,i,n+1/3)),he(255*fe(r,i,n)),he(255*fe(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function we(t,e){var n=_e(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Ce(n,4===n.length?"rgba":"rgb")}}function be(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=he(ge(r[0],e[0],o=t-i)),n[1]=he(ge(r[1],e[1],o)),n[2]=he(ge(r[2],e[2],o)),n[3]=ce(ge(r[3],e[3],o)),n}function Se(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),r=Math.ceil(t),a=_e(e[i]),e=_e(e[r]),a=Ce([he(ge(a[0],e[0],o=t-i)),he(ge(a[1],e[1],o)),he(ge(a[2],e[2],o)),ce(ge(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}function Ce(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Te(t,e){return t=_e(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Me(t){var e;return b(t)?((e=dy.get(t))||(e=we(t,-.1),dy.put(t,e)),e):D(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:we(t.color,-.1)}}),e):t}function Ie(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=_e(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function ke(t){return t<1e-4&&-1e-4<t}function De(t){return fy(1e3*t)/1e3}function Ae(t){return fy(1e4*t)/1e4}function Pe(t){return t&&!!t.image}function Oe(t){return Pe(t)||(t=t)&&!!t.svgElement}function Le(t){return"linear"===t.type}function Re(t){return"radial"===t.type}function Ee(t){return t&&("linear"===t.type||"radial"===t.type)}function Ne(t){return"url(#"+t+")"}function Be(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ze(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*ig,r=R(t.scaleX,1),o=R(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===r&&1===o||s.push("scale("+r+","+o+")"),(a||t)&&s.push("skew("+fy(a*ig)+"deg, "+fy(t*ig)+"deg)"),s.join(" ")}function Fe(t,e,n){return(e-t)*n+t}function Ve(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Fe(e[o],n[o],i);return t}function He(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Ge(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function We(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;i<e;i++)n.push(my.call(t[i]));return n}return my.call(t)}return t}function Ue(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function je(t){return 4===t||5===t}function Ye(t){return 1===t||2===t}function Xe(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function qe(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?o("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Ze(){return(new Date).getTime()}function Ke(t){var e=wy.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function $e(t){return"pen"===(t=t.pointerType)||"touch"===t}function Qe(t){t&&(t.zrByTouch=!0)}function Je(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function tn(t,e){var n=e.domHandlers;Pf.pointerEventsSupported?f(Iy.pointer,function(i){nn(e,i,function(e){n[i].call(t,e)})}):(Pf.touchEventsSupported&&f(Iy.touch,function(i){nn(e,i,function(r){var o;n[i].call(t,r),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})}),f(Iy.mouse,function(i){nn(e,i,function(r){r=_t(r),e.touching||n[i].call(t,r)})}))}function en(t,e){function n(n){nn(e,n,function(i){var r;i=_t(i),Je(t,i.target)||(r=i,i=xt(t.dom,new Py(t,r),!0),e.domHandlers[n].call(t,i))},{capture:!0})}Pf.pointerEventsSupported?f(Dy,n):Pf.touchEventsSupported||f(ky,n)}function nn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function rn(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,r=a[i=e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}function on(t,e){var n=Sy.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Ry(t,Oy),My&&(n._globalHandlerScope=new Ry(document,Ly)),tn(n,n._localHandlerScope),n}function an(t){return 5e-5<t||t<-5e-5}function sn(){}function ln(t,e){for(var n=0;n<jy.length;n++){var i=jy[n];t[i]=e[i]}}function un(t,e){var n=Yy[e=e||Nf],i=(n=n||(Yy[e]=new sy(500))).get(t);return null==i&&(i=zf.measureText(t,e).width,n.put(t,i)),i}function hn(t,e,n,i){return t=un(t,e),e=fn(e),n=pn(0,t,n),i=dn(0,e,i),new Og(n,i,t,e)}function cn(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return hn(r[0],e,n,i);for(var o=new Og(0,0,0,0),a=0;a<r.length;a++){var s=hn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function pn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function dn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function fn(t){return un("国",t)}function gn(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function yn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=gn(i[0],n.width),u+=gn(i[1],n.height),c=h=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function mn(t){this.id=Kf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function vn(t,e,n,i){function r(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(Cy,t,{get:function(){var t;return this[e]||(t=this[e]=[],r(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function _n(t,e,n,i,r){function o(){u=!0,--l<=0&&(u?c&&c():p&&p())}function a(){--l<=0&&(u?c&&c():p&&p())}var s=[],l=(function t(e,n,i,r,o,a,s,l){for(var u=v(r),c=o.duration,p=o.delay,f=o.additive,g=o.setToFinal,y=!T(a),_=e.animators,x=[],w=0;w<u.length;w++){var b=u[w],S=r[b];null!=S&&null!=i[b]&&(y||a[b])?!T(S)||d(S)||D(S)?x.push(b):n?l||(i[b]=S,e.updateDuringAnimation(n)):t(e,b,i[b],S,o,a&&a[b],s,l):l||(i[b]=S,e.updateDuringAnimation(n),x.push(b))}var C=x.length;if(!f&&C)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===n&&k.stopTracks(x)&&(M=h(_,k),_.splice(M,1));if(o.force||(x=m(x,function(t){return!bn(r[t],i[t])}),C=x.length),0<C||o.force&&!s.length){var k,A=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(A={}),I=0;I<C;I++)b=x[I],P[b]=i[b],g?A[b]=r[b]:i[b]=r[b];else if(g)for(O={},I=0;I<C;I++)b=x[I],O[b]=We(i[b]),wn(i,r,b);(k=new xy(i,!1,!1,f?m(_,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(k.scope=o.scope),g&&A&&k.whenWithKeys(0,A,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:r,x).delay(p||0),e.addAnimator(k,n),s.push(k)}}(t,"",t,e,n=n||{},i,s,r),s.length),u=!1,c=n.done,p=n.aborted;l||c&&c(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(o),g.aborted(a),n.force&&g.duration(n.duration),g.start(n.easing)}return s}function xn(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function wn(t,e,n){if(d(e[n]))if(d(t[n])||(t[n]=[]),I(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),xn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(d(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?xn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else xn(o,r,a);o.length=r.length}else t[n]=e[n]}function bn(t,e){return t===e||d(t)&&d(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}function Sn(t){var e=Qy.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function Cn(t,e,n){var i,r=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Yg),a=n.renderer||"canvas",a=(tm[a]||(a=v(tm)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new tm[a](e,o,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=o,this.painter=a,Pf.node||Pf.worker||e?null:new Ey(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?Pf.touchEventsSupported:!!s)&&(i=R(n.pointerSize,44)),this.handler=new Vg(o,a,t,a.root,i),this.animation=new Ty({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function Tn(t,e){return t=new rm(Kf++,t,e),em[t.id]=t}function Mn(t,e){tm[t]=e}function In(t){if("function"==typeof nm)return nm(t)}function kn(t){nm=t}function Dn(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}function An(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return b(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Pn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),am),t=(+t).toFixed(e),n?t:+t}function On(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ln(t)}function Ln(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Rn(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function En(t){var e=2*Math.PI;return(t%e+e)%e}function Nn(t){return-1e-4<t&&t<1e-4}function Bn(t){var e,n;return t instanceof Date?t:b(t)?(e=sm.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function zn(t){return Math.pow(10,Fn(t))}function Fn(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Vn(t,e){var n=Fn(t),i=Math.pow(10,n),r=t/i,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Hn(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Gn(t){return!isNaN(Hn(t))}function Wn(){return Math.round(9*Math.random())}function Un(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function jn(t){throw new Error(t)}function Yn(t,e,n){return(e-t)*n+t}function Xn(t){return t instanceof Array?t:null==t?[]:[t]}function qn(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Zn(t){return!T(t)||x(t)||t instanceof Date?t:t.value}function Kn(t,e,n){var i,r,o,a,s,l,u,h,c,p,d="normalMerge"===n,g="replaceMerge"===n,y="replaceAll"===n,m=(t=t||[],e=(e||[]).slice(),U()),n=(f(e,function(t,n){T(t)||(e[n]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||ei(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n));return(d||g)&&(i=n,r=t,o=m,f(a=e,function(t,e){var n,s,l;t&&null!=t.id&&(n=Qn(t.id),null!=(s=o.get(n)))&&(z(!(l=i[s]).newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=r[s],a[e]=null)})),d&&(s=n,f(l=e,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!ei(t)&&!ei(i)&&$n("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||g?(h=n,c=g,f(e,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||ei(e.existing)||e.existing&&null!=t.id&&!$n("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):y&&(u=n,f(e,function(t){u.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=n,p=U(),f(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),f(t,function(t){var e=t.newOption;z(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),f(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(T(i)){if(r.name=null!=i.name?Qn(i.name):n?n.name:lm+e,n)r.id=Qn(n.id);else if(null!=i.id)r.id=Qn(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.id,t)}}),n}function $n(t,e,n){return e=Jn(e[t],null),n=Jn(n[t],null),null!=e&&null!=n&&e===n}function Qn(t){return Jn(t,"")}function Jn(t,e){return null==t?e:b(t)?t:C(t)||S(t)?t+"":e}function ti(t){return!(!(t=t.name)||!t.indexOf(lm))}function ei(t){return t&&null!=t.id&&0===Qn(t.id).indexOf("\0_ec_\0")}function ni(t,e,n){f(t,function(t){var i,r,o=t.newOption;T(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,o=o,t=t.existing,r=n,o.type||(t?t.subType:r.determineSubType(i,o))))})}function ii(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function ri(){var t="__ec_inner_"+hm++;return function(e){return e[t]||(e[t]={})}}function oi(t,e,n){var e=ai(e,n),i=e.mainTypeSpecified,r=e.queryOptionMap,o=e.others,a=n?n.defaultMainType:null;return!i&&a&&r.set(a,{}),r.each(function(e,i){e=si(t,i,e,{useDefault:a===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),o[i+"Models"]=e.models,o[i+"Model"]=e.models[0]}),o}function ai(t,e){var n=b(t)?((n={})[t+"Index"]=0,n):t,i=U(),r={},o=!1;return f(n,function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?r[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&h(e.includeMainTypes,a)<0||(o=o||!!a,(i.get(a)||i.set(a,{}))[n]=t))}),{mainTypeSpecified:o,queryOptionMap:i,others:r}}function si(t,e,n,i){i=i||cm;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};return a.specified?"none"===r||!1===r?(z(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(z(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=n=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})):(r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function li(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ui(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(C(i))return Pn(p=Yn(n||0,i,r),o?Math.max(On(n||0),On(i)):e);if(b(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(r<1&&s?s:l)[h]:(p=Yn(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=Pn(p,o?Math.max(On(d),On(c)):e))}return a}function hi(t){var e={main:"",sub:""};return t&&(t=t.split(pm),e.main=t[0]||"",e.sub=t[1]||""),e}function ci(t){(t.$constructor=t).extend=function(t){function e(){return r.apply(this,arguments)||this}var i,r,o,a=this;return w(o=a)&&/^class\s/.test(Function.prototype.toString.call(o))?(n(e,r=a),i=e):c(i=function(){(t.$constructor||a).apply(this,arguments)},this),l(i.prototype,t),i[fm]=!0,i.extend=this.extend,i.superCall=di,i.superApply=fi,i.superClass=a,i}}function pi(t,e){t.extend=e.extend}function di(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function fi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function gi(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;return i&&(z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),(n=hi(t.prototype.type=i)).sub?n.sub!==dm&&((function(t){var n=e[t.main];return n&&n[dm]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[dm]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var t=hi(t),n=[],t=e[t.main];return t&&t[dm]?f(t,function(t,e){e!==dm&&n.push(t)}):n.push(t),n},t.hasClass=function(t){return t=hi(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){return t=hi(t),(t=e[t.main])&&t[dm]}}function yi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];i&&0<=h(i,s)||r&&h(r,s)<0||null!=(s=n.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}function mi(){}function vi(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=vm.get(t))?xi(e=i.image)||i.pending.push(n):((e=zf.loadImage(t,_i,_i)).__zrImageSrc=t,vm.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function _i(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function xi(t){return t&&t.width&&t.height}function wi(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=bi(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Si(o[a],r);return o.join("\n")}function bi(t,e,n,i){for(var r=l({},i=i||{}),o=(r.font=e,n=R(n,"..."),r.maxIterations=R(i.maxIterations,2),r.minChar=R(i.minChar,0)),a=(r.cnCharWidth=un("国",e),r.ascCharWidth=un("a",e)),s=(r.placeholder=R(i.placeholder,""),t=Math.max(0,t-1)),u=0;u<o&&a<=s;u++)s-=a;return i=un(n,e),s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function Si(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=un(t,i);if(!(o<=n)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=un(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function Ci(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,d+=n,f=Math.max(f,e)}var i=new bm;if(null!=t&&(t+=""),t){for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=_m.lastIndex=0;null!=(r=_m.exec(t));){var h=r.index;u<h&&Ti(i,t.substring(u,h),e,l),Ti(i,r[2],e,l,r[1]),u=_m.lastIndex}u<t.length&&Ti(i,t.substring(u,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var _=i.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(A=_.tokens[b]).styleName&&e.rich[A.styleName]||{},C=A.textPadding=S.padding,T=C?C[1]+C[3]:0,M=A.font=S.font||e.font,I=(A.contentHeight=fn(M),R(S.height,A.contentHeight));if(A.innerHeight=I,C&&(I+=C[0]+C[2]),A.height=I,A.lineHeight=E(S.lineHeight,e.lineHeight,I),A.align=S&&S.align||e.align,A.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+A.lineHeight>a){0<b?(_.tokens=_.tokens.slice(0,b),n(_,w,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var k,C=S.width,D=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(A.percentWidth=C,p.push(A),A.contentWidth=un(A.text,M)):(D&&(C=(C=S.backgroundColor)&&C.image)&&(k=void 0,xi(C="string"==typeof(c=C)?(k=vm.get(c))&&k.image:c))&&(A.width=Math.max(A.width,C.width*I/C.height)),null!=(k=y&&null!=o?o-w:null)&&k<A.width?!D||k<T?(A.text="",A.width=A.contentWidth=0):(A.text=wi(A.text,k-T,M,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=un(A.text,M)):A.contentWidth=un(A.text,M)),A.width+=T,w+=A.width,S&&(x=Math.max(x,A.lineHeight))}n(_,w,x)}for(i.outerWidth=i.width=R(o,f),i.outerHeight=i.height=R(a,d),i.contentHeight=d,i.contentWidth=f,g&&(i.outerWidth+=g[1]+g[3],i.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var A,P=(A=p[v]).percentWidth;A.width=parseInt(P,10)/100*i.width}}return i}function Ti(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=gn(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=Mi(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new xm;y.styleName=r,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:un(g,h),p||c?u.push(new wm([y])):1===(f=(d=(u[u.length-1]||(u[0]=new wm)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function Mi(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=un(g,e),f=!(i||(f=void 0,!(32<=(f=(f=o=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Sm[o]),(a.length?n<c+d:n<r+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}function Ii(t){return im.call(this,t)||this}function ki(t,e,n,i,r,o){r[0]=Pm(t,n),r[1]=Pm(e,i),o[0]=Om(t,n),o[1]=Om(e,i)}function Di(t){return Math.round(t/Jm*1e8)/1e8%2*Jm}function Ai(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Pi(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}function Oi(t){return(t%=av)<0&&(t+=av),t}function Li(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}function Ri(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=$t(e,i,o,s,u,cv);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=cv[y],v=0===m||1===m?.5:1;Zt(t,n,r,a,m)<l||(d<0&&(d=Qt(e,i,o,s,pv),pv[1]<pv[0]&&1<d&&(c=void 0,c=pv[0],pv[0]=pv[1],pv[1]=c),f=Zt(e,i,o,s,pv[0]),1<d)&&(g=Zt(e,i,o,s,pv[1])),2===d?m<pv[0]?p+=f<e?v:-v:m<pv[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<pv[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ei(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=cv,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,Xt(h)?qt(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Xt(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Kg(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=ie(e,i,o);if(0<=g&&g<=1){for(var y=0,m=ee(e,i,o,g),v=0;v<f;v++){var _=0===cv[v]||1===cv[v]?.5:1;ee(t,n,r,cv[v])<a||(cv[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===cv[0]||1===cv[0]?.5:1,ee(t,n,r,cv[0])<a?0:o<e?_:-_}function Ni(t,e,n,i,r){for(var o,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===lv.M&&1<d&&(n||(l+=Li(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case lv.M:u=c=a[d++],h=p=a[d++];break;case lv.L:if(n){if(Pi(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Li(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case lv.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&te(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ri(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case lv.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&oe(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ei(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case lv.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,C=Math.sin(x)*_+m,T=(g?(c=S,p=C):l+=Li(u,h,S,C,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-r)%sv<1e-4||((r=o?(e=i,i=Oi(r),Oi(e)):(i=Oi(i),Oi(r)))<i&&(r+=sv),(t=Math.atan2(l,s))<0&&(t+=sv),i<=t&&t<=r)||i<=t+sv&&t+sv<=r)}(y,m,_,x,x+w,b,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(cv[0]=-e,cv[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(uv-1e-4<=n)return r=uv,h=o?1:-1,a>=cv[i=0]+t&&a<=cv[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=uv,r+=uv);for(var l=0,u=0;u<2;u++){var h,c=cv[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?uv+c:c)&&c<=r||i<=c+uv&&c+uv<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case lv.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],C=p+a[d++],n){if(Pi(c,p,S,p,e,i,r)||Pi(S,p,S,C,e,i,r)||Pi(S,C,c,C,e,i,r)||Pi(c,C,c,p,e,i,r))return!0}else l=(l+=Li(S,p,S,C,i,r))+Li(c,C,c,p,i,r);break;case lv.Z:if(n){if(Pi(u,h,c,p,e,i,r))return!0}else l+=Li(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<hv)||(l+=Li(u,h,c,p,i,r)||0),0!==l}function Bi(t){return iv.call(this,t)||this}function zi(){return null!==rv&&rv.apply(this,arguments)||this}function Fi(){return null!==wv&&wv.apply(this,arguments)||this}function Vi(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(Cv(2*i)===Cv(2*r)&&(t.x1=t.x2=Gi(i,n,!0)),Cv(2*o)===Cv(2*e))&&(t.y1=t.y2=Gi(o,n,!0)),t}function Hi(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=Gi(i,n,!0),t.y=Gi(r,n,!0),t.width=Math.max(Gi(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(Gi(r+e,n,!1)-t.y,0===e?0:1)),t}function Gi(t,e,n){var i;return e?((i=Cv(2*t))+Cv(e))%2==0?i/2:(i+(n?1:-1))/2:t}function Wi(t){return Sv.call(this,t)||this}function Ui(t){var e=kv.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Dv,e.attr(t),e}function ji(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Rf+"px":t+"px":t}function Yi(t,e){for(var n=0;n<Rv.length;n++){var i=Rv[n],r=e[i];null!=r&&(t[i]=r)}}function Xi(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function qi(t){var e;t&&(t.font=Pv.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Ov[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Lv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Zi(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ki(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function $i(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Qi(t){return t=t.text,null!=t&&(t+=""),t}function Ji(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function tr(t){return null!=t&&"none"!==t}function er(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function nr(t){er(t,"emphasis",Gv)}function ir(t){t.hoverState===Gv&&er(t,"normal",Vv)}function rr(t){er(t,"blur",Hv)}function or(t){t.hoverState===Hv&&er(t,"normal",Vv)}function ar(t){t.selected=!0}function sr(t){t.selected=!1}function lr(t,e,n){e(t,n)}function ur(t,e,n){lr(t,e,n),t.isGroup&&t.traverse(function(t){lr(t,e,n)})}function hr(t,e){switch(e){case"emphasis":t.hoverState=Gv;break;case"normal":t.hoverState=Vv;break;case"blur":t.hoverState=Hv;break;case"select":t.selected=!0}}function cr(t,e,n){var i=0<=h(t.currentStates,e),r=t.style.opacity,t=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=l({},n),e=l({opacity:i?r:.1*t.opacity},e),n.style=e),n}function pr(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=h(e,"select"),a=!1,n instanceof yv&&(r=zv(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,tr(o)||tr(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=l({},i),(r=l({},r)).fill=o):!tr(r.fill)&&tr(o)?(a=!0,i=l({},i),(r=l({},r)).fill=Me(o)):!tr(r.stroke)&&tr(e)&&(a||(i=l({},i),r=l({},r)),r.stroke=Me(e)),i.style=r),i&&null==i.z2&&(a||(i=l({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return cr(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=l({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function dr(t){t.stateProxy=pr;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=pr),t&&(t.stateProxy=pr)}function fr(t,e){br(t,e)||t.__highByOuter||ur(t,nr)}function gr(t,e){br(t,e)||t.__highByOuter||ur(t,ir)}function yr(t,e){t.__highByOuter|=1<<(e||0),ur(t,nr)}function mr(t,e){(t.__highByOuter&=~(1<<(e||0)))||ur(t,ir)}function vr(t){ur(t,rr)}function _r(t){ur(t,or)}function xr(t){ur(t,ar)}function wr(t){ur(t,sr)}function br(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Sr(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Fv(r),e="series"===e,a=e?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);e||i.push(a),o.isBlured&&(a.group.traverse(function(t){or(t)}),e)&&n.push(r),o.isBlured=!1}),f(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Cr(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&_r(i)}}var o,a,s,l=i.getModel();n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=l.getSeriesByIndex(t),(a=o.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=o===t,u=t.coordinateSystem,u=(u=u&&u.master?u.master:u)&&a?u===a:l;if(!("series"===n&&!l||"coordinateSystem"===n&&!u||"series"===e&&l)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&l&&"self"===e||rr(t)}),d(e))r(t.getData(),e);else if(T(e))for(var h=v(e),c=0;c<h.length;c++)r(t.getData(h[c]),e[h[c]]);s.push(t),Fv(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(s,!0,l)}))}function Tr(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Fv(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){rr(t)})}function Mr(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;if(!(t=i.getModel().getComponent(t,e)))return r;if(!(e=i.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===Ev(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function Ir(t){f(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){(t.isSelected(n,i)?xr:wr)(e)})})}function kr(t,e,n){Pr(t,!0),ur(t,dr),t=Ev(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function Dr(t,e,n,i){i?Pr(t,!1):kr(t,e,n)}function Ar(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Kv.length;r++){var o=Kv[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[$v[n]]()}}function Pr(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Or(t){return!(!t||!t.__highDownDispatcher)}function Lr(t){return(t=t.type)===Xv||t===qv||t===Zv}function Rr(t){return(t=t.type)===jv||t===Yv}function Er(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Nr(t,e){return(t[0]*e[0]+t[1]*e[1])/(Er(t)*Er(e))}function Br(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Nr(t,e))}function zr(t,e,n,i,r,o,a,s,l,u,h){var l=l*(o_/180),c=r_(l)*(t-n)/2+i_(l)*(e-i)/2,p=-1*i_(l)*(t-n)/2+r_(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=n_(d),s*=n_(d)),(r===o?-1:1)*n_((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+r_(l)*r-i_(l)*d,n=(e+i)/2+i_(l)*r+r_(l)*d,e=Br([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Br(i,c);Nr(i,c)<=-1&&(r=o_),(r=1<=Nr(i,c)?0:r)<0&&(p=Math.round(r/o_*1e6)/1e6,r=2*o_+p%2*o_),h.addData(u,t,n,a,s,e,r,l,o)}function Fr(){return null!==l_&&l_.apply(this,arguments)||this}function Vr(t){return null!=t.setData}function Hr(t,e){var n=function(t){var e=new ov;if(t){var n,i=0,r=0,o=i,a=r,s=ov.CMD,l=t.match(a_);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(s_)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,C=i,T=r,M=void 0,I=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,C,T,i,r);break;case"s":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,C,T,i,r);break;case"Q":C=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"q":C=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"T":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(C=i,T=r,i=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(C=i,T=r,i+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Vr(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=n,i=t;if(i){for(var r,o,a,s,l=e.data,u=e.len(),h=Qv.M,c=Qv.C,p=Qv.L,d=Qv.R,f=Qv.A,g=Qv.Q,y=0,m=0;y<u;){switch(r=l[y++],m=y,o=0,r){case h:case p:o=1;break;case c:o=3;break;case g:o=2;break;case f:var v=i[4],_=i[5],x=t_(i[0]*i[0]+i[1]*i[1]),w=t_(i[2]*i[2]+i[3]*i[3]),b=e_(-i[1]/w,i[0]/x);l[y]*=x,l[y++]+=v,l[y]*=w,l[y++]+=_,l[y++]*=x,l[y++]*=w,l[y++]+=b,l[y++]+=b,m=y+=2;break;case d:s[0]=l[y++],s[1]=l[y++],st(s,s,i),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],st(s,s,i),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<o;a++){var S=Jv[a];S[0]=l[y++],S[1]=l[y++],st(S,S,i),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Gr(t){return u_.call(this,t)||this}function Wr(t){return d_.call(this,t)||this}function Ur(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/C_(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*C_(T_(0,o*o*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(r/o-1),y1:t*(r/o-1)}}function jr(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,w,b,S,C,T,M,I,k,D,A,P,O,L=T_(e.r,0),R=T_(e.r0||0,0),E=0<L;(E||0<R)&&(E||(L=R,R=0),L<R&&(E=L,L=R,R=E),E=e.startAngle,n=e.endAngle,isNaN(E)||isNaN(n)||(i=e.cx,r=e.cy,o=!!e.clockwise,m=S_(n-E),I_<(a=v_<m&&m%v_)&&(m=a),I_<L?v_-I_<m?(t.moveTo(i+L*x_(E),r+L*__(E)),t.arc(i,r,L,E,n,!o),I_<R&&(t.moveTo(i+R*x_(n),r+R*__(n)),t.arc(i,r,R,n,E,o))):(C=S=b=w=_=v=c=h=k=I=M=T=u=l=s=a=void 0,p=L*x_(E),d=L*__(E),f=R*x_(n),g=R*__(n),(y=I_<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(x(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=S_(L-R)/2,T=M_(e,l),M=M_(e,u),I=M_(e,a),k=M_(e,s),v=h=T_(T,M),_=c=T_(I,k),I_<h||I_<c)&&(w=L*x_(n),b=L*__(n),S=R*x_(E),C=R*__(E),m<m_)&&(e=function(t,e,n,i,r,o,a,s){var l=(s-=o)*(n-=t)-(a-=r)*(i-=e);if(!(l*l<I_))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(p,d,S,C,w,b,f,g))&&(T=p-e[0],M=d-e[1],I=w-e[0],k=b-e[1],m=1/__(w_((T*I+M*k)/(C_(T*T+M*M)*C_(I*I+k*k)))/2),T=C_(e[0]*e[0]+e[1]*e[1]),v=M_(h,(L-T)/(1+m)),_=M_(c,(R-T)/(m-1))),y?I_<v?(D=M_(l,v),A=M_(u,v),P=Ur(S,C,p,d,L,D,o),O=Ur(w,b,f,g,L,A,o),t.moveTo(i+P.cx+P.x0,r+P.cy+P.y0),v<h&&D===A?t.arc(i+P.cx,r+P.cy,v,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<D&&t.arc(i+P.cx,r+P.cy,D,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(i,r,L,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),!o),0<A&&t.arc(i+O.cx,r+O.cy,A,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.moveTo(i+p,r+d),t.arc(i,r,L,E,n,!o)):t.moveTo(i+p,r+d),I_<R&&y?I_<_?(D=M_(a,_),P=Ur(f,g,w,b,R,-(A=M_(s,_)),o),O=Ur(p,d,S,C,R,-D,o),t.lineTo(i+P.cx+P.x0,r+P.cy+P.y0),_<c&&D===A?t.arc(i+P.cx,r+P.cy,_,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<A&&t.arc(i+P.cx,r+P.cy,A,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(i,r,R,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),o),0<D&&t.arc(i+O.cx,r+O.cy,D,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.lineTo(i+f,r+g),t.arc(i,r,R,n,E,o)):t.lineTo(i+f,r+g)):t.moveTo(i,r),t.closePath()))}function Yr(t){return y_.call(this,t)||this}function Xr(t){return A_.call(this,t)||this}function qr(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i)for(var o=function(t,e,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)lt(h,h,t[p]),ut(c,c,t[p]);lt(h,h,i[0]),ut(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push($(t[p]));continue}r=t[p-1],o=t[p+1]}J(s,o,r),nt(s,s,e);var g=rt(f,r),y=rt(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),nt(l,s,-g),nt(u,s,y),Q([],f,l)),g=Q([],f,u);i&&(ut(m,m,h),lt(m,m,c),ut(g,g,h),lt(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Zr(t){return L_.call(this,t)||this}function Kr(t){return N_.call(this,t)||this}function $r(t){return F_.call(this,t)||this}function Qr(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Kt:Zt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Kt:Zt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ne:ee)(t.x1,t.cpx1,t.x2,e),(n?ne:ee)(t.y1,t.cpy1,t.y2,e)]}function Jr(t){return j_.call(this,t)||this}function to(t){return X_.call(this,t)||this}function eo(){var t=null!==K_&&K_.apply(this,arguments)||this;return t.type="compound",t}function no(t){this.colorStops=t||[]}function io(t,e,n,i,r,o){return r=J_.call(this,r)||this,r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}function ro(t,e,n,i,r){return i=ex.call(this,i)||this,i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=r||!1,i}function oo(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Sg;for(n=0;n<2;n++)this._axes[n]=new Sg;t&&this.fromBoundingRect(t,e)}function ao(){var t=null!==nx&&nx.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function so(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(w(r)?(a=o,o=r,r=null):T(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=R(l.duration,200),h=R(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=w(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function lo(t,e,n,i,r,o){so("update",t,e,n,i,r,o)}function uo(t,e,n,i,r,o){so("enter",t,e,n,i,r,o)}function ho(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function co(t,e,n,i,r,o){ho(t)||so("leave",t,e,n,i,r,o)}function po(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),co(t,{style:{opacity:0}},e,n,i)}function fo(t){return yv.extend(t)}function go(t,e){return dx(t,e)}function yo(t,e){px[t]=e}function mo(t){if(px.hasOwnProperty(t))return px[t]}function vo(t,e,n,i){return t=new h_(Hr(t,e)),n&&("center"===i&&(n=xo(n,t.getBoundingRect())),bo(t,n)),t}function _o(t,e,n){var i=new bv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(xo(e,t)))}});return i}function xo(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function wo(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new yv(e)).createPathProxy(),e.buildPath=function(t){var e;Vr(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function bo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function So(t,e){return Vi(t,t,{lineWidth:e}),t}function Co(t,e){for(var n=Ct([]);t&&t!==e;)Mt(n,t.getLocalTransform(),n),t=t.parent;return n}function To(t,e,n){return e&&!d(e)&&(e=Uy.getLocalTransform(e)),st([],t,e=n?At([],e):e)}function Mo(t){return!t.isGroup}function Io(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var r,o;t&&e&&(o={},t.traverse(function(t){Mo(t)&&t.anid&&(o[t.anid]=t)}),r=o,e.traverse(function(t){var e,o;Mo(t)&&t.anid&&(e=r[t.anid])&&(o=i(t),t.attr(i(e)),lo(t,o,n,Ev(t).dataIndex))}))}function ko(t,e){return g(t,function(t){var n=t[0],n=hx(n,e.x),t=(n=cx(n,e.x+e.width),t[1]),t=hx(t,e.y);return[n,cx(t,e.y+e.height)]})}function Do(t,e){var n=hx(t.x,e.x),i=cx(t.x+t.width,e.x+e.width),r=hx(t.y,e.y),t=cx(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function Ao(t,e,n){var e=l({rectHover:!0},e),i=e.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),u(i,n),new bv(e)):vo(t.replace("path://",""),e,n,"center")}function Po(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function Oo(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=b(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&f(v(a),function(t){q(o,t)||(o[t]=a[t],o.$vars.push(t))}),Ev(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:u({content:i,encodeHTMLContent:!0,formatterParams:o},e)}}function Lo(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Ro(t,e){if(t)if(x(t))for(var n=0;n<t.length;n++)Lo(t[n],e);else Lo(t,e)}function Eo(t,e){for(var n=0;n<Wv.length;n++){var i=Wv[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function No(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?w(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<Wv.length;u++){var h=Wv[u],c=e[h];l[h]=R(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function Bo(t,e,n,i){n=n||yx;for(var r=t instanceof Pv,o=!1,a=0;a<Uv.length;a++)if((p=e[Uv[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Pv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=No(n,e),u=e.normal,h=!!u.getShallow("show"),c=Fo(u,i&&i.normal,n,!1,!r);for(c.text=l.normal,r||t.setTextConfig(Vo(u,n,!1)),a=0;a<Wv.length;a++){var p,d,f,g=Wv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!R(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Fo(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Vo(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(xx(s).setLabelText=function(t){t=No(n,e,t),Eo(s,t)})}else s&&(s.ignore=!0);t.dirty()}function zo(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Wv.length;i++){var r=Wv[i];n[r]=t.getModel([r,e])}return n}function Fo(t,e,n,i,r){var o,a={},s=a,u=t,h=n,c=i,p=r;h=h||yx;var d,t=u.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||yx).rich;if(n){e=e||{};for(var i=v(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}(u);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(o=u.getModel(["rich",y]),Ho(d[y]={},o,f,h,c,p,!1,!0));return d&&(s.rich=d),(t=u.get("overflow"))&&(s.overflow=t),null!=(t=u.get("minMargin"))&&(s.margin=t),Ho(s,u,f,h,c,p,!0,!1),e&&l(a,e),a}function Vo(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=R(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Ho(t,e,n,i,r,o,a,s){n=!r&&n||yx;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=R(e.getShallow("opacity"),n.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),R(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),R(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),R(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=r||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<mx.length;p++){var d=mx[p];null!=(f=R(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<vx.length;p++)d=vx[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<_x.length;p++){var f,d=_x[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType"),null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Go(t,e,n,i,r){var o,a,s,l=xx(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=R(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?uo:lo)(t,{percent:1},i,e,null,function(i){var u=ui(n,l.precision,a,s,i),i=(l.interpolatedValue=1===i?null:u,No({labelDataIndex:e,labelFetcher:r,defaultText:o?o(u):u+""},l.statesModels,u));Eo(t,i)}))}function Wo(){}function Uo(){}function jo(){}function Yo(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function Xo(t){return[t||"",Lx++].join("_")}function qo(t,e){t=t.toUpperCase(),zx[t]=new Ox(e),Bx[t]=e}function Zo(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ko(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 $o(t,e,n,i){var t=Bn(t),r=t[ta(n)](),o=t[ea(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[na(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[ia(n)](),h=(u-1)%12+1,c=t[ra(n)](),p=t[oa(n)](),t=t[aa(n)](),n=12<=u?"pm":"am",d=n.toUpperCase(),i=(i instanceof Ox?i:zx[i||Fx]||zx[Nx]).getModel("time"),f=i.get("month"),g=i.get("monthAbbr"),y=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,n+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,Zo(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,Zo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Zo(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Zo(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Zo(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Zo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zo(t,3)).replace(/{S}/g,t+"")}function Qo(t,e){var t=Bn(t),n=t[ea(e)]()+1,i=t[na(e)](),r=t[ia(e)](),o=t[ra(e)](),a=t[oa(e)](),t=0===t[aa(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Jo(t,e,n){var i=C(t)?Bn(t):t;switch(e=e||Qo(t,n)){case"year":return i[ta(n)]();case"half-year":return 6<=i[ea(n)]()?1:0;case"quarter":return Math.floor((i[ea(n)]()+1)/4);case"month":return i[ea(n)]();case"day":return i[na(n)]();case"half-day":return i[ia(n)]()/24;case"hour":return i[ia(n)]();case"minute":return i[ra(n)]();case"second":return i[oa(n)]();case"millisecond":return i[aa(n)]()}}function ta(t){return t?"getUTCFullYear":"getFullYear"}function ea(t){return t?"getUTCMonth":"getMonth"}function na(t){return t?"getUTCDate":"getDate"}function ia(t){return t?"getUTCHours":"getHours"}function ra(t){return t?"getUTCMinutes":"getMinutes"}function oa(t){return t?"getUTCSeconds":"getSeconds"}function aa(t){return t?"getUTCMilliseconds":"getMilliseconds"}function sa(t){return t?"setUTCMonth":"setMonth"}function la(t){return t?"setUTCDate":"setDate"}function ua(t){return t?"setUTCHours":"setHours"}function ha(t){return t?"setUTCMinutes":"setMinutes"}function ca(t){return t?"setUTCSeconds":"setSeconds"}function pa(t){return t?"setUTCMilliseconds":"setMilliseconds"}function da(t){var e;return Gn(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function fa(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function ga(t,e,n){function i(t){return t&&F(t)?t:"-"}function r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Bn(t):t;if(!isNaN(+o))return $o(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?S(t)?i(t):C(t)&&r(t)?t+"":"-":r(o=Hn(t))?da(o):S(t)?i(t):"boolean"==typeof t?t+"":"-"}function ya(t,e){return"{"+t+(null==e?"":e)+"}"}function ma(t,e,n){var i=(e=x(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Kx[o];t=t.replace(ya(a),ya(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(ya(Kx[l],s),n?yt(u):u)}return t}function va(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yt(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function _a(t,e){return e=e||"transparent",b(t)?t:T(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function xa(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}function wa(t,e,n,i,r){var o=0,a=0,s=(null==i&&(i=1/0),null==r&&(r=1/0),0);e.eachChild(function(l,u){var h,c,p,d=l.getBoundingRect(),u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(c=d.width+(u?-u.x+d.x:0),i<(h=o+c)||l.newline?(o=0,h=c,a+=s+n,d.height):Math.max(s,d.height)):(c=d.height+(u?-u.y+d.y:0),r<(p=a+c)||l.newline?(o+=s+n,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=p+n)})}function ba(t,e,n){n=Zx(n||0);var i=e.width,r=e.height,o=An(t.left,i),a=An(t.top,r),e=An(t.right,i),s=An(t.bottom,r),l=An(t.width,i),u=An(t.height,r),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-o),isNaN(u)&&(u=r-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/r<p?l=.8*i:u=.8*r),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(o)&&(o=i-e-l-c),isNaN(a)&&(a=r-s-u-h),t.left||t.right){case"center":o=i/2-l/2-n[3];break;case"right":o=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h}return o=o||0,a=a||0,isNaN(l)&&(l=i-c-o-(e||0)),isNaN(u)&&(u=r-h-a-(s||0)),p=new Og(o+n[3],a+n[0],l,u),p.margin=n,p}function Sa(t){return t=t.layoutMode||t.constructor.layoutMode,T(t)?t:t?{type:t}:null}function Ca(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if($x(n,function(e){u[e]=t[e]}),$x(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null);else if(2!==h&&l){if(!(2<=l))for(var c=0;c<n.length;c++){var p=n[c];if(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){$x(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize,n=(x(s)||(s=[s,s]),i(Jx[0],0)),l=i(Jx[1],1);a(Jx[0],t,n),a(Jx[1],t,l)}function Ta(t){return e={},(n=t)&&e&&$x(Qx,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}function Ma(t,e,n){return t=ew.call(this,t,e,n)||this,t.uid=Xo("ec_cpt_model"),t}function Ia(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function ka(t,e,n){function i(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function r(t){return t=t.dimsDef,t?t.length:1}var o,a,s,l,u,h={},c=Da(e);return c&&t&&(o=[],a=[],e=e.ecModel,e=bw(e).datasetMap,c=c.uid+"_"+n.seriesLayoutBy,f(t=t.slice(),function(e,n){e=T(e)?e:t[n]={name:e},"ordinal"===e.type&&null==s&&(s=n,l=r(e)),h[e.name]=[]}),u=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var n,l=t.name,t=r(t);null==s?(n=u.valueWayDim,i(h[l],n,t),i(a,n,t),u.valueWayDim+=t):s===e?(i(h[l],0,t),i(o,0,t)):(n=u.categoryWayDim,i(h[l],n,t),i(a,n,t),u.categoryWayDim+=t)}),o.length&&(h.itemName=o),a.length)&&(h.seriesName=a),h}function Da(t){if(!t.get("data",!0))return si(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},cm).models[0]}function Aa(t,e){function n(t){var e=b(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?ww.Might:ww.Not:e&&"-"!==t?ww.Must:void 0}var i,r,o,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,u=t.dimensionsDefine,h=t.startIndex,c=e;if(!I(a)){if(u&&(T(u=u[c])?(r=u.name,o=u.type):b(u)&&(r=u)),null!=o)return"ordinal"===o?ww.Must:ww.Not;if(s===fw){var p=a;if(l===xw){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(i=n(d[h+f])))return i}else for(f=0;f<p.length&&f<5;f++){var g=p[h+f];if(g&&null!=(i=n(g[c])))return i}}else if(s===gw){var y=a;if(!r)return ww.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(i=n(v[r])))return i}else if(s===yw){if(u=a,!r)return ww.Not;if(!(d=u[r])||I(d))return ww.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(i=n(d[f])))return i}else if(s===dw)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=Zn(v=m[f]);if(!x(_))return ww.Not;if(null!=(i=n(_[c])))return i}}return ww.Not}function Pa(){}function Oa(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function La(){return null!==hw&&hw.apply(this,arguments)||this}function Ra(t,e,n){var i,r;return x(e)?(i=U(),f(e,function(t){null!=t&&null!=Jn(t,null)&&i.set(t,!0)}),m(n,function(e){return e&&i.get(e[t])})):(r=Jn(e,null),m(n,function(e){return e&&null!=r&&e[t]===r}))}function Ea(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function Na(t){var e=U();return t&&f(Xn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Ba(t){f(Aw,function(e){this[e]=Qf(t[e],t)},this)}function za(){this._coordinateSystems=[]}function Fa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Va(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Bw.length;n<i;n++){var r=Bw[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ha(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,r=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,u(t[e],i)):t[e]=i),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function Ga(t){Ha(t,"itemStyle"),Ha(t,"lineStyle"),Ha(t,"areaStyle"),Ha(t,"label"),Ha(t,"labelLine"),Ha(t,"upperLabel"),Ha(t,"edgeLabel")}function Wa(t,e){var n=Nw(t)&&t[e],i=Nw(n)&&n.textStyle;if(i)for(var r=0,o=um.length;r<o;r++){var a=um[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Ua(t){t&&(Ga(t),Wa(t,"label"),t.emphasis)&&Wa(t.emphasis,"label")}function ja(t){return x(t)?t:t?[t]:[]}function Ya(t){return(x(t)?t[0]:t)||{}}function Xa(t,e){Ew(ja(t.series),function(t){if(Nw(t)&&Nw(t)){Va(t),Ga(t),Wa(t,"label"),Wa(t,"upperLabel"),Wa(t,"edgeLabel"),t.emphasis&&(Wa(t.emphasis,"label"),Wa(t.emphasis,"upperLabel"),Wa(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Va(e),Ua(e)),t.markLine),i=(n&&(Va(n),Ua(n)),t.markArea),r=(i&&Ua(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!I(o))for(var a=0;a<o.length;a++)Ua(o[a]);f(t.categories,function(t){Ga(t)})}if(r&&!I(r))for(a=0;a<r.length;a++)Ua(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Ua(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)x(l[a])?(Ua(l[a][0]),Ua(l[a][1])):Ua(l[a]);"gauge"===t.type?(Wa(t,"axisLabel"),Wa(t,"title"),Wa(t,"detail")):"treemap"===t.type?(Ha(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ga(t)})):"tree"===t.type&&Ga(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ew(n,function(e){Ew(ja(t[e]),function(t){t&&(Wa(t,"axisLabel"),Wa(t.axisPointer,"label"))})}),Ew(ja(t.parallel),function(t){t=t&&t.parallelAxisDefault,Wa(t,"axisLabel"),Wa(t&&t.axisPointer,"label")}),Ew(ja(t.calendar),function(t){Ha(t,"itemStyle"),Wa(t,"dayLabel"),Wa(t,"monthLabel"),Wa(t,"yearLabel")}),Ew(ja(t.radar),function(t){Wa(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Ew(ja(t.geo),function(t){Nw(t)&&(Ua(t),Ew(ja(t.regions),function(t){Ua(t)}))}),Ew(ja(t.timeline),function(t){Ua(t),Ha(t,"label"),Ha(t,"itemStyle"),Ha(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){T(t)&&(Ha(t,"label"),Ha(t,"itemStyle"))})}),Ew(ja(t.toolbox),function(t){Ha(t,"iconStyle"),Ew(t.feature,function(t){Ha(t,"iconStyle")})}),Wa(Ya(t.axisPointer),"label"),Wa(Ya(t.tooltip).axisPointer,"label")}function qa(t){t&&f(zw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Za(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Vw.length;n++){var i=Vw[n][1],r=Vw[n][0];null!=e[i]&&(e[r]=e[i])}}function Ka(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function $a(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Qa(t,e){Xa(t,e),t.series=Xn(t.series),f(t.series,function(t){if(T(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ka(t.label),(e=t.data)&&!I(e))for(var i=0;i<e.length;i++)Ka(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){for(var o,a=t,s="itemStyle.color",l=s.split(","),h=a,c=0;c<l.length-1;c++)null==h[o=l[c]]&&(h[o]={}),h=h[o];null!=h[l[c]]||(h[l[c]]=r)}}else if("bar"===n){if(Za(t),Za(t.backgroundStyle),Za(t.emphasis),(e=t.data)&&!I(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Za(e[i]),Za(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),$a(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,$a)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&u(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),qa(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Fw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){qa(t)})})}function Ja(t){f(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,p,d=a.get(e.stackedDimension,h);if(isNaN(d))return r;s?p=a.getRawIndex(h):c=a.get(e.stackedByDimension,h);for(var f,g,y,m=NaN,v=n-1;0<=v;v--){var _=t[v];if(0<=(p=s?p:_.data.rawIndexOf(_.stackedByDimension,c))&&(_=_.data.getByRawIndex(_.stackResultDimension,p),"all"===l||"positive"===l&&0<_||"negative"===l&&_<0||"samesign"===l&&0<=d&&0<_||"samesign"===l&&d<=0&&_<0)){f=d,g=_,y=void 0,y=Math.max(On(f),On(g)),f+=g,d=am<y?f:Pn(f,y),m=_;break}}return i[0]=d,i[1]=m,i})})}function ts(t){return t instanceof Hw}function es(t,e,n){n=n||is(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:rs(r),startIndex:a,dimensionsDetectedCount:o};var s;return e===fw?(s=t,"auto"===i||null==i?os(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],os(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===xw?s.length:s[0]?s[0].length:null):e===gw?r=r||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return v(e)}(t):e===yw?r||(r=[],f(t,function(t,e){r.push(e)})):e===dw&&(i=Zn(t[0]),o=x(i)&&i.length||1),{startIndex:a,dimensionsDefine:rs(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Hw({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function ns(t){return new Hw({data:t,sourceFormat:I(t)?mw:dw})}function is(t){var e=vw;if(I(t))e=mw;else if(x(t)){0===t.length&&(e=fw);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(x(r)||I(r)){e=fw;break}if(T(r)){e=gw;break}}}}else if(T(t))for(var o in t)if(q(t,o)&&d(t[o])){e=yw;break}return e}function rs(t){var e;if(t)return e=U(),g(t,function(t,n){var i,t={name:(t=T(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=e.get(t.name))?t.name+="-"+i.count++:e.set(t.name,{count:1})),t})}function os(t,e,n,i){if(e===xw)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function as(t){return(t=t.sourceFormat)===gw||t===yw}function ss(t,e){var t=ts(t)?t:ns(t),n=(this._source=t,this._data=t.data);t.sourceFormat===mw&&(this._offset=0,this._dimSize=e,this._data=n),Dw(this,n,t)}function ls(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function us(t,e,n,i){return t[i]}function hs(t,e){return Yw[gs(t,e)]}function cs(t,e,n){return t.length}function ps(t,e){return Xw[gs(t,e)]}function ds(t,e,n){return t[e]}function fs(t){return qw[t]}function gs(t,e){return t===fw?t+"_"+e:t}function ys(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),fs(i)(e,t,n)):(r=e,i===dw?Zn(e):r)}}function ms(){}function vs(t){var e,n;return T(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function _s(t){return new ib(t)}function xs(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ws(){return Qw<$w?Qw++:null}function bs(){var t=Qw%eb*Jw+Math.ceil(Qw/eb),t=$w<=Qw?null:t<tb?t:Qw;return Qw++,t}function Ss(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||C(t)||null==t||"-"===t?t:+Bn(t))||""===t?NaN:Number(t)}function Cs(t){return ob.get(t)}function Ts(t,e){C(e)||jn(""),this._opFn=ab[t],this._rvalFloat=Hn(e)}function Ms(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function Is(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Hn(e)}function ks(){}function Ds(t){return Rs(t.sourceFormat)||jn(""),t.data}function As(t){var e=t.sourceFormat,n=t.data;if(Rs(e)||jn(""),e===fw){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===gw){for(i=[],r=0,o=n.length;r<o;r++)i.push(l({},n[r]));return i}}function Ps(t,e,n){if(null!=n)return C(n)||!isNaN(n)&&!q(e,n)?t[n]:q(e,n)?e[n]:void 0}function Os(t){return a(t)}function Ls(t,e){var n=Xn(t),t=n.length;t||jn("");for(var i=0,r=t;i<r;i++)e=function(t,e){e.length||jn(""),T(t)||jn("");var n=t.type,i=pb.get(n);return i||jn(""),n=g(e,function(t){var e=t,t=i,n=new cb,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==_w&&jn(""),[]),l={};if(c=e.dimensionsDefine)f(c,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(q(l,n)&&jn(""),l[n]=e)});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=hs(o,_w),c=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,a,s,t)},n.getRawData=Qf(Ds,null,e)),n.cloneRawData=Qf(As,null,e),ps(o,_w)),p=(n.count=Qf(c,null,r,a,s),fs(o)),d=(n.retrieveValue=function(t,e){return t=h(r,a,s,t),d(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=Qf(Ps,null,s,l),n.cloneAllDimensionInfo=Qf(Os,null,s),n}),g(Xn(i.transform({upstream:n[0],upstreamList:n,config:a(t.config)})),function(t,n){T(t)||jn(""),t.data||jn(""),Rs(is(t.data))||jn("");var i=e[0],n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:_w,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:_w,sourceHeader:0,dimensions:t.dimensions};return es(t.data,n,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Rs(t){return t===fw||t===gw}function Es(t){return 65535<t?db:fb}function Ns(){return[1/0,-1/0]}function Bs(t,e,n,i,r){if(n=yb[n||"float"],r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}function zs(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}function Fs(t,e,n,i){return Ss(t[i],this._dimensions[i])}function Vs(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Hs(t){t.option.transform&&V(t.option.transform)}function Gs(t){return"series"===t.mainType}function Ws(t){throw new Error(t)}function Us(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+yt(i+"")+"px;color:"+yt(n)+";font-weight:"+yt(r+""),valueStyle:"font-size:"+yt(a+"")+"px;color:"+yt(o)+";font-weight:"+yt(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}function js(t,e){return e.type=t,e}function Ys(t){return"section"===t.type}function Xs(t){return Ys(t)?qs:Zs}function qs(t,e,n,i){var r,o=e.noHeader,a=(u=function t(e){var n,i,r;return Ys(e)?(n=0,i=e.blocks.length,r=1<i||0<i&&!e.noHeader,f(e.blocks,function(e){var i=t(e);n<=i&&(n=i+ +(r&&(!i||Ys(e)&&!e.noHeader)))}),n):0}(e),{html:xb[u],richText:wb[u]}),s=[],u=e.blocks||[],h=(z(!u||x(u)),u=u||[],t.orderMode),c=(e.sortBlocks&&h&&(u=u.slice(),q(c={valueAsc:"asc",valueDesc:"desc"},h)?(r=new lb(c[h],null),u.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===h&&u.reverse()),f(u,function(n,r){var o=e.valueFormatter,o=Xs(n)(o?l(l({},t),{valueFormatter:o}):t,n,0<r?a.html:0,i);null!=o&&s.push(o)}),"richText"===t.renderMode?s.join(a.richText):$s(s.join(""),o?n:a.html));return o?c:(h=ga(e.header,"ordinal",t.useUTC),u=Us(i,t.renderMode).nameStyle,"richText"===t.renderMode?Qs(t,h,u)+a.richText+c:$s('<div style="'+u+";"+_b+';">'+yt(h)+"</div>"+c,n))}function Zs(t,e,n,i){var r,o,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return g(t=x(t)?t:[t],function(t,e){return ga(t,x(o)?o[e]:o,d)})};if(!u||!h)return r=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":ga(p,"ordinal",d),o=e.valueType,f=h?[]:f(e.value,e.dataIndex),e=!c||!u,a=!c&&u,i=Us(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":r)+(u?"":Qs(t,p,s))+(h?"":function(t,e,n,i,r){return r=[r],i=i?10:20,n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,r)}(t,f,e,a,i)):$s((c?"":r)+(u?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+yt(p)+"</span>")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=x(t)?t:[t],'<span style="'+e+";"+i+'">'+g(t,yt).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,i)),n)}function Ks(t,e,n,i,r,o){if(t)return Xs(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function $s(t,e){return'<div style="margin: '+e+"px 0 0;"+_b+';">'+t+'<div style="clear:both"></div></div>'}function Qs(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Js(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function tl(){this.richTextStyles={},this._nextStyleNameId=Wn()}function el(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(u?p.push(js("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(h.push(t),c.push(e.type)))}var n,i,r,o,a,s,l,u,h,c,p,d=t.series,g=t.dataIndex,t=t.multipleSeries,m=d.getData(),v=m.mapDimensionsAll("defaultedTooltip"),_=v.length,w=d.getRawValue(g),b=x(w),S=(S=g,_a((C=d).getData().getItemVisual(S,"style")[C.visualDrawType]));1<_||b&&!_?(C=w,o=g,a=v,s=S,l=d.getData(),u=y(C,function(t,e,n){return n=l.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName},!1),h=[],c=[],p=[],a.length?f(a,function(t){e(ys(l,o,t),t)}):f(C,e),n=(a={inlineValues:h,inlineValueTypes:c,blocks:p}).inlineValueTypes,i=a.blocks,r=(a=a.inlineValues)[0]):_?(C=m.getDimensionInfo(v[0]),r=a=ys(m,g,v[0]),n=C.type):r=a=b?w[0]:w;var _=ti(d),v=_&&d.name||"",C=m.getName(g),b=t?v:C;return js("section",{header:v,noHeader:t||!_,sortParam:r,blocks:[js("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:n,dataIndex:g})].concat(i||[])})}function nl(t,e){return t.getName(e)||t.getId(e)}function il(){var t=null!==Cb&&Cb.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function rl(t){var e,n,i=t.name;ti(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],f(t,function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function ol(t){return t.model.getRawData().count()}function al(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),sl}function sl(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ll(t,e){f(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,_(ul,e))})}function ul(t,e){return t=hl(t),t&&t.setOutputEnd((e||this).count()),e}function hl(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}function cl(){this.group=new Jy,this.uid=Xo("viewComponent")}function pl(){var t=ri();return function(e){var n=t(e),e=e.pipelineContext,i=!!n.large,r=!!n.progressiveRender,o=n.large=!(!e||!e.large),n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==o&&r==n)&&"reset"}}function dl(){this.group=new Jy,this.uid=Xo("viewChart"),this.renderTask=_s({plan:yl,reset:ml}),this.renderTask.context={view:this}}function fl(t,e,n){t&&Or(t)&&("emphasis"===e?yr:mr)(t,n)}function gl(t,e,n){var i,r=ii(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=Bv[e])&&Nv<=32?Bv[e]=Nv++:i):null;null!=r?f(Xn(r),function(e){fl(t.getItemGraphicEl(e),n,o)}):t.eachItemGraphicEl(function(t){fl(t,n,o)})}function yl(t){return kb(t.model)}function ml(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Ib(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Ab[o]}function vl(t,e,n){function i(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o=(new Date).getTime(),s=this,l=t;var d=u||e,f=u||n;u=null,a=o-(f?h:c)-d,clearTimeout(p),f?p=setTimeout(i,d):0<=a?i():p=setTimeout(i,-a),h=o}var o,a,s,l,u,h=0,c=0,p=null;return e=e||0,r.clear=function(){p&&(clearTimeout(p),p=null)},r.debounceNextCall=function(t){u=t},r}function _l(t,e,n,i){var r=t[e];if(r){var o=r[Pb]||r,a=r[Lb];if(r[Ob]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=vl(o,n,"debounce"===i))[Pb]=o,r[Lb]=i,r[Ob]=n}}}function xl(t,e){var n=t[e];n&&n[Pb]&&(n.clear&&n.clear(),t[e]=n[Pb])}function wl(t,e){return(t=t.visualStyleMapper||Eb[e])||(console.warn("Unknown style type '"+e+"'."),Eb.itemStyle)}function bl(t,e){return(t=t.visualDrawType||Nb[e])||(console.warn("Unknown style type '"+e+"'."),"fill")}function Sl(t,e,n,i){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Cl(t){t.overallReset(t.ecModel,t.api,t.payload)}function Tl(t){return t.overallProgress&&Ml}function Ml(){this.agent.dirty(),this.getDownstream().dirty()}function Il(){this.agent&&this.agent.dirty()}function kl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Dl(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Xn(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return Al(e)}):Hb}function Al(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Pl(t){return t.data.count()}function Ol(t,e){for(var n in e.prototype)t[n]=Z}function Ll(){return{axisLine:{lineStyle:{color:Ub}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function Rl(){}function El(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Nl(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,i,a=t.seriesIndex,s=t.option.selectedMap,u=r.selected,h=0;h<u.length;h++)u[h].seriesIndex===a&&(i=ii(e=t.getData(),r.fromActionPayload),n.trigger(o,{type:o,seriesId:t.id,name:x(i)?e.getName(i[0]):e.getName(i),selected:b(s)?s:l({},s)}))})}function Bl(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function zl(){this._id="__ec_inner_"+qb++}function Fl(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Vl(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_o(t.slice(8),new Og(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?vo(t.slice(7),{},new Og(e,n,i,r),a?"center":"cover"):new iS({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=Fl,o&&a.setColor(o),a}function Hl(t,e){if(null!=t)return[An((t=x(t)?t:[t,t])[0],e[0])||0,An(R(t[1],t[0]),e[1])||0]}function Gl(t){return isFinite(t)}function Wl(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),u=Gl(u)?u:.5,h=Gl(h)?h:.5,c=0<=c&&Gl(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=Gl(o)?o:0,l=Gl(l)?l:1,i=Gl(i)?i:0,u=Gl(u)?u:0,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Ul(t){return parseInt(t,10)}function jl(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||Ul(n[i])||Ul(t.style[i]))-(Ul(n[o])||0)-(Ul(n[e])||0)|0)}function Yl(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:C(r)?[r]:x(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=g(i,function(t){return t/e}),r/=e),[i,r]}function Xl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function ql(t){return"string"==typeof t&&"none"!==t}function Zl(t){return null!=(t=t.fill)&&"none"!==t}function Kl(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function $l(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Ql(t,e,n){var n=vi(e.image,e.__image,n);if(xi(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*ig),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}function Jl(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(nu(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Tm.opacity:o),!i&&e.blend===n.blend||(a||(nu(t,r),a=!0),t.globalCompositeOperation=e.blend||Tm.blend);for(var s=0;s<oS.length;s++){var l=oS[s];!i&&e[l]===n[l]||(a||(nu(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(nu(t,r),a=!0),t.shadowColor=e.shadowColor||Tm.shadowColor),a}function tu(t,e,n,i,r){var o=iu(e,r.inHover),a=i?null:n&&iu(n,r.inHover)||{};if(o!==a){var s=Jl(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(nu(t,r),s=!0),ql(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(nu(t,r),s=!0),ql(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(nu(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(nu(t,r),s=!0),t.lineWidth=n);for(var l=0;l<aS.length;l++){var u=aS[l],h=u[0];!i&&o[h]===a[h]||(s||(nu(t,r),s=!0),t[h]=o[h]||u[1])}}}function eu(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}function nu(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function iu(t,e){return e&&t.__hoverStyle||t.style}function ru(t,e){ou(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ou(t,e,n,i){var r=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,a)){if(a&&a.length&&(nu(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){nu(t,n),t.save();for(var u=o,h=t,a=n,c=!1,p=0;p<u.length;p++){var d=u[p],c=c||d.isZeroArea();eu(h,d),h.beginPath(),d.buildPath(h,d.shape),h.clip()}a.allClipped=c,s=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,C,T,M,I,k,D,A,P,O,L,R,E,N,a=n.prevEl,B=(a||(l=s=!0),e instanceof yv&&e.autoBatch&&(o=e.style,B=Zl(o),f=Xl(o),!(o.lineDash||!(+B^+f)||B&&"string"!=typeof o.fill||f&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),s=(s||(f=r,o=a.transform,f&&o?f[0]!==o[0]||f[1]!==o[1]||f[2]!==o[2]||f[3]!==o[3]||f[4]!==o[4]||f[5]!==o[5]:f||o)?(nu(t,n),eu(t,e)):B||nu(t,n),iu(e,n.inHover));if(e instanceof yv)n.lastDrawType!==sS&&(l=!0,n.lastDrawType=sS),tu(t,e,a,l,n),B&&(n.batchFill||n.batchStroke)||t.beginPath(),r=t,o=e,G=B,k=Xl(m=s),D=Zl(m),A=m.strokePercent,P=A<1,O=!o.path,o.silent&&!P||!O||o.createPathProxy(),L=o.path||rS,R=o.__dirty,G||(v=m.fill,N=m.stroke,_=D&&!!v.colorStops,x=k&&!!N.colorStops,w=D&&!!v.image,b=k&&!!N.image,E=M=T=C=S=void 0,(_||x)&&(E=o.getBoundingRect()),_&&(S=R?Wl(r,v,E):o.__canvasFillGradient,o.__canvasFillGradient=S),x&&(C=R?Wl(r,N,E):o.__canvasStrokeGradient,o.__canvasStrokeGradient=C),w&&(T=R||!o.__canvasFillPattern?Ql(r,v,o):o.__canvasFillPattern,o.__canvasFillPattern=T),b&&(M=R||!o.__canvasStrokePattern?Ql(r,N,o):o.__canvasStrokePattern,o.__canvasStrokePattern=T),_?r.fillStyle=S:w&&(T?r.fillStyle=T:D=!1),x?r.strokeStyle=C:b&&(M?r.strokeStyle=M:k=!1)),E=o.getGlobalScale(),L.setScale(E[0],E[1],o.segmentIgnoreThreshold),r.setLineDash&&m.lineDash&&(I=(v=Yl(o))[0],H=v[1]),N=!0,(O||R&Ug)&&(L.setDPR(r.dpr),P?L.setContext(null):(L.setContext(r),N=!1),L.reset(),o.buildPath(L,o.shape,G),L.toStatic(),o.pathUpdated()),N&&L.rebuildPath(r,P?A:1),I&&(r.setLineDash(I),r.lineDashOffset=H),G||(m.strokeFirst?(k&&$l(r,m),D&&Kl(r,m)):(D&&Kl(r,m),k&&$l(r,m))),I&&r.setLineDash([]),B&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof vv)n.lastDrawType!==uS&&(l=!0,n.lastDrawType=uS),tu(t,e,a,l,n),_=t,S=e,null!=(T=(w=s).text)&&(T+=""),T&&(_.font=w.font||Nf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,C=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Yl(S))[0],C=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=C),w.strokeFirst?(Xl(w)&&_.strokeText(T,w.x,w.y),Zl(w)&&_.fillText(T,w.x,w.y)):(Zl(w)&&_.fillText(T,w.x,w.y),Xl(w)&&_.strokeText(T,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof bv)n.lastDrawType!==lS&&(l=!0,n.lastDrawType=lS),b=a,M=l,Jl(t,iu(e,(E=n).inHover),b&&iu(b,E.inHover),M,E),v=t,O=s,(o=(R=e).__image=vi(O.image,R.__image,R,R.onload))&&xi(o)&&(N=O.x||0,L=O.y||0,P=R.getWidth(),R=R.getHeight(),A=o.width/o.height,null==P&&null!=R?P=R*A:null==R&&null!=P?R=P/A:null==P&&null==R&&(P=o.width,R=o.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(o,g,y,O.sWidth,O.sHeight,N,L,P,R)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(o,g,y,P-g,R-y,N,L,P,R)):v.drawImage(o,N,L,P,R));else if(e.getTemporalDisplayables){n.lastDrawType!==hS&&(l=!0,n.lastDrawType=hS);var z,F,V=t,H=e,G=n,W=H.getDisplayables(),U=H.getTemporalDisplayables(),j=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:G.viewWidth,viewHeight:G.viewHeight,inHover:G.inHover});for(z=H.getCursor(),F=W.length;z<F;z++)(Y=W[z]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),ou(V,Y,j,z===F-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;for(var Y,X=0,q=U.length;X<q;X++)(Y=U[X]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),ou(V,Y,j,X===q-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;H.clearTemporalDisplayables(),H.notClear=!0,V.restore()}B&&i&&nu(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Wg,e.__isRendered=!1}function au(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type,e=(t.dirty&&cS.delete(t),cS.get(t));if(e)return e;for(var o,a=u(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[n],h=!0,c=0;c<dS.length;++c){var p=a[dS[c]];if(null!=p&&!x(p)&&!b(p)&&!C(p)&&"boolean"!=typeof p){h=!1;break}l.push(p)}h&&(o=l.join(",")+(r?"-svg":""),w=pS.get(o))&&(r?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(C(e))return[[o=Math.ceil(e),o]];for(var n=!0,i=0;i<e.length;++i)if(!C(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;C(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=g(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t))return[e=Math.ceil(t),e];var e=g(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),m=function t(e){if(!e||0===e.length)return[["rect"]];if(b(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!b(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)b(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),v=function(t){return g(t,su)}(f),_=su(y),w=!r&&zf.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},T=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=Un(t,v[e]);for(var i=1,e=0,n=m.length;e<n;++e)i=Un(i,m[e].length);t*=i;var r=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();w&&(w.width=T.width*n,w.height=T.height*n,d=w.getContext("2d")),d&&(d.clearRect(0,0,w.width,w.height),a.backgroundColor)&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,w.width,w.height));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(!(M<=0))for(var k=-_,D=0,A=0,P=0;k<T.height;){if(D%2==0){for(var O=A/2%m.length,L=0,R=0,E=0;L<2*T.width;){for(var N,B,z,F,V,H=0,I=0;I<f[P].length;++I)H+=f[P][I];if(H<=0)break;R%2==0&&(B=.5*(1-a.symbolSize),N=L+f[P][R]*B,B=k+y[D]*B,z=f[P][R]*a.symbolSize,F=y[D]*a.symbolSize,V=E/2%m[O].length,function(t,e,o,s,l){var u=r?1:n,l=Vl(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?(t=i.painter.renderOneToVNode(l))&&S.children.push(t):ru(d,l)}(N,B,z,F,m[O][V])),L+=f[P][R],++E,++R===f[P].length&&(R=0)}++P===f.length&&(P=0)}k+=y[D],++A,++D===y.length&&(D=0)}return h&&pS.put(o,w||S),s.image=w,s.svgElement=S,s.svgWidth=T.width,s.svgHeight=T.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?1:1/n,cS.set(t,e),t.dirty=!1,e}function su(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function lu(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return hu(this,t,e);this.id}}function uu(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return hu(this,t,e)}}function hu(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),hg.prototype[e].apply(t,n)}function cu(){return null!==wS&&wS.apply(this,arguments)||this}function pu(t,e,n){function i(t,e){return t.__prio-e.__prio}var r=VS.call(this,new jb)||this,t=(r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},b(e)&&(e=ZS[e]),r._dom=t,n.ssr&&kn(function(t){var e,t=Ev(t),n=t.dataIndex;if(null!=n)return(e=U()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),r._zr=Tn(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:R(n.useDirtyRect,!1),useCoarsePointer:R(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(r._ssr=n.ssr,r._throttledZrFlush=vl(Qf(t.flush,t),17),(e=a(e))&&Qa(e,!0),r._theme=e,r._locale=b(e=n.locale||Fx)?(n=Bx[e.toUpperCase()]||{},e===Rx||e===Ex?a(n):s(a(n),a(Bx[Nx]),!1)):s(a(e),a(Bx[Nx]),!1),r._coordSysMgr=new Ow,r._api=NS(r));return Wt(qS,i),Wt(YS,i),r._scheduler=new Vb(r,n,YS,qS),r._messageCenter=new HS,r._initEvents(),r.resize=Qf(r.resize,r),t.animation.on("frame",r._onframe,r),PS(t,r),OS(t,r),V(r),r}function du(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function fu(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Gv&&t.states.emphasis?e.push("emphasis"):t.hoverState===Hv&&t.states.blur&&e.push("blur"),t.useStates(e)}function gu(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=Math.max(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);return o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1)),r}(t,n,i,-1/0),!0}))}function yu(t,e){e.eachRendered(function(t){var e,n;ho(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function mu(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,o;t.states&&t.states.emphasis&&(ho(t)||(t instanceof yv&&((o=zv(n=t)).normalFill=n.style.fill,o.normalStroke=n.style.stroke,n=n.states.select||{},o.selectFill=n.style&&n.style.fill||null,o.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),i&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&fu(t)))})}function vu(t){QS[t]=!1}function _u(t){return $S[(e=eC,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function xu(t,e){ZS[t]=e}function wu(t){h(XS,t)<0&&XS.push(t)}function bu(t,e){Au(YS,t,e,2e3)}function Su(t){Tu("afterinit",t)}function Cu(t){Tu("afterupdate",t)}function Tu(t,e){fS.on(t,e)}function Mu(t,e,n){w(e)&&(n=e,e="");var i=T(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,jS[e]||(z(_S.test(i)&&_S.test(e)),US[i]||(US[i]={action:n,actionInfo:t}),jS[e]=i)}function Iu(t,e){Ow.register(t,e)}function ku(t,e){Au(qS,t,e,1e3,"layout")}function Du(t,e){Au(qS,t,e,3e3,"visual")}function Au(t,e,n,i,r){(w(e)||T(e))&&(n=e,e=i),0<=h(nC,n)||(nC.push(n),(i=Vb.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function Pu(t,e){KS[t]=e}function Ou(t,e,n){var i=gS.registerMap;i&&i(t,e,n)}function Lu(t){var e=(t=a(t)).type,n=(e||jn(""),e.split(":")),i=(2!==n.length&&jn(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,pb.set(e,t)}function Ru(t){return null==t?0:t.length||1}function Eu(t){return t}function Nu(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Eu,this._newKeyGetter=i||Eu,this.context=r,this._diffModeMultiple="multiple"===o}function Bu(t,e){this._encode=t,this._schema=e}function zu(t,e){var n={},i=n.encode={},r=U(),o=[],a=[],s={},l=(f(t.dimensions,function(e){var n,l,u=t.getDimensionInfo(e),h=u.coordDim;h&&(n=u.coordDimIndex,Fu(i,h)[n]=e,u.isExtraCoord||(r.set(h,1),"ordinal"!==(l=u.type)&&"time"!==l&&(o[0]=e),Fu(s,h)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),pw.each(function(t,e){var n=Fu(i,e),e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)})}),[]),u={},h=(r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u,i.label),h=(h&&h.length&&(o=h.slice()),i.tooltip);return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new cC(s,e),n}function Fu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Vu(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Hu(t){return t instanceof gC}function Gu(t){for(var e=U(),n=0;n<(t||[]).length;n++){var i=t[n],i=T(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Wu(t){var e=dC(t);return e.dimNameMap||(e.dimNameMap=Gu(t.dimensionsDefine))}function Uu(t,e){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"];for(var n,i,r=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Hu(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=b(c)?new pC({name:c}):c instanceof pC?c:new pC(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),r&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=U(),f(a,function(t){i.set(o[t].storeDimIndex,t)}))}function ju(t,e){function n(t){var e,n,i,r=x[t];return r<0?(e=T(e=h[t])?e:{name:e},n=new pC,null!=(i=e.name)&&null!=m.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),x[t]=p.length,n.storeDimIndex=t,p.push(n),n):p[r]}function i(t,e,n){null!=pw.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,c.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}ts(t)||(t=ns(t));for(var o,a,s=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],c=U(),p=[],d=(g=t,o=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,o.length,h.length,v||0),f(o,function(t){T(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=h===t.dimensionsDefine,m=y?Wu(t):Gu(h),v=e.encodeDefine,_=U(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new gb(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)n(w);_.each(function(t,e){var r,t=Xn(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(r=_.set(e,[]),f(t,function(t,o){null!=(t=b(t)?m.get(t):t)&&t<d&&i(n(r[o]=t),e,o)}))});var S=0;f(s,function(t){b(t)?(a=t,o={}):(a=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=l({},o)).ordinalMeta=t,e=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e,r,o,a,s=_.get(a);if(!1!==s){if(!(s=Xn(s)).length)for(var h=0;h<(e&&e.length||1);h++){for(;S<d&&null!=n(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=n(t),y&&null!=o.type&&(t.type=o.type),i(u(t,o),a,s),null==t.name&&e&&(T(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),r&&u(t.otherDims,r)})}});var C=e.generateCoord,M=null!=(I=e.generateCoordCount),I=C?I||1:0,k=C||"value";if(g)f(p,function(t){r(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var D=0;D<d;D++){var A=n(D);null==A.coordDim&&(A.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(k,c,M),A.coordDimIndex=0,(!C||I<=0)&&(A.isExtraCoord=!0),I--),r(A),null!=A.type||Aa(t,D)!==ww.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}for(var P=p,O=U(),L=0;L<P.length;L++){var R=P[L],E=R.name,N=O.get(E)||0;0<N&&(R.name=E+(N-1)),N++,O.set(E,N)}return new gC({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Yu(t){return"category"===t.get("type")}function Xu(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,g=(Hu(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return f(i,function(t,e){b(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,f(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function qu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Zu(t,e){return qu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Ku(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=ns(t)):h=(i=u.getSource()).sourceFormat===dw,function(t){var e=t.get("coordinateSystem"),n=new bC(e);if(e=SC[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=Ow.get(c),p=(p=r&&r.coordSysDims?g(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=w(p)?p:p?_(ka,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=ju(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&f(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=Xu(e,{schema:p,store:n}),c=new wC(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==dw||x(Zn(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function $u(t){this._setting=t||{},this._extent=[1/0,-1/0]}function Qu(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++TC}function Ju(t){return T(t)&&null!=t.value?t.value:t+""}function th(t){return"interval"===t.type||"log"===t.type}function eh(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=Vn(o/e,!0),e=(null!=n&&o<n&&(o=r.interval=n),null!=i&&i<o&&(o=r.interval=i),r.intervalPrecision=ih(o)),n=r.niceTickExtent=[Pn(Math.ceil(t[0]/o)*o,e),Pn(Math.floor(t[1]/o)*o,e)];return i=n,o=t,isFinite(i[0])||(i[0]=o[0]),isFinite(i[1])||(i[1]=o[1]),rh(i,0,o),rh(i,1,o),i[0]>i[1]&&(i[0]=i[1]),r}function nh(t){var e=Math.pow(10,Fn(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Pn(t*e)}function ih(t){return On(t)+2}function rh(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function oh(t,e){return t>=e[0]&&t<=e[1]}function ah(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function sh(t,e){return t*(e[1]-e[0])+e[0]}function lh(t){var t=IC.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new MC({}))&&(e=new MC({categories:g(e,function(t){return T(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function uh(){var t=null!==DC&&DC.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function hh(t){return x(t)?OC?new Float32Array(t):t:new LC(t)}function ch(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ph(t){return t.dim+t.index}function dh(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function fh(t){var e,n,i=function(t){var e,n={},i=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),i=e.dim+"_"+e.index,r=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(r,a);n[i]?n[i].push(l):n[i]=[l]}}),{});for(e in n)if(n.hasOwnProperty(e)){var r=n[e];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];0<s&&(o=null===o?s:Math.min(o,s))}i[e]=o}}return i}(t),r=[];return f(t,function(t){var e,n,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),s=(e="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(e=o.dim+"_"+o.index,e=i[e],s=Math.abs(a[1]-a[0]),n=o.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?s/n*e:s):(n=t.getData(),Math.abs(a[1]-a[0])/n.count()),An(t.get("barWidth"),e)),a=An(t.get("barMaxWidth"),e),l=An(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),u=t.get("barGap"),h=t.get("barCategoryGap");r.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:u,barCategoryGap:h,axisKey:ph(o),stackId:ch(t)})}),e={},f(r,function(t,n){var i=t.axisKey,r=t.bandWidth,r=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks,i=(e[i]=r,t.stackId),a=(o[i]||r.autoWidthCount++,o[i]=o[i]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[i].width&&(o[i].width=a,a=Math.min(r.remainedWidth,a),r.remainedWidth-=a),t.barMaxWidth),a=(a&&(o[i].maxWidth=a),t.barMinWidth),o=(a&&(o[i].minWidth=a),t.barGap),i=(null!=o&&(r.gap=o),t.barCategoryGap);null!=i&&(r.categoryGap=i)}),n={},f(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(r).length,a=Math.max(35-4*s,15)+"%"),An(a,o)),l=An(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),p=(f(r,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,u-=e+l*e,h--):(e=c,n&&n<e&&(e=Math.min(n,u)),(e=i&&e<i?i:e)!==c&&(t.width=e,u-=e+l*e,h--))}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),0),d=(f(r,function(t,e){t.width||(t.width=c),p+=(i=t).width*(1+l)}),i&&(p-=i.width*l),-p/2);f(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function gh(t){return t=RC.call(this,t)||this,t.type="time",t}function yh(t,e){return 30<(t/=e?Hx:Vx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function mh(){var t=null!==BC&&BC.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new PC,t._interval=0,t}function vh(t,e){return VC(t,On(e))}function _h(t,e,n){this._prepareParams(t,e,n)}function xh(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function wh(t,e){var n,i,r,o,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new YC(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=dh("bar",c),n=!1,f(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=fh(t),c=u,t=h,s=s,a=(a=(i=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,n){if(t&&e)return t=t[ph(e)],t}(s,i.axis))&&(r=1/0,f(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,f(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(i=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function bh(t,e){var n=wh(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof jC&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Sh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new kC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new EC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(CC.getClass(e)||PC)}}function Ch(t){var e,n,i,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=r,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):b(r)?(n=r,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):w(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(Th(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Th(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Mh(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent(),a=n instanceof kC?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=Ch(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:o[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new Og(f.x,f.y,p,c));r?r.union(g):r=g}return r}}function Ih(t){return t=t.get("interval"),null==t?"auto":t}function kh(t){return"category"===t.type&&0===Ih(t.getLabelModel())}function Dh(){}function Ah(t){x(t)?f(t,function(t){Ah(t)}):0<=h(KC,t)||(KC.push(t),(t=w(t)?{install:t}:t).install($C))}function Ph(t,e){return Math.abs(t-e)<QC}function Oh(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Li(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Ph(r[0],s[0])&&Ph(r[1],s[1])||(i+=Li(r[0],r[1],s[0],s[1],e,n)),0!==i}}function Lh(t,e){for(var n=0;n<t.length;n++)st(t[n],t[n],e)}function Rh(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(lt(e,e,o),ut(n,n,o))}}function Eh(t){this.name=t}function Nh(t,e,n){return t=tT.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function Bh(t,e){return t=eT.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function zh(t,e,n){for(var i=0;i<t.length;i++)t[i]=Fh(t[i],e[i],n)}function Fh(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function Vh(t,e){var n,i,r;return g(m((t=(n=t).UTF8Encoding?(null==(r=(i=n).UTF8Scale)&&(r=1024),f(i.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Fh(i,n,r);break;case"Polygon":case"MultiLineString":zh(i,n,r);break;case"MultiPolygon":f(i,function(t,e){return zh(t,n[e],r)})}}),i.UTF8Encoding=!1,i):n).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new nT(o[0],o.slice(1)));break;case"MultiPolygon":f(i.coordinates,function(t){t[0]&&r.push(new nT(t[0],t.slice(1)))});break;case"LineString":r.push(new iT([i.coordinates]));break;case"MultiLineString":r.push(new iT(i.coordinates))}return t=new rT(n[e||"name"],r,n.cp),t.properties=n,t})}function Hh(t,e){return e=g(e,function(e){return t.scale.parse(e)}),"time"===t.type&&0<e.length&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Gh(t){var e,n,i,r,o,a=t.getLabelModel().get("customValues");return a?(e=Ch(t),{labels:Hh(t,a).map(function(n){var i={value:n};return{formattedLabel:e(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}):"category"===t.type?(r=(a=t).getLabelModel(),o=Uh(a,r),!r.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(n=t).scale.getTicks(),i=Ch(n),{labels:g(r,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})})}function Wh(t,e){var n,i,r,o,a,s=t.getTickModel().get("customValues");return s?{ticks:Hh(t,s)}:"category"===t.type?(s=e,r=jh(e=t,"ticks"),o=Ih(s),(a=Yh(r,o))||(s.get("show")&&!e.scale.isBlank()||(n=[]),n=w(o)?Zh(e,o,!0):"auto"===o?(a=Uh(e,e.getLabelModel()),i=a.labelCategoryInterval,g(a.labels,function(t){return t.tickValue})):qh(e,i=o,!0),Xh(r,o,{ticks:n,tickCategoryInterval:i}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Uh(t,e){var n,i=jh(t,"labels"),e=Ih(e),r=Yh(i,e);return r||Xh(i,e,{labels:w(e)?Zh(t,e):qh(t,n="auto"===e?null!=(i=oT(r=t).autoInterval)?i:oT(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:n})}function jh(t,e){return oT(t)[e]||(oT(t)[e]=[])}function Yh(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Xh(t,e,n){return t.push({key:e,value:n}),n}function qh(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}for(var r=Ch(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),e=a[0],h=o.count(),h=(0!==e&&1<u&&2<h/u&&(e=Math.round(Math.ceil(e/u)*u)),kh(t)),t=s.get("showMinLabel")||h,s=s.get("showMaxLabel")||h,c=(t&&e!==a[0]&&i(a[0]),e);c<=a[1];c+=u)i(c);return s&&c-u!==a[1]&&i(a[1]),l}function Zh(t,e,n){var i=t.scale,r=Ch(t),o=[];return f(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function Kh(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function $h(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Qh(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-r)*(u-r)+(s-o)*(s-o))}function Jh(t,e,n,i,r,o,a){return n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),n=t+n,i=e+i,t=a[0]=Math.min(Math.max(r,t),n),n=a[1]=Math.min(Math.max(o,e),i),Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}function tc(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case lT.M:p=f=m[x++],d=g=m[x++];break;case lT.L:b=Qh(p,d,m[x],m[x+1],v,_,hT,!0),p=m[x++],d=m[x++];break;case lT.C:b=te(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,hT),p=m[x++],d=m[x++];break;case lT.Q:b=oe(p,d,m[x++],m[x++],m[x],m[x+1],v,_,hT),p=m[x++],d=m[x++];break;case lT.A:var S=m[x++],C=m[x++],T=m[x++],M=m[x++],I=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(I)*T+S,P=Math.sin(I)*M+C;x<=1&&(f=A,g=P),P=(A=I)+k,D=D,a=(v-S)*(o=M)/T+S,s=_,l=hT,c=h=u=void 0,a-=i=S,s-=r=C,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,b=Math.abs(A-P)%sT<1e-4||((P=D?(D=A,A=Oi(P),Oi(D)):(A=Oi(A),Oi(P)))<A&&(P+=sT),(D=Math.atan2(s,a))<0&&(D+=sT),A<=D&&D<=P)||A<=D+sT&&D+sT<=P?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(A)+i)-a)*(D-a)+((h=o*Math.sin(A)+r)-s)*(h-s))<(i=((u=o*Math.cos(P)+i)-a)*(u-a)+((A=o*Math.sin(P)+r)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(I+k)*T+S,d=Math.sin(I+k)*M+C;break;case lT.R:b=Jh(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,hT);break;case lT.Z:b=Qh(p,d,f,g,v,_,hT,!0),p=f,d=g}b<y&&(y=b,n.set(hT[0],hT[1]))}return y}function ec(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||uT,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&At([],h),p=e.get("length2")||0;u&&dT.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=b=w=x=_=v=m=void 0,y),v=0,_=s,x=cT,w=fT,b=_.width,S=_.height;switch(m){case"top":x.set(_.x+b/2,_.y-v),w.set(0,-1);break;case"bottom":x.set(_.x+b/2,_.y+S+v),w.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),w.set(-1,0);break;case"right":x.set(_.x+b+v,_.y+S/2),w.set(1,0)}Sg.scaleAndAdd(pT,cT,fT,p),pT.transform(c),y=t.getBoundingRect(),y=u?u.distance(pT):t instanceof yv?tc(pT,t.path,dT):(m=dT,d=Jh((d=y).x,y.y,y.width,y.height,pT.x,pT.y,hT),m.set(hT[0],hT[1]),d),y<l&&(l=y,pT.transform(h),dT.transform(h),dT.toArray(o[0]),pT.toArray(o[1]),cT.toArray(o[2]))}i=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,cT.fromArray(i[0]),pT.fromArray(i[1]),dT.fromArray(i[2]),Sg.sub(fT,cT,pT),Sg.sub(gT,dT,pT),e=fT.len(),f=gT.len(),e<.001||f<.001||(fT.scale(1/e),gT.scale(1/f),e=fT.dot(gT),Math.cos(r)<e&&(f=Qh(pT.x,pT.y,dT.x,dT.y,cT.x,cT.y,yT,!1),mT.fromArray(yT),mT.scaleAndAdd(gT,f/Math.tan(Math.PI-r)),e=dT.x!==pT.x?(mT.x-pT.x)/(dT.x-pT.x):(mT.y-pT.y)/(dT.y-pT.y),isNaN(e)||(e<0?Sg.copy(mT,pT):1<e&&Sg.copy(mT,dT),mT.toArray(i[1]))))),n.setShape({points:o})}}}function nc(t,e,n,i){var r="normal"===n,n=r?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());r?t.useStyle(e):n.style=e}function ic(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=og(i[0],i[1]),r=og(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=at([],i[1],i[0],n/e),n=at([],i[1],i[2],n/r),r=at([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}function rc(t){for(var e=[],n=0;n<t.length;n++){var i,r,o,a,s,l,u=t[n];u.defaultAttr.ignore||(r=(i=u.label).getComputedTransform(),o=i.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=i.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new sx(o,r):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:o,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:r}))}return e}function oc(t,e,n,i,r,o){function a(){_=w.rect[e]-i,x=r-b.rect[e]-b.rect[n]}function s(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(l(e*n,0,c),(e+=t)<0&&u(-e*n,1)):u(-t*n,1))}function l(n,i,r){0!==n&&(d=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;s<c;s++){var u=t[s-1].rect,u=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(u),a+=u}if(a){var h=Math.min(Math.abs(i)/a,r);if(0<i)for(s=0;s<c-1;s++)l(o[s]*h,0,s+1);else for(s=c-1;0<s;s--)l(-o[s-1]*h,s,c)}}function h(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(c-1))),i=0;i<c-1;i++)if(0<e?l(n,0,i+1):l(-n,c-i-1,c),(t-=n)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[n]}0<f&&o&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&u(-_,.8),x<0&&u(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&h(-_),x<0&&h(x),d}}function ac(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var n=[],i=(t.sort(function(t,e){return e.priority-t.priority}),new Og(0,0,0,0)),r=0;r<t.length;r++){for(var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine,c=(i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05,o.obb),p=!1,d=0;d<n.length;d++){var f=n[d];if(i.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new sx(f.localRect,f.transform)),(c=c||new sx(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function sc(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}function lc(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function uc(){this._labelList=[],this._chartViewList=[]}function hc(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(CT(e).labelManager||(CT(e).labelManager=new ST)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=CT(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function cc(t,e,n){var i=zf.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}function pc(t,e,n){var i,r=TT.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,n=n||Ny,"string"==typeof t?i=cc(t,e,n):T(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(X(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}function dc(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||Ny,this._singleCanvas=r,(this.root=t).style&&(X(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new MT(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[IT]=o).zlevel=IT,e.push(IT),this._domRoot=t):(this._width=jl(t,0,n),this._height=jl(t,1,n),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}function fc(){var t=null!==DT&&DT.apply(this,arguments)||this;return t.type="dataset",t}function gc(){var t=null!==PT&&PT.apply(this,arguments)||this;return t.type="dataset",t}function yc(t){t.registerComponentModel(AT),t.registerComponentView(OT)}function mc(){var t=null!==LT&&LT.apply(this,arguments)||this;return t.type=mc.type,t.hasSymbolVisual=!0,t}function vc(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=ys(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(ys(t,e,i[a]));return o.join(" ")}}function _c(t,e,n,i){var r=ET.call(this)||this;return r.updateData(t,e,n,i),r}function xc(t,e){this.parent.drift(t,e)}function wc(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function bc(t){return(t=null==t||T(t)?t:{isIgnore:t})||{}}function Sc(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:zo(t),cursorStyle:t.get("cursor")}}function Cc(t){this.group=new Jy,this._SymbolCtor=t||NT}function Tc(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:C(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(r,n),i=i.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(i),s="x"===r||"radius"===r?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return qu(e,t[0])&&(l=!0,t[0]=u),qu(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:r,baseAxisDim:i,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mc(t,e,n,i){var r=NaN,o=(t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Ic(t,e){return isNaN(t)||isNaN(e)}function kc(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(r<=d||d<0)break;if(Ic(g,y)){if(l){d+=o;continue}break}if(d===n)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<i;)f++,d+=o,x=e[2*(_+=o)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Ic(x,w)&&b<i;)b++,x=e[2*(_+=o)],w=e[2*_+1];var S,C,T,M,I,k,D,A,P,m=0,v=0,O=void 0,L=void 0;i<=b||Ic(x,w)?(D=g,A=y):(m=x-u,v=w-h,S=g-u,C=x-g,T=y-h,M=w-y,k=I=void 0,L="x"===s?(D=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,A=y,O=g+P*(k=Math.abs(C))*a,y):"y"===s?(A=y-(P=0<v?1:-1)*(I=Math.abs(T))*a,O=D=g,y+P*(k=Math.abs(M))*a):(I=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(k=Math.sqrt(C*C+M*M))/(k+I))),A=y-v*a*(1-S),L=y+v*a*S,O=FT(O=g+m*a*S,VT(x,g)),L=FT(L,VT(w,y)),O=VT(O,FT(x,g)),A=y-(v=(L=VT(L,FT(w,y)))-y)*I/k,D=FT(D=g-(m=O-g)*I/k,VT(u,g)),A=FT(A,VT(h,y)),O=g+(m=g-(D=VT(D,FT(u,g))))*k/I,y+(v=y-(A=VT(A,FT(h,y))))*k/I)),t.bezierCurveTo(c,p,D,A,g,y),c=O,p=L}else t.lineTo(g,y)}u=g,h=y,d+=o}return f}function Dc(t){return t=BT.call(this,t)||this,t.type="ec-polyline",t}function Ac(){return null!==WT&&WT.apply(this,arguments)||this}function Pc(t){return t=jT.call(this,t)||this,t.type="ec-polygon",t}function Oc(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Lc(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Rc(t,e){var t=Lc(t),n=t[0],t=t[1],e=Lc(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Ec(t){return C(t)?t:t?.5:0}function Nc(t,e,n,i){var e=e.getBaseAxis(),r="x"===e.dim||"radius"===e.dim?0:1,o=[],a=0,s=[],l=[],u=[],h=[];if(i){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||h.push(t[a],t[a+1]);t=h}for(a=0;a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),n){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=[];s[r]=c[r]=(l[r]+u[r])/2,s[1-r]=l[1-r],c[1-r]=u[1-r],o.push(s[0],s[1]),o.push(c[0],c[1]);break;default:s[r]=l[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function Bc(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=i.length-1;0<=o;o--){var a,s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),e=g(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){function n(t,e,n){var i=t.coord;return{coord:n,color:Se((n-i)/(e.coord-i),[t.color,e.color])}}for(var i,r,o=[],a=t.length,s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(e<u){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;return d<.001?"transparent":(f(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"}),e=new tx(0,0,0,0,n,!0),e[a]=p,e[a+"2"]=u,e)}}}function zc(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var r,o,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),r=(isNaN(i)&&(i=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*NT.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return r=e.mapDimension(a.dim),o={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function Fc(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Vc(t,e){return[t[2*e],t[2*e+1]]}function Hc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Wv.length;e++)if(t.get([Wv[e],"endLabel","show"]))return 1}function Gc(t,e,n,i){var r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},x=Hc(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,l=e.getBaseAxis().isHorizontal(),h=n,c=i,p=function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(u=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,y=Math.ceil(y),f!==Math.floor(f)&&(f=Math.floor(f),y++),_=new Iv({shape:{x:f,y:g,width:y,height:m}}),h&&(h=(v=u.getBaseAxis()).isHorizontal(),u=v.inverse,h?(u&&(_.shape.x+=y),_.shape.width=0):(u||(_.shape.y+=m),_.shape.height=0),v=w(d)?function(t){d(t,_)}:null,uo(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),h=_,i.get("clip",!0)||(u=h.shape,y=Math.max(u.width,u.height),l?(u.y-=y,u.height+=2*y):(u.x-=y,u.width+=2*y)),x&&x(1,h),h):(m=n,f=i,c=(g=e).getArea(),p=Pn(c.r0,1),v=Pn(c.r,1),l=new D_({shape:{cx:Pn(g.cx,1),cy:Pn(g.cy,1),r0:p,r:v,startAngle:c.startAngle,endAngle:c.endAngle,clockwise:c.clockwise}}),m&&("angle"===g.getBaseAxis().dim?l.shape.endAngle=c.startAngle:l.shape.r=p,uo(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Wc(){return null!==XT&&XT.apply(this,arguments)||this}function Uc(){return null!==$T&&$T.apply(this,arguments)||this}function jc(){return null!==JT&&JT.apply(this,arguments)||this}function Yc(t,e,i,r){f(nM,function(o,a){function l(){var t=null!==u&&u.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var u,h=s(s({},eM[a],!0),r,!0),h=(n(l,u=i),l.prototype.mergeDefaultAndTheme=function(t,e){var n=Sa(this),i=n?Ta(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Xc(t),n&&Ca(t,i,n)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=MC.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+a,l.defaultOption=h,l);t.registerComponentModel(h)}),t.registerSubTypeDefaulter(e+"Axis",Xc)}function Xc(t){return t.type||(t.data?"category":"value")}function qc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function Zc(t){return"interval"===t.type||"time"===t.type}function Kc(){var t=null!==rM&&rM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=iM,t}function $c(t,e,n,i,r){return t=aM.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=r||"bottom",t}function Qc(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),L(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function Jc(t){return"cartesian2d"===t.get("coordinateSystem")}function tp(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(n,i){var r=i.replace(/Model$/,""),r=t.getReferringComponents(r,cm).models[0];e[i]=r}),e}function ep(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iM,this._initCartesian(t,e,n),this.model=t}function np(t,e){return t.getCoordSysModel()===e}function ip(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)rp(a[n])&&(o=a[n]);else for(var s in a)if(a.hasOwnProperty(s)&&rp(a[s])&&!i[r(a[s])]){o=a[s];break}o&&(i[r(o)]=!0)}}function rp(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function op(t,e){this.group=new Jy,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new Jy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function ap(t){t&&(t.ignore=!0)}function sp(t,e){var n,i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r)return kt(n=Ct([]),n,-t.rotation),i.applyTransform(Mt([],n,t.getLocalTransform())),r.applyTransform(Mt([],n,e.getLocalTransform())),i.intersect(r)}function lp(t){return"middle"===t||"center"===t}function up(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(st(a,a,e),st(s,s,e)),new G_({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));So(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}function hp(t,e){var n,i,r,o,s,l,h,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=c,e=e,r=(i=t).getComponent("tooltip"),o=i.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,r,p){var d,g,y=p.model.getModel("axisPointer",o),m=y.get("show");m&&("auto"!==m||e||dp(y))&&(null==r&&(r=y.get("triggerTooltip")),m=(y=e?function(t,e,n,i,r,o){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===r&&(r=s.get(["label","show"]),e.show=null==r||r,o||(r=l.lineStyle=s.get("crossStyle"))&&u(e,r.textStyle)),t.model.getModel("axisPointer",new Ox(l,n,i))}(p,c,o,i,e,r):y).get("snap"),e=y.get("triggerEmphasis"),d=fp(p.model),g=r||m||"category"===p.type,r=n.axesInfo[d]={key:d,axis:p,coordSys:t,axisPointerModel:y,triggerTooltip:r,triggerEmphasis:e,involveSeries:g,snap:m,useHandle:dp(y),seriesModels:[],linkGroup:null},h[d]=r,n.seriesInvolved=n.seriesInvolved||g,null!=(e=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(cp(o[i+"AxisId"],n.id)||cp(o[i+"AxisIndex"],n.componentIndex)||cp(o[i+"AxisName"],n.name))return r}}(s,p)))&&((m=l[e]||(l[e]={axesInfo:{}})).axesInfo[d]=r,m.mapper=s[e].mapper,r.linkGroup=m)}var h,c,p,d,g;t.axisPointerEnabled&&(p=fp(t.model),h=n.coordSysAxesInfo[p]={},c=(n.coordSysMap[p]=t).model.getModel("tooltip",r),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&r&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(h=c,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&f(h.coordSysAxesInfo[fp(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),c}function cp(t,e){return"all"===t||x(t)&&0<=h(t,e)||t===e}function pp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fp(t)]}function dp(t){return!!t.get(["handle","show"])}function fp(t){return t.type+"||"+t.id}function gp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=gp.type,t}function yp(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.type=yp.type,t.axisPointerClass="CartesianAxisPointer",t}function mp(){var t=null!==cM&&cM.apply(this,arguments)||this;return t.type=mp.type,t}function vp(){var t=null!==SM&&SM.apply(this,arguments)||this;return t.type=bM.type,t}function _p(){var t=null!==TM&&TM.apply(this,arguments)||this;return t.type="grid",t}function xp(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=xp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wp(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type=wp.type,t}function bp(){var t=null!==OM&&OM.apply(this,arguments)||this;return t.type=bp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sp(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=Sp.type,t.newlineDisabled=!1,t}function Cp(t,e,n,i){Ip(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Mp(t,e,n,i)}function Tp(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Mp(t,e,n,i){Tp(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ip(t,e,n,i){Tp(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function kp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Dp(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),f(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),r.hasOwnProperty(t)?r[t]=r[t]&&e:r[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Ap(t){t.registerComponentModel(RM),t.registerComponentView(zM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(Dp,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(Dp,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(Dp,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(Dp,"select")),t.registerAction("legendUnSelect","legendunselected",_(Dp,"unSelect"))}function Pp(){var t=null!==FM&&FM.apply(this,arguments)||this;return t.type=Pp.type,t}function Op(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Ca(e,n,{type:"box",ignoreSize:!!i})}function Lp(){var t=null!==VM&&VM.apply(this,arguments)||this;return t.type=Lp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Rp(){this._dragging=!1,this.animationThreshold=15}function Ep(t,e,n,i){!function t(e,n){var i;return T(e)&&T(n)?(i=!0,f(n,function(n,r){i=i&&t(e[r],n)}),!!i):e===n}(YM(n).lastProp,i)&&(YM(n).lastProp=i,e?lo(n,i,t):(n.stopAnimation(),n.attr(i)))}function Np(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Bp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function zp(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Fp(t,e,n,i,r){var o=Vp(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=Zx(n.get("padding")||0),s=n.getFont(),l=cn(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Fo(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function Vp(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:Th(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(o))),a}function Hp(t,e,n){var i=St();return kt(i,i,n.rotation),It(i,i,n.position),To([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Gp(){return null!==ZM&&ZM.apply(this,arguments)||this}function Wp(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function Up(t){return"x"===t.dim?0:1}function jp(){var t=null!==QM&&QM.apply(this,arguments)||this;return t.type=jp.type,t}function Yp(t,e,n){function i(t,e){o.on(t,function(t){function n(t){var e=r[t.type];e?e.push(t):(t.dispatchAction=n,i.dispatchAction(t))}i=a;var i,r,s={dispatchAction:n,pendings:r={showTip:[],hideTip:[]}};eI(tI(o).records,function(n){n&&e(n,t,s.dispatchAction)});var l,u=s.pendings,h=a,c=u.showTip.length,p=u.hideTip.length;c?l=u.showTip[c-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,h.dispatchAction(l))})}var r,o,a;Pf.node||(r=e.getZr(),tI(r).records||(tI(r).records={}),a=e,tI(o=r).initialized||(tI(o).initialized=!0,i("click",_(qp,"click")),i("mousemove",_(qp,"mousemove")),i("globalout",Xp)),(tI(r).records[t]||(tI(r).records[t]={})).handler=n)}function Xp(t,e,n){t.handler("leave",null,n)}function qp(t,e,n,i){e.handler(t,n,i)}function Zp(t,e){Pf.node||(e=e.getZr(),(tI(e).records||{})[t]&&(tI(e).records[t]=null))}function Kp(){var t=null!==nI&&nI.apply(this,arguments)||this;return t.type=Kp.type,t}function $p(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ii(n=e.getData(),t))||s<0||x(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(g(r.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}function Qp(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||Qf(n.dispatchAction,n),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return id(x)&&(x=$p({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),i=id(x),r=w.axesInfo,o=S.axesInfo,a="leave"===v||id(x),s={},e={list:[],map:{}},u={showPointer:_(td,l={}),showTooltip:_(ed,e)},f(S.coordSysMap,function(t,e){var n=i||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var o=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(r,t);a||!n||r&&!l||null!=(l=null!=(l=l&&l.value)||i?l:o.pointToData(x))&&Jp(t,l,u,!1,s)})}),h={},f(o,function(t,e){var n=t.linkGroup;n&&!l[e]&&f(n.axesInfo,function(e,i){var i=l[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,nd(e),nd(t)))),h[t.key]=i)})}),f(h,function(t,e){Jp(o[e],t,u,!0,s)}),c=l,w=o,p=s.axesInfo=[],f(w,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),v=e,w=t,e=b,id(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=o,w=(t=n).getZr(),b="axisPointerLastHighlights",d=rI(w)[b]||{},g=rI(w)[b]={},f(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&f(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],f(d,function(t,e){g[e]||m.push(t)}),f(g,function(t,e){d[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function Jp(t,e,n,i,r){var o,a,s,u,h,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,u=s.dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData)var r=t.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=t.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;r=t.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=p)&&((n<p||0<=i&&d<0)&&(p=n,d=i,h=r,c.length=0),f(o,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(o={payloadBatch:c,snapToValue:h}).snapToValue,(g=o.payloadBatch)[0]&&null==r.seriesIndex&&l(r,g[0]),!i&&t.snap&&m.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,o,y)):n.showPointer(t,e))}function td(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ed(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=fp(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function nd(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function id(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function rd(t){mM.registerAxisPointerClass("CartesianAxisPointer",KM),t.registerComponentModel(JM),t.registerComponentView(iI),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!x(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=hp(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Qp)}function od(){var t=null!==oI&&oI.apply(this,arguments)||this;return t.type=od.type,t}function ad(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function sd(t){if(Pf.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}function ld(t,e){if(!t)return e;e=fa(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function ud(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return Pf.transformSupported?(i="translate"+((i=Pf.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+uI+":"+i+";":[["top",0],["left",0],[sI,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function hd(t,e,n){var i,r,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Js(t,"html");return o.push("box-shadow:"+h+"px "+c+"px "+l+"px "+u),e&&a&&o.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,n||(l=" "+h+"s "+c,u+=Pf.transformSupported?","+uI+l:",left"+l+",top"+l),lI+":"+u)),s&&o.push("background-color:"+s),f(["width","color","radius"],function(e){var n="border-"+e,i=fa(n),i=t.get(i);null!=i&&o.push(n+":"+i+("color"===e?"":"px"))}),o.push((r=[],e=(i=p).get("fontSize"),(a=i.getTextColor())&&r.push("color:"+a),r.push("font:"+i.getFont()),e&&r.push("line-height:"+Math.round(3*e/2)+"px"),a=i.get("textShadowColor"),e=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,h=i.get("textShadowOffsetY")||0,a&&e&&r.push("text-shadow:"+n+"px "+h+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=i.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=d&&o.push("padding:"+Zx(d).join("px ")+"px"),o.join(";")+";"}function cd(t,e,n,i,r){var o,a,s=e&&e.painter;n?(o=s&&s.getViewportRoot())&&(a=t,n=n,ft(dg,o,i,r,!0))&&ft(a,n,dg[0],dg[1]):(t[0]=i,t[1]=r,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function pd(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Pf.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(b(e)?document.querySelector(e):k(e)?e:w(e)&&e(t.getDom())),r=(cd(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=i.handler,xt(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}function dd(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),yd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function fd(t){return Math.max(0,t)}function gd(t){var e=fd(t.shadowBlur||0),n=fd(t.shadowOffsetX||0),t=fd(t.shadowOffsetY||0);return{left:fd(e-n),right:fd(e+n),top:fd(e-t),bottom:fd(e+t)}}function yd(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function md(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=md.type,t}function vd(t,e,n){for(var i=e.ecModel,r=n?(r=new Ox(n,i,i),new Ox(e.option,r,i)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(b(a=a instanceof Ox?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new Ox(a,r,i))}return r}function _d(t,e){return t.dispatchAction||Qf(e.dispatchAction,e)}function xd(t){return"center"===t||"middle"===t}function wd(t){qn(t,"label",["show"])}function bd(){var t=null!==yI&&yI.apply(this,arguments)||this;return t.type=bd.type,t.createdBySelf=!1,t}function Sd(){var t=null!==_I&&_I.apply(this,arguments)||this;return t.type=Sd.type,t}function Cd(t,e,n,i,r,o){var a=[],s=qu(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=Id(e,s,t),t=e.indicesOfNearest(s,t)[0],r=(a[r]=e.get(n,t),a[o]=e.get(s,t),e.get(i,t)),n=On(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[o]=+a[o].toFixed(n)),[a,r]}function Td(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(n=e,(isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!x(e.coord)&&x(o)&&(n=function(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){return(t=t.getData().getDimensionInfo(e))&&t.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}(e,i,r,t),(e=a(e)).type&&bI[e.type]&&n.baseAxis&&n.valueAxis?(r=h(o,n.baseAxis.dim),t=h(o,n.valueAxis.dim),n=bI[e.type](i,n.baseDataDim,n.valueDataDim,r,t),e.coord=n[0],e.value=n[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&x(o))for(var s=e.coord,l=0;l<2;l++)bI[s[l]]&&(s[l]=Id(i,i.mapDimension(o[l]),s[l]));else e.coord=[];return e}}function Md(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x)))&&isNaN(parseFloat(n.y)))||t.containData(e.coord);var n}function Id(t,e,n){var i,r;return"average"===n?(r=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,r++)}),i/r):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}function kd(){var t=null!==xI&&xI.apply(this,arguments)||this;return t.type=kd.type,t}function Dd(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a,s,l=t.getItemModel(r),u=An(l.get("x"),n.getWidth()),l=An(l.get("y"),n.getHeight());isNaN(u)||isNaN(l)?e.getMarkerPosition?s=e.getMarkerPosition(t.getValues(t.dimensions,r)):i&&(o=t.get(i.dimensions[0],r),a=t.get(i.dimensions[1],r),s=i.dataToPoint([o,a])):s=[u,l],isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l),t.setItemLayout(r,s)})}function Ad(){var t=null!==CI&&CI.apply(this,arguments)||this;return t.type=Ad.type,t}function Pd(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&jn("")}function Od(){}function Ld(){}function Rd(){}function Ed(){}function Nd(){}function Bd(t,e){if(!0===t||!1===t)return(n=new kI).value=t,n;var n;if(Fd(t)||jn(""),t.and)return zd("and",t,e);if(t.or)return zd("or",t,e);if(t.not)return n=e,Fd(o=(o=t).not)||jn(""),(l=new PI).child=Bd(o,n),l.child||jn(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=v(i),l=i.parser,u=l?Cs(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=q(MI,p)?MI[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new ub("eq"===t,e):q(ab,t)?new sb(t,e):null}(c,p)||"reg"===c&&new II(p))||jn(""),a.push(c))}return a.length||jn(""),(l=new OI).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function zd(t,e,n){return e=e[t],x(e)||jn(""),e.length||jn(""),t=new("and"===t?DI:AI),t.children=g(e,function(t){return Bd(t,n)}),t.children.length||jn(""),t}function Fd(t){return T(t)&&!d(t)}function Vd(t,e){this._cond=Bd(t,e)}function Hd(){}function Gd(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof bv)t("opacity",r);else if(null!=(o=(o=e).fill)&&o!==WI?(t("fill",(o=Ie(e.fill)).color),o=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r,(i||o<1)&&t("fill-opacity",o)):t("fill",WI),null!=(o=(o=e).stroke)&&o!==WI){var o=Ie(e.stroke),a=(t("stroke",o.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,o=null!=e.strokeOpacity?e.strokeOpacity*o.opacity*r:o.opacity*r,r=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||r)&&t("paint-order",r?"stroke":"fill"),(i||o<1)&&t("stroke-opacity",o),e.lineDash?(r=(a=Yl(n))[0],o=a[1],r&&(o=UI(o||0),t("stroke-dasharray",r.join(",")),o||i)&&t("stroke-dashoffset",o)):i&&t("stroke-dasharray",WI);for(var s=0;s<jI.length;s++){var l=jI[s];(i||e[l]!==dv[l])&&(l=e[l]||dv[l])&&t(YI[s],l)}}else i&&t("stroke",WI)}function Wd(t){return document.createElementNS(XI,t)}function Ud(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function jd(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,e=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i];!1!==r&&(!0!==r&&null!=r&&(i+='="'+r+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?yt(e):e||"")+(i?n+g(i,t).join(n)+n:"")+"</"+r+">"}(t)}function Yd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Xd(t,e,n,i){return Ud("svg","root",{width:t,height:e,xmlns:XI,"xmlns:xlink":qI,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}function qd(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Zd(t){return b(t)?JI[t]?"cubic-bezier("+JI[t]+")":ae(t)?t:"":""}function Kd(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof $_){if(u=function(t,e,n){var i,r,t=t.shape.paths,o={};if(f(t,function(t){var e=Yd(n.zrId),t=(e.animation=!0,Kd(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,u,h=t[r=e[s-1]];for(l in h){var c=h[l];o[l]=o[l]||{d:""},o[l].d+=c.d||""}for(u in a){var p=a[u].animation;0<=p.indexOf(r)&&(i=p)}}}),i)return e.d=!1,t=qd(o,n),i.replace(r,t)}(t,e,n))a.push(u);else if(!o)return}else if(!o)return;for(var s,u,h,c={},p=0;p<o;p++){var d=r[p],g=[d.getMaxTime()/1e3+"s"],y=Zd(d.getClip().easing),_=d.getDelay(),y=(g.push(y||"linear"),_&&g.push(_/1e3+"s"),d.getLoop()&&g.push("infinite"),g.join(" "));c[y]=c[y]||[y,[]],c[y][1].push(d)}for(s in c)(u=function(r){function o(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/r*100)+"%",p=Zd(h.easing),d=h.rawValue;(b(d)||C(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,u=r[1],h=u.length,c={},p={},d={},f="animation-timing-function",g=0;g<h;g++)(O=(P=u[g]).targetName)?"shape"===O&&o(P,p):i||o(P,c);for(A in c){var y={},_=(ln(y,t),l(y,c[A]),ze(y)),x=c[A][f];d[A]=_?{transform:_}:{},_=d[A],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[tk]=a+"px "+y+"px"),x&&(d[A][f]=x)}var w,S,T,M=!0;for(A in p){d[A]=d[A]||{};var I=!s,x=p[A][f],k=(s=I?new ov:s).len(),D=(s.reset(),d[A].d=(S=p[A],T=s,D=void 0,D=l({},(w=t).shape),l(D,S),w.buildPath(T,D),(S=new GI).reset(Be(w)),T.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==D){M=!1;break}x&&(d[A][f]=x)}if(!M)for(var A in d)delete d[A].d;if(!i)for(var P,O,g=0;g<h;g++)"style"===(O=(P=u[g]).targetName)&&o(P,d,function(t){return ek[t]});for(var L,R=v(d),E=!0,g=1;g<R.length;g++){var N=R[g-1],B=R[g];if(d[N][tk]!==d[B][tk]){E=!1;break}L=d[N][tk]}if(E&&L){for(var A in d)d[A][tk]&&delete d[A][tk];e[tk]=L}if(m(R,function(t){return 0<v(d[t]).length}).length)return qd(d,n)+" "+r[0]+" both"}(c[s]))&&a.push(u);a.length&&(h=n.zrId+"-cls-"+QI++,n.cssNodes["."+h]={animation:a.join(",")},e.class=h)}function $d(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+QI++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}function Qd(t){return t&&b(t.src)}function Jd(t){return t&&w(t.toDataURL)}function tf(t,e,n,i){Gd(function(r,o){var a="fill"===r||"stroke"===r;a&&Ee(o)?uf(e,t,r,i):a&&Oe(o)?hf(n,t,r,i):t[r]=a&&"none"===o?"transparent":o},e,n,!1);var r=t,o=i;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(u=n).style)){var a=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=o.shadowCache,l=s[a];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Ie(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=o.zrId+"-s"+o.shadowIdx++,o.defs[l]=Ud("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ud("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}r.filter=Ne(l)}}function ef(t,e){var n=In(e);n&&(n.each(function(e,n){null!=e&&(t[($I+n).toLowerCase()]=e+"")}),e.isSilent())&&(t[$I+"silent"]="true")}function nf(t){return ke(t[0]-1)&&ke(t[1])&&ke(t[2])&&ke(t[3]-1)}function rf(t,e,n){var i;!e||ke((i=e)[4])&&ke(i[5])&&nf(e)||(i=n?10:1e4,t.transform=nf(e)?"translate("+nk(e[4]*i)/i+" "+nk(e[5]*i)/i+")":"matrix("+De((n=e)[0])+","+De(n[1])+","+De(n[2])+","+De(n[3])+","+Ae(n[4])+","+Ae(n[5])+")")}function of(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(nk(i[o][0]*n)/n),r.push(nk(i[o][1]*n)/n);e.points=r.join(" ")}function af(t){return!t.smooth}function sf(t,e){var n,i,r,o,a,s=t.style,l=t.shape,u=ik[t.type],h={},c=e.animation,p="path",d=t.style.strokePercent,f=e.compress&&Be(t)||4;return!u||e.willUpdate||u[1]&&!u[1](l)||c&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||d<1?(c=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),n=t.path,c&&(n.beginPath(),t.buildPath(n,t.shape),t.pathUpdated()),c=n.getVersion(),r=(i=t).__svgPathBuilder,i.__svgPathVersion===c&&r&&d===i.__svgPathStrokePercent||((r=r||(i.__svgPathBuilder=new GI)).reset(f),n.rebuildPath(r,d),r.generateStr(),i.__svgPathVersion=c,i.__svgPathStrokePercent=d),h.d=r.getStr()):(p=t.type,n=Math.pow(10,f),u[0](l,h,n)),rf(h,t.transform),tf(h,s,t,e),ef(h,t),e.animation&&Kd(t,h,e),e.emphasis&&(c=h,i=e,(d=t).ignore||(d.isSilent()?$d(a={"pointer-events":"none"},c,i,!0):(!(f=(r=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(o=d.style&&d.style.fill,u=d.states.select&&d.states.select.style&&d.states.select.style.fill,u=0<=d.currentStates.indexOf("select")&&u||o)&&(f=Me(u)),(o=r.lineWidth)&&(o/=!r.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),r.stroke&&(a.stroke=r.stroke),o&&(a["stroke-width"]=o),$d(a,c,i,!0)))),Ud(p,t.id+"",h)}function lf(t,e){if(t instanceof yv)return sf(t,e);if(t instanceof bv){var n=t,i=e,r=n.style,o=r.image;if(o&&!b(o)&&(Qd(o)?o=o.src:Jd(o)&&(o=o.toDataURL())),o)return a=r.x||0,s=r.y||0,o={href:o,width:r.width,height:r.height},a&&(o.x=a),s&&(o.y=s),rf(o,n.transform),tf(o,r,n,i),ef(o,n),i.animation&&Kd(n,o,i),Ud("image",n.id+"",o)}else if(t instanceof vv){var a=t,s=e,r=a.style,i=r.text;if(null!=i&&(i+=""),i&&!isNaN(r.x)&&!isNaN(r.y)){var n=r.font||Nf,o=r.x||0,l=(t=r.y||0,e=fn(n),"top"===(l=r.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":gy[r.textAlign]||r.textAlign};if(Xi(r)){var t="",u=r.fontStyle,h=ji(r.fontSize);if(!parseFloat(h))return;var c=r.fontFamily||Ef,p=r.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),o&&(e.x=o),l&&(e.y=l),rf(e,a.transform),tf(e,r,a,s),ef(e,a),s.animation&&Kd(a,e,s),Ud("text",a.id+"",e,void 0,i)}}}function uf(t,e,n,i){var r,t=t[n],o={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Le(t))r="linearGradient",o.x1=t.x,o.y1=t.y,o.x2=t.x2,o.y2=t.y2;else{if(!Re(t))return;r="radialGradient",o.cx=R(t.x,.5),o.cy=R(t.y,.5),o.r=R(t.r,.5)}for(var a=t.colorStops,s=[],l=0,u=a.length;l<u;++l){var h=100*Ae(a[l].offset)+"%",c=Ie(a[l].color),p=c.color,c=c.opacity,h={offset:h};h["stop-color"]=p,c<1&&(h["stop-opacity"]=c),s.push(Ud("stop",l+"",h))}var t=jd(Ud(r,"",o,s)),d=i.gradientCache,f=d[t];f||(f=i.zrId+"-g"+i.gradientIdx++,d[t]=f,o.id=f,i.defs[f]=Ud(r,f,o,s)),e[n]=Ne(f)}function hf(t,e,n,i){var r,o,s,l,u,h,c,p,d=t.style[n],f=t.getBoundingRect(),g={},y=d.repeat,m="no-repeat"===y,v="repeat-x"===y,_="repeat-y"===y;Pe(d)?(o=d.imageWidth,s=d.imageHeight,y=void 0,b(c=d.image)?y=c:Qd(c)?y=c.src:Jd(c)&&(y=c.toDataURL()),"undefined"==typeof Image?(z(o,c="Image width/height must been given explictly in svg-ssr renderer."),z(s,c)):null!=o&&null!=s||(l=function(t,e){var n,i;t&&(n=t.elm,i=o||e.width,e=s||e.height,"pattern"===t.tag&&(v?(e=1,i/=f.width):_&&(i=1,e/=f.height)),t.attrs.width=i,t.attrs.height=e,n)&&(n.setAttribute("width",i),n.setAttribute("height",e))},(c=vi(y,null,t,function(t){m||l(h,t),l(r,t)}))&&c.width&&c.height&&(o=o||c.width,s=s||c.height)),r=Ud("image","img",{href:y,width:o,height:s}),g.width=o,g.height=s):d.svgElement&&(r=a(d.svgElement),g.width=d.svgWidth,g.height=d.svgHeight),r&&(m?p=u=1:v?(u=1,p=g.width/f.width):_?(p=1,u=g.height/f.height):g.patternUnits="userSpaceOnUse",null==p||isNaN(p)||(g.width=p),null==u||isNaN(u)||(g.height=u),(t=ze(d))&&(g.patternTransform=t),c=jd(h=Ud("pattern","",g,[r])),(p=(y=i.patternCache)[c])||(p=i.zrId+"-p"+i.patternIdx++,y[c]=p,g.id=p,h=i.defs[p]=Ud("pattern",p,g,[r])),e[n]=Ne(p))}function cf(t){return document.createTextNode(t)}function pf(t,e,n){t.insertBefore(e,n)}function df(t,e){t.removeChild(e)}function ff(t,e){t.appendChild(e)}function gf(t){return t.parentNode}function yf(t){return t.nextSibling}function mf(t,e){t.textContent=e}function vf(t){return void 0===t}function _f(t){return void 0!==t}function xf(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function wf(t){var e,n=t.children,i=t.tag;if(_f(i)){var r=t.elm=Wd(i);if(Cf(ak,t),x(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&ff(r,wf(o))}else _f(t.text)&&!T(t.text)&&ff(r,cf(t.text))}else t.elm=cf(t.text);return t.elm}function bf(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&pf(t,wf(o),e)}}function Sf(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(_f(r.tag)?df(gf(r.elm),r.elm):df(t,r.elm))}}function Cf(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==ok?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(ZI,n,a):n.charCodeAt(3)===rk?i.setAttributeNS(KI,n,a):n.charCodeAt(5)===rk?i.setAttributeNS(qI,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function Tf(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:xf(u,p)?(Mf(u,p),u=e[++a],p=n[++s]):xf(h,d)?(Mf(h,d),h=e[--l],d=n[--c]):xf(u,d)?(Mf(u,d),pf(t,u.elm,yf(h.elm)),u=e[++a],d=n[--c]):(xf(h,p)?(Mf(h,p),pf(t,h.elm,u.elm),h=e[--l]):(vf(i)&&(i=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(e,a,l)),vf(r=i[p.key])||(o=e[r]).tag!==p.tag?pf(t,wf(p),u.elm):(Mf(o,p),e[r]=void 0,pf(t,o.elm,u.elm))),p=n[++s]);(a<=l||s<=c)&&(l<a?bf(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Sf(t,e,a,l))}function Mf(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Cf(t,e),vf(e.text)?_f(i)&&_f(r)?i!==r&&Tf(n,i,r):_f(r)?(_f(t.text)&&mf(n,""),bf(n,null,r,0,r.length-1)):_f(i)?Sf(n,i,0,i.length-1):_f(t.text)&&mf(n,""):t.text!==e.text&&(_f(i)&&Sf(n,i,0,i.length-1),mf(n,e.text)))}function If(t,e,n){var i;this.type="svg",this.refreshHover=kf(),this.configLayer=kf(),this.storage=e,this._opts=n=l({},n),this.root=t,this._id="zr"+sk++,this._oldVNode=Xd(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=Wd("svg"),Cf(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function kf(){return function(){}}var Df=function(t,e){return(Df=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])}))(t,e)},Af=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Pf=new function(){this.browser=new Af,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Pf.wxa=!0,Pf.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Pf.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Pf.node=!0,Pf.svgSupported=!0):(qf=navigator.userAgent,sg=(rg=Pf).browser,$f=qf.match(/Firefox\/([\d.]+)/),Gf=qf.match(/MSIE\s([\d.]+)/)||qf.match(/Trident\/.+?rv:(([\d.]+))/),Xf=qf.match(/Edge?\/([\d.]+)/),qf=/micromessenger/i.test(qf),$f&&(sg.firefox=!0,sg.version=$f[1]),Gf&&(sg.ie=!0,sg.version=Gf[1]),Xf&&(sg.edge=!0,sg.version=Xf[1],sg.newEdge=18<+Xf[1].split(".")[0]),qf&&(sg.weChat=!0),rg.svgSupported="undefined"!=typeof SVGRect,rg.touchEventsSupported="ontouchstart"in window&&!sg.ie&&!sg.edge,rg.pointerEventsSupported="onpointerdown"in window&&(sg.edge||sg.ie&&11<=+sg.version),rg.domSupported="undefined"!=typeof document,$f=document.documentElement.style,rg.transform3dSupported=(sg.ie&&"transition"in $f||sg.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in $f)&&!("OTransition"in $f),rg.transformSupported=rg.transform3dSupported||sg.ie&&9<=+sg.version);var Of,Lf,Rf=12,Ef="sans-serif",Nf=Rf+"px "+Ef,Bf=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),zf={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(Of||(n=zf.createCanvas(),Of=n&&n.getContext("2d")),Of)return Lf!==e&&(Lf=Of.font=e||Nf),Of.measureText(t);t=t||"",e=e||Nf;var n=/((?:\d+)?\.?\d*)px/.exec(e),i=n&&+n[1]||Rf,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=Bf[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},Ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Vf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Hf=Object.prototype.toString,Gf=Array.prototype,Wf=Gf.forEach,Uf=Gf.filter,jf=Gf.slice,Yf=Gf.map,Xf=function(){}.constructor,qf=Xf?Xf.prototype:null,Zf="__proto__",Kf=2311,$f=zf.createCanvas,Qf=qf&&w(qf.bind)?qf.call.bind(qf.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(jf.call(arguments)))}},Jf="__ec_primitive__";G.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},G.prototype.has=function(t){return this.data.hasOwnProperty(t)},G.prototype.get=function(t){return this.data[t]},G.prototype.set=function(t,e){return this.data[t]=e,this},G.prototype.keys=function(){return v(this.data)},G.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var tg=G,eg="function"==typeof Map;W.prototype.hasKey=function(t){return this.data.has(t)},W.prototype.get=function(t){return this.data.get(t)},W.prototype.set=function(t,e){return this.data.set(t,e),e},W.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},W.prototype.keys=function(){var t=this.data.keys();return eg?Array.from(t):t},W.prototype.removeKey=function(t){this.data.delete(t)};var ng=W,ig=180/Math.PI,rg=Object.freeze({__proto__:null,HashMap:ng,RADIAN_TO_DEGREE:ig,assert:z,bind:Qf,clone:a,concatArray:j,createCanvas:$f,createHashMap:U,createObject:Y,curry:_,defaults:u,disableUserSelect:X,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},guid:r,hasOwn:q,indexOf:h,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:M,isDom:k,isFunction:w,isGradientObject:D,isImagePatternObject:A,isNumber:C,isObject:T,isPrimitive:H,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:o,map:g,merge:s,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=s(n,t[i],e);return n},mixin:p,noop:Z,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:R,retrieve3:E,setAsPrimitive:V,slice:N,trim:F}),og=rt,ag=ot,sg=Object.freeze({__proto__:null,add:Q,applyTransform:st,clone:$,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:K,dist:og,distSquare:ag,distance:rt,distanceSquare:ot,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:tt,lenSquare:et,length:tt,lengthSquare:et,lerp:at,max:ut,min:lt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:it,scale:nt,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:J}),lg=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ug=(ht.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new lg(e,t),"dragstart",t.event))},ht.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new lg(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new lg(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new lg(i,t),"dragenter",t.event)},ht.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new lg(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new lg(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ht);ct.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e],i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},ct.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ct.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ct.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},ct.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var hg=ct,cg=Math.log(2),pg="___zrEVENTSAVED",dg=[],fg=/([&<>"'])/g,gg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mg=[],vg=Pf.browser.firefox&&+Pf.browser.version.split(".")[0]<39,_g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xg=(wt.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},wt.prototype.clear=function(){return this._track.length=0,this},wt.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=mt(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},wt.prototype._recognize=function(t){for(var e in wg)if(wg.hasOwnProperty(e)&&(e=wg[e](this._track,t)))return e},wt),wg={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=bt(n)/bt(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}},bg=Object.freeze({__proto__:null,clone:function(t){var e=St();return Tt(e,t),e},copy:Tt,create:St,identity:Ct,invert:At,mul:Mt,rotate:kt,scale:Dt,translate:It}),Sg=(Pt.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Pt.prototype.clone=function(){return new Pt(this.x,this.y)},Pt.prototype.set=function(t,e){return this.x=t,this.y=e,this},Pt.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Pt.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Pt.prototype.scale=function(t){this.x*=t,this.y*=t},Pt.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Pt.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Pt.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Pt.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Pt.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Pt.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Pt.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Pt.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Pt.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Pt.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Pt.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Pt.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Pt.set=function(t,e,n){t.x=e,t.y=n},Pt.copy=function(t,e){t.x=e.x,t.y=e.y},Pt.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Pt.lenSquare=function(t){return t.x*t.x+t.y*t.y},Pt.dot=function(t,e){return t.x*e.x+t.y*e.y},Pt.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Pt.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Pt.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Pt.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Pt.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},Pt),Cg=Math.min,Tg=Math.max,Mg=new Sg,Ig=new Sg,kg=new Sg,Dg=new Sg,Ag=new Sg,Pg=new Sg,Og=(Ot.prototype.union=function(t){var e=Cg(t.x,this.x),n=Cg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Tg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Tg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Ot.prototype.applyTransform=function(t){Ot.applyTransform(this,this,t)},Ot.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=St();return It(i,i,[-this.x,-this.y]),Dt(i,i,[e,n]),It(i,i,[t.x,t.y]),i},Ot.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ot||(t=Ot.create(t));var n,i,r,o,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(r,o),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,r<o?Sg.set(Pg,-r,0):Sg.set(Pg,o,0)):l<n&&(n=l,r<o?Sg.set(Ag,r,0):Sg.set(Ag,-o,0)),h<y||t<d?i<u&&(i=u,a<s?Sg.set(Pg,0,-a):Sg.set(Pg,0,s)):l<n&&(n=l,a<s?Sg.set(Ag,0,a):Sg.set(Ag,0,-s))),e&&Sg.copy(e,m?Ag:Pg),m},Ot.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Ot.prototype.clone=function(){return new Ot(this.x,this.y,this.width,this.height)},Ot.prototype.copy=function(t){Ot.copy(this,t)},Ot.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ot.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ot.prototype.isZero=function(){return 0===this.width||0===this.height},Ot.create=function(t){return new Ot(t.x,t.y,t.width,t.height)},Ot.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ot.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Mg.x=kg.x=e.x,Mg.y=Dg.y=e.y,Ig.x=Dg.x=e.x+e.width,Ig.y=kg.y=e.y+e.height,Mg.transform(n),Dg.transform(n),Ig.transform(n),kg.transform(n),t.x=Cg(Mg.x,Ig.x,kg.x,Dg.x),t.y=Cg(Mg.y,Ig.y,kg.y,Dg.y),o=Tg(Mg.x,Ig.x,kg.x,Dg.x),a=Tg(Mg.y,Ig.y,kg.y,Dg.y),t.width=o-t.x,t.height=a-t.y):t!==e&&Ot.copy(t,e)},Ot),Lg="silent";n(Rt,Rg=hg),Rt.prototype.dispose=function(){},Rt.prototype.setCursor=function(){};var Rg,Eg,Ng=Rt,Bg=function(t,e){this.x=t,this.y=e},zg=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Fg=new Og(0,0,0,0),Vg=(n(Et,Eg=hg),Et.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f(zg,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},Et.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Bt(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new Bg(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},Et.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})},Et.prototype.resize=function(){this._hovered=new Bg(0,0)},Et.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},Et.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Et.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Et.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.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:Lt};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget||i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},Et.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Bg(t,e);if(Nt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Og(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Fg.copy(h.getBoundingRect()),h.transform&&Fg.applyTransform(h.transform),Fg.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(Nt(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},Et.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new xg);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new Bg).target=i.target,this.dispatchToElement(n,e,i.event))},Et);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Vg.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Bt(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<og(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Hg=32,Gg=7,Wg=1,Ug=4,jg=!1;Yt.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Yt.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Yt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Wt(n,jt)},Yt.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Wg),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else i=t,e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Ut(),i.z=0),isNaN(i.z2)&&(Ut(),i.z2=0),isNaN(i.zlevel)&&(Ut(),i.zlevel=0),this._displayList[this._displayListLen++]=i;i=t.getDecalElement&&t.getDecalElement(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextGuideLine(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextContent(),i&&this._updateAndAddDisplayable(i,e,n)}},Yt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Yt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);0<=i&&this._roots.splice(i,1)}},Yt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Yt.prototype.getRoots=function(){return this._roots},Yt.prototype.dispose=function(){this._displayList=null,this._roots=null};var Yg=Yt,Xg=Pf.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},qg={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;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-qg.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*qg.bounceIn(2*t):.5*qg.bounceOut(2*t-1)+.5}},Zg=Math.pow,Kg=Math.sqrt,$g=1e-8,Qg=Kg(3),Jg=1/3,ty=K(),ey=K(),ny=K(),iy=/cubic-bezier\(([0-9,\.e ]+)\)/;se.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},se.prototype.pause=function(){this._paused=!0},se.prototype.resume=function(){this._paused=!1},se.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:qg[t]||ae(t)};var ry=se,oy=function(t){this.value=t},ay=(le.prototype.insert=function(t){return t=new oy(t),this.insertEntry(t),t},le.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},le.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--},le.prototype.len=function(){return this._len},le.prototype.clear=function(){this.head=this.tail=null,this._len=0},le);ue.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new oy(e),n.key=t,r.insertEntry(n),o[t]=n),a},ue.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},ue.prototype.clear=function(){this._list.clear(),this._map={}},ue.prototype.len=function(){return this._list.len()};var sy=ue,ly={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},uy=new sy(20),hy=null,cy=be,py=Se,dy=new sy(100),cy=Object.freeze({__proto__:null,fastLerp:be,fastMapToColor:cy,lerp:Se,lift:we,liftColor:Me,lum:Te,mapToColor:py,modifyAlpha:function(t,e){if((t=_e(t))&&null!=e)return t[3]=ce(e),Ce(t,"rgba")},modifyHSL:function(t,e,n,i){var r=_e(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),r=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=o=0:(a=r<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?o=u-l:e===i?o=1/3+s-u:n===i&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),h=[360*o,a,r],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=de(n)),null!=i&&(r[2]=de(i)),Ce(xe(r),"rgba")},parse:_e,random:function(){return Ce([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ce,toHex:function(t){if(t=_e(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),fy=Math.round,gy={left:"start",right:"end",center:"middle",middle:"middle"},yy=Pf.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},my=Array.prototype.slice,vy=[0,0,0,0],_y=(Xe.prototype.isFinished=function(){return this._finished},Xe.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Xe.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Xe.prototype.getAdditiveTrack=function(){return this._additiveTrack},Xe.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,u=e,h=(d(e)?(1==(s=i=d((i=e)&&i[0])?2:1)&&!C(e[0])||2==i&&!C(e[0][0]))&&(a=!0):C(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(i=_e(e))&&(u=i,s=3):s=0:D(e)&&((h=l({},u)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:_e(t.color)}}),Le(e)?s=4:Re(e)&&(s=5),u=h),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:u,rawValue:e,percent:0});return n&&(h.easing=n,h.easingFunc=w(n)?n:qg[n]||ae(n)),r.push(h),h},Xe.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),r=n.length,o=n[r-1],a=this.discrete,s=Ye(i),l=je(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:my.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=C=S=b=w=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),C=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:C.offset,color:C.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var M=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-M:3===i?n[u].additiveValue=He([],n[u].value,M,-1):Ye(i)&&(n[u].additiveValue=(1===i?He:Ge)([],n[u].value,M,-1))}},Xe.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,h-1);0<=y&&!(u[y].percent<=e);y--);y=f(y,h-2)}else{for(y=d;y<h&&!(u[y].percent>e);y++);y=f(y-1,h-2)}i=u[y+1],n=u[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?vy:t[c],(Ye(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:Ye(l)?(1===l?Ve:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Fe(e[a][s],n[a][s],i)}})(f,n[s],i[s],r):je(l)?(d=n[s],o=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fe(d.x,o.x,r),y:Fe(d.y,o.y,r),colorStops:g(d.colorStops,function(t,e){return e=o.colorStops[e],{offset:Fe(t.offset,e.offset,r),color:Ue(Ve([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Fe(d.x2,o.x2,r),t[c].y2=Fe(d.y2,o.y2,r)):t[c].r=Fe(d.r,o.r,r)):p?(Ve(f,n[s],i[s],r),a||(t[c]=Ue(f))):(l=Fe(n[s],i[s],r),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Xe.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(_e(t[n],vy),He(vy,vy,i,1),t[n]=Ue(vy)):1===e?He(t[n],t[n],i,1):2===e&&Ge(t[n],t[n],i,1)},Xe);qe.prototype.getMaxTime=function(){return this._maxTime},qe.prototype.getDelay=function(){return this._delay},qe.prototype.getLoop=function(){return this._loop},qe.prototype.getTarget=function(){return this._target},qe.prototype.changeTarget=function(t){this._target=t},qe.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,v(e),n)},qe.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new _y(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&Ue(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,We(u),i),this._trackKeys.push(a)}l.addKeyframe(t,We(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},qe.prototype.pause=function(){this._clip.pause(),this._paused=!0},qe.prototype.resume=function(){this._clip.resume(),this._paused=!1},qe.prototype.isPaused=function(){return!!this._paused},qe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},qe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},qe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},qe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},qe.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},qe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,n=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,u=l.length;s.prepare(r,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[u-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):i.push(s))}return i.length||this._force?(e=new ry({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(n._target,t);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},qe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},qe.prototype.delay=function(t){return this._delay=t,this},qe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},qe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},qe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},qe.prototype.getClip=function(){return this._clip},qe.prototype.getTrack=function(t){return this._tracks[t]},qe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},qe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},qe.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=We(o.rawValue))}}},qe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var xy=qe;n(Ke,wy=hg),Ke.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Ke.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Ke.prototype.removeClip=function(t){var e,n;t.animation&&(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)},Ke.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ke.prototype.update=function(t){for(var e=Ze()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Ke.prototype._startLoop=function(){var t=this;this._running=!0,Xg(function e(){t._running&&(Xg(e),t._paused||t.update())})},Ke.prototype.start=function(){this._running||(this._time=Ze(),this._pausedTime=0,this._startLoop())},Ke.prototype.stop=function(){this._running=!1},Ke.prototype.pause=function(){this._paused||(this._pauseStart=Ze(),this._paused=!0)},Ke.prototype.resume=function(){this._paused&&(this._pausedTime+=Ze()-this._pauseStart,this._paused=!1)},Ke.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},Ke.prototype.isFinished=function(){return null==this._head},Ke.prototype.animate=function(t,e){return e=e||{},this.start(),t=new xy(t,e.loop),this.addAnimator(t),t};var wy,by,Sy,Cy,Ty=Ke,My=Pf.domSupported,Iy=(by={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:py=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(py,function(t){var e=t.replace("mouse","pointer");return by.hasOwnProperty(e)?e:t})}),ky=["mousemove","mouseup"],Dy=["pointermove","pointerup"],Ay=!1,Py=function(t,e){this.stopPropagation=Z,this.stopImmediatePropagation=Z,this.preventDefault=Z,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Oy={mousedown:function(t){t=xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xt(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=xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Je(this,(t=xt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ay=!0,t=xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ay||(t=xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Qe(t=xt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Oy.mousemove.call(this,t),Oy.mousedown.call(this,t)},touchmove:function(t){Qe(t=xt(this.dom,t)),this.handler.processGesture(t,"change"),Oy.mousemove.call(this,t)},touchend:function(t){Qe(t=xt(this.dom,t)),this.handler.processGesture(t,"end"),Oy.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Oy.click.call(this,t)},pointerdown:function(t){Oy.mousedown.call(this,t)},pointermove:function(t){$e(t)||Oy.mousemove.call(this,t)},pointerup:function(t){Oy.mouseup.call(this,t)},pointerout:function(t){$e(t)||Oy.mouseout.call(this,t)}},Ly=(f(["click","dblclick","contextmenu"],function(t){Oy[t]=function(e){e=xt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){$e(t)||Ly.mousemove.call(this,t)},pointerup:function(t){Ly.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}}),Ry=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ey=(n(on,Sy=hg),on.prototype.dispose=function(){rn(this._localHandlerScope),My&&rn(this._globalHandlerScope)},on.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},on.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,My&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?en(this,e):rn(e))},on),py=1,Ny=py=Pf.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):py,By="#333",zy="#ccc",Fy=Ct,Vy=[],Hy=[],Gy=St(),Wy=Math.abs,Uy=(sn.prototype.getLocalTransform=function(t){return sn.getLocalTransform(this,t)},sn.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},sn.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},sn.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},sn.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},sn.prototype.needLocalTransform=function(){return an(this.rotation)||an(this.x)||an(this.y)||an(this.scaleX-1)||an(this.scaleY-1)||an(this.skewX)||an(this.skewY)},sn.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||St(),e?this.getLocalTransform(n):Fy(n),t&&(e?Mt(n,t,n):Tt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Fy(n),this.invTransform=null)},sn.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Vy),n=((Vy[1]-(n=Vy[1]<0?-1:1))*i+n)/Vy[1]||0,t[0]*=i=((Vy[0]-(e=Vy[0]<0?-1:1))*i+e)/Vy[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||St(),At(this.invTransform,t)},sn.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},sn.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},sn.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||St(),Mt(Hy,e.invTransform,t),t=Hy),e=this.originX,n=this.originY,(e||n)&&(Gy[4]=e,Gy[5]=n,Mt(Hy,t,Gy),Hy[4]-=e,Hy[5]-=n,t=Hy),this.setLocalTransform(t))},sn.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[0]=1,t[1]=1),t},sn.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&st(t,t,e),t},sn.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&st(t,t,e),t},sn.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Wy(t[0]-1)&&1e-10<Wy(t[3]-1)?Math.sqrt(Wy(t[0]*t[3]-t[2]*t[1])):1},sn.prototype.copyTransform=function(t){ln(this,t)},sn.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&kt(e,e,l),e[4]+=n+u,e[5]+=i+h,e},sn.initDefaultProps=((py=sn.prototype).scaleX=py.scaleY=py.globalScaleRatio=1,void(py.x=py.y=py.originX=py.originY=py.skewX=py.skewY=py.rotation=py.anchorX=py.anchorY=0)),sn),jy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Yy={},Xy="__zr_normal__",qy=jy.concat(["ignore"]),Zy=y(jy,function(t,e){return t[e]=!0,t},{ignore:!1}),Ky={},$y=new Og(0,0,0,0),py=(mn.prototype._init=function(t){this.attr(t)},mn.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},mn.prototype.beforeUpdate=function(){},mn.prototype.afterUpdate=function(){},mn.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},mn.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,r=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=$y,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ky,t,u):yn(Ky,t,u),e.x=Ky.x,e.y=Ky.y,n=Ky.align,i=Ky.verticalAlign,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*u.width,.5*u.height):(a=gn(o[0],u.width),gn(o[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],h||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(r=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=Wg,r&&c.dirtyStyle(!0))},mn.prototype.canBeInsideText=function(){return!0},mn.prototype.getInsideTextFill=function(){return"#fff"},mn.prototype.getInsideTextStroke=function(t){return"#000"},mn.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zy:By},mn.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&_e(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ce(n,"rgba")},mn.prototype.traverse=function(t,e){},mn.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||{},l(this.extra,e)):this[t]=e},mn.prototype.hide=function(){this.ignore=!0,this.markRedraw()},mn.prototype.show=function(){this.ignore=!1,this.markRedraw()},mn.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(T(t))for(var n=v(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},mn.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;i.getLoop()||r&&r!==Xy||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},mn.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,qy)},mn.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},mn.prototype.hasState=function(){return 0<this.currentStates.length},mn.prototype.getState=function(t){return this.states[t]},mn.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},mn.prototype.clearStates=function(t){this.useState(Xy,!1,t)},mn.prototype.useState=function(t,e,n,i){var r=t===Xy,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=h(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&l&&0<l.duration,l),i=this._textContent,l=this._textGuide,i&&i.useState(t,e,n,a),l&&l.useState(t,e,n,a),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg),s;o("State "+t+" not exists.")}}},mn.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[o-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg)}}else this.clearStates()},mn.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},mn.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},mn.prototype.removeState=function(t){var e,t=h(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},mn.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=h(i,t),r=0<=h(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},mn.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},mn.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];l(n,r),r.textConfig&&l(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},mn.prototype._applyStateObj=function(t,e,n,i,r,o){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=l({},(i?this:n).textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,h=0;h<qy.length;h++){var c=qy[h],p=r&&Zy[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,s,o)},mn.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},mn.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},mn.prototype.getClipPath=function(){return this._clipPath},mn.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},mn.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},mn.prototype.getTextContent=function(){return this._textContent},mn.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Uy,this._attachComponent(t),this._textContent=t,this.markRedraw())},mn.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},mn.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},mn.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},mn.prototype.getTextGuideLine=function(){return this._textGuide},mn.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},mn.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},mn.prototype.markRedraw=function(){this.__dirty|=Wg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},mn.prototype.dirty=function(){this.markRedraw()},mn.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},mn.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},mn.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},mn.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new xy(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},mn.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=h(e,t);0<=n&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},mn.prototype.updateDuringAnimation=function(t){this.markRedraw()},mn.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},mn.prototype.animateTo=function(t,e,n){_n(this,t,e,n)},mn.prototype.animateFrom=function(t,e,n){_n(this,t,e,n,!0)},mn.prototype._transitionState=function(t,e,n,i){for(var r=_n(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},mn.prototype.getBoundingRect=function(){return null},mn.prototype.getPaintRect=function(){return null},mn.initDefaultProps=((Cy=mn.prototype).type="element",Cy.name="",Cy.ignore=Cy.silent=Cy.isGroup=Cy.draggable=Cy.dragging=Cy.ignoreClip=Cy.__inHover=!1,Cy.__dirty=Wg,void(Object.defineProperty&&(vn("position","_legacyPos","x","y"),vn("scale","_legacyScale","scaleX","scaleY"),vn("origin","_legacyOrigin","originX","originY")))),mn);p(py,hg),p(py,Uy),n(Sn,Qy=py),Sn.prototype.childrenRef=function(){return this._children},Sn.prototype.children=function(){return this._children.slice()},Sn.prototype.childAt=function(t){return this._children[t]},Sn.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Sn.prototype.childCount=function(){return this._children.length},Sn.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Sn.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},Sn.prototype.replace=function(t,e){return t=h(this._children,t),0<=t&&this.replaceAt(e,t),this},Sn.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},Sn.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},Sn.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Sn.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},Sn.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},Sn.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},Sn.prototype.addSelfToZr=function(t){Qy.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Sn.prototype.removeSelfFromZr=function(t){Qy.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Sn.prototype.getBoundingRect=function(t){for(var e=new Og(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(Og.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var Qy,Jy=Sn;Jy.prototype.type="group";var tm={},em={};Cn.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Cn.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Cn.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Cn.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Te(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Te(e[r].color,1);return(n/=i)<.4}}return!1}(t))},Cn.prototype.getBackgroundColor=function(){return this._backgroundColor},Cn.prototype.setDarkMode=function(t){this._darkMode=t},Cn.prototype.isDarkMode=function(){return this._darkMode},Cn.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Cn.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Cn.prototype.flush=function(){this._disposed||this._flush(!1)},Cn.prototype._flush=function(t){var e,n=Ze(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Ze());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},Cn.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Cn.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Cn.prototype.refreshHover=function(){this._needsRefreshHover=!0},Cn.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Cn.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Cn.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Cn.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Cn.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Cn.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Cn.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Cn.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Cn.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Cn.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Cn.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Jy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Cn.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete em[t])};var nm,im,rm=Cn,om=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in em)em.hasOwnProperty(t)&&em[t].dispose();em={}},getElementSSRData:In,getInstance:function(t){return em[t]},init:Tn,registerPainter:Mn,registerSSRDataGetter:kn,version:"5.6.0"}),am=20,sm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,lm="series\0",um=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],hm=Wn(),cm={useDefault:!0,enableAll:!1,enableNone:!1},pm=".",dm="___EC__COMPONENT__CONTAINER___",fm="___EC__EXTENDED_CLASS___",gm=Math.round(10*Math.random()),ym=yi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mm=(mi.prototype.getAreaStyle=function(t,e){return ym(this,t,e)},mi),vm=new sy(50),_m=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,xm=function(){},wm=function(t){this.tokens=[],t&&(this.tokens=t)},bm=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Sm=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Cm="__zr_style_"+Math.round(10*Math.random()),Tm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Im=(Tm[Cm]=!0,["z","z2","invisible"]),km=["invisible"],py=(n(Ii,im=py),Ii.prototype._init=function(t){for(var e=v(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):im.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},Ii.prototype.beforeBrush=function(){},Ii.prototype.afterBrush=function(){},Ii.prototype.innerBeforeBrush=function(){},Ii.prototype.innerAfterBrush=function(){},Ii.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return Dm.copy(t.getBoundingRect()),t.transform&&Dm.applyTransform(t.transform),Am.width=e,Am.height=n,!Dm.intersect(Am)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},Ii.prototype.contain=function(t,e){return this.rectContain(t,e)},Ii.prototype.traverse=function(t,e){t.call(e,this)},Ii.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},Ii.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new Og(0,0,0,0)),r?Og.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},Ii.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Og(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},Ii.prototype.getPrevPaintRect=function(){return this._prevPaintRect},Ii.prototype.animateStyle=function(t){return this.animate("style",t)},Ii.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},Ii.prototype.attrKV=function(t,e){"style"!==t?im.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},Ii.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},Ii.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},Ii.prototype.dirty=function(){this.dirtyStyle()},Ii.prototype.styleChanged=function(){return!!(2&this.__dirty)},Ii.prototype.styleUpdated=function(){this.__dirty&=-3},Ii.prototype.createStyle=function(t){return Y(Tm,t)},Ii.prototype.useStyle=function(t){t[Cm]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},Ii.prototype.isStyleObject=function(t){return t[Cm]},Ii.prototype._innerSaveToNormal=function(t){im.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Im)},Ii.prototype._applyStateObj=function(t,e,n,i,r,o){im.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=v(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?km:Im,h=0;h<d.length;h++)p=d[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},Ii.prototype._mergeStates=function(t){for(var e,n=im.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},Ii.prototype._mergeStyle=function(t,e){return l(t,e),t},Ii.prototype.getAnimationStyleProps=function(){return Mm},Ii.initDefaultProps=((py=Ii.prototype).type="displayable",py.invisible=!1,py.z=0,py.z2=0,py.zlevel=0,py.culling=!1,py.cursor="pointer",py.rectHover=!1,py.incremental=!1,py._rect=null,py.dirtyRectTolerance=0,void(py.__dirty=2|Wg)),Ii),Dm=new Og(0,0,0,0),Am=new Og(0,0,0,0),Pm=Math.min,Om=Math.max,Lm=Math.sin,Rm=Math.cos,Em=2*Math.PI,Nm=K(),Bm=K(),zm=K(),Fm=[],Vm=[],Hm={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gm=[],Wm=[],Um=[],jm=[],Ym=[],Xm=[],qm=Math.min,Zm=Math.max,Km=Math.cos,$m=Math.sin,Qm=Math.abs,Jm=Math.PI,tv=2*Jm,ev="undefined"!=typeof Float32Array,nv=[];Ai.prototype.increaseVersion=function(){this._version++},Ai.prototype.getVersion=function(){return this._version},Ai.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Qm(n/Ny/t)||0,this._uy=Qm(n/Ny/e)||0)},Ai.prototype.setDPR=function(t){this.dpr=t},Ai.prototype.setContext=function(t){this._ctx=t},Ai.prototype.getContext=function(){return this._ctx},Ai.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Ai.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Ai.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Hm.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},Ai.prototype.lineTo=function(t,e){var n=Qm(t-this._xi),i=Qm(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(Hm.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},Ai.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Hm.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},Ai.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Hm.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},Ai.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),nv[0]=i,nv[1]=r,s=o,(l=Di((a=nv)[0]))<0&&(l+=tv),h=l-a[0],u=a[1],u+=h,!s&&tv<=u-l?u=l+tv:s&&tv<=l-u?u=l-tv:!s&&u<l?u=l+(tv-Di(l-u)):s&&l<u&&(u=l-(tv-Di(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=nv[1])-(i=nv[0]);return this.addData(Hm.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Km(r)*n+t,this._yi=$m(r)*n+e,this},Ai.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},Ai.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Hm.R,t,e,n,i),this},Ai.prototype.closePath=function(){this._drawPendingPt(),this.addData(Hm.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},Ai.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Ai.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Ai.prototype.len=function(){return this._len},Ai.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ev||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},Ai.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();for(ev&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},Ai.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},Ai.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Ai.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},Ai.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ev)&&11<this._len&&(this.data=new Float32Array(t))},Ai.prototype.getBoundingRect=function(){Um[0]=Um[1]=Ym[0]=Ym[1]=Number.MAX_VALUE,jm[0]=jm[1]=Xm[0]=Xm[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(r=n=e[a],o=i=e[a+1]),s){case Hm.M:n=r=e[a++],i=o=e[a++],Ym[0]=r,Ym[1]=o,Xm[0]=r,Xm[1]=o;break;case Hm.L:ki(n,i,e[a],e[a+1],Ym,Xm),n=e[a++],i=e[a++];break;case Hm.C:C=S=b=w=x=_=v=m=y=g=f=d=p=c=h=u=void 0;var u=n,h=i,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=Ym,v=Xm,_=Qt,x=Zt,w=_(u,c,d,g,Fm);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var b=0;b<w;b++){var S=x(u,c,d,g,Fm[b]);m[0]=Pm(S,m[0]),v[0]=Om(S,v[0])}for(w=_(h,p,f,y,Vm),b=0;b<w;b++){var C=x(h,p,f,y,Vm[b]);m[1]=Pm(C,m[1]),v[1]=Om(C,v[1])}m[0]=Pm(u,m[0]),v[0]=Om(u,v[0]),m[0]=Pm(g,m[0]),v[0]=Om(g,v[0]),m[1]=Pm(h,m[1]),v[1]=Om(h,v[1]),m[1]=Pm(y,m[1]),v[1]=Om(y,v[1]),n=e[a++],i=e[a++];break;case Hm.Q:_=n,F=i,P=e[a++],I=e[a++],A=e[a],T=e[a+1],D=Ym,O=Xm,t=k=t=M=void 0,M=ee,t=Om(Pm((k=ie)(_,P,A),1),0),k=Om(Pm(k(F,I,T),1),0),P=M(_,P,A,t),t=M(F,I,T,k),D[0]=Pm(_,A,P),D[1]=Pm(F,T,t),O[0]=Om(_,A,P),O[1]=Om(F,T,t),n=e[a++],i=e[a++];break;case Hm.A:var T,M=e[a++],I=e[a++],k=e[a++],D=e[a++],A=e[a++],P=e[a++]+A,O=(a+=1,!e[a++]),L=(l&&(r=Km(A)*k+M,o=$m(A)*D+I),U=T=W=G=H=V=F=z=B=N=E=R=L=void 0,M),R=I,E=k,N=D,B=A,z=P,F=O,V=Ym,H=Xm,G=lt,W=ut;if((T=Math.abs(B-z))%Em<1e-4&&1e-4<T)V[0]=L-E,V[1]=R-N,H[0]=L+E,H[1]=R+N;else{Nm[0]=Rm(B)*E+L,Nm[1]=Lm(B)*N+R,Bm[0]=Rm(z)*E+L,Bm[1]=Lm(z)*N+R,G(V,Nm,Bm),W(H,Nm,Bm),(B%=Em)<0&&(B+=Em),(z%=Em)<0&&(z+=Em),z<B&&!F?z+=Em:B<z&&F&&(B+=Em),F&&(T=z,z=B,B=T);for(var U=0;U<z;U+=Math.PI/2)B<U&&(zm[0]=Rm(U)*E+L,zm[1]=Lm(U)*N+R,G(V,zm,V),W(H,zm,H))}n=Km(P)*k+M,i=$m(P)*D+I;break;case Hm.R:ki(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],Ym,Xm);break;case Hm.Z:n=r,i=o}lt(Um,Um,Ym),ut(jm,jm,Xm)}return 0===a&&(Um[0]=Um[1]=jm[0]=jm[1]=0),new Og(Um[0],Um[1],jm[0]-Um[0],jm[1]-Um[1])},Ai.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case Hm.M:r=a=t[c++],o=s=t[c++];break;case Hm.L:var g=t[c++],y=(_=t[c++])-o;(Qm(I=g-r)>n||Qm(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);break;case Hm.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zt(t,n,r,a,d),d=Zt(e,i,o,s,d),g=f-u,y=d-h;c+=Math.sqrt(g*g+y*y),u=f,h=d}return c}(r,o,m,v,g,_,x,w),r=x,o=w;break;case Hm.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=ee(t,n,r,c),c=ee(e,i,o,c),d=p-s,f=c-l;u+=Math.sqrt(d*d+f*f),s=p,l=c}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),r=g,o=_;break;case Hm.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],C=t[c++],T=t[c++],M=T+C;c+=1,d&&(a=Km(C)*b+x,s=$m(C)*S+w),f=Zm(b,S)*qm(tv,Math.abs(T)),r=Km(M)*b+x,o=$m(M)*S+w;break;case Hm.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Hm.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},Ai.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=h[v++],x=1===v;switch(x&&(n=r=h[v],i=o=h[v+1]),_!==Hm.L&&0<m&&(t.lineTo(l,u),m=0),_){case Hm.M:n=r=h[v++],i=o=h[v++],t.moveTo(r,o);break;case Hm.L:var w=h[v++],b=h[v++],S=Qm(w-r),C=Qm(b-o);if(c<S||p<C){if(f){if(s<g+(G=a[y++])){var T=(s-g)/G;t.lineTo(r*(1-T)+w*T,o*(1-T)+b*T);break t}g+=G}t.lineTo(w,b),r=w,o=b,m=0}else S=S*S+C*C,m<S&&(l=w,u=b,m=S);break;case Hm.C:var M=h[v++],I=h[v++],k=h[v++],D=h[v++],C=h[v++],S=h[v++];if(f){if(s<g+(G=a[y++])){Jt(r,M,k,C,T=(s-g)/G,Gm),Jt(o,I,D,S,T,Wm),t.bezierCurveTo(Gm[1],Wm[1],Gm[2],Wm[2],Gm[3],Wm[3]);break t}g+=G}t.bezierCurveTo(M,I,k,D,C,S),r=C,o=S;break;case Hm.Q:if(M=h[v++],I=h[v++],k=h[v++],D=h[v++],f){if(s<g+(G=a[y++])){re(r,M,k,T=(s-g)/G,Gm),re(o,I,D,T,Wm),t.quadraticCurveTo(Gm[1],Wm[1],Gm[2],Wm[2]);break t}g+=G}t.quadraticCurveTo(M,I,k,D),r=k,o=D;break;case Hm.A:var A=h[v++],P=h[v++],O=h[v++],L=h[v++],R=h[v++],E=h[v++],N=h[v++],B=!h[v++],z=L<O?O:L,F=.001<Qm(O-L),V=R+E,H=!1;if(f&&(s<g+(G=a[y++])&&(V=R+E*(s-g)/G,H=!0),g+=G),F&&t.ellipse?t.ellipse(A,P,O,L,N,R,V,B):t.arc(A,P,z,R,V,B),H)break t;x&&(n=Km(R)*O+A,i=$m(R)*L+P),r=Km(V)*O+A,o=$m(V)*L+P;break;case Hm.R:n=r=h[v],i=o=h[v+1],w=h[v++],b=h[v++];var G,E=h[v++],F=h[v++];if(f){if(s<g+(G=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+qm(N,E),b),0<(N-=E)&&t.lineTo(w+E,b+qm(N,F)),0<(N-=F)&&t.lineTo(w+Zm(E-N,0),b+F),0<(N-=E)&&t.lineTo(w,b+Zm(F-N,0));break t}g+=G}t.rect(w,b,E,F);break;case Hm.Z:if(f){if(s<g+(G=a[y++])){T=(s-g)/G,t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}g+=G}t.closePath(),r=n,o=i}}},Ai.prototype.clone=function(){var t=new Ai,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Ai.CMD=Hm,Ai.initDefaultProps=((p_=Ai.prototype)._saveData=!0,p_._ux=0,p_._uy=0,p_._pendingPtDist=0,void(p_._version=0));var iv,rv,ov=Ai,av=2*Math.PI,sv=2*Math.PI,lv=ov.CMD,uv=2*Math.PI,hv=1e-4,cv=[-1,-1,-1],pv=[-1,-1],dv=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Tm),fv={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mm.style)},gv=jy.concat(["invisible","culling","z","z2","zlevel","parent"]),yv=(n(Bi,iv=py),Bi.prototype.update=function(){var t=this,e=(iv.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new Bi,r=(i.buildPath===Bi.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0,i.style);for(n in e)r[n]!==e[n]&&(r[n]=e[n]);r.fill=e.fill?e.decal:null,r.decal=null,r.shadowColor=null,e.strokeFirst&&(r.stroke=null);for(var o=0;o<gv.length;++o)i[gv[o]]=this[gv[o]];i.__dirty|=Wg}else this._decalEl&&(this._decalEl=null)},Bi.prototype.getDecalElement=function(){return this._decalEl},Bi.prototype._init=function(t){var e=v(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?l(this.style,o):this.useStyle(o):"shape"===r?l(this.shape,o):iv.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},Bi.prototype.getDefaultStyle=function(){return null},Bi.prototype.getDefaultShape=function(){return{}},Bi.prototype.canBeInsideText=function(){return this.hasFill()},Bi.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=Te(e,0))?By:.2<t?"#eee":zy;if(e)return zy}return By},Bi.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Te(t,0)<.4)return e}},Bi.prototype.buildPath=function(t,e,n){},Bi.prototype.pathUpdated=function(){this.__dirty&=~Ug},Bi.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Bi.prototype.createPathProxy=function(){this.path=new ov(!1)},Bi.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Bi.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Bi.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Ug)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},Bi.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){if(n=this.path,this.hasStroke()&&(i=r.lineWidth,1e-10<(r=r.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),Ni(n,i/r,!0,t,e))))return!0;if(this.hasFill())return Ni(n,0,!1,t,e)}return!1},Bi.prototype.dirtyShape=function(){this.__dirty|=Ug,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Bi.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Bi.prototype.animateShape=function(t){return this.animate("shape",t)},Bi.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Bi.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):iv.prototype.attrKV.call(this,t,e)},Bi.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},Bi.prototype.shapeChanged=function(){return!!(this.__dirty&Ug)},Bi.prototype.createStyle=function(t){return Y(dv,t)},Bi.prototype._innerSaveToNormal=function(t){iv.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},Bi.prototype._applyStateObj=function(t,e,n,i,r,o){iv.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=l({},n.shape),l(a,e.shape)):(a=l({},(i?this:n).shape),l(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=l({},this.shape);for(var u={},h=v(a),c=0;c<h.length;c++){var p=h[c];"object"==typeof a[p]?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},o)}else this.shape=a,this.dirtyShape()},Bi.prototype._mergeStates=function(t){for(var e,n=iv.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},Bi.prototype.getAnimationStyleProps=function(){return fv},Bi.prototype.isZeroArea=function(){return!1},Bi.extend=function(t){function e(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}n(e,i=Bi),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var i,r,o=e;for(r in t)"function"==typeof t[r]&&(o.prototype[r]=t[r]);return o},Bi.initDefaultProps=((p_=Bi.prototype).type="path",p_.strokeContainThreshold=5,p_.segmentIgnoreThreshold=0,p_.subPixelOptimize=!1,p_.autoBatch=!1,void(p_.__dirty=2|Wg|Ug)),Bi),mv=u({strokeFirst:!0,font:Nf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dv),vv=(n(zi,rv=py),zi.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},zi.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},zi.prototype.createStyle=function(t){return Y(mv,t)},zi.prototype.setBoundingRect=function(t){this._rect=t},zi.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=cn(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},zi.initDefaultProps=void(zi.prototype.dirtyRectTolerance=10),zi);vv.prototype.type="tspan";var _v=u({x:0,y:0},Tm),xv={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mm.style)};n(Fi,wv=py),Fi.prototype.createStyle=function(t){return Y(_v,t)},Fi.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},Fi.prototype.getWidth=function(){return this._getSize("width")},Fi.prototype.getHeight=function(){return this._getSize("height")},Fi.prototype.getAnimationStyleProps=function(){return xv},Fi.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Og(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var wv,bv=Fi;bv.prototype.type="image";var Sv,Cv=Math.round,Tv=function(){this.x=0,this.y=0,this.width=0,this.height=0},Mv={},Iv=(n(Wi,Sv=yv),Wi.prototype.getDefaultShape=function(){return new Tv},Wi.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Hi(Mv,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,r,o)},Wi.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Wi);Iv.prototype.type="rect";var kv,Dv={fill:"#000"},Av={style:u({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},Mm.style)},Pv=(n(Ui,kv=py),Ui.prototype.childrenRef=function(){return this._children},Ui.prototype.update=function(){kv.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Ui.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):kv.prototype.updateTransform.call(this)},Ui.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):kv.prototype.getLocalTransform.call(this,t)},Ui.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),kv.prototype.getComputedTransform.call(this)},Ui.prototype._updateSubTexts=function(){var t;this._childCursor=0,qi(t=this.style),f(t.rich,qi),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Ui.prototype.addSelfToZr=function(t){kv.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Ui.prototype.removeSelfFromZr=function(t){kv.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Ui.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Og(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Ui.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Dv},Ui.prototype.setTextContent=function(t){},Ui.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Ui.prototype._mergeRich=function(t,e){for(var n=v(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},Ui.prototype.getAnimationStyleProps=function(){return Av},Ui.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},Ui.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||Nf,i=e.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=fn(o),l=R(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Mi(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=R(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=bi(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=Si(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(un(n[f],o),g);return null==c&&(c=g),t=g,r&&(h+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(Qi(e),e),o=Ji(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=dn(f,r.contentHeight,y),_=((o||i)&&(t=pn(d,l,g),f=dn(f,s,y),o)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=$i(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2])),0),o=!1,x=(Ki(("fill"in e?e:(o=!0,p)).fill)),w=(Zi("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=r.calculatedLineHeight,T=0;T<h.length;T++){var M=this._getOrCreateChild(vv),I=M.createStyle();M.useStyle(I),I.text=h[T],I.x=m,I.y=v,g&&(I.textAlign=g),I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,b&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=w,I.fill=x,w&&(I.lineWidth=e.lineWidth||_,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=n,Yi(I,e),v+=c,S&&M.setBoundingRect(new Og(pn(I.x,e.width,I.textAlign),dn(I.y,C,I.textBaseline),u,C))}},Ui.prototype._updateRichTexts=function(){for(var t=this.style,e=Ci(Qi(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=pn(a,i,u),u=dn(s,r,l),h=a,c=u,p=(o&&(h+=o[3],c+=o[0]),h+n),d=(Ji(t)&&this._renderBackground(t,t,a,u,i,r),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=h,b=p,S=m-1,C=void 0;x<m&&(!(C=y[x]).align||"left"===C.align);)this._placeToken(C,t,v,c,w,"left",d),_-=C.width,w+=C.width,x++;for(;0<=S&&"right"===(C=y[S]).align;)this._placeToken(C,t,v,c,b,"right",d),_-=C.width,b-=C.width,S--;for(w+=(n-(w-h)-(p-b)-_)/2;x<=S;)C=y[x],this._placeToken(C,t,v,c,w+C.width/2,"center",d),w+=C.width,x++;c+=v}},Ui.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Ji(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(r=$i(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(vv)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Ki(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Zi("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=r,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=o,i.textBaseline="middle",i.font=t.font||Nf,i.opacity=E(s.opacity,e.opacity,1),Yi(i,s),l&&(i.lineWidth=E(s.lineWidth,e.lineWidth,p),i.lineDash=R(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new Og(pn(i.x,c,i.textAlign),dn(i.y,h,i.textBaseline),c,h))},Ui.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(Iv)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=r,l.height=o,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=R(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(bv)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=r,l.height=o),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=R(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=E(t.opacity,e.opacity,1)},Ui.makeFont=function(t){var e="";return(e=Xi(t)?[t.fontStyle,t.fontWeight,ji(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Ui),Ov={left:!0,right:1,center:1},Lv={top:1,bottom:1,middle:1},Rv=["fontStyle","fontWeight","fontSize","fontFamily"],Ev=ri(),Nv=1,Bv={},zv=ri(),Fv=ri(),Vv=0,Hv=1,Gv=2,Wv=["emphasis","blur","select"],Uv=["normal","emphasis","blur","select"],jv="highlight",Yv="downplay",Xv="select",qv="unselect",Zv="toggleSelect",Kv=["emphasis","blur","select"],$v={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Qv=ov.CMD,Jv=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,n_=Math.sqrt,i_=Math.sin,r_=Math.cos,o_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;n(Fr,l_=yv),Fr.prototype.applyTransform=function(t){};var l_,u_,h_=Fr,c_=function(){this.cx=0,this.cy=0,this.r=0},p_=(n(Gr,u_=yv),Gr.prototype.getDefaultShape=function(){return new c_},Gr.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},Gr);p_.prototype.type="circle";var d_,f_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},g_=(n(Wr,d_=yv),Wr.prototype.getDefaultShape=function(){return new f_},Wr.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()},Wr);g_.prototype.type="ellipse";var y_,m_=Math.PI,v_=2*m_,__=Math.sin,x_=Math.cos,w_=Math.acos,b_=Math.atan2,S_=Math.abs,C_=Math.sqrt,T_=Math.max,M_=Math.min,I_=1e-4,k_=function(){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},D_=(n(Yr,y_=yv),Yr.prototype.getDefaultShape=function(){return new k_},Yr.prototype.buildPath=function(t,e){jr(t,e)},Yr.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Yr);D_.prototype.type="sector";var A_,P_=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},O_=(n(Xr,A_=yv),Xr.prototype.getDefaultShape=function(){return new P_},Xr.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},Xr);O_.prototype.type="ring";var L_,R_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},E_=(n(Zr,L_=yv),Zr.prototype.getDefaultShape=function(){return new R_},Zr.prototype.buildPath=function(t,e){qr(t,e,!0)},Zr);E_.prototype.type="polygon";var N_,B_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},z_=(n(Kr,N_=yv),Kr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Kr.prototype.getDefaultShape=function(){return new B_},Kr.prototype.buildPath=function(t,e){qr(t,e,!1)},Kr);z_.prototype.type="polyline";var F_,V_={},H_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},G_=(n($r,F_=yv),$r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},$r.prototype.getDefaultShape=function(){return new H_},$r.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=Vi(V_,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},$r.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},$r);G_.prototype.type="line";var W_=[],U_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};n(Jr,j_=yv),Jr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Jr.prototype.getDefaultShape=function(){return new U_},Jr.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(re(n,a,r,e,W_),a=W_[1],r=W_[2],re(i,s,o,e,W_),s=W_[1],o=W_[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Jt(n,a,l,r,e,W_),a=W_[1],l=W_[2],r=W_[3],Jt(i,s,u,o,e,W_),s=W_[1],u=W_[2],o=W_[3]),t.bezierCurveTo(a,s,l,u,r,o)))},Jr.prototype.pointAt=function(t){return Qr(this.shape,t,!1)},Jr.prototype.tangentAt=function(t){return t=Qr(this.shape,t,!0),it(t,t)};var j_,Y_=Jr;Y_.prototype.type="bezier-curve";var X_,q_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=(n(to,X_=yv),to.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},to.prototype.getDefaultShape=function(){return new q_},to.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)},to);Z_.prototype.type="arc",n(eo,K_=yv),eo.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},eo.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},eo.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},eo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},eo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yv.prototype.getBoundingRect.call(this)};var K_,$_=eo;no.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Q_=no;n(io,J_=Q_);var J_,tx=io;n(ro,ex=Q_);var ex,nx,Q_=ro,ix=[0,0],rx=[0,0],ox=new Sg,ax=new Sg,sx=(oo.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(Sg.sub(i[0],n[1],n[0]),Sg.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},oo.prototype.intersect=function(t,e){var n=!0,i=!e;return ox.set(1/0,1/0),ax.set(0,0),!this._intersectCheckOneSide(this,t,ox,ax,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,ox,ax,i,-1)&&(n=!1,i)||i||Sg.copy(e,n?ox:ax),n},oo.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,ix),this._getProjMinMaxOnAxis(s,e._corners,rx),ix[1]<rx[0]||rx[1]<ix[0]){if(a=!1,r)return a;var u=Math.abs(rx[0]-ix[1]),h=Math.abs(ix[0]-rx[1]);Math.min(u,h)>i.len()&&(u<h?Sg.scale(i,l,-u*o):Sg.scale(i,l,h*o))}else n&&(u=Math.abs(rx[0]-ix[1]),h=Math.abs(ix[0]-rx[1]),Math.min(u,h)<n.len())&&(u<h?Sg.scale(n,l,u*o):Sg.scale(n,l,-h*o))}return a},oo.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++)var u=e[l].dot(i)+r[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},oo),lx=[],py=(n(ao,nx=py),ao.prototype.traverse=function(t,e){t.call(e,this)},ao.prototype.useStyle=function(){this.style={}},ao.prototype.getCursor=function(){return this._cursor},ao.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ao.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ao.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ao.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ao.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ao.prototype.getDisplayables=function(){return this._displayables},ao.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ao.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},ao.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},ao.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Og(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(lx)),t.union(i)}this._rect=t}return this._rect},ao.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},ao),ux=ri(),hx=Math.max,cx=Math.min,px={},dx=function(t,e){function i(t){return t=r.call(this,t)||this,t.applyTransform=o.applyTransform,t.buildPath=o.buildPath,t}var r,o=Hr(t,e);return n(i,r=h_),i},fx=Gi;yo("circle",p_),yo("ellipse",g_),yo("sector",D_),yo("ring",O_),yo("polygon",E_),yo("polyline",z_),yo("rect",Iv),yo("line",G_),yo("bezierCurve",Y_),yo("arc",Z_);var gx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:Y_,BoundingRect:Og,Circle:p_,CompoundPath:$_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:G_,LinearGradient:tx,OrientedBoundingRect:sx,Path:yv,Point:Sg,Polygon:E_,Polyline:z_,RadialGradient:Q_,Rect:Iv,Ring:O_,Sector:D_,Text:Pv,applyTransform:To,clipPointsByRect:ko,clipRectByRect:Do,createIcon:Ao,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:Co,groupTransition:Io,initProps:uo,isElementRemoved:ho,lineLineIntersect:Po,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Po(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,removeElement:co,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||po(t,e,n,i)}):po(t,e,n,i)},resizePath:bo,setTooltipConfig:Oo,subPixelOptimize:fx,subPixelOptimizeLine:So,subPixelOptimizeRect:function(t){return Hi(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=To(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:Ro,updateProps:lo}),yx={},mx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_x=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],xx=ri(),bx=["textStyle","color"],Sx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Cx=new Pv,fx=(Wo.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bx):null)},Wo.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),F([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},Wo.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Sx.length;n++)e[Sx[n]]=this.getShallow(Sx[n]);return Cx.useStyle(e),Cx.update(),Cx.getBoundingRect()},Wo),Tx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mx=yi(Tx),Ix=(Uo.prototype.getLineStyle=function(t){return Mx(this,t)},Uo),kx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dx=yi(kx),Ax=(jo.prototype.getItemStyle=function(t,e){return Dx(this,t,e)},jo);Yo.prototype.init=function(t,e,n){},Yo.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Yo.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Yo.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Yo.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Yo(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Yo.prototype.isEmpty=function(){return null==this.option},Yo.prototype.restoreData=function(){},Yo.prototype.clone=function(){return new this.constructor(a(this.option))},Yo.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Yo.prototype.resolveParentPath=function(t){return t},Yo.prototype.isAnimationEnabled=function(){if(!Pf.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Yo.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Px,Ox=Yo;ci(Ox),jx=Ox,Px=["__\0is_clz",gm++].join("_"),jx.prototype[Px]=!0,jx.isInstance=function(t){return!(!t||!t[Px])},p(Ox,Ix),p(Ox,Ax),p(Ox,mm),p(Ox,fx);var Lx=Math.round(10*Math.random()),Rx="ZH",Ex="EN",Nx=Ex,Bx={},zx={},Fx=Pf.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nx).toUpperCase().indexOf(Rx)?Rx:Nx;qo(Ex,{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:". "}}}}),qo(Rx,{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:""}}}});var Vx=1e3,Hx=60*Vx,Gx=60*Hx,Wx=24*Gx,gm=365*Wx,Ux={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}"},jx="{yyyy}-{MM}-{dd}",Yx={year:"{yyyy}",month:"{yyyy}-{MM}",day:jx,hour:jx+" "+Ux.hour,minute:jx+" "+Ux.minute,second:jx+" "+Ux.second,millisecond:Ux.none},Xx=["year","month","day","hour","minute","second","millisecond"],qx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Zx=B,Kx=["a","b","c","d","e","f","g"],$x=f,Qx=["left","right","top","bottom","width","height"],Jx=[["width","left","right"],["height","top","bottom"]],tw=wa;_(wa,"vertical"),_(wa,"horizontal");var ew,nw,iw,rw,ow=ri(),aw=(n(Ma,ew=Ox),Ma.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},Ma.prototype.mergeDefaultAndTheme=function(t,e){var n=Sa(this),i=n?Ta(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),n&&Ca(t,i,n)},Ma.prototype.mergeOption=function(t,e){s(this.option,t,!0);var n=Sa(this);n&&Ca(this.option,t,n)},Ma.prototype.optionUpdated=function(t,e){},Ma.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fm])return t.defaultOption;var e=ow(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;0<=a;a--)o=s(o,n[a],!0);e.defaultOption=o}return e.defaultOption},Ma.prototype.getReferringComponents=function(t,e){var n=t+"Id";return si(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},Ma.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},Ma.prototype.getZLevelKey=function(){return""},Ma.prototype.setZLevel=function(t){this.option.zlevel=t},Ma.protoInitialize=((Ix=Ma.prototype).type="component",Ix.id="",Ix.name="",Ix.mainType="",Ix.subType="",void(Ix.componentIndex=0)),Ma);pi(aw,Ox),gi(aw),iw={},(nw=aw).registerSubTypeDefaulter=function(t,e){t=hi(t),iw[t.main]=e},nw.determineSubType=function(t,e){var n,i=e.type;return i||(n=hi(t).main,nw.hasSubTypes(t)&&iw[n]&&(i=iw[n](e))),i},rw=function(t){var e=[];return f(aw.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return hi(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e},aw.topologicalTravel=function(t,e,n,i){function r(t){0===--u[t].entryCount&&c.push(t)}function o(t){p[t]=!0,r(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,n,i=Ia(s,t),r=i.originalDeps=rw(t),r=(e=a,n=[],f(r,function(t){0<=h(e,t)&&n.push(t)}),n);i.entryCount=r.length,0===i.entryCount&&l.push(t),f(r,function(e){h(i.predecessor,e)<0&&i.predecessor.push(e);var n=Ia(s,e);h(n.successor,e)<0&&n.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},u=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=u[d],y=!!p[d];y&&(n.call(i,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?o:r)}f(p,function(){throw new Error("")})}};var sw,lw,uw,hw,Ax="",mm=("undefined"!=typeof navigator&&(Ax=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),cw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ax.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},pw=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dw="original",fw="arrayRows",gw="objectRows",yw="keyedColumns",mw="typedArray",vw="unknown",_w="column",xw="row",ww={Must:1,Might:2,Not:3},bw=ri(),Sw=U(),Cw=ri(),Tw=(ri(),Pa.prototype.getColorFromPalette=function(t,e,n){var i=Xn(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=Cw;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=n&&r?Oa(r,n):i)||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},Pa.prototype.clearColorPalette=function(){var t,e;(e=Cw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Pa),Mw="\0_ec_inner",Iw=(n(La,hw=Ox),La.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Ox(i),this._locale=new Ox(r),this._optionManager=o},La.prototype.setOption=function(t,e,n){e=Na(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},La.prototype.resetOption=function(t,e){return this._resetOption(t,Na(e))},La.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):uw(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&f(n,function(t){i=!0,this._mergeOption(t,e)},this),i},La.prototype.mergeOption=function(t){this._mergeOption(t,null)},La.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],u=U(),h=e&&e.replaceMergeMainTypeMap;bw(this).datasetMap=U(),f(t,function(t,e){null!=t&&(aw.hasClass(e)?e&&(o.push(e),u.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),h&&h.each(function(t,e){aw.hasClass(e)&&!u.get(e)&&(o.push(e),u.set(e,!0))}),aw.topologicalTravel(o,aw.getAllClassMainTypes(),function(e){var o,a=function(t,e,n){return(e=(e=Sw.get(e))&&e(t))?n.concat(e):n}(this,e,Xn(t[e])),s=i.get(e),u=s?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Kn(s,a,u),c=(ni(s,e,aw),n[e]=null,i.set(e,null),r.set(e,0),[]),p=[],d=0;f(s,function(t,n){var i=t.existing,r=t.newOption;if(r){var a=aw.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1)):(n=l({componentIndex:n},t.keyInfo),l(i=new a(r,this,this,n),n),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))},this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&sw(this)},this),this._seriesIndices||sw(this)},La.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,n){if(aw.hasClass(n)){for(var i=Xn(e),r=i.length,o=!1,a=r-1;0<=a;a--)i[a]&&!ei(i[a])?o=!0:(i[a]=null,o||r--);i.length=r,t[n]=i}}),delete t[Mw],t},La.prototype.getTheme=function(){return this._theme},La.prototype.getLocaleModel=function(){return this._locale},La.prototype.setUpdatePayload=function(t){this._payload=t},La.prototype.getUpdatePayload=function(){return this._payload},La.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0])return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},La.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],f(Xn(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?Ra("id",n,r):null!=i?Ra("name",i,r):m(r,function(t){return!!t}),Ea(o,t)):[]},La.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!(n=n)||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=r?this.queryComponents(r):m(this._componentsMap.get(i),function(t){return!!t});return n=Ea(o,t),t.filter?m(n,t.filter):n},La.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(w(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=b(t)?i.get(t):T(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},La.prototype.getSeriesByName=function(t){var e=Jn(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},La.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},La.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},La.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},La.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},La.prototype.eachSeries=function(t,e){lw(this),f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},La.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},La.prototype.eachSeriesByType=function(t,e,n){lw(this),f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},La.prototype.eachRawSeriesByType=function(t,e,n){return f(this.getSeriesByType(t),e,n)},La.prototype.isSeriesFiltered=function(t){return lw(this),null==this._seriesIndicesMap.get(t.componentIndex)},La.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},La.prototype.filterSeries=function(t,e){lw(this);var n=[];f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=U(n)},La.prototype.restoreData=function(t){sw(this);var e=this._componentsMap,n=[];e.each(function(t,e){aw.hasClass(e)&&n.push(e)}),aw.topologicalTravel(n,aw.getAllClassMainTypes(),function(n){f(e.get(n),function(e){!e||"series"===n&&function(t,e){var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},La.internalField=(sw=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=U(e)},lw=function(t){},void(uw=function(t,e){t.option={},t.option[Mw]=1,t._componentsMap=U({series:[]}),t._componentsCount=U();var n,i,r=e.aria;T(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,f(r,function(t,e){"colorLayer"===e&&i||aw.hasClass(e)||("object"==typeof t?n[e]=n[e]?s(n[e],t,!1):a(t):null==n[e]&&(n[e]=t))}),s(e,cw,!1),t._mergeOption(e,null)})),La);p(Iw,Tw);var kw,Dw,Aw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pw={},Ow=(za.prototype.create=function(t,e){var n=[];f(Pw,function(i,r){i=i.create(t,e),n=n.concat(i||[])}),this._coordinateSystems=n},za.prototype.update=function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},za.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},za.register=function(t,e){Pw[t]=e},za.get=function(t){return Pw[t]},za),Lw=/^(min|max)?(.+)$/,Rw=(Fa.prototype.setOption=function(t,e,n){t&&(f(Xn(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Xn(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var i=this._optionBackup,t=function(t,e,n){function i(t){f(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||c)&&(t.options=t.media=null),o=t),c&&x(h)&&f(h,function(t){t&&t.option&&(t.query?a.push(t):r=r||t)}),i(o),f(u,i),f(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Fa.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},Fa.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?a(n[t.getCurrentIndex()]):e},Fa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(i.length||r){for(var l,u,h=0,c=i.length;h<c;h++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n,e=e.match(Lw);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(r=!1))}),r}(i[h].query,e,n)||o.push(h);(o=!o.length&&r?[-1]:o).length&&(l=o,u=this._currentMediaIndices,l.join(",")!==u.join(","))&&(s=g(o,function(t){return a((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return s},Fa),Ew=f,Nw=T,Bw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],zw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],Hw=function(t){this.data=t.data||(t.sourceFormat===yw?{}:[]),this.sourceFormat=t.sourceFormat||vw,this.seriesLayoutBy=t.seriesLayoutBy||_w,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Aa(this,n)===ww.Must&&(i.type="ordinal")}};ss.prototype.getSource=function(){return this._source},ss.prototype.count=function(){return 0},ss.prototype.getItem=function(t,e){},ss.prototype.appendData=function(t){},ss.prototype.clean=function(){},ss.protoInitialize=((fx=ss.prototype).pure=!1,void(fx.persistent=!0)),ss.internalField=(Dw=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;l(t,kw[gs(r,o)]),r===mw?(t.getItem=Gw,t.count=Uw,t.fillStorage=Ww):(i=hs(r,o),t.getItem=Qf(i,null,e,a,n),i=ps(r,o),t.count=Qf(i,null,e,a,n))},Gw=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},Ww=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Uw=function(){return this._data?this._data.length/this._dimSize:0},(fx={})[fw+"_"+_w]={pure:!0,appendData:ls},fx[fw+"_"+xw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},fx[gw]={pure:!0,appendData:ls},fx[yw]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},fx[dw]={appendData:ls},fx[mw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(kw=fx));var Gw,Ww,Uw,jw=ss;(jx={})[fw+"_"+_w]=function(t,e,n,i){return t[i+e]},jx[fw+"_"+xw]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},jx[gw]=us,jx[yw]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},jx[dw]=us;var Yw=jx;(Ix={})[fw+"_"+_w]=function(t,e,n){return Math.max(0,t.length-e)},Ix[fw+"_"+xw]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},Ix[gw]=cs,Ix[yw]=function(t,e,n){return t=t[n[0].name],t?t.length:0},Ix[dw]=cs;var Xw=Ix;(mm={})[fw]=ds,mm[gw]=function(t,e,n){return t[n]},mm[yw]=ds,mm[dw]=function(t,e,n){return t=Zn(t),t instanceof Array?t[e]:t},mm[mw]=ds;var qw=mm,Zw=/\{@(.+?)\}/g,Kw=(ms.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},ms.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),n=this.getDataParams(t,n);return o&&(n.value=o.interpolatedValue),null!=i&&x(n.value)&&(n.value=n.value[i]),w(r=r||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(n.status=e,n.dimensionIndex=i,r(n)):b(r)?ma(r,n).replace(Zw,function(e,n){var i=n.length,i=("["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),ys(a,t,n));return null!=(i=o&&x(o.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?o.interpolatedValue[n]:i)?i+"":""}):void 0},ms.prototype.getRawValue=function(t,e){return ys(this.getData(e),t)},ms.prototype.formatTooltip=function(t,e,n){},ms);xs.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var n,i,r=this._upstream,o=t&&t.skip,a=(this._dirty&&r&&((a=this.context).data=a.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(n=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;if(a===l&&s===u||(n="reset"),!this._dirty&&"reset"!==n||(this._dirty=!1,i=this._doReset(o)),this._modBy=l,this._modDataCount=u,a=t&&t.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!o&&(i||h<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,l,u);else this._doProgress(p,h,c,l,u)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},xs.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},xs.prototype._doProgress=function(t,e,n,i,r){rb.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:rb.next},this.context)},xs.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),x(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},xs.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},xs.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},xs.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},xs.prototype.getUpstream=function(){return this._upstream},xs.prototype.getDownstream=function(){return this._downstream},xs.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var $w,Qw,Jw,tb,eb,nb,ib=xs,rb=nb={reset:function(t,e,n,i){Qw=t,$w=e,Jw=n,tb=i,eb=Math.ceil(tb/Jw),nb.next=1<Jw&&0<tb?bs:ws}},ob=U({number:function(t){return parseFloat(t)},time:function(t){return+Bn(t)},trim:function(t){return b(t)?F(t):t}}),ab={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},sb=(Ts.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(Hn(t),this._rvalFloat)},Ts);Ms.prototype.evaluate=function(t,e){var n=C(t)?t:Hn(t),i=C(e)?e:Hn(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=b(t),o=b(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var lb=Ms;Is.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Hn(t)===this._rvalFloat),this._isEQ?n:!n};var ub=Is;ks.prototype.getRawData=function(){throw new Error("not supported")},ks.prototype.getRawDataItem=function(t){throw new Error("not supported")},ks.prototype.cloneRawData=function(){},ks.prototype.getDimensionInfo=function(t){},ks.prototype.cloneAllDimensionInfo=function(){},ks.prototype.count=function(){},ks.prototype.retrieveValue=function(t,e){},ks.prototype.retrieveValueFromItem=function(t,e){},ks.prototype.convertValue=Ss;var hb,cb=ks,pb=U(),Ax="undefined",db=typeof Uint32Array==Ax?Array:Uint32Array,fb=typeof Uint16Array==Ax?Array:Uint16Array,gb=typeof Int32Array==Ax?Array:Int32Array,fx=typeof Float64Array==Ax?Array:Float64Array,yb={float:fx,int:gb,ordinal:Array,number:Array,time:fx};zs.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=hb[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],as(i),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},zs.prototype.getProvider=function(){return this._provider},zs.prototype.getSource=function(){return this._provider.getSource()},zs.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new yb[e||"float"](this._rawCount),this._rawExtent[r]=Ns(),r},zs.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length,s=(0===o&&(r[t]=Ns()),r[t]),l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},zs.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},zs.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},zs.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},zs.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)Bs(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=hb.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},zs.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=Ns()),Bs(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},zs.prototype.count=function(){return this._count},zs.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},zs.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},zs.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},zs.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},zs.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},zs.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},zs.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&0<=h&&a<0)&&(o=c,a=h,s=0),h===a)&&(r[s++]=l)}r.length=s}return r},zs.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else for(i=new(e=Es(this._rawCount))(this.count()),r=0;r<i.length;r++)i[r]=r;return i},zs.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Es(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},zs.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=v(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Es(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===r){for(var d=c[i[0]],f=0;f<n;f++)(u<=(_=d[f])&&_<=h||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var _=d[f],x=g[f];(u<=_&&_<=h||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===r)for(f=0;f<o;f++){var w=e.getRawIndex(f);(u<=(_=c[i[0]][w])&&_<=h||isNaN(_))&&(a[s++]=w)}else for(f=0;f<o;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<r;S++){var C=i[S];((_=c[C][w])<t[C][0]||_>t[C][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},zs.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},zs.prototype.modify=function(t,e){this._updateDims(this,t,e)},zs.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Ns();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},zs.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Es(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[C=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var C,y=r[C=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=C)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,w=C)}0<S&&S<m-c&&(u[a++]=Math.min(b,w),w=Math.max(b,w)),l=u[a++]=w}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},zs.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Ns(),c=new(Es(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},zs.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},zs.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Ns();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var r,o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,a]},zs.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},zs.prototype.clone=function(t,e){var n,i,r=new zs,o=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},zs.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=a(this._extent),t._rawExtent=a(this._rawExtent)},zs.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},zs.prototype._getRawIdxIdentity=function(t){return t},zs.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},zs.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},zs.internalField=void(hb={arrayRows:Fs,objectRows:function(t,e,n,i){return Ss(t[e],this._dimensions[i])},keyedColumns:Fs,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),Ss(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var mb=zs;Vs.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Vs.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Vs.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Vs.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Vs.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Gs(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=I(o=i.get("data",!0))?mw:dw,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=R(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=R(i.sourceHeader,r.sourceHeader),i=R(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[es(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[es(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Vs.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Ws(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Ws(""),o.push(e),s.push(t._getVersionSign())}),i?e=Ls(i,o,n.componentIndex):null!=r&&(e=[new Hw({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Vs.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Vs.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Vs.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Vs.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],Gs(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new mb).initData(new jw(e,t.length),t),o[n]=r),r},Vs.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Gs(e)?(t=Da(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?si(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},cm).models:[],function(t){return t.getSourceManager()})},Vs.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Gs(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var vb=Vs,_b="line-height:1",xb=[0,10,20,30],wb=["","\n","\n\n","\n\n\n"];tl.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},tl.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=va({color:e,type:t,renderMode:n,markerId:i});return b(e)?e:(this.richTextStyles[i]=e.style,e.content)},tl.prototype.wrapRichTextStyle=function(t,e){var n={},e=(x(e)?f(e,function(t){return l(n,t)}):l(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var bb=tl,Sb=ri();n(il,Cb=aw),il.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=_s({count:ol,reset:al}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Sb(this).sourceManager=new vb(this)).prepareSource(),t=this.getInitialData(t,n),ll(t,this),this.dataTask.context.data=t,Sb(this).dataBeforeProcessed=t,rl(this),this._initSelectedMapFromData(t)},il.prototype.mergeDefaultAndTheme=function(t,e){var n=Sa(this),i=n?Ta(t):{},r=this.subType;aw.hasClass(r),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),qn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ca(t,i,n)},il.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Sa(this),n=(n&&Ca(this.option,t,n),Sb(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));ll(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Sb(this).dataBeforeProcessed=n,rl(this),this._initSelectedMapFromData(n)},il.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&qn(t[n],"label",e)},il.prototype.getInitialData=function(t,e){},il.prototype.appendData=function(t){this.getRawData().appendData(t.data)},il.prototype.getData=function(t){var e=hl(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Sb(this).data},il.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},il.prototype.setData=function(t){var e,n=hl(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Sb(this).data=t},il.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return U(t)},il.prototype.getSourceManager=function(){return Sb(this).sourceManager},il.prototype.getSource=function(){return this.getSourceManager().getSource()},il.prototype.getRawData=function(){return Sb(this).dataBeforeProcessed},il.prototype.getColorBy=function(){return this.get("colorBy")||"series"},il.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},il.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},il.prototype.formatTooltip=function(t,e,n){return el({series:this,dataIndex:t,multipleSeries:e})},il.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!Pf.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},il.prototype.restoreData=function(){this.dataTask.dirty()},il.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Tw.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},il.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},il.prototype.getProgressive=function(){return this.get("progressive")},il.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},il.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},il.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=nl(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},il.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},il.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},il.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[nl(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},il.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},il.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,r=e.length;if(i&&r)if("series"===i)n.selectedMap="all";else if("multiple"===i){T(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=nl(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=nl(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},il.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),0<e.length&&this._innerSelect(t,e))},il.registerClass=function(t){return aw.registerClass(t)},il.protoInitialize=((jx=il.prototype).type="series.__base__",jx.seriesIndex=0,jx.ignoreStyleOnData=!1,jx.hasSymbolVisual=!1,jx.defaultSymbol="circle",jx.visualStyleAccessPath="itemStyle",void(jx.visualDrawType="fill"));var Cb,Tb=il;p(Tb,Kw),p(Tb,Tw),pi(Tb,aw),cl.prototype.init=function(t,e){},cl.prototype.render=function(t,e,n,i){},cl.prototype.dispose=function(t,e){},cl.prototype.updateView=function(t,e,n,i){},cl.prototype.updateLayout=function(t,e,n,i){},cl.prototype.updateVisual=function(t,e,n,i){},cl.prototype.toggleBlurSeries=function(t,e,n){},cl.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Mb=cl;ci(Mb),gi(Mb);var Ib=ri(),kb=pl(),Db=(dl.prototype.init=function(t,e){},dl.prototype.render=function(t,e,n,i){},dl.prototype.highlight=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&gl(t,i,"emphasis")},dl.prototype.downplay=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&gl(t,i,"normal")},dl.prototype.remove=function(t,e){this.group.removeAll()},dl.prototype.dispose=function(t,e){},dl.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},dl.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},dl.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},dl.prototype.eachRendered=function(t){Ro(this.group,t)},dl.markUpdateMethod=function(t,e){Ib(t).updateMethod=e},dl.protoInitialize=void(dl.prototype.type="chart"),dl);ci(Db),gi(Db);var Ab={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Pb="\0__throttleOriginMethod",Ob="\0__throttleRate",Lb="\0__throttleType",Rb=ri(),Eb={itemStyle:yi(kx,!0),lineStyle:yi(Tx,!0)},Nb={lineStyle:"stroke",itemStyle:"fill"},Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=wl(t,i)(r),r=r.getShallow("decal"),a=(r&&(n.setVisual("decal",r),r.dirty=!0),bl(t,i)),r=o[a],s=w(r)?r:null,i="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!i||(r=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=r,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||w(o.fill)?r:o.fill,o.stroke="auto"===o.stroke||w(o.stroke)?r:o.stroke),n.setVisual("style",o),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},o);r[a]=s(i),e.setItemVisual(n,"style",r)}}}},Bb=new Ox,mm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=wl(t,n),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[n]&&(Bb.option=o[n],o=i(Bb),l(t.ensureUniqueItemVisual(e,"style"),o),Bb.option.decal&&(t.setItemVisual(e,"decal",Bb.option.decal),Bb.option.decal.dirty=!0),r in o)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Ax={performRawSeries:!0,overallReset:function(t){var e=U();t.eachSeries(function(t){var n,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(n=e.get(i))||e.set(i,n={}),Rb(t).scope=n)}),t.eachSeries(function(e){var n,i,r,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),i={},r=e.getData(),o=Rb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bl(e,a),r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a,l=i[t];r.getItemVisual(l,"colorFromPalette")&&(l=r.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,o,a))}))})}},zb=Math.PI;Sl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},Sl.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Sl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Sl.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Sl.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},Sl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;f(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});z(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},Sl.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Sl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Sl.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Sl.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;f(t,function(t,s){var l,u,h,c,p;i.visualType&&i.visualType!==t.visualType||(l=(u=a._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((c=u.agentStubMap).each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n),p=a.getPerformArgs(u,i.block),c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)):l&&l.each(function(s,l){r(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(o=!0)}))}),this.unfinished=o||this.unfinished},Sl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Sl.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Sl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Sl.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,r=s.set(r,a&&a.get(r)||_s({plan:kl,reset:Dl,count:Pl}));r.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,r)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=U(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):e?n.eachRawSeriesByType(e,r):l&&l(n,i).each(r)},Sl.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,_s({reset:Tl,onDirty:Il})));e.context={model:t,overallProgress:h},e.agent=a,e.__block=h,o._pipe(t,e)}var o=this,a=e.overallTask=e.overallTask||_s({reset:Cl}),s=(a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},a.agentStubMap),l=a.agentStubMap=U(),e=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;z(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,r):u?u(n,i).each(r):(h=!1,f(n.getSeries(),r)),c&&a.dirty()},Sl.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Sl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){Fb=null;try{t(Gb,Wb)}catch(t){}return Fb}(t)}:t).uid=Xo("stageHandler"),e&&(t.visualType=e),t};var Fb,Vb=Sl,Hb=Al(0),Gb={},Wb={};Ol(Gb,Iw),Ol(Wb,Ba),Gb.eachSeriesByType=Gb.eachRawSeriesByType=function(t){Fb=t},Gb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Fb=t.subType)};var fx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],jx={color:fx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],fx]},Ub="#B9B8CE",kx="#100C2A",Tx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fx={darkMode:!0,color:Tx,backgroundColor:kx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ub}},textStyle:{color:Ub},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ub}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ub},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ub}},timeline:{lineStyle:{color:Ub},label:{color:Ub},controlStyle:{color:Ub,borderColor:Ub}},calendar:{itemStyle:{color:kx},dayLabel:{color:Ub},monthLabel:{color:Ub},yearLabel:{color:Ub}},timeAxis:Ll(),logAxis:Ll(),valueAxis:Ll(),categoryAxis:Ll(),line:{symbol:"circle"},graph:{color:Tx},gauge:{title:{color:Ub},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ub},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},jb=(fx.categoryAxis.splitLine.show=!1,Rl.prototype.normalizeQuery=function(t){var e,n,i,r={},o={},a={};return b(t)?(e=hi(t),r.mainType=e.main||null,r.subType=e.sub||null):(n=["Index","Name","Id"],i={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],h=e.lastIndexOf(u);0<h&&h===e.length-u.length&&"data"!==(h=e.slice(0,h))&&(r.mainType=h,r[u.toLowerCase()]=t,s=!0)}i.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:r,dataQuery:o,otherQuery:a}},Rl.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i,r,o,a,s,l=this.eventInfo;return!l||(i=l.targetEl,r=l.packedEvent,o=l.model,l=l.view,!o)||!l||(a=e.cptQuery,s=e.dataQuery,n(a,o,"mainType")&&n(a,o,"subType")&&n(a,o,"index","componentIndex")&&n(a,o,"name")&&n(a,o,"id")&&n(s,r,"name")&&n(s,r,"dataIndex")&&n(s,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,i,r)))},Rl.prototype.afterTrigger=function(){this.eventInfo=null},Rl),Yb=["symbol","symbolSize","symbolRotate","symbolOffset"],Xb=Yb.concat(["symbolKeepAspect"]),kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i,r={},o={},a=!1,s=0;s<Yb.length;s++){var u=Yb[s],h=t.get(u);w(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t))return i=v(o),{dataEach:a?function(e,n){for(var r=t.getRawValue(n),a=t.getDataParams(n),s=0;s<i.length;s++){var l=i[s];e.setItemVisual(n,l,o[l](r,a))}}:null}}}},Tx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Xb.length;i++){var r=Xb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},qb=Math.round(9*Math.random()),Zb="function"==typeof Object.defineProperty,Kb=(zl.prototype.get=function(t){return this._guard(t)[this._id]},zl.prototype.set=function(t,e){return t=this._guard(t),Zb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},zl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},zl.prototype.has=function(t){return!!this._guard(t)[this._id]},zl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},zl),$b=yv.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),Qb=yv.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),Jb=yv.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),tS=yv.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),eS={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){n=Math.min(n,i),r.x=t,r.y=e,r.width=n,r.height=n},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},nS={},iS=(f({line:G_,rect:Iv,roundRect:Iv,square:Iv,circle:p_,diamond:Qb,pin:Jb,arrow:tS,triangle:$b},function(t,e){nS[e]=new t}),yv.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=yn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,r=e.symbolType;"none"!==r&&(i=(i=nS[r])||nS[r="rect"],eS[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}})),rS=new ov(!0),oS=["shadowBlur","shadowOffsetX","shadowOffsetY"],aS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],sS=1,lS=2,uS=3,hS=4,cS=new Kb,pS=new sy(100),dS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],fS=new hg,gS={},Qb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},yS="__flagInMainProcess",mS="__pendingUpdate",vS="__needsUpdateStatus",_S=/^[a-zA-Z0-9_]+$/,xS="__connectUpdateStatus";n(cu,wS=hg);var wS,bS,SS,CS,TS,MS,IS,kS,DS,AS,PS,OS,LS,RS,ES,NS,BS,zS,FS,VS,HS=cu,Jb=HS.prototype,GS=(Jb.on=uu("on"),Jb.off=uu("off"),n(pu,VS=hg),pu.prototype._onframe=function(){if(!this._disposed){FS(this);var t=this._scheduler;if(this[mS]){var e=this[mS].silent;this[yS]=!0;try{bS(this),TS.update.call(this,null,this[mS].updateParams)}catch(t){throw this[yS]=!1,this[mS]=null,t}this._zr.flush(),this[yS]=!1,this[mS]=null,DS.call(this,e),AS.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),IS(this,i),t.performVisualTasks(i),ES(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},pu.prototype.getDom=function(){return this._dom},pu.prototype.getId=function(){return this.id},pu.prototype.getZr=function(){return this._zr},pu.prototype.isSSR=function(){return this._ssr},pu.prototype.setOption=function(t,e,n){if(!this[yS])if(this._disposed)this.id;else{T(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[yS]=!0,this._model&&!e||(e=new Rw(this._api),a=this._theme,(s=this._model=new Iw).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},XS);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[mS]={silent:i,updateParams:s},this[yS]=!1,this.getZr().wakeUp();else{try{bS(this),TS.update.call(this,null,s)}catch(t){throw this[mS]=null,this[yS]=!1,t}this._ssr||this._zr.flush(),this[mS]=null,this[yS]=!1,DS.call(this,i),AS.call(this,i)}}},pu.prototype.setTheme=function(){},pu.prototype.getModel=function(){return this._model},pu.prototype.getOption=function(){return this._model&&this._model.getOption()},pu.prototype.getWidth=function(){return this._zr.getWidth()},pu.prototype.getHeight=function(){return this._zr.getHeight()},pu.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Pf.hasGlobalWindow&&window.devicePixelRatio||1},pu.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},pu.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},pu.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},pu.prototype.getSvgDataURL=function(){var t;if(Pf.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},pu.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,f(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(n,function(t){t.group.ignore=!1}),r;this.id},pu.prototype.getConnectedDataURL=function(t){var e,n,i,r,o,s,l,u,h,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,QS[n]?(s=o=1/0,u=l=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f($S,function(c,p){var d;c.group===n&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),o=i(c.left,o),s=i(c.top,s),l=r(c.right,l),u=r(c.bottom,u),h.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(o*=c),d=(u*=c)-(s*=c),g=zf.createCanvas(),(y=Tn(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(h,function(t){var e=t.left-o,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new Iv({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(h,function(t){t=new bv({style:{x:t.left*c-o,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},pu.prototype.convertToPixel=function(t,e){return MS(this,"convertToPixel",t,e)},pu.prototype.convertFromPixel=function(t,e){return MS(this,"convertFromPixel",t,e)},pu.prototype.containPixel=function(t,e){var n;if(!this._disposed)return f(oi(this._model,t),function(t,i){0<=i.indexOf("Models")&&f(t,function(t){var r=t.coordinateSystem;r&&r.containPoint?n=n||!!r.containPoint(e):"seriesModels"===i&&(r=this._chartsMap[t.__viewId])&&r.containPoint&&(n=n||r.containPoint(e,t))},this)},this),!!n;this.id},pu.prototype.getVisual=function(t,e){var t=oi(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null==t)return El(n,e);var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}},pu.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},pu.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},pu.prototype._initEvents=function(){var t,e,n,i=this;f(WS,function(t){function e(e){var n,r,o,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&Bl(s,function(t){var e,t=Ev(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(n=l({},t.eventData),1)},!0),n&&(r=n.componentType,o=n.componentIndex,"markLine"!==r&&"markPoint"!==r&&"markArea"!==r||(r="series",o=n.seriesIndex),o=(r=r&&null!=o&&a.getComponent(r,o))&&i["series"===r.mainType?"_chartsMap":"_componentsMap"][r.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:r,view:o},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),f(jS,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),f(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Nl("map","selectchanged",e,i,t),Nl("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Nl("map","selected",e,i,t),Nl("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Nl("map","unselected",e,i,t),Nl("pie","unselected",e,i,t))})},pu.prototype.isDisposed=function(){return this._disposed},pu.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},pu.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&li(this.getDom(),eC,""),e=(t=this)._api,n=t._model,f(t._componentsViews,function(t){t.dispose(n,e)}),f(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete $S[t.id])},pu.prototype.resize=function(t){if(!this[yS])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[mS]&&(null==n&&(n=this[mS].silent),e=!0,this[mS]=null),this[yS]=!0;try{e&&bS(this),TS.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[yS]=!1,t}this[yS]=!1,DS.call(this,n),AS.call(this,n)}}},pu.prototype.showLoading=function(t,e){this._disposed?this.id:(T(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),KS[t]&&(t=KS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},pu.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},pu.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=jS[t.type],e},pu.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(T(e)||(e={silent:!!e}),US[t.type]&&this._model&&(this[yS]?this._pendingActions.push(t):(n=e.silent,kS.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&Pf.browser.weChat&&this._throttledZrFlush(),DS.call(this,n),AS.call(this,n))))},pu.prototype.updateLabelLayout=function(){fS.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},pu.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},pu.internalField=(bS=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),SS(t,!0),SS(t,!1),e.plan()},SS=function(t,e){function n(t){var n,u=t.__requireNewView,h=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),u=!u&&a[h];u||(n=hi(t.type),(u=new(e?Mb.getClass(n.main,n.sub):Db.getClass(n.sub))).init(i,l),a[h]=u,o.push(u),s.add(u.group)),t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(u,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;for(e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n),u=0;u<o.length;){var h=o[u];h.__alive?u++:(e||h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},CS=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}var a,s,l=t._model;l.setUpdatePayload(n),i?((a={})[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"],a={mainType:i,query:a},r&&(a.subType=r),null!=(r=n.excludeSeriesId)&&(s=U(),f(Xn(r),function(t){null!=(t=Jn(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var i,r,o=s&&null!=s.get(e.id);if(!o)if(Rr(n))if(e instanceof Tb){if(n.type===jv&&!n.notBlur&&!e.get(["emphasis","disabled"])){var o=e,a=n,l=t._api,u=o.seriesIndex,h=o.getData(a.dataType);if(h){var a=(x(a=ii(h,a))?a[0]:a)||0,c=h.getItemGraphicEl(a);if(!c)for(var p=h.count(),d=0;!c&&d<p;)c=h.getItemGraphicEl(d++);c?Cr(u,(a=Ev(c)).focus,a.blurScope,l):(a=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=a&&Cr(u,a,o,l))}}}else u=Mr(e.mainType,e.componentIndex,n.name,t._api),a=u.focusSelf,o=u.dispatchers,n.type===jv&&a&&!n.notBlur&&Tr(e.mainType,e.componentIndex,t._api),o&&f(o,function(t){(n.type===jv?yr:mr)(t)});else Lr(n)&&e instanceof Tb&&(l=e,o=n,t._api,Lr(o)&&(i=o.dataType,x(r=ii(l.getData(i),o))||(r=[r]),l[o.type===Zv?"toggleSelect":o.type===Xv?"select":"unselect"](r,i)),Ir(e),zS(t))},t),l&&l.eachComponent(a,function(e){s&&null!=s.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),o)},TS={prepareAndUpdate:function(t){bS(this),TS.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),IS(this,n),o.update(n,i),du(n),a.performVisualTasks(n,t),LS(this,n,i,t,e),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),fS.trigger("afterupdate",n,i))},updateTransform:function(t){var e,n,i=this,r=this._model,o=this._api;r&&(r.setUpdatePayload(t),e=[],r.eachComponent(function(n,a){"series"!==n&&(n=i.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,r,o,t))&&a.update)&&e.push(n)}),n=U(),r.eachSeries(function(e){var a=i._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,r,o,t))&&a.update)&&n.set(e.uid,1)}),du(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:n}),ES(this,r,o,t,{},n),fS.trigger("afterupdate",r,o))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Db.markUpdateMethod(t,"updateView"),du(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),LS(this,e,this._api,t,{}),fS.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),Db.markUpdateMethod(t,"updateVisual"),du(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){"series"!==i&&(i=e.getViewOfComponentModel(r))&&i.__alive&&i.updateVisual(r,n,e._api,t)}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),fS.trigger("afterupdate",n,this._api))},updateLayout:function(t){TS.update.call(this,t)}},MS=function(t,e,n,i){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=oi(r,n),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,a,i)))return l}},IS=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},kS=function(t,e){var n,i,r=this,o=this.getModel(),a=t.type,s=t.escapeConnect,h=US[a],c=h.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&hi(p[0]),p=(this[yS]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=u(l({},e),t)).batch=null,e})),[]),_=Lr(t),x=Rr(t);if(x&&Sr(this._api),f(p,function(e){var i,o;(n=(n=h.action(e,r._model,r._api))||l({},e)).type=c.event||n.type,v.push(n),x?(i=(o=ai(t)).queryOptionMap,o=o.mainTypeSpecified?i.keys()[0]:"series",CS(r,d,e,o),zS(r)):_?(CS(r,d,e,"series"),zS(r)):y&&CS(r,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[mS]?(bS(this),TS.update.call(this,t),this[mS]=null):TS[d].call(this,t)}catch(e){throw this[yS]=!1,e}n=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[yS]=!1,e||((p=this._messageCenter).trigger(n.type,n),_&&(m={type:"selectchanged",escapeConnect:s,selected:(i=[],o.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),i.push(n))})}),i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},DS=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();kS.call(this,n,t)}},AS=function(t){t||this.trigger("updated")},PS=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[mS]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},OS=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a=Bl(t.target,Or);a&&(a=a,n=t,t=e._api,i=Ev(a),r=(o=Mr(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,o=o.focusSelf,r?(o&&Tr(i.componentMainType,i.componentIndex,t),f(r,function(t){return fr(t,n)})):(Cr(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&Tr(i.componentMainType,i.componentIndex,t),fr(a,n)),zS(e))}).on("mouseout",function(t){var n,i,r=Bl(t.target,Or);r&&(r=r,n=t,Sr(t=e._api),(i=Mr((i=Ev(r)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?f(i,function(t){return gr(t,n)}):gr(r,n),zS(e))}).on("click",function(t){var n,t=Bl(t.target,function(t){return null!=Ev(t).dataIndex},!0);t&&(n=t.selected?"unselect":"select",t=Ev(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},LS=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(Wt(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),RS(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive=!1}),ES(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},RS=function(t,e,n,i,r,o){f(o||t._componentsViews,function(t){var r=t.__model;yu(0,t),t.render(r,e,n,i),gu(r,t),mu(r,t)})},ES=function(t,e,n,i,r,o){var a,s,u,h,c=t._scheduler,p=(r=l(r||{},{updatedSeries:e.getSeries()}),fS.trigger("series:beforeupdate",e,n,r),!1);e.eachSeries(function(e){var n,r=t._chartsMap[e.__viewId],a=(r.__alive=!0,r.renderTask);c.updatePayload(a,i),yu(0,r),o&&o.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),r.group.silent=!!e.get("silent"),a=r,n=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=n)}),Ir(e)}),c.unfinished=p||c.unfinished,fS.trigger("series:layoutlabels",e,n,r),fS.trigger("series:transition",e,n,r),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];gu(e,n),mu(e,n)}),s=e,u=(a=t)._zr.storage,h=0,u.traverse(function(t){t.isGroup||h++}),h>s.get("hoverLayerThreshold")&&!Pf.node&&!Pf.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),fS.trigger("series:afterupdate",e,n,r)},zS=function(t){t[vS]=!0,t.getZr().wakeUp()},FS=function(t){t[vS]&&(t.getZr().storage.traverse(function(t){ho(t)||fu(t)}),t[vS]=!1)},NS=function(t){function e(){return null!==i&&i.apply(this,arguments)||this}return n(e,i=Ba),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){yr(e,n),zS(t)},e.prototype.leaveEmphasis=function(e,n){mr(e,n),zS(t)},e.prototype.enterBlur=function(e){vr(e),zS(t)},e.prototype.leaveBlur=function(e){_r(e),zS(t)},e.prototype.enterSelect=function(e){xr(e),zS(t)},e.prototype.leaveSelect=function(e){wr(e),zS(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);var i},void(BS=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][xS]=e}f(jS,function(n,i){t._messageCenter.on(i,function(n){var i,r;!QS[t.group]||0===t[xS]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),r=[],f($S,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),f(r,function(t){1!==t[xS]&&t.dispatchAction(i)}),e(r,2))})})})),pu),tS=GS.prototype,WS=(tS.on=lu("on"),tS.off=lu("off"),tS.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),US={},jS={},YS=[],XS=[],qS=[],ZS={},KS={},$S={},QS={},JS=+new Date,tC=+new Date,eC="_echarts_instance_";$b=vu;var nC=[];Du(2e3,Ix),Du(4500,mm),Du(4500,Ax),Du(2e3,kx),Du(4500,Tx),Du(7e3,function(t,e){t.eachRawSeries(function(n){var i;!t.isSeriesFiltered(n)&&((i=n.getData()).hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=au(n,e))}),n=i.getVisual("decal"))&&(i.getVisual("style").decal=au(n,e))})}),wu(Qa),bu(900,function(t){var e=U();t.eachSeries(function(t){var n,i=t.get("stack");i&&(i=e.get(i)||e.set(i,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t))}),e.each(Ja)}),Pu("default",function(t,e){u(e=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,i=new Jy,r=new Iv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(i.add(r),new Pv({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 Iv({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new Z_({shape:{startAngle:-zb/2,endAngle:-zb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*zb/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*zb/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),l=t.getHeight()/2;e.showSpinner&&n.setShape({cx:i,cy:l}),a.setShape({x:i-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}),Mu({type:jv,event:jv,update:jv},Z),Mu({type:Yv,event:Yv,update:Yv},Z),Mu({type:Xv,event:Xv,update:Xv},Z),Mu({type:qv,event:qv,update:qv},Z),Mu({type:Zv,event:Zv,update:Zv},Z),xu("light",jx),xu("dark",fx),Nu.prototype.add=function(t){return this._add=t,this},Nu.prototype.update=function(t){return this._update=t,this},Nu.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Nu.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Nu.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Nu.prototype.remove=function(t){return this._remove=t,this},Nu.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Nu.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=i[o],l=n[s],u=Ru(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},Nu.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=Ru(l),c=Ru(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},Nu.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Ru(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},Nu.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=Ru(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var iC=Nu;Bu.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Bu.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var rC,oC,aC,sC,lC,uC,hC,cC=Bu,pC=function(t){this.otherDims={},null!=t&&l(this,t)},dC=ri(),fC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gC=(Vu.prototype.isDimensionOmitted=function(){return this._dimOmitted},Vu.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Wu(this.source))},Vu.prototype.getSourceDimensionIndex=function(t){return R(this._dimNameMap.get(t),-1)},Vu.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Vu.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=as(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(fC[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Vu.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},Vu.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Vu),yC=T,mC=g,vC="undefined"==typeof Int32Array?Array:Int32Array,_C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xC=["_approximateExtent"],wC=(Uu.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},Uu.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Uu.prototype._recognizeDimIndex=function(t){if(C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Uu.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Uu.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Uu.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},Uu.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Uu.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},Uu.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Uu.prototype.getStore=function(){return this._store},Uu.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof mb?t:i)||(r=this.dimensions,t=ts(t)||d(t)?new jw(t,r.length):t,i=new mb,r=mC(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=zu(this,this._schema),this.userOutput=this._dimSummary.userOutput},Uu.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Uu.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&hC(this,o)},Uu.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},Uu.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==mw&&!t.fillStorage},Uu.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===dw&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!T(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=Jn(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=Jn(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)hC(this,a);rC(this)}},Uu.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Uu.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Uu.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Uu.prototype.setCalculationInfo=function(t,e){yC(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Uu.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?aC(this,this._nameDimIdx,t):e)?"":e},Uu.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Uu.prototype.getId=function(t){return oC(this,this.getRawIndex(t))},Uu.prototype.count=function(){return this._store.count()},Uu.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Uu.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Uu.prototype.getIndices=function(){return this._store.getIndices()},Uu.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Uu.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Uu.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Uu.prototype.getValues=function(t,e){var n=this,i=this._store;return x(t)?i.getValues(mC(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},Uu.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Uu.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Uu.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Uu.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Uu.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Uu.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Uu.prototype.each=function(t,e,n){w(t)&&(n=e,e=t,t=[]),n=n||this,t=mC(sC(t),this._getStoreDimIndex,this),this._store.each(t,n?Qf(e,n):e)},Uu.prototype.filterSelf=function(t,e,n){return w(t)&&(n=e,e=t,t=[]),n=n||this,t=mC(sC(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?Qf(e,n):e),this},Uu.prototype.selectRange=function(t){var e=this,n={};return f(v(t),function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]}),this._store=this._store.selectRange(n),this},Uu.prototype.mapArray=function(t,e,n){w(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},Uu.prototype.map=function(t,e,n,i){return n=n||i||this,i=mC(sC(t),this._getStoreDimIndex,this),t=uC(this),t._store=this._store.map(i,n?Qf(e,n):e),t},Uu.prototype.modify=function(t,e,n,i){n=n||i||this,i=mC(sC(t),this._getStoreDimIndex,this),this._store.modify(i,n?Qf(e,n):e)},Uu.prototype.downSample=function(t,e,n,i){var r=uC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},Uu.prototype.lttbDownSample=function(t,e){var n=uC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Uu.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Uu.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Ox(t,e,e&&e.ecModel)},Uu.prototype.diff=function(t){var e=this;return new iC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return oC(t,e)},function(t){return oC(e,t)})},Uu.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Uu.prototype.setVisual=function(t,e){this._visual=this._visual||{},yC(t)?l(this._visual,t):this._visual[t]=e},Uu.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Uu.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Uu.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(x(n=this.getVisual(e))?n=n.slice():yC(n)&&(n=l({},n)),i[e]=n),n},Uu.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,yC(e)?l(i,e):i[e]=n},Uu.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Uu.prototype.setLayout=function(t,e){yC(t)?l(this._layout,t):this._layout[t]=e},Uu.prototype.getLayout=function(t){return this._layout[t]},Uu.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Uu.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},Uu.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Uu.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=Ev(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Ev(t),t.seriesIndex=n,t.dataIndex=r,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},Uu.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Uu.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Uu.prototype.cloneShallow=function(t){return t=t||new Uu(this._schema||mC(this.dimensions,this._getDimInfo,this),this.hostModel),lC(t,this),t._store=this._store,t},Uu.prototype.wrapMethod=function(t,e){var n=this[t];w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Uu.internalField=(rC=function(t){var e=t._invertedIndicesMap;f(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new vC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},aC=function(t,e,n){return Jn(t._getCategory(e,n),null)},oC=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?aC(t,t._idDimIdx,e):n)?"e\0\0"+e:n},sC=function(t){return t=x(t)?t:null!=t?[t]:[]},uC=function(t){var e=new Uu(t._schema||mC(t.dimensions,t._getDimInfo,t),t.hostModel);return lC(e,t),e},lC=function(t,e){f(_C.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,f(xC,function(n){t[n]=a(e[n])}),t._calculationInfo=l({},e._calculationInfo)},void(hC=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=aC(t,r,e)),null==s&&null!=o&&(i[e]=s=aC(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),Uu),bC=function(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t},SC={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",cm).models[0],t=t.getReferringComponents("yAxis",cm).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),Yu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Yu(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",cm).models[0],e.coordSysDims=["single"],n.set("single",t),Yu(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",cm).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),Yu(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Yu(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=r.getComponent("parallelAxis",t),s=o[a];n.set(s,t),Yu(t)&&(i.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};$u.prototype.getSetting=function(t){return this._setting[t]},$u.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},$u.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},$u.prototype.getExtent=function(){return this._extent.slice()},$u.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},$u.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},$u.prototype.isBlank=function(){return this._isBlank},$u.prototype.setBlank=function(t){this._isBlank=t};var CC=$u;gi(CC);var TC=0,MC=(Qu.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Ju);return new Qu({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Qu.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Qu.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return b(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},Qu.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},Qu);n(lh,IC=CC),lh.prototype.parse=function(t){return null==t?NaN:b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},lh.prototype.contain=function(t){return oh(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},lh.prototype.normalize=function(t){return ah(t=this._getTickNumber(this.parse(t)),this._extent)},lh.prototype.scale=function(t){return t=Math.round(sh(t,this._extent)),this.getRawOrdinalNumber(t)},lh.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},lh.prototype.getMinorTicks=function(t){},lh.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}},lh.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},lh.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},lh.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},lh.prototype.count=function(){return this._extent[1]-this._extent[0]+1},lh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},lh.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},lh.prototype.getOrdinalMeta=function(){return this._ordinalMeta},lh.prototype.calcNiceTicks=function(){},lh.prototype.calcNiceExtent=function(){},lh.type="ordinal";var IC,kC=lh;CC.registerClass(kC);var DC,AC=Pn,PC=(n(uh,DC=CC),uh.prototype.parse=function(t){return t},uh.prototype.contain=function(t){return oh(t,this._extent)},uh.prototype.normalize=function(t){return ah(t,this._extent)},uh.prototype.scale=function(t){return sh(t,this._extent)},uh.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},uh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},uh.prototype.getInterval=function(){return this._interval},uh.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ih(t)},uh.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]<i[0]&&o.push(t?{value:AC(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=AC(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:i[1];n[1]>s&&o.push(t?{value:AC(s+e,r)}:{value:n[1]})}return o},uh.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var h=AC(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},uh.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=On(t.value)||0:"auto"===e&&(e=this._intervalPrecision),da(AC(t.value,e,!0)))},uh.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];isFinite(r)&&(r<0&&i.reverse(),r=eh(i,t,e,n),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent)},uh.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=AC(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=AC(Math.ceil(e[1]/n)*n))},uh.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},uh.type="interval",uh);CC.registerClass(PC);var OC="undefined"!=typeof Float32Array,LC=OC?Float32Array:Array;n(gh,RC=PC),gh.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return $o(t.value,Yx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ko(this._minLevelUnit))]||Yx.second,e,this.getSetting("locale"))},gh.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(b(n))o=n;else if(w(n))o=n(t.value,e,{level:t.level});else{var a=l({},Ux);if(0<t.level)for(var s=0;s<Xx.length;++s)a[Xx[s]]="{primary|"+a[Xx[s]]+"}";var h=n?!1===n.inherit?n:u(n,a):a,c=Qo(t.value,i);if(h[c])o=h[c];else if(h.inherit){for(s=qx.indexOf(c)-1;0<=s;--s)if(h[c]){o=h[c];break}o=o||a.none}x(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return $o(new Date(t.value),o,i,r)},gh.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,n,i){for(var r=qx,o=0,a=[],s=[],l=0,u=0,h=0;h<r.length&&o++<1e4;++h){var c=Ko(r[h]);if(function(t){return t===Ko(t)}(r[h])){!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,n,i){function r(t){return Jo(c,t,i)===Jo(p,t,i)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function u(){return l()&&r("minute")}function h(){return u()&&r("second")}var c=Bn(e),p=Bn(n);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&r("millisecond")}}(Ko(t),i[0],i[1],n)){s&&(r=[{value:function(t,e,n){var i=new Date(t);switch(Ko(e)){case"year":case"month":i[sa(n)](0);case"day":i[la(n)](1);case"hour":i[ua(n)](0);case"minute":i[ha(n)](0);case"second":i[ca(n)](0),i[pa(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,h=0;h<r.length-1;h++){var c=r[h].value,p=r[h+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/Wx/365)),f=ta(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,d=6<(u/=30*Wx)?6:3<u?3:2<u?2:1,f=ea(n),g=sa(n);break;case"week":case"half-week":case"day":u=e,d=16<(u/=Wx)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=na(n),g=la(n);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=Gx)?12:6<l?6:3.5<l?4:2<l?2:1,f=ia(n),g=ua(n);break;case"minute":d=yh(e,!0),f=ra(n),g=ha(n);break;case"second":d=yh(e,!1),f=oa(n),g=ca(n);break;case"millisecond":d=Vn(e,!0),f=aa(n),g=pa(n)}C=S=b=w=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,w=a,b=new Date(m),S=m,C=b[_]();S<v&&S<=i[1];)w.push({value:S}),b[x](C+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<o.length&&0===h&&o.unshift({value:o[0].value-d})}}for(h=0;h<a.length;h++)o.push(a[h])}}(r[h],a[a.length-1]||[],s);if(c!==(r[h+1]?Ko(r[h+1]):null)){if(s.length){u=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var f=s[d].value;0!==d&&s[d-1].value===f||(p.push(s[d]),f>=i[0]&&f<=i[1]&&l++)}if(1.5*(c=(i[1]-i[0])/e)<l&&c/1.5<u)break;if(a.push(p),c<l||t===r[h])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,h=0;h<y.length;++h)for(var x=y[h],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-h});v.sort(function(t,e){return t.value-e.value});for(var b=[],h=0;h<v.length;++h)0!==h&&v[h].value===v[h-1].value||b.push(v[h]);return b}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},gh.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Wx,n[1]+=Wx),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-Wx),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},gh.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),NC.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(NC,this._approxInterval,0,i),i-1);this._interval=NC[t][1],this._minLevelUnit=NC[Math.max(t-1,0)][0]},gh.prototype.parse=function(t){return C(t)?t:+Bn(t)},gh.prototype.contain=function(t){return oh(this.parse(t),this._extent)},gh.prototype.normalize=function(t){return ah(this.parse(t),this._extent)},gh.prototype.scale=function(t){return sh(t,this._extent)},gh.type="time";var RC,EC=gh,NC=[["second",Vx],["minute",Hx],["hour",Gx],["quarter-day",6*Gx],["half-day",12*Gx],["day",1.2*Wx],["half-week",3.5*Wx],["week",7*Wx],["month",31*Wx],["quarter",95*Wx],["half-year",gm/2],["year",gm]];CC.registerClass(EC);var BC,zC=CC.prototype,FC=PC.prototype,VC=Pn,HC=Math.floor,GC=Math.ceil,WC=Math.pow,UC=Math.log,jC=(n(mh,BC=CC),mh.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(FC.getTicks.call(this,t),function(t){var t=t.value,e=Pn(WC(this.base,t)),e=t===n[0]&&this._fixMin?vh(e,i[0]):e;return{value:t===n[1]&&this._fixMax?vh(e,i[1]):e}},this)},mh.prototype.setExtent=function(t,e){var n=UC(this.base);t=UC(Math.max(0,t))/n,e=UC(Math.max(0,e))/n,FC.setExtent.call(this,t,e)},mh.prototype.getExtent=function(){var t=this.base,e=zC.getExtent.call(this);return e[0]=WC(t,e[0]),e[1]=WC(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=vh(e[0],t[0])),this._fixMax&&(e[1]=vh(e[1],t[1])),e},mh.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=UC(t[0])/UC(e),t[1]=UC(t[1])/UC(e),zC.unionExtent.call(this,t)},mh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},mh.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=zn(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[Pn(GC(e[0]/i)*i),Pn(HC(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},mh.prototype.calcNiceExtent=function(t){FC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},mh.prototype.parse=function(t){return t},mh.prototype.contain=function(t){return oh(t=UC(t)/UC(this.base),this._extent)},mh.prototype.normalize=function(t){return ah(t=UC(t)/UC(this.base),this._extent)},mh.prototype.scale=function(t){return t=sh(t,this._extent),WC(this.base,t)},mh.type="log",mh);Kb=jC.prototype,Kb.getMinorTicks=FC.getMinorTicks,Kb.getLabel=FC.getLabel,CC.registerClass(jC),_h.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),r=(null==r&&(r=e.get("startValue",!0)),this._modelMinRaw=r),r=(w(r)?this._modelMinNum=xh(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=xh(t,r)),this._modelMaxRaw=e.get("max",!0));w(r)?this._modelMaxNum=xh(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=xh(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[gn(t[0],1),gn(t[1],1)]},_h.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),O(a)||O(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},_h.prototype.modifyDataMinMax=function(t,e){this[qC[t]]=e},_h.prototype.setDeterminedMinMax=function(t,e){this[XC[t]]=e},_h.prototype.freeze=function(){this.frozen=!0};var YC=_h,XC={min:"_determinedMin",max:"_determinedMax"},qC={min:"_dataMin",max:"_dataMax"};Dh.prototype.getNeedCrossZero=function(){return!this.option.scale},Dh.prototype.getCoordSysModel=function(){};var ZC=Dh,Jb=Object.freeze({__proto__:null,createDimensions:function(t,e){return ju(t,e).dimensions},createList:function(t){return Ku(null,t)},createScale:function(t,e){var n=e;return(e=Sh(n=e instanceof Ox?n:new Ox(e))).setExtent(t[0],t[1]),bh(e,n),e},createSymbol:Vl,createTextStyle:function(t,e){return Fo(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qu,enableDataStack:Xu,getStackedDimension:Zu},enableHoverEmphasis:kr,getECData:Ev,getLayoutRect:ba,mixinAxisModelCommonMethods:function(t){p(t,ZC)}}),KC=[],$C={registerPreprocessor:wu,registerProcessor:bu,registerPostInit:Su,registerPostUpdate:Cu,registerUpdateLifecycle:Tu,registerAction:Mu,registerCoordinateSystem:Iu,registerLayout:ku,registerVisual:Du,registerTransform:Lu,registerLoading:Pu,registerMap:Ou,registerImpl:function(t,e){gS[t]=e},PRIORITY:Qb,ComponentModel:aw,ComponentView:Mb,SeriesModel:Tb,ChartView:Db,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){Mb.registerClass(t)},registerSeriesModel:function(t){Tb.registerClass(t)},registerChartView:function(t){Db.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mn(t,e)}},QC=1e-8,JC=[];Eh.prototype.setCenter=function(t){this._center=t},Eh.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},tS=Eh;var tT,eT,nT=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},iT=function(t){this.type="linestring",this.points=t},rT=(n(Nh,tT=tS),Nh.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,o=o&&o.length;n<o&&(t=r,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},Nh.prototype.getBoundingRect=function(t){var e,n,i=this._rect;return i&&!t||(e=[1/0,1/0],n=[-1/0,-1/0],f(this.geometries,function(i){"polygon"===i.type?Rh(i.exterior,e,n,t):f(i.points,function(i){Rh(i,e,n,t)})}),isFinite(e[0])&&isFinite(e[1])&&isFinite(n[0])&&isFinite(n[1])||(e[0]=e[1]=n[0]=n[1]=0),i=new Og(e[0],e[1],n[0]-e[0],n[1]-e[1]),t)||(this._rect=i),i},Nh.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Oh(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Oh(s[l],t[0],t[1]))continue t;return!0}}}return!1},Nh.prototype.transformTo=function(t,e,n,i){for(var r=this.getBoundingRect(),o=r.width/r.height,o=(n?i=i||n/o:n=o*i,new Og(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(Lh(u.exterior,a),f(u.interiors,function(t){Lh(t,a)})):f(u.points,function(t){Lh(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},Nh.prototype.cloneShallow=function(t){return t=new Nh(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Nh);n(Bh,eT=tS),Bh.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ct(JC),i=t;i&&!i.isGeoSVGGraphicRoot;)Mt(n,i.getLocalTransform(),n),i=i.parent;return At(n,n),st(e,e,n),e};var Ix=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),e=g(t,function(t){return(isNaN(t)?0:t)/n*i*100}),r=100*i,o=g(e,function(t){return Math.floor(t)}),a=y(o,function(t,e){return t+e},0),s=g(e,function(t,e){return t-o[e]});a<r;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return g(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Rn,getPrecision:On,getPrecisionSafe:Ln,isNumeric:Gn,isRadianAroundZero:Nn,linearMap:Dn,nice:Vn,numericToNumber:Hn,parseDate:Bn,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e-=n)?i+e*(t[n]-i):i},quantity:zn,quantityExponent:Fn,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},remRadian:En,round:Pn}),mm=Object.freeze({__proto__:null,format:$o,parse:Bn}),Ax=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:Y_,BoundingRect:Og,Circle:p_,CompoundPath:$_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:G_,LinearGradient:tx,Polygon:E_,Polyline:z_,RadialGradient:Q_,Rect:Iv,Ring:O_,Sector:D_,Text:Pv,clipPointsByRect:ko,clipRectByRect:Do,createIcon:Ao,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:Co,initProps:uo,makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,resizePath:bo,updateProps:lo}),kx=Object.freeze({__proto__:null,addCommas:da,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:yt,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Bn(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",Zo(r,2)).replace("M",r).replace("yyyy",i).replace("yy",Zo(i%100+"",2)).replace("dd",Zo(o,2)).replace("d",o).replace("hh",Zo(a,2)).replace("h",a).replace("mm",Zo(s,2)).replace("m",s).replace("ss",Zo(l,2)).replace("s",l).replace("SSS",Zo(e,3))},formatTpl:ma,getTextRect:function(t,e,n,i,r,o,a,s){return new Pv({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:va,normalizeCssArray:Zx,toCamelCase:fa,truncateText:wi}),Tx=Object.freeze({__proto__:null,bind:Qf,clone:a,curry:_,defaults:u,each:f,extend:l,filter:m,indexOf:h,inherits:c,isArray:x,isFunction:w,isObject:T,isString:b,map:g,merge:s,reduce:y}),oT=ri(),aT=[0,1],jx=(Kh.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},Kh.prototype.containData=function(t){return this.scale.contain(t)},Kh.prototype.getExtent=function(){return this._extent.slice()},Kh.prototype.getPixelPrecision=function(t){return Rn(t||this.scale.getExtent(),this._extent)},Kh.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Kh.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&$h(n=n.slice(),i.count()),Dn(t,aT,n,e)},Kh.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&$h(n=n.slice(),i.count()),Dn(t,n,aT,e));return this.scale.scale(i)},Kh.prototype.pointToData=function(t,e){},Kh.prototype.getTicksCoords=function(t){function e(t,e){return t=Pn(t),e=Pn(e),s?e<t:t<e}var n,i,r,o,a,s,l,u=(t=t||{}).tickModel||this.getTickModel(),h=g(Wh(this,u).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),u=u.get("alignWithLabel");return n=this,i=h,u=u,t=t.clamp,l=i.length,n.onBand&&!u&&l&&(u=n.getExtent(),1===l?(i[0].coord=u[0],r=i[1]={coord:u[1]}):(a=i[l-1].tickValue-i[0].tickValue,o=(i[l-1].coord-i[0].coord)/a,f(i,function(t){t.coord-=o/2}),n=1+(a=n.scale.getExtent())[1]-i[l-1].tickValue,r={coord:i[l-1].coord+o*n},i.push(r)),s=u[0]>u[1],e(i[0].coord,u[0])&&(t?i[0].coord=u[0]:i.shift()),t&&e(u[0],i[0].coord)&&i.unshift({coord:u[0]}),e(u[1],r.coord)&&(t?r.coord=u[1]:i.pop()),t)&&e(r.coord,u[1])&&i.push({coord:u[1]}),h},Kh.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),g(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Kh.prototype.getViewLabels=function(){return Gh(this).labels},Kh.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Kh.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Kh.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Kh.prototype.calculateCategoryInterval=function(){r=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=Ch(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(r=d.scale).getExtent(),r=r.count();if(i[1]-i[0]<1)return 0;for(var o=1,a=(40<r&&(o=Math.max(1,Math.floor(r/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=o)var c=1.3*(p=cn(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=oT(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=r,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},Kh),sT=2*Math.PI,lT=ov.CMD,uT=["top","right","bottom","left"],hT=[],cT=new Sg,pT=new Sg,dT=new Sg,fT=new Sg,gT=new Sg,yT=[],mT=new Sg,vT=["align","verticalAlign","width","height","fontSize"],_T=new Uy,xT=ri(),wT=ri(),bT=["x","y","rotation"],ST=(uc.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},uc.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(Og.applyTransform(u,u,l),l?_T.setLocalTransform(l):(_T.x=_T.y=_T.rotation=_T.originX=_T.originY=0,_T.scaleX=_T.scaleY=1),_T.rotation=Oi(_T.rotation),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),Og.applyTransform(o,o,h)),o&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:_T.x,y:_T.y,scaleX:_T.scaleX,scaleY:_T.scaleY,rotation:_T.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},uc.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),i=n.get("labelLayout");(w(i)||v(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),t=Ev(t);r&&!r.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,r,i)})},uc.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=w(r.layoutOption)?r.layoutOption(sc(r,a)):r.layoutOption,u=(r.computedLayoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(o.x=An(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=An(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),xT(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<vT.length;p++){var d=vT[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){ec(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},uc.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),n=rc(this._labelList),i=m(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=m(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});oc(i,"x","width",0,e,void 0),oc(r,"y","height",0,t,void 0),ac(m(n,function(t){return t.layoutOption.hideOverlap}))},uc.prototype.processLabelsOverall=function(){var t=this;f(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();(o=!o&&a?xT(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},uc.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Ev(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),r=(r&&(n=n.getVisual("drawType"),i.stroke=r[n]),e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Wv.length;i++){var r=Wv[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,h=e.get("show"),c=l.ignore,p=0;p<Uv.length;p++){var d,f=Uv[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:R(l.states[f]&&l.states[f].ignore,c))||!R(d,h)?((d=y?s:s&&s.states[f])&&(d.ignore=!0),s&&nc(s,!0,f,g)):(s||(s=new z_,o.setTextGuideLine(s),y||!c&&h||nc(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),nc(s,!1,f,g)))}s&&(u(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=ic)}else s&&o.removeTextGuideLine();ec(t,r)}},uc.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||ho(t))||(o=(r=xT(s)).oldLayout,n=(i=Ev(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=h(t,"select")&&s.attr(r.oldLayoutSelect),0<=h(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),lo(s,a,e,n)):(s.attr(a),xx(s).valueAnimation||(t=R(s.style.opacity,1),s.style.opacity=0,uo(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&(lc(t=r.oldLayoutSelect={},a,bT),lc(t,s.states.select,bT)),s.states.emphasis&&(lc(t=r.oldLayoutEmphasis={},a,bT),lc(t,s.states.emphasis,bT)),Go(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=wT(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),lo(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,uo(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},uc),CT=ri();Ah(hc),n(pc,TT=hg),pc.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},pc.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},pc.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},pc.prototype.setUnpainted=function(){this.__firstTimePaint=!0},pc.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=cc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},pc.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new Og(0,0,0,0)).copy(t),a.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<a.length;++o){var h=a[o];if(h.intersect(t)){var c=new Og(0,0,0,0);c.copy(h),c.union(t),a[o]=c,n=!0;break}l&&(u.copy(t),u.union(h),c=t.width*t.height,h=h.width*h.height,(h=u.width*u.height-c-h)<i)&&(i=h,r=o)}l&&(a[r].union(t),n=!0),n||((e=new Og(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o,a=[],s=this.maxRepaintRectCount,l=!1,u=new Og(0,0,0,0),h=this.__startIndex;h<this.__endIndex;++h)(c=t[h])&&(d=c.shouldBePainted(n,i,!0,!0),(p=c.__isRendered&&(c.__dirty&Wg||!d)?c.getPrevPaintRect():null)&&r(p),o=d&&(c.__dirty&Wg||!c.__isRendered)?c.getPaintRect():null)&&r(o);for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c,p,d=(c=e[h])&&c.shouldBePainted(n,i,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&r(p)}do{for(var f=!1,h=0;h<a.length;)if(a[h].isZero())a.splice(h,1);else{for(var g=h+1;g<a.length;)a[h].intersect(a[g])?(f=!0,a[h].union(a[g]),a.splice(g,1)):g++;h++}}while(f);return this._paintRects=a},pc.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},pc.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},pc.prototype.clear=function(t,e,n){function i(t,n,i,r){var a;o.clearRect(t,n,i,r),e&&"transparent"!==e&&(a=void 0,D(e)?(a=(e.global||e.__width===i&&e.__height===r)&&e.__canvasGradient||Wl(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a,e.__width=i,e.__height=r):A(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=Ql(o,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()),l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height,l=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,h=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h)),this.domBack);!n||l?i(0,0,a,s):n.length&&f(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})};var TT,MT=pc,IT=314159;dc.prototype.getType=function(){return"canvas"},dc.prototype.isSingleCanvas=function(){return this._singleCanvas},dc.prototype.getViewportRoot=function(){return this._domRoot},dc.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},dc.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},dc.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},dc.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),ou(i,a,r,o===e-1))}i&&i.restore()}},dc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},dc.prototype.paintOne=function(t,e){ru(t,e)},dc.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Xg(function(){a._paintList(t,e,n,i)})))},dc.prototype._compositeManually=function(){var t=this.getLayer(IT).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},dc.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||n)&&r.push(s)}for(var l=!0,u=!1,h=this,c=0;c<r.length;c++)!function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(p=y;p<d.__endIndex;p++){var r=t[p];if(r.__inHover&&(u=!0),i._doPaintEl(r,d,o,e,n,p===d.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var c,p,d=r[a],f=d.ctx,g=o&&d.createRepaintRects(t,e,h._width,h._height),y=n?d.__startIndex:d.__drawIndex,m=!n&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!n)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=h.dpr,x=0;x<g.length;++x){var w=g[x];f.save(),f.beginPath(),f.rect(w.x*_,w.y*_,w.width*_,w.height*_),f.clip(),s(w),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return Pf.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:u}},dc.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx,n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(ou(e,t,r,o),t.setPrevPaintRect(n))):ou(e,t,r,o)},dc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IT);var n=this._layers[t];return n||((n=new MT("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?s(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},dc.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},dc.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},dc.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},dc.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},dc.prototype.getLayers=function(){return this._layers},dc.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,a=0,s=0;s<t.length;s++){var l,u=(l=t[s]).zlevel,h=void 0;i!==u&&(i=u,a=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):h=this.getLayer(u+(0<a?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,e(s),r=h),l.__dirty&Wg&&!l.__inHover&&(h.__dirty=!0,h.incremental)&&h.__drawIndex<0&&(h.__drawIndex=s)}e(s),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},dc.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},dc.prototype._clearLayer=function(t){t.clear()},dc.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},dc.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?s(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+.01||s(this._layers[r],n[t],!0)}}},dc.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(h(n,t),1))},dc.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=jl(r,0,i),e=jl(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(IT).resize(t,e)}return this},dc.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},dc.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},dc.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[IT].dom;var e=new MT("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];ou(n,u,o,s===l-1)}return e.dom},dc.prototype.getWidth=function(){return this._width},dc.prototype.getHeight=function(){return this._height};var kT=dc;n(fc,DT=aw),fc.prototype.init=function(t,e,n){DT.prototype.init.call(this,t,e,n),this._sourceManager=new vb(this),Hs(this)},fc.prototype.mergeOption=function(t,e){DT.prototype.mergeOption.call(this,t,e),Hs(this)},fc.prototype.optionUpdated=function(){this._sourceManager.dirty()},fc.prototype.getSourceManager=function(){return this._sourceManager},fc.type="dataset",fc.defaultOption={seriesLayoutBy:_w};var DT,AT=fc;n(gc,PT=Mb),gc.type="dataset";var PT,OT=gc;Ah([function(t){t.registerPainter("canvas",kT)},yc]),Ah(hc),n(mc,LT=Tb),mc.prototype.getInitialData=function(t){return Ku(null,this,{useEncodeDefaulter:!0})},mc.prototype.getLegendIcon=function(t){var e=new Jy,n=Vl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,r=.8*t.itemHeight,r=Vl(n,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),i=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return r.rotation=i*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),e},mc.type="series.line",mc.dependencies=["grid","polar"],mc.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var LT,RT=mc;n(_c,ET=Jy),_c.prototype._createSymbol=function(t,e,n,i,r){this.removeAll(),r=Vl(t,-1,-1,2,2,null,r),r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=xc,this._symbolType=t,this.add(r)},_c.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},_c.prototype.getSymbolType=function(){return this._symbolType},_c.prototype.getSymbolPath=function(){return this.childAt(0)},_c.prototype.highlight=function(){yr(this.childAt(0))},_c.prototype.downplay=function(){mr(this.childAt(0))},_c.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},_c.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},_c.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=_c.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,r)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?o.attr(a):lo(o,a,l,e),ux(s=o).oldStyle=s.style),this._updateCommon(t,e,u,n,i),h&&(o=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,uo(o,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_c.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,u,h,c,p,d,f=this.childAt(0),g=t.hostModel,y=(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,h=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,m=i.cursorStyle,c=i.emphasisDisabled),i&&!t.hasItemOption||(o=(y=(i=i&&i.itemModel?i.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),h=y.get("blurScope"),c=y.get("disabled"),p=zo(i),d=y.getShallow("scale"),m=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),i=(f.attr("rotation",(y||0)*Math.PI/180||0),Hl(t.getItemVisual(e,"symbolOffset"),n)),y=(i&&(f.x=i[0],f.y=i[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),i=y.fill,m=(f instanceof bv?(m=f.style,f.useStyle(l({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(l({},y)):f.useStyle(y),f.style.decal=null,f.setColor(i,r&&r.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),r&&r.useNameLabel);Bo(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):vc(t,e)},inheritColor:i,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,m=f.ensureState("emphasis"),m.style=o,f.ensureState("select").style=a,f.ensureState("blur").style=s,v=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&0<d?+d:1,m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v,this.setSymbolScale(1),Dr(this,u,h,c)},_c.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},_c.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ev(this).dataIndex,o=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&co(n,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}}):i.removeTextContent(),co(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},_c.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var ET,NT=_c;Cc.prototype.updateData=function(t,e){this._progressiveEls=null,e=bc(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Sc(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r,a=u(i);wc(t,a,i,e)&&((r=new o(t,i,s,l)).setPosition(a),t.setItemGraphicEl(i,r),n.add(r))}).update(function(h,c){var p,d,c=r.getItemGraphicEl(c),f=u(h);wc(t,f,h,e)?(p=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(n.remove(c),(c=new o(t,h,s,l)).setPosition(f)):(c.updateData(t,h,s,l),d={x:f[0],y:f[1]},a?c.attr(d):lo(c,d,i)),n.add(c),t.setItemGraphicEl(h,c)):n.remove(c)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},Cc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()})},Cc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sc(t),this._data=null,this.group.removeAll()},Cc.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=bc(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);wc(e,a,r,n)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},Cc.prototype.eachRendered=function(t){Ro(this._progressiveEls||this.group,t)},Cc.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var BT,zT=Cc,FT=Math.min,VT=Math.max,HT=function(){this.smooth=0,this.smoothConstraint=!0},GT=(n(Dc,BT=yv),Dc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Dc.prototype.getDefaultShape=function(){return new HT},Dc.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;0<r&&Ic(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Ic(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=kc(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Dc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=ov.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:var c,u=r[l++],h=r[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case o.C:u=r[l++],h=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[l++],y=a?$t(n,u,p,f,t,s):$t(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Zt(i,h,d,g,_):Zt(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},Dc);n(Ac,WT=HT);var WT,UT=Ac;n(Pc,jT=yv),Pc.prototype.getDefaultShape=function(){return new UT},Pc.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&Ic(n[2*o-2],n[2*o-1]);o--);for(;r<o&&Ic(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=kc(t,n,r,o,o,1,e.smooth,a,e.connectNulls);kc(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var jT,YT=Pc;n(Wc,XT=Db),Wc.prototype.init=function(){var t=new Jy,e=new zT;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Wc.prototype.render=function(t,e,n){function i(t){o._changePolyState(t)}var r,o=this,a=t.coordinateSystem,s=this.group,l=t.getData(),h=t.getModel("lineStyle"),c=t.getModel("areaStyle"),p=l.getLayout("points")||[],d="polar"===a.type,f=this._coordSys,g=this._symbolDraw,y=this._polyline,m=this._polygon,v=this._lineGroup,e=!e.ssr&&t.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Tc(a,l,x),w=_&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=hh(2*i),o=0;o<i;o++){var a=Mc(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(a,l,w),b=t.get("showSymbol"),S=t.get("connectNulls"),C=b&&!d&&zc(t,l,a),T=this._data,M=(T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),T.setItemGraphicEl(e,null))}),b||g.remove(),s.add(v),!d&&t.get("step")),I=(a&&a.getArea&&t.get("clip",!0)&&(null!=(r=a.getArea()).width?(r.x-=.1,r.y-=.1,r.width+=.2,r.height+=.2):r.r0&&(r.r0-=.5,r.r+=.5)),this._clipShapeForSymbol=r,Bc(l,a,n)||l.getVisual("style")[l.getVisual("drawType")]),f=(y&&f.type===a.type&&M===this._step?(_&&!m?m=this._newPolygon(p,w):m&&!_&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),(f=v.getClipPath())?uo(f,{shape:Gc(this,a,!1,t).shape},t):v.setClipPath(Gc(this,a,!0,t)),b&&g.updateData(l,{isIgnore:C,clipShape:r,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),Oc(this._stackedOnPoints,w)&&Oc(this._points,p)||(e?this._doUpdateAnimation(l,w,a,n,M,x,S):(M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,S)),y.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:w})))):(b&&g.updateData(l,{isIgnore:C,clipShape:r,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,r),M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,S)),y=this._newPolyline(p),_?m=this._newPolygon(p,w):m&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),v.setClipPath(Gc(this,a,!0,t))),t.getModel("emphasis")),n=f.get("focus"),b=f.get("blurScope"),g=f.get("disabled"),C=(y.useStyle(u(h.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Ar(y,t,"lineStyle"),0<y.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(y.getState("emphasis").style.lineWidth=+y.style.lineWidth+1),Ev(y).seriesIndex=t.seriesIndex,Dr(y,n,b,g),Ec(t.get("smooth"))),e=t.get("smoothMonotone");y.setShape({smooth:C,smoothMonotone:e,connectNulls:S}),m&&(r=l.getCalculationInfo("stackedOnSeries"),_=0,m.useStyle(u(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),r&&(_=Ec(r.get("smooth"))),m.setShape({smooth:C,stackedOnSmooth:_,smoothMonotone:e,connectNulls:S}),Ar(m,t,"areaStyle"),Ev(m).seriesIndex=t.seriesIndex,Dr(m,n,b,g)),l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=p,this._step=M,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,y),m)&&this.packEventData(t,m)},Wc.prototype.packEventData=function(t,e){Ev(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Wc.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ii(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new NT(r,o)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,r.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Db.prototype.highlight.call(this,t,e,n,i)},Wc.prototype.downplay=function(t,e,n,i){var r,o=t.getData(),a=ii(o,i);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Db.prototype.downplay.call(this,t,e,n,i)},Wc.prototype._changePolyState=function(t){var e=this._polygon;hr(this._polyline,t),e&&hr(e,t)},Wc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new GT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Wc.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new YT({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Wc.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse,o=("cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0),t.hostModel),s=o.get("animationDuration"),l=(w(s)&&(s=s(null)),o.get("animationDelay")||0),u=w(l)?l(null):l;t.eachItemGraphicEl(function(t,o){var h,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=h=void 0,n&&(f=r?(p=n,d=e.pointToCoord(d),i?(h=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(h=p.r0,c=p.r,d[0])):i?(h=n.x,c=n.x+n.width,t.x):(h=n.y+n.height,c=n.y,t.y)),p=c===h?0:(f-h)/(c-h),a&&(p=1-p),d=w(l)?l(o):s*p+u,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},Wc.prototype._initOrUpdateEndLabel=function(t,e,n){var i,r,o,a=t.getModel("endLabel");Hc(t)?(i=t.getData(),r=this._polyline,(o=i.getLayout("points"))?(this._endLabel||((this._endLabel=new Pv({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=Fc(o))&&(Bo(r,zo(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return vc(i,t);var r=i,o=n,a=r.mapDimensionsAll("defaultedLabel");if(!x(o))return o+"";for(var s=[],l=0;l<a.length;l++){var u=r.getDimensionIndex(a[l]);0<=u&&s.push(o[u])}return s.join(" ")},enableTextSetter:!0},(n=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Wc.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=r||e<=i&&r<=e){l=u;break}s=u}i=r}return{range:[s,l],t:(e-i)/(r-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Vc(s,p[0]),m.attr({x:y[0]+h,y:y[1]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=ui(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Vc(s,v=1===t||0<i.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+o})),r)&&"function"==typeof(a=xx(m)).setLabelText&&a.setLabelText(d)},Wc.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Tc(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],C=y[1+b],T=m[w],M=m[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),h.push(n[b],n[1+b]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,C=g.dataDimsForPoint,T=r.dataToPoint([e.get(C[0],S),e.get(C[1],S)]),w=2*S,l.push(T[0],T[1]),u.push(m[w],m[w+1]),M=Mc(g,r,e,S),h.push(M[0],M[1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var I=hh(o=l.length),k=hh(o),D=hh(o),A=hh(o),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,R=2*O;I[L]=l[R],I[1+L]=l[1+R],k[L]=u[R],k[1+L]=u[1+R],D[L]=h[R],D[1+L]=h[1+R],A[L]=c[R],A[1+L]=c[1+R],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:D,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(r&&(h=Nc(e.current,n,r,a),c=Nc(e.stackedOnCurrent,n,r,a),p=Nc(e.next,n,r,a),d=Nc(e.stackedOnNext,n,r,a)),3e3<Rc(h,p)||l&&3e3<Rc(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),lo(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),lo(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},Wc.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Wc.type="line";var XT,qT=Wc,ZT={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],o=Math.abs(r);e<o&&(e=o,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},KT=function(t){return Math.round(t.length/2)};Ah(function(t){var e;t.registerChartView(qT),t.registerSeriesModel(RT),t.registerLayout((e=!0,{seriesType:"line",plan:pl(),reset:function(t){var n,i,r,o,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,u=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),n=t.length,i=s.getCalculationInfo("stackResultDimension"),qu(s,t[0])&&(t[0]=i),qu(s,t[1])&&(t[1]=i),r=s.getStore(),o=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),n&&{progress:function(t,e){for(var i=t.end-t.start,s=u&&hh(i*n),h=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===n?(f=r.get(o,p),l.dataToPoint(f,null,c)):(h[0]=r.get(o,p),h[1]=r.get(a,p),l.dataToPoint(h,null,c)),u?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}u&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===o&&t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/n)),s=void 0,b(o)?s=ZT[o]:w(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/n,s,KT))}})}),n(Uc,$T=aw),Uc.type="grid",Uc.dependencies=["xAxis","yAxis"],Uc.layoutMode="box",Uc.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var $T,QT=Uc;n(jc,JT=aw),jc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cm).models[0]},jc.type="cartesian2dAxis";var JT,tM=jc;p(tM,ZC);var fx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gm=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fx),Kb=s({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},fx),eM={category:gm,value:Kb,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Kb),log:u({logBase:10},Kb)},nM={value:1,category:1,time:1,log:1};qc.prototype.getAxis=function(t){return this._axes[t]},qc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},qc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},qc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var iM=["x","y"];n(Kc,rM=qc),Kc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;Zc(r)&&Zc(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=At([],i))},Kc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Kc.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},Kc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Kc.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new Og(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},Kc.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?st(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},Kc.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},Kc.prototype.pointToData=function(t,e){var n,i,r=[];return this._invTransform?st(r,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),r[0]=n.coordToData(n.toLocalCoord(t[0]),e),r[1]=i.coordToData(i.toLocalCoord(t[1]),e),r)},Kc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Kc.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-r+t;return new Og(i,r,e,n)};var rM,oM=Kc;n($c,aM=jx),$c.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},$c.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},$c.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},$c.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var aM,sM=$c,lM=Math.log;ep.prototype.getRect=function(){return this._rect},ep.prototype.update=function(t,e){function n(t){var e,n=v(t),i=n.length;if(i){for(var r=[],o=i-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;th(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(bh(l,s),th(l)&&(e=a))}r.length&&(e||bh((e=r.pop()).scale,e.model),f(r,function(t){var n=t.scale,t=t.model,i=e.scale,r=PC.prototype,o=r.getTicks.call(i),a=r.getTicks.call(i,!0),s=o.length-1,i=r.getInterval.call(i),l=(t=wh(n,t)).extent,u=t.fixMin,t=t.fixMax,h=("log"===n.type&&(h=lM(n.base),l=[lM(l[0])/h,lM(l[1])/h]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),r.getExtent.call(n)),c=(u&&(l[0]=h[0]),t&&(l[1]=h[1]),r.getInterval.call(n)),p=l[0],d=l[1];if(u&&t)c=(d-p)/s;else if(u)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=nh(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=nh(c),p=l[1]-c*s;else h=(c=s<n.getTicks().length-1?nh(c):c)*s,(p=Pn((d=Math.ceil(l[1]/c)*c)-h))<0&&0<=l[0]?(p=0,d=Pn(h)):0<d&&l[1]<=0&&(d=0,p=-Pn(h));u=(o[0].value-a[0].value)/i,t=(o[s].value-a[s].value)/i,r.setExtent.call(n,p+c*u,d+c*t),r.setInterval.call(n,c),(u||t)&&r.setNiceExtent.call(n,p+c,d-c)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};f(i.x,function(t){ip(i,"y",t,r)}),f(i.y,function(t){ip(i,"x",t,r)}),this.resize(this.model,e)},ep.prototype.resize=function(t,e,n){function i(){f(a,function(t){var e,n,i=t.isHorizontal(),r=i?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=i?o.x:o.y,a=r.getExtent(),n=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return n-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return n-t+e}})}var r=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),o=ba(r,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=o,this._axesList);i(),n&&(f(a,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=Mh(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i))}),i()),f(this._coordsList,function(t){t.calcAffineTransform()})},ep.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},ep.prototype.getAxes=function(){return this._axesList.slice()},ep.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];T(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},ep.prototype.getCartesians=function(){return this._coordsList.slice()},ep.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},ep.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},ep.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",cm).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",cm).models[0],t=t.gridModel,a=this._coordsList;return i?h(a,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},ep.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},ep.prototype._initCartesian=function(t,e,n){function i(e){return function(n,i){var r,u;np(n,t)&&(r=n.get("position"),"x"===e?"top"!==r&&"bottom"!==r&&(r=a.bottom?"top":"bottom"):"left"!==r&&"right"!==r&&(r=a.left?"right":"left"),a[r]=!0,u="category"===(r=new sM(e,Sh(n),[0,0],n.get("type"),r)).type,r.onBand=u&&n.get("boundaryGap"),r.inverse=n.get("inverse"),(n.axis=r).model=n,r.grid=o,r.index=i,o._axesList.push(r),s[e][i]=r,l[e]++)}}var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,n){f(s.y,function(i,o){var o="x"+n+"y"+o,a=new oM(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._coordsList.push(a),a.addAxis(e),a.addAxis(i)})}):(this._axesMap={},this._axesList=[])},ep.prototype._updateScale=function(t,e){function n(t,e){var n,i,r;f((n=t,i=e.dim,r={},f(n.mapDimensionsAll(i),function(t){r[Zu(n,t)]=!0}),v(r)),function(n){e.scale.unionExtentFromData(t,n)})}f(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var i,r;Jc(t)&&(r=(i=tp(t)).xAxisModel,i=i.yAxisModel,np(r,e))&&np(i,e)&&(r=this.getCartesian(r.componentIndex,i.componentIndex),i=t.getData(),t=r.getAxis("x"),r=r.getAxis("y"),n(i,t),n(i,r))},this)},ep.prototype.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),i=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,i)<0&&n.push(i)}),{baseAxes:e,otherAxes:n}},ep.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var o=new ep(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){var e,n,i;Jc(t)&&(e=(n=tp(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),n},ep.dimensions=iM;var uM,hM,cM,pM=ep,dM=Math.PI,fM=(op.prototype.hasBuilder=function(t){return!!gM[t]},op.prototype.add=function(t){gM[t](this.opt,this.axisModel,this.group,this._transformGroup)},op.prototype.getGroup=function(){return this.group},op.innerTextLayout=function(t,e,n){var i,e=En(e-t),t=Nn(e)?(i=0<n?"top":"bottom","center"):Nn(e-dM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<dM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},op.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},op.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},op),gM={axisLine:function(t,e,n,i){var r,o,a,s,u,h,c,p=e.get(["axisLine","show"]);(p="auto"===p&&t.handleAutoShown?t.handleAutoShown("axisLine"):p)&&(p=e.axis.getExtent(),i=i.transform,r=[p[0],0],o=[p[1],0],a=o[0]<r[0],i&&(st(r,r,i),st(o,o,i)),s=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),So((p=new G_({shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).shape,p.style.lineWidth),p.anid="line",n.add(p),null!=(u=e.get(["axisLine","symbol"])))&&(i=e.get(["axisLine","symbolSize"]),b(u)&&(u=[u,u]),(b(i)||C(i))&&(i=[i,i]),p=Hl(e.get(["axisLine","symbolOffset"])||0,i),h=i[0],c=i[1],f([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[1]))}],function(e,i){var l;"none"!==u[i]&&null!=u[i]&&(i=Vl(u[i],-h/2,-c/2,h,c,s.stroke,!0),l=e.r+e.offset,i.attr({rotation:e.rotate,x:(e=a?o:r)[0]+l*Math.cos(t.rotation),y:e[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))}))},axisTickLabel:function(t,e,n,i){var r,o,a,s,l,h=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var a=o.getModel("lineStyle"),i=i.tickDirection*o.get("length"),s=up(r.getTicksCoords(),e.transform,i,u(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),c=function(t,e,n,i){var r,o,a,s,l,u,h,c,p=n.axis,d=L(i.axisLabelShow,n.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return r=n.getModel("axisLabel"),o=r.get("margin"),a=p.getViewLabels(),d=(L(i.labelRotate,r.get("rotate"))||0)*dM/180,s=fM.innerTextLayout(i.rotation,d,i.labelDirection),l=n.getCategories&&n.getCategories(!0),u=[],h=fM.isLabelSilent(n),c=n.get("triggerEvent"),f(a,function(d,f){var g="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,y=d.formattedLabel,m=d.rawLabel,v=r,_=(v=l&&l[g]&&T(_=l[g])&&_.textStyle?new Ox(_.textStyle,r,n.ecModel):v).getTextColor()||n.get(["axisLine","lineStyle","color"]),x=p.dataToCoord(g),b=v.getShallow("align",!0)||s.textAlign,S=R(v.getShallow("alignMinLabel",!0),b),C=R(v.getShallow("alignMaxLabel",!0),b),M=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||s.textVerticalAlign,I=R(v.getShallow("verticalAlignMinLabel",!0),M),k=R(v.getShallow("verticalAlignMaxLabel",!0),M),x=new Pv({x:x,y:i.labelOffset+i.labelDirection*o,rotation:s.rotation,silent:h,z2:10+(d.level||0),style:Fo(v,{text:y,align:0===f?S:f===a.length-1?C:b,verticalAlign:0===f?I:f===a.length-1?k:M,fill:w(_)?_("category"===p.type?m:"value"===p.type?g+"":g,f):_})});x.anid="label_"+g,c&&((d=fM.makeAxisEventDataBase(n)).targetType="axisLabel",d.value=m,d.tickIndex=f,"category"===p.type&&(d.dataIndex=g),Ev(x).eventData=d),e.add(x),x.updateTransform(),u.push(x),t.add(x),x.decomposeTransform()}),u}(n,i,e,t),p=(o=c,h=h,kh((r=e).axis)||(y=r.get(["axisLabel","showMinLabel"]),r=r.get(["axisLabel","showMaxLabel"]),h=h||[],_=(o=o||[])[0],m=o[1],a=o[o.length-1],o=o[o.length-2],s=h[0],v=h[1],l=h[h.length-1],h=h[h.length-2],!1===y?(ap(_),ap(s)):sp(_,m)&&(y?(ap(m),ap(v)):(ap(_),ap(s))),!1===r?(ap(a),ap(l)):sp(o,a)&&(r?(ap(o),ap(h)):(ap(a),ap(l)))),n),d=i,y=e,m=t.tickDirection,v=y.axis,_=y.getModel("minorTick");if(_.get("show")&&!v.scale.isBlank()){var x=v.getMinorTicksCoords();if(x.length)for(var v=_.getModel("lineStyle"),b=m*_.get("length"),S=u(v.getLineStyle(),u(y.getModel("axisTick").getLineStyle(),{stroke:y.get(["axisLine","lineStyle","color"])})),C=0;C<x.length;C++)for(var M=up(x[C],d.transform,b,S,"minorticks_"+C),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&ac(rc(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r,o,a,s,l,u,h,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,r=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,o=(h=e.axis.getExtent())[0]>h[1]?-1:1,o=["start"===c?h[0]-o*u:"end"===c?h[1]+o*u:(h[0]+h[1])/2,lp(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*dM/180),lp(c)?a=fM.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var r,n=En(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=Nn(n-dM/2)?(r=i?"bottom":"top","center"):Nn(n-1.5*dM)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*dM&&dM/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:r}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=r.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=L(t.nameTruncateMaxWidth,c.maxWidth,s),Oo({el:t=new Pv({x:o[0],y:o[1],rotation:a.rotation,silent:fM.isLabelSilent(e),style:Fo(r,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||a.textAlign,verticalAlign:r.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=fM.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Ev(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}},yM={},mM=(n(gp,uM=Mb),gp.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=pp(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=dp(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=r.axis.scale.isBlank()?"hide":"show"),uM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},gp.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},gp.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},gp.prototype.dispose=function(t,e){this._disposeAxisPointer(e),uM.prototype.dispose.apply(this,arguments)},gp.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=gp.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=pp(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},gp.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},gp.registerAxisPointerClass=function(t,e){yM[t]=e},gp.getAxisPointerClass=function(t){return t&&yM[t]},gp.type="axis",gp),vM=ri(),_M=["axisLine","axisTickLabel","axisName"],xM=["splitArea","splitLine","minorSplitLine"],tS=(n(yp,hM=mM),yp.prototype.render=function(t,e,n,i){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new Jy,this.group.add(this._axisGroup),t.get("show")&&(o=Qc(r=t.getCoordSysModel(),t),o=new fM(t,l({handleAutoShown:function(e){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(th(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},o)),f(_M,o.add,o),this._axisGroup.add(o.getGroup()),f(xM,function(e){t.get([e,"show"])&&wM[e](this,this._axisGroup,t,r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Io(a,this._axisGroup,t),hM.prototype.render.call(this,t,e,n,i))},yp.prototype.remove=function(){vM(this).splitAreaColors=null},yp.type="cartesianAxis",yp),wM={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank())for(var n=n.getModel("splitLine"),o=n.getModel("lineStyle"),a=x(a=o.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:n}),p=[],d=[],f=o.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),h++%a.length),m=c[g].tickValue,m=new G_({anid:null!=m?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:u({stroke:a[y]},f),silent:!0});So(m.shape,f.lineWidth),e.add(m)}},minorSplitLine:function(t,e,n,i){var r=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),o=i.coordinateSystem.getRect(),a=r.isHorizontal(),s=r.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=r.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=o.y,u[0]=d,u[1]=o.y+o.height):(l[0]=o.x,l[1]=d,u[0]=o.x+o.width,u[1]=d),new G_({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}));So(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,n,i){var r=e,e=i,o=(i=n).axis;if(!o.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var h=a.length,c=vM(t).splitAreaColors,p=U(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=o.toGlobalCoord(l[0].coord),m=n.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=o.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),r.add(new Iv({anid:null!=v?"area_"+v:null,shape:{x:_,y:w,width:b,height:S},style:u({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}vM(t).splitAreaColors=p}}}},bM=(n(mp,cM=tS),mp.type="xAxis",mp);n(vp,SM=tS),vp.type="yAxis";var SM,CM=vp;n(_p,TM=Mb),_p.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Iv({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},_p.type="grid";var TM,MM=_p,IM={offset:0};Ah(function(t){t.registerComponentView(MM),t.registerComponentModel(QT),t.registerCoordinateSystem("cartesian2d",pM),Yc(t,"x",tM,IM),Yc(t,"y",tM,IM),t.registerComponentView(bM),t.registerComponentView(CM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),n(xp,kM=aw),xp.type="title",xp.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var kM,DM=xp;n(wp,AM=Mb),wp.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=R(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Pv({style:Fo(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Pv({style:Fo(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){xa(o,"_"+t.get("target"))}),a&&r.on("click",function(){xa(a,"_"+t.get("subtarget"))}),Ev(u).eventData=Ev(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=ba(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Iv({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},wp.type="title";var AM,PM=wp;Ah(function(t){t.registerComponentModel(DM),t.registerComponentView(PM)}),n(bp,OM=aw),bp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},bp.prototype.mergeOption=function(t,e){OM.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},bp.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;x(e=!0===e?t.selector=["all","inverse"]:e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=s(t,(i=n,"all"===(t=t.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},bp.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},bp.prototype._updateData=function(t){var e=[],n=[],i=(t.eachRawSeries(function(i){var r,o=i.name;n.push(o),i.legendVisualProvider&&(o=i.legendVisualProvider.getAllNames(),t.isSeriesFiltered(i)||(n=n.concat(o)),o.length)?e=e.concat(o):r=!0,r&&ti(i)&&e.push(i.name)}),this._availableNames=n,this.get("data")||e),r=U(),i=g(i,function(t){return(b(t)||C(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Ox(t,this,this.ecModel))},this);this._data=m(i,function(t){return!!t})},bp.prototype.getData=function(){return this._data},bp.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},bp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},bp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},bp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},bp.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},bp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=h(this._availableNames,t)},bp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},bp.type="legend.plain",bp.dependencies=["series"],bp.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}};var OM,LM,RM=bp,EM=_,NM=f,BM=Jy,zM=(n(Sp,LM=Mb),Sp.prototype.init=function(){this.group.add(this._contentGroup=new BM),this.group.add(this._selectorGroup=new BM),this._isFirstRender=!0},Sp.prototype.getContentGroup=function(){return this._contentGroup},Sp.prototype.getSelectorGroup=function(){return this._selectorGroup},Sp.prototype.render=function(t,e,n){var i,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(r=t.get("align"),i=t.get("orient"),r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(r,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),o=ba(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),o=ba(u({width:(r=this.layoutInner(t,r,o,l,a,s)).width,height:r.height},e),i,n),this.group.x=o.x-r.x,this.group.y=o.y-r.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=r,s=Zx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new Iv({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},Sp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Sp.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),u=U(),h=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),NM(e.getData(),function(r,o){var a,p,d,f,g=r.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=n.getSeriesByName(g)[0],u.get(g)||(a?(f=(d=a.getData()).getVisual("legendLineStyle")||{},p=d.getVisual("legendIcon"),d=d.getVisual("style"),(f=this._createItem(a,g,o,r,e,t,f,d,p,h,i)).on("click",EM(Cp,g,null,i,c)).on("mouseover",EM(Mp,a.name,null,i,c)).on("mouseout",EM(Ip,a.name,null,i,c)),n.ssr&&f.eachChild(function(t){t=Ev(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),u.set(g,!0)):n.eachRawSeries(function(a){var s,p,d;u.get(g)||a.legendVisualProvider&&(p=a.legendVisualProvider).containName(g)&&(d=p.indexOfName(g),s=p.getItemVisual(d,"style"),p=p.getItemVisual(d,"legendIcon"),(d=_e(s.fill))&&0===d[3]&&(d[3]=.2,s=l(l({},s),{fill:Ce(d,"rgba")})),(d=this._createItem(a,g,o,r,e,t,{},s,p,h,i)).on("click",EM(Cp,null,g,i,c)).on("mouseover",EM(Mp,null,g,i,c)).on("mouseout",EM(Ip,null,g,i,c)),n.ssr&&d.eachChild(function(t){t=Ev(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),u.set(g,!0))},this))):((d=new BM).newline=!0,s.add(d))},this),r&&this._createSelector(r,e,i,o,a)},Sp.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();NM(t,function(t){var i=t.type,r=new Pv({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Bo(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),kr(r)})},Sp.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),NM(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");return u.decal=l&&"inherit"!==l?au(l,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[t]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i),l=e.getModel("lineStyle"),a=l.getLineStyle(),s(a,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),o||(r=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===r?0<i.lineWidth&&n?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth")),{itemStyle:u,lineStyle:a}}(l=m||l||"roundRect",i,a,s,c,f,h),s=new BM,c=i.getModel("textStyle"),m=(!w(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=Vl(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]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===o?p+5:-5),h=o,t=r.get("formatter"),l=e,g=(b(t)&&t?l=t.replace("{name}",null!=e?e:""):w(t)&&(l=t(e)),f?c.getTextColor():i.get("inactiveColor")),a=(s.add(new Pv({style:Fo(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new Iv({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=i.getModel("tooltip");return y.get("show")&&Oo({el:a,componentModel:r,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!u,this.getContentGroup().add(s),kr(s),s.__legendDataIndex=n,s},Sp.prototype.layoutInner=function(t,e,n,i,r,o){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(tw(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),r?(tw("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===o?a[t]+=n[l]+s:d[t]+=r[l]+s,a[1-t]+=n[u]/2-r[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=n[l]+s+r[l],o[u]=Math.max(n[u],r[u]),o[h]=Math.min(0,r[h]+a[1-t]),o):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},Sp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Sp.type="legend.plain",Sp);n(Pp,FM=RM),Pp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Pp.prototype.init=function(t,e,n){var i=Ta(t);FM.prototype.init.call(this,t,e,n),Op(this,t,i)},Pp.prototype.mergeOption=function(t,e){FM.prototype.mergeOption.call(this,t,e),Op(this,this.option,t)},Pp.type="legend.scroll",Pp.defaultOption=(Y_=RM.defaultOption,p_={scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},s(s({},Y_,!0),p_,!0));var FM,VM,HM=Pp,GM=Jy,WM=["width","height"],UM=["x","y"],jM=(n(Lp,VM=zM),Lp.prototype.init=function(){VM.prototype.init.call(this),this.group.add(this._containerGroup=new GM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GM)},Lp.prototype.resetInner=function(){VM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Lp.prototype.renderInner=function(t,e,n,i,r,o,a){function s(t,n){var r=t+"DataIndex",n=Ao(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:Qf(l._pageGo,l,r,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});n.name=t,u.add(n)}var l=this,u=(VM.prototype.renderInner.call(this,t,e,n,i,r,o,a),this._controllerGroup),t=e.get("pageIconSize",!0),h=x(t)?t:[t,t],n=(s("pagePrev",0),e.getModel("pageTextStyle"));u.add(new Pv({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},Lp.prototype.layoutInner=function(t,e,n,i,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=WM[l],h=UM[l],c=WM[1-l],p=UM[1-l],d=(r&&tw("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(n),n=(r&&(y[u]=n[u]-f[u]-d),this._layoutContentAndController(t,i,y,l,u,c,p,h));return r&&("end"===o?g[l]+=n[u]+d:(t=f[u]+d,g[l]-=t,n[h]-=t),n[u]+=f[u]+d,g[1-l]+=n[p]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[p]=Math.min(n[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),n},Lp.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(tw(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),tw("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=R(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[r]-p[r]:e[i]+=p[r]+g),s[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[r]=(d?n:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[r],d?((e={x:0,y:0})[r]=Math.max(n[r]-p[r]-g,0),e[o]=f[o],u.setClipPath(new Iv({shape:e})),u.__rectSize=e[r]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&lo(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},Lp.prototype._pageGo=function(t,e,n){null!=(t=this._getPageInfo(e)[t])&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Lp.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],i=n.childOfName(i);i&&(i.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=r?"pointer":"default")}),n.childOfName("pageText")),r=t.get("pageFormatter"),o=e.pageIndex,o=null!=o?o+1:0,a=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):r({current:o,total:a}))},Lp.prototype._getPageInfo=function(t){function e(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[s]+t[s],e:n+e[a],i:t.__legendDataIndex}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,t=t.getOrient().index,a=WM[t],s=UM[t],i=this._findTargetItemIndex(i),l=r.children(),u=l[i],h=l.length,c=h?1:0,p={contentPosition:[r.x,r.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(u){r=e(u),p.contentPosition[t]=-r.s;for(var d=i+1,f=r,g=r,y=null;d<=h;++d)(!(y=e(l[d]))&&g.e>f.s+o||y&&!n(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=i-1,f=r,g=r,y=null;-1<=d;--d)(y=e(l[d]))&&n(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},Lp.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){i=i.__legendDataIndex,null==n&&null!=i&&(n=r),i===t&&(e=r)}),null!=e?e:n):0},Lp.type="legend.scroll",Lp);Ah(function(t){Ah(Ap),t.registerComponentModel(HM),t.registerComponentView(jM),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)})})});var YM=ri(),XM=a,qM=Qf;Rp.prototype.render=function(t,e,n,i){var r,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=_(Ep,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new Jy,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),zp(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},Rp.prototype.remove=function(t){this.clear(t)},Rp.prototype.dispose=function(t){this.clear(t)},Rp.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=pp(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},Rp.prototype.makeElOption=function(t,e,n,i,r){},Rp.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=YM(t).pointerEl=new gx[r.type](XM(e.pointer)),t.add(r))},Rp.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=YM(t).labelEl=new Pv(XM(e.label)),t.add(e),Np(e,i))},Rp.prototype.updatePointerEl=function(t,e,n){(t=YM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Rp.prototype.updateLabelEl=function(t,e,n,i){(t=YM(t).labelEl)&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),Np(t,i))},Rp.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=Ao(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_g(t.event)},onmousedown:qM(this._onHandleDragMove,this,0,0),drift:qM(this._onHandleDragMove,this),ondragend:qM(this._onHandleDragEnd,this)}),n.add(i)),zp(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,_l(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},Rp.prototype._moveHandleToValue=function(t,e){Ep(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Bp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Rp.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(Bp(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(Bp(t)),YM(n).lastProp=null,this._doDispatchAxisPointer())},Rp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},Rp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Rp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),xl(this,"_doDispatchAxisPointer")},Rp.prototype.doClear=function(){},Rp.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},n(Gp,ZM=Rp),Gp.prototype.makeElOption=function(t,e,n,i,r){var o,a,s=n.axis,l=s.grid,u=i.get("type"),h=Wp(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=i).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=$M[u](s,c,h)).style=o,t.graphicKey=a.type,t.pointer=a),Qc(l.model,n));u=e,s=t,c=p,h=n,o=i,a=r,l=fM.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),Fp(s,h,o,a,{position:Hp(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Gp.prototype.getHandleTransform=function(t,e,n){var i=Qc(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),Hp(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Gp.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=Wp(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var ZM,KM=Gp,$M={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=Up(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=Up(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};n(jp,QM=aw),jp.type="axisPointer",jp.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var QM,JM=jp,tI=ri(),eI=f;n(Kp,nI=Mb),Kp.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Yp("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Kp.prototype.remove=function(t,e){Zp("axisPointer",e)},Kp.prototype.dispose=function(t,e){Zp("axisPointer",e)},Kp.type="axisPointer";var nI,iI=Kp,rI=ri();n(od,oI=aw),od.type="tooltip",od.dependencies=["axisPointer"],od.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}};var oI,aI=od,sI=sd(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lI=ld(sd(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),uI=ld(sI,"transform"),hI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Pf.transform3dSupported?"will-change:transform;":"");pd.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},pd.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=hI+hd(t,!this._firstShow,this._longHide)+ud(r[0],r[1],!0)+"border-color:"+_a(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},pd.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,c,p="";if(b(r)&&"item"===n.get("trigger")&&!ad(n)&&(n=n,i=i,p=b(r=r)&&"inside"!==r?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=_a(i),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",d=Math.max(1.5*Math.round(n),6),s="",l=uI+":",-1<h(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==r?225:45)+"deg)"),c=c*Math.PI/180,c=(u=d+n)*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;z-index:-1;",(s+=";"+r+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))o.innerHTML=t+p;else if(t){o.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);p&&o.childNodes.length&&((d=document.createElement("div")).innerHTML=p,o.appendChild(d))}}},pd.prototype.setEnterable=function(t){this._enterable=t},pd.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},pd.prototype.moveTo=function(t,e){var n,i=this._styleCoord;cd(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,f(ud(i[0],i[1]),function(t){n[t[0]]=t[1]}))},pd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},pd.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Pf.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},pd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Qf(this.hide,this),t)):this.hide())},pd.prototype.isShow=function(){return this._show},pd.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var cI=pd;dd.prototype.update=function(t){t=t.get("alwaysShowContent"),t&&this._moveIfResized(),this._alwaysShowContent=t},dd.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},dd.prototype.setContent=function(t,e,n,i,r){var o=this,a=(T(t)&&jn(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new Pv({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Js(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},dd.prototype.setEnterable=function(t){this._enterable=t},dd.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=gd(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},dd.prototype.moveTo=function(t,e){var n,i,r=this.el;r&&(yd(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=fd((i=r.style).borderWidth||0),i=gd(i),r.x=t+n+i.left,r.y=e+n+i.top,r.markRedraw())},dd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},dd.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},dd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Qf(this.hide,this),t)):this.hide())},dd.prototype.isShow=function(){return this._show},dd.prototype.dispose=function(){this._zr.remove(this.el)};var pI,dI=dd,fI=new Iv({shape:{x:-1,y:-1,width:2,height:2}}),gI=(n(md,pI=Mb),md.prototype.init=function(t,e){var n;!Pf.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?Pf.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new dI(e):new cI(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},md.prototype.render=function(t,e,n){!Pf.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?_l(this,"_updatePosition",50,"fixRate"):xl(this,"_updatePosition"))},md.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Yp("itemTooltip",this._api,Qf(function(e,n,i){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},md.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,r=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},md.prototype.manuallyShowTip=function(t,e,n,i){var r,o,a,s;i.from!==this.uid&&!Pf.node&&n.getDom()&&(r=_d(i,n),this._ticket="",s=i.dataByCoordSys,(o=function(t,e,n){var i=ai(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,e=si(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse(function(e){var n=Ev(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o))return{componentMainType:r,componentIndex:e.componentIndex,el:o}}}(i,e,n))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)):i.tooltip&&null!=i.x&&null!=i.y?((a=fI).x=i.x,a.y=i.y,a.update(),Ev(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(o=$p(i,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:i.position,positionDefault:"bottom"},r)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r)))},md.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(_d(i,n))},md.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a&&(a=e.getSeriesByIndex(r))&&(e=vd([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0},md.prototype._tryShow=function(t,e){var n,i,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?"legend"!==Ev(o).ssrType&&(Bl(o,function(t){return null!=Ev(t).dataIndex?(i=t,1):null!=Ev(t).tooltipConfig&&(r=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},md.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=Qf(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},md.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=vd([e.tooltipOption],i),a=this._renderMode,s=[],u=js("section",{blocks:[],noHeader:!0}),h=[],c=new bb,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,r,o=n.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;o&&null!=p&&(e=Vp(p,o.axis,n,t.seriesDataIndices,t.valueLabelOpt),r=js("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),u.blocks.push(r),f(t.seriesDataIndices,function(u){var d,f=n.getSeriesByIndex(u.seriesIndex),u=u.dataIndexInside,g=f.getDataParams(u);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Th(o.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",_a(g.color),a),(d=(u=vs(f.formatTooltip(u,!0,null))).frag)&&(f=vd([f],i).get("valueFormatter"),r.blocks.push(f?l({valueFormatter:f},d):d)),u.text&&h.push(u.text),s.push(g))}))})}),u.blocks.reverse(),h.reverse(),e.position),e=o.get("order"),e=Ks(u,c,a,e,n.get("useUTC"),o.get("textStyle")),e=(e&&h.unshift(e),"richText"===a?"\n\n":"<br/>"),d=h.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,d,s,Math.random()+"",r[0],r[1],p,null,c)})},md.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,u=this._ecModel,e=Ev(e),h=e.seriesIndex,c=u.getSeriesByIndex(h),p=e.dataModel||c,d=e.dataIndex,e=e.dataType,f=p.getData(e),g=this._renderMode,y=t.positionDefault,m=vd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(i=p.getDataParams(d,e),r=new bb,i.marker=r.makeTooltipMarker("item",_a(i.color),g),y=vs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),o=y.frag,a=o?Ks(e?l({valueFormatter:e},o):o,r,g,c,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:h,from:this.uid}))},md.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Ev(e),o=r.tooltipConfig.option||{},s=o.encodeHTMLContent,s=(b(o)&&(o={content:o,formatter:o},s=!0),s&&i&&o.content&&((o=a(o)).content=yt(o.content)),[o]),i=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(i&&s.push(i),s.push({formatter:o.content}),t.positionDefault),l=vd(s,this._tooltipModel,r?{position:r}:null),u=l.get("content"),h=Math.random()+"",c=new bb;this._showOrMove(l,function(){var n=a(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,h,t.offsetX,t.offsetY,t.position,e,c)}),n({type:"showTip",from:this.uid})},md.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){var u,h,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&((u=this._tooltipContent).setEnterable(t.get("enterable")),h=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=b(h)?(p=t.ecModel.get("useUTC"),e=h,ma(e=(d=x(n)?n[0]:n)&&d.axisType&&0<=d.axisType.indexOf("time")?$o(d.axisValue,e,p):e,n,!0)):w(h)?(d=Qf(function(e,i){e===this._ticket&&(u.setContent(i,l,t,c,a),this._updatePosition(t,a,r,o,u,n,s))},this),this._ticket=i,h(n,i,d)):h),u.setContent(e,l,t,c,a),u.show(t,c),this._updatePosition(t,a,r,o,u,n,s))},md.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||x(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:x(e)?void 0:{color:i||e.color||e.borderColor}},md.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=An(e[0],l),i=An(e[1],u)):T(e)?((o=e).width=h[0],o.height=h[1],n=(o=ba(o,{width:l,height:u})).x,i=o.y,p=c=null):(n=(s=b(e)&&a?function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];return null!=o&&(i<t+s+o+2?t-=s+o:t+=o),null!=a&&(r<e+n+a?e-=n+a:e+=a),[t,e]}(n,i,r,l,u,c?null:20,p?null:20))[0],i=s[1]),c&&(n-=xd(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=xd(p)?h[1]/2:"bottom"===p?h[1]:0),ad(t)&&(o=n,a=i,e=l,d=u,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],i=s[1]),r.moveTo(n,i)},md.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&f(n,function(n,o){var n=n.dataByAxis||[],a=(t[o]||{}).dataByAxis||[];(r=r&&n.length===a.length)&&f(n,function(t,n){var n=a[n]||{},o=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(r=r&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===s.length)&&f(o,function(t,e){e=s[e],r=r&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),i&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,n=e[t],t=i[t];n&&t&&t.data!==n.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},md.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},md.prototype.dispose=function(t,e){!Pf.node&&e.getDom()&&(xl(this,"_updatePosition"),this._tooltipContent.dispose(),Zp("itemTooltip",e))},md.type="tooltip",md);Ah(function(t){Ah(rd),t.registerComponentModel(aI),t.registerComponentView(gI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Z),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Z)});var yI,mI=ri(),vI=(n(bd,yI=aw),bd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},bd.prototype.isAnimationEnabled=function(){var t;return!Pf.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},bd.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},bd.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=mI(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&wd(n),f(n.data,function(t){t instanceof Array?(wd(t[0]),wd(t[1])):wd(t)}),l(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),mI(t)[r]=o):mI(t)[r]=null},this)},bd.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),i=i.getName(t);return js("section",{header:this.name,blocks:[js("nameValue",{name:i,value:r,noName:!i,noValue:null==r})]})},bd.prototype.getData=function(){return this._data},bd.prototype.setData=function(t){this._data=t},bd.prototype.getDataParams=function(t,e){return t=Kw.prototype.getDataParams.call(this,t,e),e=this.__hostSeries,e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},bd.getMarkerModelFromSeries=function(t,e){return mI(t)[e]},bd.type="marker",bd.dependencies=["series","grid","polar","geo"],bd);p(vI,Kw.prototype),n(Sd,_I=vI),Sd.prototype.createMarkerModelFromSeries=function(t,e,n){return new Sd(t,e,n)},Sd.type="markPoint",Sd.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var _I,xI,wI=Sd,bI={min:_(Cd,"min"),max:_(Cd,"max"),average:_(Cd,"average"),median:_(Cd,"median")},SI=ri(),g_=(n(kd,xI=Mb),kd.prototype.init=function(){this.markerGroupMap=U()},kd.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){SI(t).keep=!1}),e.eachSeries(function(t){var r=vI.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){SI(t).keep||i.group.remove(t.group)})},kd.prototype.markKeep=function(t){SI(t).keep=!0},kd.prototype.toggleBlurSeries=function(t,e){var n=this;f(t,function(t){(t=vI.getMarkerModelFromSeries(t,n.type))&&t.getData().eachItemGraphicEl(function(t){t&&(e?vr:_r)(t)})})},kd.type="marker",kd);n(Ad,CI=g_),Ad.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=vI.getMarkerModelFromSeries(t,"markPoint");e&&(Dd(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},Ad.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,s=s.get(o)||s.set(o,new zT),u=function(t,e,n){var i;i=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new wC(i,n),n=g(n.get("data"),_(Td,e));return t&&(n=m(n,_(Md,t))),t=function(t,e){return t?function(t,n,i,r){return Ss(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Ss(t.value,e[r])}}(!!t,i),r.initData(n,null,t),r}(r,t,e);e.setData(u),Dd(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect"),h=((w(i)||w(r)||w(o)||w(s))&&(h=e.getRawValue(t),c=e.getDataParams(t),w(i)&&(i=i(h,c)),w(r)&&(r=r(h,c)),w(o)&&(o=o(h,c)),w(s))&&(s=s(h,c)),n.getModel("itemStyle").getItemStyle()),c=El(a,"color");h.fill||(h.fill=c),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})}),s.updateData(u),this.group.add(s.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){Ev(t).dataModel=e})}),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},Ad.type="markPoint";var CI,TI=Ad;Ah(function(t){t.registerComponentModel(wI),t.registerComponentView(TI),t.registerPreprocessor(function(t){!function(t,e){if(t)for(var n=x(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i].markPoint)return 1}(t.series)||(t.markPoint=t.markPoint||{})})}),Ah(yc);var MI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},II=(Pd.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!C(e)&&this._condVal.test(t+"")},Pd);Od.prototype.evaluate=function(){return this.value};var kI=Od;Ld.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var DI=Ld;Rd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var AI=Rd;Ed.prototype.evaluate=function(){return!this.child.evaluate()};var PI=Ed;Nd.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var OI=Nd;Vd.prototype.evaluate=function(){return this._cond.evaluate()};var LI=Vd,RI={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:U({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(q(t,"dimension")||jn(""),i.getDimensionInfo(e));return t||jn(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new LI(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},EI={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Xn(t),n=(t.length||jn(""),[]),t=(f(t,function(t){var i=t.dimension,r=t.order,o=t.parser,t=t.incomparable,i=(null==i&&jn(""),"asc"!==r&&"desc"!==r&&jn(""),t&&"min"!==t&&"max"!==t&&jn(""),"asc"!==r&&"desc"!==r&&jn(""),e.getDimensionInfo(i)),a=(i||jn(""),o?Cs(o):null);o&&!a&&jn(""),n.push({dimIdx:i.index,parser:a,comparator:new lb(r,t)})}),e.sourceFormat),i=(t!==fw&&t!==gw&&jn(""),[]),r=0,o=e.count();r<o;r++)i.push(e.getRawDataItem(r));return i.sort(function(t,i){for(var r=0;r<n.length;r++){var o=n[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(i,o.dimIdx),o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0}),{data:i}}};Ah(function(t){t.registerTransform(RI),t.registerTransform(EI)});var NI,BI=Math.sin,zI=Math.cos,FI=Math.PI,VI=2*Math.PI,HI=180/FI,GI=(Hd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},Hd.prototype.moveTo=function(t,e){this._add("M",t,e)},Hd.prototype.lineTo=function(t,e){this._add("L",t,e)},Hd.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},Hd.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},Hd.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},Hd.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l,u=a-o,s=!s,h=Math.abs(u),c=ke(h-VI)||(s?VI<=u:VI<=-u),p=!1,p=!!c||!ke(h)&&FI<=(0<u?u%VI:u%VI+VI)==!!s,h=t+n*zI(o),u=e+i*BI(o),r=(this._start&&this._add("M",h,u),Math.round(r*HI));c?(c=1/this._p,this._add("A",n,i,r,1,+s,t+n*zI(o+(l=(s?1:-1)*(VI-c))),e+i*BI(o+l)),.01<c&&this._add("A",n,i,r,0,+s,h,u)):(o=t+n*zI(a),l=e+i*BI(a),this._add("A",n,i,r,+p,+s,o,l))},Hd.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},Hd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},Hd.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},Hd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},Hd.prototype.getStr=function(){return this._str},Hd),WI="none",UI=Math.round,jI=["lineCap","miterLimit","lineJoin"],YI=g(jI,function(t){return"stroke-"+t.toLowerCase()}),XI="http://www.w3.org/2000/svg",qI="http://www.w3.org/1999/xlink",ZI="http://www.w3.org/2000/xmlns/",KI="http://www.w3.org/XML/1998/namespace",$I="ecmeta_",QI=0,JI={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tk="transform-origin",ek={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},nk=Math.round,ik={circle:[(NI=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<NI.length;i++){var r=NI[i],o=t[r[0]];null!=o&&(e[r[1]]=nk(o*n)/n)}})],polyline:[of,af],polygon:[of,af]},rk=58,ok=120,ak=Ud("",""),sk=0;If.prototype.getType=function(){return this.type},If.prototype.getViewportRoot=function(){return this._viewport},If.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},If.prototype.getSvgDom=function(){return this._svgDom},If.prototype.refresh=function(){var t,e,n,i,r;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",xf(e=this._oldVNode,n=t)?Mf(e,n):(r=gf(i=e.elm),wf(n),null!==r&&(pf(r,n.elm,yf(i)),Sf(r,[e],0,0))),this._oldVNode=t)},If.prototype.renderOneToVNode=function(t){return lf(t,Yd(this._id))},If.prototype.renderToVNode=function(t){t=t||{};var e,n,i,r,o,a=this.storage.getDisplayList(!0),s=this._width,l=this._height,u=Yd(this._id),h=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,u.emphasis=t.emphasis,[]),c=this._bgVNode=function(t,e,n,i){var r;return n&&"none"!==n&&(r=Ud("rect","bg",{width:t,height:e,x:"0",y:"0"}),Ee(n)?uf({fill:n},r.attrs,"fill",i):Oe(n)?hf({style:{fill:n},dirty:Z,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i):(i=Ie(n),n=i.color,i=i.opacity,r.attrs.fill=n,i<1&&(r.attrs["fill-opacity"]=i))),r}(s,l,this._backgroundColor,u),c=(c&&h.push(c),t.compress?null:this._mainVNode=Ud("g","main",{},[])),a=(this._paintList(a,u,c?c.children:h),c&&h.push(c),g(v(u.defs),function(t){return u.defs[t]}));return a.length&&h.push(Ud("defs","defs",{},a)),t.animation&&(e=u.cssNodes,n=u.cssAnims,i=(c=(c={newline:!0})||{}).newline?"\n":"",r=" {"+i,o=i+"}",c=g(v(e),function(t){return t+r+g(v(e[t]),function(n){return n+":"+e[t][n]+";"}).join(i)+o}).join(i),a=g(v(n),function(t){return"@keyframes "+t+r+g(v(n[t]),function(e){return e+r+g(v(n[t][e]),function(i){var r=n[t][e][i];return i+":"+(r="d"===i?'path("'+r+'")':r)+";"}).join(i)+o}).join(i)+o}).join(i),c=c||a?["<![CDATA[",c,a,"]]>"].join(i):"")&&(a=Ud("style","stl",{},[],c),h.push(a)),Xd(s,l,h,t.useViewBox)},If.prototype.renderToString=function(t){return jd(this.renderToVNode({animation:R((t=t||{}).cssAnimation,!0),emphasis:R(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:R(t.useViewBox,!0)}),{newline:!0})},If.prototype.setBackgroundColor=function(t){this._backgroundColor=t},If.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},If.prototype._paintList=function(t,e,n){for(var i,r,o,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=C&&C.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!C||y[_]!==C[_]);_--);for(var x=v-1;_<x;x--)i=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(r=y[w],o=b,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[r.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[r.id]=u]=Ud("clipPath",u,s,[sf(r,a)])),o["clip-path"]=Ne(u),Ud("g","clip-g-"+d++,b,[]));(i?i.children:n).push(S),i=c[p++]=S}var C=y,v=lf(g,e);v&&(i?i.children:n).push(v)}}},If.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=jl(i,0,n),e=jl(i,1,n),r.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,r&&((i=r.style).width=t+"px",i.height=e+"px"),Oe(this._backgroundColor)?this.refresh():((n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)),(r=this._bgVNode&&this._bgVNode.elm)&&(r.setAttribute("width",t),r.setAttribute("height",e))))},If.prototype.getWidth=function(){return this._width},If.prototype.getHeight=function(){return this._height},If.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},If.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},If.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=yy(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},Mn("svg",If),e.Axis=jx,e.ChartView=Db,e.ComponentModel=aw,e.ComponentView=Mb,e.List=wC,e.Model=Ox,e.PRIORITY=Qb,e.SeriesModel=Tb,e.color=cy,e.connect=function(t){var e;return x(t)&&(e=t,t=null,f(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+tC++,f(e,function(e){e.group=t})),QS[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.6.0"},e.disConnect=$b,e.disconnect=vu,e.dispose=function(t){b(t)?t=$S[t]:t instanceof GS||(t=_u(t)),t instanceof GS&&!t.isDisposed()&&t.dispose()},e.env=Pf,e.extendChartView=function(t){return t=Db.extend(t),Db.registerClass(t),t},e.extendComponentModel=function(t){return t=aw.extend(t),aw.registerClass(t),t},e.extendComponentView=function(t){return t=Mb.extend(t),Mb.registerClass(t),t},e.extendSeriesModel=function(t){return t=Tb.extend(t),Tb.registerClass(t),t},e.format=kx,e.getCoordinateSystemDimensions=function(t){if(t=Ow.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=_u,e.getInstanceById=function(t){return $S[t]},e.getMap=function(t){var e=gS.getMap;return e&&e(t)},e.graphic=Ax,e.helper=Jb,e.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=_u(t);if(r)return r}return(r=new GS(t,e,n)).id="ec_"+JS++,$S[r.id]=r,i&&li(t,eC,r.id),BS(r),fS.trigger("afterinit",r),r},e.innerDrawElementOnCanvas=ru,e.matrix=bg,e.number=Ix,e.parseGeoJSON=Vh,e.parseGeoJson=Vh,e.registerAction=Mu,e.registerCoordinateSystem=Iu,e.registerLayout=ku,e.registerLoading=Pu,e.registerLocale=qo,e.registerMap=Ou,e.registerPostInit=Su,e.registerPostUpdate=Cu,e.registerPreprocessor=wu,e.registerProcessor=bu,e.registerTheme=xu,e.registerTransform=Lu,e.registerUpdateLifecycle=Tu,e.registerVisual=Du,e.setCanvasCreator=function(t){i({createCanvas:t})},e.setPlatformAPI=i,e.throttle=vl,e.time=mm,e.use=Ah,e.util=Tx,e.vector=sg,e.version="5.5.1",e.zrUtil=rg,e.zrender=om})}).call(e,n(913).Buffer)},2103:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];i._withStripped=!0},2104:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chartContainer"},[n("div",{staticClass:"dataDisplay"},[n("div",{staticClass:"selectAge"},[n("div",{staticClass:"leftSelectAge"},[n("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),n("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[n("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),n("i",{staticClass:"dropDown"})]),t._v(" "),n("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.benefitBtnShow,expression:"benefitBtnShow"}],class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"specialShowBox"},[n("div",{staticClass:"numShow"},[n("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][i])/100)+"\n ")]),t._v(" "),n("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),n("div",{staticClass:"titleShow"},[n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?n("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?n("span",[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()])]):t._e()]})]:[n("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"textShowBox"},[n("div",{staticClass:"iconblock"},[n("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),n("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"moneyShowBox"},[n("div",{staticClass:"numShow"},[n("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.getNum(t.selectIndex,i,e))+"\n ")]),t._v(" "),n("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?n("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?n("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()]):t._e()]})],2)]],2),t._v(" "),n("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),n("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?n("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e(),t._v(" "),t.tip?n("div",{staticClass:"tipContent"},[n("div",{staticClass:"tip",domProps:{innerHTML:t._s(t.tip)}})]):t._e()],1)},r=[];i._withStripped=!0},2105:function(t,e,n){"use strict";function i(t){s||n(2106)}var r=n(1243),o=n(2107),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},2106:function(t,e){},2107:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,i){return[t.showCol(i)?n("span",{key:"head-"+i,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,i){return n("tr",{key:"tr-"+i,staticClass:"table-tr"},[t._l(e,function(e,r){return[t.showCol(r)?n("td",{key:"td-"+i+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];i._withStripped=!0},2108:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=this,n=e.$createElement,i=e._self._c||n;return e.isShowChart?i("div",[i("benefit",{attrs:{renderData:e.renderData,benefitBtnShow:e.benefitBtnShow,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,tip:e.tip,percentageTypes:e.percentageTypes,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),i("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),i("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.btnColor},on:{select:function(e,n){t.setSelectIndex(n[0])}}})],1):e._e()},r=[];i._withStripped=!0},22:function(t,e,n){var i=n(6),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},25:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},26:function(e,n){e.exports=t},267:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(268),o=i(r),a=n(270),s=i(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},268:function(t,e,n){t.exports={default:n(269),__esModule:!0}},269:function(t,e,n){n(48),n(51),t.exports=n(147).f("iterator")},27:function(t,e,n){var i=n(10).f,r=n(8),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},270:function(t,e,n){t.exports={default:n(271),__esModule:!0}},271:function(t,e,n){n(272),n(73),n(276),n(277),t.exports=n(2).Symbol},272:function(t,e,n){"use strict";var i=n(0),r=n(8),o=n(3),a=n(9),s=n(54),l=n(195).KEY,u=n(12),h=n(31),c=n(27),p=n(25),d=n(1),f=n(147),g=n(148),y=n(273),m=n(197),v=n(4),_=n(6),x=n(33),w=n(13),b=n(39),S=n(23),C=n(52),T=n(274),M=n(275),I=n(57),k=n(10),D=n(29),A=M.f,P=k.f,O=T.f,L=i.Symbol,R=i.JSON,E=R&&R.stringify,N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),V=h("symbols"),H=h("op-symbols"),G=Object.prototype,W="function"==typeof L&&!!I.f,U=i.QObject,j=!U||!U.prototype||!U.prototype.findChild,Y=o&&u(function(){return 7!=C(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(G,e);i&&delete G[e],P(t,e,n),i&&t!==G&&P(G,e,i)}:P,X=function(t){var e=V[t]=C(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===G&&Z(H,e,n),v(t),e=b(e,!0),v(n),r(V,e)?(n.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),Y(t,e,n)):P(t,e,n)},K=function(t,e){v(t);for(var n,i=y(e=w(e)),r=0,o=i.length;o>r;)Z(t,n=i[r++],e[n]);return t},$=function(t,e){return void 0===e?C(t):K(C(t),e)},Q=function(t){var e=z.call(this,t=b(t,!0));return!(this===G&&r(V,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==G||!r(V,e)||r(H,e)){var n=A(t,e);return!n||!r(V,e)||r(t,N)&&t[N][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=O(w(t)),i=[],o=0;n.length>o;)r(V,e=n[o++])||e==N||e==l||i.push(e);return i},et=function(t){for(var e,n=t===G,i=O(n?H:w(t)),o=[],a=0;i.length>a;)!r(V,e=i[a++])||n&&!r(G,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(H,n),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),Y(this,t,S(1,n))};return o&&j&&Y(G,t,{configurable:!0,set:e}),X(t)},s(L.prototype,"toString",function(){return this._k}),M.f=J,k.f=Z,n(177).f=T.f=tt,n(50).f=Q,I.f=et,o&&!n(18)&&s(G,"propertyIsEnumerable",Q,!0),f.f=function(t){return X(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)d(nt[it++]);for(var rt=D(d.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){j=!0},useSimple:function(){j=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),R&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,E.apply(R,i)}}),L.prototype[B]||n(5)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(i.JSON,"JSON",!0)},273:function(t,e,n){var i=n(29),r=n(57),o=n(50);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},274:function(t,e,n){var i=n(13),r=n(177).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},275:function(t,e,n){var i=n(50),r=n(23),o=n(13),a=n(39),s=n(8),l=n(41),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},276:function(t,e,n){n(148)("asyncIterator")},277:function(t,e,n){n(148)("observable")},29:function(t,e,n){var i=n(42),r=n(32);t.exports=Object.keys||function(t){return i(t,r)}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var i=n(2),r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,n){var i=n(15);t.exports=function(t){return Object(i(t))}},34:function(t,e,n){var i=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},35:function(t,e,n){var i=n(16),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},36:function(t,e,n){"use strict";var i=n(18),r=n(9),o=n(54),a=n(5),s=n(11),l=n(60),u=n(27),h=n(62),c=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,g,y,m){l(n,e,f);var v,_,x,w=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",S="values"==g,C=!1,T=t.prototype,M=T[c]||T["@@iterator"]||g&&T[g],I=M||w(g),k=g?S?w("entries"):I:void 0,D="Array"==e?T.entries||M:M;if(D&&(x=h(D.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),i||"function"==typeof x[c]||a(x,c,d)),S&&M&&"values"!==M.name&&(C=!0,I=function(){return M.call(this)}),i&&!m||!p&&!C&&T[c]||a(T,c,I),s[e]=I,s[b]=d,g)if(v={values:S?I:w("values"),keys:y?I:w("keys"),entries:k},m)for(_ in v)_ in T||o(T,_,v[_]);else r(r.P+r.F*(p||C),e,v);return v}},39:function(t,e,n){var i=n(6);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var i=n(8),r=n(13),o=n(46)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},43:function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},45:function(t,e,n){var i=n(14),r=n(1)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},46:function(t,e,n){var i=n(13),r=n(35),o=n(47);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),h=o(a,u);if(t&&n!=n){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===n)return t||h||0;return!t&&-1}}},47:function(t,e,n){var i=n(16),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},48:function(t,e,n){"use strict";var i=n(59)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,n){var i=n(10),r=n(23);t.exports=n(3)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},50:function(t,e){e.f={}.propertyIsEnumerable},51:function(t,e,n){n(68);for(var i=n(0),r=n(5),o=n(11),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=i[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},52:function(t,e,n){var i=n(4),r=n(61),o=n(32),a=n(20)("IE_PROTO"),s=function(){},l=function(){var t,e=n(22)("iframe"),i=o.length;for(e.style.display="none",n(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},54:function(t,e,n){t.exports=n(5)},551:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},552:function(t,e,n){"use strict";function i(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,i,r){var o=e.call(this,t,i,r);if(o)return n=i,o}),n}function r(t){return t?JSON.parse(y()(t)):t}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0!==t&&null!==t}function h(t){return"function"==typeof t}function c(t,e,n){function i(e){var n=y,i=m;return y=m=void 0,b=e,_=t.apply(i,n)}function r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(h,e),S?i(t):_}function s(t){var n=t-w,i=t-b,r=e-n;return C?Math.min(r,v-i):r}function u(t){var n=t-w,i=t-b;return void 0===w||n>=e||n<0||C&&i>=v}function h(){var t=Date.now();if(u(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,T&&y?i(t):(y=m=void 0,_)}function p(){void 0!==x&&o(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),n=u(t),o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];if(y=s,m=this,w=t,n){if(void 0===x)return a(w);if(C)return x=r(h,e),i(w)}return void 0===x&&(x=r(h,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,C=!1,T=!0,M=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,l(n)&&(S=!!n.leading,C="maxWait"in n,v=C?Math.max(+n.maxWait||0,e):v,T="trailing"in n?!!n.trailing:T),g.cancel=p,g.flush=d,g.pending=f,g}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var n=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),i=e.match(n);return decodeURIComponent(i?i[2]:"")}n.d(e,"k",function(){return L}),e.c=i,e.b=r,e.e=o,e.j=a,e.h=s,e.i=l,e.f=u,e.g=h,e.a=c,e.d=p;var d=n(70),f=(n.n(d),n(267)),g=(n.n(f),n(111)),y=n.n(g),m="undefined"!=typeof window,v=m&&window.navigator.userAgent.toLowerCase(),_=v&&/msie|trident/.test(v),x=v&&v.indexOf("msie 9.0")>0,w=v&&v.indexOf("edge/")>0,b=v&&v.indexOf("android")>0,S=v&&/iphone|ipad|ipod|ios/.test(v),C=v&&/arkweb|harmony/.test(v),T=v&&/chrome\/\d+/.test(v)&&!w,M=v&&/MicroMessenger/i.test(v),I=v&&/wxwork/i.test(v),k=v&&/mucxiaoyusan/i.test(v),D=v&&/muckacabao/i.test(v),A=v&&/mucyanxuan/i.test(v),P=k||D,O=v&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(v),L={isIE:_,isMobile:O,isIE9:x,isEdge:w,isAndroid:b,isIOS:S,isHarmonyOS:C,isChrome:T,isWx:M,isWxWork:I,isApp:P,isXysApp:k,isKcbApp:D,isYxApp:A};/MucWebAutoTester/.test(window.navigator.userAgent)},56:function(t,e,n){var i=n(45),r=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},57:function(t,e){e.f=Object.getOwnPropertySymbols},59:function(t,e,n){var i=n(16),r=n(15);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e,n){"use strict";var i=n(52),r=n(23),o=n(27),a={};n(5)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},61:function(t,e,n){var i=n(10),r=n(4),o=n(29);t.exports=n(3)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},62:function(t,e,n){var i=n(8),r=n(33),o=n(20)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},63:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},68:function(t,e,n){"use strict";var i=n(69),r=n(63),o=n(11),a=n(13);t.exports=n(36)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},69:function(t,e){t.exports=function(){}},7:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o);var h;if(a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=i},70:function(t,e,n){t.exports={default:n(79),__esModule:!0}},73:function(t,e){},79:function(t,e,n){n(80),t.exports=n(2).Object.assign},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){var i=n(9);i(i.S+i.F,"Object",{assign:n(81)})},81:function(t,e,n){"use strict";var i=n(3),r=n(29),o=n(57),a=n(50),s=n(33),l=n(34),u=Object.assign;t.exports=!u||n(12)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,h=1,c=o.f,p=a.f;u>h;)for(var d,f=l(arguments[h++]),g=c?r(f).concat(c(f)):r(f),y=g.length,m=0;y>m;)d=g[m++],i&&!p.call(f,d)||(n[d]=f[d]);return n}:u},845:function(t,e){t.exports=n},9:function(t,e,n){var i=n(0),r=n(2),o=n(17),a=n(5),s=n(8),l=function(t,e,n){var u,h,c,p=t&l.F,d=t&l.G,f=t&l.S,g=t&l.P,y=t&l.B,m=t&l.W,v=d?r:r[e]||(r[e]={}),_=v.prototype,x=d?i:f?i[e]:(i[e]||{}).prototype;d&&(n=e);for(u in n)(h=!p&&x&&void 0!==x[u])&&s(v,u)||(c=h?x[u]:n[u],v[u]=d&&"function"!=typeof x[u]?n[u]:y&&h?o(c,i):m&&x[u]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},913:function(t,e,n){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,n,i):"string"==typeof e?h(t,e,n):d(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}function u(t,e){if(s(e),t=r(t,e<0?0:0|f(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|y(e,n);t=r(t,i);var a=t.write(e,n);return a!==i&&(t=t.slice(0,a)),t}function c(t,e){var n=e.length<0?0:0|f(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function p(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function d(t,e){if(o.isBuffer(e)){var n=0|f(e.length);return t=r(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?r(t,0):c(t,e);if("Buffer"===e.type&&Q(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(i)return U(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!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"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function v(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var h=-1;for(u=n;u<s;u++)if(o(t,u)===o(e,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===l)return h*a}else-1!==h&&(u-=u-h),h=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var c=!0,p=0;p<l;p++)if(o(t,u+p)!==o(e,p)){c=!1;break}if(c)return u}return-1}function w(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,i){return q(U(e,t.length-n),t,n,i)}function S(t,e,n,i){return q(j(e),t,n,i)}function C(t,e,n,i){return S(t,e,n,i)}function T(t,e,n,i){return q(X(e),t,n,i)}function M(t,e,n,i){return q(Y(e,t.length-n),t,n,i)}function I(t,e,n){return 0===e&&n===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,h,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],u=t[r+2],128==(192&l)&&128==(192&u)&&(c=(15&o)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],u=t[r+2],h=t[r+3],128==(192&l)&&128==(192&u)&&128==(192&h)&&(c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&h)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return D(i)}function D(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=J));return n}function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function P(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function O(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=W(t[o]);return r}function L(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function N(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function B(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function z(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,r){return r||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,r){return r||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,i,52,8),n+8}function H(t){if(t=G(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=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 j(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Y(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}function X(t){return K.toByteArray(H(t))}function q(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function Z(t){return t!==t}var K=n(914),$=n(915),Q=n(916);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return l(null,t,e,n)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.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===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,s=n-e,l=Math.min(a,s),u=this.slice(i,r),h=t.slice(e,n),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],s=h[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i;if(o.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=o.prototype;else{var r=e-t;i=new o(r,void 0);for(var a=0;a<r;++a)i[a]=this[a+t]}return i},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--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},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:U(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(551))},914:function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function o(t,e,n){return 3*(e+n)/4-n}function a(t){var e,n,r=i(t),a=r[0],s=r[1],l=new p(o(t,a,s)),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=c[t.charCodeAt(n)]<<18|c[t.charCodeAt(n+1)]<<12|c[t.charCodeAt(n+2)]<<6|c[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=c[t.charCodeAt(n)]<<2|c[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=c[t.charCodeAt(n)]<<10|c[t.charCodeAt(n+1)]<<4|c[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function s(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function l(t,e,n){for(var i,r=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(i));return r.join("")}function u(t){for(var e,n=t.length,i=n%3,r=[],o=0,a=n-i;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===i?(e=t[n-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),r.join("")}e.byteLength=r,e.toByteArray=a,e.fromByteArray=u;for(var h=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)h[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},915:function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?r-1:0,p=n?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?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=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?p/l:p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&s,d+=f,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}},916:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},92:function(t,e,n){"use strict";e.__esModule=!0;var i=n(70),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}}})});