1 |
- global.webpackJsonpMpvue([0],{"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var i=n("lOnJ");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)}}},"/Y/F":function(t,e,n){"use strict";e.a=function(t){const e=typeof t;return null!==t&&("object"===e||"function"===e)}},"0qyJ":function(t,e,n){"use strict";var i=n("T9XY"),r=new(n.n(i).a);r.config.baseURL="https://api.shuimuai.com/",r.config.headers={access_token:11,"content-type":"application/x-www-form-urlencoded"},e.a=r},"0xDb":function(t,e,n){"use strict";e.f=function(){var t=new Date,e=t.getFullYear(),n=t.getMonth()+1,i=t.getDate();return""+e+n+i},e.e=a,e.g=function(t){var e=new Date(1e3*t),n=e.getFullYear()+".",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+".",r=e.getDate()<10?"0"+e.getDate():e.getDate();return n+i+r},e.c=function(t){var e=(t=new Date(1e3*t)).getFullYear(),n=t.getMonth()+1,i=t.getDate();t.getHours();return""+[e,n,i].map(o).join("-")},e.d=function(t){var e=parseInt(t),n=0,i=0;e>60&&(n=parseInt(e/60),e=parseInt(e%60),n>60&&(i=parseInt(n/60),n=parseInt(n%60)));var r=parseInt(e)+"秒";n>0&&(r=parseInt(n)+"分"+r);i>0&&(r=parseInt(i)+"小时"+r);return r},e.a=function(t){var e=(new Date).getTime(),n=1e3*t-e,i=Math.floor(n/864e5),r=n%864e5,o=Math.floor(r/36e5),a=r%36e5,s=Math.floor(a/6e4),l=a%6e4,u=Math.round(l/1e3);return{differ:n,days:i,hours:o,minutes:s,seconds:u}};var i=n("woOf"),r=n.n(i);function o(t){var e=t.toString();return e[1]?e:"0"+e}function a(t){t.length<=11&&(t*=1e3);var e=(t=new Date(t)).getFullYear(),n=t.getMonth()+1,i=t.getDate();t.getHours();return e+"/"+n+"/"+i}e.b={formatNumber:o,formatTime:a,getLineOption:function(t,e,n){return{color:["#FFB400","#40FF31","#D4327A"],legend:{data:["Att(专注度)","Med(放松度)","Amp(和谐度)"],top:-5,left:210,orient:"horizontal",icon:"circle",itemWidth:8,itemGap:5,textStyle:{fontSize:10,color:"#CFCFCF"},selectedMode:!1,show:!1},grid:{left:20,right:20,bottom:16,top:16,containLabel:!0,zlevel:1},tooltip:{show:!0,trigger:"axis"},yAxis:{x:"center",type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"},show:!1},axisLabel:{color:"#ccc"},max:100},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{color:"#ccc"},show:!1},series:[{name:"Att(专注度)",symbol:"none",type:"line",smooth:!0,data:t},{name:"Med(放松度)",symbol:"none",type:"line",smooth:!0,data:e},{name:"Amp(和谐度)",symbol:"none",type:"line",smooth:!0,data:n}],animation:!1}},getABOption:function(t,e,n,i){return{color:["#38FF49","#00AD0E","#0060F1","#00CCFF"],legend:{data:["alphaL","alphaH","betaL","betaH"],top:-5,left:210,orient:"horizontal",icon:"circle",itemWidth:8,itemGap:5,textStyle:{fontSize:10,color:"#CFCFCF"},selectedMode:!1,show:!1},grid:{left:20,right:20,bottom:16,top:16,containLabel:!0,zlevel:1},tooltip:{show:!0,trigger:"axis"},yAxis:{x:"center",type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"},show:!1},axisLabel:{color:"#ccc"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{color:"#ccc"},show:!1},series:[{name:"alphaL",symbol:"none",type:"line",smooth:!0,data:t},{name:"alphaH",symbol:"none",type:"line",smooth:!0,data:e},{name:"betaL",symbol:"none",type:"line",smooth:!0,data:n},{name:"betaH",symbol:"none",type:"line",smooth:!0,data:i}],animation:!1}},getDTOption:function(t,e){return{color:["#FF77B3","#FFE838"],legend:{data:["Delta","Theta"],top:-5,left:210,orient:"horizontal",icon:"circle",itemWidth:8,itemGap:5,textStyle:{fontSize:10,color:"#CFCFCF"},selectedMode:!1,show:!1},grid:{left:20,right:20,bottom:16,top:16,containLabel:!0,zlevel:1},tooltip:{show:!0,trigger:"axis"},yAxis:{x:"center",type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"},show:!1},axisLabel:{color:"#ccc"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{color:"#ccc"},show:!1},series:[{name:"Delta",symbol:"none",type:"line",smooth:!0,data:t},{name:"Theta",symbol:"none",type:"line",smooth:!0,data:e}],animation:!1}},getBaseOption:function(t,e,n,i,r,o){return{color:["#FF77B3","#FFE838","#0060F1","#00CCFF","#38FF49","#00AD0E"],legend:{data:["Delta","Theta","Low_Beta","High_Beta","Low_Alpha","High_Alpha"],left:"center",bottom:20,icon:"circle",itemWidth:8,itemGap:25,textStyle:{fontSize:10,color:"#CFCFCF"},show:!1},grid:{left:20,right:20,bottom:16,top:16,containLabel:!0},tooltip:{show:!0,trigger:"axis"},yAxis:{x:"center",type:"value",splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"},show:!1},axisLabel:{color:"#ccc"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{type:"dashed"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{color:"#ccc"},show:!1},series:[{name:"Delta",symbol:"none",type:"line",smooth:!0,data:t},{name:"Theta",symbol:"none",type:"line",smooth:!0,data:e},{name:"Low_Beta",symbol:"none",type:"line",smooth:!0,data:n},{name:"High_Beta",symbol:"none",type:"line",smooth:!0,data:i},{name:"Low_Alpha",symbol:"none",type:"line",smooth:!0,data:r},{name:"High_Alpha",symbol:"none",type:"line",smooth:!0,data:o}],animation:!1}},timestampToTimeS:function(t){var e=new Date(1e3*t);return e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate())+" "+e.getHours()+":"+(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":"+(e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds())},interfereAction:function(t){if(t){for(var e=[],n={},i=0;i<1200;i++)n[i]=0;var o=r()(n,t);for(var a in o)e.push(o[a]);return e}console.log("无数据",t)}}},"1kS7":function(t,e){e.f=Object.getOwnPropertySymbols},"3Eo+":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5S+K":function(t,e,n){"use strict";e.k=function(t){return i.a.post("user/get-code",t)},e.m=function(t){return i.a.post("user/register",t)},e.l=function(t){return i.a.post("user/login",t)},e.j=function(){var t={access_token:wx.getStorageSync("token")};return i.a.post("user/user-detail",t)},e.c=function(){return Math.round((new Date).getTime()/1e3).toString()},e.g=function(t){var e=wx.getStorageSync("token");return t.access_token=e,i.a.post("user/check-code",t)},e.e=function(t){var e=wx.getStorageSync("token");return t.access_token=e,i.a.post("user/change-phone",t)},e.f=function(t){var e=wx.getStorageSync("token");return t.access_token=e,i.a.post("user/change-sex",t)},e.d=function(t){var e=wx.getStorageSync("token");return t.access_token=e,i.a.post("user/change-birthday",t)},e.h=function(t,e){var n={invite:t,js_code:e,access_token:11};return i.a.post("user/check-invite",n)},e.i=function(t){var e={js_code:t,access_token:wx.getStorageSync("token")};return i.a.post("user/check-unionid",e)},e.a=function(){var t={access_token:wx.getStorageSync("token")};return i.a.post("activity/activity-list",t)},e.b=function(){var t={access_token:wx.getStorageSync("token")};return i.a.post("user/user-login",t)};var i=n("0qyJ");n("IcnI")},"5nAL":function(t,e,n){(function(e){try{e||(e={}),e.process=e.process||{},e.process.env=e.process.env||{},e.App=e.App||App,e.Page=e.Page||Page,e.Component=e.Component||Component,e.getApp=e.getApp||getApp,"undefined"!=typeof wx?(e.mpvue=wx,e.mpvuePlatform="wx"):"undefined"!=typeof swan?(e.mpvue=swan,e.mpvuePlatform="swan"):"undefined"!=typeof tt?(e.mpvue=tt,e.mpvuePlatform="tt"):"undefined"!=typeof my&&(e.mpvue=my,e.mpvuePlatform="my")}catch(t){}!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return void 0===t||null===t}function n(t){return void 0!==t&&null!==t}function i(t){return!0===t}function r(t){return"string"==typeof t||"number"==typeof t}function o(t){return null!==t&&"object"==typeof t}var a=Object.prototype.toString;function s(t){return"[object Object]"===a.call(t)}function l(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function u(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function c(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}h("slot,component",!0);var p=h("key,ref,slot,is");function f(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var d=Object.prototype.hasOwnProperty;function g(t,e){return d.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var y=/-(\w)/g,m=v(function(t){return t.replace(y,function(t,e){return e?e.toUpperCase():""})}),_=v(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),x=/([^-])([A-Z])/g,w=v(function(t){return t.replace(x,"$1-$2").replace(x,"$1-$2").toLowerCase()});function b(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function S(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function T(t,e){for(var n in e)t[n]=e[n];return t}function C(t,e,n){}var M=function(t,e,n){return!1},I=function(t){return t};function A(t,e){var n=o(t),i=o(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{return JSON.stringify(t)===JSON.stringify(e)}catch(n){return t===e}}function k(t,e){for(var n=0;n<t.length;n++)if(A(t[n],e))return n;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var O="data-server-rendered",P=["component","directive","filter"],L=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","onLaunch","onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onTabItemTap","attached","ready","moved","detached"],E={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:M,isReservedAttr:M,isUnknownElement:M,getTagNamespace:C,parsePlatformTagName:I,mustUseProp:M,_lifecycleHooks:L},R=Object.freeze({});function N(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function B(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var z=/[^\w.$]/;var F=C;function H(t,e,n){if(E.errorHandler)E.errorHandler.call(null,t,e,n);else{if(!j||"undefined"==typeof console)throw t;console.error(t)}}var V,G="__proto__"in{},j="undefined"!=typeof window,W=["mpvue-runtime"].join(),U=(W&&/msie|trident/.test(W),W&&W.indexOf("msie 9.0"),W&&W.indexOf("edge/")>0),$=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)),Y=(W&&/chrome\/\d+/.test(W),{}.watch);if(j)try{var X={};Object.defineProperty(X,"passive",{get:function(){!0}}),window.addEventListener("test-passive",null,X)}catch(t){}var q=function(){return void 0===V&&(V=!j&&void 0!==e&&"server"===e.process.env.VUE_ENV),V},Z=j&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function K(t){return"function"==typeof t&&/native code/.test(t.toString())}var J,Q="undefined"!=typeof Symbol&&K(Symbol)&&"undefined"!=typeof Reflect&&K(Reflect.ownKeys),tt=function(){var t,e=[],n=!1;function i(){n=!1;var t=e.slice(0);e.length=0;for(var i=0;i<t.length;i++)t[i]()}if("undefined"!=typeof Promise&&K(Promise)){var r=Promise.resolve(),o=function(t){console.error(t)};t=function(){r.then(i).catch(o),$&&setTimeout(C)}}else t=function(){setTimeout(i,0)};return function(i,r){var o;if(e.push(function(){if(i)try{i.call(r)}catch(t){H(t,r,"nextTick")}else o&&o(r)}),n||(n=!0,t()),!i&&"undefined"!=typeof Promise)return new Promise(function(t,e){o=t})}}();J="undefined"!=typeof Set&&K(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var et=0,nt=function(){this.id=et++,this.subs=[]};nt.prototype.addSub=function(t){this.subs.push(t)},nt.prototype.removeSub=function(t){f(this.subs,t)},nt.prototype.depend=function(){nt.target&&nt.target.addDep(this)},nt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},nt.target=null;var it=[];var rt=Array.prototype,ot=Object.create(rt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=rt[t];B(ot,t,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o})});var at=Object.getOwnPropertyNames(ot),st={shouldConvert:!0},lt=function(t,e){(this.value=t,this.dep=new nt,this.vmCount=0,e&&(this.key=e),B(t,"__ob__",this),Array.isArray(t))?((G?ut:ct)(t,ot,at),this.observeArray(t)):this.walk(t)};function ut(t,e,n){t.__proto__=e}function ct(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];B(t,o,e[o])}}function ht(t,e,n){var i;if(o(t))return g(t,"__ob__")&&t.__ob__ instanceof lt?i=t.__ob__:st.shouldConvert&&!q()&&(Array.isArray(t)||s(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new lt(t,n)),e&&i&&i.vmCount++,i}function pt(t,e,n,i,r){var o=new nt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set,u=!r&&ht(n,void 0,e);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return nt.target&&(o.depend(),u&&u.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,i=0,r=e.length;i<r;i++)(n=e[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e)),e},set:function(i){var a=s?s.call(t):n;i===a||i!=i&&a!=a||(l?l.call(t,i):n=i,u=!r&&ht(i,void 0,e),o.notify(),t.__keyPath||B(t,"__keyPath",{},!1),t.__keyPath[e]=!0,i instanceof Object&&!(i instanceof Array)&&B(i,"__newReference",!0,!1))}})}}function ft(t,e,n){if(Array.isArray(t)&&l(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(g(t,e))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(pt(i.value,e,n),t.__keyPath||B(t,"__keyPath",{},!1),t.__keyPath[e]=!0,i.dep.notify(),n):(t[e]=n,n)}function dt(t,e){if(Array.isArray(t)&&l(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||g(t,e)&&(delete t[e],n&&(t.__keyPath||B(t,"__keyPath",{},!1),t.__keyPath[e]="del",n.dep.notify()))}}lt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)pt(t,e[n],t[e[n]])},lt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)ht(t[e])};var gt=E.optionMergeStrategies;function vt(t,e){if(!e)return t;for(var n,i,r,o=Object.keys(e),a=0;a<o.length;a++)i=t[n=o[a]],r=e[n],g(t,n)?s(i)&&s(r)&&vt(i,r):ft(t,n,r);return t}function yt(t,e,n){return n?t||e?function(){var i="function"==typeof e?e.call(n):e,r="function"==typeof t?t.call(n):void 0;return i?vt(i,r):r}:void 0:e?t?function(){return vt("function"==typeof e?e.call(this):e,t.call(this))}:e:t}function mt(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function _t(t,e){var n=Object.create(t||null);return e?T(n,e):n}gt.data=function(t,e,n){return n?yt(t,e,n):e&&"function"!=typeof e?t:yt.call(this,t,e)},L.forEach(function(t){gt[t]=mt}),P.forEach(function(t){gt[t+"s"]=_t}),gt.watch=function(t,e){if(t===Y&&(t=void 0),e===Y&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var n={};for(var i in T(n,t),e){var r=n[i],o=e[i];r&&!Array.isArray(r)&&(r=[r]),n[i]=r?r.concat(o):Array.isArray(o)?o:[o]}return n},gt.props=gt.methods=gt.inject=gt.computed=function(t,e){if(!e)return Object.create(t||null);if(!t)return e;var n=Object.create(null);return T(n,t),T(n,e),n},gt.provide=yt;var xt=function(t,e){return void 0===e?t:e};function wt(t,e,n){"function"==typeof e&&(e=e.options),function(t){var e=t.props;if(e){var n,i,r={};if(Array.isArray(e))for(n=e.length;n--;)"string"==typeof(i=e[n])&&(r[m(i)]={type:null});else if(s(e))for(var o in e)i=e[o],r[m(o)]=s(i)?i:{type:i};t.props=r}}(e),function(t){var e=t.inject;if(Array.isArray(e))for(var n=t.inject={},i=0;i<e.length;i++)n[e[i]]=e[i]}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}(e);var i=e.extends;if(i&&(t=wt(t,i,n)),e.mixins)for(var r=0,o=e.mixins.length;r<o;r++)t=wt(t,e.mixins[r],n);var a,l={};for(a in t)u(a);for(a in e)g(t,a)||u(a);function u(i){var r=gt[i]||xt;l[i]=r(t[i],e[i],n,i)}return l}function bt(t,e,n,i){if("string"==typeof n){var r=t[e];if(g(r,n))return r[n];var o=m(n);if(g(r,o))return r[o];var a=_(o);return g(r,a)?r[a]:r[n]||r[o]||r[a]}}function St(t,e,n,i){var r=e[t],o=!g(n,t),a=n[t];if(Ct(Boolean,r.type)&&(o&&!g(r,"default")?a=!1:Ct(String,r.type)||""!==a&&a!==w(t)||(a=!0)),void 0===a){a=function(t,e,n){if(!g(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof i&&"Function"!==Tt(e.type)?i.call(t):i}(i,r,t);var s=st.shouldConvert;st.shouldConvert=!0,ht(a),st.shouldConvert=s}return a}function Tt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Ct(t,e){if(!Array.isArray(e))return Tt(e)===Tt(t);for(var n=0,i=e.length;n<i;n++)if(Tt(e[n])===Tt(t))return!0;return!1}var Mt=function(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},It={child:{}};It.child.get=function(){return this.componentInstance},Object.defineProperties(Mt.prototype,It);var At=function(t){void 0===t&&(t="");var e=new Mt;return e.text=t,e.isComment=!0,e};function kt(t){return new Mt(void 0,void 0,void 0,String(t))}function Dt(t){var e=new Mt(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.isCloned=!0,e}function Ot(t){for(var e=t.length,n=new Array(e),i=0;i<e;i++)n[i]=Dt(t[i]);return n}var Pt,Lt=v(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}});function Et(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var i=n.slice(),r=0;r<i.length;r++)i[r].apply(null,t)}return e.fns=t,e}function Rt(t,e,i,r,o){if(n(e)){if(g(e,i))return t[i]=e[i],o||delete e[i],!0;if(g(e,r))return t[i]=e[r],o||delete e[r],!0}return!1}function Nt(e){return r(e)?[kt(e)]:Array.isArray(e)?function e(o,a){var s=[];var l,u,c;for(l=0;l<o.length;l++)t(u=o[l])||"boolean"==typeof u||(c=s[s.length-1],Array.isArray(u)?s.push.apply(s,e(u,(a||"")+"_"+l)):r(u)?Bt(c)?c.text+=String(u):""!==u&&s.push(kt(u)):Bt(u)&&Bt(c)?s[s.length-1]=kt(c.text+u.text):(i(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+l+"__"),s.push(u)));return s}(e):void 0}function Bt(t){return n(t)&&n(t.text)&&function(t){return!1===t}(t.isComment)}function zt(t,e){return t.__esModule&&t.default&&(t=t.default),o(t)?e.extend(t):t}function Ft(t,e,n){n?Pt.$once(t,e):Pt.$on(t,e)}function Ht(t,e){Pt.$off(t,e)}function Vt(e,n,i){Pt=e,function(e,n,i,r,o){var a,s,l,u;for(a in e)s=e[a],l=n[a],u=Lt(a),t(s)||(t(l)?(t(s.fns)&&(s=e[a]=Et(s)),i(u.name,s,u.once,u.capture,u.passive)):s!==l&&(l.fns=s,e[a]=l));for(a in n)t(e[a])&&r((u=Lt(a)).name,n[a],u.capture)}(n,i||{},Ft,Ht)}function Gt(t,e){var n={};if(!t)return n;for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];if(a.context!==e&&a.functionalContext!==e||!a.data||null==a.data.slot)i.push(a);else{var s=a.data.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children):l.push(a)}}return i.every(jt)||(n.default=i),n}function jt(t){return t.isComment||" "===t.text}function Wt(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?Wt(t[n],e):e[t[n].key]=t[n].fn;return e}var Ut=null;function $t(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=At),qt(t,"beforeMount"),i=function(){t._update(t._render(),n)},t._watcher=new re(t,i,C),n=!1,null==t.$vnode&&(t._isMounted=!0,qt(t,"mounted")),t}function Yt(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Xt(t,e){if(e){if(t._directInactive=!1,Yt(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Xt(t.$children[n]);qt(t,"activated")}}function qt(t,e){var n=t.$options[e];if(n)for(var i=0,r=n.length;i<r;i++)try{n[i].call(t)}catch(n){H(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e)}var Zt=[],Kt=[],Jt={},Qt=!1,te=!1,ee=0;function ne(){var t,e;for(te=!0,Zt.sort(function(t,e){return t.id-e.id}),ee=0;ee<Zt.length;ee++)e=(t=Zt[ee]).id,Jt[e]=null,t.run();var n=Kt.slice(),i=Zt.slice();ee=Zt.length=Kt.length=0,Jt={},Qt=te=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Xt(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&qt(i,"updated")}}(i),Z&&E.devtools&&Z.emit("flush")}var ie=0,re=function(t,e,n,i){this.vm=t,t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ie,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new J,this.newDepIds=new J,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!z.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};re.prototype.get=function(){var t;!function(t){nt.target&&it.push(nt.target),nt.target=t}(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;H(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&function(t){oe.clear(),function t(e,n){var i,r;var a=Array.isArray(e);if(!a&&!o(e)||!Object.isExtensible(e))return;if(e.__ob__){var s=e.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(a)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,oe)}(t),nt.target=it.pop(),this.cleanupDeps()}return t},re.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},re.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},re.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==Jt[e]){if(Jt[e]=!0,te){for(var n=Zt.length-1;n>ee&&Zt[n].id>t.id;)n--;Zt.splice(n+1,0,t)}else Zt.push(t);Qt||(Qt=!0,tt(ne))}}(this)},re.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||o(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){H(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},re.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},re.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},re.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var oe=new J;var ae={enumerable:!0,configurable:!0,get:C,set:C};function se(t,e,n){ae.get=function(){return this[e][n]},ae.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ae)}function le(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],o=!t.$parent;st.shouldConvert=o;var a=function(o){r.push(o);var a=St(o,e,n,t);pt(i,o,a),o in t||se(t,"_props",o)};for(var s in e)a(s);st.shouldConvert=!0}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?C:b(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;s(e=t._data="function"==typeof e?function(t,e){try{return t.call(e)}catch(t){return H(t,e,"data()"),{}}}(e,t):e||{})||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var o=n[r];i&&g(i,o)||N(o)||se(t,"_data",o)}ht(e,!0)}(t):ht(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null);for(var i in e){var r=e[i],o="function"==typeof r?r:r.get;n[i]=new re(t,o,C,ue),i in t||ce(t,i,r)}}(t,e.computed),e.watch&&e.watch!==Y&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)pe(t,n,i[r]);else pe(t,n,i)}}(t,e.watch)}var ue={lazy:!0};function ce(t,e,n){"function"==typeof n?(ae.get=he(e),ae.set=C):(ae.get=n.get?!1!==n.cache?he(e):n.get:C,ae.set=n.set?n.set:C),Object.defineProperty(t,e,ae)}function he(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),nt.target&&e.depend(),e.value}}function pe(t,e,n,i){return s(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}function fe(t,e){if(t){for(var n=Object.create(null),i=Q?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){for(var o=i[r],a=t[o],s=e;s;){if(s._provided&&a in s._provided){n[o]=s._provided[a];break}s=s.$parent}0}return n}}function de(t,e){for(var n in e)t[m(n)]=e[n]}var ge={init:function(t,e,i,r){if(!t.componentInstance||t.componentInstance._isDestroyed)(t.componentInstance=function(t,e,i,r){var o=t.componentOptions,a={_isComponent:!0,parent:e,propsData:o.propsData,_componentTag:o.tag,_parentVnode:t,_parentListeners:o.listeners,_renderChildren:o.children,_parentElm:i||null,_refElm:r||null},s=t.data.inlineTemplate;n(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns);return new o.Ctor(a)}(t,Ut,i,r)).$mount(e?t.elm:void 0,e);else if(t.data.keepAlive){var o=t;ge.prepatch(o,o)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,r){var o=!!(r||t.$options._renderChildren||i.data.scopedSlots||t.$scopedSlots!==R);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=r,t.$attrs=i.data&&i.data.attrs,t.$listeners=n,e&&t.$options.props){st.shouldConvert=!1;for(var a=t._props,s=t.$options._propKeys||[],l=0;l<s.length;l++){var u=s[l];a[u]=St(u,t.$options.props,e,t)}st.shouldConvert=!0,t.$options.propsData=e}if(n){var c=t.$options._parentListeners;t.$options._parentListeners=n,Vt(t,n,c)}o&&(t.$slots=Gt(r,i.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,qt(n,"mounted")),t.data.keepAlive&&(e._isMounted?function(t){t._inactive=!1,Kt.push(t)}(n):Xt(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,Yt(e))||e._inactive)){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);qt(e,"deactivated")}}(e,!0):e.$destroy())}},ve=Object.keys(ge);function ye(e,r,a,s,l){if(!t(e)){var u=a.$options._base;if(o(e)&&(e=u.extend(e)),"function"==typeof e){var c;if(t(e.cid)&&void 0===(e=function(e,r,a){if(i(e.error)&&n(e.errorComp))return e.errorComp;if(n(e.resolved))return e.resolved;if(i(e.loading)&&n(e.loadingComp))return e.loadingComp;if(!n(e.contexts)){var s=e.contexts=[a],l=!0,u=function(){for(var t=0,e=s.length;t<e;t++)s[t].$forceUpdate()},c=D(function(t){e.resolved=zt(t,r),l||u()}),h=D(function(t){n(e.errorComp)&&(e.error=!0,u())}),p=e(c,h);return o(p)&&("function"==typeof p.then?t(e.resolved)&&p.then(c,h):n(p.component)&&"function"==typeof p.component.then&&(p.component.then(c,h),n(p.error)&&(e.errorComp=zt(p.error,r)),n(p.loading)&&(e.loadingComp=zt(p.loading,r),0===p.delay?e.loading=!0:setTimeout(function(){t(e.resolved)&&t(e.error)&&(e.loading=!0,u())},p.delay||200)),n(p.timeout)&&setTimeout(function(){t(e.resolved)&&h(null)},p.timeout))),l=!1,e.loading?e.loadingComp:e.resolved}e.contexts.push(a)}(c=e,u,a)))return function(t,e,n,i,r){var o=At();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}(c,r,a,s,l);r=r||{},Le(e),n(r.model)&&function(t,e){var i=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.props||(e.props={}))[i]=e.model.value;var o=e.on||(e.on={});n(o[r])?o[r]=[e.model.callback].concat(o[r]):o[r]=e.model.callback}(e.options,r);var h=function(e,i,r){var o=i.options.props;if(!t(o)){var a={},s=e.attrs,l=e.props;if(n(s)||n(l))for(var u in o){var c=w(u);Rt(a,l,u,c,!0)||Rt(a,s,u,c,!1)}return a}}(r,e);if(i(e.options.functional))return function(t,e,i,r,o){var a={},s=t.options.props;if(n(s))for(var l in s)a[l]=St(l,s,e||{});else n(i.attrs)&&de(a,i.attrs),n(i.props)&&de(a,i.props);var u=Object.create(r),c=t.options.render.call(null,function(t,e,n,i){return we(u,t,e,n,i,!0)},{data:i,props:a,children:o,parent:r,listeners:i.on||{},injections:fe(t.options.inject,r),slots:function(){return Gt(o,r)}});return c instanceof Mt&&(c.functionalContext=r,c.functionalOptions=t.options,i.slot&&((c.data||(c.data={})).slot=i.slot)),c}(e,h,r,a,s);var p=r.on;if(i(e.options.abstract)){var f=r.slot;r={},f&&(r.slot=f)}!function(t){t.hook||(t.hook={});for(var e=0;e<ve.length;e++){var n=ve[e],i=t.hook[n],r=ge[n];t.hook[n]=i?me(r,i):r}}(r);var d=e.options.name||l;return new Mt("vue-component-"+e.cid+(d?"-"+d:""),r,void 0,void 0,void 0,a,{Ctor:e,propsData:h,listeners:p,tag:l,children:s},c)}}}function me(t,e){return function(n,i,r,o){t(n,i,r,o),e(n,i,r,o)}}var _e=1,xe=2;function we(e,o,a,s,l,u){return(Array.isArray(a)||r(a))&&(l=s,s=a,a=void 0),i(u)&&(l=xe),function(e,i,r,o,a){if(n(r)&&n(r.__ob__))return At();n(r)&&n(r.is)&&(i=r.is);if(!i)return At();0;Array.isArray(o)&&"function"==typeof o[0]&&((r=r||{}).scopedSlots={default:o[0]},o.length=0);a===xe?o=Nt(o):a===_e&&(o=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(o));var s,l;if("string"==typeof i){var u;l=E.getTagNamespace(i),s=E.isReservedTag(i)?new Mt(E.parsePlatformTagName(i),r,o,void 0,void 0,e):n(u=bt(e.$options,"components",i))?ye(u,r,e,o,i):new Mt(i,r,o,void 0,void 0,e)}else s=ye(i,r,e,o);return n(s)?(l&&function e(i,r){i.ns=r;if("foreignObject"===i.tag)return;if(n(i.children))for(var o=0,a=i.children.length;o<a;o++){var s=i.children[o];n(s.tag)&&t(s.ns)&&e(s,r)}}(s,l),s):At()}(e,o,a,s,l)}function be(t,e){var i,r,a,s,l;if(Array.isArray(t)||"string"==typeof t)for(i=new Array(t.length),r=0,a=t.length;r<a;r++)i[r]=e(t[r],r);else if("number"==typeof t)for(i=new Array(t),r=0;r<t;r++)i[r]=e(r+1,r);else if(o(t))for(s=Object.keys(t),i=new Array(s.length),r=0,a=s.length;r<a;r++)l=s[r],i[r]=e(t[l],l,r);return n(i)&&(i._isVList=!0),i}function Se(t,e,n,i){var r=this.$scopedSlots[t];if(r)return n=n||{},i&&(n=T(T({},i),n)),r(n)||e;var o=this.$slots[t];return o||e}function Te(t){return bt(this.$options,"filters",t)||I}function Ce(t,e,n){var i=E.keyCodes[e]||n;return Array.isArray(i)?-1===i.indexOf(t):i!==t}function Me(t,e,n,i,r){if(n)if(o(n)){var a;Array.isArray(n)&&(n=function(t){for(var e={},n=0;n<t.length;n++)t[n]&&T(e,t[n]);return e}(n));var s=function(o){if("class"===o||"style"===o||p(o))a=t;else{var s=t.attrs&&t.attrs.type;a=i||E.mustUseProp(e,s,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}o in a||(a[o]=n[o],r&&((t.on||(t.on={}))["update:"+o]=function(t){n[o]=t}))};for(var l in n)s(l)}else;return t}function Ie(t,e){var n=this._staticTrees[t];return n&&!e?Array.isArray(n)?Ot(n):Dt(n):(ke(n=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),"__static__"+t,!1),n)}function Ae(t,e,n){return ke(t,"__once__"+e+(n?"_"+n:""),!0),t}function ke(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&De(t[i],e+"_"+i,n);else De(t,e,n)}function De(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Oe(t,e){if(e)if(s(e)){var n=t.on=t.on?T({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(o,r):o}}else;return t}var Pe=0;function Le(t){var e=t.options;if(t.super){var n=Le(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.extendOptions,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=Ee(n[o],i[o],r[o]));return e}(t);i&&T(t.extendOptions,i),(e=t.options=wt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Ee(t,e,n){if(Array.isArray(t)){var i=[];n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e];for(var r=0;r<t.length;r++)(e.indexOf(t[r])>=0||n.indexOf(t[r])<0)&&i.push(t[r]);return i}return t}function Re(t){this._init(t)}function Ne(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=wt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)se(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)ce(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,P.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=T({},a.options),r[i]=a,a}}!function(t){t.prototype._init=function(t){var e=this;e._uid=Pe++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options);n.parent=e.parent,n.propsData=e.propsData,n._parentVnode=e._parentVnode,n._parentListeners=e._parentListeners,n._renderChildren=e._renderChildren,n._componentTag=e._componentTag,n._parentElm=e._parentElm,n._refElm=e._refElm,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=wt(Le(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Vt(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$vnode=t.$options._parentVnode,n=e&&e.context;t.$slots=Gt(t.$options._renderChildren,n),t.$scopedSlots=R,t._c=function(e,n,i,r){return we(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return we(t,e,n,i,r,!0)};var i=e&&e.data;pt(t,"$attrs",i&&i.attrs,0,!0),pt(t,"$listeners",i&&i.on,0,!0)}(e),qt(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(st.shouldConvert=!1,Object.keys(e).forEach(function(n){pt(t,n,e[n])}),st.shouldConvert=!0)}(e),le(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),qt(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Re),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=ft,t.prototype.$delete=dt,t.prototype.$watch=function(t,e,n){if(s(e))return pe(this,t,e,n);(n=n||{}).user=!0;var i=new re(this,t,e,n);return n.immediate&&e.call(this,i.value),function(){i.teardown()}}}(Re),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++)this.$on(t[i],n);else(this._events[t]||(this._events[t]=[])).push(n),e.test(t)&&(this._hasHookEvent=!0);return this},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)this.$off(t[i],e);return n}var o,a=n._events[t];if(!a)return n;if(1===arguments.length)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this._events[t];if(e){e=e.length>1?S(e):e;for(var n=S(arguments,1),i=0,r=e.length;i<r;i++)try{e[i].apply(this,n)}catch(e){H(e,this,'event handler for "'+t+'"')}}return this}}(Re),function(t){t.prototype._update=function(t,e){var n=this;n._isMounted&&qt(n,"beforeUpdate");var i=n.$el,r=n._vnode,o=Ut;Ut=n,n._vnode=t,r?n.$el=n.__patch__(r,t):(n.$el=n.__patch__(n.$el,t,e,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),Ut=o,i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){qt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||f(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),qt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null)}}}(Re),function(t){t.prototype.$nextTick=function(t){return tt(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n.staticRenderFns,o=n._parentVnode;if(e._isMounted)for(var a in e.$slots)e.$slots[a]=Ot(e.$slots[a]);e.$scopedSlots=o&&o.data.scopedSlots||R,r&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=o;try{t=i.call(e._renderProxy,e.$createElement)}catch(n){H(n,e,"render function"),t=e._vnode}return t instanceof Mt||(t=At()),t.parent=o,t},t.prototype._o=Ae,t.prototype._n=c,t.prototype._s=u,t.prototype._l=be,t.prototype._t=Se,t.prototype._q=A,t.prototype._i=k,t.prototype._m=Ie,t.prototype._f=Te,t.prototype._k=Ce,t.prototype._b=Me,t.prototype._v=kt,t.prototype._e=At,t.prototype._u=Wt,t.prototype._g=Oe}(Re);var Be=[String,RegExp,Array];function ze(t){return t&&(t.Ctor.options.name||t.tag)}function Fe(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===a.call(t)}(t)&&t.test(e)}function He(t,e,n){for(var i in t){var r=t[i];if(r){var o=ze(r.componentOptions);o&&!n(o)&&(r!==e&&Ve(r),t[i]=null)}}}function Ve(t){t&&t.componentInstance.$destroy()}var Ge={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Be,exclude:Be},created:function(){this.cache=Object.create(null)},destroyed:function(){for(var t in this.cache)Ve(this.cache[t])},watch:{include:function(t){He(this.cache,this._vnode,function(e){return Fe(t,e)})},exclude:function(t){He(this.cache,this._vnode,function(e){return!Fe(t,e)})}},render:function(){var t=function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];if(n(i)&&n(i.componentOptions))return i}}(this.$slots.default),e=t&&t.componentOptions;if(e){var i=ze(e);if(i&&(this.include&&!Fe(this.include,i)||this.exclude&&Fe(this.exclude,i)))return t;var r=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;this.cache[r]?t.componentInstance=this.cache[r].componentInstance:this.cache[r]=t,t.data.keepAlive=!0}return t}}};!function(t){var e={get:function(){return E}};Object.defineProperty(t,"config",e),t.util={warn:F,extend:T,mergeOptions:wt,defineReactive:pt},t.set=ft,t.delete=dt,t.nextTick=tt,t.options=Object.create(null),P.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,T(t.options.components,Ge),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=wt(this.options,t),this}}(t),Ne(t),function(t){P.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&s(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(Re),Object.defineProperty(Re.prototype,"$isServer",{get:q}),Object.defineProperty(Re.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Re.version="2.4.1",Re.mpvueVersion="2.0.6";var je=h("template,script,style,element,content,slot,link,meta,svg,view,a,div,img,image,text,span,richtext,input,switch,textarea,spinner,select,slider,slider-neighbor,indicator,trisition,trisition-group,canvas,list,cell,header,loading,loading-indicator,refresh,scrollable,scroller,video,web,embed,tabbar,tabheader,datepicker,timepicker,marquee,countdown",!0),We=h("style,class");h("web,spinner,switch,video,textarea,canvas,indicator,marquee,countdown",!0),h("embed,img,image,input,link,meta",!0);function Ue(t){return t&&t.$attrs?t.$attrs.mpcomid:"0"}var $e={tap:["tap","click"],touchstart:["touchstart"],touchmove:["touchmove"],touchcancel:["touchcancel"],touchend:["touchend"],longtap:["longtap"],input:["input"],blur:["change","blur"],submit:["submit"],focus:["focus"],scrolltoupper:["scrolltoupper"],scrolltolower:["scrolltolower"],scroll:["scroll"]},Ye={};var Xe=Object.freeze({createElement:function(t,e){return Ye},createElementNS:function(t,e){return Ye},createTextNode:function(t){return Ye},createComment:function(t){return Ye},insertBefore:function(t,e,n){},removeChild:function(t,e){},appendChild:function(t,e){},parentNode:function(t){return Ye},nextSibling:function(t){return Ye},tagName:function(t){return"div"},setTextContent:function(t,e){return Ye},setAttribute:function(t,e,n){return Ye}}),qe={create:function(t,e){Ze(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ze(t,!0),Ze(e))},destroy:function(t){Ze(t,!0)}};function Ze(t,e){var n=t.data.ref;if(n){var i=t.context,r=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?f(o[n],r):o[n]===r&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(r)<0&&o[n].push(r):o[n]=[r]:o[n]=r}}var Ke=new Mt("",{},[]),Je=["create","activate","update","remove","destroy"];function Qe(e,r){return e.key===r.key&&(e.tag===r.tag&&e.isComment===r.isComment&&n(e.data)===n(r.data)&&function(t,e){if("input"!==t.tag)return!0;var i,r=n(i=t.data)&&n(i=i.attrs)&&i.type,o=n(i=e.data)&&n(i=i.attrs)&&i.type;return r===o}(e,r)||i(e.isAsyncPlaceholder)&&e.asyncFactory===r.asyncFactory&&t(r.asyncFactory.error))}function tn(t,e,i){var r,o,a={};for(r=e;r<=i;++r)n(o=t[r].key)&&(a[o]=r);return a}var en=function(e){var o,a,s={},l=e.modules,u=e.nodeOps;for(o=0;o<Je.length;++o)for(s[Je[o]]=[],a=0;a<l.length;++a)n(l[a][Je[o]])&&s[Je[o]].push(l[a][Je[o]]);function c(t){var e=u.parentNode(t);n(e)&&u.removeChild(e,t)}function p(t,e,r,o,a){if(t.isRootInsert=!a,!function(t,e,r,o){var a=t.data;if(n(a)){var l=n(t.componentInstance)&&a.keepAlive;if(n(a=a.hook)&&n(a=a.init)&&a(t,!1,r,o),n(t.componentInstance))return f(t,e),i(l)&&function(t,e,i,r){for(var o,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,n(o=a.data)&&n(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Ke,a);e.push(a);break}d(i,t.elm,r)}(t,e,r,o),!0}}(t,e,r,o)){var l=t.data,c=t.children,h=t.tag;n(h)?(t.elm=t.ns?u.createElementNS(t.ns,h):u.createElement(h,t),m(t),g(t,c,e),n(l)&&y(t,e),d(r,t.elm,o)):i(t.isComment)?(t.elm=u.createComment(t.text),d(r,t.elm,o)):(t.elm=u.createTextNode(t.text),d(r,t.elm,o))}}function f(t,e){n(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(y(t,e),m(t)):(Ze(t),e.push(t))}function d(t,e,i){n(t)&&(n(i)?i.parentNode===t&&u.insertBefore(t,e,i):u.appendChild(t,e))}function g(t,e,n){if(Array.isArray(e))for(var i=0;i<e.length;++i)p(e[i],n,t.elm,null,!0);else r(t.text)&&u.appendChild(t.elm,u.createTextNode(t.text))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return n(t.tag)}function y(t,e){for(var i=0;i<s.create.length;++i)s.create[i](Ke,t);n(o=t.data.hook)&&(n(o.create)&&o.create(Ke,t),n(o.insert)&&e.push(t))}function m(t){for(var e,i=t;i;)n(e=i.context)&&n(e=e.$options._scopeId)&&u.setAttribute(t.elm,e,""),i=i.parent;n(e=Ut)&&e!==t.context&&n(e=e.$options._scopeId)&&u.setAttribute(t.elm,e,"")}function _(t,e,n,i,r,o){for(;i<=r;++i)p(n[i],o,t,e)}function x(t){var e,i,r=t.data;if(n(r))for(n(e=r.hook)&&n(e=e.destroy)&&e(t),e=0;e<s.destroy.length;++e)s.destroy[e](t);if(n(e=t.children))for(i=0;i<t.children.length;++i)x(t.children[i])}function w(t,e,i,r){for(;i<=r;++i){var o=e[i];n(o)&&(n(o.tag)?(b(o),x(o)):c(o.elm))}}function b(t,e){if(n(e)||n(t.data)){var i,r=s.remove.length+1;for(n(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&c(t)}return n.listeners=e,n}(t.elm,r),n(i=t.componentInstance)&&n(i=i._vnode)&&n(i.data)&&b(i,e),i=0;i<s.remove.length;++i)s.remove[i](t,e);n(i=t.data.hook)&&n(i=i.remove)?i(t,e):e()}else c(t.elm)}function S(e,r,o,a){if(e!==r){var l=r.elm=e.elm;if(i(e.isAsyncPlaceholder))n(r.asyncFactory.resolved)?M(e.elm,r,o):r.isAsyncPlaceholder=!0;else if(i(r.isStatic)&&i(e.isStatic)&&r.key===e.key&&(i(r.isCloned)||i(r.isOnce)))r.componentInstance=e.componentInstance;else{var c,h=r.data;n(h)&&n(c=h.hook)&&n(c=c.prepatch)&&c(e,r);var f=e.children,d=r.children;if(n(h)&&v(r)){for(c=0;c<s.update.length;++c)s.update[c](e,r);n(c=h.hook)&&n(c=c.update)&&c(e,r)}t(r.text)?n(f)&&n(d)?f!==d&&function(e,i,r,o,a){for(var s,l,c,h=0,f=0,d=i.length-1,g=i[0],v=i[d],y=r.length-1,m=r[0],x=r[y],b=!a;h<=d&&f<=y;)t(g)?g=i[++h]:t(v)?v=i[--d]:Qe(g,m)?(S(g,m,o),g=i[++h],m=r[++f]):Qe(v,x)?(S(v,x,o),v=i[--d],x=r[--y]):Qe(g,x)?(S(g,x,o),b&&u.insertBefore(e,g.elm,u.nextSibling(v.elm)),g=i[++h],x=r[--y]):Qe(v,m)?(S(v,m,o),b&&u.insertBefore(e,v.elm,g.elm),v=i[--d],m=r[++f]):(t(s)&&(s=tn(i,h,d)),t(l=n(m.key)?s[m.key]:null)?(p(m,o,e,g.elm),m=r[++f]):Qe(c=i[l],m)?(S(c,m,o),i[l]=void 0,b&&u.insertBefore(e,c.elm,g.elm),m=r[++f]):(p(m,o,e,g.elm),m=r[++f]));h>d?_(e,t(r[y+1])?null:r[y+1].elm,r,f,y,o):f>y&&w(0,i,h,d)}(l,f,d,o,a):n(d)?(n(e.text)&&u.setTextContent(l,""),_(l,null,d,0,d.length-1,o)):n(f)?w(0,f,0,f.length-1):n(e.text)&&u.setTextContent(l,""):e.text!==r.text&&u.setTextContent(l,r.text),n(h)&&n(c=h.hook)&&n(c=c.postpatch)&&c(e,r)}}}function T(t,e,r){if(i(r)&&n(t.parent))t.parent.data.pendingInsert=e;else for(var o=0;o<e.length;++o)e[o].data.hook.insert(e[o])}var C=h("attrs,style,class,staticClass,staticStyle,key");function M(t,e,r){if(i(e.isComment)&&n(e.asyncFactory))return e.elm=t,e.isAsyncPlaceholder=!0,!0;e.elm=t;var a=e.tag,s=e.data,l=e.children;if(n(s)&&(n(o=s.hook)&&n(o=o.init)&&o(e,!0),n(o=e.componentInstance)))return f(e,r),!0;if(n(a)){if(n(l))if(t.hasChildNodes()){for(var u=!0,c=t.firstChild,h=0;h<l.length;h++){if(!c||!M(c,l[h],r)){u=!1;break}c=c.nextSibling}if(!u||c)return!1}else g(e,l,r);if(n(s))for(var p in s)if(!C(p)){y(e,r);break}}else t.data!==e.text&&(t.data=e.text);return!0}return function(e,r,o,a,l,c){if(!t(r)){var h=!1,f=[];if(t(e))h=!0,p(r,f,l,c);else{var d=n(e.nodeType);if(!d&&Qe(e,r))S(e,r,f,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(O)&&(e.removeAttribute(O),o=!0),i(o)&&M(e,r,f))return T(r,f,!0),e;e=function(t){return new Mt(u.tagName(t).toLowerCase(),{},[],void 0,t)}(e)}var g=e.elm,y=u.parentNode(g);if(p(r,f,g._leaveCb?null:y,u.nextSibling(g)),n(r.parent)){for(var m=r.parent;m;)m.elm=r.elm,m=m.parent;if(v(r))for(var _=0;_<s.create.length;++_)s.create[_](Ke,r.parent)}n(y)?w(0,[e],0,0):n(e.tag)&&x(e)}}return T(r,f,h),r.elm}n(e)&&x(e)}}({nodeOps:Xe,modules:[qe]});function nn(t,e,n){var i,r=t.$options[e];if("onError"===e&&r?r=[r]:"onPageNotFound"===e&&r&&(r=[r]),r)for(var o=0,a=r.length;o<a;o++)try{i=r[o].call(t,n)}catch(n){H(n,t,e+" hook")}return t._hasHookEvent&&t.$emit("hook:"+e),t.$children.length&&t.$children.forEach(function(t){return nn(t,e,n)}),i}function rn(t,e,n){if(t){var i,r,o;if(Array.isArray(t))for(i=t.length;i--;)"string"==typeof(r=t[i])&&(e[o=m(r)]={type:null});else if(s(t))for(var a in t)r=t[a],e[o=m(a)]=s(r)?r:{type:r};for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u.default&&(u.value=u.default);var c=u.observer;u.observer=function(t,e){n[o]=t,"function"==typeof c&&c.call(n,t,e)}}return e}}var on=0;var an="_";function sn(t,e,n,i,r){try{var o=function t(e,n){if(e.length>1){var i=n[e.splice(0,1)];return i?t(e,i):null}return n[e[0]]?n[e[0]]:null}(t.split("."),n.$root.$mp.page.data);if(null===o||JSON.stringify(o)!==JSON.stringify(e)||r)i[t]=e;else Object.keys(o).forEach(function(n){var r=Object.getOwnPropertyDescriptor(o,n);r.get||r.set||(i[t+"."+n]=e[n])})}catch(i){console.log(i,t,e,n)}}function ln(t,e,n,i,r,o){try{if(n instanceof Array)sn(t+"."+e,n,o,i,!0);else{var a={};n.__keyPath&&!n.__newReference?(a=n.__keyPath,Object.keys(n).forEach(function(r){if(n[r]instanceof Object){if("__keyPath"===r)return;ln(t+"."+e,r,n[r],i,null,o)}else!0===a[r]&&(e?i[t+"."+e+"."+r]=n[r]:i[t+"."+r]=n[r])}),o.__mpKeyPath=o.__mpKeyPath||{},o.__mpKeyPath[n.__ob__.dep.id]=n):sn(t+"."+e,n,o,i),B(n,"__newReference",!1,!1)}}catch(r){console.log(r,t,e,n,i)}}function un(t,e){var n=t._data||{},i=t._props||{},r="";r=t.$attrs?function t(e,n){return e.$parent.$attrs?(n=e.$parent.$attrs.mpcomid+an+n,t(e.$parent,n)):n="$root.0"+an+n}(t,t.$attrs.mpcomid):"$root.0",Re.nextTick(function(){!function(t){t.__mpKeyPath&&Object.keys(t.__mpKeyPath).forEach(function(e){delete t.__mpKeyPath[e].__keyPath})}(t)});var o=n.__keyPath||t.__keyPath||{};if(delete t.__keyPath,delete n.__keyPath,delete i.__keyPath,"done"===t._mpValueSet){Object.keys(n).forEach(function(i){n[i]instanceof Object?ln(r,i,n[i],e,t._mpValueSet,t):void 0!==n[i]&&!0===o[i]&&(e[r+"."+i]=n[i])}),Object.keys(i).forEach(function(n){i[n]instanceof Object?ln(r,n,i[n],e,t._mpValueSet,t):void 0!==i[n]&&(e[r+"."+n]=i[n])});var a=t._mpProps||{},s=t._computedWatchers||{};Object.keys(a).forEach(function(n){e[r+"."+n]=t[n]}),Object.keys(s).forEach(function(n){e[r+"."+n]=t[n]}),delete e[r]}void 0===t._mpValueSet&&(t._mpValueSet="done"),Re.config._mpTrace&&function(t){t=JSON.stringify(t),Re._mpvueTraceTimer?Re._mpvueTraceTimer&&(t=t.replace(/[^\u0000-\u00ff]/g,"aa"),on+=t.length):Re._mpvueTraceTimer=setTimeout(function(){clearTimeout(Re._mpvueTraceTimer),on=(on/1024).toFixed(1),console.log("这次操作引发500ms内数据更新量:"+on+"kb"),Re._mpvueTraceTimer=0,on=0},500)}(e)}var cn="_";function hn(t){var e=function t(e,n){void 0===n&&(n=[]);var i=(e||{}).$parent;return i?(n.unshift(Ue(i)),i.$parent?t(i,n):n):n}(t).join(cn),n=e+(e?cn:"")+Ue(t),i=Object.assign(function(t){return[].concat(Object.keys(t._data||{}),Object.keys(t._props||{}),Object.keys(t._mpProps||{}),Object.keys(t._computedWatchers||{})).reduce(function(e,n){return e[n]=t[n],e},{})}(t),{$k:n,$kk:""+n+cn,$p:e}),r={};return r["$root."+n]=i,r}var pn=function(t,e,n){var i,r,o,a=null,s=0;function l(){s=!1===n.leading?0:Date.now(),a=null,o=t.apply(i,r),a||(i=r=null)}return n||(n={}),function(u,c){var h=Date.now();s||!1!==n.leading||(s=h);var p=e-(h-s);return i=this,r=r?[u,Object.assign(r[1],c)]:[u,c],p<=0||p>e?(clearTimeout(a),a=null,s=h,o=t.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,p)),o}}(function(t,e){t(e)},50);function fn(t){var e=t.$root.$mp||{},n=e.mpType;void 0===n&&(n="");var i=e.page;if("app"!==n&&i&&"function"==typeof i.setData)return i}function dn(t,e){return!(!t||!e)&&(e===t||0===e.indexOf(t+gn))}var gn="_";return Re.config.mustUseProp=function(){},Re.config.isReservedTag=je,Re.config.isReservedAttr=We,Re.config.getTagNamespace=function(){},Re.config.isUnknownElement=function(){},Re.prototype.__patch__=function(){en.apply(this,arguments),this.$updateDataToMP()},Re.prototype.$mount=function(t,e){var n=this,i=this.$options;if(i&&(i.render||i.mpType)){var r=i.mpType;return void 0===r&&(r="page"),this._initMP(r,function(){return $t(n,void 0,void 0)})}return $t(this,void 0,void 0)},Re.prototype._initMP=function(t,n){var i=this.$root;i.$mp||(i.$mp={});var r=i.$mp;if(r.status)return"app"===t?nn(this,"onLaunch",r.appOptions):(nn(this,"onLoad",r.query),nn(this,"onReady")),n();if(r.mpType=t,r.status="register","app"===t)e.App({globalData:{appOptions:{}},handleProxy:function(t){return i.$handleProxyWithVue(t)},onLaunch:function(t){void 0===t&&(t={}),r.app=this,r.status="launch",this.globalData.appOptions=r.appOptions=t,nn(i,"onLaunch",t),n()},onShow:function(t){void 0===t&&(t={}),r.status="show",this.globalData.appOptions=r.appOptions=t,nn(i,"onShow",t)},onHide:function(){r.status="hide",nn(i,"onHide")},onError:function(t){nn(i,"onError",t)},onPageNotFound:function(t){nn(i,"onPageNotFound",t)}});else if("component"===t)!function(t){var e=t._mpProps={};Object.keys(t.$options.properties||{}).forEach(function(n){n in t||(se(t,"_mpProps",n),e[n]=void 0)}),ht(e,!0)}(i),e.Component({properties:function(t){var e=t.$options.properties,n=t.$options.props,i={};return rn(e,i,t),rn(n,i,t),i}(i),data:{$root:{}},methods:{handleProxy:function(t){return i.$handleProxyWithVue(t)}},created:function(){r.status="created",r.page=this},attached:function(){r.status="attached",nn(i,"attached")},ready:function(){r.status="ready",nn(i,"ready"),n(),i.$nextTick(function(){i._initDataToMP()})},moved:function(){nn(i,"moved")},detached:function(){r.status="detached",nn(i,"detached")}});else{var o=e.getApp();e.Page({data:{$root:{}},handleProxy:function(t){return i.$handleProxyWithVue(t)},onLoad:function(t){r.page=this,r.query=t,r.status="load",function(t,e){var n=e.$mp;t&&t.globalData&&(n.appOptions=t.globalData.appOptions)}(o,i),nn(i,"onLoad",t)},onShow:function(){r.page=this,r.status="show",nn(i,"onShow"),i.$nextTick(function(){i._initDataToMP()})},onReady:function(){r.status="ready",nn(i,"onReady"),n()},onHide:function(){r.status="hide",nn(i,"onHide"),r.page=null},onUnload:function(){r.status="unload",nn(i,"onUnload"),r.page=null},onPullDownRefresh:function(){nn(i,"onPullDownRefresh")},onReachBottom:function(){nn(i,"onReachBottom")},onShareAppMessage:i.$options.onShareAppMessage?function(t){return nn(i,"onShareAppMessage",t)}:null,onPageScroll:function(t){nn(i,"onPageScroll",t)},onTabItemTap:function(t){nn(i,"onTabItemTap",t)}})}},Re.prototype.$updateDataToMP=function(){var t=fn(this);if(t){var e=hn(this);un(this,e),pn(t.setData.bind(t),e)}},Re.prototype._initDataToMP=function(){var t=fn(this);if(t){var e=function t(e,n){void 0===n&&(n={});var i=e.$children;return i&&i.length&&i.forEach(function(e){return t(e,n)}),Object.assign(n,hn(e))}(this.$root);t.setData(e)}},Re.prototype.$handleProxyWithVue=function(t){var e=this.$root,n=t.type,i=t.target;void 0===i&&(i={});var r=(t.currentTarget||i).dataset;void 0===r&&(r={});var o=r.comkey;void 0===o&&(o="");var a=r.eventid,s=function(t,e){void 0===e&&(e=[]);var n=e.slice(1);if(!n.length)return t;var i=n.join(gn),r="";return n.reduce(function(t,e){for(var n=t.$children.length,o=0;o<n;o++){var a=t.$children[o],s=Ue(a);if(r&&(s=r+gn+s),dn(s,i))return r=s,t=a}return t},t)}(e,o.split(gn));if(s){var l=$e[n]||[n],u=function t(e,n,i){void 0===i&&(i=[]);var r=[];if(!e||!e.tag)return r;var o=e||{},a=o.data;void 0===a&&(a={});var s=o.children;void 0===s&&(s=[]);var l=o.componentInstance;l?Object.keys(l.$slots).forEach(function(e){var o=l.$slots[e];(Array.isArray(o)?o:[o]).forEach(function(e){r=r.concat(t(e,n,i))})}):s.forEach(function(e){r=r.concat(t(e,n,i))});var u=a.attrs,c=a.on;return u&&c&&u.eventid===n?(i.forEach(function(t){var e=c[t];"function"==typeof e?r.push(e):Array.isArray(e)&&(r=r.concat(e))}),r):r}(s._vnode,a,l);if(u.length){var c=function(t){var e=t.type,n=t.timeStamp,i=t.touches,r=t.detail;void 0===r&&(r={});var o=t.target;void 0===o&&(o={});var a=t.currentTarget;void 0===a&&(a={});var s={mp:t,type:e,timeStamp:n,x:r.x,y:r.y,target:Object.assign({},o,r),currentTarget:a,stopPropagation:C,preventDefault:C};return i&&i.length&&(Object.assign(s,i[0]),s.touches=i),s}(t);if(1===u.length)return u[0](c);u.forEach(function(t){return t(c)})}}},Re})}).call(e,n("DuR2"))},"77Pl":function(t,e,n){var i=n("EqjI");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},"7KvD":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)},A1Ag:function(t,e){},B0CS:function(t,e,n){"use strict";var i=n("ptEO"),r=n("HsYc");var o=function(t){n("A1Ag")},a=n("ybqe")(i.a,r.a,o,"data-v-16e049c6",null);e.a=a.exports},Bgtx:function(t,e,n){"use strict";var i=n("wOfB"),r=n("XOGh"),o=n("wW6q"),a=n("cZVI"),s=(n("RVip"),!1),l=!0,u="00",c="",h=i.a.getters.getIsNew(),p=["6e400001-b5a3-f393-e0a9-e50e24dcca9e".toUpperCase(),"0000fff0-0000-1000-8000-00805f9b34fb".toUpperCase()],f=[{notify:"6e400003-b5a3-f393-e0a9-e50e24dcca9e".toUpperCase(),write:"6e400002-b5a3-f393-e0a9-e50e24dcca9e".toUpperCase()},{notify:"0000fff1-0000-1000-8000-00805f9b34fb".toUpperCase(),write:"0000fff2-0000-1000-8000-00805f9b34fb".toUpperCase()}];function d(){var t=i.a.getters.getDeviceId(),e=i.a.getters.getServiceId();p.indexOf(e.toUpperCase());return{deviceId:t,service:"6e400001-b5a3-f393-e0a9-e50e24dcca9e".toUpperCase(),charateristic:f[0]}}var g=void 0;e.a={sendOpenBigData:function(){this.SendOrder("ff")},sendCloseBigData:function(){this.SendOrder("00")},sendGetToyType:function(){this.SendOrder("06")},sendControl:function(){this.SendOrder("07"),wx.showLoading({title:"正在启动"})},sendControlClose:function(){var t=this;s=!1,g=setInterval(function(){s?(!1,clearInterval($intv),t.clearLocalDatas()):(t.SendOrder("09"),h||t.sendConnectOneToMore("00"))},1e3)},sendConnectOneToMore:function(t){this.WriteBufferInBle("03 00 "+t+" 00 0A")},sendConnectOneToOne:function(t){u=t,this.WriteBufferInBle("03 00 "+t+" 01 0A")},sendToyPower:function(){var t=this;if(h)var e=setInterval(function(){var n=i.a.getters.getGameStatus();l?t.SendOrder("8a"):1!=n&&clearInterval(e)},3e3);else console.log("旧脑机不支持获取教具电量")},get_big_data:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(t.substr(n,2));if("555520"!=t.substr(0,6))return!1;if("00"!==e[4])return!1;var i=parseInt(e[6],16),r=parseInt(e[8],16),o=0,a=["delta","theta","low_alpha","high_alpha","low_beta","high_beta","low_gamma","middle_gamma"],s=[];e.pop();for(var l=11;l<e.length;l+=3){var u=parseInt(e[l],16)+parseInt(e[l+1],16)+parseInt(e[l+2],16),c=parseInt("0x"+e[l]<<16|"0x"+e[l+1]<<8|"0x"+e[l+2],16);s[a[o]]=u,s[a[o]+"_basic"]=c,o+=1}return s.att=i,s.med=r,s},get_device_elc:function(t){return"55550203"==t.substr(0,8)&&parseInt("0x"+t.substr(8,2))},watch_bluetooth_status:function(t){var e=this;wx.onBLEConnectionStateChange(function(n){(r.a.setters.setBluetoothLinkStatus(n.connected),Object(a.a)(e.getNowTime()+" 监听脑机断连"),0==n.connected)&&(1==i.a.getters.getGameStatus()?(Object(o.a)({type:"danger",duration:0,message:"智脑机已断开连接,正在尝试重新连接",onOpened:function(){e.reconnect(n.deviceId,t)}}),s=!0):(l=!1,i.a.setters.setGameStatus(0),i.a.setters.clearDeviceToy(),t.connect_toy=0,t.connect_show=!1,t.device_bg=!1,t.change_toy_connect_status(0),t.device_status=0,t.device={},t.toy_UUID="",t.$forceUpdate(),wx.closeBluetoothAdapter(),""))})},reconnect:function(t,e){var n=this,r=d(),s=0,l=setInterval(function(){1==i.a.getters.getGameStatus()?(wx.createBLEConnection({deviceId:r.deviceId,success:function(t){clearInterval(l),Object(o.a)({type:"success",message:"第"+s+"次重新连接成功"}),Object(a.a)(n.getNowTime()+" 第"+s+"次重新连接成功"),"ios"==wx.getSystemInfoSync().platform?(n.getBLEDeviceServices(r.deviceId),n.watchingDevice(e)):(n.openNotify(e),n.watch_bluetooth_status(e))},fail:function(t){Object(o.a)({type:"danger",message:"第"+s+"次重新连接失败"}),i.a.setters.setGameCloseStatus(1)}}),s>=3&&(e.game_finished(),clearInterval(l)),s+=1):clearInterval(l)},7e3)},getBLEDeviceServices:function(t){var e=this;t,wx.getBLEDeviceServices({deviceId:t,success:function(n){for(var r=0;r<n.services.length;r++)if(console.log("serviceItem:"+n.services[r].uuid),-1!=n.services[r].uuid.indexOf("6E")||-1!=n.services[r].uuid.indexOf("0000FFF0"))return console.log("SelectedServiceItem:"+n.services[r].uuid),e.getBLEDeviceCharacteristics(t,n.services[r].uuid),i.a.setters.setServiceId(n.services[r].uuid),void(h=i.a.getters.getIsNew())},fail:function(t){var e=wx.getStorageSync("deviceId");wx.closeBLEConnection({deviceId:e})}})},getBLEDeviceCharacteristics:function(t,e){console.log(t,e);var n=this;wx.getBLEDeviceCharacteristics({deviceId:t,serviceId:e,success:function(i){console.log("getBLEDeviceCharacteristics success",i.characteristics);for(var r=0;r<i.characteristics.length;r++){var o=i.characteristics[r];(-1!=e.indexOf("0001")?o.properties.write&&-1!=o.uuid.indexOf("0002"):o.properties.write)&&(n.deviceId=t,n.serviceId=e,n.cid=o.uuid,n.sendOpenBigData()),(o.properties.notify||o.properties.indicate)&&wx.notifyBLECharacteristicValueChange({deviceId:t,serviceId:e,characteristicId:o.uuid,state:!0})}},fail:function(t){var e=wx.getStorageSync("deviceId");wx.closeBLEConnection({deviceId:e})}})},openNotify:function(t){var e=this,n=d();console.log(n),wx.notifyBLECharacteristicValueChange({deviceId:n.deviceId,serviceId:n.service,characteristicId:n.charateristic.notify,state:!0,success:function(){e.watchingDevice(t)}})},ab2hex:function(t){return Array.prototype.map.call(new Uint8Array(t),function(t){return("00"+t.toString(16)).slice(-2)}).join("")},watchingDevice:function(t){var e=this,n=i.a.getters.getDeviceId();wx.onBLECharacteristicValueChange(function(p){wx.getBLEDeviceRSSI({deviceId:n,success:function(e){1==i.a.getters.getGameStatus()&&(t.rssi=e.RSSI)}});var f=e.ab2hex(p.value);if(-1!=f.toUpperCase().indexOf("AADD")||(f.toUpperCase().indexOf("AAEE"),0)){Math.round(new Date/1e3);console.log("应答",f,"时间:"+e.getNowTime(),"长度",f.length/2),Object(a.a)(e.getNowTime()+" 应答:"+f)}var d=e.get_big_data(f),v=i.a.getters.getGameStatus();if(-1!=f.toUpperCase().indexOf("AAEE70")&&(l=!1,wx.showModal({content:"教具已断开",success:function(e){e.confirm&&1==v&&t.game_finished()}})),-1!=f.toUpperCase().indexOf("AAEE8A0000005A")&&e.SendOrder("8a"),-1!=f.toUpperCase().indexOf("AAEE07")&&e.sendControl(),-1!=f.toUpperCase().indexOf("AADD0A")){if(-1!=f.toUpperCase().indexOf("AADD0A0000"))return h&&t.change_toy_connect_status(3),!1;var y=f.toUpperCase().indexOf("AADD0A"),m=f.substr(y+28,2),_=f.substr(y+8,2);console.log("连接",m),console.log("教具",_),1==new RegExp("00").test(m)&&(h?(e.sendConnectOneToOne(_),t.current_hex="03 00 "+_+" 01 0A",console.log("一对多")):(t.current_hex="",wx.showToast({title:"已连接到"+t.toy_item.name}),t.toy_connected=!0,t.change_toy_connect_status(2))),1==new RegExp("01").test(m)&&(console.log("一对一"),t.current_hex="",wx.showToast({title:"已连接到"+t.toy_item.name}),t.toy_connected=!0,l=!0,t.change_toy_connect_status(2),80!=_&&(setTimeout(function(){e.SendOrder("87")},3e3),setTimeout(function(){e.sendToyPower()},5e3)))}if(-1!=f.toUpperCase().indexOf("AADD87")){var x=f.substr(f.toUpperCase().indexOf("AADD87")),w=e.DoAnalysis(x,10).match(/\d+/),b={"01":"SW","02":"KL","04":"SC","05":"PP","06":"SU","09":"UF",12:"JM"}[u]+w;t.toy_sn=b}if(-1!=f.toUpperCase().indexOf("AAEE87")&&"80"!=u&&e.SendOrder("87"),-1!=f.toUpperCase().indexOf("AADD8A")){var S=f.substr(f.toUpperCase().indexOf("AADD8A")+6),T=parseInt(S.substr(0,2),16),C=parseInt(S.substr(2,2),16);l=!0,T>0&&(t.toy_power=T,t.toy_voltage=C,T),""==c&&e.SendOrder("84")}if("555520"==f.substr(0,6)){var M=f.substr(8,2);t.device_bg="00"==M}if(-1!=f.toUpperCase().indexOf("AADD84")){var I=f.toUpperCase().indexOf("AADD84")+6,A=f.substr(I,10);"0000000000"!=A&&(console.log("以获取UUID:"+A),c=A,t.toy_UUID=A)}if(-1!=f.toUpperCase().indexOf("AADD09")&&(s=!0,l=!1),-1!=f.toUpperCase().indexOf("AADD8E")&&e.WriteBufferInBle("03 00 "+u+" 02 0A"),-1!=f.toUpperCase().indexOf("AADD07")&&(r.a.setters.setBluetoothLinkStatus(!0),!0),"55550203"==f.substr(0,8)){var k=parseInt(f.substr(8,2),16),D=parseInt(f.substr(10,2),16);t.hasUsb=1==D.toString().substr(0,1),k&&(t.device_power=k,t.device_voltage=D),k<10&&k>0&&wx.showToast({title:"脑机电量不足",icon:"none",duration:2e3,success:function(){}})}if(1==v&&d&&t.do_datas(d),"5555e2"==f.substr(0,6)){var O=e.doOriginBufferToData(f);1==v&&wx.setStorageSync("origin_buffer",wx.getStorageSync("origin_buffer")+O.join(",")+",")}-1!=f.toUpperCase().indexOf("AADD04")&&(!0,e.Send2BOrder(!0),wx.setStorageSync("origin_buffer","")),-1!=f.toUpperCase().indexOf("AADD5A00000000A5")&&Object(o.a)({type:"danger",duration:0,message:"智脑机已关机,训练结束",onOpened:function(){setTimeout(function(){t.game_finished(),clearInterval(g)},2e3)}})})},formatPlaySeconds:function(t){var e=parseInt(t),n=0;e>60&&(n=parseInt(e/60),e=parseInt(e%60));var i=""+parseInt(e);return n>0?(1==i.length&&(i="0"+i),1==parseInt(n).toString().length&&(n="0"+parseInt(n)),i=n+":"+i):i="00:"+i,i},GetopenBluetoothAdapterError:function(t){var e="";return 1e4==t&&(e="未初始化蓝牙适配器"),10001==t&&(e="当前蓝牙适配器不可用"),10002==t&&(e="没有找到指定设备"),10003==t&&(e="连接失败"),10006==t&&(e="当前连接已断开"),e},WriteBufferInBle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=this,i=d(),r=0,o=t.split(" ");o.forEach(function(t,e){r+=parseInt(t,16)});var a=(r^parseInt("ffffffff",16))&parseInt("ff",16);t="aa cc "+t+" "+("00"+a.toString(16)).substr(-2,2);var s=new ArrayBuffer(e),l=new DataView(s);if((o=t.split(" ")).forEach(function(t,e){l.setUint8(e,parseInt(t,16))}),!i.charateristic.write)return!1;wx.writeBLECharacteristicValue({deviceId:i.deviceId,serviceId:i.service,characteristicId:i.charateristic.write,value:s,success:function(i){e<=16?console.log(t+",写入成功,时间:"+n.getNowTime()):console.log("写入成功,时间:"+n.getNowTime())},fail:function(e){console.log(t+"写入失败",e)}})},SendOrder:function(t){var e="03 00 00 00 "+t;this.WriteBufferInBle(e)},Send16Order:function(t,e){var n=t,i=n.split("");n="",i.forEach(function(t,e){n+=t.charCodeAt().toString(16)+" "});var r="03 ff "+(n=n.substr(0,n.length-1))+" "+e;this.WriteBufferInBle(r,16)},DoAnalysis:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6,i=t.substr(n).substr(0,2*e),r="",o=0;o<i.length;o+=2){var a=parseInt(i.substr(o,2),16);r+=String.fromCharCode(a)}return r},clearLocalDatas:function(){s=!1,l=!1,u="00",c=""},CalBLEPower:function(t){return(100*t-3500)/600*100},getNowTime:function(){var t=new Date;return t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()+"."+t.getMilliseconds()},sendAutoConnectRf:function(t,e){var n=t?"01":"00",i=e.toString(16);1==i.length&&(i="0"+i);var r="03 00 "+n+" "+i+" d0";this.WriteBufferInBle(r)},SendOpenRawData:function(){this.SendOrder("04")},Send2BOrder:function(){var t="03 00 00 01 2b";!(arguments.length>0&&void 0!==arguments[0])||arguments[0]||(t="03 00 00 00 2b"),this.WriteBufferInBle(t)},SendCloseRawData:function(){this.SendOrder("05")},doOriginBufferToData:function(t){for(var e=[],n=8;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));for(var i=e.slice(0,e.length-2),r=[],o=0;o<i.length;o+=2){var a=(255&i[o])<<8|255&i[o+1];r.push(this.hex2int(a.toString(16)))}return r},hex2int:function(t){var e=parseInt(t,16).toString(2),n=4*t.length;if(e.length<n)for(;e.length<n;)e="0"+e;if("0"==e.substring(0,1))return e=parseInt(e,2);var i="";return i=(i=(i=(i=(e=(e=parseInt(e,2)-1).toString(2)).substring(1,n)).replace(/0/g,"z")).replace(/1/g,"0")).replace(/z/g,"1"),e=parseInt(-i,2)}}},D2L2:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},DEMB:function(t,e,n){"use strict";e.a="#fff"},Dd8w:function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{default:t}}(n("woOf"));e.default=i.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}},DuR2:function(t,e){var n;n=function(){return"undefined"!=typeof global?global:this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},EqjI:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},FeBl:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},HsYc:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"playing_container"}},[n("div",{staticClass:"game_panel padding-top-sm"},[n("van-row",{attrs:{gutter:"16",mpcomid:"2"}},[n("van-col",{attrs:{span:"8",offset:"2",mpcomid:"0"}},[n("view",{staticClass:"text-sm"},[n("text",{staticClass:"title"},[t._v("本次游玩时间")])]),t._v(" "),n("view",{staticClass:"text-lg padding-top"},[n("text",{staticClass:"count_down_text"},[t._v(t._s(t.played_time_text))])])]),t._v(" "),n("van-col",{attrs:{span:"10",offset:"4",mpcomid:"1"}},[n("view",{staticClass:"text-sm"},[n("text",{staticClass:"title"},[t._v("计费模式")]),t._v(" "),n("text",{staticClass:"type padding-left-sm"},[t._v(t._s(t.mode_item.name))])]),t._v(" "),n("button",{staticClass:"cu-btn bg-red text-white margin-top-sm",attrs:{disabled:t.executed,eventid:"0"},on:{click:t.game_finished}},[n("img",{staticClass:"cut_brain_icon",attrs:{src:"https://img.shuimuai.com/m_duankainaohuan.png",alt:""}}),t._v(" "),n("text",{staticClass:"padding-lr cut_text text-sm"},[t._v("结束训练")])])],1)],1)],1),t._v(" "),n("div",{staticClass:"game_status padding-tb"},[n("van-row",{attrs:{mpcomid:"7"}},[n("van-col",{attrs:{span:"8",mpcomid:"3"}},[t.device_bg?n("div",{staticClass:"flex flex-direction align-center justify-center"},[n("img",{staticClass:"device_img",attrs:{src:"https://img.shuimuai.com/web/touhuanzhuangtai_2.png",alt:""}}),t._v(" "),n("text",{staticClass:"text-default"},[t._v("已经正确佩戴")])]):n("div",{staticClass:"flex flex-direction align-center justify-center"},[n("img",{staticClass:"device_img",attrs:{src:"https://img.shuimuai.com/web/touhuanzhuangtai_3.png",alt:""}}),t._v(" "),n("text",{staticClass:"text-default"},[t._v("未正确佩戴")])])]),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"4"}},[n("div",{staticClass:"flex flex-direction align-center justify-center"},[n("view",{staticClass:"elc_power_container"},[n("img",{staticClass:"device_elc",style:{width:t.device_power+"%"},attrs:{src:"https://img.shuimuai.com/web/dianchi_3.png",alt:""}})]),t._v(" "),n("text",{staticClass:"text-default"},[t._v("脑机电量")])])]),t._v(" "),t.is_new?n("van-col",{attrs:{span:"8",mpcomid:"5"}},[n("div",{staticClass:"flex flex-direction align-center justify-center"},[n("view",{staticClass:"elc_power_container"},[n("img",{staticClass:"device_elc",style:{width:t.toy_power+"%"},attrs:{src:"https://img.shuimuai.com/web/dianchi_3.png",alt:""}})]),t._v(" "),n("text",{staticClass:"text-default"},[t._v("教具电量")])])]):t._e(),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"6"}},[n("div",{staticClass:"flex flex-direction align-center justify-center"},[n("text",{staticStyle:{color:"white"}},[t._v(t._s(t.rssi)+"dBm")]),t._v(" "),n("text",{staticClass:"text-default"},[t._v("脑机信号值")])])])],1)],1),t._v(" "),n("div",{staticClass:"circle_container"},[n("van-circle",{attrs:{value:t.online_att,"layer-color":"#49465E",color:"#FFB400","stroke-width":"7",speed:0,mpcomid:"8"}},[n("view",{staticClass:"circle_text"},[n("text",{staticClass:"online_att_txt"},[t._v("\n "+t._s(t.online_att)+"\n ")]),t._v(" "),n("view",{staticClass:"online_desc"},[t._v("\n "+t._s(t.online_att_desc)+"\n ")])])]),t._v(" "),n("van-circle",{attrs:{value:t.online_med,"layer-color":"#49465E",color:"#40FF31","stroke-width":"7",speed:0,mpcomid:"9"}},[n("view",{staticClass:"circle_text"},[n("text",{staticClass:"online_med_txt"},[t._v("\n "+t._s(t.online_med)+"\n ")]),t._v(" "),n("view",{staticClass:"online_desc"},[t._v("\n "+t._s(t.online_med_desc)+"\n ")])])])],1),t._v(" "),n("div",{staticClass:"ec_container"},[n("view",{staticClass:"chart_view_first margin-tb-xl"},[t._m(0),t._v(" "),n("view",{staticClass:"chart"},[n("mpvue-echarts",{attrs:{echarts:t.echarts,onInit:t.attCharts,canvasId:"canvasId-demo1",mpcomid:"10"}})],1)]),t._v(" "),n("view",{staticClass:"chart_view_second margin-tb-xl"},[n("view",{staticClass:"bar"},[t._m(1),t._v(" "),n("view",{staticClass:"label"},[n("van-row",{attrs:{mpcomid:"17"}},[n("van-col",{attrs:{span:"8",mpcomid:"11"}},[n("view",[n("view",{staticClass:"dot dot-delta"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Delta")])])]),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"12"}},[n("view",[n("view",{staticClass:"dot dot-theta"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Theta")])])]),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"13"}},[n("view",[n("view",{staticClass:"dot dot-low-beta"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Low_Beta")])])]),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"14"}},[n("view",[n("view",{staticClass:"dot dot-high-beta"}),t._v(" "),n("view",{staticClass:"name"},[t._v("High_Beta")])])]),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"15"}},[n("view",[n("view",{staticClass:"dot dot-low-alpha"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Low_Alpha")])])]),t._v(" "),n("van-col",{attrs:{span:"8",mpcomid:"16"}},[n("view",[n("view",{staticClass:"dot dot-high-alpah"}),t._v(" "),n("view",{staticClass:"name"},[t._v("High_Alpha")])])])],1)],1)]),t._v(" "),n("view",{staticClass:"chart"},[n("mpvue-echarts",{attrs:{echarts:t.echarts,onInit:t.medCharts,canvasId:"canvasId-demo2",mpcomid:"18"}})],1)])]),t._v(" "),n("van-dialog",{attrs:{id:"van-dialog",mpcomid:"19"}}),t._v(" "),n("van-toast",{attrs:{id:"van-toast",mpcomid:"20"}}),t._v(" "),n("van-notify",{attrs:{id:"van-notify",mpcomid:"21"}})],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:"bar"},[n("view",[n("view",{staticClass:"line"}),t._v(" "),n("view",{staticClass:"title"},[t._v("大脑状态")])]),t._v(" "),n("view",{staticClass:"label"},[n("view",[n("view",{staticClass:"dot dot-orange"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Att(专注度)")])]),t._v(" "),n("view",[n("view",{staticClass:"dot dot-med"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Med(放松度)")])]),t._v(" "),n("view",[n("view",{staticClass:"dot dot-amp"}),t._v(" "),n("view",{staticClass:"name"},[t._v("Amp (和谐度)")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("view",[e("view",{staticClass:"line"}),this._v(" "),e("view",{staticClass:"title"},[this._v("基本脑波")])])}]};e.a=i},Ibhu:function(t,e,n){var i=n("D2L2"),r=n("TcQ7"),o=n("vFc/")(!1),a=n("ax3d")("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}},IcnI:function(t,e,n){"use strict";var i={set_token:function(t){wx.setStorageSync("token",t)},set_login:function(){wx.setStorageSync("is_login",!0)},set_invite_code:function(t){wx.setStorageSync("code",t)},set_userinfo:function(t){wx.setStorageSync("userinfo",t)},setJsCode:function(t){wx.setStorageSync("js_code",t)}},r={get_token:function(){return wx.getStorageSync("token")},get_login_status:function(){return wx.getStorageSync("is_login")},get_userinfo:function(){return wx.getStorageSync("userinfo")},get_invite_code:function(){return wx.getStorageSync("code")},getJsCode:function(){return wx.getStorageSync("js_code")}};e.a={setters:i,getters:r}},LOoJ:function(t,e,n){"use strict";e.a=function(t){wx.showLoading({title:"加载中",mask:!0}),setTimeout(function(){wx.hideLoading()},4e3);var e=[1001,1002,1011,1012,1021,1031];Object(i.j)().then(function(n){var s=n.data.data.validity_time;console.log("有效时间:"+s);var l=n.data;-1!=e.indexOf(l.code)&&a(t),t.userinfo=l.data,wx.setStorageSync("phone",t.userinfo.phone),t.userinfo.birthday=Object(r.c)(t.userinfo.birthday),t.userinfo.validity_time_formatted=Object(r.e)(t.userinfo.validity_time);var u=Object(i.c)();11==t.userinfo.level&&u>t.userinfo.validity_time?(t.userinfo.isActive=!1,t.userinfo.isntActive=!0):(t.userinfo.isActive=!0,t.userinfo.isntActive=!1),t.userinfo.free_time=Object(r.d)(t.userinfo.free_time),o.a.setters.set_invite_code(t.userinfo.invite_id),t.invite_code=wx.getStorageSync("code")?wx.getStorageSync("code"):t.userinfo.invite_id,o.a.setters.set_userinfo(t.userinfo),wx.stopPullDownRefresh(),wx.hideLoading()}).catch(function(t){wx.showToast({title:"获取用户信息失败",icon:"none",mask:!0})})};var i=n("5S+K"),r=n("0xDb"),o=n("IcnI");function a(t){t.is_login=!1,wx.showToast({title:"用户信息过期,请重新登录",icon:"none",mask:!0,success:function(){wx.clearStorageSync(),wx.setStorageSync("is_login",!1),global.mpvue.reLaunch({url:"/pages/index/main"});try{t.change_login_status()}catch(t){console.log(t)}}})}},MU5D:function(t,e,n){var i=n("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},MmMw:function(t,e,n){var i=n("EqjI");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")}},NpIQ:function(t,e){e.f={}.propertyIsEnumerable},O4g8:function(t,e){t.exports=!0},ON07:function(t,e,n){var i=n("EqjI"),r=n("7KvD").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},OTXi:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.canvasId?n("canvas",{staticClass:"ec-canvas",attrs:{id:t.canvasId,canvasId:t.canvasId,eventid:"0"},on:{touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd,error:t.error}}):t._e()},staticRenderFns:[]};e.a=i},PWH5:function(t,e,n){"use strict";var i=n("Dd8w"),r=n.n(i),o=n("RbY2");function a(t){for(var e=0;e<t.mp.touches.length;e+=1){var n=t.mp.touches[e];n.offsetX=n.x,n.offsetY=n.y}return t}e.a={props:{echarts:{required:!0,type:Object,default:function(){return null}},onInit:{type:Function,default:null},canvasId:{type:String,default:"ec-canvas"},lazyLoad:{type:Boolean,default:!1},disableTouch:{type:Boolean,default:!1},throttleTouch:{type:Boolean,default:!1}},onReady:function(){this.echarts?this.lazyLoad||this.init():console.warn('组件需绑定 echarts 变量,例:<ec-canvas id="mychart-dom-bar" canvas-id="mychart-bar" :echarts="echarts"></ec-canvas>')},methods:{init:function(t){var e=this,n=wx.version.version.split(".").map(function(t){return parseInt(t,10)});if(n[0]>1||1===n[0]&&n[1]>9||1===n[0]&&9===n[1]&&n[2]>=91){var i=this.canvasId;this.ctx=wx.createCanvasContext(i);var r=new o.a(this.ctx,i);this.echarts.setCanvasCreator(function(){return r}),wx.createSelectorQuery().select("#"+i).boundingClientRect(function(n){if(n){var i=n.width,o=n.height;if("function"==typeof t?e.chart=t(r,i,o):"function"==typeof e.onInit&&(e.chart=e.onInit(r,i,o)),e.chart){var a=e.chart.getZr().handler;e.handler=a,e.processGesture=a.proxy.processGesture||function(){}}}else setTimeout(function(){return e.init()},50)}).exec()}else console.error("微信基础库版本过低,需大于等于 1.9.91。参见:https://github.com/ecomfe/echarts-for-weixin#%E5%BE%AE%E4%BF%A1%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82")},canvasToTempFilePath:function(t){var e=this.canvasId;this.ctx.draw(!0,function(){wx.canvasToTempFilePath(r()({canvasId:e},t))})},touchStart:function(t){var e=this.disableTouch,n=this.chart;if(!e&&n&&t.mp.touches.length){var i=t.mp.touches[0];this.handler.dispatch("mousedown",{zrX:i.x,zrY:i.y}),this.handler.dispatch("mousemove",{zrX:i.x,zrY:i.y}),this.processGesture(a(t),"start")}},touchMove:function(t){var e=this.disableTouch,n=this.throttleTouch,i=this.chart,r=this.lastMoveTime;if(!e&&i&&t.mp.touches.length){if(n){var o=Date.now();if(o-r<240)return;this.lastMoveTime=o}var s=t.mp.touches[0];this.handler.dispatch("mousemove",{zrX:s.x,zrY:s.y}),this.processGesture(a(t),"change")}},touchEnd:function(t){var e=this.disableTouch,n=this.chart;if(!e&&n){var i=t.mp.changedTouches?t.mp.changedTouches[0]:{};this.handler.dispatch("mouseup",{zrX:i.x,zrY:i.y}),this.handler.dispatch("click",{zrX:i.x,zrY:i.y}),this.processGesture(a(t),"end")}}}}},QRG4:function(t,e,n){var i=n("UuGF"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},R4wc:function(t,e,n){var i=n("kM2E");i(i.S+i.F,"Object",{assign:n("To3L")})},R9M2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},RVip:function(t,e,n){"use strict";e.e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.access_token=wx.getStorageSync("token"),i.a.post("game/device-list",t)},e.d=function(t){return i.a.post("game/game-start",t)},e.b=function(t){return t.access_token=wx.getStorageSync("token"),i.a.post("game/game-over",t)},e.a=function(t){return t.access_token=wx.getStorageSync("token"),i.a.post("game/add-line",t)},e.c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.access_token=wx.getStorageSync("token"),i.a.post("game/game-list",t)};var i=n("0qyJ")},RbY2:function(t,e,n){"use strict";class i{constructor(t,e){this.ctx=t,this.canvasId=e,this.chart=null,i.initStyle(t),this.initEvent()}getContext(t){return"2d"===t?this.ctx:null}setChart(t){this.chart=t}attachEvent(){}detachEvent(){}static initStyle(t){["fillStyle","strokeStyle","globalAlpha","textAlign","textBaseAlign","shadow","lineWidth","lineCap","lineJoin","lineDash","miterLimit","fontSize"].forEach(e=>{Object.defineProperty(t,e,{set:n=>{("fillStyle"!==e&&"strokeStyle"!==e||"none"!==n&&null!==n)&&t[`set${e.charAt(0).toUpperCase()}${e.slice(1)}`](n)}})}),t.createRadialGradient=(()=>t.createCircularGradient(arguments))}initEvent(){this.event={};[{wxName:"touchStart",ecName:"mousedown"},{wxName:"touchMove",ecName:"mousemove"},{wxName:"touchEnd",ecName:"mouseup"},{wxName:"touchEnd",ecName:"click"}].forEach(t=>{this.event[t.wxName]=(e=>{const n=e.mp.touches[0];this.chart.getZr().handler.dispatch(t.ecName,{zrX:"tap"===t.wxName?n.clientX:n.x,zrY:"tap"===t.wxName?n.clientY:n.y})})})}}e.a=i},S82l:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SfB7:function(t,e,n){t.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},T9XY:function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=13)}([function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={type:function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},isObject:function(t,e){return e?"object"===this.type(t):t&&"object"===(void 0===t?"undefined":i(t))},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},trim:function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},encode:function(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")},formatParams:function(t){var e="",n=!0,i=this;if(!this.isObject(t))return t;return function t(r,o){var a=i.encode,s=i.type(r);if("array"==s)r.forEach(function(e,n){i.isObject(e)||(n=""),t(e,o+"%5B"+n+"%5D")});else if("object"==s)for(var l in r)t(r[l],o?o+"%5B"+a(l)+"%5D":a(l));else n||(e+="&"),n=!1,e+=o+"="+a(r)}(t,""),e},merge:function(t,e){for(var n in e)t.hasOwnProperty(n)?this.isObject(e[n],1)&&this.isObject(t[n],1)&&this.merge(t[n],e[n]):t[n]=e[n];return t}}},function(t,e,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var o=n(0),a="undefined"!=typeof document;t.exports=function(t){return function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.requestHeaders={},this.readyState=0,this.timeout=0,this.responseURL="",this.responseHeaders={}}return r(e,[{key:"_call",value:function(t){this[t]&&this[t].apply(this,[].splice.call(arguments,1))}},{key:"_changeReadyState",value:function(t){this.readyState=t,this._call("onreadystatechange")}},{key:"open",value:function(t,e){if(this.method=t,e){if(0!==(e=o.trim(e)).indexOf("http")&&a){var n=document.createElement("a");n.href=e,e=n.href}}else e=location.href;this.responseURL=e,this._changeReadyState(1)}},{key:"send",value:function(e){var n=this;e=e||null;var r=this;if(t){var s={method:r.method,url:r.responseURL,headers:r.requestHeaders||{},body:e};o.merge(s,r._options||{}),"GET"===s.method&&(s.body=null),r._changeReadyState(3);var l=void 0;r.timeout=r.timeout||0,r.timeout>0&&(l=setTimeout(function(){3===r.readyState&&(n._call("onloadend"),r._changeReadyState(0),r._call("ontimeout"))},r.timeout)),s.timeout=r.timeout,t(s,function(t){function e(e){var n=t[e];return delete t[e],n}if(3===r.readyState){clearTimeout(l),r.status=e("statusCode")-0;var n=e("responseText"),o=e("statusMessage");if(r.status){var s=e("headers"),u={};for(var c in s){var h=s[c],p=c.toLowerCase();"object"===(void 0===h?"undefined":i(h))?u[p]=h:(u[p]=u[p]||[],u[p].push(h))}var f=u["set-cookie"];a&&f&&f.forEach(function(t){document.cookie=t.replace(/;\s*httpOnly/gi,"")}),r.responseHeaders=u,r.statusText=o||"",r.response=r.responseText=n,r._response=t,r._changeReadyState(4),r._call("onload")}else r.statusText=n,r._call("onerror",{msg:o});r._call("onloadend")}})}else console.error("Ajax require adapter")}},{key:"setRequestHeader",value:function(t,e){this.requestHeaders[o.trim(t)]=e}},{key:"getResponseHeader",value:function(t){return(this.responseHeaders[t.toLowerCase()]||"").toString()||null}},{key:"getAllResponseHeaders",value:function(){var t="";for(var e in this.responseHeaders)t+=e+":"+this.getResponseHeader(e)+"\r\n";return t||null}},{key:"abort",value:function(t){this._changeReadyState(0),this._call("onerror",{msg:t}),this._call("onloadend")}}],[{key:"setAdapter",value:function(e){t=e}}]),e}()}},function(t,e,n){var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=n(0),o="undefined"!=typeof document,a=function(){function t(e){function n(t){var e=void 0,n=void 0;function i(){t.p=e=n=null}r.merge(t,{lock:function(){e||(t.p=new Promise(function(t,i){e=t,n=i}))},unlock:function(){e&&(e(),i())},clear:function(){n&&(n("cancel"),i())}})}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.engine=e||XMLHttpRequest,this.default=this;var i=this.interceptors={response:{use:function(t,e){this.handler=t,this.onerror=e}},request:{use:function(t){this.handler=t}}},o=i.request;n(i.response),n(o),this.config={method:"GET",baseURL:"",headers:{},timeout:0,params:{},parseJson:!0,withCredentials:!1}}return i(t,[{key:"request",value:function(t,e,n){var i=this,a=new this.engine,s="Content-Type",l=s.toLowerCase(),u=this.interceptors,c=u.request,h=u.response,p=c.handler,f=new Promise(function(u,f){function d(t){return t&&t.then&&t.catch}function g(t,e){t?t.then(function(){e()}):e()}r.isObject(t)&&(t=(n=t).url),(n=n||{}).headers=n.headers||{},g(c.p,function(){r.merge(n,JSON.parse(JSON.stringify(i.config)));var v=n.headers;v[s]=v[s]||v[l]||"",delete v[l],n.body=e||n.body,t=r.trim(t||""),n.method=n.method.toUpperCase(),n.url=t;var y=n;p&&(y=p.call(c,n,Promise)||n),d(y)||(y=Promise.resolve(y)),y.then(function(i){i===n?function(n){e=n.body,t=r.trim(n.url);var i=r.trim(n.baseURL||"");if(t||!o||i||(t=location.href),0!==t.indexOf("http")){var c="/"===t[0];if(!i&&o){var p=location.pathname.split("/");p.pop(),i=location.protocol+"//"+location.host+(c?"":p.join("/"))}if("/"!==i[i.length-1]&&(i+="/"),t=i+(c?t.substr(1):t),o){var v=document.createElement("a");v.href=t,t=v.href}}var y=r.trim(n.responseType||""),m=-1!==["GET","HEAD","DELETE","OPTION"].indexOf(n.method),_=r.type(e),x=n.params||{};m&&"object"===_&&(x=r.merge(e,x));var w=[];(x=r.formatParams(x))&&w.push(x),m&&e&&"string"===_&&w.push(e),w.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+w.join("&")),a.open(n.method,t);try{a.withCredentials=!!n.withCredentials,a.timeout=n.timeout||0,"stream"!==y&&(a.responseType=y)}catch(t){}var b=n.headers[s]||n.headers[l],S="application/x-www-form-urlencoded";for(var T in r.trim((b||"").toLowerCase())===S?e=r.formatParams(e):r.isFormData(e)||-1===["object","array"].indexOf(r.type(e))||(S="application/json;charset=utf-8",e=JSON.stringify(e)),b||m||(n.headers[s]=S),n.headers)if(T===s&&r.isFormData(e))delete n.headers[T];else try{a.setRequestHeader(T,n.headers[T])}catch(t){}function C(t,e,i){g(h.p,function(){if(t){i&&(e.request=n);var r=t.call(h,e,Promise);e=void 0===r?e:r}d(e)||(e=Promise[0===i?"resolve":"reject"](e)),e.then(function(t){u(t)}).catch(function(t){f(t)})})}function M(t){t.engine=a,C(h.onerror,t,-1)}function I(t,e){this.message=t,this.status=e}a.onload=function(){try{var t=a.response||a.responseText;t&&n.parseJson&&-1!==(a.getResponseHeader(s)||"").indexOf("json")&&!r.isObject(t)&&(t=JSON.parse(t));var e=a.responseHeaders;if(!e){e={};var i=(a.getAllResponseHeaders()||"").split("\r\n");i.pop(),i.forEach(function(t){if(t){var n=t.split(":")[0];e[n]=a.getResponseHeader(n)}})}var o=a.status,l=a.statusText,u={data:t,headers:e,status:o,statusText:l};if(r.merge(u,a._response),o>=200&&o<300||304===o)u.engine=a,u.request=n,C(h.handler,u,0);else{var c=new I(l,o);c.response=u,M(c)}}catch(c){M(new I(c.msg,a.status))}},a.onerror=function(t){M(new I(t.msg||"Network Error",0))},a.ontimeout=function(){M(new I("timeout [ "+a.timeout+"ms ]",1))},a._options=n,setTimeout(function(){a.send(m?null:e)},0)}(i):u(i)},function(t){f(t)})})});return f.engine=a,f}},{key:"all",value:function(t){return Promise.all(t)}},{key:"spread",value:function(t){return function(e){return t.apply(null,e)}}}]),t}();a.default=a,["get","post","put","patch","head","delete"].forEach(function(t){a.prototype[t]=function(e,n,i){return this.request(e,n,r.merge({method:t},i))}}),["lock","unlock","clear"].forEach(function(t){a.prototype[t]=function(){this.interceptors.request[t]()}}),t.exports=a},,,,,function(t,e,n){"use strict";t.exports=function(t,e){var n={method:t.method,url:t.url,dataType:t.dataType||void 0,header:t.headers,data:t.body||{},responseType:t.responseType||"text",success:function(t){e({statusCode:t.statusCode,responseText:t.data,headers:t.header,statusMessage:t.errMsg})},fail:function(t){e({statusCode:t.statusCode||0,statusMessage:t.errMsg})}};wx.request(n)}},,,,,,function(t,e,n){"use strict";var i=n(2),r=n(1)(n(7));t.exports=function(t){return new i(t||r)}}])})},TcQ7:function(t,e,n){var i=n("MU5D"),r=n("52gC");t.exports=function(t){return i(r(t))}},To3L:function(t,e,n){"use strict";var i=n("+E39"),r=n("lktj"),o=n("1kS7"),a=n("NpIQ"),s=n("sB3e"),l=n("MU5D"),u=Object.assign;t.exports=!u||n("S82l")(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,c=1,h=o.f,p=a.f;u>c;)for(var f,d=l(arguments[c++]),g=h?r(d).concat(h(d)):r(d),v=g.length,y=0;v>y;)f=g[y++],i&&!p.call(d,f)||(n[f]=d[f]);return n}:u},UuGF:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},V3tA:function(t,e,n){n("R4wc"),t.exports=n("FeBl").Object.assign},W3dg:function(t,e,n){"use strict";e.c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e={};return e.limit=t,e.status=1,e.access_token=wx.getStorageSync("token"),i.a.post("coupon/coupon-receive-list",e)},e.b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e={};return e.limit=t,e.access_token=wx.getStorageSync("token"),i.a.post("coupon/coupon-list",e)},e.d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e={};return e.limit=t,e.access_token=wx.getStorageSync("token"),i.a.post("coupon/coupon-expire-list",e)},e.a=function(t){var e={};return e.coupon_category_id=t.coupon_category_id,e.start_time=t.validity_time.start_time,e.end_time=t.validity_time.end_time,e.access_token=wx.getStorageSync("token"),i.a.post("coupon/coupon-receive",e)},e.f=function(){var t={access_token:wx.getStorageSync("token")};return i.a.post("coupon/out-list",t)},e.e=function(){var t={access_token:wx.getStorageSync("token")};return i.a.post("coupon/out-card",t)};var i=n("0qyJ");n("IcnI")},X8DO:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XF7E:function(t,e,n){"use strict";var i=n("PWH5"),r=n("OTXi");var o=function(t){n("knE4")},a=n("ybqe")(i.a,r.a,o,"data-v-e62e7a38",null);e.a=a.exports},XOGh:function(t,e,n){"use strict";var i={getBluetoothLinkStatus:function(){return wx.getStorageSync("ble_link_status")}},r={setBluetoothLinkStatus:function(t){wx.setStorageSync("ble_link_status",t)}};e.a={getters:i,setters:r}},aJjD:function(t,e,n){"use strict";e.d=function(t){var e={activity_id:t};return i.a.post("activity/get-activity",e)},e.h=function(t){var e={activity_id:t};return i.a.post("activity/promotion-ranking",e)},e.f=function(t){var e={activity_id:t};return i.a.post("activity/finals-ranking",e)},e.e=function(t){var e={activity_id:t};return i.a.post("activity/all-finals-ranking",e)},e.c=function(t,e){var n={activity_id:t,user_id:e};return i.a.post("activity/enroll",n)},e.b=function(t,e){var n={activity_id:t,user_id:e};return i.a.post("activity/is-match",n)},e.a=function(t){var e={phone:t.phone,school:t.school,name:t.name};return e.access_token=wx.getStorageSync("token"),i.a.post("jointly/add",e)},e.g=function(){var t={access_token:wx.getStorageSync("token")};return i.a.post("jointly/index",t)};var i=n("0qyJ")},ax3d:function(t,e,n){var i=n("e8AB")("keys"),r=n("3Eo+");t.exports=function(t){return i[t]||(i[t]=r(t))}},cZVI:function(t,e,n){"use strict";e.a=function(t){var e=wx.getStorageSync("userinfo").user_id,n={access_token:wx.getStorageSync("token"),user_id:e,content:t};i.a.post("log/add-log",n).then(function(t){return 0==t.data.code&&t.data.data})};var i=n("0qyJ")},e8AB:function(t,e,n){var i=n("FeBl"),r=n("7KvD"),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("O4g8")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},evD5:function(t,e,n){var i=n("77Pl"),r=n("SfB7"),o=n("MmMw"),a=Object.defineProperty;e.f=n("+E39")?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}},fkB2:function(t,e,n){var i=n("UuGF"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},hJx8:function(t,e,n){var i=n("evD5"),r=n("X8DO");t.exports=n("+E39")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},iy8u:function(t,e,n){"use strict";var i=n("/Y/F");const r={type:"text",mask:!1,message:"",show:!0,zIndex:1e3,duration:2e3,position:"middle",forbidClick:!1,loadingType:"circular",selector:"#van-toast"};let o=[],a=Object.assign({},r);function s(t){return Object(i.a)(t)?t:{message:t}}function l(t){const e=Object.assign(Object.assign({},a),s(t)),n=(e.context||function(){const t=getCurrentPages();return t[t.length-1]}()).selectComponent(e.selector);if(n)return delete e.context,delete e.selector,n.clear=(()=>{n.setData({show:!1}),e.onClose&&e.onClose()}),o.push(n),n.setData(e),clearTimeout(n.timer),null!=e.duration&&e.duration>0&&(n.timer=setTimeout(()=>{n.clear(),o=o.filter(t=>t!==n)},e.duration)),n;console.warn("未找到 van-toast 节点,请确认 selector 及 context 是否正确")}const u=t=>e=>l(Object.assign({type:t},s(e)));l.loading=u("loading"),l.success=u("success"),l.fail=u("fail"),l.clear=(()=>{o.forEach(t=>{t.clear()}),o=[]}),l.setDefaultOptions=(t=>{Object.assign(a,t)}),l.resetDefaultOptions=(()=>{a=Object.assign({},r)}),e.a=l},kM2E:function(t,e,n){var i=n("7KvD"),r=n("FeBl"),o=n("+ZMJ"),a=n("hJx8"),s=n("D2L2"),l=function(t,e,n){var u,c,h,p=t&l.F,f=t&l.G,d=t&l.S,g=t&l.P,v=t&l.B,y=t&l.W,m=f?r:r[e]||(r[e]={}),_=m.prototype,x=f?i:d?i[e]:(i[e]||{}).prototype;for(u in f&&(n=e),n)(c=!p&&x&&void 0!==x[u])&&s(m,u)||(h=c?x[u]:n[u],m[u]=f&&"function"!=typeof x[u]?n[u]:v&&c?o(h,i):y&&x[u]==h?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}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((m.virtual||(m.virtual={}))[u]=h,t&l.R&&_&&!_[u]&&a(_,u,h)))};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},knE4:function(t,e){},lOnJ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lktj:function(t,e,n){var i=n("Ibhu"),r=n("xnc9");t.exports=Object.keys||function(t){return i(t,r)}},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},ptEO:function(t,e,n){"use strict";var i,r,o,a,s=n("Dd8w"),l=n.n(s),u=n("0xDb"),c=n("wOfB"),h=n("iy8u"),p=n("RVip"),f=n("XF7E"),d=n("syfO"),g=n.n(d),v=n("cZVI");function y(t,e,n){i=g.a.init(t,null,{width:e,height:n}),t.setChart(i);return i.setOption({}),i}function m(t,e,n){r=g.a.init(t,null,{width:e,height:n}),t.setChart(r);return r.setOption({}),r}e.a={name:"index_container",components:{mpvueEcharts:f.a},data:function(){return{echarts:g.a,attCharts:y,medCharts:m,mode:0,timeData:{},mode_item:{},user_info:{},deviceId:"",_serviceId:"",_characteristicId:"",toy_index:0,toy_id:0,toy:{},toy_hex:"",play_time:0,online_att:0,online_att_desc:"",online_med:0,online_med_desc:"",att_list:[],med_list:[],amp_list:[],delta_list:[],theta_list:[],low_alphas:[],high_alphas:[],low_betas:[],high_betas:[],cates:[],game_datas:[],is_end:!1,executed:!1,played_time:null,played_time_text:"--:--",over_play_time:0,device_bg:!0,rssi:0,game_status:0,toy_power:0,toy_voltage:0,device_power:0,device_voltage:0,toy_UUID:"",is_new:!1,save_index:["att","med","delta","theta","low_alpha","high_alpha","low_beta","high_beta","low_gamma","middle_gamma","delta_basic","theta_basic","low_alpha_basic","high_alpha_basic","low_beta_basic","high_beta_basic","low_gamma_basic","middle_gamma_basic"]}},methods:{game_finished:function(){o.executed||(Object(v.a)(o.$bluetooth.getNowTime()+" 游戏结束"),o.$bluetooth.sendControlClose(),o.$emit("closePop",!0),0==c.a.getters.getGameStatus()?c.a.setters.setGameStatus(0):c.a.setters.setGameStatus(3),wx.removeStorageSync("play_time"),c.a.remover.rmGameAttMedDatas(),c.a.remover.rmHideTime(),c.a.setters.removeToyHex(),o.post_data(),o.game_over(),h.a.loading({forbidClick:!0,mask:!0,message:"正在生成报告...",duration:2e3,onClose:function(){o.to_report()}})),o.executed=!0},to_report:function(){global.mpvue.redirectTo({url:"/pages/report/main?id="+wx.getStorageSync("game_record_id"),success:function(){o.timeData={},o.attList=[],o.medList=[],o.ampList=[],Object(v.a)(o.$bluetooth.getNowTime()+" 生成报告")}})},start_game:function(){Object(v.a)(o.$bluetooth.getNowTime()+" 开始游戏"),wx.setKeepScreenOn({keepScreenOn:!0}),o.$bluetooth.sendAutoConnectRf(!0,Math.round(o.played_time/60)),o.$bluetooth.watchingDevice(o),clearInterval(a),a=setInterval(function(){(o.played_time>0&&(o.played_time-=1,c.a.setters.setPlayedTime(o.played_time),o.played_time_text=o.$bluetooth.formatPlaySeconds(o.played_time)),0==o.played_time)&&(o.post_data(),o.$bluetooth.sendControlClose(),c.a.getters.getHideStatus()||o.game_finished(),clearInterval(a))},1e3)},ab2hex:function(t){return Array.prototype.map.call(new Uint8Array(t),function(t){return("00"+t.toString(16)).slice(-2)}).join("")},post_data:function(){for(var t=[],e=0;e<this.save_index.length;e++)t[this.save_index[e]]=this.game_datas[this.save_index[e]].join(",");var n=l()({game_record_id:c.a.getters.getGameRecordId(),line:this.game_datas.att.join(","),line_med:this.game_datas.med.join(",")},t,{sn:wx.getStorageSync("deviceSn")});if(console.log(n),!n.line)return!1;Object(p.a)(n).then(function(t){0==t.data.code&&(o.game_datas=[])})},game_over:function(){o.over_play_time=c.a.getters.getOverPlayTime(),o.played_time=o.played_time>=0?o.played_time:0;var t={game_record_id:c.a.getters.getGameRecordId(),type:o.mode,play_time:o.over_play_time-Math.abs(o.played_time)};Object(p.b)(t).then(function(t){t.data;o.played_time=null,o.is_end=!1,o.att_list=[],o.med_list=[],o.amp_list=[],o.delta_list=[],o.theta_list=[],o.low_alphas=[],o.high_alphas=[],o.low_betas=[],o.high_betas=[],wx.removeStorageSync("over_play_time"),c.a.setters.setMode(0)})},do_datas:function(t){o.online_att=t.att,o.online_med=t.med;var e="";t.att>=1&&t.att<40?e="专注力不足":t.att<60?e="一般专注":t.att<80?e="高度专注":t.att<=100&&(e="深度专注"),o.online_att_desc=e;var n="";if(t.med>=1&&t.med<40?n="放松度不足":t.med<60?n="一般放松":t.med<80?n="高度放松":t.med<=100&&(n="深度放松"),o.online_med_desc=n,o.att_list.push(t.att),o.med_list.push(t.med),o.amp_list.push(100-Math.abs(t.att-t.med)),o.delta_list.push(t.delta),o.theta_list.push(t.theta),o.low_alphas.push(t.low_alpha),o.high_alphas.push(t.high_alpha),o.low_betas.push(t.low_beta),o.high_betas.push(t.high_beta),o.att_list.length>15&&(o.att_list.shift(),o.med_list.shift(),o.amp_list.shift(),o.delta_list.shift(),o.theta_list.shift(),o.low_alphas.shift(),o.high_alphas.shift(),o.low_betas.shift(),o.high_betas.shift()),!c.a.getters.getHideStatus()){var a=u.b.getLineOption(o.att_list,o.med_list,o.amp_list);i.setOption(a);var s=u.b.getBaseOption(o.delta_list,o.theta_list,o.low_alphas,o.high_alphas,o.low_betas,o.high_betas);r.setOption(s)}for(var l=0;l<o.save_index.length;l++)void 0==this.game_datas[o.save_index[l]]&&(this.game_datas[o.save_index[l]]=[]),this.game_datas[o.save_index[l]].push(t[o.save_index[l]])},calThePlayedTime:function(){o.mode=c.a.getters.getMode();o.play_time=c.a.getters.getPlayTime(),o.played_time=c.a.getters.getPlayedTime()?c.a.getters.getPlayedTime():c.a.getters.getPlayTime(),o.mode_item={},o.mode_item=[{id:1,name:"次卡(10分钟)"},{id:2,name:"会员时间消费"}][o.mode-1]},RandDomNum:function(){o.online_att=Math.round(100*Math.random()),o.online_med=Math.round(100*Math.random())}},mounted:function(){console.log(o.$bluetooth.ToyPower),o.executed=!1,o.deviceId="",o.toy_UUID="",o.deviceId=c.a.getters.getDeviceId(),o.game_status=c.a.getters.getGameStatus(),1==o.is_end?o.game_finished():(o.calThePlayedTime(),o.start_game(),o.$bluetooth.watch_bluetooth_status(o)),o.is_new=c.a.getters.getIsNew()},created:function(){o=this},onShow:function(){c.a.setters.setHideStatus(!1),0==o.played_time?o.game_finished():wx.getSystemInfoAsync({success:function(t){if("android"!=t.platform){var e=c.a.getters.getHideTime();if(e){var n=Math.round(new Date/1e3)-e,i=1*o.played_time-1*n;n>o.played_time&&o.game_finished(),c.a.setters.setPlayedTime(i),o.calThePlayedTime()}}}})},onLoad:function(t){1==t.end&&(o.is_end=!0,o.executed=!0)},onHide:function(){c.a.setters.setHideStatus(!0),c.a.setters.setHideTime(Math.round(new Date/1e3))},onUnload:function(){console.log("小程序被销毁"),o.is_end?o.executed=!0:(c.a.setters.setPlayedTime(o.played_time),o.is_end=!1,o.executed=!1)}}},qkKv:function(t,e,n){var i=n("FeBl"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},sB3e:function(t,e,n){var i=n("52gC");t.exports=function(t){return Object(i(t))}},syfO:function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(t,e){function n(){this.constructor=t}kc(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(){for(var t=0,e=0,n=arguments.length;n>e;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;n>e;e++)for(var o=arguments[e],a=0,s=o.length;s>a;a++,r++)i[r]=o[a];return i}function i(t,e){jc[t]=e}function r(){return Wc++}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=Rc.call(t);if("[object Array]"===n){if(!V(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=a(t[i])}}else if(Ec[n]){if(!V(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;r>i;i++)e[i]=a(t[i])}}}else if(!Lc[n]&&!V(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&(e[s]=a(t[s]));return e}function s(t,e,n){if(!M(e)||!M(t))return n?a(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],o=e[i];!M(o)||!M(r)||w(o)||w(r)||k(o)||k(r)||I(o)||I(r)||V(o)||V(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)&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=_(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 c(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function h(t,e){function n(){}var i=t.prototype;for(var r in n.prototype=e.prototype,t.prototype=new n,i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,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 f(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function d(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Bc)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;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===Hc)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function v(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function y(t,e,n){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===zc)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function m(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function _(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function x(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Fc.call(arguments)))}}function w(t){return Array.isArray?Array.isArray(t):"[object Array]"===Rc.call(t)}function b(t){return"function"==typeof t}function S(t){return"string"==typeof t}function T(t){return"[object String]"===Rc.call(t)}function C(t){return"number"==typeof t}function M(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function I(t){return!!Lc[Rc.call(t)]}function A(t){return!!Ec[Rc.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 O(t){return null!=t.image}function P(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;i>n;n++)if(null!=t[n])return t[n]}function E(t,e){return null!=t?t:e}function R(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 Fc.apply(t,e)}function B(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function 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 H(t){t[Yc]=!0}function V(t){return t[Yc]}function G(t){return new Xc(t)}function j(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&l(n,e),n}function W(t,e){return t.hasOwnProperty(e)}function U(){}function $(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Y(t){return[t[0],t[1]]}function X(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function q(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Z(t){return Math.sqrt(K(t))}function K(t){return t[0]*t[0]+t[1]*t[1]}function J(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Q(t,e){var n=Z(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function tt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function et(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function nt(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 it(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function rt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ot(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function at(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/rh);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,f=0;s>p;p++){var d=1<<p;d&r||(h+=(f%2?-1:1)*t[n][p]*at(t,e-1,c,u,r|d,o),f++)}return o[a]=h,h}function st(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=at(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*at(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 lt(t,e,n,i,r){if(e.getBoundingClientRect&&Pc.domSupported&&!ut(e)){var o=e[oh]||(e[oh]={}),a=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,f=c.top;a.push(p,f),l=l&&o&&p===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?st(s,a):st(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;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(a)return a(t,n,i),!0}return!1}function ut(t){return"CANVAS"===t.nodeName.toUpperCase()}function ct(t,e,n,i){return n=n||{},i||!Pc.canvasSupported?ht(t,e,n):Pc.browser.firefox&&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):ht(t,e,n),n}function ht(t,e,n){if(Pc.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ut(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(lt(uh,t,i,r))return n.zrX=uh[0],void(n.zrY=uh[1])}n.zrX=n.zrY=0}function pt(t){return t||window.event}function ft(t,e,n){if(null!=(e=pt(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ct(t,r,e,n)}else{ct(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*Math.abs(0!==i?i:n)*(i>0?-1:0>i?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&lh.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function dt(t,e,n,i){sh?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}function gt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function vt(){ch(this.event)}function yt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||fh}return!1}function mt(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function _t(){return[1,0,0,1,0,0]}function xt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function wt(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 bt(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],l=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]=l,t}function St(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 Tt(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Ct(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Mt(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function It(t){return t>bh||-bh>t}function At(t){return 0>(t=Math.round(t))?0:t>255?255:t}function kt(t){return 0>t?0:t>1?1:t}function Dt(t){var e=t;return At(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Ot(t){var e=t;return kt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Pt(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Lt(t,e,n){return t+(e-t)*n}function Et(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Rt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Nt(t,e){Rh&&Rt(Rh,e),Rh=Eh.put(t,Rh||e.slice())}function Bt(t,e){if(t){e=e||[];var n=Eh.get(t);if(n)return Rt(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Lh)return Rt(e,Lh[i]),Nt(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Et(e,+l[0],+l[1],+l[2],1):Et(e,0,0,0,1);u=Ot(l.pop());case"rgb":return 3!==l.length?void Et(e,0,0,0,1):(Et(e,Dt(l[0]),Dt(l[1]),Dt(l[2]),u),Nt(t,e),e);case"hsla":return 4!==l.length?void Et(e,0,0,0,1):(l[3]=Ot(l[3]),zt(l,e),Nt(t,e),e);case"hsl":return 3!==l.length?void Et(e,0,0,0,1):(zt(l,e),Nt(t,e),e);default:return}}Et(e,0,0,0,1)}else{var c;if(4===r||5===r)return(c=parseInt(i.slice(1,4),16))>=0&&4095>=c?(Et(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Nt(t,e),e):void Et(e,0,0,0,1);if(7===r||9===r)return(c=parseInt(i.slice(1,7),16))>=0&&16777215>=c?(Et(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Nt(t,e),e):void Et(e,0,0,0,1)}}}function zt(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ot(t[1]),r=Ot(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return Et(e=e||[],At(255*Pt(a,o,n+1/3)),At(255*Pt(a,o,n)),At(255*Pt(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ft(t,e){var n=Bt(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return jt(n,4===n.length?"rgba":"rgb")}}function Ht(t){var e=Bt(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Vt(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=At(Lt(a[0],s[0],l)),n[1]=At(Lt(a[1],s[1],l)),n[2]=At(Lt(a[2],s[2],l)),n[3]=kt(Lt(a[3],s[3],l)),n}}function Gt(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Bt(e[r]),s=Bt(e[o]),l=i-r,u=jt([At(Lt(a[0],s[0],l)),At(Lt(a[1],s[1],l)),At(Lt(a[2],s[2],l)),kt(Lt(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function jt(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function Wt(t,e){var n=Bt(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ut(t,e,n){return(e-t)*n+t}function $t(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=Ut(e[o],n[o],i)}function Yt(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function Xt(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function qt(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;a>s;s++)i.push(1===n?r[s]:Fh.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;l>u;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Zt(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Kt(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function Jt(t,e,n,i,r,o,a,s){for(var l=e.length,u=0;l>u;u++)t[u]=Kt(e[u],n[u],i[u],r[u],o,a,s)}function Qt(t){if(f(t)){var e=t.length;if(f(t[0])){for(var n=[],i=0;e>i;i++)n.push(Fh.call(t[i]));return n}return Fh.call(t)}return t}function te(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function ee(t,e){var n=Qh[e=e||tp];n||(n=Qh[e]=new Ph(500));var i=n.get(t);return null==i&&(i=ep.measureText(t,e).width,n.put(t,i)),i}function ne(t,e,n,i){var r=ee(t,e),o=ae(e),a=re(0,r,n),s=oe(0,o,i);return new Jh(a,s,r,o)}function ie(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return ne(r[0],e,n,i);for(var o=new Jh(0,0,0,0),a=0;a<r.length;a++){var s=ne(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function re(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function oe(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ae(t){return ee("国",t)}function se(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function le(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,c="left",h="top";if(i instanceof Array)l+=se(i[0],n.width),u+=se(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}function ue(t,e,n,i,r){var o=[];pe(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},h=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var f=o[p];c&&f.done(c),h&&f.aborted(h),f.start(n.easing,n.force)}return o}function ce(t,e,n){for(var i=0;n>i;i++)t[i]=e[i]}function he(t,e,n){if(f(e[n]))if(f(t[n])||(t[n]=[]),A(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),ce(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(function(t){return f(t[0])}(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?ce(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ce(o,r,a);o.length=r.length}else t[n]=e[n]}function pe(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=_(i),p=r.duration,d=r.delay,g=r.additive,v=r.setToFinal,y=!M(o),m=0;m<h.length;m++){if(null!=n[k=h[m]]&&null!=i[k]&&(y||o[k]))if(M(i[k])&&!f(i[k])){if(e){s||(n[k]=i[k],t.updateDuringAnimation(e));continue}pe(t,k,n[k],i[k],r,o&&o[k],a,s)}else l.push(k),u.push(k);else s||(n[k]=i[k],t.updateDuringAnimation(e),u.push(k))}var x=l.length;if(x>0||r.force&&!a.length){for(var w=t.animators,b=[],S=0;S<w.length;S++)w[S].targetName===e&&b.push(w[S]);if(!g&&b.length)for(S=0;S<b.length;S++){if(b[S].stopTracks(u)){var T=c(w,b[S]);w.splice(T,1)}}var C=void 0,I=void 0,A=void 0;if(s){I={},v&&(C={});for(S=0;x>S;S++){I[k=l[S]]=n[k],v?C[k]=i[k]:n[k]=i[k]}}else if(v){A={};for(S=0;x>S;S++){var k;A[k=l[S]]=Qt(n[k]),he(n,i,k)}}var D=new Gh(n,!1,g?b:null);D.targetName=e,r.scope&&(D.scope=r.scope),v&&C&&D.whenWithKeys(0,C,l),A&&D.whenWithKeys(0,A,l),D.whenWithKeys(null==p?500:p,s?I:i,l).delay(d||0),t.addAnimator(D,e),a.push(D)}}function fe(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function de(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function ge(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function ve(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ye(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(fp>r)return void de(t,n,i,n+(o=fe(t,n,i,e)),e);var a=function(t,e){function n(n){var s=o[n],u=a[n],c=o[n+1],h=a[n+1];a[n]=u+h,n===l-3&&(o[n+1]=o[n+2],a[n+1]=a[n+2]),l--;var p=ve(t[c],t,s,u,0,e);s+=p,0!=(u-=p)&&0!==(h=ge(t[s+u-1],t,c,h,h-1,e))&&(h>=u?i(s,u,c,h):r(s,u,c,h))}function i(n,i,r,o){var a=0;for(a=0;i>a;a++)u[a]=t[n+a];var l=0,c=r,h=n;if(t[h++]=t[c++],0!=--o){if(1===i){for(a=0;o>a;a++)t[h+a]=t[c+a];return void(t[h+o]=u[l])}for(var p,f,d,g=s;;){p=0,f=0,d=!1;do{if(e(t[c],u[l])<0){if(t[h++]=t[c++],f++,p=0,0==--o){d=!0;break}}else if(t[h++]=u[l++],p++,f=0,1==--i){d=!0;break}}while(g>(p|f));if(d)break;do{if(0!==(p=ve(t[c],u,l,i,0,e))){for(a=0;p>a;a++)t[h+a]=u[l+a];if(h+=p,l+=p,1>=(i-=p)){d=!0;break}}if(t[h++]=t[c++],0==--o){d=!0;break}if(0!==(f=ge(u[l],t,c,o,0,e))){for(a=0;f>a;a++)t[h+a]=t[c+a];if(h+=f,c+=f,0==(o-=f)){d=!0;break}}if(t[h++]=u[l++],1==--i){d=!0;break}g--}while(p>=dp||f>=dp);if(d)break;0>g&&(g=0),g+=2}if(1>(s=g)&&(s=1),1===i){for(a=0;o>a;a++)t[h+a]=t[c+a];t[h+o]=u[l]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[h+a]=u[l+a]}}else for(a=0;i>a;a++)t[h+a]=u[l+a]}function r(n,i,r,o){var a=0;for(a=0;o>a;a++)u[a]=t[r+a];var l=n+i-1,c=o-1,h=r+o-1,p=0,f=0;if(t[h--]=t[l--],0!=--i){if(1===o){for(f=1+(h-=i),p=1+(l-=i),a=i-1;a>=0;a--)t[f+a]=t[p+a];return void(t[h]=u[c])}for(var d=s;;){var g=0,v=0,y=!1;do{if(e(u[c],t[l])<0){if(t[h--]=t[l--],g++,v=0,0==--i){y=!0;break}}else if(t[h--]=u[c--],v++,g=0,1==--o){y=!0;break}}while(d>(g|v));if(y)break;do{if(0!=(g=i-ve(u[c],t,n,i,i-1,e))){for(i-=g,f=1+(h-=g),p=1+(l-=g),a=g-1;a>=0;a--)t[f+a]=t[p+a];if(0===i){y=!0;break}}if(t[h--]=u[c--],1==--o){y=!0;break}if(0!=(v=o-ge(t[l],u,0,o,o-1,e))){for(o-=v,f=1+(h-=v),p=1+(c-=v),a=0;v>a;a++)t[f+a]=u[p+a];if(1>=o){y=!0;break}}if(t[h--]=t[l--],0==--i){y=!0;break}d--}while(g>=dp||v>=dp);if(y)break;0>d&&(d=0),d+=2}if(1>(s=d)&&(s=1),1===o){for(f=1+(h-=i),p=1+(l-=i),a=i-1;a>=0;a--)t[f+a]=t[p+a];t[h]=u[c]}else{if(0===o)throw new Error;for(p=h-(o-1),a=0;o>a;a++)t[p+a]=u[a]}}else for(p=h-(o-1),a=0;o>a;a++)t[p+a]=u[a]}var o,a,s=dp,l=0,u=[];return o=[],a=[],{mergeRuns:function(){for(;l>1;){var t=l-2;if(t>=1&&a[t-1]<=a[t]+a[t+1]||t>=2&&a[t-2]<=a[t]+a[t-1])a[t-1]<a[t+1]&&t--;else if(a[t]>a[t+1])break;n(t)}},forceMergeRuns:function(){for(;l>1;){var t=l-2;t>0&&a[t-1]<a[t+1]&&t--,n(t)}},pushRun:function(t,e){o[l]=t,a[l]=e,l+=1}}}(t,e),s=function(t){for(var e=0;t>=fp;)e|=1&t,t>>=1;return t+e}(r);do{if(s>(o=fe(t,n,i,e))){var l=r;l>s&&(l=s),de(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function me(){gp||(gp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function _e(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function xe(t){var e=t.pointerType;return"pen"===e||"touch"===e}function we(t){t&&(t.zrByTouch=!0)}function be(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 Se(t,e){var n=e.domHandlers;Pc.pointerEventsSupported?d(xp.pointer,function(i){Ce(e,i,function(e){n[i].call(t,e)})}):(Pc.touchEventsSupported&&d(xp.touch,function(i){Ce(e,i,function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),d(xp.mouse,function(i){Ce(e,i,function(r){r=pt(r),e.touching||n[i].call(t,r)})}))}function Te(t,e){function n(n){Ce(e,n,function(i){i=pt(i),be(t,i.target)||(i=function(t,e){return ft(t.dom,new Sp(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}Pc.pointerEventsSupported?d(wp.pointer,n):Pc.touchEventsSupported||d(wp.mouse,n)}function Ce(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){sh?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}(t.domTarget,e,n,i)}function Me(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&dt(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function Ie(t,e){var n=new Pp(r(),t,e);return Op[n.id]=n,n}function Ae(t,e){Dp[t]=e}function ke(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function De(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"string"==typeof t?function(t){return t.replace(/^\s+|\s+$/g,"")}(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Oe(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Pe(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return 0>i?-i:0}var r=e.indexOf(".");return 0>r?0:e.length-1-r}function Le(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ee(t,e,n){if(!t[e])return 0;var i=v(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=g(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=g(o,function(t){return Math.floor(t)}),l=v(s,function(t,e){return t+e},0),u=g(o,function(t,e){return t-s[e]});a>l;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,f=u.length;f>p;++p)u[p]>c&&(c=u[p],h=p);++s[h],u[h]=0,++l}return s[e]/r}function Re(t){var e=2*Math.PI;return(t%e+e)%e}function Ne(t){return t>-Ep&&Ep>t}function Be(t){if(t instanceof Date)return t;if("string"==typeof t){var e=Rp.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?NaN:Math.round(t))}function ze(t){return Math.pow(10,Fe(t))}function Fe(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function He(t,e){var n=Fe(t),i=Math.pow(10,n),r=t/i;return t=(e?1.5>r?1:2.5>r?2:4>r?3:7>r?5:10:1>r?1:2>r?2:3>r?3:5>r?5:10)*i,n>=-20?+t.toFixed(0>n?-n:0):t}function Ve(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function Ge(t){return!isNaN(Ve(t))}function je(){return Math.round(9*Math.random())}function We(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 Ue(t){throw new Error(t)}function $e(t){return t instanceof Array?t:null==t?[]:[t]}function Ye(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;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Xe(t){return!M(t)||w(t)||t instanceof Date?t:t.value}function qe(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=G();d(e,function(t,n){return M(t)?void 0:void(e[n]=null)});var s=function(t,e,n){var i=[];if("replaceAll"===n)return i;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||tn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){d(i,function(r,o){if(r&&null!=r.id){var a=Ke(r.id),s=n.get(a);if(null!=s){var l=t[s];z(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}(s,t,a,e),i&&function(t,e){d(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!tn(n)&&!tn(o)&&Ze("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}(s,e),i||r?function(t,e,n){d(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||tn(i.existing)||i.existing&&null!=e.id&&!Ze("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}(s,e,r):o&&function(t,e){d(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function(t){var e=G();d(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),d(t,function(t){var n=t.newOption;z(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),d(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(M(r)){if(o.name=null!=r.name?Ke(r.name):i?i.name:Np+n,i)o.id=Ke(i.id);else if(null!=r.id)o.id=Ke(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}(s),s}function Ze(t,e,n){var i=Je(e[t],null),r=Je(n[t],null);return null!=i&&null!=r&&i===r}function Ke(t){return Je(t,"")}function Je(t,e){if(null==t)return e;var n=typeof t;return"string"===n?t:"number"===n||T(t)?t+"":e}function Qe(t){var e=t.name;return!(!e||!e.indexOf(Np))}function tn(t){return t&&null!=t.id&&0===Ke(t.id).indexOf(Bp)}function en(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?w(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?w(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function nn(){var t="__ec_inner_"+Fp++;return function(e){return e[t]||(e[t]={})}}function rn(t,e,n){var i;if(S(e)){var r={};r[e+"Index"]=0,i=r}else i=e;var o=G(),a={},s=!1;d(i,function(t,e){if("dataIndex"!==e&&"dataIndexInside"!==e){var i=e.match(/^(\w+)(Index|Id|Name)$/)||[],r=i[1],l=(i[2]||"").toLowerCase();if(r&&l&&!(n&&n.includeMainTypes&&c(n.includeMainTypes,r)<0))s=s||!!r,(o.get(r)||o.set(r,{}))[l]=t}else a[e]=t});var l=n?n.defaultMainType:null;return!s&&l&&o.set(l,{}),o.each(function(e,i){var r=on(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function on(t,e,n,i){i=i||Hp;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(z(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(z(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function an(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function sn(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if("number"==typeof i)return Oe(f=Ut(n||0,i,r),o?Math.max(Pe(n||0),Pe(i)):e);if("string"==typeof i)return 1>r?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;u>c;++c){if("ordinal"===t.getDimensionInfo(c).type)a[c]=(1>r&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,p=l[c],f=Ut(h,p,r);a[c]=Oe(f,o?Math.max(Pe(h),Pe(p)):e)}}return a}function ln(t){var e={main:"",sub:""};if(t){var n=t.split(Vp);e.main=n[0]||"",e.sub=n[1]||""}return e}function un(t){t.$constructor=t,t.extend=function(t){function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(function(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}(i))return j(e.prototype,new(i.bind.apply(i,n([void 0],r))));i.apply(this,arguments)}}var i=this;return e[jp]=!0,l(e.prototype,t),e.extend=this.extend,e.superCall=hn,e.superApply=pn,h(e,this),e.superClass=i,e}}function cn(t,e){t.extend=e.extend}function hn(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 pn(t,e,n){return this.superClass.prototype[e].apply(t,n)}function fn(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){(function(t){z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')})(n),t.prototype.type=n;var i=ln(n);if(i.sub){if(i.sub!==Gp)((function(t){var n=e[t.main];return n&&n[Gp]||((n=e[t.main]={})[Gp]=!0),n})(i))[i.sub]=t}else e[i.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Gp]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=ln(t),i=[],r=e[n.main];return r&&r[Gp]?d(r,function(t,e){e!==Gp&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var n=ln(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return d(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=ln(t),i=e[n.main];return i&&i[Gp]}}function dn(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];if(!(i&&c(i,s)>=0||r&&c(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function gn(t){if("string"==typeof t){var e=Yp.get(t);return e&&e.image}return t}function vn(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Yp.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!mn(e=o.image)&&o.pending.push(a):((e=new Image).onload=e.onerror=yn,Yp.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function yn(){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 mn(t){return t&&t.width&&t.height}function _n(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=xn(e,n,i,r);for(var a=0,s=o.length;s>a;a++)o[a]=wn(o[a],r);return o.join("\n")}function xn(t,e,n,i){var r=l({},i=i||{});r.font=e,n=E(n,"..."),r.maxIterations=E(i.maxIterations,2);var o=r.minChar=E(i.minChar,0);r.cnCharWidth=ee("国",e);var a=r.ascCharWidth=ee("a",e);r.placeholder=E(i.placeholder,"");for(var s=t=Math.max(0,t-1),u=0;o>u&&s>=a;u++)s-=a;var c=ee(n,e);return c>s&&(n="",c=0),s=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=t,r}function wn(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=ee(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?bn(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=ee(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function bn(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function Sn(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}(l.width,i.width)+f;u.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=d}else{var g=Cn(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new qp;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,m.width="number"==typeof l.width?l.width:a?a[v]:ee(y,c),v||h)u.push(new Zp([m]));else{var _=(u[u.length-1]||(u[0]=new Zp)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function Tn(t){return!function(t){var e=t.charCodeAt(0);return e>=33&&255>=e}(t)||!!Jp[t]}function Cn(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var f=ee(p,e),d=!i&&!Tn(p);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(d?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=f):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=p,c=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function Mn(t){return t>-uf&&uf>t}function In(t){return t>uf||-uf>t}function An(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 kn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Dn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,f=0;if(Mn(c)&&Mn(h))if(Mn(s))o[0]=0;else{(T=-l/s)>=0&&1>=T&&(o[f++]=T)}else{var d=h*h-4*c*p;if(Mn(d)){var g=h/c,v=-g/2;(T=-s/a+g)>=0&&1>=T&&(o[f++]=T),v>=0&&1>=v&&(o[f++]=v)}else if(d>0){var y=lf(d),m=c*s+1.5*a*(-h+y),_=c*s+1.5*a*(-h-y);(T=(-s-((m=0>m?-sf(-m,pf):sf(m,pf))+(_=0>_?-sf(-_,pf):sf(_,pf))))/(3*a))>=0&&1>=T&&(o[f++]=T)}else{var x=(2*c*s-3*a*h)/(2*lf(c*c*c)),w=Math.acos(x)/3,b=lf(c),S=Math.cos(w),T=(-s-2*b*S)/(3*a),C=(v=(-s+b*(S+hf*Math.sin(w)))/(3*a),(-s+b*(S-hf*Math.sin(w)))/(3*a));T>=0&&1>=T&&(o[f++]=T),v>=0&&1>=v&&(o[f++]=v),C>=0&&1>=C&&(o[f++]=C)}}return f}function On(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Mn(a)){if(In(o))(c=-s/o)>=0&&1>=c&&(r[l++]=c)}else{var u=o*o-4*a*s;if(Mn(u))r[0]=-o/(2*a);else if(u>0){var c,h=lf(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&1>=c&&(r[l++]=c),p>=0&&1>=p&&(r[l++]=p)}}return l}function Pn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Ln(t,e,n,i,r,o,a,s,l,u,c){var h,p,f,d,g,v=.005,y=1/0;ff[0]=l,ff[1]=u;for(var m=0;1>m;m+=.05)df[0]=An(t,n,r,a,m),df[1]=An(e,i,o,s,m),y>(d=Qc(ff,df))&&(h=m,y=d);y=1/0;for(var _=0;32>_&&!(cf>v);_++)p=h-v,f=h+v,df[0]=An(t,n,r,a,p),df[1]=An(e,i,o,s,p),d=Qc(df,ff),p>=0&&y>d?(h=p,y=d):(gf[0]=An(t,n,r,a,f),gf[1]=An(e,i,o,s,f),g=Qc(gf,ff),1>=f&&y>g?(h=f,y=g):v*=.5);return c&&(c[0]=An(t,n,r,a,h),c[1]=An(e,i,o,s,h)),lf(y)}function En(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=An(t,n,r,a,d),v=An(e,i,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Rn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Nn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Bn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function zn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Fn(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;ff[0]=a,ff[1]=s;for(var p=0;1>p;p+=.05){df[0]=Rn(t,n,r,p),df[1]=Rn(e,i,o,p),h>(v=Qc(ff,df))&&(u=p,h=v)}h=1/0;for(var f=0;32>f&&!(cf>c);f++){var d=u-c,g=u+c;df[0]=Rn(t,n,r,d),df[1]=Rn(e,i,o,d);var v=Qc(df,ff);if(d>=0&&h>v)u=d,h=v;else{gf[0]=Rn(t,n,r,g),gf[1]=Rn(e,i,o,g);var y=Qc(gf,ff);1>=g&&h>y?(u=g,h=y):c*=.5}}return l&&(l[0]=Rn(t,n,r,u),l[1]=Rn(e,i,o,u)),lf(h)}function Hn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;a>=h;h++){var p=h*c,f=Rn(t,n,r,p),d=Rn(e,i,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}function Vn(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=vf(r,i[0]),o=yf(o,i[0]),a=vf(a,i[1]),s=yf(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function Gn(t,e,n,i,r,o){r[0]=vf(t,n),r[1]=vf(e,i),o[0]=yf(t,n),o[1]=yf(e,i)}function jn(t,e,n,i,r,o,a,s,l,u){var c=On,h=An,p=c(t,n,r,a,Tf);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;p>f;f++){var d=h(t,n,r,a,Tf[f]);l[0]=vf(d,l[0]),u[0]=yf(d,u[0])}p=c(e,i,o,s,Cf);for(f=0;p>f;f++){var g=h(e,i,o,s,Cf[f]);l[1]=vf(g,l[1]),u[1]=yf(g,u[1])}l[0]=vf(t,l[0]),u[0]=yf(t,u[0]),l[0]=vf(a,l[0]),u[0]=yf(a,u[0]),l[1]=vf(e,l[1]),u[1]=yf(e,u[1]),l[1]=vf(s,l[1]),u[1]=yf(s,u[1])}function Wn(t,e,n,i,r,o,a,s){var l=Bn,u=Rn,c=yf(vf(l(t,n,r),1),0),h=yf(vf(l(e,i,o),1),0),p=u(t,n,r,c),f=u(e,i,o,h);a[0]=vf(t,r,p),a[1]=vf(e,o,f),s[0]=yf(t,r,p),s[1]=yf(e,o,f)}function Un(t,e,n,i,r,o,a,s,l){var u=rt,c=ot,h=Math.abs(r-o);if(1e-4>h%xf&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(wf[0]=_f(r)*n+t,wf[1]=mf(r)*i+e,bf[0]=_f(o)*n+t,bf[1]=mf(o)*i+e,u(s,wf,bf),c(l,wf,bf),0>(r%=xf)&&(r+=xf),0>(o%=xf)&&(o+=xf),r>o&&!a?o+=xf:o>r&&a&&(r+=xf),a){var p=o;o=r,r=p}for(var f=0;o>f;f+=Math.PI/2)f>r&&(Sf[0]=_f(f)*n+t,Sf[1]=mf(f)*i+e,u(s,Sf,s),c(l,Sf,l))}function $n(t){return Math.round(t/Ff*1e8)/1e8%2*Ff}function Yn(t,e){var n=$n(t[0]);0>n&&(n+=Hf);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Hf?r=n+Hf:e&&n-r>=Hf?r=n-Hf:!e&&n>r?r=n+(Hf-$n(n-r)):e&&r>n&&(r=n-(Hf-$n(r-n))),t[0]=n,t[1]=r}function Xn(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||e-l>a&&i-l>a||o>t+l&&o>n+l||t-l>o&&n-l>o)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return l/2*l/2>=u*u/(s*s+1)}function qn(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;return!(c>e+l&&c>i+l&&c>o+l&&c>s+l||e-l>c&&i-l>c&&o-l>c&&s-l>c||u>t+l&&u>n+l&&u>r+l&&u>a+l||t-l>u&&n-l>u&&r-l>u&&a-l>u)&&l/2>=Ln(t,e,n,i,r,o,a,s,u,c,null)}function Zn(t,e,n,i,r,o,a,s,l){if(0===a)return!1;return!(l>e+a&&l>i+a&&l>o+a||e-a>l&&i-a>l&&o-a>l||s>t+a&&s>n+a&&s>r+a||t-a>s&&n-a>s&&r-a>s)&&a/2>=Fn(t,e,n,i,r,o,s,l,null)}function Kn(t){return 0>(t%=Wf)&&(t+=Wf),t}function Jn(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||n>c+u)return!1;if(Math.abs(i-r)%Uf<1e-4)return!0;if(o){var h=i;i=Kn(r),r=Kn(h)}else i=Kn(i),r=Kn(r);i>r&&(r+=Uf);var p=Math.atan2(l,s);return 0>p&&(p+=Uf),p>=i&&r>=p||p+Uf>=i&&r>=p+Uf}function Qn(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function ti(){var t=Zf[0];Zf[0]=Zf[1],Zf[1]=t}function ei(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var c=Dn(e,i,o,s,u,qf);if(0===c)return 0;for(var h=0,p=-1,f=void 0,d=void 0,g=0;c>g;g++){var v=qf[g],y=0===v||1===v?.5:1;l>An(t,n,r,a,v)||(0>p&&(p=On(e,i,o,s,Zf),Zf[1]<Zf[0]&&p>1&&ti(),f=An(e,i,o,s,Zf[0]),p>1&&(d=An(e,i,o,s,Zf[1]))),h+=2===p?v<Zf[0]?e>f?y:-y:v<Zf[1]?f>d?y:-y:d>s?y:-y:v<Zf[0]?e>f?y:-y:f>s?y:-y)}return h}function ni(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Mn(o))In(a)&&(c=-s/a)>=0&&1>=c&&(r[l++]=c);else{var u=a*a-4*o*s;if(Mn(u))(c=-a/(2*o))>=0&&1>=c&&(r[l++]=c);else if(u>0){var c,h=lf(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&1>=c&&(r[l++]=c),p>=0&&1>=p&&(r[l++]=p)}}return l}(e,i,o,s,qf);if(0===l)return 0;var u=Bn(e,i,o);if(u>=0&&1>=u){for(var c=0,h=Rn(e,i,o,u),p=0;l>p;p++){var f=0===qf[p]||1===qf[p]?.5:1;a>Rn(t,n,r,qf[p])||(c+=qf[p]<u?e>h?f:-f:h>o?f:-f)}return c}f=0===qf[0]||1===qf[0]?.5:1;return a>Rn(t,n,r,qf[0])?0:e>o?f:-f}function ii(t,e,n,i,r,o,a,s){if((s-=e)>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);qf[0]=-l,qf[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=Yf-1e-4){i=0,r=Yf;var c=o?1:-1;return a>=qf[0]+t&&a<=qf[1]+t?c:0}if(i>r){var h=i;i=r,r=h}0>i&&(i+=Yf,r+=Yf);for(var p=0,f=0;2>f;f++){var d=qf[f];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;0>g&&(g=Yf+g),(g>=i&&r>=g||g+Yf>=i&&r>=g+Yf)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function ri(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,p=0,f=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===$f.M&&d>1&&(n||(u+=Qn(c,h,p,f,i,r))),v&&(p=c=s[d],f=h=s[d+1]),g){case $f.M:c=p=s[d++],h=f=s[d++];break;case $f.L:if(n){if(Xn(c,h,s[d],s[d+1],e,i,r))return!0}else u+=Qn(c,h,s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case $f.C:if(n){if(qn(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=ei(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case $f.Q:if(n){if(Zn(c,h,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=ni(c,h,s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case $f.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+y,a=Math.sin(w)*x+m,v?(p=o,f=a):u+=Qn(c,h,o,a,i,r);var T=(i-y)*x/_+y;if(n){if(Jn(y,m,x,w,w+b,S,e,T,r))return!0}else u+=ii(y,m,x,w,w+b,S,T,r);c=Math.cos(w+b)*_+y,h=Math.sin(w+b)*x+m;break;case $f.R:if(p=c=s[d++],f=h=s[d++],o=p+s[d++],a=f+s[d++],n){if(Xn(p,f,o,f,e,i,r)||Xn(o,f,o,a,e,i,r)||Xn(o,a,p,a,e,i,r)||Xn(p,a,p,f,e,i,r))return!0}else u+=Qn(o,f,o,a,i,r),u+=Qn(p,a,p,f,i,r);break;case $f.Z:if(n){if(Xn(c,h,p,f,e,i,r))return!0}else u+=Qn(c,h,p,f,i,r);c=p,h=f}}return n||function(t,e){return Math.abs(t-e)<Xf}(h,f)||(u+=Qn(c,h,p,f,i,r)||0),0!==u}function oi(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ad(2*i)===ad(2*r)&&(t.x1=t.x2=si(i,s,!0)),ad(2*o)===ad(2*a)&&(t.y1=t.y2=si(o,s,!0)),t):t}}function ai(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=si(i,s,!0),t.y=si(r,s,!0),t.width=Math.max(si(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(si(r+a,s,!1)-t.y,0===a?0:1),t):t}}function si(t,e,n){if(!e)return t;var i=ad(2*t);return(i+ad(e))%2==0?i/2:(i+(n?1:-1))/2}function li(t){if(t){t.font=pd.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||fd[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||dd[n]?n:"top",t.padding&&(t.padding=B(t.padding))}}function ui(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ci(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function hi(t){var e=t.text;return null!=e&&(e+=""),e}function pi(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}function fi(t){return null!=t&&"none"!==t}function di(t){if("string"!=typeof t)return t;var e=Od.get(t);return e||(e=Ft(t,-.1),Od.put(t,e)),e}function gi(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function vi(t){gi(t,"emphasis",wd)}function yi(t){t.hoverState===wd&&gi(t,"normal",_d)}function mi(t){gi(t,"blur",xd)}function _i(t){t.hoverState===xd&&gi(t,"normal",_d)}function xi(t){t.selected=!0}function wi(t){t.selected=!1}function bi(t,e,n){e(t,n)}function Si(t,e,n){bi(t,e,n),t.isGroup&&t.traverse(function(t){bi(t,e,n)})}function Ti(t,e){switch(e){case"emphasis":t.hoverState=wd;break;case"normal":t.hoverState=_d;break;case"blur":t.hoverState=xd;break;case"select":t.selected=!0}}function Ci(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&c(n,"select")>=0,o=!1;if(t instanceof td){var a=md(t),s=r&&a.selectFill||a.normalFill,u=r&&a.selectStroke||a.normalStroke;if(fi(s)||fi(u)){var h=(i=i||{}).style||{};!fi(h.fill)&&fi(s)?(o=!0,i=l({},i),(h=l({},h)).fill=di(s)):!fi(h.stroke)&&fi(u)&&(o||(i=l({},i),h=l({},h)),h.stroke=di(u)),i.style=h}}if(i&&null==i.z2){o||(i=l({},i));var p=t.z2EmphasisLift;i.z2=t.z2+(null!=p?p:Td)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=c(t.currentStates,e)>=0,r=t.style.opacity,o=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.saveFinalToTarget(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=l({},n),a=l({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=l({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Cd)}return n}(this,0,n)}return n}function Mi(t){t.stateProxy=Ci;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ci),n&&(n.stateProxy=Ci)}function Ii(t,e){t.__highByOuter|=1<<(e||0),Si(t,vi)}function Ai(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Si(t,yi)}function ki(t){Si(t,_i)}function Di(t){Si(t,xi)}function Oi(t){Si(t,wi)}function Pi(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Li(t,e,n,i,r){function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&ki(i)}}var a=i.getModel();if(n=n||"coordinateSystem",r){if(null!=t&&e&&"none"!==e){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries(function(t){var r=s===t,a=t.coordinateSystem;if(a&&a.master&&(a=a.master),!("series"===n&&!r||"coordinateSystem"===n&&!(a&&l?a===l:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){mi(t)}),f(e))o(t.getData(),e);else if(M(e))for(var c=_(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);u.push(t)}}),a.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.blurSeries&&n.blurSeries(u,a)}})}}else!function(t){t.getModel().eachComponent(function(e,n){("series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n)).group.traverse(function(t){_i(t)})})}(i)}function Ei(t){d(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?Di(e):Oi(e)})})}function Ri(t){var e=[];return t.eachSeries(function(t){d(t.getAllData(),function(n){var i=(n.data,n.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Ni(t,e,n){(function(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)})(t,!0),Si(t,Mi),function(t,e,n){var i=gd(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function Bi(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Pd.length;r++){var o=Pd[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Ld[n]]()}}function zi(t){return!(!t||!t.__highDownDispatcher)}function Fi(t){var e=t.type;return e===Ad||e===kd||e===Dd}function Hi(t){var e=t.type;return e===Md||e===Id}function Vi(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Gi(t,e){return(t[0]*e[0]+t[1]*e[1])/(Vi(t)*Vi(e))}function ji(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Gi(t,e))}function Wi(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Vd/180),p=Hd(h)*(t-n)/2+Fd(h)*(e-i)/2,f=-1*Fd(h)*(t-n)/2+Hd(h)*(e-i)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=zd(d),s*=zd(d));var g=(r===o?-1:1)*zd((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+n)/2+Hd(h)*v-Fd(h)*y,_=(e+i)/2+Fd(h)*v+Hd(h)*y,x=ji([1,0],[(p-v)/a,(f-y)/s]),w=[(p-v)/a,(f-y)/s],b=[(-1*p-v)/a,(-1*f-y)/s],S=ji(w,b);if(Gi(w,b)<=-1&&(S=Vd),Gi(w,b)>=1&&(S=0),0>S){var T=Math.round(S/Vd*1e6)/1e6;S=2*Vd+T%2*Vd}c.addData(u,m,_,a,s,x,S,h,o)}function Ui(t){return null!=t.setData}function $i(t,e){var n=function(t){var e=new jf;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=jf.CMD,l=t.match(Gd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,f=c.match(jd)||[],d=f.length,g=0;d>g;g++)f[g]=parseFloat(f[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=i,C=r,M=void 0,I=void 0;switch(h){case"l":i+=f[v++],r+=f[v++],p=s.L,e.addData(p,i,r);break;case"L":i=f[v++],r=f[v++],p=s.L,e.addData(p,i,r);break;case"m":i+=f[v++],r+=f[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=f[v++],r=f[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=f[v++],p=s.L,e.addData(p,i,r);break;case"H":i=f[v++],p=s.L,e.addData(p,i,r);break;case"v":r+=f[v++],p=s.L,e.addData(p,i,r);break;case"V":r=f[v++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":p=s.C,e.addData(p,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":y=i,m=r,M=e.len(),I=e.data,n===s.C&&(y+=i-I[M-4],m+=r-I[M-3]),p=s.C,T=f[v++],C=f[v++],i=f[v++],r=f[v++],e.addData(p,y,m,T,C,i,r);break;case"s":y=i,m=r,M=e.len(),I=e.data,n===s.C&&(y+=i-I[M-4],m+=r-I[M-3]),p=s.C,T=i+f[v++],C=r+f[v++],i+=f[v++],r+=f[v++],e.addData(p,y,m,T,C,i,r);break;case"Q":T=f[v++],C=f[v++],i=f[v++],r=f[v++],p=s.Q,e.addData(p,T,C,i,r);break;case"q":T=f[v++]+i,C=f[v++]+r,i+=f[v++],r+=f[v++],p=s.Q,e.addData(p,T,C,i,r);break;case"T":y=i,m=r,M=e.len(),I=e.data,n===s.Q&&(y+=i-I[M-4],m+=r-I[M-3]),i=f[v++],r=f[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"t":y=i,m=r,M=e.len(),I=e.data,n===s.Q&&(y+=i-I[M-4],m+=r-I[M-3]),i+=f[v++],r+=f[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"A":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],Wi(T=i,C=r,i=f[v++],r=f[v++],b,S,_,x,w,p=s.A,e);break;case"a":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],Wi(T=i,C=r,i+=f[v++],r+=f[v++],b,S,_,x,w,p=s.A,e)}}("z"===h||"Z"===h)&&(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}(t),i=l({},e);return i.buildPath=function(t){if(Ui(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){(function(t,e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Ed.M,h=Ed.C,p=Ed.L,f=Ed.R,d=Ed.A,g=Ed.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case d:var v=e[4],y=e[5],m=Nd(e[0]*e[0]+e[1]*e[1]),_=Nd(e[2]*e[2]+e[3]*e[3]),x=Bd(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case f:s[0]=l[r++],s[1]=l[r++],it(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],it(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var w=Rd[a];w[0]=l[r++],w[1]=l[r++],it(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()})(n,t),this.dirtyShape()},i}function Yi(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/ng(s*s+l*l),c=u*l,h=-u*s,p=t+c,f=e+h,d=n+c,g=i+h,v=(p+d)/2,y=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,w=r-o,b=p*g-d*f,S=(0>_?-1:1)*ng(ig(0,w*w*x-b*b)),T=(b*_-m*S)/x,C=(-b*m-_*S)/x,M=(b*_+m*S)/x,I=(-b*m+_*S)/x,A=T-v,k=C-y,D=M-v,O=I-y;return A*A+k*k>D*D+O*O&&(T=M,C=I),{cx:T,cy:C,x01:-c,y01:-h,x11:T*(r/w-1),y11:C*(r/w-1)}}function Xi(t,e){var n=ig(e.r,0),i=ig(e.r0||0,0),r=n>0;if(r||i>0){if(r||(n=i,i=0),i>n){var o=n;n=i,i=o}var a,s=!!e.clockwise,l=e.startAngle,u=e.endAngle;if(l===u)a=0;else{var c=[l,u];Yn(c,!s),a=eg(c[0]-c[1])}var h=e.cx,p=e.cy,f=e.cornerRadius||0,d=e.innerCornerRadius||0;if(n>og)if(a>Zd-og)t.moveTo(h+n*Jd(l),p+n*Kd(l)),t.arc(h,p,n,l,u,!s),i>og&&(t.moveTo(h+i*Jd(u),p+i*Kd(u)),t.arc(h,p,i,u,l,s));else{var g=eg(n-i)/2,v=rg(g,f),y=rg(g,d),m=y,_=v,x=n*Jd(l),w=n*Kd(l),b=i*Jd(u),S=i*Kd(u),T=void 0,C=void 0,M=void 0,I=void 0;if((v>og||y>og)&&(T=n*Jd(u),C=n*Kd(u),M=i*Jd(l),I=i*Kd(l),qd>a)){var A=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;return og>p*p?void 0:[t+(p=(c*(e-o)-h*(t-r))/p)*l,e+p*u]}(x,w,M,I,T,C,b,S);if(A){var k=x-A[0],D=w-A[1],O=T-A[0],P=C-A[1],L=1/Kd(Qd((k*O+D*P)/(ng(k*k+D*D)*ng(O*O+P*P)))/2),E=ng(A[0]*A[0]+A[1]*A[1]);m=rg(y,(i-E)/(L-1)),_=rg(v,(n-E)/(L+1))}}if(a>og)if(_>og){var R=Yi(M,I,x,w,n,_,s),N=Yi(T,C,b,S,n,_,s);t.moveTo(h+R.cx+R.x01,p+R.cy+R.y01),v>_?t.arc(h+R.cx,p+R.cy,_,tg(R.y01,R.x01),tg(N.y01,N.x01),!s):(t.arc(h+R.cx,p+R.cy,_,tg(R.y01,R.x01),tg(R.y11,R.x11),!s),t.arc(h,p,n,tg(R.cy+R.y11,R.cx+R.x11),tg(N.cy+N.y11,N.cx+N.x11),!s),t.arc(h+N.cx,p+N.cy,_,tg(N.y11,N.x11),tg(N.y01,N.x01),!s))}else t.moveTo(h+x,p+w),t.arc(h,p,n,l,u,!s);else t.moveTo(h+x,p+w);if(i>og&&a>og)if(m>og){R=Yi(b,S,T,C,i,-m,s),N=Yi(x,w,M,I,i,-m,s);t.lineTo(h+R.cx+R.x01,p+R.cy+R.y01),y>m?t.arc(h+R.cx,p+R.cy,m,tg(R.y01,R.x01),tg(N.y01,N.x01),!s):(t.arc(h+R.cx,p+R.cy,m,tg(R.y01,R.x01),tg(R.y11,R.x11),!s),t.arc(h,p,i,tg(R.cy+R.y11,R.cx+R.x11),tg(N.cy+N.y11,N.cx+N.x11),s),t.arc(h+N.cx,p+N.cy,m,tg(N.y11,N.x11),tg(N.y01,N.x01),!s))}else t.lineTo(h+b,p+S),t.arc(h,p,i,u,l,s);else t.lineTo(h+b,p+S)}else t.moveTo(h,p);t.closePath()}}function qi(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function Zi(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i&&"spline"!==i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;f>p;p++)rt(a,a,t[p]),ot(s,s,t[p]);rt(a,a,i[0]),ot(s,s,i[1])}for(p=0,f=t.length;f>p;p++){var d=t[p];if(n)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(Y(t[p]));continue}r=t[p-1],o=t[p+1]}q(u,o,r),J(u,u,e);var g=tt(d,r),v=tt(d,o),y=g+v;0!==y&&(g/=y,v/=y),J(c,u,-g),J(h,u,v);var m=X([],d,c),_=X([],d,h);i&&(ot(m,m,a),rt(m,m,s),ot(_,_,a),rt(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===i&&(r=function(t,e){for(var n=t.length,i=[],r=0,o=1;n>o;o++)r+=tt(t[o-1],t[o]);var a=r/2;for(a=n>a?n:a,o=0;a>o;o++){var s=o/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,c=void 0,h=t[l%n],p=void 0,f=void 0;e?(c=t[(l-1+n)%n],p=t[(l+1)%n],f=t[(l+2)%n]):(c=t[0===l?l:l-1],p=t[l>n-2?n-1:l+1],f=t[l>n-3?n-1:l+2]);var d=u*u,g=u*d;i.push([qi(c[0],h[0],p[0],f[0],u,d,g),qi(c[1],h[1],p[1],f[1],u,d,g)])}return i}(r,n)),t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;h>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Ki(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?kn:An)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?kn:An)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Nn:Rn)(t.x1,t.cpx1,t.x2,e),(n?Nn:Rn)(t.y1,t.cpy1,t.y2,e)]}function Ji(t){return td.extend(t)}function Qi(t,e){return Ng(t,e)}function tr(t,e){Rg[t]=e}function er(t){return Rg.hasOwnProperty(t)?Rg[t]:void 0}function nr(t,e,n,i){var r=function(t,e){return new Wd($i(t,e))}(t,e);return n&&("center"===i&&(n=rr(n,r.getBoundingRect())),or(r,n)),r}function ir(t,e,n){var i=new od({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(rr(e,r))}}});return i}function rr(t,e){var n,i=e.width/e.height,r=t.height*i;return r<=t.width?n=t.height:n=(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}function or(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function ar(t,e,n,i,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):M(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u,c="update"===t,h="remove"===t;if(i&&i.ecModel){var p=i.ecModel.getUpdatePayload();u=p&&p.animation}var f=i&&i.isAnimationEnabled();if(h||e.stopAnimation("remove"),f){var d=void 0,g=void 0,v=void 0;u?(d=u.duration||0,g=u.easing||"cubicOut",v=u.delay||0):h?(d=E((s=s||{}).duration,200),g=E(s.easing,"cubicOut"),v=0):(d=i.getShallow(c?"animationDurationUpdate":"animationDuration"),g=i.getShallow(c?"animationEasingUpdate":"animationEasing"),v=i.getShallow(c?"animationDelayUpdate":"animationDelay")),"function"==typeof v&&(v=v(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof d&&(d=d(r)),d>0?l?e.animateFrom(n,{duration:d,delay:v||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:d,delay:v||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function sr(t,e,n,i,r,o){ar("update",t,e,n,i,r,o)}function lr(t,e,n,i,r,o){ar("init",t,e,n,i,r,o)}function ur(t,e,n,i,r,o){pr(t)||ar("remove",t,e,n,i,r,o)}function cr(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),ur(t,{style:{opacity:0}},e,n,i)}function hr(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||cr(t,e,n,i)}):cr(t,e,n,i)}function pr(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("remove"===t.animators[e].scope)return!0}return!1}function fr(t,e){for(var n=xt([]);t&&t!==e;)bt(n,t.getLocalTransform(),n),t=t.parent;return n}function dr(t,e,n){return e&&!f(e)&&(e=Ih.getLocalTransform(e)),n&&(e=Mt([],e)),it([],t,e)}function gr(t){return!t.isGroup}function vr(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=l({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){gr(t)&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(gr(t)&&t.anid){var e=r[t.anid];if(e){var o=i(t);t.attr(i(e)),sr(t,o,n,gd(t).dataIndex)}}})}}function yr(t,e){return g(t,function(t){var n=t[0];n=Lg(n,e.x),n=Eg(n,e.x+e.width);var i=t[1];return i=Lg(i,e.y),[n,i=Eg(i,e.y+e.height)]})}function mr(t,e){var n=Lg(t.x,e.x),i=Eg(t.x+t.width,e.x+e.width),r=Lg(t.y,e.y),o=Eg(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function _r(t,e,n){var i=l({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),u(r,n),new od(i)):nr(t.replace("path://",""),i,n,"center"):void 0}function xr(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=wr(c,h,l,u);if(function(t){return 1e-6>=t&&t>=-1e-6}(p))return!1;var f=t-r,d=e-o,g=wr(f,d,l,u)/p;if(0>g||g>1)return!1;var v=wr(f,d,c,h)/p;return!(0>v||v>1)}function wr(t,e,n,i){return t*i-n*e}function br(t,e){for(var n=0;n<bd.length;n++){var i=bd[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Sr(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=b(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<bd.length;u++){var c=bd[u],h=e[c];l[c]=E(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function Tr(t,e,n,i){n=n||Hg;for(var r=t instanceof pd,o=!1,a=0;a<Sd.length;a++){if((p=e[Sd[a]])&&p.getShallow("show")){o=!0;break}}var s=r?t:t.getTextContent();if(o){r||(s||(s=new pd,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Sr(n,e),u=e.normal,c=!!u.getShallow("show"),h=Mr(u,i&&i.normal,n,!1,!r);h.text=l.normal,r||t.setTextConfig(Ir(u,n,!1));for(a=0;a<bd.length;a++){var p,f=bd[a];if(p=e[f]){var d=s.ensureState(f),g=!!E(p.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Mr(p,i&&i[f],n,!0,!r),d.style.text=l[f],!r)t.ensureState(f).textConfig=Ir(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(Wg(s).setLabelText=function(t){var i=Sr(n,e,t);br(s,i)})}else s&&(s.ignore=!0);t.dirty()}function Cr(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<bd.length;i++){var r=bd[i];n[r]=t.getModel([r,e])}return n}function Mr(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||Hg;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Hg).rich;if(n){e=e||{};for(var i=_(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Ar(o[u]={},c,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p),Ar(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&l(o,e),o}function Ir(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=E(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Ar(t,e,n,i,r,o,a,s){n=!r&&n||Hg;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=E(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var p=E(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=E(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var d=E(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<Vg.length;g++){var v=Vg[g];null!=(m=E(e.getShallow(v),n[v]))&&(t[v]=m)}for(g=0;g<Gg.length;g++){v=Gg[g];null!=(m=e.getShallow(v))&&(t[v]=m)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<jg.length;g++){var m;v=jg[g];null!=(m=e.getShallow(v))&&(t[v]=m)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function kr(t){return[t||"",ev++].join("_")}function Dr(t,e){t=t.toUpperCase(),av[t]=new tv(e),ov[t]=e}function Or(t){if(S(t)){var e=ov[t.toUpperCase()]||{};return t===nv||t===iv?a(e):s(a(e),a(ov[rv]),!1)}return s(a(t),a(ov[rv]),!1)}function Pr(t,e){return"0000".substr(0,e-(t+="").length)+t}function Lr(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 Er(t){return t===Lr(t)}function Rr(t,e,n,i){var r=Be(t),o=r[zr(n)](),a=r[Fr(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Hr(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Vr(n)](),h=(c-1)%12+1,p=r[Gr(n)](),f=r[jr(n)](),d=r[Wr(n)](),g=(i instanceof tv?i:function(t){return av[t]}(i||sv)||av[rv]).getModel("time"),v=g.get("month"),y=g.get("monthAbbr"),m=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Pr(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Pr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Pr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Pr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Pr(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Pr(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Pr(d,3)).replace(/{S}/g,d+"")}function Nr(t,e){var n=Be(t),i=n[Fr(e)]()+1,r=n[Hr(e)](),o=n[Vr(e)](),a=n[Gr(e)](),s=n[jr(e)](),l=0===n[Wr(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===r;return p&&1===i?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Br(t,e,n){var i="number"==typeof t?Be(t):t;switch(e=e||Nr(t,n)){case"year":return i[zr(n)]();case"half-year":return i[Fr(n)]()>=6?1:0;case"quarter":return Math.floor((i[Fr(n)]()+1)/4);case"month":return i[Fr(n)]();case"day":return i[Hr(n)]();case"half-day":return i[Vr(n)]()/24;case"hour":return i[Vr(n)]();case"minute":return i[Gr(n)]();case"second":return i[jr(n)]();case"millisecond":return i[Wr(n)]()}}function zr(t){return t?"getUTCFullYear":"getFullYear"}function Fr(t){return t?"getUTCMonth":"getMonth"}function Hr(t){return t?"getUTCDate":"getDate"}function Vr(t){return t?"getUTCHours":"getHours"}function Gr(t){return t?"getUTCMinutes":"getMinutes"}function jr(t){return t?"getUTCSeconds":"getSeconds"}function Wr(t){return t?"getUTCSeconds":"getSeconds"}function Ur(t){return t?"setUTCFullYear":"setFullYear"}function $r(t){return t?"setUTCMonth":"setMonth"}function Yr(t){return t?"setUTCDate":"setDate"}function Xr(t){return t?"setUTCHours":"setHours"}function qr(t){return t?"setUTCMinutes":"setMinutes"}function Zr(t){return t?"setUTCSeconds":"setSeconds"}function Kr(t){return t?"setUTCSeconds":"setSeconds"}function Jr(t){if(!Ge(t))return S(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Qr(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function to(t){return null==t?"":(t+"").replace(_v,function(t,e){return xv[e]})}function eo(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 s=o?Be(t):t;if(!isNaN(+s))return Rr(s,"yyyy-MM-dd hh:mm:ss",n);if(a)return"-"}if("ordinal"===e)return T(t)?i(t):C(t)&&r(t)?t+"":"-";var l=Ve(t);return r(l)?Jr(l):T(t)?i(t):"-"}function no(t,e,n){w(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=wv[o];t=t.replace(bv(a),bv(a,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(bv(wv[l],s),n?to(u):u)}return t}function io(t,e){var n=S(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+to(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+to(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function ro(t,e){return e=e||"transparent",S(t)?t:M(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function oo(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function ao(t,e,n){n=mv(n||0);var i=e.width,r=e.height,o=De(t.left,i),a=De(t.top,r),s=De(t.right,i),l=De(t.bottom,r),u=De(t.width,i),c=De(t.height,r),h=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var d=new Jh(o+n[3],a+n[0],u,c);return d.margin=n,d}function so(t){var e=t.layoutMode||t.constructor.layoutMode;return M(e)?e:e?{type:e}:null}function lo(t,e,n){function i(n,i){var a={},l=0,u={},c=0;if(Sv(n,function(e){u[e]=t[e]}),Sv(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&c++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&l){if(l>=2)return a;for(var h=0;h<n.length;h++){var p=n[h];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){Sv(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!w(s)&&(s=[s,s]);var l=i(Cv[0],0),u=i(Cv[1],1);a(Cv[0],t,l),a(Cv[1],t,u)}function uo(t){return function(t,e){return e&&t&&Sv(Tv,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}({},t)}function co(t,e,n){function i(t,e,n){for(var i=0;n>i;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=po(e);if(!a||!t)return o;var s,l,u=[],c=[],h=e.ecModel,p=Wv(h).datasetMap,f=a.uid+"_"+n.seriesLayoutBy;d(t=t.slice(),function(e,n){var i=M(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return d(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=g.valueWayDim;i(o[n],l,a),i(c,l,a),g.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{l=g.categoryWayDim;i(o[n],l,a),i(c,l,a),g.categoryWayDim+=a}}),u.length&&(o.itemName=u),c.length&&(o.seriesName=c),o}function ho(t,e,n){var i={};if(!po(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;(o===Bv||o===zv)&&d(a,function(t,e){"name"===(M(t)?t.name:t)&&(r=e)});var s=function(){function t(t){return null!=t.v&&null!=t.n}for(var i={},s={},l=[],u=0,c=Math.min(5,n);c>u;u++){var h=go(e.data,o,e.seriesLayoutBy,a,e.startIndex,u);l.push(h);var p=h===jv.Not;if(p&&null==i.v&&u!==r&&(i.v=u),(null==i.n||i.n===i.v||!p&&l[i.n]===jv.Not)&&(i.n=u),t(i)&&l[i.n]!==jv.Not)return i;p||(h===jv.Might&&null==s.v&&u!==r&&(s.v=u),(null==s.n||s.n===s.v)&&(s.n=u))}return t(i)?i:t(s)?s:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function po(t){return t.get("data",!0)?void 0:on(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Hp).models[0]}function fo(t,e){return go(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function go(t,e,n,i,r,o){function a(t){var e=S(t);return null!=t&&isFinite(t)&&""!==t?e?jv.Might:jv.Not:e&&"-"!==t?jv.Must:void 0}var s,l,u;if(A(t))return jv.Not;if(i){var c=i[o];M(c)?(l=c.name,u=c.type):S(c)&&(l=c)}if(null!=u)return"ordinal"===u?jv.Must:jv.Not;if(e===Nv){var h=t;if(n===Gv){for(var p=h[o],f=0;f<(p||[]).length&&5>f;f++)if(null!=(s=a(p[r+f])))return s}else for(f=0;f<h.length&&5>f;f++){var d=h[r+f];if(d&&null!=(s=a(d[o])))return s}}else if(e===Bv){var g=t;if(!l)return jv.Not;for(f=0;f<g.length&&5>f;f++){if((m=g[f])&&null!=(s=a(m[l])))return s}}else if(e===zv){var v=t;if(!l)return jv.Not;if(!(p=v[l])||A(p))return jv.Not;for(f=0;f<p.length&&5>f;f++)if(null!=(s=a(p[f])))return s}else if(e===Rv){var y=t;for(f=0;f<y.length&&5>f;f++){var m,_=Xe(m=y[f]);if(!w(_))return jv.Not;if(null!=(s=a(_[o])))return s}}return jv.Not}function vo(t,e,n){if(w(e)){var i=G();return d(e,function(t){null!=t&&(null!=Je(t,null)&&i.set(t,!0))}),y(n,function(e){return e&&i.get(e[t])})}var r=Je(e,null);return y(n,function(e){return e&&null!=r&&e[t]===r})}function yo(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t&&t.subType===e.subType}):t}function mo(t){var e=G();return t&&d($e(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function _o(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return d(t,function(t,e){var n=e.match(oy);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e})(i[a],t,o)||(r=!1)}}),r}function xo(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=uy.length;i>n;n++){var r=uy[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 wo(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var 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,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function bo(t){wo(t,"itemStyle"),wo(t,"lineStyle"),wo(t,"areaStyle"),wo(t,"label"),wo(t,"labelLine"),wo(t,"upperLabel"),wo(t,"edgeLabel")}function So(t,e){var n=ly(t)&&t[e],i=ly(n)&&n.textStyle;if(i)for(var r=0,o=zp.length;o>r;r++){var a=zp[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function To(t){t&&(bo(t),So(t,"label"),t.emphasis&&So(t.emphasis,"label"))}function Co(t){return w(t)?t:t?[t]:[]}function Mo(t){return(w(t)?t[0]:t)||{}}function Io(t,e){sy(Co(t.series),function(t){ly(t)&&function(t){if(ly(t)){xo(t),bo(t),So(t,"label"),So(t,"upperLabel"),So(t,"edgeLabel"),t.emphasis&&(So(t.emphasis,"label"),So(t.emphasis,"upperLabel"),So(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(xo(e),To(e));var n=t.markLine;n&&(xo(n),To(n));var i=t.markArea;i&&To(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!A(o))for(var a=0;a<o.length;a++)To(o[a]);d(t.categories,function(t){bo(t)})}if(r&&!A(r))for(a=0;a<r.length;a++)To(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)To(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)w(l[a])?(To(l[a][0]),To(l[a][1])):To(l[a])}"gauge"===t.type?(So(t,"axisLabel"),So(t,"title"),So(t,"detail")):"treemap"===t.type?(wo(t.breadcrumb,"itemStyle"),d(t.levels,function(t){bo(t)})):"tree"===t.type&&bo(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),sy(n,function(e){sy(Co(t[e]),function(t){t&&(So(t,"axisLabel"),So(t.axisPointer,"label"))})}),sy(Co(t.parallel),function(t){var e=t&&t.parallelAxisDefault;So(e,"axisLabel"),So(e&&e.axisPointer,"label")}),sy(Co(t.calendar),function(t){wo(t,"itemStyle"),So(t,"dayLabel"),So(t,"monthLabel"),So(t,"yearLabel")}),sy(Co(t.radar),function(t){So(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)}),sy(Co(t.geo),function(t){ly(t)&&(To(t),sy(Co(t.regions),function(t){To(t)}))}),sy(Co(t.timeline),function(t){To(t),wo(t,"label"),wo(t,"itemStyle"),wo(t,"controlStyle",!0);var e=t.data;w(e)&&d(e,function(t){M(t)&&(wo(t,"label"),wo(t,"itemStyle"))})}),sy(Co(t.toolbox),function(t){wo(t,"iconStyle"),sy(t.feature,function(t){wo(t,"iconStyle")})}),So(Mo(t.axisPointer),"label"),So(Mo(t.tooltip).axisPointer,"label")}function Ao(t){t&&d(cy,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function ko(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<py.length;n++){var i=py[n][1],r=py[n][0];null!=e[i]&&(e[r]=e[i])}}function Do(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Oo(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Po(t,e){Io(t,e),t.series=$e(t.series),d(t.series,function(t){if(M(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Do(t.label),(r=t.data)&&!A(r))for(var n=0;n<r.length;n++)Do(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=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");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(ko(t),ko(t.backgroundStyle),ko(t.emphasis),(r=t.data)&&!A(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(ko(r[n]),ko(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Oo(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,Oo)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(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)),Ao(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(hy,function(e){var n=t[e];n&&(w(n)||(n=[n]),d(n,function(t){Ao(t)}))})}function Lo(t){d(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,function(o,l,u){var c,h,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?h=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=NaN,d=n-1;d>=0;d--){var g=t[d];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(p>=0&&v>0||0>=p&&0>v){p+=v,f=v;break}}}return i[0]=p,i[1]=f,i});a.hostModel.setData(l),e.data=l})}function Eo(t){return t instanceof fy}function Ro(t,e,n,i){n=n||Fo(t);var r=e.seriesLayoutBy,o=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Ho(r),startIndex:a,dimensionsDetectedCount:o};if(e===Nv){var s=t;"auto"===i||null==i?Vo(function(t){null!=t&&"-"!==t&&(S(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],Vo(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Gv?s.length:s[0]?s[0].length:null}else if(e===Bv)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return d(e,function(t,e){i.push(e)}),i}}(t));else if(e===zv)r||(r=[],d(t,function(t,e){r.push(e)}));else if(e===Rv){var l=Xe(t[0]);o=w(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Ho(r),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new fy({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:zo(i),metaRawOption:a(e)})}function No(t){return new fy({data:t,sourceFormat:A(t)?Fv:Rv})}function Bo(t){return new fy({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount,encodeDefine:zo(t.encodeDefine)})}function zo(t){return t?G(t):null}function Fo(t){var e=Hv;if(A(t))e=Fv;else if(w(t)){0===t.length&&(e=Nv);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(w(r)){e=Nv;break}if(M(r)){e=Bv;break}}}}else if(M(t))for(var o in t)if(W(t,o)&&f(t[o])){e=zv;break}return e}function Ho(t){if(t){var e=G();return g(t,function(t){var n={name:(t=M(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Vo(t,e,n,i){if(e===Gv)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&i>r;r++)t(o[r],r)}}function Go(t,e){return vy[Uo(t,e)]}function jo(t,e){return my[Uo(t,e)]}function Wo(t){return xy[t]}function Uo(t,e){return t===Nv?t+"_"+e:t}function $o(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,o=s.index),Wo(a)(i,o,r)}}}function Yo(t){var e,n;return M(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function Xo(t){return new Sy(t)}function qo(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Be(t)),null==t||""===t?NaN:+t}function Zo(t){if(!ea(t.sourceFormat)){Ue("")}return t.data}function Ko(t){var e=t.sourceFormat,n=t.data;if(!ea(e)){Ue("")}if(e===Nv){for(var i=[],r=0,o=n.length;o>r;r++)i.push(n[r].slice());return i}if(e===Bv){for(i=[],r=0,o=n.length;o>r;r++)i.push(l({},n[r]));return i}}function Jo(t,e,n){return null!=n?"number"==typeof n||!isNaN(n)&&!W(e,n)?t[n]:W(e,n)?e[n]:void 0:void 0}function Qo(t){return a(t)}function ta(t,e){e.length||Ue(""),M(t)||Ue("");var n=t.type,i=Ay.get(n);i||Ue("");var r=g(e,function(t){return function(t,e){var n=new Iy,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Vv&&Ue("");var a=[],s={},l=t.dimensionsDefine;if(l)d(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(W(s,n)&&Ue(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Go(r,Vv);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=$c(Zo,null,t)),n.cloneRawData=$c(Ko,null,t);var h=jo(r,Vv);n.count=$c(h,null,i,o,a);var p=Wo(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=$c(Jo,null,a,s),n.cloneAllDimensionInfo=$c(Qo,null,a),n}(t,i)});return g($e(i.transform({upstream:r[0],upstreamList:r,config:a(t.config)})),function(t,n){M(t)||Ue(""),t.data||Ue(""),ea(Fo(t.data))||Ue("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:Vv,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:Vv,sourceHeader:0,dimensions:t.dimensions};return Ro(t.data,i,null,null)})}function ea(t){return t===Nv||t===Bv}function na(t){t.option.transform&&H(t.option.transform)}function ia(t){return"series"===t.mainType}function ra(t){throw new Error(t)}function oa(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+to(i+"")+"px;color:"+to(n)+";font-weight:"+to(r+""),valueStyle:"font-size:"+to(a+"")+"px;color:"+to(o)+";font-weight:"+to(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function aa(t,e){return e.type=t,e}function sa(t){return W(Ly,t.type)&&Ly[t.type]}function la(t,e,n,i,r,o){if(t){var a=sa(t);a.planLayout(t);var s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e};return a.build(s,t,0,o)}}function ua(t){var e=t.__gapLevelBetweenSubBlocks;return{html:Oy[e],richText:Py[e]}}function ca(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Dy+';">'+t+'<div style="clear:both"></div></div>'}function ha(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function pa(t,e){return ro(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function fa(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function da(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?c.push(aa("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=v(t,function(t,e,n){var i=a.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),l=[],u=[],c=[];return i.length?d(i,function(t){o($o(a,n,t),t)}):d(t,o),{inlineValues:l,inlineValueTypes:u,blocks:c}}function ga(t,e){return t.getName(e)||t.getId(e)}function va(t){var e=t.name;Qe(t)||(t.name=function(t){var e=t.getRawData(),n=[];return d(e.mapDimensionsAll("seriesName"),function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}(t)||e)}function ya(t){return t.model.getRawData().count()}function ma(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),_a}function _a(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function xa(t,e){d(n(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,x(wa,e))})}function wa(t,e){var n=ba(t);return n&&n.setOutputEnd((e||this).count()),e}function ba(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function Sa(){var t=nn();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Ta(t,e,n){t&&("emphasis"===e?Ii:Ai)(t,n)}function Ca(t,e,n){var i=en(t,e),r=e&&null!=e.highlightKey?function(t){var e=yd[t];return null==e&&32>=vd&&(e=yd[t]=vd++),e}(e.highlightKey):null;null!=i?d($e(i),function(e){Ta(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Ta(t,n,r)})}function Ma(t){return Fy(t.model)}function Ia(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&zy(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),Gy[l]}function Aa(t,e,n){function i(){c=(new Date).getTime(),h=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,c=0,h=null;e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),a=this,s=t;var f=l||e,d=l||n;l=null,o=r-(d?u:c)-f,clearTimeout(h),d?h=setTimeout(i,f):o>=0?i():h=setTimeout(i,-o),u=r};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){l=t},p}function ka(t,e){var n=t.visualStyleMapper||Yy[e];return n||(console.warn("Unkown style type '"+e+"'."),Yy.itemStyle)}function Da(t,e){var n=t.visualDrawType||Xy[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}function Oa(t){t.overallReset(t.ecModel,t.api,t.payload)}function Pa(t){return t.overallProgress&&La}function La(){this.agent.dirty(),this.getDownstream().dirty()}function Ea(){this.agent&&this.agent.dirty()}function Ra(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Na(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=$e(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?g(e,function(t,e){return Ba(e)}):em}function Ba(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 za(t){return t.data.count()}function Fa(t,e){for(var n in e.prototype)t[n]=U}function Ha(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Va(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%vm<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var p=i;i=Kn(r),r=Kn(p)}else i=Kn(i),r=Kn(r);i>r&&(r+=vm);var f=Math.atan2(s,a);if(0>f&&(f+=vm),f>=i&&r>=f||f+vm>=i&&r>=f+vm)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(i)+t,g=n*Math.sin(i)+e,v=n*Math.cos(r)+t,y=n*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function Ga(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h),f=(l*(c/=p)+u*(h/=p))/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var d=a[0]=t+f*c,g=a[1]=e+f*h;return Math.sqrt((d-r)*(d-r)+(g-o)*(g-o))}function ja(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}function Wa(t,e,n){var i=ja(e.x,e.y,e.width,e.height,t.x,t.y,_m);return n.set(_m[0],_m[1]),i}function Ua(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,p=t.y,f=0;f<c.length;){var d=c[f++];1===f&&(s=o=c[f],l=a=c[f+1]);var g=u;switch(d){case ym.M:o=s=c[f++],a=l=c[f++];break;case ym.L:g=Ga(o,a,c[f],c[f+1],h,p,_m,!0),o=c[f++],a=c[f++];break;case ym.C:g=Ln(o,a,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,p,_m),o=c[f++],a=c[f++];break;case ym.Q:g=Fn(o,a,c[f++],c[f++],c[f],c[f+1],h,p,_m),o=c[f++],a=c[f++];break;case ym.A:var v=c[f++],y=c[f++],m=c[f++],_=c[f++],x=c[f++],w=c[f++];f+=1;var b=!!(1-c[f++]);i=Math.cos(x)*m+v,r=Math.sin(x)*_+y,1>=f&&(s=i,l=r),g=Va(v,y,_,x,x+w,b,(h-v)*_/m+v,p,_m),o=Math.cos(x+w)*m+v,a=Math.sin(x+w)*_+y;break;case ym.R:g=ja(s=o=c[f++],l=a=c[f++],c[f++],c[f++],h,p,_m);break;case ym.Z:g=Ga(o,a,s,l,h,p,_m,!0),o=s,a=l}u>g&&(u=g,n.set(_m[0],_m[1]))}return u}function $a(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||mm,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&Mt([],c),p=e.get("length2")||0;u&&bm.copy(u);for(var f=0;f<a.length;f++){Ha(a[f],0,s,xm,Sm),jh.scaleAndAdd(wm,xm,Sm,p),wm.transform(h);var d=t.getBoundingRect(),g=u?u.distance(wm):t instanceof td?Ua(wm,t.path,bm):Wa(wm,d,bm);l>g&&(l=g,wm.transform(c),bm.transform(c),bm.toArray(o[0]),wm.toArray(o[1]),xm.toArray(o[2]))}Ya(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function Ya(t,e){if(180>=e&&e>0){e=e/180*Math.PI,xm.fromArray(t[0]),wm.fromArray(t[1]),bm.fromArray(t[2]),jh.sub(Sm,xm,wm),jh.sub(Tm,bm,wm);var n=Sm.len(),i=Tm.len();if(!(.001>n||.001>i))if(Sm.scale(1/n),Tm.scale(1/i),Sm.dot(Tm)>Math.cos(e)){var r=Ga(wm.x,wm.y,bm.x,bm.y,xm.x,xm.y,Cm,!1);Mm.fromArray(Cm),Mm.scaleAndAdd(Tm,r/Math.tan(Math.PI-e));var o=bm.x!==wm.x?(Mm.x-wm.x)/(bm.x-wm.x):(Mm.y-wm.y)/(bm.y-wm.y);if(isNaN(o))return;0>o?jh.copy(Mm,wm):o>1&&jh.copy(Mm,bm),Mm.toArray(t[1])}}}function Xa(t,e,n){if(180>=n&&n>0){n=n/180*Math.PI,xm.fromArray(t[0]),wm.fromArray(t[1]),bm.fromArray(t[2]),jh.sub(Sm,wm,xm),jh.sub(Tm,bm,wm);var i=Sm.len(),r=Tm.len();if(!(.001>i||.001>r)){Sm.scale(1/i),Tm.scale(1/r);var o=Sm.dot(e);if(Math.cos(n)>o){var a=Ga(wm.x,wm.y,bm.x,bm.y,xm.x,xm.y,Cm,!1);Mm.fromArray(Cm);var s=Math.PI/2,l=s+Math.acos(Tm.dot(e))-n;if(l>=s)jh.copy(Mm,bm);else{Mm.scaleAndAdd(Tm,a/Math.tan(Math.PI/2-l));var u=bm.x!==wm.x?(Mm.x-wm.x)/(bm.x-wm.x):(Mm.y-wm.y)/(bm.y-wm.y);if(isNaN(u))return;0>u?jh.copy(Mm,wm):u>1&&jh.copy(Mm,bm)}Mm.toArray(t[1])}}}}function qa(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Za(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Jc(i[0],i[1]),o=Jc(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=nt([],i[1],i[0],a/r),l=nt([],i[1],i[2],a/o),u=nt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function Ka(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Sd.length;l++){var c=Sd[l],h=e[c],p="normal"===c;if(h){var f=h.get("show");if((p?s:E(r.states[c]&&r.states[c].ignore,s))||!E(f,a)){var d=p?i:i&&i.states.normal;d&&(d.ignore=!0);continue}i||(i=new fg,t.setTextGuideLine(i),p||!s&&a||qa(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),qa(i,!1,c,h)}}if(i){u(i.style,n),i.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,i.buildPath=Za}}else i&&t.removeTextGuideLine()}function Ja(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<bd.length;i++){var r=bd[i];n[r]=t.getModel([r,e])}return n}function Qa(t,e,n,i,r,o){function a(){w=S.rect[e]-i,b=r-T.rect[e]-T.rect[n]}function s(t,e,n){if(0>t){var i=Math.min(e,-t);if(i>0){l(i*n,0,h);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(d=!0);for(var o=i;r>o;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;h>s;s++){var u=t[s-1].rect,c=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(c),a+=c}if(a){var p=Math.min(Math.abs(i)/a,r);if(i>0)for(s=0;h-1>s;s++){l(o[s]*p,0,s+1)}else for(s=h-1;s>0;s--){l(-(o[s-1]*p),s,h)}}}function c(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(h-1)),i=0;h-1>i;i++)if(e>0?l(n,0,i+1):l(-n,h-i-1,h),0>=(t-=n))return}var h=t.length;if(!(2>h)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,f=0,d=!1,g=[],v=0,y=0;h>y;y++){var m=t[y],_=m.rect;0>(p=_[e]-f)&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),v+=x,f=_[e]+_[n]}v>0&&o&&l(-v/h,0,h);var w,b,S=t[0],T=t[h-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&c(-w),0>b&&c(b),d}}function ts(t,e,n,i){return Qa(t,"y","height",e,n,i)}function es(t,e){var n=t.label,i=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}}(i&&i.shape.points)}}function ns(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function is(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=r.selected,a=0;a<i.length;a++)if(i[a].seriesIndex===e){var s=t.getData(),u=en(s,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:s.getName(w(u)?u[0]:u),selected:l({},t.option.selectedMap)})}})}function rs(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function os(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):n.fill=t,this.markRedraw()}}function as(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?ir(t.slice(8),new Jh(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?nr(t.slice(7),{},new Jh(e,n,i,r),a?"center":"cover"):new Vm({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=os,o&&s.setColor(o),s}function ss(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function ls(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:C(t)?[t]:w(t)?t:null):null}function us(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function cs(t){var e=t.fill;return null!=e&&"none"!==e}function hs(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function ps(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function fs(t,e,n){var i=vn(e.image,e.__image,n);if(mn(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}function ds(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;(i||e.opacity!==n.opacity)&&(o||(ys(t,r),o=!0),t.globalAlpha=null==e.opacity?tf.opacity:e.opacity),(i||e.blend!==n.blend)&&(o||(ys(t,r),o=!0),t.globalCompositeOperation=e.blend||tf.blend);for(var a=0;a<jm.length;a++){var s=jm[a];(i||e[s]!==n[s])&&(o||(ys(t,r),o=!0),t[s]=t.dpr*(e[s]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(ys(t,r),o=!0),t.shadowColor=e.shadowColor||tf.shadowColor),o}function gs(t,e,n,i,r){var o=ms(e,r.inHover),a=i?null:n&&ms(n,r.inHover)||{};if(o===a)return!1;var s=ds(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(ys(t,r),s=!0),t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(ys(t,r),s=!0),t.strokeStyle=o.stroke),(i||o.opacity!==a.opacity)&&(s||(ys(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(ys(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<Wm.length;u++){var c=Wm[u],h=c[0];(i||o[h]!==a[h])&&(s||(ys(t,r),s=!0),t[h]=o[h]||c[1])}return s}function vs(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function ys(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function ms(t,e){return e&&t.__hoverStyle||t.style}function _s(t,e){xs(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xs(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~pp.REDARAW_BIT,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a))&&(a&&a.length&&(ys(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(ys(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),vs(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof td&&e.autoBatch&&function(t){var e=cs(t),n=us(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||function(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}(r,u.transform)?(ys(t,n),vs(t,e)):c||ys(t,n);var h=ms(e,n.inHover);e instanceof td?(n.lastDrawType!==Um&&(l=!0,n.lastDrawType=Um),gs(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r=us(n),o=cs(n),a=n.strokePercent,s=1>a,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||Gm;if(!i){var c=n.fill,h=n.stroke,p=o&&!!c.colorStops,f=r&&!!h.colorStops,d=o&&!!c.image,v=r&&!!h.image,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0;(p||f)&&(w=e.getBoundingRect()),p&&(y=e.__dirty?ss(t,c,w):e.__canvasFillGradient,e.__canvasFillGradient=y),f&&(m=e.__dirty?ss(t,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),d&&(_=e.__dirty||!e.__canvasFillPattern?fs(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(x=e.__dirty||!e.__canvasStrokePattern?fs(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=y:d&&(_?t.fillStyle=_:o=!1),f?t.strokeStyle=m:v&&(x?t.strokeStyle=x:r=!1)}var b=n.lineDash&&n.lineWidth>0&&ls(n.lineDash,n.lineWidth),S=n.lineDashOffset,T=!!t.setLineDash,C=e.getGlobalScale();if(u.setScale(C[0],C[1],e.segmentIgnoreThreshold),b){var M=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;M&&1!==M&&(b=g(b,function(t){return t/M}),S/=M)}var I=!0;(l||e.__dirty&td.SHAPE_CHANGED_BIT||b&&!T&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),I=!1),u.reset(),b&&!T&&(u.setLineDash(b),u.setLineDashOffset(S)),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),I&&u.rebuildPath(t,s?a:1),b&&T&&(t.setLineDash(b),t.lineDashOffset=S),i||(n.strokeFirst?(r&&ps(t,n),o&&hs(t,n)):(o&&hs(t,n),r&&ps(t,n))),b&&T&&t.setLineDash([])}(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof nd?(n.lastDrawType!==Ym&&(l=!0,n.lastDrawType=Ym),gs(t,e,u,l,n),function(t,e,n){var i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||tp,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var r=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&ls(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=g(o,function(t){return t/s}),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}n.strokeFirst?(us(n)&&t.strokeText(i,n.x,n.y),cs(n)&&t.fillText(i,n.x,n.y)):(cs(n)&&t.fillText(i,n.x,n.y),us(n)&&t.strokeText(i,n.x,n.y)),r&&t.setLineDash([])}}(t,e,h)):e instanceof od?(n.lastDrawType!==$m&&(l=!0,n.lastDrawType=$m),function(t,e,n,i,r){ds(t,ms(e,r.inHover),n&&ms(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=vn(n.image,e.__image,e,e.onload);if(i&&mn(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,h)):e instanceof Pg&&(n.lastDrawType!==Xm&&(l=!0,n.lastDrawType=Xm),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;a>o;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xs(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;c>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xs(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),c&&i&&ys(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function ws(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&qm.delete(t);var o=qm.get(t);if(o)return o;var 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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[n],o=!0,s=0;s<Km.length;++s){var l=a[Km[s]],u=typeof l;if(null!=l&&!w(l)&&"string"!==u&&"number"!==u&&"boolean"!==u){o=!1;break}e.push(l)}var c;if(o){c=e.join(",")+(r?"-svg":"");var h=Zm.get(c);h&&(r?t.svgElement=h:t.image=h)}var p,f=bs(a.dashArrayX),d=Ss(a.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if("string"==typeof e)return[[e]];for(var n=!0,i=0;i<e.length;++i)if("string"!=typeof e[i]){n=!1;break}if(n)return t([e]);for(var r=[],i=0;i<e.length;++i)r.push("string"==typeof e[i]?[e[i]]:e[i]);return r}(a.symbol),v=Ts(f),y=Cs(d),m=!r&&Uc(),_=r&&i.painter.createSVGElement("g"),x=function(){for(var t=1,e=0,n=v.length;n>e;++e)t=We(t,v[e]);var i=1;for(e=0,n=g.length;n>e;++e)i=We(i,g[e].length);t*=i;var r=y*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d")),function(){function t(t,e,o,s,l){var u=r?1:n,c=as(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?_.appendChild(i.painter.paintOne(c)):_s(p,c)}p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var e=0,o=0;o<d.length;++o)e+=d[o];if(!(0>=e))for(var s=-y,l=0,u=0,c=0;s<x.height;){if(l%2==0){for(var h=u/2%g.length,v=0,w=0,b=0;v<2*x.width;){var S=0;for(o=0;o<f[c].length;++o)S+=f[c][o];if(0>=S)break;if(w%2==0){var T=.5*(1-a.symbolSize),C=v+f[c][w]*T,M=s+d[l]*T,I=f[c][w]*a.symbolSize,A=d[l]*a.symbolSize,k=b/2%g[h].length;t(C,M,I,A,g[h][k])}v+=f[c][w],++b,++w===f[c].length&&(w=0)}++c===f.length&&(c=0)}s+=d[l],++u,++l===d.length&&(l=0)}}(),o&&Zm.put(c,m||_),t.image=m,t.svgElement=_,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,qm.set(t,s),t.dirty=!1,s}function bs(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t)return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if("number"!=typeof t[n]){e=!1;break}if(e)return bs([t]);var i=[];for(n=0;n<t.length;++n)if("number"==typeof t[n]){var r=Math.ceil(t[n]);i.push([r,r])}else{r=g(t[n],function(t){return Math.ceil(t)});i.push(r.length%2==1?r.concat(r):r)}return i}function Ss(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t){var e=Math.ceil(t);return[e,e]}var n=g(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function Ts(t){return g(t,function(t){return Cs(t)})}function Cs(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function Ms(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:As(this,t,e)}}function Is(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return As(this,t,e)}}function As(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ih.prototype[e].apply(t,n)}function ks(t){q_[t]=!1}function Ds(t){return X_[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,J_)]}function Os(t,e){$_[t]=e}function Ps(t){n_(G_,t)<0&&G_.push(t)}function Ls(t,e){Hs(V_,t,e,r_)}function Es(t){n_(j_,t)<0&&t&&j_.push(t)}function Rs(t){n_(W_,t)<0&&t&&W_.push(t)}function Ns(t,e,n){"function"==typeof e&&(n=e,e="");var i=e_(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,H_[e]||(Jm(h_.test(i)&&h_.test(e)),F_[i]||(F_[i]={action:n,actionInfo:t}),H_[e]=i)}function Bs(t,e){ry.register(t,e)}function zs(t,e){Hs(U_,t,e,o_,"layout")}function Fs(t,e){Hs(U_,t,e,a_,"visual")}function Hs(t,e,n,i,r){if((t_(e)||e_(e))&&(n=e,e=i),!(n_(tx,n)>=0)){tx.push(n);var o=tm.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Vs(t,e){Y_[t]=e}function Gs(t,e,n){pm.registerMap(t,e,n)}function js(t){return null==t?0:t.length||1}function Ws(t){return t}function Us(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function $s(t,e,n){function i(t,e,n){null!=Ev.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}Eo(e)||(e=No(e)),n=n||{},t=(t||[]).slice();for(var r=(n.dimsDef||[]).slice(),o=G(),s=G(),c=[],h=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return d(e,function(t){var e;M(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(e,t,r,n.dimCount),p=0;h>p;p++){var f=r[p],g=r[p]=l({},M(f)?f:{name:f}),v=g.name,y=c[p]=new yx;null!=v&&null==o.get(v)&&(y.name=y.displayName=v,o.set(v,p)),null!=g.type&&(y.type=g.type),null!=g.displayName&&(y.displayName=g.displayName)}var m=n.encodeDef;!m&&n.encodeDefaulter&&(m=n.encodeDefaulter(e,h));var _=G(m);_.each(function(t,e){var n=$e(t).slice();if(1===n.length&&!S(n[0])&&n[0]<0)_.set(e,!1);else{var r=_.set(e,[]);d(n,function(t,n){var a=S(t)?o.get(t):t;null!=a&&h>a&&(r[n]=a,i(c[a],e,n))})}});var x=0;d(t,function(t){var e,n,r,o;if(S(t))e=t,o={};else{e=(o=t).name;var s=o.ordinalMeta;o.ordinalMeta=null,(o=a(o)).ordinalMeta=s,n=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var l=_.get(e);if(!1!==l){if(!(l=$e(l)).length)for(var h=0;h<(n&&n.length||1);h++){for(;x<c.length&&null!=c[x].coordDim;)x++;x<c.length&&l.push(x++)}d(l,function(t,a){var s=c[t];if(i(u(s,o),e,a),null==s.name&&n){var l=n[a];!M(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&u(s.otherDims,r)})}});var w=n.generateCoord,b=n.generateCoordCount,T=null!=b;b=w?b||1:0;for(var C=w||"value",I=0;h>I;I++){null==(y=c[I]=c[I]||new yx).coordDim&&(y.coordDim=Ys(C,s,T),y.coordDimIndex=0,(!w||0>=b)&&(y.isExtraCoord=!0),b--),null==y.name&&(y.name=Ys(y.coordDim,o,!1)),null!=y.type||fo(e,I)!==jv.Must&&(!y.isExtraCoord||null==y.otherDims.itemName&&null==y.otherDims.seriesName)||(y.type="ordinal")}return c}function Ys(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function Xs(t,e){return $s((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}function qs(t){return"category"===t.get("type")}function Zs(t,e,n){var i,r,o,a,s=(n=n||{}).byIndex,l=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(d(e,function(t,n){S(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(s||i||!t.ordinalMeta||(i=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))}),!r||s||i||(s=!0),r){o="__\0ecstackresult",a="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var c=r.coordDim,h=r.type,p=0;d(e,function(t){t.coordDim===c&&p++}),e.push({name:o,coordDim:c,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:a,coordDim:a,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function Ks(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Js(t,e){return Ks(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Qs(t,e,n){n=n||{},Eo(t)||(t=No(t));var i,r=e.get("coordinateSystem"),o=ry.get(r),a=function(t){var e=t.get("coordinateSystem"),n=new Dx(e),i=Ox[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}(e);a&&a.coordSysDims&&(i=g(a.coordSysDims,function(t){var e={name:t},n=a.axisMap.get(t);if(n){var i=n.get("type");e.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(i)}return e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=n.useEncodeDefaulter,c=Xs(t,{coordDimensions:i,generateCoord:n.generateCoord,encodeDefaulter:b(u)?u:u?x(co,i,e):null});a&&d(c,function(t,e){var i=t.coordDim,r=a.categoryAxisMap.get(i);r&&(null==s&&(s=e),t.ordinalMeta=r.getOrdinalMeta(),n.createInvertedIndices&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0);var h=Zs(e,c),p=new kx(c,e);p.setCalculationInfo(h);var f=null!=s&&function(t){if(t.sourceFormat===Rv){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return null!=e&&!w(Xe(e))}}(t)?function(t,e,n,i){return i===s?n:this.defaultDimValueGetter(t,e,n,i)}:null;return p.hasItemOption=!1,p.initData(t,null,f),p}function tl(t){return M(t)&&null!=t.value?t.value:t+""}function el(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=He(o/e,!0);null!=n&&n>a&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=nl(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),il(t,0,e),il(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Ex(Math.ceil(t[0]/a)*a,s),Ex(Math.floor(t[1]/a)*a,s)],t),r}function nl(t){return Pe(t)+2}function il(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function rl(t,e){return t>=e[0]&&t<=e[1]}function ol(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function al(t,e){return t*(e[1]-e[0])+e[0]}function sl(t){return t.get("stack")||zx+t.seriesIndex}function ll(t){return t.dim+t.index}function ul(t){var e=function(t){var e={};d(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.mapDimension(n.dim),a=0,s=i.count();s>a;++a){var l=i.get(o,a);e[r]?e[r].push(l):e[r]=[l]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];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];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return d(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var p=De(t.get("barWidth"),i),f=De(t.get("barMaxWidth"),i),d=De(t.get("barMinWidth")||1,i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:d,barGap:g,barCategoryGap:v,axisKey:ll(r),stackId:sl(t)})}),function(t){var e={};d(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var c=t.barGap;null!=c&&(r.gap=c);var h=t.barCategoryGap;null!=h&&(r.categoryGap=h)});var n={};return d(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=_(i).length;o=Math.max(35-4*a,15)+"%"}var s=De(o,r),l=De(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),d(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,f=0;d(i,function(t){t.width||(t.width=h),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var g=-f/2;d(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+l)})}),n}(n)}function cl(t,e,n){if(t&&e){var i=t[ll(e)];return null!=i&&null!=n?i[sl(n)]:i}}function hl(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function pl(t){return t.pipelineContext&&t.pipelineContext.large}function fl(t){return(t/=hv)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dl(t){return(t/=30*hv)>6?6:t>3?3:t>2?2:1}function gl(t){return(t/=cv)>12?12:t>6?6:t>3.5?4:t>2?2:1}function vl(t,e){return(t/=e?uv:lv)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function yl(t){return He(t,!0)}function ml(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();n>u&&u<=i[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!function(t,e,n,i){var r=Be(e),o=Be(n),a=function(t){return Br(r,t,i)===Br(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return p()&&a("millisecond")}}(Lr(t),i[0],i[1],n)){l&&(o=[{value:function(t,e,n){var i=new Date(t);switch(Lr(e)){case"year":case"month":i[$r(n)](0);case"day":i[Yr(n)](1);case"hour":i[Xr(n)](0);case"minute":i[qr(n)](0);case"second":i[Zr(n)](0),i[Kr(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<o.length-1;u++){var c=o[u].value,h=o[u+1].value;if(c!==h){var p=void 0,f=void 0,d=void 0;switch(t){case"year":p=Math.max(1,Math.round(e/hv/365)),f=zr(n),d=Ur(n);break;case"half-year":case"quarter":case"month":p=dl(e),f=Fr(n),d=$r(n);break;case"week":case"half-week":case"day":p=fl(e),f=Hr(n),d=Yr(n),!0;break;case"half-day":case"quarter-day":case"hour":p=gl(e),f=Vr(n),d=Xr(n);break;case"minute":p=vl(e,!0),f=Gr(n),d=qr(n);break;case"second":p=vl(e,!1),f=jr(n),d=Zr(n);break;case"millisecond":p=yl(e),f=Wr(n),d=Kr(n)}r(p,c,h,f,d,0,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-p})}}for(u=0;u<s.length;u++)a.push(s[u]);return s}}for(var a=yv,s=0,l=[],u=[],c=0,h=0,p=0;p<a.length&&s++<1e4;++p){var f=Lr(a[p]);if(Er(a[p]))if(o(a[p],l[l.length-1]||[],u),f!==(a[p+1]?Lr(a[p+1]):null)){if(u.length){h=c,u.sort(function(t,e){return t.value-e.value});for(var d=[],v=0;v<u.length;++v){var m=u[v].value;(0===v||u[v-1].value!==m)&&(d.push(u[v]),m>=i[0]&&m<=i[1]&&c++)}var _=(i[1]-i[0])/e;if(c>1.5*_&&h>_/1.5)break;if(l.push(d),c>_||t===a[p])break}u=[]}}var x=y(g(l,function(t){return y(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),w=[],b=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],T=0;T<S.length;++T)w.push({value:S[T].value,level:b-p});w.sort(function(t,e){return t.value-e.value});var C=[];for(p=0;p<w.length;++p)(0===p||w[p].value!==w[p-1].value)&&C.push(w[p]);return C}function _l(t,e){return Ux(t,Wx(e))}function xl(t,e){return null==e?null:P(e)?NaN:t.parse(e)}function wl(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new Jx(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=function(t,e){var n=[];return e.eachSeriesByType(t,function(t){hl(t)&&!pl(t)&&n.push(t)}),n}("bar",a),l=!1;if(d(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=ul(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=cl(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;d(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function bl(t,e){var n=wl(t,e),i=n.extent,r=e.get("splitNumber");t instanceof Zx&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function Sl(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Rx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Hx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Px.getClass(e)||Bx)}}function Tl(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):"string"==typeof e?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(Cl(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Cl(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Ml(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Jh(t.x,t.y,o,a)}function Il(t){var e=t.get("interval");return null==e?"auto":e}function Al(t){return"category"===t.type&&0===Il(t.getLabelModel())}function kl(t){return w(t)?void d(t,function(t){kl(t)}):void(c(rw,t)>=0||(rw.push(t),b(t)&&(t={install:t}),t.install(ow)))}function Dl(t,e){return Math.abs(t-e)<aw}function Ol(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=Qn(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Dl(r[0],s[0])&&Dl(r[1],s[1])||(i+=Qn(r[0],r[1],s[0],s[1],e,n)),0!==i}function Pl(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Ll(t,e){return g(y((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var i=e.features,r=0;r<i.length;r++){var o=i[r].geometry;if("Polygon"===o.type)for(var a=o.coordinates,s=0;s<a.length;s++)a[s]=Pl(a[s],o.encodeOffsets[s],n);else if("MultiPolygon"===o.type)for(a=o.coordinates,s=0;s<a.length;s++)for(var l=a[s],u=0;u<l.length;u++)l[u]=Pl(l[u],o.encodeOffsets[s][u],n)}return e.UTF8Encoding=!1,e}(t)).features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];if("Polygon"===i.type){var o=i.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}"MultiPolygon"===i.type&&d(o=i.coordinates,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new sw(n[e||"name"],r,n.cp);return a.properties=n,a})}function El(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=Nl(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Tl(t);return{labels:g(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)}function Rl(t,e){return"category"===t.type?function(t,e){var n,i,r=Bl(t,"ticks"),o=Il(e),a=zl(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),b(o))n=Vl(t,o,!0);else if("auto"===o){var s=Nl(t,t.getLabelModel());i=s.labelCategoryInterval,n=g(s.labels,function(t){return t.tickValue})}else n=Hl(t,i=o,!0);return Fl(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Nl(t,e){var n,i,r=Bl(t,"labels"),o=Il(e),a=zl(r,o);return a||(b(o)?n=Vl(t,o):n=Hl(t,i="auto"===o?function(t){var e=fw(t).autoInterval;return null!=e?e:fw(t).autoInterval=t.calculateCategoryInterval()}(t):o),Fl(r,o,{labels:n,labelCategoryInterval:i}))}function Bl(t,e){return fw(t)[e]||(fw(t)[e]=[])}function zl(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Fl(t,e,n){return t.push({key:e,value:n}),n}function Hl(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Tl(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],h=o.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var p=Al(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&c!==a[0]&&i(a[0]);for(var g=c;g<=a[1];g+=u)i(g);return d&&g-u!==a[1]&&i(a[1]),l}function Vl(t,e,n){var i=t.scale,r=Tl(t),o=[];return d(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 Gl(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}function jl(){return!1}function Wl(t,e,n){var i=Uc(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}function Ul(t){return parseInt(t,10)}function $l(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=$o(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push($o(t,e,n[a]));return o.join(" ")}}function Yl(t,e){this.parent.drift(t,e)}function Xl(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 ql(t){return null==t||M(t)||(t={isIgnore:t}),t||{}}function Zl(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverScale:n.get("scale"),labelStatesModels:Cr(e),cursorStyle:e.get("cursor")}}function Kl(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=g(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,f=e.getCalculationInfo("stackResultDimension");return Ks(e,h[0])&&(p=!0,h[0]=f),Ks(e,h[1])&&(p=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Jl(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Ql(t){return w(t)?Tw?new Float32Array(t):t:new Cw(t)}function tu(t,e){return isNaN(t)||isNaN(e)}function eu(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,f,d,g=n,v=0;i>v;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(tu(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var _=y-u,x=m-c;if(.5>_*_+x*x){g+=o;continue}if(a>0){var w=g+o,b=e[2*w],S=e[2*w+1],T=v+1;if(l)for(;tu(b,S)&&i>T;)T++,b=e[2*(w+=o)],S=e[2*w+1];var C=.5,M=0,I=0,A=void 0,k=void 0;if(T>=i||tu(b,S))f=y,d=m;else{M=b-u,I=S-c;var D=y-u,O=b-y,P=m-c,L=S-m,E=void 0,R=void 0;"x"===s?(E=Math.abs(D),R=Math.abs(O),f=y-E*a,d=m,A=y+E*a,k=m):"y"===s?(E=Math.abs(P),R=Math.abs(L),f=y,d=m-E*a,A=y,k=m+E*a):(E=Math.sqrt(D*D+P*P),f=y-M*a*(1-(C=(R=Math.sqrt(O*O+L*L))/(R+E))),d=m-I*a*(1-C),k=m+I*a*C,A=Mw(A=y+M*a*C,Iw(b,y)),k=Mw(k,Iw(S,m)),A=Iw(A,Mw(b,y)),d=m-(I=(k=Iw(k,Mw(S,m)))-m)*E/R,f=Mw(f=y-(M=A-y)*E/R,Iw(u,y)),d=Mw(d,Iw(c,m)),f=Iw(f,Mw(u,y)),d=Iw(d,Mw(c,m)),A=y+(M=y-f)*R/E,k=m+(I=m-d)*R/E)}t.bezierCurveTo(h,p,f,d,y,m),h=A,p=k}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}function nu(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function iu(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 ru(t,e){var n=iu(t),i=n[0],r=n[1],o=iu(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function ou(t){return"number"==typeof t?t:t?.5:0}function au(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0,s=[],l=[],u=[];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=(l[r]+u[r])/2,h=[];s[r]=h[r]=c,s[1-r]=l[1-r],h[1-r]=u[1-r],o.push(s[0],s[1]),o.push(h[0],h[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 su(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if("x"===(i=l&&l.coordDim)||"y"===i){r=n[o];break}}if(r){var u=e.getAxis(i),c=g(r.stops,function(t){return{offset:0,coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),h=c.length,p=r.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),p.reverse());var f=c[0].coord-10,v=c[h-1].coord+10,y=v-f;if(.001>y)return"transparent";d(c,function(t){t.offset=(t.coord-f)/y}),c.push({offset:h?c[h-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:p[0]||"transparent"});var m=new Tg(0,0,0,0,c,!0);return m[i]=f,m[i+"2"]=v,m}}}function lu(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*bw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return d(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function uu(t,e){return isNaN(t)||isNaN(e)}function cu(t,e){return[t[2*e],t[2*e+1]]}function hu(t,e,n,i){if(function(t,e){return t.type===e}(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("show"),a=r.get("valueAnimation"),s=i.getData(),l={lastFrameIndex:0},u=o?function(n,i){t._endLabelOnDuring(n,i,s,l,a,r,e)}:null,c=e.getBaseAxis().isHorizontal(),h=function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new ud({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0),lr(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,"function"==typeof r?function(t){r(t,h)}:null)}return h}(e,n,i,function(){var e=t._endLabel;e&&n&&null!=l.originalX&&e.attr({x:l.originalX,y:l.originalY})},u);if(!i.get("clip",!0)){var p=h.shape,f=Math.max(p.width,p.height);c?(p.y-=f,p.height+=2*f):(p.x-=f,p.width+=2*f)}return u&&u(1,h),h}return function(t,e,n){var i=t.getArea(),r=Oe(i.r0,1),o=Oe(i.r,1),a=new sg({shape:{cx:Oe(t.cx,1),cy:Oe(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,lr(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}(e,n,i)}function pu(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=function(t,e){return ao(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n),o=t.get("center"),a=t.get("radius");w(a)||(a=[0,a]),w(o)||(o=[o,o]);var s=De(r.width,n.getWidth()),l=De(r.height,n.getHeight()),u=Math.min(s,l),c=De(o[0],s)+r.x,h=De(o[1],l)+r.y,p=De(a[0],u/2),f=De(a[1],u/2),d=-t.get("startAngle")*Nw,g=t.get("minAngle")*Nw,v=0;e.each(i,function(t){!isNaN(t)&&v++});var y=e.getSum(i),m=Math.PI/(y||v)*2,_=t.get("clockwise"),x=t.get("roseType"),b=t.get("stillShowZeroSum"),S=e.getDataExtent(i);S[0]=0;var T=Rw,C=0,M=d,I=_?1:-1;if(e.setLayout({viewRect:r,r:f}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:h,r0:p,r:x?NaN:f});else{g>(i="area"!==x?0===y&&b?m:t*m:Rw/v)?(i=g,T-=g):C+=t;var r=M+I*i;e.setItemLayout(n,{angle:i,startAngle:M,endAngle:r,clockwise:_,cx:c,cy:h,r0:p,r:x?ke(t,S,[p,f]):f}),M=r}}),Rw>T&&v)if(.001>=T){var A=Rw/v;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=A,i.startAngle=d+I*n*A,i.endAngle=d+I*(n+1)*A}})}else m=T/C,M=d,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===g?g:t*m;i.startAngle=M,i.endAngle=M+I*r,M+=I*r}})})}function fu(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0})}}}}function du(t,e,n,i,r,o,a,s,l,u){function c(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*h);l.label.x=e+(p+l.len2)*r}}if(!(t.length<2)){for(var h=t.length,p=0;h>p;p++)if("outer"===t[p].position&&"labelLine"===t[p].labelAlignTo){var f=t[p].label.x-u;t[p].linePoints[1][0]+=f,t[p].label.x=u}ts(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,h=Math.abs(l.label.y-n);if(h>u.maxY){var p=l.label.x-e-l.len2*r,f=i+l.len,d=Math.abs(p)<f?Math.sqrt(h*h/(1-p*p/f/f)):f;u.rB=d,u.maxY=h}u.list.push(l)}c(o),c(a)}(t)}}function gu(t){return"center"===t.position}function vu(t){function e(t){t.ignore=!0}var n,i,r=t.getData(),o=[],a=!1,s=(t.get("minShowLabelAngle")||0)*Bw,l=r.getLayout("viewRect"),u=r.getLayout("r"),c=l.width,h=l.x,p=l.y,f=l.height;r.each(function(t){var l=r.getItemGraphicEl(t),p=l.shape,f=l.getTextContent(),g=l.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=De(y.get("edgeDistance"),c),b=y.get("bleedMargin"),S=v.getModel("labelLine"),T=S.get("length");T=De(T,c);var C=S.get("length2");if(C=De(C,c),Math.abs(p.endAngle-p.startAngle)<s)return d(f.states,e),void(f.ignore=!0);if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var M,I,A,k,D=(p.startAngle+p.endAngle)/2,O=Math.cos(D),P=Math.sin(D);n=p.cx,i=p.cy;var L="inside"===m||"inner"===m;if("center"===m)M=p.cx,I=p.cy,k="center";else{var E=(L?(p.r+p.r0)/2*O:p.r*O)+n,R=(L?(p.r+p.r0)/2*P:p.r*P)+i;if(M=E+3*O,I=R+3*P,!L){var N=E+O*(T+u-p.r),B=R+P*(T+u-p.r),z=N+(0>O?-1:1)*C;M="edge"===x?0>O?h+w:h+c-w:z+(0>O?-_:_),I=B,A=[[E,R],[N,B],[z,B]]}k=L?"center":"edge"===x?O>0?"right":"left":O>0?"left":"right"}var F,H=y.get("rotate");if(F="number"==typeof H?H*(Math.PI/180):H?0>O?-D+Math.PI:-D:0,a=!!F,f.x=M,f.y=I,f.rotation=F,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:k});var V=f.states.select;V&&(V.x+=f.x,V.y+=f.y)}else{var G=f.getBoundingRect().clone();G.applyTransform(f.getComputedTransform());var j=(f.style.margin||0)+2.1;G.y-=j/2,G.height+=j,o.push({label:f,labelLine:g,position:m,len:T,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new jh(O,P),linePoints:A,textAlign:k,labelDistance:_,labelAlignTo:x,edgeDistance:w,bleedMargin:b,rect:G})}l.setTextConfig({inside:L})}}),!a&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var f=t[p].label;gu(t[p])||(f.x<e?(c=Math.min(c,f.x),l.push(t[p])):(h=Math.max(h,f.x),u.push(t[p])))}for(du(u,e,n,i,1,0,o,0,s,h),du(l,e,n,i,-1,0,o,0,s,c),p=0;p<t.length;p++){var d=t[p];if(f=d.label,!gu(d)){var g=d.linePoints;if(g){var v,y="edge"===d.labelAlignTo,m=d.rect.width;(v=y?f.x<e?g[2][0]-d.labelDistance-a-d.edgeDistance:a+r-d.edgeDistance-g[2][0]-d.labelDistance:f.x<e?f.x-a-d.bleedMargin:a+r-f.x-d.bleedMargin)<d.rect.width&&(d.label.style.width=v,"edge"===d.labelAlignTo&&(m=v));var _=g[1][0]-g[2][0];y?g[2][0]=f.x<e?a+d.edgeDistance+m+d.labelDistance:a+r-d.edgeDistance-m-d.labelDistance:(g[2][0]=f.x<e?f.x+d.labelDistance:f.x-d.labelDistance,g[1][0]=g[2][0]+_),g[1][1]=g[2][1]=f.y}}}}(o,n,i,u,c,f,h,p);for(var g=0;g<o.length;g++){var v=o[g],y=v.label,m=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(d(y.states,e),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var w=v.linePoints;_||!w?(d(m.states,e),m.ignore=!0):(Ya(w,v.minTurnAngle),Xa(w,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new jh(w[0][0],w[0][1])})}}}function yu(t,e){var n=t.get("borderRadius");return null==n?null:(w(n)||(n=[n,n]),{innerCornerRadius:se(n[0],e.r0),cornerRadius:se(n[1],e.r)})}function mu(t,e,n){e=w(e)&&{coordDimensions:e}||l({},e);var i=t.getSource(),r=Xs(i,e),o=new kx(r,t);return o.initData(i,n),o}function _u(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();d(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=xu(r)?r:wu(i)})}),e.each(function(t){var r=m(n[t],function(t){return xu(t)})||wu(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])})}})}function xu(t){return!isNaN(t[0])&&!isNaN(t[1])}function wu(t){return[t.cx,t.cy]}function bu(t){var e=t.polar;if(e){w(e)||(e=[e]);var n=[];d(e,function(e){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],w(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}d(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}function Su(t,e){return u({show:e},t)}function Tu(t){t&&(t.ignore=!0)}function Cu(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=xt([]);return Tt(r,r,-t.rotation),n.applyTransform(bt([],r,t.getLocalTransform())),i.applyTransform(bt([],r,e.getLocalTransform())),n.intersect(i)}}function Mu(t){return"middle"===t||"center"===t}function Iu(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(it(a,a,e),it(s,s,e));var c=new vg({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function Au(t){t.registerCoordinateSystem("radar",nb),t.registerComponentModel(qw),t.registerComponentView(tb)}function ku(t,n,i,r){d(ob,function(o,a){var l=s(s({},Yw[a],!0),r,!0),u=function(t){function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var r=t.apply(this,e)||this;return r.type=n+"Axis."+a,r}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=so(this),i=n?uo(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Du(t),n&&lo(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Lx.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+a,i.defaultOption=l,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+"Axis",Du)}function Du(t){return t.type||(t.data?"category":"value")}function Ou(t){return"interval"===t.type||"time"===t.type}function Pu(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:h[0],"x"===u?d[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),L(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Lu(t){return"cartesian2d"===t.get("coordinateSystem")}function Eu(t){var e={xAxisModel:null,yAxisModel:null};return d(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Hp).models[0];e[i]=o}),e}function Ru(t,e){return t.getCoordSysModel()===e}function Nu(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)Bu(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&Bu(a[c])&&!i[r(a[c])]){o=a[c];break}o&&(i[r(o)]=!0)}}function Bu(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}(t)}function zu(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];d(n.getCoordinateSystems(),function(n){function s(i,s,l){var c=l.model.getModel("axisPointer",r),p=c.get("show");if(p&&("auto"!==p||i||Gu(c))){null==s&&(s=c.get("triggerTooltip"));var f=(c=i?Fu(l,h,r,e,i,s):c).get("snap"),d=ju(l.model),g=s||f||"category"===l.type,v=t.axesInfo[d]={key:d,axis:l,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Gu(c),seriesModels:[],linkGroup:null};u[d]=v,t.seriesInvolved=t.seriesInvolved||g;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Hu(o[i+"AxisId"],n.id)||Hu(o[i+"AxisIndex"],n.componentIndex)||Hu(o[i+"AxisName"],n.name))return r}}(o,l);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[d]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}if(n.axisPointerEnabled){var l=ju(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var c=n.model,h=c.getModel("tooltip",i);if(d(n.getAxes(),x(s,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var p="axis"===h.get("trigger"),f="cross"===h.get(["axisPointer","type"]),g=n.getTooltipAxes(h.get(["axisPointer","axis"]));(p||f)&&d(g.baseAxes,x(s,!f||"cross",p)),f&&d(g.otherAxes,x(s,"cross",!1))}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&d(t.coordSysAxesInfo[ju(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}function Fu(t,e,n,i,r,o){var s=e.getModel("axisPointer"),l={};d(["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");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===r){var h=s.get(["label","show"]);if(c.show=null==h||h,!o){var p=l.lineStyle=s.get("crossStyle");p&&u(c,p.textStyle)}}return t.model.getModel("axisPointer",new tv(l,n,i))}function Hu(t,e){return"all"===t||w(t)&&c(t,e)>=0||t===e}function Vu(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ju(t)]}function Gu(t){return!!t.get(["handle","show"])}function ju(t){return t.type+"||"+t.id}function Wu(t,e,n,i,r,o,a){var s;return"line"!==e&&e.indexOf("empty")<0?(s=n.getItemStyle(),t.style.stroke=i,t.style.decal=o,a||(s.stroke=r)):s=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(s),t}function Uu(t,e,n,i){Xu(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Yu(t,e,n,i)}function $u(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Yu(t,e,n,i){$u(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Xu(t,e,n,i){$u(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function qu(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 Zu(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)),d(n.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&i:i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Ku(t){t.registerComponentModel(wb),t.registerComponentView(Cb),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,qu),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",x(Zu,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",x(Zu,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",x(Zu,"inverseSelect")),t.registerAction("legendSelect","legendselected",x(Zu,"select")),t.registerAction("legendUnSelect","legendunselected",x(Zu,"unSelect"))}(t)}function Ju(t,e,n){var i=[1,1];i[t.getOrient().index]=0,lo(e,n,{type:"box",ignoreSize:!!i})}function Qu(t,e,n,i){(function t(e,n){if(M(e)&&M(n)){var i=!0;return d(n,function(n,r){i=i&&t(e[r],n)}),!!i}return e===n})(Ob(n).lastProp,i)||(Ob(n).lastProp=i,e?sr(n,i,t):(n.stopAnimation(),n.attr(i)))}function tc(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ec(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function nc(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 ic(t,e,n,i,r){var o=rc(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=mv(a.get("padding")||0),l=a.getFont(),u=ie(o,l),c=r.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var d=r.verticalAlign;"bottom"===d&&(c[1]-=p),"middle"===d&&(c[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Mr(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function rc(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Cl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};d(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),S(a)?o=a.replace("{value}",o):b(a)&&(o=a(s))}return o}function oc(t,e,n){var i=[1,0,0,1,0,0];return Tt(i,i,n.rotation),St(i,i,n.position),dr([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function ac(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function sc(t){return"x"===t.dim?0:1}function lc(t,e,n){if(!Pc.node){var i=e.getZr();Bb(i).records||(Bb(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);zb(Bb(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}Bb(t).initialized||(Bb(t).initialized=!0,n("click",x(cc,"click")),n("mousemove",x(cc,"mousemove")),n("globalout",uc))}(i,e),(Bb(i).records[t]||(Bb(i).records[t]={})).handler=n}}function uc(t,e,n){t.handler("leave",null,n)}function cc(t,e,n,i){e.handler(t,n,i)}function hc(t,e){if(!Pc.node){var n=e.getZr();(Bb(n).records||{})[t]&&(Bb(n).records[t]=null)}}function pc(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=en(o,t);if(null==a||0>a||w(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,f=o.mapDimension(h),d=[];d[p]=o.get(f,a),d[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(d)||[]}else i=l.dataToPoint(o.getValues(g(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}function fc(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||$c(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){mc(r)&&(r=pc({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=mc(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||mc(r),p={},f={},g={list:[],map:{}},v={showPointer:x(gc,f),showTooltip:x(vc,g)};d(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);d(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=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}}(u,t);if(!h&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&dc(t,o,v,!1,p)}})});var y={};return d(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&d(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,yc(e),yc(t)))),y[t.key]=o}})}),d(y,function(t,e){dc(c[e],t,v,!0,p)}),function(t,e,n){var i=n.axesInfo=[];d(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,p),function(t,e,n,i){if(mc(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(g,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Hb(i)[r]||{},a=Hb(i)[r]={};d(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&d(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];d(o,function(t,e){!a[e]&&l.push(t)}),d(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function dc(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return d(e.seriesModels,function(e){var l,u,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(c,t,n);u=h.dataIndices,l=h.nestestValue}else{if(!(u=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;l=e.getData().get(c[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,f=Math.abs(p);a>=f&&((a>f||p>=0&&0>s)&&(a=f,s=p,r=l,o.length=0),d(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==r.seriesIndex&&l(r,s[0]),!i&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,s),n.showTooltip(t,a,u)}}function gc(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function vc(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=ju(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function yc(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function mc(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function _c(t){hb.registerAxisPointerClass("CartesianAxisPointer",Eb),t.registerComponentModel(Nb),t.registerComponentView(Fb),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!w(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=zu(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fc)}function xc(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function wc(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=fa(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="opacity "+t/2+"s "+n+",visibility "+t/2+"s "+n;return e||(i+=",left "+t+"s "+n+",top "+t+"s "+n),g(Gb,function(t){return t+"transition:"+i}).join(";")}(r,n)),o&&(Pc.canvasSupported?i.push("background-Color:"+o):(i.push("background-Color:#"+Ht(o)),i.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(e){var n="border-"+e,r=Qr(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),d(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(c)),null!=h&&i.push("padding:"+mv(h).join("px ")+"px"),i.join(";")+";"}function bc(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){lt(ah,e,i,r,!0)&<(t,n,ah[0],ah[1])}(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Sc(t){return Math.max(0,t)}function Tc(t){var e=Sc(t.shadowBlur||0),n=Sc(t.shadowOffsetX||0),i=Sc(t.shadowOffsetY||0);return{left:Sc(e-n),right:Sc(e+n),top:Sc(e-i),bottom:Sc(e+i)}}function Cc(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Mc(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(n instanceof tv&&(n=n.get("tooltip",!0)),S(n)&&(n={formatter:n}),e=new tv(n,e,e.ecModel))}return e}function Ic(t,e){return t.dispatchAction||$c(e.dispatchAction,e)}function Ac(t){return"center"===t||"middle"===t}var kc=function(t,e){return(kc=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)},Dc=function(){return(Dc=Object.assign||function(t){for(var e,n=1,i=arguments.length;i>n;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Oc=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Pc=new(function(){return function(){this.browser=new Oc,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Pc.wxa=!0,Pc.canvasSupported=!0,Pc.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(Pc.worker=!0,Pc.canvasSupported=!0):"undefined"==typeof navigator?(Pc.node=!0,Pc.canvasSupported=!0,Pc.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document}(navigator.userAgent,Pc);var Lc={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},Ec={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Rc=Object.prototype.toString,Nc=Array.prototype,Bc=Nc.forEach,zc=Nc.filter,Fc=Nc.slice,Hc=Nc.map,Vc=function(){}.constructor,Gc=Vc?Vc.prototype:null,jc={},Wc=2311,Uc=function(){return jc.createCanvas()};jc.createCanvas=function(){return document.createElement("canvas")};var $c=Gc&&b(Gc.bind)?Gc.call.bind(Gc.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(Fc.call(arguments)))}},Yc="__ec_primitive__",Xc=function(){function t(e){function n(t,e){i?r.set(t,e):r.set(e,t)}this.data={};var i=w(e);this.data={};var r=this;e instanceof t?e.each(n):e&&d(e,n)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return _(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),qc=(Object.freeze||Object)({$override:i,guid:r,logError:o,clone:a,merge:s,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=s(n,t[i],e);return n},extend:l,defaults:u,createCanvas:Uc,indexOf:c,inherits:h,mixin:p,isArrayLike:f,each:d,map:g,reduce:v,filter:y,find:m,keys:_,bind:$c,curry:x,isArray:w,isFunction:b,isString:S,isStringSafe:T,isNumber:C,isObject:M,isBuiltInObject:I,isTypedArray:A,isDom:k,isGradientObject:D,isPatternObject:O,isRegExp:function(t){return"[object RegExp]"===Rc.call(t)},eqNaN:P,retrieve:L,retrieve2:E,retrieve3:R,slice:N,normalizeCssArray:B,assert:z,trim:F,setAsPrimitive:H,isPrimitive:V,HashMap:Xc,createHashMap:G,concatArray:function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n},createObject:j,hasOwn:W,noop:U}),Zc=Z,Kc=K,Jc=tt,Qc=et,th=(Object.freeze||Object)({create:$,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:Y,set:function(t,e,n){return t[0]=e,t[1]=n,t},add:X,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:q,len:Z,length:Zc,lenSquare:K,lengthSquare:Kc,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},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]},scale:J,normalize:Q,distance:tt,dist:Jc,distanceSquare:et,distSquare:Qc,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:nt,applyTransform:it,min:rt,max:ot}),eh=function(){return function(t,e){this.target=t,this.topTarget=e&&e.topTarget}}(),nh=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new eh(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new eh(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new eh(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new eh(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new eh(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new eh(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ih=function(){function t(t){t&&(this._$eventProcessor=t)}return t.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)return this;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;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;o>r;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];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;a>s;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)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){if(!this._$handlers)return this;var e=this._$handlers[t],n=this._$eventProcessor;if(e)for(var i=arguments,r=i.length,o=i[r-1],a=e.length,s=0;a>s;s++){var l=e[s];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(r){case 0:l.h.call(o);break;case 1:l.h.call(o,i[0]);break;case 2:l.h.call(o,i[0],i[1]);break;default:l.h.apply(o,i.slice(1,r-1))}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t}(),rh=Math.log(2),oh="___zrEVENTSAVED",ah=[],sh="undefined"!=typeof window&&!!window.addEventListener,lh=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uh=[],ch=sh?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},hh=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=ct(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in ph)if(ph.hasOwnProperty(e)){var n=ph[e](this._track,t);if(n)return n}},t}(),ph={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=gt(i)/gt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=function(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},fh="silent",dh=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(ih),gh=function(){return function(t,e){this.x=t,this.y=e}}(),vh=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yh=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o._hovered=new gh(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new dh,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new nh(o),o}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(d(vh,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=mt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new gh(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.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})},n.prototype.resize=function(){this._hovered=new gh(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:vt}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?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)}))}},n.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new gh(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=yt(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==fh)){r.target=i[o];break}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new hh);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new gh;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(ih);d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){yh.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=mt(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||Jc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var mh,_h,xh=(Object.freeze||Object)({create:_t,identity:xt,copy:wt,mul:bt,translate:St,rotate:Tt,scale:Ct,invert:Mt,clone:function(t){var e=[1,0,0,1,0,0];return wt(e,t),e}}),wh=xt,bh=5e-5,Sh=[],Th=[],Ch=[1,0,0,1,0,0],Mh=Math.abs,Ih=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return It(this.rotation)||It(this.x)||It(this.y)||It(this.scaleX-1)||It(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;return n||e?(i=i||[1,0,0,1,0,0],n?this.getLocalTransform(i):wh(i),e&&(n?bt(i,t.transform,i):wt(i,t.transform)),this.transform=i,void this._resolveGlobalScaleRatio(i)):void(i&&wh(i))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Sh);var n=Sh[0]<0?-1:1,i=Sh[1]<0?-1:1,r=((Sh[0]-n)*e+n)/Sh[0]||0,o=((Sh[1]-i)*e+i)/Sh[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Mt(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3];It(e-1)&&(e=Math.sqrt(e)),It(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),this.rotation=Math.atan2(-t[1]/n,t[0]/e),0>e&&0>n&&(this.rotation+=Math.PI,e=-e,n=-n),this.x=t[4],this.y=t[5],this.scaleX=e,this.scaleY=n}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(bt(Th,t.invTransform,e),e=Th);var n=this.originX,i=this.originY;(n||i)&&(Ch[4]=n,Ch[5]=i,bt(Th,e,Ch),Th[4]-=n,Th[5]-=i,e=Th),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&it(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&it(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Mh(t[0]-1)>1e-10&&Mh(t[3]-1)>1e-10?Math.sqrt(Mh(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){wh(e=e||[]);var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y;return e[4]-=n,e[5]-=i,e[0]*=r,e[1]*=o,e[2]*=r,e[3]*=o,e[4]*=r,e[5]*=o,a&&Tt(e,e,a),e[4]+=n,e[5]+=i,e[4]+=s,e[5]+=l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),Ah={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:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ah.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Ah.bounceIn(2*t):.5*Ah.bounceOut(2*t-1)+.5}},kh=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;0>n&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?Ah[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),Dh=function(){return function(t){this.value=t}}(),Oh=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Dh(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ph=function(){function t(t){this._list=new Oh,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Dh(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Lh={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]},Eh=new Ph(20),Rh=null,Nh=Vt,Bh=Gt,zh=(Object.freeze||Object)({parse:Bt,lift:Ft,toHex:Ht,fastLerp:Vt,fastMapToColor:Nh,lerp:Gt,mapToColor:Bh,modifyHSL:function(t,e,n,i){var r=Bt(t);return t?(r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(r),null!=e&&(r[0]=function(t){return 0>(t=Math.round(t))?0:t>360?360:t}(e)),null!=n&&(r[1]=Ot(n)),null!=i&&(r[2]=Ot(i)),jt(zt(r),"rgba")):void 0},modifyAlpha:function(t,e){var n=Bt(t);return n&&null!=e?(n[3]=kt(e),jt(n,"rgba")):void 0},stringify:jt,lum:Wt,random:function(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}}),Fh=Array.prototype.slice,Hh=[0,0,0,0],Vh=function(){function t(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(f(e)){var r=function(t){return f(t&&t[0])?2:1}(e);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof e[0]||2===r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r&&Zt(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=Bt(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e)return void(this.interpolable=!1);if(this._isAllValueEqual&&i>0){o=n[i-1];this.isValueColor&&!Zt(o.value,e)?this._isAllValueEqual=!1:o.value!==e&&(this._isAllValueEqual=!1)}}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,r=e[i-1],o=0;i>o;o++)e[o].percent=e[o].time/this.maxTime,n>0&&o!==i-1&&qt(e[o].value,r.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;i>o;o++)0===n?e[o].additiveValue=this.isValueColor?Yt([],e[o].value,a,-1):e[o].value-a:1===n?e[o].additiveValue=Yt([],e[o].value,a,-1):2===n&&(e[o].additiveValue=Xt([],e[o].value,a,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i=null!=this._additiveTrack,r=i?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(0>e)n=0;else if(e<this._lastFramePercent){for(n=Math.min(this._lastFrame+1,a-1);n>=0&&!(o[n].percent<=e);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;a>n&&!(o[n].percent>e);n++);n=Math.min(n-1,a-2)}var c=o[n+1],h=o[n];if(h&&c){this._lastFrame=n,this._lastFramePercent=e;var p=c.percent-h.percent;if(0!==p){var f=(e-h.percent)/p,d=i?this._additiveValue:u?Hh:t[s];if((l>0||u)&&!d&&(d=this._additiveValue=[]),this.useSpline){var g=o[n][r],v=o[0===n?n:n-1][r],y=o[n>a-2?a-1:n+1][r],m=o[n>a-3?a-1:n+2][r];if(l>0)1===l?Jt(d,v,g,y,m,f,f*f,f*f*f):function(t,e,n,i,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;l>c;c++){t[c]||(t[1]=[]);for(var h=0;u>h;h++)t[c][h]=Kt(e[c][h],n[c][h],i[c][h],r[c][h],o,a,s)}}(d,v,g,y,m,f,f*f,f*f*f);else if(u)Jt(d,v,g,y,m,f,f*f,f*f*f),i||(t[s]=te(d));else{var _=void 0;_=this.interpolable?Kt(v,g,y,m,f,f*f,f*f*f):y,i?this._additiveValue=_:t[s]=_}}else if(l>0)1===l?$t(d,h[r],c[r],f):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=Ut(e[a][s],n[a][s],i)}}(d,h[r],c[r],f);else if(u)$t(d,h[r],c[r],f),i||(t[s]=te(d));else{_=void 0;_=this.interpolable?Ut(h[r],c[r],f):function(t,e,n){return n>.5?e:t}(h[r],c[r],f),i?this._additiveValue=_:t[s]=_}i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(Bt(t[n],Hh),Yt(Hh,Hh,i,1),t[n]=te(Hh)):t[n]=t[n]+i:1===e?Yt(t[n],t[n],i,1):2===e&&Xt(t[n],t[n],i,1)},t}(),Gh=function(){function t(t,e,n){return this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?void o("Can' use additive animation on looped animation."):void(this._additiveAnimators=n)}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,_(e))},t.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,r=0;r<n.length;r++){var o=n[r],a=i[o];if(!a){a=i[o]=new Vh(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=te(s))}else s=this._target[o];if(null==s)continue;0!==t&&a.addKeyframe(0,Qt(s)),this._trackKeys.push(o)}a.addKeyframe(t,Qt(e[o]))}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var n=this,i=[],r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())i.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(n._target[a.propName]=u.value)}}if(i.length||e){var c=new kh({life:this._maxTime,loop:this._loop,delay:this._delay,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._onframeList;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&"spline"!==t&&(c.easing=t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},t.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.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&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=Qt(a.value);r.isValueColor&&(s=te(s)),t[i]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||_(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(r.getAdditiveTrack())}}}},t}(),jh=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.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},t}(),Wh=Math.min,Uh=Math.max,$h=new jh,Yh=new jh,Xh=new jh,qh=new jh,Zh=new jh,Kh=new jh,Jh=function(){function t(t,e,n,i){0>n&&isFinite(n)&&(t+=n,n=-n),0>i&&isFinite(i)&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Wh(t.x,this.x),n=Wh(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Uh(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Uh(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return St(r,r,[-e.x,-e.y]),Ct(r,r,[n,i]),St(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(l>o||r>u||c>s||a>h);if(n){var f=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,v),x=Math.min(y,m);l>o||r>u?_>d&&(d=_,v>g?jh.set(Kh,-g,0):jh.set(Kh,v,0)):f>_&&(f=_,v>g?jh.set(Zh,g,0):jh.set(Zh,-v,0)),c>s||a>h?x>d&&(d=x,m>y?jh.set(Kh,0,-y):jh.set(Kh,0,m)):f>_&&(f=_,m>y?jh.set(Zh,0,y):jh.set(Zh,0,-m))}return n&&jh.copy(n,p?Zh:Kh),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}$h.x=Xh.x=n.x,$h.y=qh.y=n.y,Yh.x=qh.x=n.x+n.width,Yh.y=Xh.y=n.y+n.height,$h.transform(i),qh.transform(i),Yh.transform(i),Xh.transform(i),e.x=Wh($h.x,Yh.x,Xh.x,qh.x),e.y=Wh($h.y,Yh.y,Xh.y,qh.y);var l=Uh($h.x,Yh.x,Xh.x,qh.x),u=Uh($h.y,Yh.y,Xh.y,qh.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Qh={},tp="12px sans-serif",ep={measureText:function(t,e){return mh||(mh=Uc().getContext("2d")),_h!==e&&(_h=mh.font=e||tp),mh.measureText(t)}},np=1;"undefined"!=typeof window&&(np=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ip=np,rp=.4,op="#333",ap="#ccc",sp="__zr_normal__",lp=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],up={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},cp={},hp=new Jh(0,0,0,0),pp=function(){function t(t){this.id=r(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.attachedTransform,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.x=e.x,r.y=e.y,r.originX=e.originX,r.originY=e.originY,r.rotation=e.rotation,r.scaleX=e.scaleX,r.scaleY=e.scaleY,null!=n.position){var u=hp;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(cp,n,u):le(cp,n,u),r.x=cp.x,r.y=cp.y,o=cp.align,a=cp.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=se(c[0],u.width),p=se(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),((v=v||"#000")!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),s&&e.dirtyStyle(),e.markRedraw()}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ap:op},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Bt(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,jt(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},l(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(M(t))for(var n=_(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!r||r===sp){var o=i.targetName,a=o?e[o]:e;i.saveFinalToTarget(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,lp)},t.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])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(sp,!1,t)},t.prototype.useState=function(e,n,i){var r=e===sp;if(this.hasState()||!r){var a=this.currentStates,s=this.stateTransition;if(!(c(a,e)>=0)||!n&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!r)return void o("State "+e+" not exists.");r||this.saveCurrentToNormalState(l);var u=!(!l||!l.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,n,!i&&!this.__inHover&&s&&s.duration>0,s),this._textContent&&this._textContent.useState(e,n),this._textGuide&&this._textGuide.useState(e,n),r?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT),l}}},t.prototype.useStates=function(e,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(e[s]!==r[s]){a=!1;break}if(a)return;for(s=0;o>s;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=!(!i[o-1]||!i[o-1].hoverLayer);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p),this._textContent&&this._textContent.useStates(e),this._textGuide&&this._textGuide.useStates(e),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=c(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=c(i,t),o=c(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.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},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=l({},i?this.textConfig:n.textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<lp.length;c++){var h=lp[c],p=r&&up[h];e&&null!=e[h]?p?(u=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(c=0;c<this.animators.length;c++){var f=this.animators[c],d=f.targetName;f.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new Ih,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=t.REDARAW_BIT;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)},t.prototype.animate=function(t,e){var n=t?this[t]:this;if(n){var i=new Gh(n,e);return this.addAnimator(i,t),i}o('Property "'+t+'" is not existed in element '+this.id)},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=c(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){ue(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){ue(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=ue(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.REDARAW_BIT=1,t.initDefaultProps=function(){function e(t,e,n){r[t+e+n]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+n+"' instead"),r[t+e+n]=!0)}function n(t,n,r,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(i,t,{get:function(){(e(t,r,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(i){e(t,r,o),this[r]=i[0],this[o]=i[1],this[n]=i,a(this,i)}})}var i=t.prototype;i.type="element",i.name="",i.ignore=!1,i.silent=!1,i.isGroup=!1,i.draggable=!1,i.dragging=!1,i.ignoreClip=!1,i.__inHover=!1,i.__dirty=t.REDARAW_BIT;var r={};Object.defineProperty&&(!Pc.browser.ie||Pc.browser.version>8)&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();p(pp,ih),p(pp,Ih);var fp=32,dp=7,gp=!1,vp=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_e}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Pc.canvasSupported&&ye(n,_e)},t.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),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=pp.REDARAW_BIT),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(me(),u.z=0),isNaN(u.z2)&&(me(),u.z2=0),isNaN(u.zlevel)&&(me(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=c(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),yp="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},mp=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n.onframe=e.onframe||function(){},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;){var r=i.next;i.step(e,n)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){var t=this;this._running=!0,yp(function e(){t._running&&(yp(e),!t._paused&&t.update())})},n.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},n.prototype.isFinished=function(){return null==this._clipsHead},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new Gh(t,e.loop);return this.addAnimator(n),n},n}(ih),_p=Pc.domSupported,xp=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:g(t,function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t})}}(),wp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bp=!1,Sp=function(){return function(t,e){this.stopPropagation=U,this.stopImmediatePropagation=U,this.preventDefault=U,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}}(),Tp={mousedown:function(t){t=ft(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ft(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=ft(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){be(this,(t=ft(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){bp=!0,t=ft(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){bp||(t=ft(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){we(t=ft(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Tp.mousemove.call(this,t),Tp.mousedown.call(this,t)},touchmove:function(t){we(t=ft(this.dom,t)),this.handler.processGesture(t,"change"),Tp.mousemove.call(this,t)},touchend:function(t){we(t=ft(this.dom,t)),this.handler.processGesture(t,"end"),Tp.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Tp.click.call(this,t)},pointerdown:function(t){Tp.mousedown.call(this,t)},pointermove:function(t){xe(t)||Tp.mousemove.call(this,t)},pointerup:function(t){Tp.mouseup.call(this,t)},pointerout:function(t){xe(t)||Tp.mouseout.call(this,t)}};d(["click","dblclick","contextmenu"],function(t){Tp[t]=function(e){e=ft(this.dom,e),this.trigger(t,e)}});var Cp={pointermove:function(t){xe(t)||Cp.mousemove.call(this,t)},pointerup:function(t){Cp.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))}},Mp=function(){return function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}}(),Ip=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Mp(e,Tp),_p&&(i._globalHandlerScope=new Mp(document,Cp)),Se(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){Me(this._localHandlerScope),_p&&Me(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,_p&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Te(this,e):Me(e)}},n}(ih),Ap=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},n.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=c(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.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},n.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},n.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},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new Jh(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Jh.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},n}(pp);Ap.prototype.type="group";var kp=!Pc.canvasSupported,Dp={},Op={},Pp=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new vp,o=n.renderer||"canvas";if(kp)throw new Error("IE8 support has been dropped since 5.0");if(Dp[o]||(o=_(Dp)[0]),!Dp[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Dp[o](e,r,n,t);this.storage=r,this.painter=a;var s=Pc.node||Pc.worker?null:new Ip(a.getViewportRoot(),a.root);this.handler=new yh(r,a,s,a.root),this.animation=new mp({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Wt(t,1)<rp;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;i>r;r++)n+=Wt(e[r].color,1);return rp>(n/=i)}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(){},t.prototype.removeHover=function(){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){return this.painter.pathToImage?this.painter.pathToImage(t,e):void 0},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ap&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,function(t){delete Op[t]}(this.id)},t}(),Lp=(Object.freeze||Object)({init:Ie,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Op)Op.hasOwnProperty(t)&&Op[t].dispose();Op={}},getInstance:function(t){return Op[t]},registerPainter:Ae,version:"5.0.4"}),Ep=1e-4,Rp=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Np="series\0",Bp="\0_ec_\0",zp=["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"],Fp=je(),Hp={useDefault:!0,enableAll:!1,enableNone:!1},Vp=".",Gp="___EC__COMPONENT__CONTAINER___",jp="___EC__EXTENDED_CLASS___",Wp=Math.round(10*Math.random()),Up=dn([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),$p=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Up(this,t,e)},t}(),Yp=new Ph(50),Xp=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,qp=function(){return function(){}}(),Zp=function(){return function(t){this.tokens=[],t&&(this.tokens=t)}}(),Kp=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}(),Jp=v(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Qp="__zr_style_"+Math.round(10*Math.random()),tf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ef={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};tf[Qp]=!0;var nf=["z","z2","invisible"],rf=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype._init=function(e){for(var n=_(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.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 of.copy(t.getBoundingRect()),t.transform&&of.applyTransform(t.transform),af.width=e,af.height=n,!of.intersect(af)}(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},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Jh(0,0,0,0)),e?Jh.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Jh(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=n.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&n.STYLE_CHANGED_BIT)},n.prototype.styleUpdated=function(){this.__dirty&=~n.STYLE_CHANGED_BIT},n.prototype.createStyle=function(t){return j(tf,t)},n.prototype.useStyle=function(t){t[Qp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[Qp]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,nf)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=_(u),h=0;h<c.length;h++){(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f])}var p=_(s);for(h=0;h<p.length;h++){var f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(h=0;h<nf.length;h++){f=nf[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return l(t,e),t},n.prototype.getAnimationStyleProps=function(){return ef},n.STYLE_CHANGED_BIT=2,n.initDefaultProps=function(){var t=n.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=pp.REDARAW_BIT|n.STYLE_CHANGED_BIT}(),n}(pp),of=new Jh(0,0,0,0),af=new Jh(0,0,0,0),sf=Math.pow,lf=Math.sqrt,uf=1e-8,cf=1e-4,hf=lf(3),pf=1/3,ff=$(),df=$(),gf=$(),vf=Math.min,yf=Math.max,mf=Math.sin,_f=Math.cos,xf=2*Math.PI,wf=$(),bf=$(),Sf=$(),Tf=[],Cf=[],Mf={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},If=[],Af=[],kf=[],Df=[],Of=[],Pf=[],Lf=Math.min,Ef=Math.max,Rf=Math.cos,Nf=Math.sin,Bf=Math.sqrt,zf=Math.abs,Ff=Math.PI,Hf=2*Ff,Vf="undefined"!=typeof Float32Array,Gf=[],jf=function(){function t(t){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=zf(n/ip/t)||0,this._uy=zf(n/ip/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this.addData(Mf.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=zf(t-this._xi)>this._ux||zf(e-this._yi)>this._uy||this._len<5;return this.addData(Mf.L,t,e),this._ctx&&n&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this.addData(Mf.C,t,e,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(Mf.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){Gf[0]=i,Gf[1]=r,Yn(Gf,o),i=Gf[0];var a=(r=Gf[1])-i;return this.addData(Mf.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Rf(r)*n+t,this._yi=Nf(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Mf.R,t,e,n,i),this},t.prototype.closePath=function(){this.addData(Mf.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},t.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Vf||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();Vf&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype._dashedLineTo=function(t,e){var n,i,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=t-l,h=e-u,p=Bf(c*c+h*h),f=l,d=u,g=o.length;for(c/=p,h/=p,0>s&&(s=r+s),f-=(s%=r)*c,d-=s*h;c>0&&t>=f||0>c&&f>=t||0===c&&(h>0&&e>=d||0>h&&d>=e);)f+=c*(n=o[i=this._dashIdx]),d+=h*n,this._dashIdx=(i+1)%g,c>0&&l>f||0>c&&f>l||h>0&&u>d||0>h&&d>u||a[i%2?"moveTo":"lineTo"](c>=0?Lf(f,t):Ef(f,t),h>=0?Lf(d,e):Ef(d,e));c=f-t,h=d-e,this._dashOffset=-Bf(c*c+h*h)},t.prototype._dashedBezierTo=function(t,e,n,i,r,o){var a,s,l,u,c,h=this._ctx,p=this._dashSum,f=this._dashOffset,d=this._lineDash,g=this._xi,v=this._yi,y=0,m=this._dashIdx,_=d.length,x=0;for(0>f&&(f=p+f),f%=p,a=0;1>a;a+=.1)s=An(g,t,n,r,a+.1)-An(g,t,n,r,a),l=An(v,e,i,o,a+.1)-An(v,e,i,o,a),y+=Bf(s*s+l*l);for(;_>m&&!((x+=d[m])>f);m++);for(a=(x-f)/y;1>=a;)u=An(g,t,n,r,a),c=An(v,e,i,o,a),m%2?h.moveTo(u,c):h.lineTo(u,c),a+=d[m]/y,m=(m+1)%_;m%2!=0&&h.lineTo(r,o),s=r-u,l=o-c,this._dashOffset=-Bf(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},t.prototype.toStatic=function(){if(this._saveData){var t=this.data;t instanceof Array&&(t.length=this._len,Vf&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){kf[0]=kf[1]=Of[0]=Of[1]=Number.MAX_VALUE,Df[0]=Df[1]=Pf[0]=Pf[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Mf.M:n=r=e[t++],i=o=e[t++],Of[0]=r,Of[1]=o,Pf[0]=r,Pf[1]=o;break;case Mf.L:Gn(n,i,e[t],e[t+1],Of,Pf),n=e[t++],i=e[t++];break;case Mf.C:jn(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Of,Pf),n=e[t++],i=e[t++];break;case Mf.Q:Wn(n,i,e[t++],e[t++],e[t],e[t+1],Of,Pf),n=e[t++],i=e[t++];break;case Mf.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=Rf(p)*c+l,o=Nf(p)*h+u),Un(l,u,c,h,p,f,d,Of,Pf),n=Rf(f)*c+l,i=Nf(f)*h+u;break;case Mf.R:Gn(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],Of,Pf);break;case Mf.Z:n=r,i=o}rt(kf,kf,Of),ot(Df,Df,Pf)}return 0===t&&(kf[0]=kf[1]=Df[0]=Df[1]=0),new Jh(kf[0],kf[1],Df[0]-kf[0],Df[1]-kf[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;e>h;){var p=t[h++],f=1===h;f&&(a=r=t[h],s=o=t[h+1]);var d=-1;switch(p){case Mf.M:r=a=t[h++],o=s=t[h++];break;case Mf.L:var g=t[h++],v=(_=t[h++])-o;(zf(k=g-r)>n||zf(v)>i||h===e-1)&&(d=Math.sqrt(k*k+v*v),r=g,o=_);break;case Mf.C:var y=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],w=t[h++];d=En(r,o,y,m,g,_,x,w,10),r=x,o=w;break;case Mf.Q:d=Hn(r,o,y=t[h++],m=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Mf.A:var b=t[h++],S=t[h++],T=t[h++],C=t[h++],M=t[h++],I=t[h++],A=I+M;h+=1,t[h++],f&&(a=Rf(M)*T+b,s=Nf(M)*C+S),d=Ef(T,C)*Lf(Hf,Math.abs(I)),r=Rf(A)*T+b,o=Nf(A)*C+S;break;case Mf.R:a=r=t[h++],s=o=t[h++],d=2*t[h++]+2*t[h++];break;case Mf.Z:var k=a-r;v=s-o;d=Math.sqrt(k*k+v*v),r=a,o=s}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c=this.data,h=this._ux,p=this._uy,f=this._len,d=1>e,g=0,v=0;if(!d||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var y=0;f>y;){var m=c[y++],_=1===y;switch(_&&(n=r=c[y],i=o=c[y+1]),m){case Mf.M:n=r=c[y++],i=o=c[y++],t.moveTo(r,o);break;case Mf.L:if(a=c[y++],s=c[y++],zf(a-r)>h||zf(s-o)>p||y===f-1){if(d){if(g+(G=l[v++])>u){var x=(u-g)/G;t.lineTo(r*(1-x)+a*x,o*(1-x)+s*x);break t}g+=G}t.lineTo(a,s),r=a,o=s}break;case Mf.C:var w=c[y++],b=c[y++],S=c[y++],T=c[y++],C=c[y++],M=c[y++];if(d){if(g+(G=l[v++])>u){Pn(r,w,S,C,x=(u-g)/G,If),Pn(o,b,T,M,x,Af),t.bezierCurveTo(If[1],Af[1],If[2],Af[2],If[3],Af[3]);break t}g+=G}t.bezierCurveTo(w,b,S,T,C,M),r=C,o=M;break;case Mf.Q:w=c[y++],b=c[y++],S=c[y++],T=c[y++];if(d){if(g+(G=l[v++])>u){zn(r,w,S,x=(u-g)/G,If),zn(o,b,T,x,Af),t.quadraticCurveTo(If[1],Af[1],If[2],Af[2]);break t}g+=G}t.quadraticCurveTo(w,b,S,T),r=S,o=T;break;case Mf.A:var I=c[y++],A=c[y++],k=c[y++],D=c[y++],O=c[y++],P=c[y++],L=c[y++],E=!c[y++],R=k>D?k:D,N=zf(k-D)>.001,B=O+P,z=!1;if(d)g+(G=l[v++])>u&&(B=O+P*(u-g)/G,z=!0),g+=G;if(N&&t.ellipse?t.ellipse(I,A,k,D,L,O,B,E):t.arc(I,A,R,O,B,E),z)break t;_&&(n=Rf(O)*k+I,i=Nf(O)*D+A),r=Rf(B)*k+I,o=Nf(B)*D+A;break;case Mf.R:n=r=c[y],i=o=c[y+1],a=c[y++],s=c[y++];var F=c[y++],H=c[y++];if(d){if(g+(G=l[v++])>u){var V=u-g;t.moveTo(a,s),t.lineTo(a+Lf(V,F),s),(V-=F)>0&&t.lineTo(a+F,s+Lf(V,H)),(V-=H)>0&&t.lineTo(a+Ef(F-V,0),s+H),(V-=F)>0&&t.lineTo(a,s+Ef(H-V,0));break t}g+=G}t.rect(a,s,F,H);break;case Mf.Z:if(d){var G;if(g+(G=l[v++])>u){x=(u-g)/G;t.lineTo(r*(1-x)+n*x,o*(1-x)+i*x);break t}g+=G}t.closePath(),r=n,o=i}}},t.CMD=Mf,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0}(),t}(),Wf=2*Math.PI,Uf=2*Math.PI,$f=jf.CMD,Yf=2*Math.PI,Xf=1e-4,qf=[-1,-1,-1],Zf=[-1,-1],Kf=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tf),Jf={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ef.style)},Qf=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],td=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Qf.length;++s)r[Qf[s]]=this[Qf[s]];r.__dirty|=pp.REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=_(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?l(this.style,a):this.useStyle(a):"shape"===o?l(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(S(t)){var e=Wt(t,0);return e>.5?op:e>.2?"#eee":ap}if(t)return ap}return op},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(S(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Wt(t,0)<rp)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~n.SHAPE_CHANGED_BIT},n.prototype.createPathProxy=function(){this.path=new jf(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var r=!1;this.path||(r=!0,this.createPathProxy());var o=this.path;(r||this.__dirty&n.SHAPE_CHANGED_BIT)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var s=e.strokeNoScale?this.getLineScale():1,l=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,null==u?4:u)}s>1e-10&&(a.width+=l/s,a.height+=l/s,a.x-=l/s/2,a.y-=l/s/2)}return a}return t},n.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)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ri(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ri(t,0,!1,e,n)}(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=n.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&n.SHAPE_CHANGED_BIT)},n.prototype.createStyle=function(t){return j(Kf,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=l({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,u=!(n&&r);if(n&&n.shape?o?r?s=n.shape:l(s=l({},i.shape),n.shape):l(s=l({},r?this.shape:i.shape),n.shape):u&&(s=i.shape),s)if(o){this.shape=l({},this.shape);for(var c={},h=_(s),p=0;p<h.length;p++){var f=h[p];"object"==typeof s[f]?this.shape[f]=s[f]:c[f]=s[f]}this._transitionState(e,{shape:c},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return Jf},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var i=function(n){function i(e){var i=n.call(this,e)||this;return t.init&&t.init.call(i,e),i}return e(i,n),i.prototype.getDefaultStyle=function(){return a(t.style)},i.prototype.getDefaultShape=function(){return a(t.shape)},i}(n);for(var r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},n.SHAPE_CHANGED_BIT=4,n.initDefaultProps=function(){var t=n.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=pp.REDARAW_BIT|rf.STYLE_CHANGED_BIT|n.SHAPE_CHANGED_BIT}(),n}(rf),ed=u({strokeFirst:!0,font:tp,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Kf),nd=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.createStyle=function(t){return j(ed,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ie(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=void(n.prototype.dirtyRectTolerance=10),n}(rf);nd.prototype.type="tspan";var id=u({x:0,y:0},tf),rd={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ef.style)},od=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return j(id,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=function(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return rd},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Jh(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(rf);od.prototype.type="image";var ad=Math.round,sd=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),ld={},ud=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new sd},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ai(ld,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;0>u&&(s+=u,u=-u),0>c&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(td);ud.prototype.type="rect";var cd={fill:"#000"},hd={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},ef.style)},pd=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=cd,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}var i=this.attachedTransform;if(i){i.updateTransform();var r=i.transform;r?(this.transform=this.transform||[],wt(this.transform,r)):this.transform=null}else t.prototype.update.call(this)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():t.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,function(t){li(t),d(t.rich,li)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Jh(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},n.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||cd},n.prototype.setTextContent=function(){throw new Error("Can't attach text on another text")},n.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},n.prototype._mergeRich=function(t,e){for(var n=_(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},n.prototype.getAnimationStyleProps=function(){return hd},n.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},n.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||tp,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=ae(o),l=E(e.lineHeight,s),u="truncate"===e.lineOverflow,c=e.width,h=(n=null!=c&&"break"===i||"breakAll"===i?t?Cn(t,e.font,c,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*l,p=E(e.height,h);if(h>p&&u){var f=Math.floor(p/l);n=n.slice(0,f)}var d=p,g=c;if(r&&(d+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var v=xn(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=wn(n[y],v);if(null==c){var m=0;for(y=0;y<n.length;y++)m=Math.max(ee(n[y],o),m);c=m}return{lines:n,height:p,outerHeight:d,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:c}}(hi(t),t),r=pi(t),o=!!t.backgroundColor,a=i.outerHeight,s=i.lines,l=i.lineHeight,u=this._defaultStyle,c=t.x||0,h=t.y||0,p=t.align||u.align||"left",f=t.verticalAlign||u.verticalAlign||"top",d=c,g=oe(h,i.contentHeight,f);if(r||n){var v=i.width;n&&(v+=n[1]+n[3]);var y=re(c,v,p),m=oe(h,a,f);r&&this._renderBackground(t,t,y,m,v,a)}g+=l/2,n&&(d=ci(c,p,n),"top"===f?g+=n[0]:"bottom"===f&&(g-=n[2]));for(var _=0,x=!1,w=(function(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}("fill"in t?t.fill:(x=!0,u.fill))),b=(ui("stroke"in t?t.stroke:o||u.autoStroke&&!x?null:(_=2,u.stroke))),S=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,M=0;M<s.length;M++){var I=this._getOrCreateChild(nd),A=I.createStyle();I.useStyle(A),A.text=s[M],A.x=d,A.y=g,p&&(A.textAlign=p),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,S&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),b&&(A.stroke=b,A.lineWidth=t.lineWidth||_,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),w&&(A.fill=w),A.font=e,g+=l,T&&I.setBoundingRect(new Jh(re(A.x,t.width,A.textAlign),oe(A.y,C,A.textBaseline),t.width,C))}},n.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}var i=new Kp;if(null!=t&&(t+=""),!t)return i;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=Xp.lastIndex=0;null!=(r=Xp.exec(t));){var c=r.index;c>u&&Sn(i,t.substring(u,c),e,l),Sn(i,r[2],e,l,r[1]),u=Xp.lastIndex}u<t.length&&Sn(i,t.substring(u,t.length),e,l);var h=[],p=0,f=0,d=e.padding,g="truncate"===s,v="truncate"===e.lineOverflow;t:for(var y=0;y<i.lines.length;y++){for(var m=i.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=(P=m.tokens[w]).styleName&&e.rich[P.styleName]||{},S=P.textPadding=b.padding,T=S?S[1]+S[3]:0,C=P.font=b.font||e.font;P.contentHeight=ae(C);var M=E(b.height,P.contentHeight);if(P.innerHeight=M,S&&(M+=S[0]+S[2]),P.height=M,P.lineHeight=R(b.lineHeight,e.lineHeight,M),P.align=b&&b.align||e.align,P.verticalAlign=b&&b.verticalAlign||"middle",v&&null!=a&&p+P.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),i.lines=i.lines.slice(0,y+1)):i.lines=i.lines.slice(0,y);break t}var I=b.width,A=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))P.percentWidth=I,h.push(P),P.contentWidth=ee(P.text,C);else{if(A){var k=b.backgroundColor,D=k&&k.image;D&&mn(D=gn(D))&&(P.width=Math.max(P.width,D.width*M/D.height))}var O=g&&null!=o?o-x:null;null!=O&&O<P.width?!A||T>O?(P.text="",P.width=P.contentWidth=0):(P.text=_n(P.text,O-T,C,e.ellipsis,{minChar:e.truncateMinChar}),P.width=P.contentWidth=ee(P.text,C)):P.contentWidth=ee(P.text,C)}P.width+=T,x+=P.width,b&&(_=Math.max(_,P.lineHeight))}n(m,x,_)}for(i.outerWidth=i.width=E(o,f),i.outerHeight=i.height=E(a,p),i.contentHeight=p,i.contentWidth=f,d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]),y=0;y<h.length;y++){var P,L=(P=h[y]).percentWidth;P.width=parseInt(L,10)/100*i.width}return i}(hi(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,c=t.verticalAlign||l.verticalAlign,h=re(a,i,u),p=oe(s,r,c),f=h,d=p;o&&(f+=o[3],d+=o[0]);var g=f+n;pi(t)&&this._renderBackground(t,t,h,p,i,r);for(var v=!!t.backgroundColor,y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=m.tokens,x=_.length,w=m.lineHeight,b=m.width,S=0,T=f,C=g,M=x-1,I=void 0;x>S&&(!(I=_[S]).align||"left"===I.align);)this._placeToken(I,t,w,d,T,"left",v),b-=I.width,T+=I.width,S++;for(;M>=0&&"right"===(I=_[M]).align;)this._placeToken(I,t,w,d,C,"right",v),b-=I.width,C-=I.width,M--;for(T+=(n-(T-f)-(g-C)-b)/2;M>=S;)I=_[S],this._placeToken(I,t,w,d,T+I.width/2,"center",v),T+=I.width,S++;d+=w}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&pi(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 c=!!s.backgroundColor,h=t.textPadding;h&&(r=ci(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(nd),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,v=0,y=ui("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=ui("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||d.autoStroke&&!g?null:(v=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||tp,f.opacity=R(s.opacity,e.opacity,1),m&&(f.lineWidth=R(s.lineWidth,e.lineWidth,v),f.lineDash=E(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=m),y&&(f.fill=y);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new Jh(re(f.x,x,f.textAlign),oe(f.y,w,f.textBaseline),x,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=S(u),f=t.borderRadius,d=this;if(p||c&&h){(a=this._getOrCreateChild(ud)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=E(t.fillOpacity,1);else if(u&&u.image){(s=this._getOrCreateChild(od)).onload=function(){d.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=E(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=R(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&F(e)||t.textFont||t.font},n}(rf),fd={left:!0,right:1,center:1},dd={top:1,bottom:1,middle:1},gd=nn(),vd=1,yd={},md=nn(),_d=0,xd=1,wd=2,bd=["emphasis","blur","select"],Sd=["normal","emphasis","blur","select"],Td=10,Cd=9,Md="highlight",Id="downplay",Ad="select",kd="unselect",Dd="toggleSelect",Od=new Ph(100),Pd=["emphasis","blur","select"],Ld={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Ed=jf.CMD,Rd=[[],[],[]],Nd=Math.sqrt,Bd=Math.atan2,zd=Math.sqrt,Fd=Math.sin,Hd=Math.cos,Vd=Math.PI,Gd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,jd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Wd=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(td),Ud=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),$d=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Ud},n.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(td);$d.prototype.type="circle";var Yd=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),Xd=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Yd},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(td);Xd.prototype.type="ellipse";var qd=Math.PI,Zd=2*qd,Kd=Math.sin,Jd=Math.cos,Qd=Math.acos,tg=Math.atan2,eg=Math.abs,ng=Math.sqrt,ig=Math.max,rg=Math.min,og=1e-4,ag=function(){return 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,this.innerCornerRadius=0}}(),sg=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new ag},n.prototype.buildPath=function(t,e){Xi(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(td);sg.prototype.type="sector";var lg=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),ug=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new lg},n.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)},n}(td);ug.prototype.type="ring";var cg=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),hg=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new cg},n.prototype.buildPath=function(t,e){Zi(t,e,!0)},n}(td);hg.prototype.type="polygon";var pg=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),fg=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new pg},n.prototype.buildPath=function(t,e){Zi(t,e,!1)},n}(td);fg.prototype.type="polyline";var dg={},gg=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),vg=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new gg},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=oi(dg,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(td);vg.prototype.type="line";var yg=[],mg=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}(),_g=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new mg},n.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,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(1>c&&(zn(n,a,r,c,yg),a=yg[1],r=yg[2],zn(i,s,o,c,yg),s=yg[1],o=yg[2]),t.quadraticCurveTo(a,s,r,o)):(1>c&&(Pn(n,a,l,r,c,yg),a=yg[1],l=yg[2],r=yg[3],Pn(i,s,u,o,c,yg),s=yg[1],u=yg[2],o=yg[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return Ki(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=Ki(this.shape,t,!0);return Q(e,e)},n}(td);_g.prototype.type="bezier-curve";var xg=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),wg=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new xg},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},n}(td);wg.prototype.type="arc";var bg=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.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()},n.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)},n.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},n.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),td.prototype.getBoundingRect.call(this)},n}(td),Sg=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Tg=function(t){function n(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(n,t),n}(Sg),Cg=function(t){function n(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return e(n,t),n}(Sg),Mg=[0,0],Ig=[0,0],Ag=new jh,kg=new jh,Dg=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;4>n;n++)this._corners[n]=new jh;for(n=0;2>n;n++)this._axes[n]=new jh;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);jh.sub(i[0],n[1],n[0]),jh.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return Ag.set(1/0,1/0),kg.set(0,0),!this._intersectCheckOneSide(this,t,Ag,kg,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,Ag,kg,i,-1)&&(n=!1,i)?n:(i||jh.copy(e,n?Ag:kg),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Mg),this._getProjMinMaxOnAxis(s,e._corners,Ig),Mg[1]<Ig[0]||Mg[0]>Ig[1]){if(a=!1,r)return a;var u=Math.abs(Ig[0]-Mg[1]),c=Math.abs(Mg[0]-Ig[1]);Math.min(u,c)>i.len()&&(c>u?jh.scale(i,l,-u*o):jh.scale(i,l,c*o))}else if(n){u=Math.abs(Ig[0]-Mg[1]),c=Math.abs(Mg[0]-Ig[1]);Math.min(u,c)<n.len()&&(c>u?jh.scale(n,l,u*o):jh.scale(n,l,-c*o))}}return a},t.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},t}(),Og=[],Pg=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(n,t),n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.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])},n.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(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Jh(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(Og)),t.union(i)}this._rect=t}return this._rect},n.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},n}(rf),Lg=Math.max,Eg=Math.min,Rg={},Ng=function(t,n){var i=$i(t,n);return function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(Wd)},Bg=function(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var a=new td(e);return a.createPathProxy(),a.buildPath=function(t){if(Ui(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a},zg=si;tr("circle",$d),tr("ellipse",Xd),tr("sector",sg),tr("ring",ug),tr("polygon",hg),tr("polyline",fg),tr("rect",ud),tr("line",vg),tr("bezierCurve",_g),tr("arc",wg);var Fg=(Object.freeze||Object)({extendShape:Ji,extendPath:Qi,registerShape:tr,getShapeClass:er,makePath:nr,makeImage:ir,mergePath:Bg,resizePath:or,subPixelOptimizeLine:function(t){return oi(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return ai(t.shape,t.shape,t.style),t},subPixelOptimize:zg,updateProps:sr,initProps:lr,removeElement:ur,removeElementWithFadeOut:hr,isElementRemoved:pr,getTransform:fr,applyTransform:dr,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]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=dr(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},groupTransition:vr,clipPointsByRect:yr,clipRectByRect:mr,createIcon:_r,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(xr(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},lineLineIntersect:xr,Group:Ap,Image:od,Text:pd,Circle:$d,Ellipse:Xd,Sector:sg,Ring:ug,Polygon:hg,Polyline:fg,Rect:ud,Line:vg,BezierCurve:_g,Arc:wg,IncrementalDisplayable:Pg,CompoundPath:bg,LinearGradient:Tg,RadialGradient:Cg,BoundingRect:Jh,OrientedBoundingRect:Dg,Point:jh,Path:td}),Hg={},Vg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Gg=["align","lineHeight","width","height","tag","verticalAlign"],jg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],Wg=nn(),Ug=["textStyle","color"],$g=new pd,Yg=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ug):null)},t.prototype.getFont=function(){return function(t,e){var n=e&&e.getModel("textStyle");return F([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){return $g.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),$g.update(),$g.getBoundingRect()},t}(),Xg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],qg=dn(Xg),Zg=function(){function t(){}return t.prototype.getLineStyle=function(t){return qg(this,t)},t}(),Kg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Jg=dn(Kg),Qg=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Jg(this,t,e)},t}(),tv=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){s(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(a(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Pc.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();un(tv),function(t){var e=["__\0is_clz",Wp++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(tv),p(tv,Zg),p(tv,Qg),p(tv,$p),p(tv,Yg);var ev=Math.round(10*Math.random()),nv="ZH",iv="EN",rv=iv,ov={},av={},sv=Pc.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(nv)>-1?nv:rv;Dr(iv,{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:"Guage",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},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:". "}}}}),Dr(nv,{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:"旭日图"}},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 lv=1e3,uv=60*lv,cv=60*uv,hv=24*cv,pv=365*hv,fv={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}"},dv="{yyyy}-{MM}-{dd}",gv={year:"{yyyy}",month:"{yyyy}-{MM}",day:dv,hour:dv+" "+fv.hour,minute:dv+" "+fv.minute,second:dv+" "+fv.second,millisecond:fv.none},vv=["year","month","day","hour","minute","second","millisecond"],yv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],mv=B,_v=/([&<>"'])/g,xv={"&":"&","<":"<",">":">",'"':""","'":"'"},wv=["a","b","c","d","e","f","g"],bv=function(t,e){return"{"+t+(null==e?"":e)+"}"},Sv=d,Tv=["left","right","top","bottom","width","height"],Cv=[["width","left","right"],["height","top","bottom"]],Mv=oo,Iv=(x(oo,"vertical"),x(oo,"horizontal"),nn()),Av=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=kr("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=so(this),i=n?uo(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),n&&lo(t,i,n)},n.prototype.mergeOption=function(t){s(this.option,t,!0);var e=so(this);e&&lo(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[jp])}(t))return t.defaultOption;var e=Iv(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;a>=0;a--)o=s(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return on(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(tv);cn(Av,tv),fn(Av),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=ln(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=ln(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Av),function(t,e){function n(t){var n={},r=[];return d(t,function(o){var a=i(n,o),s=function(t,e){var n=[];return d(t,function(t){c(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),d(s,function(t){c(a.predecessor,t)<0&&a.predecessor.push(t);var e=i(n,t);c(e.successor,t)<0&&e.successor.push(o)})}),{graph:n,noEntryList:r}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,i,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){c[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,c={};for(d(t,function(t){c[t]=!0});u.length;){var h=u.pop(),p=l[h],f=!!c[h];f&&(i.call(r,h,p.originalDeps.slice()),delete c[h]),d(p.successor,f?a:o)}d(c,function(){throw new Error("")})}}}(Av,function(t){var e=[];return d(Av.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return ln(t).main}),"dataset"!==t&&c(e,"dataset")<=0&&e.unshift("dataset"),e});var kv="";"undefined"!=typeof navigator&&(kv=navigator.platform||"");var Dv,Ov,Pv="rgba(0, 0, 0, 0.2)",Lv={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Pv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Pv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kv.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},Ev=G(["tooltip","label","itemName","itemId","seriesName"]),Rv="original",Nv="arrayRows",Bv="objectRows",zv="keyedColumns",Fv="typedArray",Hv="unknown",Vv="column",Gv="row",jv={Must:1,Might:2,Not:3},Wv=nn(),Uv=G(),$v=nn(),Yv=(nn(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=$e(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}(this,$v,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,$v)},t}()),Xv="\0_ec_inner",qv=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new tv(i),this._locale=new tv(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=mo(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,mo(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Ov(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&d(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],u=G(),c=e&&e.replaceMergeMainTypeMap;(function(t){Wv(t).datasetMap=G()})(this),d(t,function(t,e){null!=t&&(Av.hasClass(e)?e&&(o.push(e),u.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),c&&c.each(function(t,e){Av.hasClass(e)&&!u.get(e)&&(o.push(e),u.set(e,!0))}),Av.topologicalTravel(o,Av.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=Uv.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,$e(t[e])),a=i.get(e),s=qe(a,o,a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){d(t,function(t){var i=t.newOption;M(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(s,e,Av),n[e]=null,i.set(e,null),r.set(e,0);var u=[],h=[],p=0;d(s,function(t,n){var i=t.existing,r=t.newOption;if(r){var o=Av.getClass(e,t.keyInfo.subType,!0);if(i&&i.constructor===o)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var a=l({componentIndex:n},t.keyInfo);l(i=new o(r,this,this,a),a),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(u.push(i.option),h.push(i),p++):(u.push(void 0),h.push(void 0))},this),n[e]=u,i.set(e,h),r.set(e,p),"series"===e&&Dv(this)},this),this._seriesIndices||Dv(this)},n.prototype.getOption=function(){var t=a(this.option);return d(t,function(e,n){if(Av.hasClass(n)){for(var i=$e(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!tn(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[Xv],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.getLocale=function(t){return this.getLocaleModel().get(t)},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},n.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],d($e(i),function(t){a[t]&&n.push(a[t])})):n=null!=r?vo("id",r,a):null!=o?vo("name",o,a):y(a,function(t){return!!t}),yo(n,t)):[]},n.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=function(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}(e);return function(e){return t.filter?y(e,t.filter):e}(yo(i?this.queryComponents(i):y(this._componentsMap.get(n),function(t){return!!t}),t))},n.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(b(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=S(t)?i.get(t):M(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},n.prototype.getSeriesByName=function(t){var e=Je(t,null);return y(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},n.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},n.prototype.getSeriesByType=function(t){return y(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},n.prototype.getSeries=function(){return y(this._componentsMap.get("series").slice(),function(t){return!!t})},n.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},n.prototype.eachSeries=function(t,e){d(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},n.prototype.eachRawSeries=function(t,e){d(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(t,e,n){d(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},n.prototype.eachRawSeriesByType=function(t,e,n){return d(this.getSeriesByType(t),e,n)},n.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(t,e){var n=[];d(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=G(n)},n.prototype.restoreData=function(t){Dv(this);var e=this._componentsMap,n=[];e.each(function(t,e){Av.hasClass(e)&&n.push(e)}),Av.topologicalTravel(n,Av.getAllClassMainTypes(),function(n){d(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()})})},n.internalField=(Dv=function(t){var e=t._seriesIndices=[];d(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=G(e)},void(Ov=function(t,e){t.option={},t.option[Xv]=1,t._componentsMap=G({series:[]}),t._componentsCount=G();var n=e.aria;M(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;d(e,function(e,i){"colorLayer"===i&&n||Av.hasClass(i)||("object"==typeof e?t[i]=t[i]?s(t[i],e,!1):a(e):null==t[i]&&(t[i]=e))})}(e,t._theme.option),s(e,Lv,!1),t._mergeOption(e,null)})),n}(tv);p(qv,Yv);var Zv,Kv,Jv,Qv,ty,ey=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ny=function(){return function(t){d(ey,function(e){this[e]=$c(t[e],t)},this)}}(),iy={},ry=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];d(iy,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){d(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){iy[t]=e},t.get=function(t){return iy[t]},t}(),oy=/^(min|max)?(.+)$/,ay=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(d($e(t.series),function(t){t&&t.data&&A(t.data)&&H(t.data)}),d($e(t.dataset),function(t){t&&t.source&&A(t.source)&&H(t.source)})),t=a(t);var n=this._optionBackup,i=function(t,e,n){function i(t){d(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||h)&&(t.options=t.media=null),o=t),h&&w(c)&&d(c,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),d(u,function(t){return i(t)}),d(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=a(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],o=[];if(!n.length&&!i)return o;for(var s=0,l=n.length;l>s;s++)_o(n[s].query,t,e)&&r.push(s);return!r.length&&i&&(r=[-1]),r.length&&!function(t,e){return t.join(",")===e.join(",")}(r,this._currentMediaIndices)&&(o=g(r,function(t){return a(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,o},t}(),sy=d,ly=M,uy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],cy=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hy=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],py=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],fy=function(){return function(t){this.data=t.data||(t.sourceFormat===zv?{}:[]),this.sourceFormat=t.sourceFormat||Hv,this.seriesLayoutBy=t.seriesLayoutBy||Vv,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption}}(),dy=function(){function t(t,e){var n=Eo(t)?t:No(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Fv&&(this._offset=0,this._dimSize=e,this._data=i),ty(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;ty=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,c=o.dimensionsDefine;if(l(t,Qv[Uo(a,s)]),a===Fv)t.getItem=n,t.count=r,t.fillStorage=i;else{var h=Go(a,s);t.getItem=$c(h,null,e,u,c);var p=jo(a,s);t.count=$c(p,null,e,u,c)}};var n=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;i>o;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;c>p;p++){var f=r[p*o+a];h[t+p]=f,l>f&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};(e={})[Nv+"_"+Vv]={pure:!0,appendData:t},e[Nv+"_"+Gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Bv]={pure:!0,appendData:t},e[zv]={pure:!0,appendData:function(t){var e=this._data;d(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[Rv]={appendData:t},e[Fv]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Qv=e}(),t}(),gy=function(t,e,n,i){return t[i]},vy=((Zv={})[Nv+"_"+Vv]=function(t,e,n,i){return t[i+e]},Zv[Nv+"_"+Gv]=function(t,e,n,i){i+=e;for(var r=[],o=t,a=0;a<o.length;a++){var s=o[a];r.push(s?s[i]:null)}return r},Zv[Bv]=gy,Zv[zv]=function(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=t[n[o].name];r.push(a?a[i]:null)}return r},Zv[Rv]=gy,Zv),yy=function(t){return t.length},my=((Kv={})[Nv+"_"+Vv]=function(t,e){return Math.max(0,t.length-e)},Kv[Nv+"_"+Gv]=function(t,e){var n=t[0];return n?Math.max(0,n.length-e):0},Kv[Bv]=yy,Kv[zv]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},Kv[Rv]=yy,Kv),_y=function(t,e){return null!=e?t[e]:t},xy=((Jv={})[Nv]=_y,Jv[Bv]=function(t,e,n){return null!=e?t[n]:t},Jv[zv]=_y,Jv[Rv]=function(t,e){var n=Xe(t);return null!=e&&n instanceof Array?n[e]:n},Jv[Fv]=_y,Jv),wy=/\{@(.+?)\}/g,by=function(){function t(){}return t.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"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput;return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.dimensionNames:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=i&&w(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return"function"==typeof r?(s.status=e,s.dimensionIndex=i,r(s)):"string"==typeof r?no(r,s).replace(wy,function(e,n){var i=n.length,r="["===n.charAt(0)&&"]"===n.charAt(i-1)?+n.slice(1,i-1):n,s=$o(a,t,r);if(o&&w(o.interpolatedValue)){var l=a.getDimensionInfo(r);l&&(s=o.interpolatedValue[l.index])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return $o(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),Sy=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n,i=this._upstream,r=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(n=this._plan(this.context));var a,s=e(this._modBy),l=this._modDataCount||0,u=e(t&&t.modBy),c=t&&t.modDataCount||0;(s!==u||l!==c)&&(n="reset"),(this._dirty||"reset"===n)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var h=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(a||f>p)){var d=this._progress;if(w(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],p,f,u,c);else this._doProgress(d,p,f,u,c)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){Ty.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Ty.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),w(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Ty=function(){function t(){return n>i?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,c,h){i=l,n=u,r=c,o=h,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),Cy=(G({number:function(t){return parseFloat(t)},time:function(t){return+Be(t)},trim:function(t){return"string"==typeof t?F(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),My=(function(){function t(t,e){if("number"!=typeof e){Ue("")}this._opFn=Cy[t],this._rvalFloat=Ve(e)}t.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Ve(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,r="number"===n?t:Ve(t),o="number"===i?e:Ve(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?t:0),u&&(o=l?e:0)}return o>r?this._resultLT:r>o?-this._resultLT:0},t}()),Iy=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ve(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ve(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return qo(t,e)},t}()),Ay=G(),ky=function(){function t(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[])},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(ia(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=A(a=o.get("data",!0))?Fv:Rv,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null;t=[Ro(a,{seriesLayoutBy:E(c.seriesLayoutBy,h?h.seriesLayoutBy:null),sourceHeader:E(c.sourceHeader,h?h.sourceHeader:null),dimensions:E(c.dimensions,h?h.dimensions:null)},s,o.get("encode",!0))]}else{var p=n;if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else{t=[Ro(p.get("source",!0),this._getSourceMetaRawOption(),null,null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(null!=i){1!==t.length&&ra("")}var r,o=[],a=[];return d(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||ra(""),o.push(e),a.push(t._getVersionSign())}),n?r=function(t,e,n){var i=$e(t),r=i.length;r||Ue("");for(var o=0,a=r;a>o;o++)e=ta(i[o],e),o!==a-1&&(e.length=Math.max(e.length,1));return e}(n,o,e.componentIndex):null!=i&&(r=[Bo(o[0])]),{sourceList:r,upstreamSignList:a}},t.prototype._isDirty=function(){if(!this._sourceList.length)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){return this._sourceList[t||0]},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ia(t)){var e=po(t);return e?[e.getSourceManager()]:[]}return g(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?on(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Hp).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(ia(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),Dy="line-height:1",Oy=[0,10,20,30],Py=["","\n","\n\n","\n\n\n"],Ly={section:{planLayout:function(t){var e=t.blocks.length,n=e>1||e>0&&!t.noHeader,i=0;d(t.blocks,function(t){sa(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=ua(e),a=function(t,e,n,i){var r=[],o=e.blocks||[];z(!o||w(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(W(s,a)){var l=new My(s[a],null);o.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===a&&o.reverse()}var u=ua(e);return d(o,function(e,n){var o=sa(e).build(t,e,n>0?u.html:0,i);null!=o&&r.push(o)}),r.length?"richText"===t.renderMode?r.join(u.richText):ca(r.join(""),n):void 0}(t,e,r?n:o.html,i);if(r)return a;var s=eo(e.header,"ordinal",t.useUTC),l=oa(i,t.renderMode).nameStyle;return"richText"===t.renderMode?ha(t,s,l)+o.richText+a:ca('<div style="'+l+";"+Dy+';">'+to(s)+"</div>"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":eo(l,"ordinal",c),f=e.valueType,d=a?[]:w(u)?g(u,function(t,e){return eo(t,w(f)?f[e]:f,c)}):[eo(u,w(f)?f[0]:f,c)],v=!s||!o,y=!s&&o,m=oa(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":ha(t,p,_))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,d,v,y,x)):ca((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+to(t)+"</span>"}(p,!s,_))+(a?"":function(t,e,n,i){return'<span style="'+(e?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+g(t,function(t){return to(t)}).join(" ")+"</span>"}(d,v,y,x)),n)}}}},Ey=function(){function t(){this.richTextStyles={},this._nextStyleNameId=je()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=io({color:e,type:t,renderMode:n,markerId:i});return S(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};w(e)?d(e,function(t){return l(n,t)}):l(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),Ry=nn(),Ny=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Xo({count:ya,reset:ma}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ry(this).sourceManager=new ky(this)).prepareSource();var i=this.getInitialData(t,n);xa(i,this),this.dataTask.context.data=i,Ry(this).dataBeforeProcessed=i,va(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=so(this),i=n?uo(t):{},r=this.subType;Av.hasClass(r)&&(r+="Series"),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Ye(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&lo(t,i,n)},n.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var n=so(this);n&&lo(this.option,t,n);var i=Ry(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);xa(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Ry(this).dataBeforeProcessed=r,va(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!A(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ye(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=ba(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Ry(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=ba(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Ry(this).data=t},n.prototype.getSource=function(){return Ry(this).sourceManager.getSource()},n.prototype.getRawData=function(){return Ry(this).dataBeforeProcessed},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e){return function(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=w(h),f=pa(o,a);if(c>1||p&&!c){var d=da(h,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=$o(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var v=Qe(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return aa("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[aa("nameValue",{markerType:"item",markerColor:f,name:_,noName:!F(_),value:e,valueType:n})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){if(Pc.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Yv.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),r=0;r<t.length;r++){var o=ga(i,t[r]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}},n.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)},n.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=_(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[ga(this.getData(e),t)]||!1},n.prototype._innerSelect=function(t,e){var n,i,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;o>s;s++){var l=e[s];a[c=ga(t,l)]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(l)}else if("single"===r||!0===r){var u=e[o-1],c=ga(t,u);this.option.selectedMap=((n={})[c]=!0,n),this._selectedDataIndicesMap=((i={})[c]=t.getRawIndex(u),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);"object"==typeof i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return Av.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(Av);p(Ny,by),p(Ny,Yv),cn(Ny,Av);var By=function(){function t(){this.group=new Ap,this.uid=kr("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.blurSeries=function(){},t}();un(By),fn(By);var zy=nn(),Fy=Sa(),Hy=function(){function t(){this.group=new Ap,this.uid=kr("viewChart"),this.renderTask=Xo({plan:Ma,reset:Ia}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){Ca(t.getData(),i,"emphasis")},t.prototype.downplay=function(t,e,n,i){Ca(t.getData(),i,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.markUpdateMethod=function(t,e){zy(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();un(Hy),fn(Hy);var Vy,Gy={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)}}},jy="\0__throttleOriginMethod",Wy="\0__throttleRate",Uy="\0__throttleType",$y=nn(),Yy={itemStyle:dn(Kg,!0),lineStyle:dn(Xg,!0)},Xy={lineStyle:"stroke",itemStyle:"fill"},qy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=ka(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Da(t,i),u=o[s],c=b(u)?u:null;return(!o[s]||c)&&(o[s]=t.getColorFromPalette(t.name,null,e.getSeriesCount()),n.setVisual("colorFromPalette",!0)),n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},o);r[s]=c(i),e.setItemVisual(n,"style",r)}}):void 0}},Zy=new tv,Ky={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=ka(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Zy.option=n[i];var a=r(Zy);l(t.ensureUniqueItemVisual(e,"style"),a),Zy.option.decal&&(t.setItemVisual(e,"decal",Zy.option.decal),Zy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Jy={performRawSeries:!0,overallReset:function(t){var e=G();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||(n={},e.set(t.type,n)),$y(t).scope=n}}),t.eachSeries(function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=$y(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Da(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},Qy=Math.PI,tm=function(){function t(t,e,n,i){this._stageTaskMap=G(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=G();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)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;d(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)},t.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)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;d(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var c,h=u.agentStubMap;h.each(function(t){r(i,t)&&(t.dirty(),c=!0)}),c&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,i.block);h.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Xo({plan:Ra,reset:Na,count:za}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=G(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,Xo({reset:Pa,onDirty:Ea})));n.context={model:t,overallProgress:h},n.agent=a,n.__block=h,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Xo({reset:Oa});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=G(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1;z(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,r):c?c(n,i).each(r):(h=!1,d(n.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return b(t)&&(t={overallReset:t,seriesType:function(t){Vy=null;try{t(nm,im)}catch(t){}return Vy}(t)}),t.uid=kr("stageHandler"),e&&(t.visualType=e),t},t}(),em=Ba(0),nm={},im={};Fa(nm,qv),Fa(im,ny),nm.eachSeriesByType=nm.eachRawSeriesByType=function(t){Vy=t},nm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Vy=t.subType)};var rm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],om={color:rm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],rm]},am="#B9B8CE",sm="#100C2A",lm=function(){return{axisLine:{lineStyle:{color:am}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},um=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],cm={darkMode:!0,color:um,backgroundColor:sm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:am}},textStyle:{color:am},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:am}},dataZoom:{borderColor:"#71708A",textStyle:{color:am},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:am}},timeline:{lineStyle:{color:am},label:{color:am},controlStyle:{color:am,borderColor:am}},calendar:{itemStyle:{color:sm},dayLabel:{color:am},monthLabel:{color:am},yearLabel:{color:am}},timeAxis:lm(),logAxis:lm(),valueAxis:lm(),categoryAxis:lm(),line:{symbol:"circle"},graph:{color:um},gauge:{title:{color:am},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:am},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};cm.categoryAxis.splitLine.show=!1;var hm=G(),pm={registerMap:function(t,e,n){var i;if(w(e))i=e;else if(e.svg)i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}];else{var r=e.geoJson||e.geoJSON;r&&!e.features&&(n=e.specialAreas,e=r),i=[{type:"geoJSON",source:e,specialAreas:n}]}return d(i,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,fm[e])(t)}),hm.set(t,i)},retrieveMap:function(t){return hm.get(t)}},fm={geoJSON:function(t){var e=t.source;t.geoJSON=S(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=function(t){S(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}(t.source)}},dm=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(S(t)){var r=ln(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};d(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),gm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendSymbol&&n.setVisual("legendSymbol",t.legendSymbol),t.hasSymbolVisual){var i=t.get("symbol"),r=t.get("symbolSize"),o=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=b(i),l=b(r),u=b(a),c=s||l||u,h=!s&&i?i:t.defaultSymbol,p=l?null:r,f=u?null:a;if(n.setVisual({legendSymbol:t.legendSymbol||h,symbol:h,symbolSize:p,symbolKeepAspect:o,symbolRotate:f}),!e.isSeriesFiltered(t))return{dataEach:c?function(e,n){var o=t.getRawValue(n),c=t.getDataParams(n);s&&e.setItemVisual(n,"symbol",i(o,c)),l&&e.setItemVisual(n,"symbolSize",r(o,c)),u&&e.setItemVisual(n,"symbolRotate",a(o,c))}:null}}}},vm=2*Math.PI,ym=jf.CMD,mm=["top","right","bottom","left"],_m=[],xm=new jh,wm=new jh,bm=new jh,Sm=new jh,Tm=new jh,Cm=[],Mm=new jh,Im=["align","verticalAlign","width","height","fontSize"],Am=new Ih,km=nn(),Dm=nn(),Om=["x","y","rotation"],Pm=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Jh.applyTransform(l,l,s),s?Am.setLocalTransform(s):(Am.x=Am.y=Am.rotation=Am.originX=Am.originY=0,Am.scaleX=Am.scaleY=1);var u,c=i.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();Jh.applyTransform(u,u,h)}var p=u&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Am.x,y:Am.y,rotation:Am.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(b(i)||_(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=gd(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){$a(t,e)}}for(var n=t.getWidth(),i=t.getHeight(),r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u="function"==typeof o.layoutOption?o.layoutOption(es(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=De(u.x,n),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=De(u.y,i),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var p=s.getTextGuideLine();p&&(p.setShape({points:u.labelLinePoints}),h=!1)}km(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation;for(var f=0;f<Im.length;f++){var d=Im[f];a.setStyle(d,null!=u[d]?u[d]:l.style[d])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",e(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Dg(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}(this._labelList),r=y(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=y(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});(function(t,e,n,i){Qa(t,"x","width",e,n,i)})(r,0,e),ts(o,0,n),function(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new Jh(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var h=o.obb,p=!1,f=0;f<n.length;f++){var d=n[f];if(i.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new Dg(d.localRect,d.transform)),h||(h=new Dg(s,l)),h.intersect(d.obb)){p=!0;break}}}p?(e(u),c&&e(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}(y(i,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;d(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=km(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=gd(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");Ka(t,Ja(a),s),$a(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!pr(t)){var r=(d=km(n)).oldLayout,o=gd(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(r){n.attr(r);var u=t.prevStates;u&&(c(u,"select")>=0&&n.attr(d.oldLayoutSelect),c(u,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),sr(n,s,e,a)}else if(n.attr(s),!Wg(n).valueAnimation){var h=E(n.style.opacity,1);n.style.opacity=0,lr(n,{style:{opacity:h}},e,a)}if(d.oldLayout=s,n.states.select){var p=d.oldLayoutSelect={};ns(p,s,Om),ns(p,n.states.select,Om)}if(n.states.emphasis){var f=d.oldLayoutEmphasis={};ns(f,s,Om),ns(f,n.states.emphasis,Om)}!function(t,e,n,i,r){var o=Wg(t);if(o.valueAnimation){var a=o.defaultInterpolatedText,s=E(o.interpolatedValue,o.prevValue),l=o.value;(null==s?lr:sr)(t,{},i,e,null,function(i){var u=sn(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=Sr({labelDataIndex:e,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);br(t,c)})}}(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(d=Dm(i)).oldLayout;var d,g={points:i.shape.points};r?(i.attr({shape:r}),sr(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,lr(i,{style:{strokePercent:1}},e)),d.oldLayout=g}},t}(),Lm=Math.round(9*Math.random()),Em=function(){function t(){this._id="__ec_inner_"+Lm++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return"function"==typeof Object.defineProperty?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),Rm=td.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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Nm=td.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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),Bm=td.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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+p*f,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-c+h*f,l+s+p*f,n-c,l+s),t.closePath()}}),zm=td.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,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),Fm={line:function(t,e,n,i,r){r.x=t,r.y=e+i/2-1,r.width=n,r.height=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){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},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}},Hm={};d({line:ud,rect:ud,roundRect:ud,square:ud,circle:$d,diamond:Nm,pin:Bm,arrow:zm,triangle:Rm},function(t,e){Hm[e]=new t});var Vm=td.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=le(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=Hm[i];r||(r=Hm[i="rect"]),Fm[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}}),Gm=new jf(!0),jm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Wm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Um=1,$m=2,Ym=3,Xm=4,qm=new Em,Zm=new Ph(100),Km=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],Jm=z,Qm=d,t_=b,e_=M,n_=c,i_="undefined"!=typeof window,r_=2e3,o_=1e3,a_=3e3,s_={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:o_,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:a_,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},l_="__flagInMainProcess",u_="__optionUpdated",c_="__needsUpdateStatus",h_=/^[a-zA-Z0-9_]+$/,p_="__connectUpdateStatus",f_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(ih),d_=f_.prototype;d_.on=Is("on"),d_.off=Is("off");var g_,v_,y_,m_,__,x_,w_,b_,S_,T_,C_,M_,I_,A_,k_,D_,O_,P_,L_,E_,R_,N_=function(t){function n(e,n,i){function r(t,e){return t.__prio-e.__prio}var o=t.call(this,new dm)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},"string"==typeof n&&(n=$_[n]),o._dom=e;var s=o._zr=Ie(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,useDirtyRect:null!=i.useDirtyRect&&i.useDirtyRect});o._throttledZrFlush=Aa($c(s.flush,s),17),(n=a(n))&&Po(n,!0),o._theme=n,o._locale=Or(i.locale||sv),o._coordSysMgr=new ry;var l=o._api=O_(o);return ye(U_,r),ye(V_,r),o._scheduler=new tm(o,l,V_,U_),o._messageCenter=new f_,o._labelManager=new Pm,o._initEvents(),o.resize=$c(o.resize,o),s.animation.on("frame",o._onframe,o),T_(s,o),C_(s,o),H(o),o}return e(n,t),n.prototype._onframe=function(){if(!this._disposed){R_(this);var t=this._scheduler;if(this[u_]){var e=this[u_].silent;this[l_]=!0,g_(this),m_.update.call(this),this._zr.flush(),this[l_]=!1,this[u_]=!1,b_.call(this,e),S_.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),x_(this,i),t.performVisualTasks(i),k_(this,this._model,r,"remain"),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.setOption=function(t,e,n){if(!this._disposed){var i,r,o;if(e_(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[l_]=!0,!this._model||e){var a=new ay(this._api),s=this._theme,l=this._model=new qv;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},G_),L_(this,o),n?(this[u_]={silent:i},this[l_]=!1,this.getZr().wakeUp()):(g_(this),m_.update.call(this),this._zr.flush(),this[u_]=!1,this[l_]=!1,b_.call(this,i),S_.call(this,i))}},n.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||i_&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){if(Pc.canvasSupported)return(t=l({},t||{})).pixelRatio=t.pixelRatio||this.getDevicePixelRatio(),t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},n.prototype.getSvgDataURL=function(){if(Pc.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Qm(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Qm(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed&&Pc.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(q_[n]){var s=o,l=o,u=-o,c=-o,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();d(X_,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(a(t)),f=o.getDom().getBoundingClientRect();s=i(f.left,s),l=i(f.top,l),u=r(f.right,u),c=r(f.bottom,c),h.push({dom:p,left:f.left,top:f.top})}});var f=(u*=p)-(s*=p),g=(c*=p)-(l*=p),v=Uc(),y=Ie(v,{renderer:e?"svg":"canvas"});if(y.resize({width:f,height:g}),e){var m="";return Qm(h,function(t){var e=t.left-s,n=t.top-l;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()}return t.connectedBackgroundColor&&y.add(new ud({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),Qm(h,function(t){var e=new od({style:{x:t.left*p-s,y:t.top*p-l,image:t.dom}});y.add(e)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return __(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return __(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){var n;if(!this._disposed)return d(rn(this._model,t),function(t,i){i.indexOf("Models")>=0&&d(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n},n.prototype.getVisual=function(t,e){var n=rn(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):function(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)}}(i,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;Qm(z_,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&rs(o,function(t){var e=gd(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(i=l({},e.eventData),!0):void 0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var u=a&&null!=s&&r.getComponent(a,s),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),Qm(H_,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),Qm(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),function(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(is("map","selectchanged",e,i,t),is("pie","selectchanged",e,i,t)):"select"===t.fromAction?(is("map","selected",e,i,t),is("pie","selected",e,i,t)):"unselect"===t.fromAction&&(is("map","unselected",e,i,t),is("pie","unselected",e,i,t))})}(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,an(this.getDom(),J_,"");var t=this._api,e=this._model;Qm(this._componentsViews,function(n){n.dispose(e,t)}),Qm(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete X_[this.id]}},n.prototype.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[l_]=!0,n&&g_(this),m_.update.call(this,{type:"resize",animation:{duration:0}}),this[l_]=!1,b_.call(this,i),S_.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(e_(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Y_[t])){var n=Y_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=H_[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(e_(e)||(e={silent:!!e}),F_[t.type]&&this._model)){if(this[l_])return void this._pendingActions.push(t);var n=e.silent;w_.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&Pc.browser.weChat&&this._throttledZrFlush(),b_.call(this,n),S_.call(this,n)}},n.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(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===wd&&t.states.emphasis?e.push("emphasis"):t.hoverState===xd&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){if(!t.isGroup){null!=n&&(t.z=n),null!=i&&(t.zlevel=i);var e=t.getTextContent(),r=t.getTextGuideLine();if(e&&(e.z=t.z,e.zlevel=t.zlevel,e.z2=t.z2+2),r){var o=t.textGuideLineConfig&&t.textGuideLineConfig.showAbove;r.z=t.z,r.zlevel=t.zlevel,r.z2=t.z2+(o?1:-1)}}})}}function i(t,e){e.group.traverse(function(t){if(!pr(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse(function(e){if(e.states&&e.states.emphasis){if(pr(e))return;if(e instanceof td&&function(t){var e=md(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}g_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),v_(t,!0),v_(t,!1),e.plan()},v_=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!n&&a[u];if(!c){var h=ln(t.type);(c=new(e?By.getClass(h.main,h.sub):Hy.getClass(h.sub))).init(i,l),a[u]=c,o.push(c),s.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,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;e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n);for(u=0;u<o.length;){var c=o[u];c.__alive?u++:(!e&&c.renderTask.dispose(),s.remove(c.group),c.dispose(i,l),o.splice(u,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},y_=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u,c=n.excludeSeriesId;null!=c&&(u=G(),Qm($e(c),function(t){var e=Je(t,null);null!=e&&u.set(e,!0)})),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||(Hi(n)&&!n.notBlur?e instanceof Ny&&function(t,e,n){if(Hi(e)){var i=e.type===Md,r=t.seriesIndex,o=t.getData(e.dataType),a=en(o,e);a=(w(a)?a[0]:a)||0;var s=o.getItemGraphicEl(a);if(!s)for(var l=o.count(),u=0;!s&&l>u;)s=o.getItemGraphicEl(u++);if(s){var c=gd(s);Li(r,c.focus,c.blurScope,n,i)}else{var h=t.get(["emphasis","focus"]),p=t.get(["emphasis","blurScope"]);null!=h&&Li(r,h,p,n,i)}}}(e,n,t._api):Fi(n)&&e instanceof Ny&&(function(t,e){if(Fi(e)){var n=e.dataType,i=en(t.getData(n),e);w(i)||(i=[i]),t[e.type===Dd?"toggleSelect":e.type===Ad?"select":"unselect"](i,n)}}(e,n,t._api),Ei(e),E_(t)),o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId]))},t)}else Qm([].concat(t._componentsViews).concat(t._chartsViews),o)},m_={prepareAndUpdate:function(t){g_(this),m_.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){e.setUpdatePayload(t),o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),x_(this,e),r.update(e,n),M_(e),o.performVisualTasks(e,t),I_(this,e,n,t);var a=e.get("backgroundColor")||"transparent",s=e.get("darkMode");if(Pc.canvasSupported)i.setBackgroundColor(a),null!=s&&"auto"!==s&&i.setDarkMode(s);else{var l=Bt(a);a=jt(l,"rgb"),0===l[3]&&(a="transparent")}D_(e,n)}},updateTransform:function(t){var e=this,n=this._model,i=this._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent(function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=G();n.eachSeries(function(r){var a=e._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,n,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),M_(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),k_(this,n,i,t,o),D_(n,this._api)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Hy.markUpdateMethod(t,"updateView"),M_(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),I_(this,this._model,this._api,t),D_(e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),Hy.markUpdateMethod(t,"updateVisual"),M_(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){if("series"!==i){var o=e.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,e._api,t)}}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),D_(n,this._api))},updateLayout:function(t){m_.update.call(this,t)}},__=function(t,e,n,i){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=rn(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},x_=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},w_=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=F_[r],s=a.actionInfo,c=(s.update||"update").split(":"),h=c.pop(),p=null!=c[0]&&ln(c[0]);this[l_]=!0;var f=[t],d=!1;t.batch&&(d=!0,f=g(t.batch,function(e){return(e=u(l({},e),t)).batch=null,e}));var v,y=[],m=Fi(t),_=Hi(t)||m;if(Qm(f,function(t){(v=(v=a.action(t,n._model,n._api))||l({},t)).type=s.event||v.type,y.push(v),_?(y_(n,h,t,"series"),E_(n)):p&&y_(n,h,t,p.main,p.sub)}),"none"===h||_||p||(this[u_]?(g_(this),m_.update.call(this,t),this[u_]=!1):m_[h].call(this,t)),v=d?{type:s.event||r,escapeConnect:o,batch:y}:y[0],this[l_]=!1,!e){var x=this._messageCenter;if(x.trigger(v.type,v),m){var w={type:"selectchanged",escapeConnect:o,selected:Ri(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};x.trigger(w.type,w)}}},b_=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();w_.call(this,n,t)}},S_=function(t){!t&&this.trigger("updated")},T_=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[u_]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},C_=function(t,e){t.on("mouseover",function(t){var n=rs(t.target,zi);if(n){var i=gd(n);Li(i.seriesIndex,i.focus,i.blurScope,e._api,!0),function(t,e){!Pi(t,e)&&!t.__highByOuter&&Si(t,vi)}(n,t),E_(e)}}).on("mouseout",function(t){var n=rs(t.target,zi);if(n){var i=gd(n);Li(i.seriesIndex,i.focus,i.blurScope,e._api,!1),function(t,e){!Pi(t,e)&&!t.__highByOuter&&Si(t,yi)}(n,t),E_(e)}}).on("click",function(t){var n=rs(t.target,function(t){return null!=gd(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=gd(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},M_=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},I_=function(t,e,n,i){A_(t,e,n,i),Qm(t._chartsViews,function(t){t.__alive=!1}),k_(t,e,n,i),Qm(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},A_=function(t,e,o,a,s){Qm(s||t._componentsViews,function(t){var s=t.__model;i(0,t),t.render(s,e,o,a),n(s,t),r(s,t)})},k_=function(t,e,o,a,s){var l=t._scheduler,u=t._labelManager;u.clearLabels();var c=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;l.updatePayload(r,a),i(0,n),s&&s.get(e.uid)&&r.dirty(),r.perform(l.getPerformArgs(r))&&(c=!0),e.__transientTransitionOpt=null,n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=n})})}(e,n),Ei(e),u.addLabelsOfSeries(n)}),l.unfinished=c||l.unfinished,u.updateLayoutConfig(o),u.layout(o),u.processLabelsOverall(),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=0;t._zr.storage.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!Pc.node&&!Pc.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e)},D_=function(t,e){Qm(W_,function(n){n(t,e)})},E_=function(t){t[c_]=!0,t.getZr().wakeUp()},R_=function(e){e[c_]&&(e.getZr().storage.traverse(function(e){pr(e)||t(e)}),e[c_]=!1)},O_=function(t){return new(function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){Ii(e,n),E_(t)},i.prototype.leaveEmphasis=function(e,n){Ai(e,n),E_(t)},i.prototype.enterBlur=function(e){(function(t){Si(t,mi)})(e),E_(t)},i.prototype.leaveBlur=function(e){ki(e),E_(t)},i.prototype.enterSelect=function(e){Di(e),E_(t)},i.prototype.leaveSelect=function(e){Oi(e),E_(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(ny))(t)},P_=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][p_]=e}}Qm(H_,function(n,i){t._messageCenter.on(i,function(n){if(q_[t.group]&&0!==t[p_]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Qm(X_,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),Qm(r,function(t){1!==t[p_]&&t.dispatchAction(i)}),e(r,2)}})})},L_=function(t,e){var n=t._model;d($e(e),function(t){var e,i=t.from,r=t.to;null==r&&Ue(e);var o={includeMainTypes:["series"],enableAll:!1,enableNone:!1},a=i?rn(n,i,o):null,s=rn(n,r,o).seriesModel;null==s&&(e=""),a&&a.seriesModel!==s&&(e=""),null!=e&&Ue(e),s.__transientTransitionOpt={from:i?i.dimension:null,to:r.dimension,dividingMethod:t.dividingMethod}})}}(),n}(ih),B_=N_.prototype;B_.on=Ms("on"),B_.off=Ms("off"),B_.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)};var z_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],F_={},H_={},V_=[],G_=[],j_=[],W_=[],U_=[],$_={},Y_={},X_={},q_={},Z_=+new Date-0,K_=+new Date-0,J_="_echarts_instance_",Q_=ks,tx=[],ex=function(t){var e=(t=a(t)).type;e||Ue("");var n=e.split(":");2!==n.length&&Ue("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Ay.set(e,t)};Fs(2e3,qy),Fs(4500,Ky),Fs(4500,Jy),Fs(2e3,gm),Fs(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolKeepAspect",a)}:null}}}),Fs(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=ws(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=ws(r,e))}})}),Ps(Po),Ls(900,function(t){var e=G();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(Lo)}),Vs("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=new Ap,i=new ud({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new pd({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily}}),a=new ud({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new wg({shape:{startAngle:-Qy/2,endAngle:-Qy/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*Qy/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Qy/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Ns({type:Md,event:Md,update:Md},U),Ns({type:Id,event:Id,update:Id},U),Ns({type:Ad,event:Ad,update:Ad},U),Ns({type:kd,event:kd,update:kd},U),Ns({type:Dd,event:Dd,update:Dd},U),Os("light",om),Os("dark",cm);var nx,ix,rx,ox,ax,sx,lx,ux,cx,hx,px,fx,dx,gx,vx=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Ws,this._newKeyGetter=i||Ws,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},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=i[o],s=n[a],l=js(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.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],c=js(l),h=js(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1)for(var p=0;c>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=js(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=js(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),yx=function(){return function(t){this.otherDims={},null!=t&&l(this,t)}}(),mx=Math.floor,_x=M,xx=g,bx="undefined",Sx={float:typeof Float64Array===bx?Array:Float64Array,int:typeof Int32Array===bx?Array:Int32Array,ordinal:Array,number:Array,time:Array},Tx=typeof Uint32Array===bx?Array:Uint32Array,Cx=typeof Int32Array===bx?Array:Int32Array,Mx=typeof Uint16Array===bx?Array:Uint16Array,Ix=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ax=["_extent","_approximateExtent","_rawExtent"],kx=function(){function t(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=ax,t=t||["x","y"];for(var n={},i=[],r={},o=0;o<t.length;o++){var a=t[o],s=S(a)?new yx({name:a}):a instanceof yx?a:new yx(a),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var u=s.otherDims=s.otherDims||{};i.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(r[l]=[]),0===u.itemName&&(this._nameDimIdx=o,this._nameOrdinalMeta=s.ordinalMeta),0===u.itemId&&(this._idDimIdx=o,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=function(t){var e={},n=e.encode={},i=G(),r=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};d(t.dimensions,function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=s.coordDimIndex;Us(n,l)[u]=e,s.isExtraCoord||(i.set(l,1),function(t){return!("ordinal"===t||"time"===t)}(s.type)&&(r[0]=e),Us(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}Ev.each(function(t,e){var i=Us(n,e),r=s.otherDims[e];null!=r&&!1!==r&&(i[r]=s.name)})});var s=[],l={};i.each(function(t,e){var i=n[e];l[e]=i[0],s=s.concat(i)}),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(r=u.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=o,e}(this),this._invertedIndicesMap=r,this.userOutput=this._dimensionsSummary.userOutput}return t.prototype.getDimension=function(t){return("number"==typeof t||!isNaN(t)&&!this._dimensionInfos.hasOwnProperty(t))&&(t=this.dimensions[t]),t},t.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},t.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimensionsSummary.encode[t]||[]).slice()},t.prototype.initData=function(t,e,n){var i=Eo(t)||f(t)?new dy(t,this.dimensions.length):t;this._rawData=i;var r=i.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||r===Fv||!!i.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=nx[r],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=nx.arrayRows,this._rawExtent={},this._initDataFromProvider(0,i.count()),i.pure&&(this.hasItemOption=!1)},t.prototype.getProvider=function(){return this._rawData},t.prototype.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i,!0)},t.prototype.appendValues=function(t,e){for(var n=this._storage,i=this.dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;r>l;l++){var u=i[l];o[u]||(o[u]=fx()),ox(n,this._dimensionInfos[u],s,!0)}for(var c=xx(i,function(t){return o[t]}),h=this._storageArr=xx(i,function(t){return n[t]}),p=[],f=a;s>f;f++){for(var d=f-a,g=0;r>g;g++){u=i[g];var v=this._dimValueGetterArrayRows(t[d]||p,u,d,g);h[g][f]=v;var y=c[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}e&&(this._nameList[f]=e[d],this._dontMakeIdFromName||cx(this,f))}this._rawCount=this._count=s,this._extent={},ix(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var i=this._rawData,r=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=i.getSource().sourceFormat===Rv,p=0;a>p;p++){var f=o[p];c[f]||(c[f]=fx()),ox(r,s[f],e,n)}var d=this._storageArr=xx(o,function(t){return r[t]}),g=xx(o,function(t){return c[t]});if(i.fillStorage)i.fillStorage(t,e,d,g);else for(var v=[],y=t;e>y;y++){v=i.getItem(y,v);for(var m=0;a>m;m++){f=o[m];var _=d[m],x=this._dimValueGetter(v,f,y,m);_[y]=x;var w=g[m];x<w[0]&&(w[0]=x),x>w[1]&&(w[1]=x)}if(h&&!i.pure&&v){var b=v.name;null==l[y]&&null!=b&&(l[y]=Je(b,null));var S=v.id;null==u[y]&&null!=S&&(u[y]=Je(S,null))}this._dontMakeIdFromName||cx(this,y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},ix(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=rx(this))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.getByDimIdx=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storageArr[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];return n?n[e]:NaN},t.prototype.getValues=function(t,e){var n=[];w(t)||(e=t,t=this.dimensions);for(var i=0,r=t.length;r>i;i++)n.push(this.get(t[i],e));return n},t.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},t.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=fx();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;r>s;s++){var l=e[this.getRawIndex(s)];o>l&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){_x(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();i>n;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indexOfName=function(t){for(var e=0,n=this.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;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;r>=i;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();u>l;l++){var c=e-i[this.getRawIndex(l)],h=Math.abs(c);n>=h&&((o>h||h===o&&c>=0&&0>a)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=ux(this,this._nameDimIdx,this._nameOrdinalMeta,e)),null==n&&(n=""),n},t.prototype.getId=function(t){return lx(this,this.getRawIndex(t))},t.prototype.each=function(t,e,n,i){var r=this;if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]);for(var o=n||i||this,a=xx(hx(t),this.getDimension,this),s=a.length,l=xx(a,function(t){return r._dimensionInfos[t].index}),u=this._storageArr,c=0,h=this.count();h>c;c++){var p=this.getRawIndex(c);switch(s){case 0:e.call(o,c);break;case 1:e.call(o,u[l[0]][p],c);break;case 2:e.call(o,u[l[0]][p],u[l[1]][p],c);break;default:for(var f=0,d=[];s>f;f++)d[f]=u[l[f]][p];d[f]=c,e.apply(o,d)}}}},t.prototype.filterSelf=function(t,e,n,i){var r=this;if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]);for(var o=n||i||this,a=xx(hx(t),this.getDimension,this),s=this.count(),l=new(rx(this))(s),u=[],c=a.length,h=0,p=xx(a,function(t){return r._dimensionInfos[t].index}),f=p[0],d=this._storageArr,g=0;s>g;g++){var v=void 0,y=this.getRawIndex(g);if(0===c)v=e.call(o,g);else if(1===c){var m=d[f][y];v=e.call(o,m,g)}else{for(var _=0;c>_;_++)u[_]=d[p[_]][y];u[_]=g,v=e.apply(o,u)}v&&(l[h++]=y)}return s>h&&(this._indices=l),this._count=h,this._extent={},this.getRawIndex=this._indices?sx:ax,this}},t.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var i=[];for(var r in t)t.hasOwnProperty(r)&&i.push(r);var o=i.length;if(o){var a=this.count(),s=new(rx(this))(a),l=0,u=i[0],c=xx(i,function(t){return e._dimensionInfos[t].index}),h=t[u][0],p=t[u][1],f=this._storageArr,d=!1;if(!this._indices){var g=0;if(1===o){for(var v=f[c[0]],y=0;n>y;y++){((w=v[y])>=h&&p>=w||isNaN(w))&&(s[l++]=g),g++}d=!0}else if(2===o){v=f[c[0]];var m=f[c[1]],_=t[i[1]][0],x=t[i[1]][1];for(y=0;n>y;y++){var w=v[y],b=m[y];(w>=h&&p>=w||isNaN(w))&&(b>=_&&x>=b||isNaN(b))&&(s[l++]=g),g++}d=!0}}if(!d)if(1===o)for(y=0;a>y;y++){var S=this.getRawIndex(y);((w=f[c[0]][S])>=h&&p>=w||isNaN(w))&&(s[l++]=S)}else for(y=0;a>y;y++){for(var T=!0,C=(S=this.getRawIndex(y),0);o>C;C++){var M=i[C];((w=f[c[C]][S])<t[M][0]||w>t[M][1])&&(T=!1)}T&&(s[l++]=this.getRawIndex(y))}return a>l&&(this._indices=s),this._count=l,this._extent={},this.getRawIndex=this._indices?sx:ax,this}}},t.prototype.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=xx(hx(t),this.getDimension,this),a=px(this,o),s=a._storage;a._indices=this._indices,a.getRawIndex=a._indices?sx:ax;for(var l=[],u=o.length,c=this.count(),h=[],p=a._rawExtent,f=0;c>f;f++){for(var d=0;u>d;d++)h[d]=this.get(o[d],f);h[u]=f;var g=e&&e.apply(r,h);if(null!=g){"object"!=typeof g&&(l[0]=g,g=l);for(var v=this.getRawIndex(f),y=0;y<g.length;y++){var m=o[y],_=g[y],x=p[m],w=s[m];w&&(w[v]=_),_<x[0]&&(x[0]=_),_>x[1]&&(x[1]=_)}}}return a},t.prototype.downSample=function(t,e,n,i){for(var r=px(this,[t]),o=r._storage,a=[],s=mx(1/e),l=o[t],u=this.count(),c=r._rawExtent[t],h=new(rx(this))(u),p=0,f=0;u>f;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(f+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r.getRawIndex=sx,r},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=px(this,[]),a=o._storage[t],s=this.count(),l=new(rx(this))(s),u=0,c=mx(1/e),h=this.getRawIndex(0);l[u++]=h;for(var p=1;s-1>p;p+=c){for(var f=Math.min(p+c,s-1),d=Math.min(p+2*c,s),g=(d+f)/2,v=0,y=f;d>y;y++){var m=a[S=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=d-f;var _=p,x=Math.min(p+c,s),w=p-1,b=a[h];n=-1,r=_;for(y=_;x>y;y++){var S;m=a[S=this.getRawIndex(y)];isNaN(m)||(i=Math.abs((w-g)*(m-b)-(w-y)*(v-b)))>n&&(n=i,r=S)}l[u++]=r,h=r}return l[u++]=this.getRawIndex(s-1),o._count=u,o._indices=l,o.getRawIndex=sx,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new tv(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new vx(t?t.getIndices():[],this.getIndices(),function(e){return lx(t,e)},function(t){return lx(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},_x(t)?l(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(w(r=this.getVisual(e))?r=r.slice():_x(r)&&(r=l({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,_x(e)?l(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(_x(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var i=gd(e);i.dataIndex=t,i.dataType=this.dataType,i.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(dx,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){e||(e=new t(xx(this.dimensions,this.getDimensionInfo,this),this.hostModel));if(e._storage=this._storage,e._storageArr=this._storageArr,gx(e,this),this._indices){var n=this._indices.constructor;if(n===Array){var i=this._indices.length;e._indices=new n(i);for(var r=0;i>r;r++)e._indices[r]=this._indices[r]}else e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?sx:ax,e},t.prototype.wrapMethod=function(t,e){var n=this[t];"function"==typeof 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)))})},t.internalField=function(){function e(t,e,n,i){return qo(t[i],this._dimensionInfos[e])}function n(t){var e=t.constructor;return e===Array?t.slice():new e(t)}nx={arrayRows:e,objectRows:function(t,e){return qo(t[e],this._dimensionInfos[e])},keyedColumns:e,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&function(t){return M(t)&&!(t instanceof Array)}(t)&&(this.hasItemOption=!0),qo(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},ix=function(t){var e=t._invertedIndicesMap;d(e,function(n,i){var r=t._dimensionInfos[i].ordinalMeta;if(r){n=e[i]=new Cx(r.categories.length);for(var o=0;o<n.length;o++)n[o]=-1;for(o=0;o<t._count;o++)n[t.get(i,o)]=o}})},ux=function(t,e,n,i){var r,o=t._storageArr[e];return o&&(r=o[i],n&&n.categories.length&&(r=n.categories[r])),Je(r,null)},rx=function(t){return t._rawCount>65535?Tx:Mx},ox=function(t,e,n,i){var r=Sx[e.type],o=e.name;if(i){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new r(n),u=0;s>u;u++)l[u]=a[u];t[o]=l}}else t[o]=new r(n)},ax=function(t){return t},sx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},lx=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=ux(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n="e\0\0"+e),n},hx=function(t){return w(t)||(t=null!=t?[t]:[]),t},px=function(e,i){var r=e.dimensions,o=new t(xx(r,e.getDimensionInfo,e),e.hostModel);gx(o,e);for(var a=o._storage={},s=e._storage,l=o._storageArr=[],u=0;u<r.length;u++){var h=r[u];s[h]&&(c(i,h)>=0?(a[h]=n(s[h]),o._rawExtent[h]=fx(),o._extent[h]=null):a[h]=s[h],l.push(a[h]))}return o},fx=function(){return[1/0,-1/0]},dx=function(t){var e=gd(t),n=gd(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},gx=function(t,e){d(Ix.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,d(Ax,function(n){t[n]=a(e[n])}),t._calculationInfo=l({},e._calculationInfo)},cx=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=ux(t,r,t._nameOrdinalMeta,e)),null==s&&null!=o&&(i[e]=s=ux(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),Dx=function(){return function(t){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=t}}(),Ox={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Hp).models[0],o=t.getReferringComponents("yAxis",Hp).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),qs(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),qs(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Hp).models[0];e.coordSysDims=["single"],n.set("single",r),qs(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Hp).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),qs(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),qs(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();d(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),qs(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},Px=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();fn(Px);var Lx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&g(i,tl);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},t}(),Ex=Oe,Rx=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Lx({})),w(i)&&(i=new Lx({categories:g(i,function(t){return M(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return rl(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return ol(t=this._getTickNumber(this.parse(t)),this._extent)},n.prototype.scale=function(t){return t=Math.round(al(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.niceTicks=function(){},n.prototype.niceExtent=function(){},n.type="ordinal",n}(Px);Px.registerClass(Rx);var Nx=Oe,Bx=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return rl(t,this._extent)},n.prototype.normalize=function(t){return ol(t,this._extent)},n.prototype.scale=function(t){return al(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.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])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=nl(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&o.push(t?{value:Nx(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=Nx(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:Nx(s+e,r)}:{value:n[1]}),o},n.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;t-1>s;){var c=Nx(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Pe(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Jr(Nx(t.value,n,!0))},n.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var o=el(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=Nx(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=Nx(Math.ceil(e[1]/r)*r))},n.type="interval",n}(Px);Px.registerClass(Bx);var zx="__ec_stack_",Fx=("undefined"!=typeof Float32Array?Float32Array:Array,Sa(),function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}),Hx=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Rr(t.value,gv[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Lr(this._minLevelUnit))]||gv.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(t.value,e,{level:t.level});else{var a=l({},fv);if(t.level>0)for(var s=0;s<vv.length;++s)a[vv[s]]="{primary|"+a[vv[s]]+"}";var c=n?!1===n.inherit?n:u(n,a):a,h=Nr(t.value,r);if(c[h])o=c[h];else if(c.inherit){for(s=yv.indexOf(h)-1;s>=0;--s)if(c[h]){o=c[h];break}o=o||a.none}if(w(o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[p=Math.min(p,o.length-1)]}}return Rr(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=ml(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},n.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=hv,e[1]+=hv),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-hv}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.niceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Vx.length,a=Math.min(Fx(Vx,this._approxInterval,0,o),o-1);this._interval=Vx[a][1],this._minLevelUnit=Vx[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return"number"==typeof t?t:+Be(t)},n.prototype.contain=function(t){return rl(this.parse(t),this._extent)},n.prototype.normalize=function(t){return ol(this.parse(t),this._extent)},n.prototype.scale=function(t){return al(t,this._extent)},n.type="time",n}(Bx),Vx=[["second",lv],["minute",uv],["hour",cv],["quarter-day",6*cv],["half-day",12*cv],["day",1.2*hv],["half-week",3.5*hv],["week",7*hv],["month",31*hv],["quarter",95*hv],["half-year",pv/2],["year",pv]];Px.registerClass(Hx);var Gx=Px.prototype,jx=Bx.prototype,Wx=Pe,Ux=Oe,$x=Math.floor,Yx=Math.ceil,Xx=Math.pow,qx=Math.log,Zx=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Bx,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(jx.getTicks.call(this,t),function(t){var e=t.value,r=Oe(Xx(this.base,e));return r=e===n[0]&&this._fixMin?_l(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?_l(r,i[1]):r}},this)},n.prototype.setExtent=function(t,e){var n=this.base;t=qx(t)/qx(n),e=qx(e)/qx(n),jx.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=Gx.getExtent.call(this);e[0]=Xx(t,e[0]),e[1]=Xx(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=_l(e[0],n[0])),this._fixMax&&(e[1]=_l(e[1],n[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=qx(t[0])/qx(e),t[1]=qx(t[1])/qx(e),Gx.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=ze(n);for(.5>=t/n*i&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[Oe(Yx(e[0]/i)*i),Oe($x(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},n.prototype.niceExtent=function(t){jx.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return rl(t=qx(t)/qx(this.base),this._extent)},n.prototype.normalize=function(t){return ol(t=qx(t)/qx(this.base),this._extent)},n.prototype.scale=function(t){return t=al(t,this._extent),Xx(this.base,t)},n.type="log",n}(Px),Kx=Zx.prototype;Kx.getMinorTicks=jx.getMinorTicks,Kx.getLabel=jx.getLabel,Px.registerClass(Zx);var Jx=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);b(r)?this._modelMinNum=xl(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=xl(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(b(o)?this._modelMaxNum=xl(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=xl(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=w(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[se(s[0],1),se(s[1],1)]}},t.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;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),a>s&&(a=NaN,s=NaN);var c=P(a)||P(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[tw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[Qx[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Qx={min:"_determinedMin",max:"_determinedMax"},tw={min:"_dataMin",max:"_dataMax"},ew=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),nw={isDimensionStacked:Ks,enableDataStack:Zs,getStackedDimension:Js},iw=(Object.freeze||Object)({createList:function(t){return Qs(t.getSource(),t)},getLayoutRect:ao,dataStack:nw,createScale:function(t,e){var n=e;e instanceof tv||(n=new tv(e));var i=Sl(n);return i.setExtent(t[0],t[1]),bl(i,n),i},mixinAxisModelCommonMethods:function(t){p(t,ew)},getECData:gd,createTextStyle:function(t,e){return Mr(t,null,null,"normal"!==(e=e||{}).state)},createDimensions:Xs,createSymbol:as,enableHoverEmphasis:Ni}),rw=[],ow={registerPreprocessor:Ps,registerProcessor:Ls,registerPostInit:Es,registerPostUpdate:Rs,registerAction:Ns,registerCoordinateSystem:Bs,registerLayout:zs,registerVisual:Fs,registerTransform:ex,registerLoading:Vs,registerMap:Gs,PRIORITY:s_,ComponentModel:Av,ComponentView:By,SeriesModel:Ny,ChartView:Hy,registerComponentModel:function(t){Av.registerClass(t)},registerComponentView:function(t){By.registerClass(t)},registerSeriesModel:function(t){Ny.registerClass(t)},registerChartView:function(t){Hy.registerClass(t)},registerSubTypeDefaulter:function(t,e){Av.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ae(t,e)}},aw=1e-8,sw=function(){function t(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}return t.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){Vn(a[s].exterior,r,o),rt(n,n,r),ot(i,i,o)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new Jh(n[0],n[1],i[0]-n[0],i[1]-n[1])},t.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++)if("polygon"===n[i].type){var o=n[i].exterior,a=n[i].interiors;if(Ol(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Ol(a[s],t[0],t[1]))continue t;return!0}}return!1},t.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Jh(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,p=0;p<c.length;p++)it(c[p],c[p],s);for(var f=0;f<(h?h.length:0);f++)for(p=0;p<h[f].length;p++)it(h[f][p],h[f][p],s)}(r=this._rect).copy(a),this.center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this.center);return n._rect=this._rect,n.transformTo=null,n},t}(),lw=(Object.freeze||Object)({linearMap:ke,round:Oe,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPrecision:function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},getPrecisionSafe:Pe,getPixelPrecision:Le,getPercentWithPrecision:Ee,MAX_SAFE_INTEGER:9007199254740991,remRadian:Re,isRadianAroundZero:Ne,parseDate:Be,quantity:ze,quantityExponent:Fe,nice:He,quantile:function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r},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;2>a;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},isNumeric:Ge,numericToNumber:Ve}),uw=(Object.freeze||Object)({parse:Be,format:Rr}),cw=(Object.freeze||Object)({extendShape:Ji,extendPath:Qi,makePath:nr,makeImage:ir,mergePath:Bg,resizePath:or,createIcon:_r,updateProps:sr,initProps:lr,getTransform:fr,clipPointsByRect:yr,clipRectByRect:mr,registerShape:tr,getShapeClass:er,Group:Ap,Image:od,Text:pd,Circle:$d,Ellipse:Xd,Sector:sg,Ring:ug,Polygon:hg,Polyline:fg,Rect:ud,Line:vg,BezierCurve:_g,Arc:wg,IncrementalDisplayable:Pg,CompoundPath:bg,LinearGradient:Tg,RadialGradient:Cg,BoundingRect:Jh}),hw=(Object.freeze||Object)({addCommas:Jr,toCamelCase:Qr,normalizeCssArray:mv,encodeHTML:to,formatTpl:no,getTooltipMarker:io,formatTime:function(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=Be(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return t.replace("MM",Pr(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Pr(s,2)).replace("d",s).replace("hh",Pr(l,2)).replace("h",l).replace("mm",Pr(u,2)).replace("m",u).replace("ss",Pr(c,2)).replace("s",c).replace("SSS",Pr(h,3))},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},truncateText:_n,getTextRect:function(t,e,n,i,r,o,a,s){return new pd({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}}),pw=(Object.freeze||Object)({map:g,each:d,indexOf:c,inherits:h,reduce:v,filter:y,bind:$c,curry:x,isArray:w,isString:S,isObject:M,isFunction:b,extend:l,defaults:u,clone:a,merge:s}),fw=nn(),dw=[0,1],gw=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Le(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Gl(n=n.slice(),i.count()),ke(t,dw,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Gl(n=n.slice(),i.count());var r=ke(t,n,dw,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=g(Rl(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){function r(t,e){return t=Oe(t),e=Oe(e),h?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/u;d(e,function(t){t.coord-=c/2}),s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*s},e.push(a)}var h=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&100>t||(t=5),g(this.scale.getMinorTicks(t),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return El(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=Tl(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,f=0;l<=o[1];l+=s){var d,g,v=ie(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var y=p/c,m=f/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=fw(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}(this)},t}(),vw=function(t){function n(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||ip,"string"==typeof e?r=Wl(e,n,i):M(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(r.onselectstart=jl,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=i,o}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Wl("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(d=new Jh(0,0,0,0)).copy(t),o.push(d)}else{for(var e=!1,n=1/0,i=0,r=0;r<o.length;++r){var u=o[r];if(u.intersect(t)){var c=new Jh(0,0,0,0);c.copy(u),c.union(t),o[r]=c,e=!0;break}if(s){l.copy(t),l.union(u);var h=t.width*t.height,p=u.width*u.height,f=l.width*l.height-h-p;n>f&&(n=f,i=r)}}var d;if(s&&(o[i].union(t),e=!0),!e)(d=new Jh(0,0,0,0)).copy(t),o.push(d);s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new Jh(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){if(p=t[u]){var c=p.shouldBePainted(n,i,!0,!0);(f=p.__isRendered&&(p.__dirty&pp.REDARAW_BIT||!c)?p.getPrevPaintRect():null)&&r(f);var h=c&&(p.__dirty&pp.REDARAW_BIT||!p.__isRendered)?p.getPaintRect():null;h&&r(h)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var p,f;c=(p=e[u]).shouldBePainted(n,i,!0,!0);if(p&&(!c||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&r(f)}var d;do{d=!1;for(u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.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))},n.prototype.clear=function(t,e,n){function i(t,n,i,r){if(o.clearRect(t,n,i,r),e&&"transparent"!==e){var a=void 0;D(e)?(a=e.__canvasGradient||ss(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a):O(e)&&(a=fs(o,e,{dirty:function(){h.setUnpainted(),h.__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;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,s/c));var p=this.domBack;!n||l?i(0,0,a,s):n.length&&d(n,function(t){i(t.x*c,t.y*c,t.width*c,t.height*c)})},n}(ih),yw=314159,mw=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||ip,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r.webkitTapHighlightColor="transparent",r.webkitUserSelect="none",r.userSelect="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,u=s.width,c=s.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=u*this.dpr,s.height=c*this.dpr,this._width=u,this._height=c;var h=new vw(s,this,this.dpr);h.__builtin__=!0,h.initContext(),a[yw]=h,h.zlevel=yw,o.push(yw),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.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=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),xs(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){_s(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;yp(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(yw).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)})},t.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],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s=r[a],l=s.ctx,h=o&&s.createRepaintRects(t,e,p._width,p._height);l.save();var f=n?s.__startIndex:s.__drawIndex,d=!n&&s.incremental&&Date.now,g=d&&Date.now(),v=s.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,h);else if(f===s.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||s.clear(!1,v,h)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(m=f;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(c=!0),i._doPaintEl(r,s,o,e,n,m===s.__endIndex-1),d)if(Date.now()-g>15)break}n.prevElClipPaths&&l.restore()};if(h)if(0===h.length)m=s.__endIndex;else for(var x=p.dpr,w=0;w<h.length;++w){var b=h[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)},p=this,f=0;f<r.length;f++)h(f);return Pc.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(xs(a,t,r,o),t.setPrevPaintRect(s))}else xs(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=yw);var n=this._layers[t];return n||((n=new vw("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},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=this._domRoot,s=null,l=-1;if(n[t])o("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(l=0;r-1>l&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}else o("Layer of zlevel "+t+" is not valid")},t.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)}},t.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)}},t.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)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer(function(t){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}}var i,r,a=null,s=0;for(r=0;r<t.length;r++){var l,u=(l=t[r]).zlevel,c=void 0;i!==u&&(i=u,s=0),l.incremental?((c=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):c=this.getLayer(u+(s>0?.01:0),this._needsManuallyCompositing),c.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==r&&(c.__dirty=!0),c.__startIndex=r,c.__drawIndex=c.incremental?-1:r,e(r),a=c),l.__dirty&pp.REDARAW_BIT&&!l.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,d(this._layers,function(t){t.setUnpainted()})},t.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];if(r===t||r===t+.01)s(this._layers[r],n[t],!0)}}},t.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(c(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].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(yw).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[yw].dom;var e=new vw("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var 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;l>s;s++){var u=a[s];xs(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||Ul(s[n])||Ul(a.style[n]))-(Ul(s[r])||0)-(Ul(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,u=o.shadowOffsetY*e,c=t.hasStroke()?o.lineWidth:0,h=Math.max(c/2,-s+a),p=Math.max(c/2,s+a),f=Math.max(c/2,-u+a),d=Math.max(c/2,u+a),g=r.width+h+p,v=r.height+f+d;n.width=g*e,n.height=v*e,i.scale(e,e),i.clearRect(0,0,g,v),i.dpr=e;var y={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=h-r.x,t.y=f-r.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&xs(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new od({style:{x:0,y:0,image:n}});return l(t,y),m},t}(),_w=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new ky(this),na(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),na(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:Vv},n}(Av),xw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(By);kl([function(t){t.registerPainter("canvas",mw)},function(t){t.registerComponentModel(_w),t.registerComponentView(xw)}]);var ww=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e.legendSymbol="line",e}return e(n,t),n.prototype.getInitialData=function(){return Qs(this.getSource(),this,{useEncodeDefaulter:!0})},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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},n}(Ny),bw=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=as(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Yl,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){Ii(this.childAt(0))},n.prototype.downplay=function(){Ai(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,c)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(h):sr(p,h,a,e)}if(this._updateCommon(t,e,s,i,r),l){var p=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,lr(p,h,a,e)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},n.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,u,c,h,p,f,d,g=this.childAt(0),v=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,u=i.focus,c=i.blurScope,h=i.symbolOffset,p=i.labelStatesModels,f=i.hoverScale,d=i.cursorStyle),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=y.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),u=m.get("focus"),c=m.get("blurScope"),h=y.getShallow("symbolOffset"),p=Cr(y),f=m.getShallow("scale"),d=y.getShallow("cursor")}var _=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(_||0)*Math.PI/180||0),h&&(g.x=De(h[0],n[0]),g.y=De(h[1],n[1])),d&&g.attr("cursor",d);var x=t.getItemVisual(e,"style"),w=x.fill;if(g instanceof od){var b=g.style;g.useStyle(l({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},x))}else g.useStyle(g.__isEmptyBrush?l({},x):x),g.style.decal=null,g.setColor(w,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),T=this._z2;null!=S?null==T&&(this._z2=g.z2,g.z2+=S):null!=T&&(g.z2=T,this._z2=null);var C=r&&r.useNameLabel;Tr(g,p,{labelFetcher:v,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):$l(t,e)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=g.ensureState("emphasis");if(M.style=o,g.ensureState("select").style=s,g.ensureState("blur").style=a,f){var I=Math.max(1.1,3/this._sizeY);M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I}this.setSymbolScale(1),Ni(this,u,c)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,r=gd(this).dataIndex,o=e&&e.animation;if(this.silent=n.silent=!0,e&&e.fadeLabel){var a=n.getTextContent();a&&ur(a,{style:{opacity:0}},i,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();ur(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]},n}(Ap),Sw=function(){function t(t){this.group=new Ap,this._SymbolCtor=t||bw}return t.prototype.updateData=function(t,e){e=ql(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Zl(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Xl(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var p=r.getItemGraphicEl(h),f=u(c);if(Xl(t,f,c,e)){if(p){p.updateData(t,c,s,l);var d={x:f[0],y:f[1]};a?p.attr(d):sr(p,d,i)}else(p=new o(t,c)).setPosition(f);n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.isPersistent=function(){return!0},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Zl(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=ql(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Xl(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a)}}},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},t}(),Tw="undefined"!=typeof Float32Array,Cw=Tw?Float32Array:Array,Mw=Math.min,Iw=Math.max,Aw=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),kw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new Aw},n.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&tu(n[2*r-2],n[2*r-1]);r--);for(;r>i&&tu(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=eu(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=jf.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,p=void 0,f=void 0,d=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],1>=(g=a?(t-n)/(u-n):(t-i)/(c-i))&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],p=r[l++],f=r[l++],d=r[l++];var y=a?Dn(n,u,h,f,t,s):Dn(i,c,p,d,t,s);if(y>0)for(var m=0;y>m;m++){var _=s[m];if(1>=_&&_>=0){v=a?An(i,c,p,d,_):An(n,u,h,f,_);return a?[t,v]:[v,t]}}n=f,i=d}}},n}(td),Dw=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(Aw),Ow=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new Dw},n.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(;o>0&&tu(n[2*o-2],n[2*o-1]);o--);for(;o>r&&tu(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=eu(t,n,r,o,o,1,e.smooth,a,e.connectNulls);eu(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(td),Pw=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new Ap,e=new Sw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),c=a.getLayout("points")||[],h="polar"===r.type,p=this._coordSys,f=this._symbolDraw,d=this._polyline,g=this._polygon,v=this._lineGroup,y=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Kl(r,a,_),w=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Ql(2*i),o=0;i>o;o++){var a=Jl(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,x),b=t.get("showSymbol"),S=b&&!h&&lu(t,a,r),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),T.setItemGraphicEl(e,null))}),b||f.remove(),o.add(v);var C,M=!h&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(C=r.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var I=su(a,r)||a.getVisual("style")[a.getVisual("drawType")];d&&p.type===r.type&&M===this._step?(m&&!g?g=this._newPolygon(c,w):g&&!m&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,ro(I)),v.setClipPath(hu(this,r,!1,t)),b&&f.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),nu(this._stackedOnPoints,w)&&nu(this._points,c)||(y?this._doUpdateAnimation(a,w,r,n,M,_):(M&&(c=au(c,r,M),w&&(w=au(w,r,M))),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,C),M&&(c=au(c,r,M),w&&(w=au(w,r,M))),d=this._newPolyline(c),m&&(g=this._newPolygon(c,w)),h||this._initOrUpdateEndLabel(t,r,ro(I)),v.setClipPath(hu(this,r,!0,t)));var A=t.get(["emphasis","focus"]),k=t.get(["emphasis","blurScope"]);(d.useStyle(u(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Bi(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=d.style.lineWidth+1);gd(d).seriesIndex=t.seriesIndex,Ni(d,A,k);var D=ou(t.get("smooth")),O=t.get("smoothMonotone"),P=t.get("connectNulls");if(d.setShape({smooth:D,smoothMonotone:O,connectNulls:P}),g){var L=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(u(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(E=ou(L.get("smooth"))),g.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:O,connectNulls:P}),Bi(g,t,"areaStyle"),gd(g).seriesIndex=t.seriesIndex,Ni(g,A,k)}var R=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=c,this._step=M,this._valueOrigin=_},n.prototype.dispose=function(){},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=en(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;(s=new bw(r,o)).x=l,s.y=u,s.setZ(t.get("zlevel"),t.get("z")),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Hy.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=en(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Hy.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;Ti(this._polyline,t),e&&Ti(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new kw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ow({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,f=g.endAngle,d=-v[1]/180*Math.PI):(p=g.r0,f=g.r,d=v[0])}else{var y=n;i?(p=y.x,f=y.x+y.width,d=t.x):(p=y.y+y.height,f=y.y,d=t.y)}var m=f===p?0:(d-p)/(f-p);a&&(m=1-m);var _="function"==typeof u?u(o):l*m+c,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(i.get("show")){var r=t.getData(),o=this._polyline,a=this._endLabel;a||((a=this._endLabel=new pd({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=function(t){for(var e=t.length/2;e>0&&uu(t[2*e-2],t[2*e-1]);e--);return e-1}(r.getLayout("points"));s>=0&&(Tr(o,Cr(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?function(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!w(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionInfo(n[r]);o&&i.push(e[o.index])}return i.join(" ")}(r,n):$l(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),v=d.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),w=g?"x":"y",b=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,w),S=b.range,T=S[1]-S[0],C=void 0;if(T>=1){if(T>1&&!h){var M=cu(u,S[0]);s.attr({x:M[0]+_,y:M[1]+x}),r&&(C=c.getRawValue(S[0]))}else{(M=l.getPointOn(m,w))&&s.attr({x:M[0]+_,y:M[1]+x});var I=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(C=sn(n,p,I,A,b.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0;M=cu(u,k);r&&(C=c.getRawValue(k)),s.attr({x:M[0]+_,y:M[1]+x})}r&&Wg(s).setLabelText(C)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],c=[],h=[],p=[],f=[],d=[],g=[],v=Kl(r,e,a),y=Kl(o,t,s),m=t.getLayout("points")||[],_=e.getLayout("points")||[],x=0;x<l.length;x++){var w=l[x],b=!0,S=void 0,T=void 0;switch(w.cmd){case"=":S=2*w.idx,T=2*w.idx1;var C=m[S],M=m[S+1],I=_[T],A=_[T+1];(isNaN(C)||isNaN(M))&&(C=I,M=A),u.push(C,M),c.push(I,A),h.push(n[S],n[S+1]),p.push(i[T],i[T+1]),g.push(e.getRawIndex(w.idx1));break;case"+":var k=w.idx,D=v.dataDimsForPoint,O=r.dataToPoint([e.get(D[0],k),e.get(D[1],k)]);T=2*k,u.push(O[0],O[1]),c.push(_[T],_[T+1]);var P=Jl(v,r,e,k);h.push(P[0],P[1]),p.push(i[T],i[T+1]),g.push(e.getRawIndex(k));break;case"-":var L=w.idx,E=t.getRawIndex(L),R=y.dataDimsForPoint;if(S=2*L,E!==L){var N=o.dataToPoint([t.get(R[0],L),t.get(R[1],L)]),B=Jl(y,o,t,L);u.push(m[S],m[S+1]),c.push(N[0],N[1]),h.push(n[S],n[S+1]),p.push(B[0],B[1]),g.push(E)}else b=!1}b&&(f.push(w),d.push(d.length))}d.sort(function(t,e){return g[t]-g[e]});var z=u.length,F=Ql(z),H=Ql(z),V=Ql(z),G=Ql(z),j=[];for(x=0;x<d.length;x++){var W=d[x],U=2*x,$=2*W;F[U]=u[$],F[U+1]=u[$+1],H[U]=c[$],H[U+1]=c[$+1],V[U]=h[$],V[U+1]=h[$+1],G[U]=p[$],G[U+1]=p[$+1],j[x]=f[W]}return{current:F,next:H,stackedOnCurrent:V,stackedOnNext:G,status:j}}(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(c=au(u.current,n,r),h=au(u.stackedOnCurrent,n,r),p=au(u.next,n,r),f=au(u.stackedOnNext,n,r)),ru(c,p)>3e3||s&&ru(h,f)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=c;var d={shape:{points:p}};u.current!==c&&(d.shape.__points=u.next),a.stopAnimation(),sr(a,d,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),sr(s,{shape:{stackedOnPoints:f}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],v=u.status,y=0;y<v.length;y++){if("="===v[y].cmd){var m=t.getItemGraphicEl(v[y].idx1);m&&g.push({el:m,ptIdx:y})}}a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.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[i+1],n.markRedraw()}})},n.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},n.type="line",n}(Hy),Lw={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},nearest:function(t){return t[0]}},Ew=function(t){return Math.round(t.length/2)};kl(function(t){t.registerChartView(Pw),t.registerSeriesModel(ww),t.registerLayout(function(t,e){return{seriesType:t,plan:Sa(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=g(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ks(n,a[0])&&(a[0]=l),Ks(n,a[1])&&(a[1]=l);var u=n.getDimensionInfo(a[0]),c=n.getDimensionInfo(a[1]),h=u&&u.index,p=c&&c.index;return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Ql(n*s),a=[],l=[],u=t.start,c=0;u<t.end;u++){var f=void 0;if(1===s){var d=e.getByDimIdx(h,u);f=i.dataToPoint(d,null,l)}else a[0]=e.getByDimIdx(h,u),a[1]=e.getByDimIdx(p,u),f=i.dataToPoint(a,null,l);o?(r[c++]=f[0],r[c++]=f[1]):e.setItemLayout(u,f.slice())}o&&e.setLayout("points",r)}}}}}}("line",!0)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var f=void 0;"string"==typeof r?f=Lw[r]:"function"==typeof r&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,f,Ew))}}}}}("line"))});var Rw=2*Math.PI,Nw=Math.PI/180,Bw=Math.PI/180,zw=function(t){function n(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new fg,a=new pd;return r.setTextGuideLine(o),r.setTextContent(a),r.updateData(e,n,i,!0),r}return e(n,t),n.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),u=t.getItemLayout(e),c=l(yu(a.getModel("itemStyle"),u)||{},u);i?(r.setShape(c),"scale"===o.getShallow("animationType")?(r.shape.r=u.r0,lr(r,{shape:{r:u.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),lr(r,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},o,e)):(r.shape.endAngle=u.startAngle,sr(r,{shape:{endAngle:u.endAngle}},o,e))):sr(r,{shape:c},o,e);r.useStyle(t.getItemVisual(e,"style")),Bi(r,a);var h=(u.startAngle+u.endAngle)/2,p=o.get("selectedOffset"),f=Math.cos(h)*p,d=Math.sin(h)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Dc({r:u.r+(s.get("scale")&&s.get("scaleSize")||0)},yu(s.getModel("itemStyle"),u)),l(r.ensureState("select"),{x:f,y:d,shape:yu(a.getModel(["select","itemStyle"]),u)}),l(r.ensureState("blur"),{shape:yu(a.getModel(["blur","itemStyle"]),u)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&l(v.ensureState("select"),{x:f,y:d}),l(y.ensureState("select"),{x:f,y:d}),Ni(this,s.get("focus"),s.get("blurScope"))},n.prototype._updateLabel=function(t,e,n){var i,r=this,o=e.getItemModel(n),a=o.getModel("labelLine"),s=e.getItemVisual(n,"style"),l=s&&s.fill,u=s&&s.opacity;Tr(r,Cr(o),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:u,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var c=r.getTextContent();r.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);return"outside"!==h&&"outer"!==h?void(null===(i=r.getTextGuideLine())||void 0===i||i.hide()):void Ka(this,Ja(o),{stroke:l,opacity:R(a.get(["lineStyle","opacity"]),u,1)})},n}(sg),Fw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return e(n,t),n.prototype.init=function(){var t=new Ap;this._sectorGroup=t},n.prototype.render=function(t){var e,n=t.getData(),i=this._data,r=this.group;if(!i&&n.count()>0){for(var o=n.getItemLayout(0),a=1;isNaN(o&&o.startAngle)&&a<n.count();++a)o=n.getItemLayout(a);o&&(e=o.startAngle)}n.diff(i).add(function(t){var i=new zw(n,t,e);n.setItemGraphicEl(t,i),r.add(i)}).update(function(t,o){var a=i.getItemGraphicEl(o);a.updateData(n,t,e),a.off("click"),r.add(a),n.setItemGraphicEl(t,a)}).remove(function(e){hr(i.getItemGraphicEl(e),t,e)}).execute(),vu(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=n)},n.prototype.dispose=function(){},n.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},n.type="pie",n}(Hy),Hw=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),Vw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.useColorPaletteOnData=!0,e}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hw($c(this.getData,this),$c(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return mu(this,{coordDimensions:["value"],encodeDefaulter:x(ho,this)})},n.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),function(t){r.push(t)}),i.percent=Ee(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},n.prototype._defaultLabelLine=function(t){Ye(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},n}(Ny);kl(function(t){t.registerChartView(Fw),t.registerSeriesModel(Vw),function(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}d([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,i,r){e=l({},e),r.dispatchAction(l(e,{type:t[1],seriesIndex:n(i,e)}))})})}("pie",t.registerAction),t.registerLayout(x(pu,"pie")),t.registerProcessor(fu("pie"))});var Gw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){function e(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=function(t){return w(t)||(t=[+t,+t]),t}(t.getItemVisual(e,"symbolSize")),r=as(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function n(n,i,r,o,a,s){r.removeAll();for(var l=0;l<i.length-1;l++){var u=e(o,a);u&&(u.__dimIdx=l,n[l]?(u.setPosition(n[l]),Fg[s?"initProps":"updateProps"](u,{x:i[l][0],y:i[l][1]},t,a)):u.setPosition(i[l]),r.add(u))}}function i(t){return g(t,function(){return[r.cx,r.cy]})}var r=t.coordinateSystem,o=this.group,s=t.getData(),c=this._data;s.diff(c).add(function(e){var r=s.getItemLayout(e);if(r){var o=new hg,a=new fg,l={shape:{points:r}};o.shape.points=i(r),a.shape.points=i(r),lr(o,l,t,e),lr(a,l,t,e);var u=new Ap,c=new Ap;u.add(a),u.add(o),u.add(c),n(a.shape.points,r,c,s,e,!0),s.setItemGraphicEl(e,u)}}).update(function(e,i){var r=c.getItemGraphicEl(i),o=r.childAt(0),a=r.childAt(1),l=r.childAt(2),u={shape:{points:s.getItemLayout(e)}};u.shape.points&&(n(o.shape.points,u.shape.points,l,s,e,!1),sr(o,u,t),sr(a,u,t),s.setItemGraphicEl(e,r))}).remove(function(t){o.remove(c.getItemGraphicEl(t))}).execute(),s.eachItemGraphicEl(function(t,e){var n=s.getItemModel(e),i=t.childAt(0),r=t.childAt(1),c=t.childAt(2),h=s.getItemVisual(e,"style"),p=h.fill;o.add(t),i.useStyle(u(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:p})),Bi(i,n,"lineStyle"),Bi(r,n,"areaStyle");var f=n.getModel("areaStyle"),g=f.isEmpty()&&f.parentModel.isEmpty();r.ignore=g,d(["emphasis","select","blur"],function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();r.ensureState(t).ignore=i&&g}),r.useStyle(u(f.getAreaStyle(),{fill:p,opacity:.7,decal:h.decal}));var v=n.getModel("emphasis"),y=v.getModel("itemStyle").getItemStyle();c.eachChild(function(t){if(t instanceof od){var i=t.style;t.useStyle(l({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},h))}else t.useStyle(h),t.setColor(p);t.ensureState("emphasis").style=a(y);var r=s.get(s.dimensions[t.__dimIdx],e);(null==r||isNaN(r))&&(r=""),Tr(t,Cr(n),{labelFetcher:s.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:p,defaultOpacity:h.opacity})}),Ni(t,v.get("focus"),v.get("blurScope"))}),this._data=s},n.prototype.remove=function(){this.group.removeAll(),this._data=null},n.type="radar",n}(Hy),jw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.useColorPaletteOnData=!0,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hw($c(this.getData,this),$c(this.getRawData,this))},n.prototype.getInitialData=function(){return mu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.coordinateSystem.getIndicatorAxes(),i=this.getData().getName(t),r=""===i?this.name:i,o=pa(this,t);return aa("section",{header:r,sortBlocks:!0,blocks:g(n,function(n){var i=e.get(e.mapDimension(n.dim),t);return aa("nameValue",{markerType:"subItem",markerColor:o,name:n.name,value:i,sortParam:i})})})},n.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(g(n.dimensions,function(t){return e.mapDimension(t)}),t),r=0,o=i.length;o>r;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},n.type="series.radar",n.dependencies=["radar"],n.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4},n}(Ny),Ww={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#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)"]}}},Uw=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ww),$w=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}}},Ww),Yw={category:Uw,value:$w,time:s({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$w),log:u({scale:!0,logBase:10},$w)},Xw=Yw.value,qw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),l=this.get("axisName"),c=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),v=g(this.get("indicator")||[],function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var v=l;null!=g.color&&(v=u({color:g.color},l));var y=s(a(g),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:g.text,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(c||(y.name=""),"string"==typeof h){var m=y.name;y.name=h.replace("{value}",null!=m?m:"")}else"function"==typeof h&&(y.name=h(y.name,y));var _=new tv(y,null,this.ecModel);return p(_,ew.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_},this);this._indicatorModels=v},n.prototype.getIndicatorModels=function(){return this._indicatorModels},n.type="radar",n.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s({lineStyle:{color:"#bbb"}},Xw.axisLine),axisLabel:Su(Xw.axisLabel,!1),axisTick:Su(Xw.axisTick,!1),splitLine:Su(Xw.splitLine,!0),splitArea:Su(Xw.splitArea,!0),indicator:[]},n}(Av),Zw=Math.PI,Kw=function(){function t(t,e){this.group=new Ap,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ap({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Jw[t]},t.prototype.add=function(t){Jw[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Re(e-t);return Ne(o)?(r=n>0?"top":"bottom",i="center"):Ne(o-Zw)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&Zw>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Jw={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],u=[o[1],0];a&&(it(s,s,a),it(u,u,a));var c=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new vg({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]),f=e.get(["axisLine","symbolSize"]),g=e.get(["axisLine","symbolOffset"])||0;if("number"==typeof g&&(g=[g,g]),null!=p){"string"==typeof p&&(p=[p,p]),("string"==typeof f||"number"==typeof f)&&(f=[f,f]);var v=f[0],y=f[1];d([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=as(p[i],-v/2,-y/2,v,y,c.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=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 s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=Iu(r.getTicksCoords(),e.transform,l,u(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}(n,i,e,t);(function(t,e,n){if(!Al(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(Tu(o),Tu(u)):Cu(o,a)&&(i?(Tu(a),Tu(c)):(Tu(o),Tu(u))),!1===r?(Tu(s),Tu(h)):Cu(l,s)&&(r?(Tu(l),Tu(p)):(Tu(s),Tu(h)))}})(e,function(t,e,n,i){var r=n.axis;if(L(i.axisLabelShow,n.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(L(i.labelRotate,o.get("rotate"))||0)*Zw/180,u=Kw.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=Kw.isLabelSilent(n),f=n.get("triggerEvent");return d(s,function(s,l){var d="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,y=o;if(c&&c[d]){var m=c[d];M(m)&&m.textStyle&&(y=new tv(m.textStyle,o,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),w=new pd({x:x,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:p,z2:10,style:Mr(y,{text:g,align:y.getShallow("align",!0)||u.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,fill:"function"==typeof _?_("category"===r.type?v:"value"===r.type?d+"":d,l):_})});if(w.anid="label_"+d,f){var b=Kw.makeAxisEventDataBase(n);b.targetType="axisLabel",b.value=v,gd(w).eventData=b}e.add(w),w.updateTransform(),h.push(w),t.add(w),w.decomposeTransform()}),h}}(n,i,e,t),r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),c=u(s.getLineStyle(),u(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var p=Iu(a[h],e.transform,l,c,"minorticks_"+h),f=0;f<p.length;f++)t.add(p[f])}}(n,i,e,t.tickDirection)},axisName:function(t,e,n,i){var r=L(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),u=t.nameDirection,c=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,p=e.axis.getExtent(),f=p[0]>p[1]?-1:1,d=["start"===s?p[0]-f*h:"end"===s?p[1]+f*h:(p[0]+p[1])/2,Mu(s)?t.labelOffset+u*h:0],g=e.get("nameRotate");null!=g&&(g=g*Zw/180),Mu(s)?o=Kw.innerTextLayout(t.rotation,null!=g?g:t.rotation,u):(o=function(t,e,n,i){var r,o,a=Re(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ne(a-Zw/2)?(o=l?"bottom":"top",r="center"):Ne(a-1.5*Zw)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*Zw>a&&a>Zw/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,g||0,p),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=c.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,_=L(t.nameTruncateMaxWidth,y.maxWidth,a),x=e.get("tooltip",!0),w=e.mainType,b={componentType:w,name:r,$vars:["name"]};b[w+"Index"]=e.componentIndex;var S=new pd({x:d[0],y:d[1],rotation:o.rotation,silent:Kw.isLabelSilent(e),style:Mr(c,{text:r,font:v,overflow:"truncate",width:_,ellipsis:m,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(S.tooltip=x&&x.show?l({content:r,formatter:function(){return r},formatterParams:b},x):null,S.__fullText=r,S.anid="name",e.get("triggerEvent")){var T=Kw.makeAxisEventDataBase(e);T.targetType="axisName",T.name=r,gd(S).eventData=T}i.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}},Qw=["axisLine","axisTickLabel","axisName"],tb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},n.prototype._buildAxes=function(t){var e=t.coordinateSystem;d(g(e.getIndicatorAxes(),function(t){return new Kw(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){d(Qw,t.add,t),this.group.add(t.getGroup())},this)},n.prototype._buildSplitLineAndArea=function(t){function e(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}var n=t.coordinateSystem,i=n.getIndicatorAxes();if(i.length){var r=t.get("shape"),o=t.getModel("splitLine"),a=t.getModel("splitArea"),s=o.getModel("lineStyle"),l=a.getModel("areaStyle"),c=o.get("show"),h=a.get("show"),p=s.get("color"),f=l.get("color"),v=w(p)?p:[p],y=w(f)?f:[f],m=[],_=[];if("circle"===r)for(var x=i[0].getTicksCoords(),b=n.cx,S=n.cy,T=0;T<x.length;T++){if(c)m[e(m,v,T)].push(new $d({shape:{cx:b,cy:S,r:x[T].coord}}));if(h&&T<x.length-1)_[e(_,y,T)].push(new ug({shape:{cx:b,cy:S,r0:x[T].coord,r:x[T+1].coord}}))}else{var C,M=g(i,function(t,e){var i=t.getTicksCoords();return C=null==C?i.length-1:Math.min(i.length-1,C),g(i,function(t){return n.coordToPoint(t.coord,e)})}),I=[];for(T=0;C>=T;T++){for(var A=[],k=0;k<i.length;k++)A.push(M[k][T]);if(A[0]&&A.push(A[0].slice()),c)m[e(m,v,T)].push(new fg({shape:{points:A}}));if(h&&I)_[e(_,y,T-1)].push(new hg({shape:{points:A.concat(I)}}));I=A.slice().reverse()}}var D=s.getLineStyle(),O=l.getAreaStyle();d(_,function(t,e){this.group.add(Bg(t,{style:u({stroke:"none",fill:y[e%y.length]},O),silent:!0}))},this),d(m,function(t,e){this.group.add(Bg(t,{style:u({fill:"none",stroke:v[e%v.length]},D),silent:!0}))},this)}},n.type="radar",n}(By),eb=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return e(n,t),n}(gw),nb=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=g(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new eb(n,new Bx);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);a>c&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=De(n[0],i),this.cy=De(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");("string"==typeof a||"number"==typeof a)&&(a=[0,a]),this.r0=De(a[0],o),this.r=De(a[1],o),d(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n},this)},t.prototype.update=function(t){function e(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}var n=this._indicatorAxes,i=this._model;d(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var r=e.getData();d(n,function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))})}},this);var r=i.get("splitNumber");d(n,function(t){var n=wl(t.scale,t.model).extent;bl(t.scale,t.model);var i=t.model,o=t.scale,a=xl(o,i.get("min",!0)),s=xl(o,i.get("max",!0)),l=o.getInterval();if(null!=a&&null!=s)o.setExtent(+a,+s),o.setInterval((s-a)/r);else if(null!=a){var u=void 0;do{u=a+l*r,o.setExtent(+a,u),o.setInterval(l),l=e(l)}while(u<n[1]&&isFinite(u)&&isFinite(n[1]))}else if(null!=s){var c=void 0;do{c=s-l*r,o.setExtent(c,+s),o.setInterval(l),l=e(l)}while(c>n[0]&&isFinite(c)&&isFinite(n[0]))}else{o.getTicks().length-1>r&&(l=e(l));c=Oe((u=Math.ceil(n[1]/l)*l)-l*r);o.setExtent(c,u),o.setInterval(l)}})},t.prototype.convertToPixel=function(){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(){return console.warn("Not implemented."),null},t.prototype.containPoint=function(){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();kl(function(t){kl(Au),t.registerChartView(Gw),t.registerSeriesModel(jw),t.registerLayout(_u),t.registerProcessor(fu("radar")),t.registerPreprocessor(bu)});var ib=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(Av),rb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Hp).models[0]},n.type="cartesian2dAxis",n}(Av);p(rb,ew);var ob={value:1,category:1,time:1,log:1},ab=["x","y"],sb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ab,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Ou(t)&&Ou(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=Mt([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.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]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return it(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i)),n[1]=a.toGlobalCoord(a.dataToCoord(r)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){if(e=e||[],this._invTransform)return it(e,t,this._invTransform);var n=this.getAxis("x"),i=this.getAxis("y");return e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Jh(n,i,r,o)},n}(function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),y(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}()),lb=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.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},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(gw),ub=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ab,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),d(n.x,function(t){bl(t.scale,t.model)}),d(n.y,function(t){bl(t.scale,t.model)});var i={};d(n.x,function(t){Nu(n,"y",t,i)}),d(n.y,function(t){Nu(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){d(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=ao(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(d(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof Rx?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=Tl(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;r>c;c+=u){var h=l(i?i[c]:{value:o[0]+c},c),p=Ml(s.getTextRect(h),s.get("rotate")||0);a?a.union(p):a=p}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}}),i()),d(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}M(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Hp).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Hp).models[0],a=t.gridModel,s=this._coordsList;if(i)c(s,e=i.coordinateSystem)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function n(e){return function(n,i){if(Ru(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new lb(e,Sl(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void d(a.x,function(e,n){d(a.y,function(r,o){var a="x"+n+"y"+o,s=new sb(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function n(t,e){d(function(t,e){var n={};return d(t.mapDimensionsAll(e),function(e){n[Js(t,e)]=!0}),_(n)}(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}d(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(Lu(t)){var i=Eu(t),r=i.xAxisModel,o=i.yAxisModel;if(!Ru(r,e)||!Ru(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return d(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);c(e,r)<0&&e.push(r),c(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(Lu(t)){var e=Eu(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=ab,t}(),cb={},hb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&function(t){var e=Vu(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Gu(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Vu(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){cb[t]=e},n.getAxisPointerClass=function(t){return t&&cb[t]},n.type="axis",n}(By),pb=nn(),fb=["axisLine","axisTickLabel","axisName"],db=["splitArea","splitLine","minorSplitLine"],gb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="CartesianAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ap,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Pu(a,e),u=new Kw(e,l({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;n<t.length;n++){var i=t[n].getOtherAxis(e.axis).type;if("value"===i||"log"===i)return!0}return!1}},s));d(fb,u.add,u),this._axisGroup.add(u.getGroup()),d(db,function(t){e.get([t,"show"])&&vb[t](this,this._axisGroup,e,a)},this),vr(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},n.prototype.remove=function(){!function(t){pb(t).splitAreaColors=null}(this)},n.type="cartesianAxis",n}(hb),vb={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=w(s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=0,p=r.getTicksCoords({tickModel:o}),f=[],d=[],g=a.getLineStyle(),v=0;v<p.length;v++){var y=r.toGlobalCoord(p[v].coord);c?(f[0]=y,f[1]=l.y,d[0]=y,d[1]=l.y+l.height):(f[0]=l.x,f[1]=y,d[0]=l.x+l.width,d[1]=y);var m=h++%s.length,_=p[v].tickValue;e.add(new vg({anid:null!=_?"line_"+p[v].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:u({stroke:s[m]},g),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var f=0;f<l[p].length;f++){var d=r.toGlobalCoord(l[p][f].coord);s?(u[0]=d,u[1]=a.y,c[0]=d,c[1]=a.y+a.height):(u[0]=a.x,u[1]=d,c[0]=a.x+a.width,c[1]=d),e.add(new vg({anid:"minor_line_"+l[p][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var h=s.length,p=pb(t).splitAreaColors,f=G(),d=0;if(p)for(var g=0;g<c.length;g++){var v=p.get(c[g].tickValue);if(null!=v){d=(v+(h-1)*g)%h;break}}var y=r.toGlobalCoord(c[0].coord),m=a.getAreaStyle();for(s=w(s)?s:[s],g=1;g<c.length;g++){var _=r.toGlobalCoord(c[g].coord),x=void 0,b=void 0,S=void 0,T=void 0;r.isHorizontal()?(x=y,b=l.y,S=_-x,T=l.height,y=x+S):(x=l.x,b=y,S=l.width,y=b+(T=_-b));var C=c[g-1].tickValue;null!=C&&f.set(C,d),e.add(new ud({anid:null!=C?"area_"+C:null,shape:{x:x,y:b,width:S,height:T},style:u({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}pb(t).splitAreaColors=f}}}(t,e,n,i)}},yb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="xAxis",n}(gb),mb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=yb.type,e}return e(n,t),n.type="yAxis",n}(gb),_b=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(n,t),n.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new ud({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},n.type="grid",n}(By),xb={offset:0};kl(function(t){t.registerComponentView(_b),t.registerComponentModel(ib),t.registerCoordinateSystem("cartesian2d",ub),ku(t,"x",rb,xb),ku(t,"y",rb,xb),t.registerComponentView(yb),t.registerComponentView(mb),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});var wb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:"box",ignoreSize:!0},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},n.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),w(e)&&d(e,function(t,i){S(t)&&(t={type:t}),e[i]=s(t,function(t,e){return"all"===e?{type:"all",title:t.getLocale(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocale(["legend","selector","inverse"])}:void 0}(n,t.type))})},n.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"))}},n.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&Qe(i)&&e.push(i.name)}),this._availableNames=n;var i=g(this.get("data")||e,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new tv(t,this,this.ecModel)},this);this._data=i},n.prototype.getData=function(){return this._data},n.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&d(this._data,function(t){e[t.get("name")]=!1});e[t]=!0},n.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},n.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},n.prototype.allSelect=function(){var t=this._data,e=this.option.selected;d(t,function(t){e[t.get("name",!0)]=!0})},n.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;d(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},n.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&c(this._availableNames,t)>=0},n.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},n.type="legend.plain",n.dependencies=["series"],n.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},n}(Av),bb=x,Sb=d,Tb=Ap,Cb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new Tb),this.group.add(this._selectorGroup=new Tb),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=ao(l,c,h),f=this.layoutInner(t,r,p,i,a,s),d=ao(u({width:f.width,height:f.height},l),c,h);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=mv(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new ud({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}(f,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=G(),u=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&c.push(t.id)}),Sb(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new Tb;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var f=p.getData(),d=f.getVisual("style"),g=d[f.getVisual("drawType")]||d.fill,v=d.stroke,y=d.decal,m=f.getVisual("legendSymbol")||"roundRect",_=f.getVisual("symbol");this._createItem(a,o,r,e,m,_,t,g,v,y,u).on("click",bb(Uu,a,null,i,c)).on("mouseover",bb(Yu,p.name,null,i,c)).on("mouseout",bb(Xu,p.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),p=s.getItemVisual(h,"style"),f=p.stroke,d=p.decal,g=p.fill,v=Bt(p.fill);v&&0===v[3]&&(v[3]=.2,g=jt(v,"rgba"));this._createItem(a,o,r,e,"roundRect",null,t,g,f,d,u).on("click",bb(Uu,null,a,i,c)).on("mouseover",bb(Yu,null,a,i,c)).on("mouseout",bb(Xu,null,a,i,c)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},n.prototype._createSelector=function(t,e,n){var i=this.getSelectorGroup();Sb(t,function(t){var r=t.type,o=new pd({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});i.add(o),Tr(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Ni(o)})},n.prototype._createItem=function(t,e,n,i,r,o,a,s,u,c,h){var p=i.get("itemWidth"),f=i.get("itemHeight"),d=i.get("inactiveColor"),g=i.get("inactiveBorderColor"),v=i.get("symbolKeepAspect"),y=i.getModel("itemStyle"),m=i.isSelected(t),_=new Tb,x=n.getModel("textStyle"),w=n.get("icon"),b=n.getModel("tooltip"),S=b.parentModel,T=as(r=w||r,0,0,p,f,m?s:d,null==v||v);if(_.add(Wu(T,r,y,u,g,c,m)),!w&&o&&(o!==r||"none"===o)){var C=.8*f;"none"===o&&(o="circle");var M=as(o,(p-C)/2,(f-C)/2,C,C,m?s:d,null==v||v);_.add(Wu(M,o,y,u,g,c,m))}var I="left"===a?p+5:-5,A=a,k=i.get("formatter"),D=t;"string"==typeof k&&k?D=k.replace("{name}",null!=t?t:""):"function"==typeof k&&(D=k(t)),_.add(new pd({style:Mr(x,{text:D,x:I,y:f/2,fill:m?x.getTextColor():d,align:A,verticalAlign:"middle"})}));var O=new ud({shape:_.getBoundingRect(),invisible:!0});if(b.get("show")){var P={componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]};O.tooltip=l({content:t,formatter:S.get("formatter",!0)||function(t){return t.name},formatterParams:P},b.option)}return _.add(O),_.eachChild(function(t){t.silent=!0}),O.silent=!h,this.getContentGroup().add(_),Ni(_),_.__legendDataIndex=e,_},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Mv(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Mv("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?h[f]+=l[d]+p:u[f]+=c[d]+p,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+p+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-f]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(By),Mb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},n.prototype.init=function(e,n,i){var r=uo(e);t.prototype.init.call(this,e,n,i),Ju(this,e,r)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Ju(this,this.option,e)},n.type="legend.scroll",n.defaultOption=function(t,e){return s(s({},t,!0),e,!0)}(wb.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),n}(wb),Ib=Ap,Ab=["width","height"],kb=["x","y"],Db=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Ib),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Ib)},n.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(e,n,i,r,o,a,s){function l(t,e){var i=t+"DataIndex",o=_r(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:$c(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,c.add(o)}var u=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=w(h)?h:[h,h];l("pagePrev",0);var f=n.getModel("pageTextStyle");c.add(new pd({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},n.prototype.layoutInner=function(t,e,n,i,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=Ab[l],c=kb[l],h=Ab[1-l],p=kb[1-l];r&&Mv("horizontal",s,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),d=s.getBoundingRect(),g=[-d.x,-d.y],v=a(n);r&&(v[u]=n[u]-d[u]-f);var y=this._layoutContentAndController(t,i,v,l,u,h,p,c);if(r){if("end"===o)g[l]+=y[u]+f;else{var m=d[u]+f;g[l]-=m,y[c]-=m}y[u]+=d[u]+f,g[1-l]+=y[p]+y[h]/2-d[h]/2,y[h]=Math.max(y[h],d[h]),y[p]=Math.min(y[p],d[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return y},n.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Mv(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Mv("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),f=this._showController=h[r]>n[r],d=[-h.x,-h.y];e||(d[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],y=E(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+y);v[1-i]+=h[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(v);var m={x:0,y:0};if(m[r]=f?n[r]:h[r],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-y,0),_[o]=m[o],u.setClipPath(new ud({shape:_})),u.__rectSize=_[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&sr(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),m},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;d(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",S(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],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,a=t.getOrient().index,s=Ab[a],l=kb[a],u=this._findTargetItemIndex(i),c=r.children(),h=c[u],p=c.length,f=p?1:0,d={contentPosition:[r.x,r.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=e(h);d.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,_=null;p>=v;++v)(!(_=e(c[v]))&&m.e>y.s+o||_&&!n(_,y.s))&&((y=m.i>y.i?m:_)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(v=u-1,y=g,m=g,_=null;v>=-1;--v)(_=e(c[v]))&&n(m,_.s)||!(y.i<m.i)||(m=y,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d},n.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},n.type="legend.scroll",n}(Cb);kl(function(t){kl(Ku),t.registerComponentModel(Mb),t.registerComponentView(Db),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)});var Ob=nn(),Pb=a,Lb=$c,Eb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ac(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=Rb[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=Kw.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),ic(e,i,r,o,{position:oc(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,Pu(a.model,n),n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=Pu(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=oc(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=ac(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,c=[u,u];c[s]=l[s];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][s]}},n}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=x(Qu,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Ap,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);nc(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Vu(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=Ob(t).pointerEl=new Fg[n.type](Pb(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Ob(t).labelEl=new pd(Pb(e.label));t.add(r),tc(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Ob(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Ob(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),tc(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=_r(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ch(t.event)},onmousedown:Lb(this._onHandleDragMove,this,0,0),drift:Lb(this._onHandleDragMove,this),ondragend:Lb(this._onHandleDragEnd,this)}),i.add(r)),nc(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");w(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,function(t,e,n,i){var r=t[e];if(r){var o=r[jy]||r,a=r[Uy];if(r[Wy]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Aa(o,n,"debounce"===i))[jy]=o,r[Uy]=i,r[Wy]=n}}}(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Qu(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ec(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ec(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ec(i)),Ob(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var 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}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}()),Rb={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:function(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}([e,n[0]],[e,n[1]],sc(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}([e-i/2,n[0]],[i,r],sc(t))}}},Nb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!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}},n}(Av),Bb=nn(),zb=d,Fb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";lc("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){hc("axisPointer",e)},n.prototype.dispose=function(t,e){hc("axisPointer",e)},n.type="axisPointer",n}(By),Hb=nn(),Vb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.defaultOption={zlevel:0,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}},n}(Av),Gb=["-ms-","-moz-","-o-","-webkit-",""],jb=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Pc.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;bc(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;ft(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=this._styleCoord,r=n.offsetHeight/2;e=ro(e),n.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+wc(t,!this._firstShow,this._longHide)+";left:"+i[0]+"px;top:"+(i[1]-r)+"px;border-color: "+e+";"+(t.get("extraCssText")||""),n.style.display=n.innerHTML?"block":"none",n.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){if(null!=t){var o=this.el;if(S(r)&&"item"===n.get("trigger")&&!xc(n)&&(t+=function(t,e,n){if(!S(n)||"inside"===n)return"";e=ro(e);var i=function(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}(n),r="",o="";return c(["left","right"],i)>-1?(r=i+":-6px;top:50%;",o="translateY(-50%) rotate("+("left"===i?-225:-45)+"deg)"):(r=i+":-6px;left:50%;",o="translateX(-50%) rotate("+("top"===i?225:45)+"deg)"),'<div style="'+["position:absolute;width:10px;height:10px;",""+r+(o=g(Gb,function(t){return t+"transform:"+o}).join(";"))+";","border-bottom: "+e+" solid 1px;","border-right: "+e+" solid 1px;","background-color: "+t+";","box-shadow: 8px 8px 16px -3px #000;"].join("")+'"></div>'}(n.get("backgroundColor"),i,r)),S(t))o.innerHTML=t;else if(t){o.innerHTML="",w(t)||(t=[t]);for(var a=0;a<t.length;a++)k(t[a])&&t[a].parentNode!==o&&o.appendChild(t[a])}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(bc(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;i.left=n[0].toFixed(0)+"px",i.top=n[1].toFixed(0)+"px"}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this;this.el.style.visibility="hidden",this.el.style.opacity="0",this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($c(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t.prototype.getOuterSize=function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}},t}(),Wb=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Cc(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i){M(t)&&Ue(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle");this.el=new pd({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:fa(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var o=this;this.el.on("mouseover",function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0}),this.el.on("mouseout",function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Tc(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;Cc(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=Sc(r.borderWidth||0),a=Tc(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($c(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),Ub=$c,$b=d,Yb=De,Xb=new ud({shape:{x:-1,y:-1,width:2,height:2}}),qb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){if(!Pc.node){var n=t.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=function(t){return"auto"===t?Pc.domSupported?"html":"richText":t||"html"}(i),this._tooltipContent="richText"===this._renderMode?new Wb(e):new jb(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},n.prototype.render=function(t,e,n){if(!Pc.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},n.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");lc("itemTooltip",this._api,Ub(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Pc.node){var r=Ic(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var a=Xb;a.x=i.x,a.y=i.y,a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=pc(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el},r)}else 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))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Ic(i,n))},n.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){var s=e.getSeriesByIndex(r);if(s)if("axis"===Mc([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t]).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},n.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&rs(n,function(t){return null!=gd(t).dataIndex},!0)?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=$c(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Mc([e.tooltipOption,i]),a=this._renderMode,s=[],l=aa("section",{blocks:[],noHeader:!0}),u=[],c=new Ey;$b(t,function(t){$b(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=rc(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),o=aa("section",{header:r,noHeader:!F(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),d(t.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Cl(e.axis,{value:i}),f.axisValueLabel=r,f.marker=c.makeTooltipMarker("item",ro(f.color),a);var d=Yo(h.formatTooltip(p,!0,null));d.markupFragment&&o.blocks.push(d.markupFragment),d.markupText&&u.push(d.markupText),s.push(f)})}})}),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),f=la(l,c,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var g="richText"===a?"\n\n":"<br/>",v=u.join(g);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",r[0],r[1],h,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=rs(e,function(t){return null!=gd(t).dataIndex},!0),r=this._ecModel,o=gd(i),a=o.seriesIndex,s=r.getSeriesByIndex(a),l=o.dataModel||s,u=o.dataIndex,c=o.dataType,h=l.getData(c),p=this._renderMode,f=Mc([h.getItemModel(u),l,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),d=f.get("trigger");if(null==d||"item"===d){var g=l.getDataParams(u,c),v=new Ey;g.marker=v.makeTooltipMarker("item",ro(g.color),p);var y=Yo(l.formatTooltip(u,!1,c)),m=f.get("order"),_=y.markupFragment?la(y.markupFragment,v,p,m,r.get("useUTC"),f.get("textStyle")):y.markupText,x="item_"+l.name+"_"+u;this._showOrMove(f,function(){this._showTooltipContent(f,_,g,x,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:a,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=e.tooltip;if(S(i)){i={content:i,formatter:i}}var r=new tv(i,this._tooltipModel,this._ecModel),o=r.get("content"),a=Math.random()+"",s=new Ey;this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e,s)}),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"));if(c&&S(c)){var f=t.ecModel.get("useUTC"),d=w(n)?n[0]:n;h=c,d&&d.axisType&&d.axisType.indexOf("time")>=0&&(h=Rr(d.axisValue,h,f)),h=no(h,n,!0)}else if(b(c)){var g=Ub(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p.color,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}u.setContent(h,l,t,p.color,a),u.show(t,p.color),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||w(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:w(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),b(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),w(e))n=Yb(e[0],s),i=Yb(e[1],l);else if(M(e)){var f=e;f.width=u[0],f.height=u[1];var d=ao(f,{width:s,height:l});n=d.x,i=d.y,c=null,h=null}else if(S(e)&&a){n=(g=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-10;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+10;break;case"left":o=e.x-i-10-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+10+5,a=e.y+l/2-r/2}return[o,a]}(e,p,u))[0],i=g[1]}else{var g;n=(g=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20))[0],i=g[1]}(c&&(n-=Ac(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=Ac(h)?u[1]/2:"bottom"===h?u[1]:0),xc(t))&&(n=(g=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l))[0],i=g[1]);r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&$b(e,function(e,i){var r=e.dataByAxis||[],o=(t[i]||{}).dataByAxis||[];(n=n&&r.length===o.length)&&$b(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n=n&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&$b(r,function(t,e){var i=a[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){Pc.node||(this._tooltipContent.dispose(),hc("itemTooltip",e))},n.type="tooltip",n}(By);kl(function(t){kl(_c),t.registerComponentModel(Vb),t.registerComponentView(qb),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}),t.version="5.0.2",t.dependencies={zrender:"5.0.4"},t.PRIORITY=s_,t.init=function(t,e,n){var i=Ds(t);if(i)return i;var r=new N_(t,e,n);return r.id="ec_"+Z_++,X_[r.id]=r,an(t,J_,r.id),P_(r),Qm(j_,function(t){t(r)}),r},t.connect=function(t){if(w(t)){var e=t;t=null,Qm(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+K_++,Qm(e,function(e){e.group=t})}return q_[t]=!0,t},t.disConnect=ks,t.disconnect=Q_,t.dispose=function(t){"string"==typeof t?t=X_[t]:t instanceof N_||(t=Ds(t)),t instanceof N_&&!t.isDisposed()&&t.dispose()},t.getInstanceByDom=Ds,t.getInstanceById=function(t){return X_[t]},t.registerTheme=Os,t.registerPreprocessor=Ps,t.registerProcessor=Ls,t.registerPostInit=Es,t.registerPostUpdate=Rs,t.registerAction=Ns,t.registerCoordinateSystem=Bs,t.getCoordinateSystemDimensions=function(t){var e=ry.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0},t.registerLayout=zs,t.registerVisual=Fs,t.registerLoading=Vs,t.setCanvasCreator=function(t){i("createCanvas",t)},t.registerMap=Gs,t.getMap=function(t){var e=pm.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},t.registerTransform=ex,t.dataTool={},t.registerLocale=Dr,t.zrender=Lp,t.matrix=xh,t.vector=th,t.zrUtil=qc,t.color=zh,t.helper=iw,t.number=lw,t.time=uw,t.graphic=cw,t.format=hw,t.util=pw,t.ComponentModel=Av,t.ComponentView=By,t.SeriesModel=Ny,t.ChartView=Hy,t.extendComponentModel=function(t){var e=Av.extend(t);return Av.registerClass(e),e},t.extendComponentView=function(t){var e=By.extend(t);return By.registerClass(e),e},t.extendSeriesModel=function(t){var e=Ny.extend(t);return Ny.registerClass(e),e},t.extendChartView=function(t){var e=Hy.extend(t);return Hy.registerClass(e),e},t.throttle=Aa,t.use=kl,t.parseGeoJSON=Ll,t.parseGeoJson=Ll,t.env=Pc,t.List=kx,t.Model=tv,t.Axis=gw,t.innerDrawElementOnCanvas=_s})},"vFc/":function(t,e,n){var i=n("TcQ7"),r=n("QRG4"),o=n("fkB2");t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},wOfB:function(t,e,n){"use strict";var i={clearDeviceToy:function(){wx.removeStorageSync("deviceId"),wx.removeStorageSync("deviceSn"),wx.removeStorageSync("serviceId"),wx.removeStorageSync("is_new")},setDeviceId:function(t){wx.setStorageSync("deviceId",t)},setDeviceSn:function(t){wx.setStorageSync("deviceSn",t)},setServiceId:function(t){wx.setStorageSync("serviceId",t)},setGameStatus:function(t){wx.setStorageSync("game_status",t)},setGameCloseStatus:function(t){wx.setStorageSync("game_close_status",t)},setToyList:function(t){wx.setStorageSync("toy_list",t)},setToyHex:function(t){wx.setStorageSync("toy_hex",t)},removeToyHex:function(){wx.removeStorageSync("toy_hex")},setMode:function(t){wx.setStorageSync("mode",t)},setGameRecordId:function(t){wx.setStorageSync("game_record_id",t)},setOverPlayTime:function(t){wx.setStorageSync("over_play_time",t)},setPlayTime:function(t){wx.setStorageSync("play_time",t)},setPlayedTime:function(t){wx.setStorageSync("played_time",t)},setHideStatus:function(t){wx.setStorageSync("hide_status",t)},setHideTime:function(t){wx.setStorageSync("hide_time",t)},setGameAttMedDatas:function(t){wx.setStorageSync("game_data",t)},setIsNew:function(t){wx.setStorageSync("is_new",t)}},r={getDeviceId:function(){return wx.getStorageSync("deviceId")},getDeviceSn:function(){return wx.getStorageSync("deviceSn")},getServiceId:function(){return wx.getStorageSync("serviceId")},getGameStatus:function(){return wx.getStorageSync("game_status")},getGameCloseStatus:function(){return wx.getStorageSync("game_close_status")},getToyList:function(){return wx.getStorageSync("toy_list")},getToyHex:function(){return wx.getStorageSync("toy_hex")},getMode:function(){return wx.getStorageSync("mode")},getGameRecordId:function(){return wx.getStorageSync("game_record_id")},getOverPlayTime:function(){return wx.getStorageSync("over_play_time")},getPlayTime:function(){return wx.getStorageSync("play_time")},getPlayedTime:function(){return wx.getStorageSync("played_time")},getHideStatus:function(){return wx.getStorageSync("hide_status")},getHideTime:function(){return wx.getStorageSync("hide_time")},getGameAttMedDatas:function(){return wx.getStorageSync("game_data")},getIsNew:function(){return wx.getStorageSync("is_new")}},o={rmGameAttMedDatas:function(){wx.removeStorageSync("game_data")},rmHideTime:function(){wx.removeStorageSync("hide_time")},rmHideStatus:function(){wx.removeStorageSync("hide_status")}};e.a={setters:i,getters:r,remover:o}},wW6q:function(t,e,n){"use strict";e.a=a;const i={selector:"#van-notify",type:"danger",message:"",background:"",duration:3e3,zIndex:110,top:0,color:n("DEMB").a,safeAreaInsetTop:!1,onClick:()=>{},onOpened:()=>{},onClose:()=>{}};function r(t){return null==t?{}:"string"==typeof t?{message:t}:t}function o(){const t=getCurrentPages();return t[t.length-1]}function a(t){const e=((t=Object.assign(Object.assign({},i),r(t))).context||o()).selectComponent(t.selector);if(delete t.context,delete t.selector,e)return e.setData(t),e.show(),e;console.warn("未找到 van-notify 节点,请确认 selector 及 context 是否正确")}a.clear=function(t){const e=((t=Object.assign(Object.assign({},i),r(t))).context||o()).selectComponent(t.selector);e&&e.hide()}},woOf:function(t,e,n){t.exports={default:n("V3tA"),__esModule:!0}},xnc9:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},ybqe:function(t,e){t.exports=function(t,e,n,i,r){var o,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,a=t.default);var l,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),i&&(u._scopeId=i),r?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=l):n&&(l=n),l){var c=u.functional,h=c?u.render:u.beforeCreate;c?u.render=function(t,e){return l.call(e),h(t,e)}:u.beforeCreate=h?[].concat(h,l):[l]}return{esModule:o,exports:a,options:u}}}});
|