@liascript/editor 1.1.3--0.14.6 → 1.1.3--0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{index.a85e2222.js → index.0fa15cde.js} +1 -1
- package/dist/{index.1ed5c6cb.js → index.1dcd529b.js} +1 -1
- package/dist/index.7373c492.js +1 -0
- package/dist/index.74ff4e8e.js +1 -0
- package/dist/index.b432ef75.js +34 -0
- package/dist/index.fd1f7137.js +34 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/index.01026bc2.js +0 -34
- package/dist/index.2a97c773.js +0 -1
- package/dist/index.9ae04c34.js +0 -34
- package/dist/index.d31ac94a.js +0 -1
package/dist/index.01026bc2.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function e(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}function n(t,e){return Object.keys(e).forEach((function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})),t}var r={},i={},o=t.parcelRequirea18f;null==o&&((o=function(t){if(t in r)return r[t].exports;if(t in i){var e=i[t];delete i[t];var n={id:t,exports:{}};return r[t]=n,e.call(n.exports,n,n.exports),n.exports}var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(t,e){i[t]=e},t.parcelRequirea18f=o),o.register("UiqKl",(function(n,r){e(n.exports,"default",(function(){return M}));var i=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&l()}function a(){s(o)}function l(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return l}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;l.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||a},d=v(0,0,0,0);function f(t){return parseFloat(t)||0}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+f(t["border-"+n+"-width"])}),0)}var y="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"==typeof t.getBBox};function m(t){return o?y(t)?function(t){var e=t.getBBox();return v(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=f(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(l+a)!==n&&(l-=g(r,"top","bottom")+a)),!function(t){return t===p(t).document.documentElement}(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return v(i.left,i.top,s,l)}(t):d}function v(t,e,n,r){return{x:t,y:e,width:n,height:r}}var x=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=m(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),_=function(t,e){var n,r,i,o,a,s,l,u=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),h(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);h(this,{target:t,contentRect:u})},b=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new i,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new x(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new _(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),S="undefined"!=typeof WeakMap?new WeakMap:new i,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new b(e,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=S.get(this))[t].apply(e,arguments)}}));var M=void 0!==a.ResizeObserver?a.ResizeObserver:w})),o.register("1D1do",(function(t,n){
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
var r,i,a,s;e(t.exports,"Buffer",(function(){return r}),(function(t){return r=t})),e(t.exports,"SlowBuffer",(function(){return i}),(function(t){return i=t})),e(t.exports,"INSPECT_MAX_BYTES",(function(){return a}),(function(t){return a=t})),e(t.exports,"kMaxLength",(function(){return s}),(function(t){return s=t}));var l=o("lTkkV"),u=o("dWK0P"),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r=d,i=function(t){return+t!=t&&(t=0),d.alloc(+t)},a=50;var h=2147483647;function p(t){if(t>h)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,d.prototype),e}function d(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return y(t)}return f(t,e,n)}function f(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!d.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|_(t,e),r=p(n),i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){var e=new Uint8Array(t);return v(e.buffer,e.byteOffset,e.byteLength)}return m(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return v(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return v(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return d.from(r,e,n);var i=function(t){if(d.isBuffer(t)){var e=0|x(t.length),n=p(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?p(0):m(t):"Buffer"===t.type&&Array.isArray(t.data)?m(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return d.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function g(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function y(t){return g(t),p(t<0?0:0|x(t))}function m(t){for(var e=t.length<0?0:0|x(t.length),n=p(e),r=0;r<e;r+=1)n[r]=255&t[r];return n}function v(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,d.prototype),r}function x(t){if(t>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|t}function _(t,e){if(d.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function b(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function S(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function w(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=d.from(e,r)),d.isBuffer(e))return 0===e.length?-1:M(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):M(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function M(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,p=0;p<l;p++)if(u(t,o+p)!==u(e,p)){h=!1;break}if(h)return o}return-1}function I(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(X(s))return a;t[n+a]=s}return a}function T(t,e,n,r){return U(H(e,t.length-n),t,n,r)}function A(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function C(t,e,n,r){return U(W(e),t,n,r)}function D(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function k(t,e,n){return 0===e&&n===t.length?l.fromByteArray(t):l.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=O));return n}(r)}s=h,d.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),d.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(t,e,n){return f(t,e,n)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(t,e,n){return function(t,e,n){return g(t),t<=0?p(t):void 0!==e?"string"==typeof n?p(t).fill(e,n):p(t).fill(e):p(t)}(t,e,n)},d.allocUnsafe=function(t){return y(t)},d.allocUnsafeSlow=function(t){return y(t)},d.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==d.prototype},d.compare=function(t,e){if(Y(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(t)||!d.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},d.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return d.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=d.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(Y(o,Uint8Array))i+o.length>r.length?d.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},d.byteLength=_,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)S(this,e,e+1);return this},d.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this},d.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this},d.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?L(this,0,t):b.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(t){if(!d.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===d.compare(this,t)},d.prototype.inspect=function(){var t="",e=a;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},c&&(d.prototype[c]=d.prototype.inspect),d.prototype.compare=function(t,e,n,r,i){if(Y(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=t.slice(e,n),c=0;c<s;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return o<a?-1:a<o?1:0},d.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},d.prototype.indexOf=function(t,e,n){return w(this,t,e,n,!0)},d.prototype.lastIndexOf=function(t,e,n){return w(this,t,e,n,!1)},d.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return I(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":case"latin1":case"binary":return A(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=Z[t[o]];return i}function N(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function V(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,i,o){if(!d.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,i){return e=+e,n>>>=0,i||B(t,0,n,4),u.write(t,e,n,r,23,4),n+4}function G(t,e,n,r,i){return e=+e,n>>>=0,i||B(t,0,n,8),u.write(t,e,n,r,52,8),n+8}d.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,d.prototype),r},d.prototype.readUintLE=d.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||V(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},d.prototype.readUintBE=d.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||V(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},d.prototype.readUint8=d.prototype.readUInt8=function(t,e){return t>>>=0,e||V(t,1,this.length),this[t]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(t,e){return t>>>=0,e||V(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(t,e){return t>>>=0,e||V(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(t,e){return t>>>=0,e||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(t,e){return t>>>=0,e||V(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||V(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},d.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||V(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},d.prototype.readInt8=function(t,e){return t>>>=0,e||V(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,e){t>>>=0,e||V(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(t,e){t>>>=0,e||V(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(t,e){return t>>>=0,e||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,e){return t>>>=0,e||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readFloatLE=function(t,e){return t>>>=0,e||V(t,4,this.length),u.read(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,e){return t>>>=0,e||V(t,4,this.length),u.read(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,e){return t>>>=0,e||V(t,8,this.length),u.read(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,e){return t>>>=0,e||V(t,8,this.length),u.read(this,t,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||z(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||z(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,1,255,0),this[e]=255&t,e+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},d.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},d.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},d.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},d.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},d.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},d.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},d.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},d.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},d.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},d.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},d.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},d.prototype.copy=function(t,e,n,r){if(!d.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},d.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var i=t.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=d.isBuffer(t)?t:d.from(t,r),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var j=/[^+/0-9A-Za-z-_]/g;function H(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){return l.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}var Z=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]=t[n]+t[i];return e}()})),o.register("lTkkV",(function(t,n){var r,i;e(t.exports,"toByteArray",(function(){return r}),(function(t){return r=t})),e(t.exports,"fromByteArray",(function(){return i}),(function(t){return i=t})),r=function(t){var e,n,r=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}(t),i=r[0],o=r[1],l=new s(function(t,e,n){return 3*(e+n)/4-n}(0,i,o)),u=0,c=o>0?i-4:i;for(n=0;n<c;n+=4)e=a[t.charCodeAt(n)]<<18|a[t.charCodeAt(n+1)]<<12|a[t.charCodeAt(n+2)]<<6|a[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===o&&(e=a[t.charCodeAt(n)]<<2|a[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===o&&(e=a[t.charCodeAt(n)]<<10|a[t.charCodeAt(n+1)]<<4|a[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},i=function(t){for(var e,n=t.length,r=n%3,i=[],a=16383,s=0,l=n-r;s<l;s+=a)i.push(h(t,s,s+a>l?l:s+a));return 1===r?(e=t[n-1],i.push(o[e>>2]+o[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(o[e>>10]+o[e>>4&63]+o[e<<2&63]+"=")),i.join("")};for(var o=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=l.length;u<c;++u)o[u]=l[u],a[l.charCodeAt(u)]=u;function h(t,e,n){for(var r,i,a=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(o[(i=r)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63})),o.register("dWK0P",(function(t,n){
|
|
9
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var r,i;e(t.exports,"read",(function(){return r}),(function(t){return r=t})),e(t.exports,"write",(function(){return i}),(function(t){return i=t})),r=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},i=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}})),o.register("391mA",(function(t,r){var i;i=t.exports,Object.defineProperty(i,"__esModule",{value:!0,configurable:!0}),e(t.exports,"default",(function(){return p}));var a=o("gXy07"),s=o("loiyq"),l=o("5TtXY"),u=o("8GiaB"),c=o("lxQbO"),h=o("axDY0");(0,s.use)([u.install,c.install]);var p={init:function(){return l.init.apply(null,arguments)}};(0,s.use)(h.installLabelLayout),n(t.exports,a)})),o.register("gXy07",(function(t,e){var r=o("5TtXY"),i=o("4gVD6"),a=o("loiyq"),s=o("axDY0");(0,a.use)(s.installLabelLayout),n(t.exports,r),n(t.exports,i)})),o.register("5TtXY",(function(t,n){e(t.exports,"version",(function(){return U})),e(t.exports,"dependencies",(function(){return Y})),e(t.exports,"PRIORITY",(function(){return q})),e(t.exports,"init",(function(){return Rt})),e(t.exports,"getInstanceByDom",(function(){return Ft})),e(t.exports,"connect",(function(){return Nt})),e(t.exports,"disconnect",(function(){return Vt})),e(t.exports,"disConnect",(function(){return zt})),e(t.exports,"dispose",(function(){return Bt})),e(t.exports,"getInstanceById",(function(){return Gt})),e(t.exports,"registerTheme",(function(){return jt})),e(t.exports,"registerPreprocessor",(function(){return Ht})),e(t.exports,"registerProcessor",(function(){return Wt})),e(t.exports,"registerPostInit",(function(){return Ut})),e(t.exports,"registerUpdateLifecycle",(function(){return Xt})),e(t.exports,"registerPostUpdate",(function(){return Yt})),e(t.exports,"registerAction",(function(){return Zt})),e(t.exports,"registerCoordinateSystem",(function(){return qt})),e(t.exports,"getCoordinateSystemDimensions",(function(){return Kt})),e(t.exports,"registerLayout",(function(){return Jt})),e(t.exports,"registerVisual",(function(){return Qt})),e(t.exports,"registerLoading",(function(){return ee})),e(t.exports,"setCanvasCreator",(function(){return ne})),e(t.exports,"registerMap",(function(){return re})),e(t.exports,"getMap",(function(){return ie})),e(t.exports,"registerTransform",(function(){return oe})),e(t.exports,"dataTool",(function(){return ae})),e(t.exports,"registerLocale",(function(){return o("fJkwV").registerLocale}));var r=o("2pli3"),i=o("i2pfq"),a=o("2fV2j"),s=o("akmdr"),l=o("8WUTE"),u=o("bMEwb"),c=o("7OdSb"),h=o("j6EDF"),p=o("gqZ26"),d=o("cE7wv"),f=o("16qAa"),g=o("2brhl"),y=o("icZIP"),m=o("jMGr2"),v=o("ansKp");o("4x6s5");var x=o("4m2Ab"),_=o("b1qY0"),b=o("lv1gH"),S=o("4NPqX"),w=o("by2b6"),M=o("6EdQu"),I=o("jnApb"),T=o("lx0YT"),A=o("69md3"),C=o("hX8mK"),D=o("je9YP"),k=o("irSZj"),L=o("eqvhE"),O=o("fyXJH"),P=o("1Jhmu"),E=o("6Spy7"),R=o("kJZzU"),N=o("3ds5n"),V=o("j11Si"),z=o("2ljNz"),B=o("fJkwV"),F=o("16uHh"),G=o("dJ7GV"),j=o("dLZJQ"),H=o("iXQJv"),W=o("lYz6m"),U=(B=o("fJkwV"),"5.5.0"),Y={zrender:"5.5.0"},X=2e3,Z=4500,q={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:X,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Z,ARIA:6e3,DECAL:7e3}},K=/^[a-zA-Z0-9_]+$/;function J(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return $(this,t,e);this.id}}function Q(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return $(this,t,e)}}function $(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),u.default.prototype[e].apply(t,n)}var tt,et,nt,rt,it,ot,at,st,lt,ut,ct,ht,pt,dt,ft,gt,yt,mt,vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e}(u.default),xt=vt.prototype;xt.on=Q("on"),xt.off=Q("off");var _t=function(t){function e(e,n,r){var o=t.call(this,new(0,P.ECEventProcessor))||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},(0,a.isString)(n)&&(n=Ct[n]),o._dom=e,r.ssr&&i.registerSSRDataGetter((function(t){var e=(0,w.getECData)(t),n=e.dataIndex;if(null!=n){var r=(0,a.createHashMap)();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}}));var s=o._zr=i.init(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:(0,a.retrieve2)(r.useDirtyRect,!1),useCoarsePointer:(0,a.retrieve2)(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=(0,T.throttle)((0,a.bind)(s.flush,s),17),(n=(0,a.clone)(n))&&(0,f.default)(n,!0),o._theme=n,o._locale=(0,B.createLocaleObject)(r.locale||B.SYSTEM_LANG),o._coordSysMgr=new(0,p.default);var u=o._api=ft(o);function c(t,e){return t.__prio-e.__prio}return(0,l.default)(At,c),(0,l.default)(It,c),o._scheduler=new(0,D.default)(o,u,It,At),o._messageCenter=new vt,o._initEvents(),o.resize=(0,a.bind)(o.resize,o),s.animation.on("frame",o._onframe,o),ut(s,o),ct(s,o),(0,a.setAsPrimitive)(o),o}return(0,r.__extends)(e,t),e.prototype._onframe=function(){if(!this._disposed){mt(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{tt(this),rt.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,st.call(this,e),lt.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),ot(this,r),t.performVisualTasks(r),dt(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)this.id;else{var r,i,o;if((0,a.isObject)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var s=new(0,d.default)(this._api),l=this._theme,u=this._model=new(0,c.default);u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:i},Tt);var h={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:h},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{tt(this),rt.update.call(this,null,h)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,st.call(this,r),lt.call(this,r)}}},e.prototype.setTheme=function(){(0,N.deprecateLog)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||s.default.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(s.default.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,a.each)(e,(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;(0,a.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,a.each)(r,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,o=Math.max,s=1/0;if(Lt[n]){var l=s,u=s,c=-1/0,h=-1/0,p=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();(0,a.each)(kt,(function(i,s){if(i.group===n){var d=e?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas((0,a.clone)(t)),f=i.getDom().getBoundingClientRect();l=r(f.left,l),u=r(f.top,u),c=o(f.right,c),h=o(f.bottom,h),p.push({dom:d,left:f.left,top:f.top})}}));var f=(c*=d)-(l*=d),g=(h*=d)-(u*=d),y=H.platformApi.createCanvas(),m=i.init(y,{renderer:e?"svg":"canvas"});if(m.resize({width:f,height:g}),e){var v="";return(0,a.each)(p,(function(t){var e=t.left-l,n=t.top-u;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new x.default({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,a.each)(p,(function(t){var e=new _.default({style:{x:t.left*d-l,y:t.top*d-u,image:t.dom}});m.add(e)})),m.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return it(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return it(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=I.parseFinder(r,t);return(0,a.each)(i,(function(t,r){r.indexOf("Models")>=0&&(0,a.each)(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n}this.id},e.prototype.getVisual=function(t,e){var n=this._model,r=I.parseFinder(n,t,{defaultMainType:"series"}),i=r.seriesModel.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=o?(0,R.getItemVisualFromData)(i,o,e):(0,R.getVisualFromData)(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;(0,a.each)(St,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target;if("globalout"===e?r={}:o&&(0,F.findEventDispatcher)(o,(function(t){var e=(0,w.getECData)(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=(0,a.extend)({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];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)})),(0,a.each)(Mt,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),(0,a.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),(0,V.handleLegacySelectEvents)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&I.setAttribute(this.getDom(),Et,"");var t=this,e=t._api,n=t._model;(0,a.each)(t._componentsViews,(function(t){t.dispose(n,e)})),(0,a.each)(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 kt[t.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)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.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&tt(this),rt.update.call(this,{type:"resize",animation:(0,a.extend)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,st.call(this,r),lt.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if((0,a.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Dt[t]){var n=Dt[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,a.extend)({},t);return e.type=Mt[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if((0,a.isObject)(e)||(e={silent:!!e}),wt[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;at.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&s.default.browser.weChat&&this._throttledZrFlush(),st.call(this,n),lt.call(this,n)}},e.prototype.updateLabelLayout=function(){j.default.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).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"),t.hoverState===M.HOVER_STATE_EMPHASIS&&t.states.emphasis?e.push("emphasis"):t.hoverState===M.HOVER_STATE_BLUR&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return i(t,n,r,-1/0),!0}))}}function i(t,e,n,r){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Math.max(i(s[l],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(o&&(o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}function o(t,e){e.eachRendered((function(t){if(!S.isElementRemoved(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 u(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(S.isElementRemoved(t))return;if(t instanceof b.default&&(0,M.savePathStates)(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)}}))}tt=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),et(t,!0),et(t,!1),e.plan()},et=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=(0,O.parseClassType)(t.type);(c=new(e?m.default.getClass(h.main,h.sub):v.default.getClass(h.sub))).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)}for(e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u),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)}},nt=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var u,c=n.excludeSeriesId;null!=c&&(u=(0,a.createHashMap)(),(0,a.each)(I.normalizeToArray(c),(function(t){var e=I.convertOptionIdName(t,null);null!=e&&u.set(e,!0)}))),o&&o.eachComponent(l,(function(e){if(!u||null==u.get(e.id))if((0,M.isHighDownPayload)(n))if(e instanceof y.default)n.type!==M.HIGHLIGHT_ACTION_TYPE||n.notBlur||e.get(["emphasis","disabled"])||(0,M.blurSeriesFromHighlightPayload)(e,n,t._api);else{var r=(0,M.findComponentHighDownDispatchers)(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===M.HIGHLIGHT_ACTION_TYPE&&i&&!n.notBlur&&(0,M.blurComponent)(e.mainType,e.componentIndex,t._api),o&&(0,a.each)(o,(function(t){n.type===M.HIGHLIGHT_ACTION_TYPE?(0,M.enterEmphasis)(t):(0,M.leaveEmphasis)(t)}))}else(0,M.isSelectChangePayload)(n)&&e instanceof y.default&&((0,M.toggleSelectionFromPayload)(e,n,t._api),(0,M.updateSeriesElementSelection)(e),yt(t))}),t),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else(0,a.each)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},rt={prepareAndUpdate:function(t){tt(this),rt.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),ot(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),ht(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),j.default.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var s=(0,a.createHashMap)();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,r,i,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:s}),dt(this,r,i,e,{},s),j.default.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),v.default.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),ht(this,n,this._api,e,{}),j.default.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),v.default.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)})),j.default.trigger("afterupdate",r,this._api))},updateLayout:function(t){rt.update.call(this,t)}},it=function(t,e,n,r){if(t._disposed)t.id;else for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=I.parseFinder(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}},ot=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},at=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,s=wt[i],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&(0,O.parseClassType)(u[0]);this.__flagInMainProcess=!0;var p=[t],d=!1;t.batch&&(d=!0,p=(0,a.map)(t.batch,(function(e){return(e=(0,a.defaults)((0,a.extend)({},e),t)).batch=null,e})));var f,g=[],y=(0,M.isSelectChangePayload)(t),m=(0,M.isHighDownPayload)(t);if(m&&(0,M.allLeaveBlur)(this._api),(0,a.each)(p,(function(e){if((f=(f=s.action(e,n._model,n._api))||(0,a.extend)({},e)).type=l.event||f.type,g.push(f),m){var r=I.preParseFinder(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";nt(n,c,e,o),yt(n)}else y?(nt(n,c,e,"series"),yt(n)):h&&nt(n,c,e,h.main,h.sub)})),"none"!==c&&!m&&!y&&!h)try{this.__pendingUpdate?(tt(this),rt.update.call(this,t),this.__pendingUpdate=null):rt[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(f=d?{type:l.event||i,escapeConnect:o,batch:g}:g[0],this.__flagInMainProcess=!1,!e){var v=this._messageCenter;if(v.trigger(f.type,f),y){var x={type:"selectchanged",escapeConnect:o,selected:(0,M.getAllSelectedIndices)(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(x.type,x)}}},st=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();at.call(this,n,t)}},lt=function(t){!t&&this.trigger("updated")},ut=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e.__pendingUpdate||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},ct=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=(0,F.findEventDispatcher)(n,M.isHighDownDispatcher);r&&((0,M.handleGlobalMouseOverForHighDown)(r,t,e._api),yt(e))})).on("mouseout",(function(t){var n=t.target,r=(0,F.findEventDispatcher)(n,M.isHighDownDispatcher);r&&((0,M.handleGlobalMouseOutForHighDown)(r,t,e._api),yt(e))})).on("click",(function(t){var n=t.target,r=(0,F.findEventDispatcher)(n,(function(t){return null!=(0,w.getECData)(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=(0,w.getECData)(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},ht=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,s=e.concat(n);(0,l.default)(s,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),(0,a.each)(s,(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),pt(t,e,n,r,i),(0,a.each)(t._chartsViews,(function(t){t.__alive=!1})),dt(t,e,n,r,i),(0,a.each)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},pt=function(t,e,r,i,s,l){(0,a.each)(l||t._componentsViews,(function(t){var a=t.__model;o(0,t),t.render(a,e,r,i),n(a,t),u(a,t)}))},dt=function(t,e,r,i,l,c){var h=t._scheduler;l=(0,a.extend)(l||{},{updatedSeries:e.getSeries()}),j.default.trigger("series:beforeupdate",e,r,l);var p=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,i),o(0,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(p=!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),(0,M.updateSeriesElementSelection)(e)})),h.unfinished=p||h.unfinished,j.default.trigger("series:layoutlabels",e,r,l),j.default.trigger("series:transition",e,r,l),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),u(e,r)})),function(t,e){var n=t._zr.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!s.default.node&&!s.default.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),j.default.trigger("series:afterupdate",e,r,l)},yt=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},mt=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){S.isElementRemoved(t)||e(t)})),t.__needsUpdateStatus=!1)},ft=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){(0,M.enterEmphasis)(e,n),yt(t)},n.prototype.leaveEmphasis=function(e,n){(0,M.leaveEmphasis)(e,n),yt(t)},n.prototype.enterBlur=function(e){(0,M.enterBlur)(e),yt(t)},n.prototype.leaveBlur=function(e){(0,M.leaveBlur)(e),yt(t)},n.prototype.enterSelect=function(e){(0,M.enterSelect)(e),yt(t)},n.prototype.leaveSelect=function(e){(0,M.leaveSelect)(e),yt(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(h.default))(t)},gt=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n].__connectUpdateStatus=e}(0,a.each)(Mt,(function(n,r){t._messageCenter.on(r,(function(n){if(Lt[t.group]&&0!==t.__connectUpdateStatus){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];(0,a.each)(kt,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),(0,a.each)(i,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(u.default),bt=_t.prototype;bt.on=J("on"),bt.off=J("off"),bt.one=function(t,e,n){var r=this;(0,N.deprecateLog)("ECharts#one is deprecated."),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 St=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],wt={},Mt={},It=[],Tt=[],At=[],Ct={},Dt={},kt={},Lt={},Ot=+new Date-0,Pt=+new Date-0,Et="_echarts_instance_";function Rt(t,e,n){var r=!(n&&n.ssr);if(r){var i=Ft(t);if(i)return i}var o=new _t(t,e,n);return o.id="ec_"+Ot++,kt[o.id]=o,r&&I.setAttribute(t,Et,o.id),gt(o),j.default.trigger("afterinit",o),o}function Nt(t){if((0,a.isArray)(t)){var e=t;t=null,(0,a.each)(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Pt++,(0,a.each)(e,(function(e){e.group=t}))}return Lt[t]=!0,t}function Vt(t){Lt[t]=!1}var zt=Vt;function Bt(t){(0,a.isString)(t)?t=kt[t]:t instanceof _t||(t=Ft(t)),t instanceof _t&&!t.isDisposed()&&t.dispose()}function Ft(t){return kt[I.getAttribute(t,Et)]}function Gt(t){return kt[t]}function jt(t,e){Ct[t]=e}function Ht(t){(0,a.indexOf)(Tt,t)<0&&Tt.push(t)}function Wt(t,e){te(It,t,e,2e3)}function Ut(t){Xt("afterinit",t)}function Yt(t){Xt("afterupdate",t)}function Xt(t,e){j.default.on(t,e)}function Zt(t,e,n){(0,a.isFunction)(e)&&(n=e,e="");var r=(0,a.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,Mt[e]||((0,a.assert)(K.test(r)&&K.test(e)),wt[r]||(wt[r]={action:n,actionInfo:t}),Mt[e]=r)}function qt(t,e){p.default.register(t,e)}function Kt(t){var e=p.default.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Jt(t,e){te(At,t,e,1e3,"layout")}function Qt(t,e){te(At,t,e,3e3,"visual")}var $t=[];function te(t,e,n,r,i){if(((0,a.isFunction)(e)||(0,a.isObject)(e))&&(n=e,e=r),!((0,a.indexOf)($t,n)>=0)){$t.push(n);var o=D.default.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function ee(t,e){Dt[t]=e}function ne(t){(0,H.setPlatformAPI)({createCanvas:t})}function re(t,e,n){var r=(0,W.getImpl)("registerMap");r&&r(t,e,n)}function ie(t){var e=(0,W.getImpl)("getMap");return e&&e(t)}var oe=z.registerExternalTransform;Qt(X,A.seriesStyleTask),Qt(Z,A.dataStyleTask),Qt(Z,A.dataColorPaletteTask),Qt(X,E.seriesSymbolTask),Qt(Z,E.dataSymbolTask),Qt(7e3,G.default),Ht(f.default),Wt(900,g.default),ee("default",C.default),Zt({type:M.HIGHLIGHT_ACTION_TYPE,event:M.HIGHLIGHT_ACTION_TYPE,update:M.HIGHLIGHT_ACTION_TYPE},a.noop),Zt({type:M.DOWNPLAY_ACTION_TYPE,event:M.DOWNPLAY_ACTION_TYPE,update:M.DOWNPLAY_ACTION_TYPE},a.noop),Zt({type:M.SELECT_ACTION_TYPE,event:M.SELECT_ACTION_TYPE,update:M.SELECT_ACTION_TYPE},a.noop),Zt({type:M.UNSELECT_ACTION_TYPE,event:M.UNSELECT_ACTION_TYPE,update:M.UNSELECT_ACTION_TYPE},a.noop),Zt({type:M.TOGGLE_SELECT_ACTION_TYPE,event:M.TOGGLE_SELECT_ACTION_TYPE,update:M.TOGGLE_SELECT_ACTION_TYPE},a.noop),jt("light",k.default),jt("dark",L.default);var ae={}})),o.register("2pli3",(function(t,n){e(t.exports,"__extends",(function(){return i}));
|
|
10
|
-
/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation.
|
|
12
|
-
|
|
13
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
-
purpose with or without fee is hereby granted.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
17
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
18
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
-
***************************************************************************** */
|
|
24
|
-
var r=function(t,e){return r=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])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create})),o.register("i2pfq",(function(t,n){e(t.exports,"init",(function(){return m})),e(t.exports,"dispose",(function(){return v})),e(t.exports,"disposeAll",(function(){return x})),e(t.exports,"getInstance",(function(){return _})),e(t.exports,"registerPainter",(function(){return b})),e(t.exports,"getElementSSRData",(function(){return S})),e(t.exports,"registerSSRDataGetter",(function(){return w})),e(t.exports,"version",(function(){return M}));
|
|
25
|
-
/*!
|
|
26
|
-
* ZRender, a high performance 2d drawing library.
|
|
27
|
-
*
|
|
28
|
-
* Copyright (c) 2013, Baidu Inc.
|
|
29
|
-
* All rights reserved.
|
|
30
|
-
*
|
|
31
|
-
* LICENSE
|
|
32
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
33
|
-
*/
|
|
34
|
-
var r,i=o("akmdr"),a=o("2fV2j"),s=o("8c8d4"),l=o("DWxtk"),u=o("hS6n0"),c=o("4SHDy"),h=o("6s8l4"),p=o("2g2Ep"),d=o("4zWIO"),f={},g={},y=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new(0,l.default),h=n.renderer||"canvas";f[h]||(h=a.keys(f)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var p=new f[h](e,o,n,t),d=n.ssr||p.ssrOnly;this.storage=o,this.painter=p;var g,y=i.default.node||i.default.worker||d?null:new(0,c.default)(p.getViewportRoot(),p.root),m=n.useCoarsePointer;(null==m||"auto"===m?i.default.touchEventsSupported:!!m)&&(g=a.retrieve2(n.pointerSize,44)),this.handler=new(0,s.default)(o,p,y,p.root,g),this.animation=new(0,u.default)({stage:{update:d?null:function(){return r._flush(!0)}}}),d||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(0,h.lum)(t,1)<p.DARK_MODE_THRESHOLD;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=(0,h.lum)(e[i].color,1);return(n/=r)<p.DARK_MODE_THRESHOLD}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||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=(0,u.getTime)();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=(0,u.getTime)();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof d.default&&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 g[t])},t}();function m(t,e){var n=new y(a.guid(),t,e);return g[n.id]=n,n}function v(t){t.dispose()}function x(){for(var t in g)g.hasOwnProperty(t)&&g[t].dispose();g={}}function _(t){return g[t]}function b(t,e){f[t]=e}function S(t){if("function"==typeof r)return r(t)}function w(t){r=t}var M="5.5.0"})),o.register("akmdr",(function(t,n){e(t.exports,"default",(function(){return o}));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:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(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),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i);var o=i})),o.register("2fV2j",(function(t,n){e(t.exports,"reduce",(function(){return L})),e(t.exports,"guid",(function(){return m})),e(t.exports,"logError",(function(){return v})),e(t.exports,"clone",(function(){return x})),e(t.exports,"isPrimitive",(function(){return it})),e(t.exports,"isDom",(function(){return U})),e(t.exports,"merge",(function(){return _})),e(t.exports,"isObject",(function(){return j})),e(t.exports,"isArray",(function(){return V})),e(t.exports,"isBuiltInObject",(function(){return H})),e(t.exports,"mergeAll",(function(){return b})),e(t.exports,"extend",(function(){return S})),e(t.exports,"defaults",(function(){return w})),e(t.exports,"keys",(function(){return E})),e(t.exports,"createCanvas",(function(){return M})),e(t.exports,"indexOf",(function(){return I})),e(t.exports,"inherits",(function(){return T})),e(t.exports,"mixin",(function(){return A})),e(t.exports,"isArrayLike",(function(){return C})),e(t.exports,"each",(function(){return D})),e(t.exports,"map",(function(){return k})),e(t.exports,"slice",(function(){return $})),e(t.exports,"filter",(function(){return O})),e(t.exports,"find",(function(){return P})),e(t.exports,"bind",(function(){return R})),e(t.exports,"isFunction",(function(){return z})),e(t.exports,"curry",(function(){return N})),e(t.exports,"isString",(function(){return B})),e(t.exports,"isStringSafe",(function(){return F})),e(t.exports,"isNumber",(function(){return G})),e(t.exports,"isTypedArray",(function(){return W})),e(t.exports,"isGradientObject",(function(){return Y})),e(t.exports,"isImagePatternObject",(function(){return X})),e(t.exports,"isRegExp",(function(){return Z})),e(t.exports,"eqNaN",(function(){return q})),e(t.exports,"retrieve",(function(){return K})),e(t.exports,"retrieve2",(function(){return J})),e(t.exports,"retrieve3",(function(){return Q})),e(t.exports,"normalizeCssArray",(function(){return tt})),e(t.exports,"assert",(function(){return et})),e(t.exports,"trim",(function(){return nt})),e(t.exports,"setAsPrimitive",(function(){return rt})),e(t.exports,"HashMap",(function(){return st})),e(t.exports,"createHashMap",(function(){return lt})),e(t.exports,"concatArray",(function(){return ut})),e(t.exports,"createObject",(function(){return ct})),e(t.exports,"disableUserSelect",(function(){return ht})),e(t.exports,"hasOwn",(function(){return pt})),e(t.exports,"noop",(function(){return dt})),e(t.exports,"RADIAN_TO_DEGREE",(function(){return ft}));var r=o("iXQJv"),i=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),a=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),s=Object.prototype.toString,l=Array.prototype,u=l.forEach,c=l.filter,h=l.slice,p=l.map,d=function(){}.constructor,f=d?d.prototype:null,g="__proto__",y=2311;function m(){return y++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function x(t){if(null==t||"object"!=typeof t)return t;var e=t,n=s.call(t);if("[object Array]"===n){if(!it(t)){e=[];for(var r=0,o=t.length;r<o;r++)e[r]=x(t[r])}}else if(a[n]){if(!it(t)){var l=t.constructor;if(l.from)e=l.from(t);else for(e=new l(t.length),r=0,o=t.length;r<o;r++)e[r]=t[r]}}else if(!i[n]&&!it(t)&&!U(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==g&&(e[u]=x(t[u]));return e}function _(t,e,n){if(!j(e)||!j(t))return n?x(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==g){var i=t[r],o=e[r];!j(o)||!j(i)||V(o)||V(i)||U(o)||U(i)||H(o)||H(i)||it(o)||it(i)?!n&&r in t||(t[r]=x(e[r])):_(i,o,n)}return t}function b(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=_(n,t[r],e);return n}function S(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==g&&(t[n]=e[n]);return t}function w(t,e,n){for(var r=E(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var M=r.platformApi.createCanvas;function I(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 T(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 A(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function C(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function D(t,e,n){if(t&&e)if(t.forEach&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function k(t,e,n){if(!t)return[];if(!e)return $(t);if(t.map&&t.map===p)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 L(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 O(t,e,n){if(!t)return[];if(!e)return $(t);if(t.filter&&t.filter===c)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 P(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 E(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 R=f&&z(f.bind)?f.call.bind(f.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(h.call(arguments)))}};function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(h.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===s.call(t)}function z(t){return"function"==typeof t}function B(t){return"string"==typeof t}function F(t){return"[object String]"===s.call(t)}function G(t){return"number"==typeof t}function j(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function H(t){return!!i[s.call(t)]}function W(t){return!!a[s.call(t)]}function U(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Y(t){return null!=t.colorStops}function X(t){return null!=t.image}function Z(t){return"[object RegExp]"===s.call(t)}function q(t){return t!=t}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function J(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function $(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return h.apply(t,e)}function tt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function et(t,e){if(!t)throw new Error(e)}function nt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function rt(t){t.__ec_primitive__=!0}function it(t){return t.__ec_primitive__}var ot=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 E(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),at="function"==typeof Map,st=function(){function t(e){var n=V(e);this.data=at?new Map:new ot;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&D(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 at?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function lt(t){return new st(t)}function ut(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 ct(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&S(n,e),n}function ht(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function pt(t,e){return t.hasOwnProperty(e)}function dt(){}var ft=180/Math.PI})),o.register("iXQJv",(function(t,n){e(t.exports,"DEFAULT_FONT_SIZE",(function(){return o})),e(t.exports,"DEFAULT_FONT_FAMILY",(function(){return a})),e(t.exports,"DEFAULT_FONT",(function(){return s})),e(t.exports,"platformApi",(function(){return u})),e(t.exports,"setPlatformAPI",(function(){return c}));var r,i,o=12,a="sans-serif",s=o+"px "+a,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(!r){var n=u.createCanvas();r=n&&n.getContext("2d")}if(r)return i!==e&&(i=r.font=e||s),r.measureText(t);t=t||"";var a=/(\d+)px/.exec(e=e||s),c=a&&+a[1]||o,h=0;if(e.indexOf("mono")>=0)h=c*t.length;else for(var p=0;p<t.length;p++){var d=l[t[p]];h+=null==d?c:d*c}return{width:h}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function c(t){for(var e in u)t[e]&&(u[e]=t[e])}})),o.register("8c8d4",(function(t,n){e(t.exports,"default",(function(){return S}));var r=o("2pli3"),i=o("2fV2j"),a=o("lDRrb"),s=o("5S06D"),l=o("bMEwb"),u=o("9Ocvr"),c=o("8eHyA"),h=o("e2ttp"),p="silent";function d(){u.stop(this.event)}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,r.__extends)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(l.default),g=function(t,e){this.x=t,this.y=e},y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],m=new(0,h.default)(0,0,0,0),v=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new g(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new f,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new(0,s.default)(a),a}return(0,r.__extends)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(y,(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=b(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 g(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 g(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:d}}(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 g(t,e);if(_(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new(0,h.default)(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||(m.copy(c.getBoundingRect()),c.transform&&m.applyTransform(c.transform),m.intersect(l)&&o.push(c))}if(o.length)for(var p=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=4)for(var y=0;y<d;y+=p)if(_(o,i,t+f*Math.cos(y),e+f*Math.sin(y),n),i.target)return i}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new(0,c.GestureMgr));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 g;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(l.default);function x(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),r=r.__hostTarget||r.parent}return!i||p}return!1}function _(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=x(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==p)){e.target=a;break}}}function b(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){v.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,s=b(this,i,o);if("mouseup"===t&&s||(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||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var S=v})),o.register("lDRrb",(function(t,n){function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(p(t))}e(t.exports,"create",(function(){return r})),e(t.exports,"copy",(function(){return i})),e(t.exports,"clone",(function(){return o})),e(t.exports,"set",(function(){return a})),e(t.exports,"add",(function(){return s})),e(t.exports,"scaleAndAdd",(function(){return l})),e(t.exports,"sub",(function(){return u})),e(t.exports,"len",(function(){return c})),e(t.exports,"lenSquare",(function(){return p})),e(t.exports,"length",(function(){return h})),e(t.exports,"lengthSquare",(function(){return d})),e(t.exports,"mul",(function(){return f})),e(t.exports,"div",(function(){return g})),e(t.exports,"dot",(function(){return y})),e(t.exports,"scale",(function(){return m})),e(t.exports,"normalize",(function(){return v})),e(t.exports,"distance",(function(){return x})),e(t.exports,"dist",(function(){return _})),e(t.exports,"distanceSquare",(function(){return b})),e(t.exports,"distSquare",(function(){return S})),e(t.exports,"negate",(function(){return w})),e(t.exports,"lerp",(function(){return M})),e(t.exports,"applyTransform",(function(){return I})),e(t.exports,"min",(function(){return T})),e(t.exports,"max",(function(){return A}));var h=c;function p(t){return t[0]*t[0]+t[1]*t[1]}var d=p;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function y(t,e){return t[0]*e[0]+t[1]*e[1]}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function v(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function x(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=x;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var S=b;function w(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(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 I(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 T(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function A(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}})),o.register("5S06D",(function(t,n){e(t.exports,"default",(function(){return i}));var r=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},i=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 r(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(o,a,t),this.handler.dispatchToElement(new r(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new r(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new r(s,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new r(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new r(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}()})),o.register("bMEwb",(function(t,n){e(t.exports,"default",(function(){return i}));var r=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}(),i=r})),o.register("9Ocvr",(function(t,n){e(t.exports,"clientToLocal",(function(){return u})),e(t.exports,"getNativeEvent",(function(){return h})),e(t.exports,"normalizeEvent",(function(){return p})),e(t.exports,"addEventListener",(function(){return d})),e(t.exports,"removeEventListener",(function(){return f})),e(t.exports,"stop",(function(){return g})),e(t.exports,"isMiddleOrRightButtonOnMouseUpDown",(function(){return y}));var r=o("akmdr"),i=o("049dS"),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[],l=r.default.browser.firefox&&+r.default.browser.version.split(".")[0]<39;function u(t,e,n,r){return n=n||{},r?c(t,e,n):l&&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):c(t,e,n),n}function c(t,e,n){if(r.default.domSupported&&t.getBoundingClientRect){var o=e.clientX,a=e.clientY;if((0,i.isCanvasEl)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=a-l.top)}if((0,i.transformCoordWithViewport)(s,t,o,a))return n.zrX=s[0],void(n.zrY=s[1])}n.zrX=n.zrY=0}function h(t){return t||window.event}function p(t,e,n){if(null!=(e=h(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&&u(t,i,e,n)}else{u(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;return null==n||null==r?e: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 s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,r){t.addEventListener(e,n,r)}function f(t,e,n,r){t.removeEventListener(e,n,r)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function y(t){return 2===t.which||3===t.which}})),o.register("049dS",(function(t,n){e(t.exports,"transformLocalCoord",(function(){return s})),e(t.exports,"transformCoordWithViewport",(function(){return l})),e(t.exports,"isCanvasEl",(function(){return u})),e(t.exports,"encodeHTML",(function(){return p}));var r=o("akmdr"),i=o("dqE7C"),a=[];function s(t,e,n,r,i){return l(a,e,r,i,!0)&&l(t,n,a[0],a[1])}function l(t,e,n,o,a){if(e.getBoundingClientRect&&r.default.domSupported&&!u(e)){var s=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),l=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 n}(e,s),c=function(t,e,n){for(var r=n?"invTrans":"trans",o=e[r],a=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),p=2*c,d=h.left,f=h.top;s.push(d,f),u=u&&a&&d===a[p]&&f===a[p+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&o?o:(e.srcCoords=s,e[r]=n?(0,i.buildTransformer)(l,s):(0,i.buildTransformer)(s,l))}(l,s,a);if(c)return c(t,n,o),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var c=/([&<>"'])/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"};function p(t){return null==t?"":(t+"").replace(c,(function(t,e){return h[e]}))}})),o.register("dqE7C",(function(t,n){e(t.exports,"buildTransformer",(function(){return o}));var r=Math.log(2);function i(t,e,n,o,a,s){var l=o+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<u)-1&~a)/r);return t[n][c]}for(var h=o|1<<n,p=n+1;o&1<<p;)p++;for(var d=0,f=0,g=0;f<u;f++){var y=1<<f;y&a||(d+=(g%2?-1:1)*t[n][f]*i(t,e-1,p,h,a|y,s),g++)}return s[l]=d,d}function o(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={},o=i(n,8,0,0,0,r);if(0!==o){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,r)/o*e[s];return function(t,e,n){var r=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/r,t[1]=(e*a[3]+n*a[4]+a[5])/r}}}})),o.register("8eHyA",(function(t,n){e(t.exports,"GestureMgr",(function(){return i}));var r=o("9Ocvr"),i=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},a=0,s=i.length;a<s;a++){var l=i[a],u=r.clientToLocal(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},t.prototype._recognize=function(t){for(var e in s)if(s.hasOwnProperty(e)){var n=s[e](this._track,t);if(n)return n}},t}();function a(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var s={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 s=a(i)/a(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}}})),o.register("e2ttp",(function(t,n){e(t.exports,"default",(function(){return f}));var r=o("2QCok"),i=o("7k07j"),a=Math.min,s=Math.max,l=new(0,i.default),u=new(0,i.default),c=new(0,i.default),h=new(0,i.default),p=new(0,i.default),d=new(0,i.default),f=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=a(t.x,this.x),n=a(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,u=e.x,c=e.x+e.width,h=e.y,f=e.y+e.height,g=!(a<u||c<o||l<h||f<s);if(n){var y=1/0,m=0,v=Math.abs(a-u),x=Math.abs(c-o),_=Math.abs(l-h),b=Math.abs(f-s),S=Math.min(v,x),w=Math.min(_,b);a<u||c<o?S>m&&(m=S,v<x?i.default.set(d,-v,0):i.default.set(d,x,0)):S<y&&(y=S,v<x?i.default.set(p,v,0):i.default.set(p,-x,0)),l<h||f<s?w>m&&(m=w,_<b?i.default.set(d,0,-_):i.default.set(d,0,b)):S<y&&(y=S,_<b?i.default.set(p,0,_):i.default.set(p,0,-b))}return n&&i.default.copy(n,g?p:d),g},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],p=r[4],d=r[5];return e.x=n.x*i+p,e.y=n.y*o+d,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}l.x=c.x=n.x,l.y=h.y=n.y,u.x=h.x=n.x+n.width,u.y=c.y=n.y+n.height,l.transform(r),h.transform(r),u.transform(r),c.transform(r),e.x=a(l.x,u.x,c.x,h.x),e.y=a(l.y,u.y,c.y,h.y);var f=s(l.x,u.x,c.x,h.x),g=s(l.y,u.y,c.y,h.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()})),o.register("2QCok",(function(t,n){function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(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 a(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 s(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 l(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 u(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 c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function h(t){var e=[1,0,0,1,0,0];return o(e,t),e}e(t.exports,"create",(function(){return r})),e(t.exports,"identity",(function(){return i})),e(t.exports,"copy",(function(){return o})),e(t.exports,"mul",(function(){return a})),e(t.exports,"translate",(function(){return s})),e(t.exports,"rotate",(function(){return l})),e(t.exports,"scale",(function(){return u})),e(t.exports,"invert",(function(){return c})),e(t.exports,"clone",(function(){return h}))})),o.register("7k07j",(function(t,n){e(t.exports,"default",(function(){return r}));var r=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}()})),o.register("DWxtk",(function(t,n){e(t.exports,"default",(function(){return c}));var r=o("2fV2j"),i=o("8WUTE"),a=o("botma"),s=!1;function l(){s||(s=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function u(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var c=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=u}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,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,(0,i.default)(n,u)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var c=s[u];t.__dirty&&(c.__dirty|=a.REDRAW_BIT),this._updateAndAddDisplayable(c,e,n)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(l(),h.z=0),isNaN(h.z2)&&(l(),h.z2=0),isNaN(h.zlevel)&&(l(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,e,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=r.indexOf(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}()})),o.register("8WUTE",(function(t,n){function r(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){for(n--;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 i(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 o(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 a(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 s(t,e){var n,r,i=7,s=0,l=[];function u(u){var c=n[u],h=r[u],p=n[u+1],d=r[u+1];r[u]=h+d,u===s-3&&(n[u+1]=n[u+2],r[u+1]=r[u+2]),s--;var f=a(t[p],t,c,h,0,e);c+=f,0!=(h-=f)&&0!==(d=o(t[c+h-1],t,p,d,d-1,e))&&(h<=d?function(n,r,s,u){var c=0;for(c=0;c<r;c++)l[c]=t[n+c];var h=0,p=s,d=n;if(t[d++]=t[p++],0!=--u)if(1!==r){for(var f,g,y,m=i;;){f=0,g=0,y=!1;do{if(e(t[p],l[h])<0){if(t[d++]=t[p++],g++,f=0,0==--u){y=!0;break}}else if(t[d++]=l[h++],f++,g=0,1==--r){y=!0;break}}while((f|g)<m);if(y)break;do{if(0!==(f=a(t[p],l,h,r,0,e))){for(c=0;c<f;c++)t[d+c]=l[h+c];if(d+=f,h+=f,(r-=f)<=1){y=!0;break}}if(t[d++]=t[p++],0==--u){y=!0;break}if(0!==(g=o(l[h],t,p,u,0,e))){for(c=0;c<g;c++)t[d+c]=t[p+c];if(d+=g,p+=g,0==(u-=g)){y=!0;break}}if(t[d++]=l[h++],1==--r){y=!0;break}m--}while(f>=7||g>=7);if(y)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),1===r){for(c=0;c<u;c++)t[d+c]=t[p+c];t[d+u]=l[h]}else{if(0===r)throw new Error;for(c=0;c<r;c++)t[d+c]=l[h+c]}}else{for(c=0;c<u;c++)t[d+c]=t[p+c];t[d+u]=l[h]}else for(c=0;c<r;c++)t[d+c]=l[h+c]}(c,h,p,d):function(n,r,s,u){var c=0;for(c=0;c<u;c++)l[c]=t[s+c];var h=n+r-1,p=u-1,d=s+u-1,f=0,g=0;if(t[d--]=t[h--],0!=--r)if(1!==u){for(var y=i;;){var m=0,v=0,x=!1;do{if(e(l[p],t[h])<0){if(t[d--]=t[h--],m++,v=0,0==--r){x=!0;break}}else if(t[d--]=l[p--],v++,m=0,1==--u){x=!0;break}}while((m|v)<y);if(x)break;do{if(0!=(m=r-a(l[p],t,n,r,r-1,e))){for(r-=m,g=1+(d-=m),f=1+(h-=m),c=m-1;c>=0;c--)t[g+c]=t[f+c];if(0===r){x=!0;break}}if(t[d--]=l[p--],1==--u){x=!0;break}if(0!=(v=u-o(t[h],l,0,u,u-1,e))){for(u-=v,g=1+(d-=v),f=1+(p-=v),c=0;c<v;c++)t[g+c]=l[f+c];if(u<=1){x=!0;break}}if(t[d--]=t[h--],0==--r){x=!0;break}y--}while(m>=7||v>=7);if(x)break;y<0&&(y=0),y+=2}if((i=y)<1&&(i=1),1===u){for(g=1+(d-=r),f=1+(h-=r),c=r-1;c>=0;c--)t[g+c]=t[f+c];t[d]=l[p]}else{if(0===u)throw new Error;for(f=d-(u-1),c=0;c<u;c++)t[f+c]=l[c]}}else{for(g=1+(d-=r),f=1+(h-=r),c=r-1;c>=0;c--)t[g+c]=t[f+c];t[d]=l[p]}else for(f=d-(u-1),c=0;c<u;c++)t[f+c]=l[c]}(c,h,p,d))}return n=[],r=[],{mergeRuns:function(){for(;s>1;){var t=s-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;u(t)}},forceMergeRuns:function(){for(;s>1;){var t=s-2;t>0&&r[t-1]<r[t+1]&&t--,u(t)}},pushRun:function(t,e){n[s]=t,r[s]=e,s+=1}}}function l(t,e,n,o){n||(n=0),o||(o=t.length);var a=o-n;if(!(a<2)){var l=0;if(a<32)i(t,n,o,n+(l=r(t,n,o,e)),e);else{var u=s(t,e),c=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=r(t,n,o,e))<c){var h=a;h>c&&(h=c),i(t,n,n+h,n+l,e),l=h}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}e(t.exports,"default",(function(){return l}))})),o.register("botma",(function(t,n){e(t.exports,"REDRAW_BIT",(function(){return r})),e(t.exports,"STYLE_CHANGED_BIT",(function(){return i})),e(t.exports,"SHAPE_CHANGED_BIT",(function(){return o}));var r=1,i=2,o=4})),o.register("hS6n0",(function(t,n){e(t.exports,"getTime",(function(){return l})),e(t.exports,"default",(function(){return u}));var r=o("2pli3"),i=o("bMEwb"),a=o("9c6Zx"),s=o("jzMlC");function l(){return(new Date).getTime()}var u=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(0,r.__extends)(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=l()-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,(0,a.default)((function e(){t._running&&((0,a.default)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=l(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=l(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=l()-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(0,s.default)(t,e.loop);return this.addAnimator(n),n},e}(i.default)})),o.register("9c6Zx",(function(t,n){e(t.exports,"default",(function(){return r}));var r=o("akmdr").default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}})),o.register("jzMlC",(function(t,n){e(t.exports,"cloneValue",(function(){return m})),e(t.exports,"default",(function(){return w}));var r=o("ivp6S"),i=o("6s8l4"),a=o("2fV2j"),s=o("jIXgU"),l=o("j15ws"),u=o("eYVlv"),c=Array.prototype.slice;function h(t,e,n){return(e-t)*n+t}function p(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=h(e[o],n[o],r);return t}function d(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function f(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 g(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 y(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]:c.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 m(t){if((0,a.isArrayLike)(t)){var e=t.length;if((0,a.isArrayLike)(t[0])){for(var n=[],r=0;r<e;r++)n.push(c.call(t[r]));return n}return c.call(t)}return t}function v(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 x(t){return 4===t||5===t}function _(t){return 1===t||2===t}var b=[0,0,0,0],S=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,o=r.length,c=!1,h=6,p=e;if((0,a.isArrayLike)(e)){var d=function(t){return(0,a.isArrayLike)(t&&t[0])?2:1}(e);h=d,(1===d&&!(0,a.isNumber)(e[0])||2===d&&!(0,a.isNumber)(e[0][0]))&&(c=!0)}else if((0,a.isNumber)(e)&&!(0,a.eqNaN)(e))h=0;else if((0,a.isString)(e))if(isNaN(+e)){var f=i.parse(e);f&&(p=f,h=3)}else h=0;else if((0,a.isGradientObject)(e)){var g=(0,a.extend)({},p);g.colorStops=(0,a.map)(e.colorStops,(function(t){return{offset:t.offset,color:i.parse(t.color)}})),(0,u.isLinearGradient)(e)?h=4:(0,u.isRadialGradient)(e)&&(h=5),p=g}0===o?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var y={time:t,value:p,rawValue:e,percent:0};return n&&(y.easing=n,y.easingFunc=(0,a.isFunction)(n)?n:s.default[n]||(0,l.createCubicEasingFunc)(n)),r.push(y),y},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=_(r),l=x(r),u=0;u<i;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==i-1?y(h,p,r):l&&g(h.colorStops,p.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var m=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-m:3===r?n[u].additiveValue=d([],n[u].value,m,-1):_(r)&&(n[u].additiveValue=1===r?d([],n[u].value,m,-1):f([],n[u].value,m,-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,s=o?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,d=this.propName,f=3===l,g=this._lastFr,y=Math.min;if(1===c)r=i=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=y(g+1,c-1);n>=0&&!(u[n].percent<=e);n--);n=y(n,c-2)}else{for(n=g;n<c&&!(u[n].percent>e);n++);n=y(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var m=i.percent-r.percent,S=0===m?1:y((e-r.percent)/m,1);i.easingFunc&&(S=i.easingFunc(S));var w=o?this._additiveValue:f?b:t[d];if(!_(l)&&!f||w||(w=this._additiveValue=[]),this.discrete)t[d]=S<1?r.rawValue:i.rawValue;else if(_(l))1===l?p(w,r[s],i[s],S):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]=h(e[a][s],n[a][s],r)}}(w,r[s],i[s],S);else if(x(l)){var M=r[s],I=i[s],T=4===l;t[d]={type:T?"linear":"radial",x:h(M.x,I.x,S),y:h(M.y,I.y,S),colorStops:(0,a.map)(M.colorStops,(function(t,e){var n=I.colorStops[e];return{offset:h(t.offset,n.offset,S),color:v(p([],t.color,n.color,S))}})),global:I.global},T?(t[d].x2=h(M.x2,I.x2,S),t[d].y2=h(M.y2,I.y2,S)):t[d].r=h(M.r,I.r,S)}else if(f)p(w,r[s],i[s],S),o||(t[d]=v(w));else{var A=h(r[s],i[s],S);o?this._additiveValue=A:t[d]=A}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?(i.parse(t[n],b),d(b,b,r,1),t[n]=v(b)):1===e?d(t[n],t[n],r,1):2===e&&f(t[n],t[n],r,1)},t}(),w=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?(0,a.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,(0,a.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new S(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=v(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,m(l),r),this._trackKeys.push(a)}s.addKeyframe(t,m(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=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new(0,r.default)({life:i,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=p,this.animation&&this.animation.addClip(p),t&&p.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(0,a.map)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=m(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,a.keys)(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}()})),o.register("ivp6S",(function(t,n){e(t.exports,"default",(function(){return s}));var r=o("jIXgU"),i=o("2fV2j"),a=o("j15ws"),s=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||i.noop,this.ondestroy=t.ondestroy||i.noop,this.onrestart=t.onrestart||i.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,i.isFunction)(t)?t:r.default[t]||(0,a.createCubicEasingFunc)(t)},t}()})),o.register("jIXgU",(function(t,n){e(t.exports,"default",(function(){return i}));var r={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;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.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*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}},i=r})),o.register("j15ws",(function(t,n){e(t.exports,"createCubicEasingFunc",(function(){return s}));var r=o("d7uFa"),i=o("2fV2j"),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function s(t){var e=t&&a.exec(t);if(e){var n=e[1].split(","),o=+(0,i.trim)(n[0]),s=+(0,i.trim)(n[1]),l=+(0,i.trim)(n[2]),u=+(0,i.trim)(n[3]);if(isNaN(o+s+l+u))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,r.cubicRootAt)(0,o,l,1,t,c)&&(0,r.cubicAt)(0,s,u,1,c[0])}}}})),o.register("d7uFa",(function(t,n){e(t.exports,"cubicAt",(function(){return y})),e(t.exports,"cubicDerivativeAt",(function(){return m})),e(t.exports,"cubicRootAt",(function(){return v})),e(t.exports,"cubicExtrema",(function(){return x})),e(t.exports,"cubicSubdivide",(function(){return _})),e(t.exports,"cubicProjectPoint",(function(){return b})),e(t.exports,"cubicLength",(function(){return S})),e(t.exports,"quadraticAt",(function(){return w})),e(t.exports,"quadraticDerivativeAt",(function(){return M})),e(t.exports,"quadraticRootAt",(function(){return I})),e(t.exports,"quadraticExtremum",(function(){return T})),e(t.exports,"quadraticSubdivide",(function(){return A})),e(t.exports,"quadraticProjectPoint",(function(){return C})),e(t.exports,"quadraticLength",(function(){return D}));var r=o("lDRrb"),i=Math.pow,a=Math.sqrt,s=1e-8,l=1e-4,u=a(3),c=1/3,h=(0,r.create)(),p=(0,r.create)(),d=(0,r.create)();function f(t){return t>-1e-8&&t<s}function g(t){return t>s||t<-1e-8}function y(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 m(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function v(t,e,n,r,o,s){var l=r+3*(e-n)-t,h=3*(n-2*e+t),p=3*(e-t),d=t-o,g=h*h-3*l*p,y=h*p-9*l*d,m=p*p-3*h*d,v=0;if(f(g)&&f(y))f(h)?s[0]=0:(D=-p/h)>=0&&D<=1&&(s[v++]=D);else{var x=y*y-4*g*m;if(f(x)){var _=y/g,b=-_/2;(D=-h/l+_)>=0&&D<=1&&(s[v++]=D),b>=0&&b<=1&&(s[v++]=b)}else if(x>0){var S=a(x),w=g*h+1.5*l*(-y+S),M=g*h+1.5*l*(-y-S);(D=(-h-((w=w<0?-i(-w,c):i(w,c))+(M=M<0?-i(-M,c):i(M,c))))/(3*l))>=0&&D<=1&&(s[v++]=D)}else{var I=(2*g*h-3*l*y)/(2*a(g*g*g)),T=Math.acos(I)/3,A=a(g),C=Math.cos(T),D=(-h-2*A*C)/(3*l),k=(b=(-h+A*(C+u*Math.sin(T)))/(3*l),(-h+A*(C-u*Math.sin(T)))/(3*l));D>=0&&D<=1&&(s[v++]=D),b>=0&&b<=1&&(s[v++]=b),k>=0&&k<=1&&(s[v++]=k)}}return v}function x(t,e,n,r,i){var o=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,l=3*e-3*t,u=0;if(f(s))g(o)&&(h=-l/o)>=0&&h<=1&&(i[u++]=h);else{var c=o*o-4*s*l;if(f(c))i[0]=-o/(2*s);else if(c>0){var h,p=a(c),d=(-o-p)/(2*s);(h=(-o+p)/(2*s))>=0&&h<=1&&(i[u++]=h),d>=0&&d<=1&&(i[u++]=d)}}return u}function _(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 b(t,e,n,i,o,s,u,c,f,g,m){var v,x,_,b,S,w=.005,M=1/0;h[0]=f,h[1]=g;for(var I=0;I<1;I+=.05)p[0]=y(t,n,o,u,I),p[1]=y(e,i,s,c,I),(b=(0,r.distSquare)(h,p))<M&&(v=I,M=b);M=1/0;for(var T=0;T<32&&!(w<l);T++)x=v-w,_=v+w,p[0]=y(t,n,o,u,x),p[1]=y(e,i,s,c,x),b=(0,r.distSquare)(p,h),x>=0&&b<M?(v=x,M=b):(d[0]=y(t,n,o,u,_),d[1]=y(e,i,s,c,_),S=(0,r.distSquare)(d,h),_<=1&&S<M?(v=_,M=S):w*=.5);return m&&(m[0]=y(t,n,o,u,v),m[1]=y(e,i,s,c,v)),a(M)}function S(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=y(t,n,i,a,f),m=y(e,r,o,s,f),v=g-u,x=m-c;h+=Math.sqrt(v*v+x*x),u=g,c=m}return h}function w(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function M(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function I(t,e,n,r,i){var o=t-2*e+n,s=2*(e-t),l=t-r,u=0;if(f(o))g(s)&&(h=-l/s)>=0&&h<=1&&(i[u++]=h);else{var c=s*s-4*o*l;if(f(c))(h=-s/(2*o))>=0&&h<=1&&(i[u++]=h);else if(c>0){var h,p=a(c),d=(-s-p)/(2*o);(h=(-s+p)/(2*o))>=0&&h<=1&&(i[u++]=h),d>=0&&d<=1&&(i[u++]=d)}}return u}function T(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function A(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 C(t,e,n,i,o,s,u,c,f){var g,y=.005,m=1/0;h[0]=u,h[1]=c;for(var v=0;v<1;v+=.05)p[0]=w(t,n,o,v),p[1]=w(e,i,s,v),(S=(0,r.distSquare)(h,p))<m&&(g=v,m=S);m=1/0;for(var x=0;x<32&&!(y<l);x++){var _=g-y,b=g+y;p[0]=w(t,n,o,_),p[1]=w(e,i,s,_);var S=(0,r.distSquare)(p,h);if(_>=0&&S<m)g=_,m=S;else{d[0]=w(t,n,o,b),d[1]=w(e,i,s,b);var M=(0,r.distSquare)(d,h);b<=1&&M<m?(g=b,m=M):y*=.5}}return f&&(f[0]=w(t,n,o,g),f[1]=w(e,i,s,g)),a(m)}function D(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=w(t,n,i,p),f=w(e,r,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}})),o.register("6s8l4",(function(t,n){e(t.exports,"parse",(function(){return v})),e(t.exports,"lift",(function(){return _})),e(t.exports,"stringify",(function(){return C})),e(t.exports,"toHex",(function(){return b})),e(t.exports,"fastLerp",(function(){return S})),e(t.exports,"fastMapToColor",(function(){return w})),e(t.exports,"lerp",(function(){return M})),e(t.exports,"mapToColor",(function(){return I})),e(t.exports,"modifyHSL",(function(){return T})),e(t.exports,"modifyAlpha",(function(){return A})),e(t.exports,"lum",(function(){return D})),e(t.exports,"random",(function(){return k})),e(t.exports,"liftColor",(function(){return O}));var r=o("4rQdS"),i=o("2fV2j"),a={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 s(t){return(t=Math.round(t))<0?0:t>255?255:t}function l(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100*255):s(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?l(parseFloat(e)/100):l(parseFloat(e))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function p(t,e,n){return t+(e-t)*n}function d(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new(0,r.default)(20),y=null;function m(t,e){y&&f(y,e),y=g.put(t,y||e.slice())}function v(t,e){if(t){e=e||[];var n=g.get(t);if(n)return f(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in a)return f(e,a[r]),m(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?(d(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),m(t,e),e):void d(e,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(d(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1):void 0;var s=r.indexOf("("),l=r.indexOf(")");if(-1!==s&&l+1===o){var h=r.substr(0,s),p=r.substr(s+1,l-(s+1)).split(","),y=1;switch(h){case"rgba":if(4!==p.length)return 3===p.length?d(e,+p[0],+p[1],+p[2],1):d(e,0,0,0,1);y=c(p.pop());case"rgb":return p.length>=3?(d(e,u(p[0]),u(p[1]),u(p[2]),3===p.length?y:c(p[3])),m(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==p.length?void d(e,0,0,0,1):(p[3]=c(p[3]),x(p,e),m(t,e),e);case"hsl":return 3!==p.length?void d(e,0,0,0,1):(x(p,e),m(t,e),e);default:return}}d(e,0,0,0,1)}}function x(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return d(e=e||[],s(255*h(a,o,n+1/3)),s(255*h(a,o,n)),s(255*h(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t,e){var n=v(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 C(n,4===n.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return(16777216+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],u=e[o],c=r-i;return n[0]=s(p(a[0],u[0],c)),n[1]=s(p(a[1],u[1],c)),n[2]=s(p(a[2],u[2],c)),n[3]=l(p(a[3],u[3],c)),n}}var w=S;function M(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=v(e[i]),u=v(e[o]),c=r-i,h=C([s(p(a[0],u[0],c)),s(p(a[1],u[1],c)),s(p(a[2],u[2],c)),l(p(a[3],u[3],c))],"rgba");return n?{color:h,leftIndex:i,rightIndex:o,value:r}:h}}var I=M;function T(t,e,n,r){var i,o=v(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,p=((s-o)/6+l/2)/l;r===s?e=p-h:i===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=c(n)),null!=r&&(o[2]=c(r)),C(x(o),"rgba")}function A(t,e){var n=v(t);if(n&&null!=e)return n[3]=l(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function D(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var L=new(0,r.default)(100);function O(t){if((0,i.isString)(t)){var e=L.get(t);return e||(e=_(t,-.1),L.put(t,e)),e}if((0,i.isGradientObject)(t)){var n=(0,i.extend)({},t);return n.colorStops=(0,i.map)(t.colorStops,(function(t){return{offset:t.offset,color:_(t.color,-.1)}})),n}return t}})),o.register("4rQdS",(function(t,n){e(t.exports,"default",(function(){return o}));var r=function(t){this.value=t},i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()})),o.register("eYVlv",(function(t,n){e(t.exports,"normalizeColor",(function(){return u})),e(t.exports,"isAroundZero",(function(){return h})),e(t.exports,"round4",(function(){return d})),e(t.exports,"getMatrixStr",(function(){return f})),e(t.exports,"TEXT_ALIGN_TO_ANCHOR",(function(){return g})),e(t.exports,"adjustTextY",(function(){return y})),e(t.exports,"hasShadow",(function(){return m})),e(t.exports,"getShadowKey",(function(){return v})),e(t.exports,"isImagePattern",(function(){return x})),e(t.exports,"isPattern",(function(){return _})),e(t.exports,"isLinearGradient",(function(){return b})),e(t.exports,"isRadialGradient",(function(){return S})),e(t.exports,"isGradient",(function(){return w})),e(t.exports,"getIdURL",(function(){return M})),e(t.exports,"getPathPrecision",(function(){return I})),e(t.exports,"getSRTTransformString",(function(){return T})),e(t.exports,"encodeBase64",(function(){return A}));var r=o("2fV2j"),i=o("6s8l4"),a=o("akmdr"),s=o("1D1do").Buffer,l=Math.round;function u(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,i.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var c=1e-4;function h(t){return t<c&&t>-1e-4}function p(t){return l(1e3*t)/1e3}function d(t){return l(1e4*t)/1e4}function f(t){return"matrix("+p(t[0])+","+p(t[1])+","+p(t[2])+","+p(t[3])+","+d(t[4])+","+d(t[5])+")"}var g={left:"start",right:"end",center:"middle",middle:"middle"};function y(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function m(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function x(t){return t&&!!t.image}function _(t){return x(t)||function(t){return t&&!!t.svgElement}(t)}function b(t){return"linear"===t.type}function S(t){return"radial"===t.type}function w(t){return t&&("linear"===t.type||"radial"===t.type)}function M(t){return"url(#"+t+")"}function I(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r.RADIAN_TO_DEGREE,o=(0,r.retrieve2)(t.scaleX,1),a=(0,r.retrieve2)(t.scaleY,1),s=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===a||c.push("scale("+o+","+a+")"),(s||u)&&c.push("skew("+l(s*r.RADIAN_TO_DEGREE)+"deg, "+l(u*r.RADIAN_TO_DEGREE)+"deg)"),c.join(" ")}var A=a.default.hasGlobalWindow&&(0,r.isFunction)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==s?function(t){return s.from(t).toString("base64")}:function(t){return null}})),o.register("4SHDy",(function(t,n){e(t.exports,"default",(function(){return I}));var r,i,a=o("2pli3"),s=o("9Ocvr"),l=o("2fV2j"),u=o("bMEwb"),c=o("akmdr"),h=c.default.domSupported,p=(i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:l.map(r,(function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}))}),d=["mousemove","mouseup"],f=["pointermove","pointerup"],g=!1;function y(t){var e=t.pointerType;return"pen"===e||"touch"===e}function m(t){t&&(t.zrByTouch=!0)}function v(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 x=function(t,e){this.stopPropagation=l.noop,this.stopImmediatePropagation=l.noop,this.preventDefault=l.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},_={mousedown:function(t){t=(0,s.normalizeEvent)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,s.normalizeEvent)(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=(0,s.normalizeEvent)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){v(this,(t=(0,s.normalizeEvent)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){g=!0,t=(0,s.normalizeEvent)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){g||(t=(0,s.normalizeEvent)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){m(t=(0,s.normalizeEvent)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),_.mousemove.call(this,t),_.mousedown.call(this,t)},touchmove:function(t){m(t=(0,s.normalizeEvent)(this.dom,t)),this.handler.processGesture(t,"change"),_.mousemove.call(this,t)},touchend:function(t){m(t=(0,s.normalizeEvent)(this.dom,t)),this.handler.processGesture(t,"end"),_.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&_.click.call(this,t)},pointerdown:function(t){_.mousedown.call(this,t)},pointermove:function(t){y(t)||_.mousemove.call(this,t)},pointerup:function(t){_.mouseup.call(this,t)},pointerout:function(t){y(t)||_.mouseout.call(this,t)}};l.each(["click","dblclick","contextmenu"],(function(t){_[t]=function(e){e=(0,s.normalizeEvent)(this.dom,e),this.trigger(t,e)}}));var b={pointermove:function(t){y(t)||b.mousemove.call(this,t)},pointerup:function(t){b.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 S(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,(0,s.addEventListener)(t.domTarget,e,n,r)}function w(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,s.removeEventListener)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var M=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},I=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 M(e,_),h&&(r._globalHandlerScope=new M(document,b)),function(t,e){var n=e.domHandlers;c.default.pointerEventsSupported?l.each(p.pointer,(function(r){S(e,r,(function(e){n[r].call(t,e)}))})):(c.default.touchEventsSupported&&l.each(p.touch,(function(r){S(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)}))})),l.each(p.mouse,(function(r){S(e,r,(function(i){i=(0,s.getNativeEvent)(i),e.touching||n[r].call(t,i)}))})))}(r,r._localHandlerScope),r}return(0,a.__extends)(e,t),e.prototype.dispose=function(){w(this._localHandlerScope),h&&w(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,h&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){S(e,n,(function(r){r=(0,s.getNativeEvent)(r),v(t,r.target)||(r=function(t,e){return(0,s.normalizeEvent)(t.dom,new x(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}c.default.pointerEventsSupported?l.each(f,n):c.default.touchEventsSupported||l.each(d,n)}(this,e):w(e)}},e}(u.default)})),o.register("2g2Ep",(function(t,n){e(t.exports,"devicePixelRatio",(function(){return i})),e(t.exports,"DARK_MODE_THRESHOLD",(function(){return a})),e(t.exports,"DARK_LABEL_COLOR",(function(){return s})),e(t.exports,"LIGHT_LABEL_COLOR",(function(){return l})),e(t.exports,"LIGHTER_LABEL_COLOR",(function(){return u}));var r=1;o("akmdr").default.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=r,a=.4,s="#333",l="#ccc",u="#eee"})),o.register("4zWIO",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("2pli3"),i=o("2fV2j"),a=o("kJjnV"),s=o("e2ttp"),l=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,r.__extends)(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=i.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=i.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)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(0,s.default)(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 l=a.getBoundingRect(),u=a.getLocalTransform(r);u?(s.default.applyTransform(e,l,u),(i=i||e.clone()).union(e)):(i=i||l.clone()).union(l)}}return i||e},e}(a.default);l.prototype.type="group";var u=l})),o.register("kJjnV",(function(t,n){e(t.exports,"default",(function(){return w}));var r=o("bCcJ1"),i=o("jzMlC"),a=o("e2ttp"),s=o("bMEwb"),l=o("lj5IW"),u=o("2fV2j"),c=o("2g2Ep"),h=o("6s8l4"),p=o("botma"),d="__zr_normal__",f=r.TRANSFORMABLE_PROPS.concat(["ignore"]),g=(0,u.reduce)(r.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=!0,t}),{ignore:!1}),y={},m=new(0,a.default)(0,0,0,0),v=function(){function t(t){this.id=(0,u.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}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 u=!1;if(i.copyTransform(e),null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(y,n,c):(0,l.calculateTextPosition)(y,n,c),i.x=y.x,i.y=y.y,o=y.align,a=y.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,f=void 0;"center"===h?(d=.5*c.width,f=.5*c.height):(d=(0,l.parsePercent)(h[0],c.width),f=(0,l.parsePercent)(h[1],c.height)),u=!0,i.originX=-i.x+d+(r?0:c.x),i.originY=-i.y+f+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var v=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,b=void 0,S=void 0;v&&this.canBeInsideText()?(_=n.insideFill,b=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(_),S=!0)):(_=n.outsideFill,b=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(_),S=!0)),(_=_||"#000")===x.fill&&b===x.stroke&&S===x.autoStroke&&o===x.align&&a===x.verticalAlign||(s=!0,x.fill=_,x.stroke=b,x.autoStroke=S,x.align=o,x.verticalAlign=a,e.setDefaultTextStyle(x)),e.__dirty|=p.REDRAW_BIT,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()?c.LIGHT_LABEL_COLOR:c.DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,u.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,u.isObject)(t))for(var n=t,r=(0,u.keys)(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==d)){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,f)},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(d,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===d;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!((0,u.indexOf)(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=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,l),h&&h.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~p.REDRAW_BIT),s}(0,u.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,e,h),y&&y.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~p.REDRAW_BIT)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,u.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=(0,u.indexOf)(r,t),o=(0,u.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];(0,u.extend)(n,i),i.textConfig&&(e=e||{},(0,u.extend)(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=(0,u.extend)({},r?this.textConfig:n.textConfig),(0,u.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<f.length;c++){var h=f[c],p=i&&g[h];e&&null!=e[h]?p?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(c=0;c<this.animators.length;c++){var d=this.animators[c],y=d.targetName;d.getLoop()||d.__changeFinalValue(y?(e||n)[y]: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(0,r.default),this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,u.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=p.REDRAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this,o=new(0,i.default)(r,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},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=(0,u.indexOf)(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){x(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){x(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=x(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;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(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=p.REDRAW_BIT,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function x(t,e,n,r,i){var o=[];S(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 p=0;p<o.length;p++){var d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function _(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function b(t,e,n){if((0,u.isArrayLike)(e[n]))if((0,u.isArrayLike)(t[n])||(t[n]=[]),(0,u.isTypedArray)(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),_(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(c=i,(0,u.isArrayLike)(c[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?_(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else _(o,i,a);o.length=i.length}else t[n]=e[n];var c}function S(t,e,n,r,o,a,s,l){for(var c=(0,u.keys)(r),h=o.duration,p=o.delay,d=o.additive,f=o.setToFinal,g=!(0,u.isObject)(a),y=t.animators,m=[],v=0;v<c.length;v++){var x=c[v],_=r[x];if(null!=_&&null!=n[x]&&(g||a[x]))if(!(0,u.isObject)(_)||(0,u.isArrayLike)(_)||(0,u.isGradientObject)(_))m.push(x);else{if(e){l||(n[x]=_,t.updateDuringAnimation(e));continue}S(t,x,n[x],_,o,a&&a[x],s,l)}else l||(n[x]=_,t.updateDuringAnimation(e),m.push(x))}var w=m.length;if(!d&&w)for(var M=0;M<y.length;M++)if((T=y[M]).targetName===e&&T.stopTracks(m)){var I=(0,u.indexOf)(y,T);y.splice(I,1)}if(o.force||(m=(0,u.filter)(m,(function(t){return!((e=r[t])===(i=n[t])||(0,u.isArrayLike)(e)&&(0,u.isArrayLike)(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})),w=m.length),w>0||o.force&&!s.length){var T,A=void 0,C=void 0,D=void 0;if(l)for(C={},f&&(A={}),M=0;M<w;M++)C[x=m[M]]=n[x],f?A[x]=r[x]:n[x]=r[x];else if(f)for(D={},M=0;M<w;M++)D[x=m[M]]=(0,i.cloneValue)(n[x]),b(n,r,x);(T=new(0,i.default)(n,!1,!1,d?(0,u.filter)(y,(function(t){return t.targetName===e})):null)).targetName=e,o.scope&&(T.scope=o.scope),f&&A&&T.whenWithKeys(0,A,m),D&&T.whenWithKeys(0,D,m),T.whenWithKeys(null==h?500:h,l?C:r,m).delay(p||0),t.addAnimator(T,e),s.push(T)}}(0,u.mixin)(v,s.default),(0,u.mixin)(v,r.default);var w=v})),o.register("bCcJ1",(function(t,n){e(t.exports,"copyTransform",(function(){return g})),e(t.exports,"TRANSFORMABLE_PROPS",(function(){return f})),e(t.exports,"default",(function(){return y}));var r=o("2QCok"),i=o("lDRrb"),a=r.identity,s=5e-5;function l(t){return t>s||t<-5e-5}var u=[],c=[],h=r.create(),p=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return l(this.rotation)||l(this.x)||l(this.y)||l(this.scaleX-1)||l(this.scaleY-1)||l(this.skewX)||l(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.create(),e?this.getLocalTransform(n):a(n),t&&(e?r.mul(n,t,n):r.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(a(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(u);var n=u[0]<0?-1:1,i=u[1]<0?-1:1,o=((u[0]-n)*e+n)/u[0]||0,a=((u[1]-i)*e+i)/u[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,t)},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||r.create(),r.mul(c,t.invTransform,e),e=c);var n=this.originX,i=this.originY;(n||i)&&(h[4]=n,h[5]=i,r.mul(c,e,h),c[4]-=n,c[5]-=i,e=c),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&&i.applyTransform(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.applyTransform(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&p(t[0]-1)>1e-10&&p(t[3]-1)>1e-10?Math.sqrt(p(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){g(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var f=n+s,g=i+l;e[4]=-f*o-p*g*a,e[5]=-g*a-d*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=p*a,u&&r.rotate(e,e,u),e[4]+=n+c,e[5]+=i+h,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}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function g(t,e){for(var n=0;n<f.length;n++){var r=f[n];t[r]=e[r]}}var y=d})),o.register("lj5IW",(function(t,n){e(t.exports,"getWidth",(function(){return l})),e(t.exports,"getLineHeight",(function(){return d})),e(t.exports,"adjustTextX",(function(){return h})),e(t.exports,"adjustTextY",(function(){return p})),e(t.exports,"getBoundingRect",(function(){return c})),e(t.exports,"parsePercent",(function(){return f})),e(t.exports,"calculateTextPosition",(function(){return g}));var r=o("e2ttp"),i=o("4rQdS"),a=o("iXQJv"),s={};function l(t,e){e=e||a.DEFAULT_FONT;var n=s[e];n||(n=s[e]=new(0,i.default)(500));var r=n.get(t);return null==r&&(r=a.platformApi.measureText(t,e).width,n.put(t,r)),r}function u(t,e,n,i){var o=l(t,e),a=d(e),s=h(0,o,n),u=p(0,a,i);return new(0,r.default)(s,u,o,a)}function c(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return u(o[0],e,n,i);for(var a=new(0,r.default)(0,0,0,0),s=0;s<o.length;s++){var l=u(o[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function h(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function p(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function d(t){return l("国",t)}function f(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function g(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+=f(r[0],n.width),u+=f(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}})),o.register("7OdSb",(function(t,n){e(t.exports,"default",(function(){return _}));var r,i,a,s=o("2pli3"),l=o("2fV2j"),u=o("jnApb"),c=o("1C7zE"),h=o("krEnk"),p=o("5JeI8"),d=o("6ahuT"),f=o("epWMF"),g=o("4mdeT");o("3ds5n");var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,s.__extends)(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new(0,c.default)(r),this._locale=new(0,c.default)(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=x(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,x(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):a(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 s=r.getMediaOption(this);s.length&&(0,l.each)(s,(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,i=this._componentsMap,o=this._componentsCount,a=[],s=(0,l.createHashMap)(),c=e&&e.replaceMergeMainTypeMap;(0,d.resetSourceDefaulter)(this),(0,l.each)(t,(function(t,e){null!=t&&(h.default.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,l.clone)(t):(0,l.merge)(n[e],t,!0))})),c&&c.each((function(t,e){h.default.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),h.default.topologicalTravel(a,h.default.getAllClassMainTypes(),(function(e){var a=(0,f.concatInternalOptions)(this,e,u.normalizeToArray(t[e])),s=i.get(e),p=s?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",d=u.mappingToExists(s,a,p);u.setComponentTypeToKeyInfo(d,e,h.default),n[e]=null,i.set(e,null),o.set(e,0);var g,y=[],m=[],v=0;(0,l.each)(d,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=h.default.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(g)return;g=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=(0,l.extend)({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),(0,l.extend)(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(y.push(r.option),m.push(r),v++):(y.push(void 0),m.push(void 0))}),this),n[e]=y,i.set(e,m),o.set(e,v),"series"===e&&r(this)}),this),this._seriesIndices||r(this)},e.prototype.getOption=function(){var t=(0,l.clone)(this.option);return(0,l.each)(t,(function(e,n){if(h.default.hasClass(n)){for(var r=u.normalizeToArray(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!u.isComponentIdInternal(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],(0,l.each)(u.normalizeToArray(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?m("id",i,a):null!=o?m("name",o,a):(0,l.filter)(a,(function(t){return!!t})),v(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,u=(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]}),c=u?this.queryComponents(u):(0,l.filter)(this._componentsMap.get(s),(function(t){return!!t}));return o=v(c,t),t.filter?(0,l.filter)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if((0,l.isFunction)(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=(0,l.isString)(t)?r.get(t):(0,l.isObject)(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var u=a[s];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u.convertOptionIdName(t,null);return(0,l.filter)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return(0,l.filter)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return(0,l.filter)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){i(this),(0,l.each)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){(0,l.each)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){i(this),(0,l.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,l.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return i(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){i(this);var n=[];(0,l.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,l.createHashMap)(n)},e.prototype.restoreData=function(t){r(this);var e=this._componentsMap,n=[];e.each((function(t,e){h.default.hasClass(e)&&n.push(e)})),h.default.topologicalTravel(n,h.default.getAllClassMainTypes(),(function(n){(0,l.each)(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=(r=function(t){var e=t._seriesIndices=[];(0,l.each)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=(0,l.createHashMap)(e)},i=function(t){},void(a=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=(0,l.createHashMap)({series:[]}),t._componentsCount=(0,l.createHashMap)();var n,r,i,o=e.aria;(0,l.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,(0,l.each)(r,(function(t,e){"colorLayer"===e&&i||h.default.hasClass(e)||("object"==typeof t?n[e]=n[e]?(0,l.merge)(n[e],t,!1):(0,l.clone)(t):null==n[e]&&(n[e]=t))})),(0,l.merge)(e,p.default,!1),t._mergeOption(e,null)})),e}(c.default);function m(t,e,n){if((0,l.isArray)(e)){var r=(0,l.createHashMap)();return(0,l.each)(e,(function(t){null!=t&&null!=u.convertOptionIdName(t,null)&&r.set(t,!0)})),(0,l.filter)(n,(function(e){return e&&r.get(e[t])}))}var i=u.convertOptionIdName(e,null);return(0,l.filter)(n,(function(e){return e&&null!=i&&e[t]===i}))}function v(t,e){return e.hasOwnProperty("subType")?(0,l.filter)(t,(function(t){return t&&t.subType===e.subType})):t}function x(t){var e=(0,l.createHashMap)();return t&&(0,l.each)(u.normalizeToArray(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}(0,l.mixin)(y,g.PaletteMixin);var _=y})),o.register("jnApb",(function(t,n){e(t.exports,"normalizeToArray",(function(){return c})),e(t.exports,"defaultEmphasis",(function(){return h})),e(t.exports,"TEXT_STYLE_OPTIONS",(function(){return p})),e(t.exports,"getDataItemValue",(function(){return d})),e(t.exports,"isDataItemOption",(function(){return f})),e(t.exports,"mappingToExists",(function(){return g})),e(t.exports,"isComponentIdInternal",(function(){return _})),e(t.exports,"convertOptionIdName",(function(){return v})),e(t.exports,"isNameSpecified",(function(){return x})),e(t.exports,"makeInternalComponentId",(function(){return b})),e(t.exports,"setComponentTypeToKeyInfo",(function(){return S})),e(t.exports,"compressBatches",(function(){return w})),e(t.exports,"queryDataIndex",(function(){return M})),e(t.exports,"makeInner",(function(){return I})),e(t.exports,"parseFinder",(function(){return A})),e(t.exports,"preParseFinder",(function(){return C})),e(t.exports,"queryReferringComponents",(function(){return L})),e(t.exports,"SINGLE_REFERRING",(function(){return D})),e(t.exports,"MULTIPLE_REFERRING",(function(){return k})),e(t.exports,"setAttribute",(function(){return O})),e(t.exports,"getAttribute",(function(){return P})),e(t.exports,"getTooltipRenderMode",(function(){return E})),e(t.exports,"groupData",(function(){return R})),e(t.exports,"interpolateRawValues",(function(){return N}));var r=o("2fV2j"),i=o("akmdr"),a=o("iIXbb");function s(t,e,n){return(e-t)*n+t}var l="series\0",u="\0_ec_\0";function c(t){return t instanceof Array?t:null==t?[]:[t]}function h(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 p=["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 d(t){return!(0,r.isObject)(t)||(0,r.isArray)(t)||t instanceof Date?t:t.value}function f(t){return(0,r.isObject)(t)&&!(t instanceof Array)}function g(t,e,n){var i="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var s=(0,r.createHashMap)();(0,r.each)(e,(function(t,n){(0,r.isObject)(t)||(e[n]=null)}));var u,c,h=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||_(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,s,n);return(i||o)&&function(t,e,n,i){(0,r.each)(i,(function(o,a){if(o&&null!=o.id){var s=m(o.id),l=n.get(s);if(null!=l){var u=t[l];(0,r.assert)(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=e[l],i[a]=null}}}))}(h,t,s,e),i&&function(t,e){(0,r.each)(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!_(n)&&!_(o)&&y("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(h,e),i||o?function(t,e,n){(0,r.each)(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||_(r.existing)||r.existing&&null!=e.id&&!y("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(h,e,o):a&&function(t,e){(0,r.each)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(h,e),u=h,c=(0,r.createHashMap)(),(0,r.each)(u,(function(t){var e=t.existing;e&&c.set(e.id,t)})),(0,r.each)(u,(function(t){var e=t.newOption;(0,r.assert)(!e||null==e.id||!c.get(e.id)||c.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&c.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),(0,r.each)(u,(function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if((0,r.isObject)(i)){if(o.name=null!=i.name?m(i.name):n?n.name:l+e,n)o.id=m(n.id);else if(null!=i.id)o.id=m(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(c.get(o.id))}c.set(o.id,t)}})),h}function y(t,e,n){var r=v(e[t],null),i=v(n[t],null);return null!=r&&null!=i&&r===i}function m(t){return v(t,"")}function v(t,e){return null==t?e:(0,r.isString)(t)?t:(0,r.isNumber)(t)||(0,r.isStringSafe)(t)?t+"":e}function x(t){var e=t.name;return!(!e||!e.indexOf(l))}function _(t){return t&&null!=t.id&&0===m(t.id).indexOf(u)}function b(t){return u+t}function S(t,e,n){(0,r.each)(t,(function(t){var i=t.newOption;(0,r.isObject)(i)&&(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,i,t.existing,n))}))}function w(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=v(t[r].seriesId,null);if(null==o)return;for(var a=c(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function M(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,r.isArray)(e.dataIndex)?(0,r.map)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,r.isArray)(e.name)?(0,r.map)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function I(){var t="__ec_inner_"+T++;return function(e){return e[t]||(e[t]={})}}var T=(0,a.getRandomIdBase)();function A(t,e,n){var r=C(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=L(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 C(t,e){var n;if((0,r.isString)(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var o=(0,r.createHashMap)(),a={},s=!1;return(0,r.each)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=i[1],u=(i[2]||"").toLowerCase();!l||!u||e&&e.includeMainTypes&&(0,r.indexOf)(e.includeMainTypes,l)<0||(s=s||!!l,(o.get(l)||o.set(l,{}))[u]=t)}else a[n]=t})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var D={useDefault:!0,enableAll:!1,enableNone:!1},k={useDefault:!1,enableAll:!0,enableNone:!0};function L(t,e,n,i){i=i||D;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===o||!1===o?((0,r.assert)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,r.assert)(i.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),l)}function O(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function P(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function E(t){return"auto"===t?i.default.domSupported?"html":"richText":t||"html"}function R(t,e){var n=(0,r.createHashMap)(),i=[];return(0,r.each)(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function N(t,e,n,i,o){var l=null==e||"auto"===e;if(null==i)return i;if((0,r.isNumber)(i)){var u=s(n||0,i,o);return(0,a.round)(u,l?Math.max((0,a.getPrecision)(n||0),(0,a.getPrecision)(i)):e)}if((0,r.isString)(i))return o<1?n:i;for(var c=[],h=n,p=i,d=Math.max(h?h.length:0,p.length),f=0;f<d;++f){var g=t.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(o<1&&h?h:p)[f];else{var y=h&&h[f]?h[f]:0,m=p[f];u=s(y,m,o),c[f]=(0,a.round)(u,l?Math.max((0,a.getPrecision)(y),(0,a.getPrecision)(m)):e)}}return c}})),o.register("iIXbb",(function(t,n){e(t.exports,"linearMap",(function(){return a})),e(t.exports,"parsePercent",(function(){return s})),e(t.exports,"round",(function(){return l})),e(t.exports,"asc",(function(){return u})),e(t.exports,"getPrecision",(function(){return c})),e(t.exports,"getPrecisionSafe",(function(){return h})),e(t.exports,"getPixelPrecision",(function(){return p})),e(t.exports,"getPercentWithPrecision",(function(){return d})),e(t.exports,"getPercentSeats",(function(){return f})),e(t.exports,"addSafe",(function(){return g})),e(t.exports,"MAX_SAFE_INTEGER",(function(){return y})),e(t.exports,"remRadian",(function(){return m})),e(t.exports,"isRadianAroundZero",(function(){return v})),e(t.exports,"parseDate",(function(){return _})),e(t.exports,"quantity",(function(){return b})),e(t.exports,"quantityExponent",(function(){return S})),e(t.exports,"nice",(function(){return w})),e(t.exports,"quantile",(function(){return M})),e(t.exports,"reformIntervals",(function(){return I})),e(t.exports,"numericToNumber",(function(){return T})),e(t.exports,"isNumeric",(function(){return A})),e(t.exports,"getRandomIdBase",(function(){return C})),e(t.exports,"getLeastCommonMultiple",(function(){return k}));var r=o("2fV2j"),i=1e-4;function a(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return r.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function u(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return h(t)}function h(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function p(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function d(t,e,n){return t[e]&&f(t,n)[e]||0}function f(t,e){var n=r.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),o=r.map(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),a=100*i,s=r.map(o,(function(t){return Math.floor(t)})),l=r.reduce(s,(function(t,e){return t+e}),0),u=r.map(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,d=u.length;p<d;++p)u[p]>c&&(c=u[p],h=p);++s[h],u[h]=0,++l}return r.map(s,(function(t){return t/i}))}function g(t,e){var n=Math.max(c(t),c(e)),r=t+e;return n>20?r:l(r,n)}var y=9007199254740991;function m(t){var e=2*Math.PI;return(t%e+e)%e}function v(t){return t>-1e-4&&t<i}var x=/^(?:(\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 _(t){if(t instanceof Date)return t;if(r.isString(t)){var e=x.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function b(t){return Math.pow(10,S(t))}function S(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function w(t,e){var n=S(t),r=Math.pow(10,n),i=t/r;return t=(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>=-20?+t.toFixed(n<0?-n:0):t}function M(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function I(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function T(t){var e=parseFloat(t);return e==t&&(0!==e||!r.isString(t)||t.indexOf("x")<=0)?e:NaN}function A(t){return!isNaN(T(t))}function C(){return Math.round(9*Math.random())}function D(t,e){return 0===e?t:D(e,t%e)}function k(t,e){return null==t?e:null==e?t:t*e/D(t,e)}})),o.register("1C7zE",(function(t,n){e(t.exports,"default",(function(){return p}));var r=o("akmdr"),i=o("fyXJH"),a=o("faiEh"),s=o("44X8J"),l=o("4RHu7"),u=o("5gH42"),c=o("2fV2j"),h=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){(0,c.merge)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;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)((0,c.clone)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!r.default.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}();(0,i.enableClassExtend)(h),(0,i.enableClassCheck)(h),(0,c.mixin)(h,l.LineStyleMixin),(0,c.mixin)(h,u.ItemStyleMixin),(0,c.mixin)(h,a.AreaStyleMixin),(0,c.mixin)(h,s.default);var p=h})),o.register("fyXJH",(function(t,n){e(t.exports,"parseClassType",(function(){return s})),e(t.exports,"isExtendedClass",(function(){return l})),e(t.exports,"enableClassExtend",(function(){return u})),e(t.exports,"mountExtend",(function(){return c})),e(t.exports,"enableClassCheck",(function(){return p})),e(t.exports,"enableClassManagement",(function(){return g}));var r=o("2pli3"),i=o("2fV2j"),a="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function l(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,i.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},i.inherits(e,this)),i.extend(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=d,e.superApply=f,e.superClass=o,e}}function c(t,e){t.extend=e.extend}var h=Math.round(10*Math.random());function p(t){var e=["__\0is_clz",h++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(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 f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function g(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){n=r,i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=r;var o=s(r);if(o.sub){if(o.sub!==a){var l=function(t){var n=e[t.main];return n&&n.___EC__COMPONENT__CONTAINER___||((n=e[t.main]={}).___EC__COMPONENT__CONTAINER___=!0),n}(o);l[o.sub]=t}}else e[o.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i.___EC__COMPONENT__CONTAINER___&&(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=s(t),r=[],o=e[n.main];return o&&o.___EC__COMPONENT__CONTAINER___?i.each(o,(function(t,e){e!==a&&r.push(t)})):r.push(o),r},t.hasClass=function(t){var n=s(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=s(t),r=e[n.main];return r&&r.___EC__COMPONENT__CONTAINER___}}})),o.register("faiEh",(function(t,n){e(t.exports,"AreaStyleMixin",(function(){return i}));var r=(0,o("fpBSa").default)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),i=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return r(this,t,e)},t}()})),o.register("fpBSa",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("2fV2j");function i(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&r.indexOf(i,l)>=0||o&&r.indexOf(o,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}})),o.register("44X8J",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("5xWWJ"),i=o("kjDai"),a=["textStyle","color"],s=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],l=new(0,i.default),u=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},t.prototype.getFont=function(){return(0,r.getFont)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<s.length;n++)e[s[n]]=this.getShallow(s[n]);return l.useStyle(e),l.update(),l.getBoundingRect()},t}()})),o.register("5xWWJ",(function(t,n){e(t.exports,"setLabelStyle",(function(){return p})),e(t.exports,"createTextStyle",(function(){return f})),e(t.exports,"createTextConfig",(function(){return g})),e(t.exports,"labelInner",(function(){return b})),e(t.exports,"getLabelStatesModels",(function(){return d})),e(t.exports,"getFont",(function(){return _})),e(t.exports,"setLabelValueAnimation",(function(){return S})),e(t.exports,"animateLabelValue",(function(){return w}));var r=o("kjDai"),i=o("2fV2j"),a=o("6EdQu"),s=o("jnApb"),l=o("4NPqX");o("4x6s5"),l=o("4NPqX");var u={};function c(t,e){for(var n=0;n<a.SPECIAL_STATES.length;n++){var r=a.SPECIAL_STATES[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function h(t,e,n){var r,o=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;o&&(r=o.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=(0,i.isFunction)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:r},h=0;h<a.SPECIAL_STATES.length;h++){var p=a.SPECIAL_STATES[h],d=e[p];c[p]=(0,i.retrieve2)(o?o.getFormattedLabel(s,p,null,l,d&&d.get("formatter")):null,r)}return c}function p(t,e,n,o){n=n||u;for(var s=t instanceof r.default,l=!1,p=0;p<a.DISPLAY_STATES.length;p++)if((_=e[a.DISPLAY_STATES[p]])&&_.getShallow("show")){l=!0;break}var d=s?t:t.getTextContent();if(l){s||(d||(d=new(0,r.default),t.setTextContent(d)),t.stateProxy&&(d.stateProxy=t.stateProxy));var y=h(n,e),m=e.normal,v=!!m.getShallow("show"),x=f(m,o&&o.normal,n,!1,!s);for(x.text=y.normal,s||t.setTextConfig(g(m,n,!1)),p=0;p<a.SPECIAL_STATES.length;p++){var _,S=a.SPECIAL_STATES[p];if(_=e[S]){var w=d.ensureState(S),M=!!(0,i.retrieve2)(_.getShallow("show"),v);M!==v&&(w.ignore=!M),w.style=f(_,o&&o[S],n,!0,!s),w.style.text=y[S],s||(t.ensureState(S).textConfig=g(_,n,!0))}}d.silent=!!m.getShallow("silent"),null!=d.style.x&&(x.x=d.style.x),null!=d.style.y&&(x.y=d.style.y),d.ignore=!v,d.useStyle(x),d.dirty(),n.enableTextSetter&&(b(d).setLabelText=function(t){var r=h(n,e,t);c(d,r)})}else d&&(d.ignore=!0);t.dirty()}function d(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<a.SPECIAL_STATES.length;r++){var i=a.SPECIAL_STATES[r];n[i]=t.getModel([i,e])}return n}function f(t,e,n,r,o){var a={};return function(t,e,n,r,o){n=n||u;var a,s=e.ecModel,l=s&&s.option.textStyle,c=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||u).rich;if(n){e=e||{};for(var r=(0,i.keys)(n),o=0;o<r.length;o++)e[r[o]]=1}t=t.parentModel}return e}(e);if(c)for(var h in a={},c)if(c.hasOwnProperty(h)){var p=e.getModel(["rich",h]);x(a[h]={},p,l,n,r,o,!1,!0)}a&&(t.rich=a);var d=e.get("overflow");d&&(t.overflow=d);var f=e.get("minMargin");null!=f&&(t.margin=f),x(t,e,l,n,r,o,!0,!1)}(a,t,n,r,o),e&&(0,i.extend)(a,e),a}function g(t,e,n){e=e||{};var r,o={},a=t.getShallow("rotate"),s=(0,i.retrieve2)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}var y=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function x(t,e,n,r,o,a,s,l){n=!o&&n||u;var c=r&&r.inheritColor,h=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=(0,i.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==p&&"auto"!==p||(p=c||null),a||(h=h||n.color,p=p||n.textBorderColor),null!=h&&(t.fill=h),null!=p&&(t.stroke=p);var f=(0,i.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=(0,i.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var x=(0,i.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=x&&(t.lineDashOffset=x),o||null!=d||l||(d=r&&r.defaultOpacity),null!=d&&(t.opacity=d),o||a||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var _=0;_<y.length;_++){var b=y[_];null!=(w=(0,i.retrieve2)(e.getShallow(b),n[b]))&&(t[b]=w)}for(_=0;_<m.length;_++)b=m[_],null!=(w=e.getShallow(b))&&(t[b]=w);if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!s||!r.disableBox){for(_=0;_<v.length;_++){var w;b=v[_],null!=(w=e.getShallow(b))&&(t[b]=w)}var M=e.getShallow("borderType");null!=M&&(t.borderDash=M),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,i.trim)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var b=(0,s.makeInner)();function S(t,e,n,r){if(t){var i=b(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)}}function w(t,e,n,r,o){var a=b(t);if(a.valueAnimation&&a.prevValue!==a.value){var u=a.defaultInterpolatedText,p=(0,i.retrieve2)(a.interpolatedValue,a.prevValue),d=a.value;t.percent=0,(null==a.prevValue?l.initProps:l.updateProps)(t,{percent:1},r,e,null,(function(r){var i=(0,s.interpolateRawValues)(n,a.precision,p,d,r);a.interpolatedValue=1===r?null:i;var l=h({labelDataIndex:e,labelFetcher:o,defaultText:u?u(i):i+""},a.statesModels,i);c(t,l)}))}}})),o.register("kjDai",(function(t,n){e(t.exports,"hasSeparateFont",(function(){return S})),e(t.exports,"parseFontSize",(function(){return _})),e(t.exports,"default",(function(){return D}));var r=o("2pli3"),i=o("3yrYX"),a=o("dF0cA"),s=o("2fV2j"),l=o("lj5IW"),u=o("b1qY0"),c=o("4m2Ab"),h=o("e2ttp"),p=o("32n5A"),d=o("iXQJv"),f={fill:"#000"},g={style:(0,s.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},p.DEFAULT_COMMON_ANIMATION_PROPS.style)},y=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(e),n}return(0,r.__extends)(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,w(t=this.style),(0,s.each)(t.rich,w),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(0,h.default)(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||f},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return(0,s.extend)(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=(0,s.keys)(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},(0,s.extend)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return g},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||d.DEFAULT_FONT,n=t.padding,r=A(t),o=(0,i.parsePlainText)(r,t),s=C(t),u=!!t.backgroundColor,c=o.outerHeight,p=o.outerWidth,f=o.contentWidth,g=o.lines,y=o.lineHeight,m=this._defaultStyle,v=t.x||0,x=t.y||0,_=t.align||m.align||"left",S=t.verticalAlign||m.verticalAlign||"top",w=v,D=(0,l.adjustTextY)(x,o.contentHeight,S);if(s||n){var k=(0,l.adjustTextX)(v,p,_),L=(0,l.adjustTextY)(x,c,S);s&&this._renderBackground(t,t,k,L,p,c)}D+=y/2,n&&(w=T(v,_,n),"top"===S?D+=n[0]:"bottom"===S&&(D-=n[2]));for(var O=0,P=!1,E=(I("fill"in t?t.fill:(P=!0,m.fill))),R=(M("stroke"in t?t.stroke:u||m.autoStroke&&!P?null:(O=2,m.stroke))),N=t.textShadowBlur>0,V=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),z=o.calculatedLineHeight,B=0;B<g.length;B++){var F=this._getOrCreateChild(a.default),G=F.createStyle();F.useStyle(G),G.text=g[B],G.x=w,G.y=D,_&&(G.textAlign=_),G.textBaseline="middle",G.opacity=t.opacity,G.strokeFirst=!0,N&&(G.shadowBlur=t.textShadowBlur||0,G.shadowColor=t.textShadowColor||"transparent",G.shadowOffsetX=t.textShadowOffsetX||0,G.shadowOffsetY=t.textShadowOffsetY||0),G.stroke=R,G.fill=E,R&&(G.lineWidth=t.lineWidth||O,G.lineDash=t.lineDash,G.lineDashOffset=t.lineDashOffset||0),G.font=e,b(G,t),D+=y,V&&F.setBoundingRect(new(0,h.default)((0,l.adjustTextX)(G.x,t.width,G.textAlign),(0,l.adjustTextY)(G.y,z,G.textBaseline),f,z))}},e.prototype._updateRichTexts=function(){var t=this.style,e=A(t),n=(0,i.parseRichText)(e,t),r=n.width,o=n.outerWidth,a=n.outerHeight,s=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,p=t.align||h.align,d=t.verticalAlign||h.verticalAlign,f=(0,l.adjustTextX)(u,o,p),g=(0,l.adjustTextY)(c,a,d),y=f,m=g;s&&(y+=s[3],m+=s[0]);var v=y+r;C(t)&&this._renderBackground(t,t,f,g,o,a);for(var x=!!t.backgroundColor,_=0;_<n.lines.length;_++){for(var b=n.lines[_],S=b.tokens,w=S.length,M=b.lineHeight,I=b.width,T=0,D=y,k=v,L=w-1,O=void 0;T<w&&(!(O=S[T]).align||"left"===O.align);)this._placeToken(O,t,M,m,D,"left",x),I-=O.width,D+=O.width,T++;for(;L>=0&&"right"===(O=S[L]).align;)this._placeToken(O,t,M,m,k,"right",x),I-=O.width,k-=O.width,L--;for(D+=(r-(D-y)-(v-k)-I)/2;T<=L;)O=S[T],this._placeToken(O,t,M,m,D+O.width/2,"center",x),D+=O.width,T++;m+=M}},e.prototype._placeToken=function(t,e,n,r,i,o,u){var c=e.rich[t.styleName]||{};c.text=t.text;var p=t.verticalAlign,f=r+n/2;"top"===p?f=r+t.height/2:"bottom"===p&&(f=r+n-t.height/2),!t.isLineHolder&&C(c)&&this._renderBackground(c,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,y=t.textPadding;y&&(i=T(i,o,y),f-=t.height/2-y[0]-t.innerHeight/2);var m=this._getOrCreateChild(a.default),v=m.createStyle();m.useStyle(v);var x=this._defaultStyle,_=!1,S=0,w=I("fill"in c?c.fill:"fill"in e?e.fill:(_=!0,x.fill)),A=M("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||x.autoStroke&&!_?null:(S=2,x.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;v.text=t.text,v.x=i,v.y=f,D&&(v.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,v.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",v.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,v.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),v.textAlign=o,v.textBaseline="middle",v.font=t.font||d.DEFAULT_FONT,v.opacity=(0,s.retrieve3)(c.opacity,e.opacity,1),b(v,c),A&&(v.lineWidth=(0,s.retrieve3)(c.lineWidth,e.lineWidth,S),v.lineDash=(0,s.retrieve2)(c.lineDash,e.lineDash),v.lineDashOffset=e.lineDashOffset||0,v.stroke=A),w&&(v.fill=w);var k=t.contentWidth,L=t.contentHeight;m.setBoundingRect(new(0,h.default)((0,l.adjustTextX)(v.x,k,v.textAlign),(0,l.adjustTextY)(v.y,L,v.textBaseline),k,L))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,l,h,p=t.backgroundColor,d=t.borderWidth,f=t.borderColor,g=p&&p.image,y=p&&!g,m=t.borderRadius,v=this;if(y||t.lineHeight||d&&f){(a=this._getOrCreateChild(c.default)).useStyle(a.createStyle()),a.style.fill=null;var x=a.shape;x.x=n,x.y=r,x.width=i,x.height=o,x.r=m,a.dirtyShape()}if(y)(h=a.style).fill=p||null,h.fillOpacity=(0,s.retrieve2)(t.fillOpacity,1);else if(g){(l=this._getOrCreateChild(u.default)).onload=function(){v.dirtyStyle()};var _=l.style;_.image=p.image,_.x=n,_.y=r,_.width=i,_.height=o}d&&f&&((h=a.style).lineWidth=d,h.stroke=f,h.strokeOpacity=(0,s.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var b=(a||l).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,s.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return S(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,s.trim)(e)||t.textFont||t.font},e}(p.default),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},x=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.DEFAULT_FONT_SIZE+"px":t+"px":t}function b(t,e){for(var n=0;n<x.length;n++){var r=x[n],i=e[r];null!=i&&(t[r]=i)}}function S(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function w(t){if(t){t.font=y.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||m[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||v[n]?n:"top",t.padding&&(t.padding=(0,s.normalizeCssArray)(t.padding))}}function M(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function I(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function T(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function A(t){var e=t.text;return null!=e&&(e+=""),e}function C(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var D=y})),o.register("3yrYX",(function(t,n){e(t.exports,"truncateText",(function(){return l})),e(t.exports,"parsePlainText",(function(){return p})),e(t.exports,"parseRichText",(function(){return y}));var r=o("abrcr"),i=o("2fV2j"),a=o("lj5IW"),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=u(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=c(o[a],i);return o.join("\n")}function u(t,e,n,r){r=r||{};var o=(0,i.extend)({},r);o.font=e,n=(0,i.retrieve2)(n,"..."),o.maxIterations=(0,i.retrieve2)(r.maxIterations,2);var s=o.minChar=(0,i.retrieve2)(r.minChar,0);o.cnCharWidth=(0,a.getWidth)("国",e);var l=o.ascCharWidth=(0,a.getWidth)("a",e);o.placeholder=(0,i.retrieve2)(r.placeholder,"");for(var u=t=Math.max(0,t-1),c=0;c<s&&u>=l;c++)u-=l;var h=(0,a.getWidth)(n,e);return h>u&&(n="",h=0),u=t-h,o.ellipsis=n,o.ellipsisWidth=h,o.contentWidth=u,o.containerWidth=t,o}function c(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=(0,a.getWidth)(t,r);if(o<=n)return t;for(var s=0;;s++){if(o<=i||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?h(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=(0,a.getWidth)(t,r)}return""===t&&(t=e.placeholder),t}function h(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function p(t,e){null!=t&&(t+="");var n,r=e.overflow,o=e.padding,s=e.font,l="truncate"===r,h=(0,a.getLineHeight)(s),p=(0,i.retrieve2)(e.lineHeight,h),d=!!e.backgroundColor,f="truncate"===e.lineOverflow,g=e.width,y=(n=null==g||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?_(t,e.font,g,"breakAll"===r,0).lines:[]).length*p,m=(0,i.retrieve2)(e.height,y);if(y>m&&f){var v=Math.floor(m/p);n=n.slice(0,v)}if(t&&l&&null!=g)for(var x=u(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;b<n.length;b++)n[b]=c(n[b],x);var S=m,w=0;for(b=0;b<n.length;b++)w=Math.max((0,a.getWidth)(n[b],s),w);null==g&&(g=w);var M=w;return o&&(S+=o[0]+o[2],M+=o[1]+o[3],g+=o[1]+o[3]),d&&(M=g),{lines:n,height:m,outerWidth:M,outerHeight:S,lineHeight:p,calculatedLineHeight:h,contentWidth:w,contentHeight:y,width:g}}var d=function(){},f=function(t){this.tokens=[],t&&(this.tokens=t)},g=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function y(t,e){var n=new g;if(null!=t&&(t+=""),!t)return n;for(var o,u=e.width,c=e.height,h=e.overflow,p="break"!==h&&"breakAll"!==h||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===h},d=s.lastIndex=0;null!=(o=s.exec(t));){var f=o.index;f>d&&m(n,t.substring(d,f),e,p),m(n,o[2],e,p,o[1]),d=s.lastIndex}d<t.length&&m(n,t.substring(d,t.length),e,p);var y=[],v=0,x=0,_=e.padding,b="truncate"===h,S="truncate"===e.lineOverflow;function w(t,e,n){t.width=e,t.lineHeight=n,v+=n,x=Math.max(x,e)}t:for(var M=0;M<n.lines.length;M++){for(var I=n.lines[M],T=0,A=0,C=0;C<I.tokens.length;C++){var D=(B=I.tokens[C]).styleName&&e.rich[B.styleName]||{},k=B.textPadding=D.padding,L=k?k[1]+k[3]:0,O=B.font=D.font||e.font;B.contentHeight=(0,a.getLineHeight)(O);var P=(0,i.retrieve2)(D.height,B.contentHeight);if(B.innerHeight=P,k&&(P+=k[0]+k[2]),B.height=P,B.lineHeight=(0,i.retrieve3)(D.lineHeight,e.lineHeight,P),B.align=D&&D.align||e.align,B.verticalAlign=D&&D.verticalAlign||"middle",S&&null!=c&&v+B.lineHeight>c){C>0?(I.tokens=I.tokens.slice(0,C),w(I,A,T),n.lines=n.lines.slice(0,M+1)):n.lines=n.lines.slice(0,M);break t}var E=D.width,R=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))B.percentWidth=E,y.push(B),B.contentWidth=(0,a.getWidth)(B.text,O);else{if(R){var N=D.backgroundColor,V=N&&N.image;V&&(V=r.findExistImage(V),r.isImageReady(V)&&(B.width=Math.max(B.width,V.width*P/V.height)))}var z=b&&null!=u?u-A:null;null!=z&&z<B.width?!R||z<L?(B.text="",B.width=B.contentWidth=0):(B.text=l(B.text,z-L,O,e.ellipsis,{minChar:e.truncateMinChar}),B.width=B.contentWidth=(0,a.getWidth)(B.text,O)):B.contentWidth=(0,a.getWidth)(B.text,O)}B.width+=L,A+=B.width,D&&(T=Math.max(T,B.lineHeight))}w(I,A,T)}for(n.outerWidth=n.width=(0,i.retrieve2)(u,x),n.outerHeight=n.height=(0,i.retrieve2)(c,v),n.contentHeight=v,n.contentWidth=x,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]),M=0;M<y.length;M++){var B,F=(B=y[M]).percentWidth;B.width=parseInt(F,10)/100*n.width}return n}function m(t,e,n,r,i){var o,s,l=""===e,u=i&&n.rich[i]||{},c=t.lines,h=u.font||n.font,p=!1;if(r){var g=u.padding,y=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var m=(0,a.parsePercent)(u.width,r.width)+y;c.length>0&&m+r.accumWidth>r.width&&(o=e.split("\n"),p=!0),r.accumWidth=m}else{var v=_(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+y,s=v.linesWidths,o=v.lines}}else o=e.split("\n");for(var x=0;x<o.length;x++){var b=o[x],S=new d;if(S.styleName=i,S.text=b,S.isLineHolder=!b&&!l,"number"==typeof u.width?S.width=u.width:S.width=s?s[x]:(0,a.getWidth)(b,h),x||p)c.push(new f([S]));else{var w=(c[c.length-1]||(c[0]=new f)).tokens,M=w.length;1===M&&w[0].isLineHolder?w[0]=S:(b||!M||l)&&w.push(S)}}}var v=(0,i.reduce)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function x(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)||!!v[t]}function _(t,e,n,r,i){for(var o=[],s=[],l="",u="",c=0,h=0,p=0;p<t.length;p++){var d=t.charAt(p);if("\n"!==d){var f=(0,a.getWidth)(d,e),g=!r&&!x(d);(o.length?h+f>n:i+h+f>n)?h?(l||u)&&(g?(l||(l=u,u="",h=c=0),o.push(l),s.push(h-c),u+=d,l="",h=c+=f):(u&&(l+=u,u="",c=0),o.push(l),s.push(h),l=d,h=f)):g?(o.push(u),s.push(c),u=d,c=f):(o.push(d),s.push(f)):(h+=f,g?(u+=d,c+=f):(u&&(l+=u,u="",c=0),l+=d))}else u&&(l+=u,h+=c),o.push(l),s.push(h),l="",u="",c=0,h=0}return o.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(o.push(l),s.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:s}}})),o.register("abrcr",(function(t,n){e(t.exports,"findExistImage",(function(){return s})),e(t.exports,"createOrUpdateImage",(function(){return l})),e(t.exports,"isImageReady",(function(){return c}));var r=o("4rQdS"),i=o("iXQJv"),a=new(0,r.default)(50);function s(t){if("string"==typeof t){var e=a.get(t);return e&&e.image}return t}function l(t,e,n,r,o){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=a.get(t),l={hostEl:n,cb:r,cbPayload:o};return s?!c(e=s.image)&&s.pending.push(l):((e=i.platformApi.loadImage(t,u,u)).__zrImageSrc=t,a.put(t,e.__cachedImgObj={image:e,pending:[l]})),e}return t}return e}function u(){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 c(t){return t&&t.width&&t.height}})),o.register("dF0cA",(function(t,n){e(t.exports,"default",(function(){return p}));var r=o("2pli3"),i=o("32n5A"),a=o("lj5IW"),s=o("lv1gH"),l=o("2fV2j"),u=o("iXQJv"),c=(0,l.defaults)({strokeFirst:!0,font:u.DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},s.DEFAULT_PATH_STYLE),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,l.createObject)(c,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,a.getBoundingRect)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.default);h.prototype.type="tspan";var p=h})),o.register("32n5A",(function(t,n){e(t.exports,"DEFAULT_COMMON_STYLE",(function(){return c})),e(t.exports,"DEFAULT_COMMON_ANIMATION_PROPS",(function(){return h})),e(t.exports,"default",(function(){return m}));var r=o("2pli3"),i=o("kJjnV"),a=o("e2ttp"),s=o("2fV2j"),l=o("botma"),u="__zr_style_"+Math.round(10*Math.random()),c={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};c[u]=!0;var p=["z","z2","invisible"],d=["invisible"],f=function(t){function e(e){return t.call(this,e)||this}var n;return(0,r.__extends)(e,t),e.prototype._init=function(e){for(var n=(0,s.keys)(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return g.copy(t.getBoundingRect()),t.transform&&g.applyTransform(t.transform),y.width=e,y.height=n,!g.intersect(y)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)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,s=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new(0,a.default)(0,0,0,0)),e?a.default.applyTransform(t,n,e):t.copy(n),(i||o||s)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(s),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+s-i));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new(0,a.default)(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:(0,s.extend)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=l.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&l.STYLE_CHANGED_BIT)},e.prototype.styleUpdated=function(){this.__dirty&=~l.STYLE_CHANGED_BIT},e.prototype.createStyle=function(t){return(0,s.createObject)(c,t)},e.prototype.useStyle=function(t){t[u]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[u]},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,p)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var l,u=!(n&&i);if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):u&&(l=r.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=(0,s.keys)(c),f=0;f<h.length;f++)(y=h[f])in l&&(l[y]=l[y],this.style[y]=c[y]);var g=(0,s.keys)(l);for(f=0;f<g.length;f++){var y=g[f];this.style[y]=this.style[y]}this._transitionState(e,{style:l},a,this.getAnimationStyleProps())}else this.useStyle(l);var m=this.__inHover?d:p;for(f=0;f<m.length;f++)y=m[f],n&&null!=n[y]?this[y]=n[y]:u&&null!=r[y]&&(this[y]=r[y])},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(0,s.extend)(t,e),t},e.prototype.getAnimationStyleProps=function(){return h},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=l.REDRAW_BIT|l.STYLE_CHANGED_BIT)),e}(i.default),g=new(0,a.default)(0,0,0,0),y=new(0,a.default)(0,0,0,0),m=f})),o.register("lv1gH",(function(t,n){e(t.exports,"DEFAULT_PATH_STYLE",(function(){return d})),e(t.exports,"default",(function(){return y}));var r=o("2pli3"),i=o("32n5A"),a=o("btLRI"),s=o("cajY1"),l=o("2fV2j"),u=o("6s8l4"),c=o("2g2Ep"),h=o("botma"),p=o("bCcJ1"),d=(0,l.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.DEFAULT_COMMON_STYLE),f={style:(0,l.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)},g=p.TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),y=function(t){function e(e){return t.call(this,e)||this}var n;return(0,r.__extends)(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<g.length;++s)i[g[s]]=this[g[s]];i.__dirty|=h.REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=(0,l.keys)(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?(0,l.extend)(this.style,a):this.useStyle(a):"shape"===o?(0,l.extend)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if((0,l.isString)(t)){var e=(0,u.lum)(t,0);return e>.5?c.DARK_LABEL_COLOR:e>.2?c.LIGHTER_LABEL_COLOR:c.LIGHT_LABEL_COLOR}if(t)return c.LIGHT_LABEL_COLOR}return c.DARK_LABEL_COLOR},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,l.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==(0,u.lum)(t,0)<c.DARK_MODE_THRESHOLD)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~h.SHAPE_CHANGED_BIT},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(0,a.default)(!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||this.__dirty&h.SHAPE_CHANGED_BIT)&&(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,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),s.containStroke(o,a/l,t,e)))return!0}if(this.hasFill())return s.contain(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=h.SHAPE_CHANGED_BIT,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:(0,l.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&h.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return(0,l.createObject)(d,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,l.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=(0,l.extend)({},r.shape),(0,l.extend)(s,n.shape)):(s=(0,l.extend)({},i?this.shape:r.shape),(0,l.extend)(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=(0,l.extend)({},this.shape);for(var c={},h=(0,l.keys)(s),p=0;p<h.length;p++){var d=h[p];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(e,{shape:c},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 f},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return(0,r.__extends)(n,e),n.prototype.getDefaultStyle=function(){return(0,l.clone)(t.style)},n.prototype.getDefaultShape=function(){return(0,l.clone)(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=h.REDRAW_BIT|h.STYLE_CHANGED_BIT|h.SHAPE_CHANGED_BIT)),e}(i.default)})),o.register("btLRI",(function(t,n){e(t.exports,"normalizeArcAngles",(function(){return T})),e(t.exports,"default",(function(){return C}));var r=o("lDRrb"),i=o("e2ttp"),a=o("2g2Ep"),s=o("hA1kS"),l=o("d7uFa"),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],p=[],d=[],f=[],g=[],y=Math.min,m=Math.max,v=Math.cos,x=Math.sin,_=Math.abs,b=Math.PI,S=2*b,w="undefined"!=typeof Float32Array,M=[];function I(t){return Math.round(t/b*1e8)/1e8%2*b}function T(t,e){var n=I(t[0]);n<0&&(n+=S);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=S?i=n+S:e&&n-i>=S?i=n-S:!e&&n>i?i=n+(S-I(n-i)):e&&n<i&&(i=n-(S-I(i-n))),t[0]=n,t[1]=i}var A=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=_(n/a.devicePixelRatio/t)||0,this._uy=_(n/a.devicePixelRatio/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(u.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=_(t-this._xi),r=_(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(u.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(u.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(u.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(),M[0]=r,M[1]=i,T(M,o),r=M[0];var a=(i=M[1])-r;return this.addData(u.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=v(i)*n+t,this._yi=x(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(u.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();for(w&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n)),i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,w&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){p[0]=p[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=g[0]=g[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,a=0,l=0;for(t=0;t<this._len;){var c=e[t++],h=1===t;switch(h&&(a=n=e[t],l=o=e[t+1]),c){case u.M:n=a=e[t++],o=l=e[t++],f[0]=a,f[1]=l,g[0]=a,g[1]=l;break;case u.L:(0,s.fromLine)(n,o,e[t],e[t+1],f,g),n=e[t++],o=e[t++];break;case u.C:(0,s.fromCubic)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],f,g),n=e[t++],o=e[t++];break;case u.Q:(0,s.fromQuadratic)(n,o,e[t++],e[t++],e[t],e[t+1],f,g),n=e[t++],o=e[t++];break;case u.A:var y=e[t++],m=e[t++],_=e[t++],b=e[t++],S=e[t++],w=e[t++]+S;t+=1;var M=!e[t++];h&&(a=v(S)*_+y,l=x(S)*b+m),(0,s.fromArc)(y,m,_,b,S,w,M,f,g),n=v(w)*_+y,o=x(w)*b+m;break;case u.R:a=n=e[t++],l=o=e[t++];var I=e[t++],T=e[t++];(0,s.fromLine)(a,l,a+I,l+T,f,g);break;case u.Z:n=a,o=l}r.min(p,p,f),r.max(d,d,g)}return 0===t&&(p[0]=p[1]=d[0]=d[1]=0),new(0,i.default)(p[0],p[1],d[0]-p[0],d[1]-p[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 c=this._pathSegLen,h=0,p=0,d=0;d<e;){var f=t[d++],g=1===d;g&&(a=i=t[d],s=o=t[d+1]);var b=-1;switch(f){case u.M:i=a=t[d++],o=s=t[d++];break;case u.L:var w=t[d++],M=(A=t[d++])-o;(_(V=w-i)>n||_(M)>r||d===e-1)&&(b=Math.sqrt(V*V+M*M),i=w,o=A);break;case u.C:var I=t[d++],T=t[d++],A=(w=t[d++],t[d++]),C=t[d++],D=t[d++];b=(0,l.cubicLength)(i,o,I,T,w,A,C,D,10),i=C,o=D;break;case u.Q:I=t[d++],T=t[d++],w=t[d++],A=t[d++],b=(0,l.quadraticLength)(i,o,I,T,w,A,10),i=w,o=A;break;case u.A:var k=t[d++],L=t[d++],O=t[d++],P=t[d++],E=t[d++],R=t[d++],N=R+E;d+=1,g&&(a=v(E)*O+k,s=x(E)*P+L),b=m(O,P)*y(S,Math.abs(R)),i=v(N)*O+k,o=x(N)*P+L;break;case u.R:a=i=t[d++],s=o=t[d++],b=2*t[d++]+2*t[d++];break;case u.Z:var V=a-i;M=s-o,b=Math.sqrt(V*V+M*M),i=a,o=s}b>=0&&(c[p++]=b,h+=b)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,p,d,f,g,b=this.data,S=this._ux,w=this._uy,M=this._len,I=e<1,T=0,A=0,C=0;if(!I||(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=e*this._pathLen))t:for(var D=0;D<M;){var k=b[D++],L=1===D;switch(L&&(n=i=b[D],r=o=b[D+1]),k!==u.L&&C>0&&(t.lineTo(f,g),C=0),k){case u.M:n=i=b[D++],r=o=b[D++],t.moveTo(i,o);break;case u.L:a=b[D++],s=b[D++];var O=_(a-i),P=_(s-o);if(O>S||P>w){if(I){if(T+(rt=p[A++])>d){var E=(d-T)/rt;t.lineTo(i*(1-E)+a*E,o*(1-E)+s*E);break t}T+=rt}t.lineTo(a,s),i=a,o=s,C=0}else{var R=O*O+P*P;R>C&&(f=a,g=s,C=R)}break;case u.C:var N=b[D++],V=b[D++],z=b[D++],B=b[D++],F=b[D++],G=b[D++];if(I){if(T+(rt=p[A++])>d){E=(d-T)/rt,(0,l.cubicSubdivide)(i,N,z,F,E,c),(0,l.cubicSubdivide)(o,V,B,G,E,h),t.bezierCurveTo(c[1],h[1],c[2],h[2],c[3],h[3]);break t}T+=rt}t.bezierCurveTo(N,V,z,B,F,G),i=F,o=G;break;case u.Q:if(N=b[D++],V=b[D++],z=b[D++],B=b[D++],I){if(T+(rt=p[A++])>d){E=(d-T)/rt,(0,l.quadraticSubdivide)(i,N,z,E,c),(0,l.quadraticSubdivide)(o,V,B,E,h),t.quadraticCurveTo(c[1],h[1],c[2],h[2]);break t}T+=rt}t.quadraticCurveTo(N,V,z,B),i=z,o=B;break;case u.A:var j=b[D++],H=b[D++],W=b[D++],U=b[D++],Y=b[D++],X=b[D++],Z=b[D++],q=!b[D++],K=W>U?W:U,J=_(W-U)>.001,Q=Y+X,$=!1;if(I&&(T+(rt=p[A++])>d&&(Q=Y+X*(d-T)/rt,$=!0),T+=rt),J&&t.ellipse?t.ellipse(j,H,W,U,Z,Y,Q,q):t.arc(j,H,K,Y,Q,q),$)break t;L&&(n=v(Y)*W+j,r=x(Y)*U+H),i=v(Q)*W+j,o=x(Q)*U+H;break;case u.R:n=i=b[D],r=o=b[D+1],a=b[D++],s=b[D++];var tt=b[D++],et=b[D++];if(I){if(T+(rt=p[A++])>d){var nt=d-T;t.moveTo(a,s),t.lineTo(a+y(nt,tt),s),(nt-=tt)>0&&t.lineTo(a+tt,s+y(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),s+et),(nt-=tt)>0&&t.lineTo(a,s+m(et-nt,0));break t}T+=rt}t.rect(a,s,tt,et);break;case u.Z:if(I){var rt;if(T+(rt=p[A++])>d){E=(d-T)/rt,t.lineTo(i*(1-E)+n*E,o*(1-E)+r*E);break t}T+=rt}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}(),C=A})),o.register("hA1kS",(function(t,n){e(t.exports,"fromPoints",(function(){return f})),e(t.exports,"fromLine",(function(){return g})),e(t.exports,"fromCubic",(function(){return v})),e(t.exports,"fromQuadratic",(function(){return x})),e(t.exports,"fromArc",(function(){return _}));var r=o("lDRrb"),i=o("d7uFa"),a=Math.min,s=Math.max,l=Math.sin,u=Math.cos,c=2*Math.PI,h=r.create(),p=r.create(),d=r.create();function f(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],l=r[1],u=r[1],c=1;c<t.length;c++)r=t[c],i=a(i,r[0]),o=s(o,r[0]),l=a(l,r[1]),u=s(u,r[1]);e[0]=i,e[1]=l,n[0]=o,n[1]=u}}function g(t,e,n,r,i,o){i[0]=a(t,n),i[1]=a(e,r),o[0]=s(t,n),o[1]=s(e,r)}var y=[],m=[];function v(t,e,n,r,o,l,u,c,h,p){var d=i.cubicExtrema,f=i.cubicAt,g=d(t,n,o,u,y);h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0;for(var v=0;v<g;v++){var x=f(t,n,o,u,y[v]);h[0]=a(x,h[0]),p[0]=s(x,p[0])}for(g=d(e,r,l,c,m),v=0;v<g;v++){var _=f(e,r,l,c,m[v]);h[1]=a(_,h[1]),p[1]=s(_,p[1])}h[0]=a(t,h[0]),p[0]=s(t,p[0]),h[0]=a(u,h[0]),p[0]=s(u,p[0]),h[1]=a(e,h[1]),p[1]=s(e,p[1]),h[1]=a(c,h[1]),p[1]=s(c,p[1])}function x(t,e,n,r,o,l,u,c){var h=i.quadraticExtremum,p=i.quadraticAt,d=s(a(h(t,n,o),1),0),f=s(a(h(e,r,l),1),0),g=p(t,n,o,d),y=p(e,r,l,f);u[0]=a(t,o,g),u[1]=a(e,l,y),c[0]=s(t,o,g),c[1]=s(e,l,y)}function _(t,e,n,i,o,a,s,f,g){var y=r.min,m=r.max,v=Math.abs(o-a);if(v%c<1e-4&&v>1e-4)return f[0]=t-n,f[1]=e-i,g[0]=t+n,void(g[1]=e+i);if(h[0]=u(o)*n+t,h[1]=l(o)*i+e,p[0]=u(a)*n+t,p[1]=l(a)*i+e,y(f,h,p),m(g,h,p),(o%=c)<0&&(o+=c),(a%=c)<0&&(a+=c),o>a&&!s?a+=c:o<a&&s&&(o+=c),s){var x=a;a=o,o=x}for(var _=0;_<a;_+=Math.PI/2)_>o&&(d[0]=u(_)*n+t,d[1]=l(_)*i+e,y(f,d,f),m(g,d,g))}})),o.register("cajY1",(function(t,n){e(t.exports,"contain",(function(){return x})),e(t.exports,"containStroke",(function(){return _}));var r=o("btLRI"),i=o("iifjm"),a=o("bK60Y"),s=o("gPFlX"),l=o("2IkHY"),u=o("d7uFa"),c=o("kAKGd"),h=r.default.CMD,p=2*Math.PI,d=[-1,-1,-1],f=[-1,-1];function g(t,e,n,r,i,o,a,s,l,c){if(c>e&&c>r&&c>o&&c>s||c<e&&c<r&&c<o&&c<s)return 0;var h,p=u.cubicRootAt(e,r,o,s,c,d);if(0===p)return 0;for(var g=0,y=-1,m=void 0,v=void 0,x=0;x<p;x++){var _=d[x],b=0===_||1===_?.5:1;u.cubicAt(t,n,i,a,_)<l||(y<0&&(y=u.cubicExtrema(e,r,o,s,f),f[1]<f[0]&&y>1&&(void 0,h=f[0],f[0]=f[1],f[1]=h),m=u.cubicAt(e,r,o,s,f[0]),y>1&&(v=u.cubicAt(e,r,o,s,f[1]))),2===y?_<f[0]?g+=m<e?b:-b:_<f[1]?g+=v<m?b:-b:g+=s<v?b:-b:_<f[0]?g+=m<e?b:-b:g+=s<m?b:-b)}return g}function y(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=u.quadraticRootAt(e,r,o,s,d);if(0===l)return 0;var c=u.quadraticExtremum(e,r,o);if(c>=0&&c<=1){for(var h=0,p=u.quadraticAt(e,r,o,c),f=0;f<l;f++){var g=0===d[f]||1===d[f]?.5:1;u.quadraticAt(t,n,i,d[f])<a||(d[f]<c?h+=p<e?g:-g:h+=o<p?g:-g)}return h}return g=0===d[0]||1===d[0]?.5:1,u.quadraticAt(t,n,i,d[0])<a?0:o<e?g:-g}function m(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);d[0]=-l,d[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=p-1e-4){r=0,i=p;var c=o?1:-1;return a>=d[0]+t&&a<=d[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=p,i+=p);for(var f=0,g=0;g<2;g++){var y=d[g];if(y+t>a){var m=Math.atan2(s,y);c=o?1:-1,m<0&&(m=p+m),(m>=r&&m<=i||m+p>=r&&m+p<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),f+=c)}}return f}function v(t,e,n,r,o){for(var u,p,d,f,v=t.data,x=t.len(),_=0,b=0,S=0,w=0,M=0,I=0;I<x;){var T=v[I++],A=1===I;switch(T===h.M&&I>1&&(n||(_+=(0,c.default)(b,S,w,M,r,o))),A&&(w=b=v[I],M=S=v[I+1]),T){case h.M:b=w=v[I++],S=M=v[I++];break;case h.L:if(n){if(i.containStroke(b,S,v[I],v[I+1],e,r,o))return!0}else _+=(0,c.default)(b,S,v[I],v[I+1],r,o)||0;b=v[I++],S=v[I++];break;case h.C:if(n){if(a.containStroke(b,S,v[I++],v[I++],v[I++],v[I++],v[I],v[I+1],e,r,o))return!0}else _+=g(b,S,v[I++],v[I++],v[I++],v[I++],v[I],v[I+1],r,o)||0;b=v[I++],S=v[I++];break;case h.Q:if(n){if(s.containStroke(b,S,v[I++],v[I++],v[I],v[I+1],e,r,o))return!0}else _+=y(b,S,v[I++],v[I++],v[I],v[I+1],r,o)||0;b=v[I++],S=v[I++];break;case h.A:var C=v[I++],D=v[I++],k=v[I++],L=v[I++],O=v[I++],P=v[I++];I+=1;var E=!!(1-v[I++]);u=Math.cos(O)*k+C,p=Math.sin(O)*L+D,A?(w=u,M=p):_+=(0,c.default)(b,S,u,p,r,o);var R=(r-C)*L/k+C;if(n){if(l.containStroke(C,D,L,O,O+P,E,e,R,o))return!0}else _+=m(C,D,L,O,O+P,E,R,o);b=Math.cos(O+P)*k+C,S=Math.sin(O+P)*L+D;break;case h.R:if(w=b=v[I++],M=S=v[I++],u=w+v[I++],p=M+v[I++],n){if(i.containStroke(w,M,u,M,e,r,o)||i.containStroke(u,M,u,p,e,r,o)||i.containStroke(u,p,w,p,e,r,o)||i.containStroke(w,p,w,M,e,r,o))return!0}else _+=(0,c.default)(u,M,u,p,r,o),_+=(0,c.default)(w,p,w,M,r,o);break;case h.Z:if(n){if(i.containStroke(b,S,w,M,e,r,o))return!0}else _+=(0,c.default)(b,S,w,M,r,o);b=w,S=M}}return n||(d=S,f=M,Math.abs(d-f)<1e-4)||(_+=(0,c.default)(b,S,w,M,r,o)||0),0!==_}function x(t,e,n){return v(t,0,!1,e,n)}function _(t,e,n,r){return v(t,e,!0,n,r)}})),o.register("iifjm",(function(t,n){function r(t,e,n,r,i,o,a){if(0===i)return!1;var s,l=i;if(a>e+l&&a>r+l||a<e-l&&a<r-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}e(t.exports,"containStroke",(function(){return r}))})),o.register("bK60Y",(function(t,n){e(t.exports,"containStroke",(function(){return i}));var r=o("d7uFa");function i(t,e,n,i,o,a,s,l,u,c,h){if(0===u)return!1;var p=u;return!(h>e+p&&h>i+p&&h>a+p&&h>l+p||h<e-p&&h<i-p&&h<a-p&&h<l-p||c>t+p&&c>n+p&&c>o+p&&c>s+p||c<t-p&&c<n-p&&c<o-p&&c<s-p)&&r.cubicProjectPoint(t,e,n,i,o,a,s,l,c,h,null)<=p/2}})),o.register("gPFlX",(function(t,n){e(t.exports,"containStroke",(function(){return i}));var r=o("d7uFa");function i(t,e,n,i,o,a,s,l,u){if(0===s)return!1;var c=s;return!(u>e+c&&u>i+c&&u>a+c||u<e-c&&u<i-c&&u<a-c||l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c)&&(0,r.quadraticProjectPoint)(t,e,n,i,o,a,l,u,null)<=c/2}})),o.register("2IkHY",(function(t,n){e(t.exports,"containStroke",(function(){return a}));var r=o("yI2pV"),i=2*Math.PI;function a(t,e,n,o,a,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var p=Math.sqrt(u*u+c*c);if(p-h>n||p+h<n)return!1;if(Math.abs(o-a)%i<1e-4)return!0;if(s){var d=o;o=(0,r.normalizeRadian)(a),a=(0,r.normalizeRadian)(d)}else o=(0,r.normalizeRadian)(o),a=(0,r.normalizeRadian)(a);o>a&&(a+=i);var f=Math.atan2(c,u);return f<0&&(f+=i),f>=o&&f<=a||f+i>=o&&f+i<=a}})),o.register("yI2pV",(function(t,n){e(t.exports,"normalizeRadian",(function(){return i}));var r=2*Math.PI;function i(t){return(t%=r)<0&&(t+=r),t}})),o.register("kAKGd",(function(t,n){function r(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}e(t.exports,"default",(function(){return r}))})),o.register("b1qY0",(function(t,n){e(t.exports,"default",(function(){return h}));var r=o("2pli3"),i=o("32n5A"),a=o("e2ttp"),s=o("2fV2j"),l=(0,s.defaults)({x:0,y:0},i.DEFAULT_COMMON_STYLE),u={style:(0,s.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.createStyle=function(t){return(0,s.createObject)(l,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 u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new(0,a.default)(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.default);c.prototype.type="image";var h=c})),o.register("4m2Ab",(function(t,n){e(t.exports,"default",(function(){return h}));var r=o("2pli3"),i=o("lv1gH"),a=o("DNEgl"),s=o("hmuIR"),l=function(){this.x=0,this.y=0,this.width=0,this.height=0},u={},c=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var l=(0,s.subPixelOptimizeRect)(u,e,this.style);n=l.x,r=l.y,i=l.width,o=l.height,l.r=e.r,e=l}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?a.buildPath(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.default);c.prototype.type="rect";var h=c})),o.register("DNEgl",(function(t,n){function r(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)}e(t.exports,"buildPath",(function(){return r}))})),o.register("hmuIR",(function(t,n){e(t.exports,"subPixelOptimizeLine",(function(){return i})),e(t.exports,"subPixelOptimize",(function(){return a})),e(t.exports,"subPixelOptimizeRect",(function(){return o}));var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,u,!0)),r(2*s)===r(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(r,l,!0),t.y=a(i,l,!0),t.width=Math.max(a(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2==0?i/2:(i+(n?1:-1))/2}})),o.register("6EdQu",(function(t,n){e(t.exports,"HOVER_STATE_BLUR",(function(){return d})),e(t.exports,"HOVER_STATE_EMPHASIS",(function(){return f})),e(t.exports,"SPECIAL_STATES",(function(){return g})),e(t.exports,"DISPLAY_STATES",(function(){return y})),e(t.exports,"Z2_EMPHASIS_LIFT",(function(){return m})),e(t.exports,"HIGHLIGHT_ACTION_TYPE",(function(){return v})),e(t.exports,"DOWNPLAY_ACTION_TYPE",(function(){return x})),e(t.exports,"SELECT_ACTION_TYPE",(function(){return _})),e(t.exports,"UNSELECT_ACTION_TYPE",(function(){return b})),e(t.exports,"TOGGLE_SELECT_ACTION_TYPE",(function(){return S})),e(t.exports,"setStatesFlag",(function(){return P})),e(t.exports,"setDefaultStateProxy",(function(){return R})),e(t.exports,"enterEmphasis",(function(){return z})),e(t.exports,"leaveEmphasis",(function(){return B})),e(t.exports,"enterBlur",(function(){return F})),e(t.exports,"leaveBlur",(function(){return G})),e(t.exports,"enterSelect",(function(){return j})),e(t.exports,"leaveSelect",(function(){return H})),e(t.exports,"allLeaveBlur",(function(){return U})),e(t.exports,"blurComponent",(function(){return X})),e(t.exports,"blurSeriesFromHighlightPayload",(function(){return Z})),e(t.exports,"findComponentHighDownDispatchers",(function(){return q})),e(t.exports,"handleGlobalMouseOverForHighDown",(function(){return K})),e(t.exports,"handleGlobalMouseOutForHighDown",(function(){return J})),e(t.exports,"toggleSelectionFromPayload",(function(){return Q})),e(t.exports,"isSelectChangePayload",(function(){return ht})),e(t.exports,"updateSeriesElementSelection",(function(){return $})),e(t.exports,"getAllSelectedIndices",(function(){return tt})),e(t.exports,"enableHoverEmphasis",(function(){return et})),e(t.exports,"setAsHighDownDispatcher",(function(){return st})),e(t.exports,"enableHoverFocus",(function(){return rt})),e(t.exports,"toggleHoverEmphasis",(function(){return nt})),e(t.exports,"setStatesStylesFromModel",(function(){return at})),e(t.exports,"isHighDownDispatcher",(function(){return lt})),e(t.exports,"enableComponentHighDownFeatures",(function(){return ut})),e(t.exports,"getHighlightDigit",(function(){return ct})),e(t.exports,"isHighDownPayload",(function(){return pt})),e(t.exports,"savePathStates",(function(){return dt}));var r=o("2fV2j"),i=o("by2b6"),a=o("6s8l4"),s=o("jnApb"),l=o("lv1gH"),u=1,c={},h=(0,s.makeInner)(),p=(0,s.makeInner)(),d=1,f=2,g=["emphasis","blur","select"],y=["normal","emphasis","blur","select"],m=10,v="highlight",x="downplay",_="select",b="unselect",S="toggleSelect";function w(t){return null!=t&&"none"!==t}function M(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function I(t){M(t,"emphasis",f)}function T(t){t.hoverState===f&&M(t,"normal",0)}function A(t){M(t,"blur",d)}function C(t){t.hoverState===d&&M(t,"normal",0)}function D(t){t.selected=!0}function k(t){t.selected=!1}function L(t,e,n){e(t,n)}function O(t,e,n){L(t,e,n),t.isGroup&&t.traverse((function(t){L(t,e,n)}))}function P(t,e){switch(e){case"emphasis":t.hoverState=f;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=d;break;case"select":t.selected=!0}}function E(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var o=n&&(0,r.indexOf)(n,"select")>=0,s=!1;if(t instanceof l.default){var u=h(t),c=o&&u.selectFill||u.normalFill,p=o&&u.selectStroke||u.normalStroke;if(w(c)||w(p)){var d=(i=i||{}).style||{};"inherit"===d.fill?(s=!0,i=(0,r.extend)({},i),(d=(0,r.extend)({},d)).fill=c):!w(d.fill)&&w(c)?(s=!0,i=(0,r.extend)({},i),(d=(0,r.extend)({},d)).fill=(0,a.liftColor)(c)):!w(d.stroke)&&w(p)&&(s||(i=(0,r.extend)({},i),d=(0,r.extend)({},d)),d.stroke=(0,a.liftColor)(p)),i.style=d}}if(i&&null==i.z2){s||(i=(0,r.extend)({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(null!=f?f:m)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=(0,r.indexOf)(t.currentStates,e)>=0,o=t.style.opacity,a=i?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}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,r.extend)({},n),s=(0,r.extend)({opacity:i?o:.1*a.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=(0,r.extend)({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function R(t){t.stateProxy=E;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=E),n&&(n.stateProxy=E)}function N(t,e){!W(t,e)&&!t.__highByOuter&&O(t,I)}function V(t,e){!W(t,e)&&!t.__highByOuter&&O(t,T)}function z(t,e){t.__highByOuter|=1<<(e||0),O(t,I)}function B(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&O(t,T)}function F(t){O(t,A)}function G(t){O(t,C)}function j(t){O(t,D)}function H(t){O(t,k)}function W(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function U(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=p(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){C(t)})),a&&n.push(r)),o.isBlured=!1})),(0,r.each)(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Y(t,e,n,i){var o=i.getModel();function a(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&G(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l:o)||"series"===e&&o)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&o&&"self"===e||A(t)})),(0,r.isArrayLike)(e))a(t.getData(),e);else if((0,r.isObject)(e))for(var h=(0,r.keys)(e),d=0;d<h.length;d++)a(t.getData(h[d]),e[h[d]]);u.push(t),p(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function X(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){p(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){A(t)}))}}}function Z(t,e,n){var o=t.seriesIndex,a=t.getData(e.dataType);if(a){var l=(0,s.queryDataIndex)(a,e);l=((0,r.isArray)(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u)for(var c=a.count(),h=0;!u&&h<c;)u=a.getItemGraphicEl(h++);if(u){var p=(0,i.getECData)(u);Y(o,p.focus,p.blurScope,n)}else{var d=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=d&&Y(o,d,f,n)}}}function q(t,e,n,r){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=r.getModel().getComponent(t,e);if(!a)return o;var s=r.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===(0,i.getECData)(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function K(t,e,n){var o=(0,i.getECData)(t),a=q(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&X(o.componentMainType,o.componentIndex,n),(0,r.each)(s,(function(t){return N(t,e)}))):(Y(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&X(o.componentMainType,o.componentIndex,n),N(t,e))}function J(t,e,n){U(n);var o=(0,i.getECData)(t),a=q(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,r.each)(a,(function(t){return V(t,e)})):V(t,e)}function Q(t,e,n){if(ht(e)){var i=e.dataType,o=t.getData(i),a=(0,s.queryDataIndex)(o,e);(0,r.isArray)(a)||(a=[a]),t[e.type===S?"toggleSelect":e.type===_?"select":"unselect"](a,i)}}function $(t){var e=t.getAllData();(0,r.each)(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?j(e):H(e)}))}))}function tt(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();(0,r.each)(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function et(t,e,n){st(t,!0),O(t,R),rt(t,e,n)}function nt(t,e,n,r){r?function(t){st(t,!1)}(t):et(t,e,n)}function rt(t,e,n){var r=(0,i.getECData)(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var it=["emphasis","blur","select"],ot={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function at(t,e,n,r){n=n||"itemStyle";for(var i=0;i<it.length;i++){var o=it[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[ot[n]]()}}function st(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 lt(t){return!(!t||!t.__highDownDispatcher)}function ut(t,e,n){var r=(0,i.getECData)(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function ct(t){var e=c[t];return null==e&&u<=32&&(e=c[t]=u++),e}function ht(t){var e=t.type;return e===_||e===b||e===S}function pt(t){var e=t.type;return e===v||e===x}function dt(t){var e=h(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}})),o.register("by2b6",(function(t,n){e(t.exports,"getECData",(function(){return r})),e(t.exports,"setCommonECData",(function(){return i}));var r=(0,o("jnApb").makeInner)(),i=function(t,e,n,i){if(i){var o=r(i);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,o.ssrType="chart","group"===i.type&&i.traverse((function(i){var o=r(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"}))}}})),o.register("4NPqX",(function(t,n){e(t.exports,"getAnimationConfig",(function(){return a})),e(t.exports,"updateProps",(function(){return l})),e(t.exports,"initProps",(function(){return u})),e(t.exports,"isElementRemoved",(function(){return c})),e(t.exports,"removeElement",(function(){return h})),e(t.exports,"removeElementWithFadeOut",(function(){return d})),e(t.exports,"saveOldStyle",(function(){return f})),e(t.exports,"getOldStyle",(function(){return g}));var r=o("2fV2j"),i=(0,o("jnApb").makeInner)();function a(t,e,n,i,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return i?(u=(0,r.retrieve2)(i.duration,200),c=(0,r.retrieve2)(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),(0,r.isFunction)(h)&&(h=h(n,o)),(0,r.isFunction)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}function s(t,e,n,i,o,s,l){var u,c=!1;(0,r.isFunction)(o)?(l=s,s=o,o=null):(0,r.isObject)(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var p=a(t,i,o,h?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(p&&p.duration>0){var d={duration:p.duration,delay:p.delay||0,easing:p.easing,done:s,force:!!s||!!l,setToFinal:!h,scope:t,during:l};c?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function l(t,e,n,r,i,o){s("update",t,e,n,r,i,o)}function u(t,e,n,r,i,o){s("enter",t,e,n,r,i,o)}function c(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 h(t,e,n,r,i,o){c(t)||s("leave",t,e,n,r,i,o)}function p(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,r)}function d(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||p(t,e,n,r)})):p(t,e,n,r)}function f(t){i(t).oldStyle=t.style}function g(t){return i(t).oldStyle}})),o.register("4x6s5",(function(t,n){e(t.exports,"extendShape",(function(){return A})),e(t.exports,"extendPath",(function(){return D})),e(t.exports,"registerShape",(function(){return k})),e(t.exports,"getShapeClass",(function(){return L})),e(t.exports,"makePath",(function(){return O})),e(t.exports,"resizePath",(function(){return N})),e(t.exports,"makeImage",(function(){return P})),e(t.exports,"mergePath",(function(){return R})),e(t.exports,"subPixelOptimizeLine",(function(){return V})),e(t.exports,"subPixelOptimizeRect",(function(){return z})),e(t.exports,"subPixelOptimize",(function(){return B})),e(t.exports,"getTransform",(function(){return F})),e(t.exports,"applyTransform",(function(){return G})),e(t.exports,"transformDirection",(function(){return j})),e(t.exports,"groupTransition",(function(){return W})),e(t.exports,"clipPointsByRect",(function(){return U})),e(t.exports,"clipRectByRect",(function(){return Y})),e(t.exports,"createIcon",(function(){return X})),e(t.exports,"linePolygonIntersect",(function(){return Z})),e(t.exports,"lineLineIntersect",(function(){return q})),e(t.exports,"setTooltipConfig",(function(){return J})),e(t.exports,"traverseElements",(function(){return $})),e(t.exports,"updateProps",(function(){return o("4NPqX").updateProps})),e(t.exports,"initProps",(function(){return o("4NPqX").initProps})),e(t.exports,"removeElement",(function(){return o("4NPqX").removeElement})),e(t.exports,"removeElementWithFadeOut",(function(){return o("4NPqX").removeElementWithFadeOut})),e(t.exports,"isElementRemoved",(function(){return o("4NPqX").isElementRemoved})),e(t.exports,"Group",(function(){return o("4zWIO").default})),e(t.exports,"Image",(function(){return o("b1qY0").default})),e(t.exports,"Text",(function(){return o("kjDai").default})),e(t.exports,"Circle",(function(){return o("18USZ").default})),e(t.exports,"Ellipse",(function(){return o("5GLyX").default})),e(t.exports,"Sector",(function(){return o("4rNRw").default})),e(t.exports,"Ring",(function(){return o("9AYeo").default})),e(t.exports,"Polygon",(function(){return o("4w8lf").default})),e(t.exports,"Polyline",(function(){return o("ln8jP").default})),e(t.exports,"Rect",(function(){return o("4m2Ab").default})),e(t.exports,"Line",(function(){return o("8UpdG").default})),e(t.exports,"BezierCurve",(function(){return o("2Kft9").default})),e(t.exports,"Arc",(function(){return o("eDBCF").default})),e(t.exports,"IncrementalDisplayable",(function(){return o("7fcf9").default})),e(t.exports,"CompoundPath",(function(){return o("hqpEF").default})),e(t.exports,"LinearGradient",(function(){return o("kwypm").default})),e(t.exports,"RadialGradient",(function(){return o("cVxFK").default})),e(t.exports,"BoundingRect",(function(){return o("e2ttp").default})),e(t.exports,"OrientedBoundingRect",(function(){return o("03UV8").default})),e(t.exports,"Point",(function(){return o("7k07j").default})),e(t.exports,"Path",(function(){return o("lv1gH").default}));var r=o("1AjVZ"),i=o("2QCok"),a=o("lDRrb"),s=o("lv1gH"),l=o("bCcJ1"),u=o("b1qY0"),c=(o("4zWIO"),o("kjDai"),o("18USZ")),h=o("5GLyX"),p=o("4rNRw"),d=o("9AYeo"),f=o("4w8lf"),g=o("ln8jP"),y=o("4m2Ab"),m=o("8UpdG"),v=o("2Kft9"),x=o("eDBCF"),_=(o("hqpEF"),o("kwypm"),o("cVxFK"),o("e2ttp"),o("03UV8"),o("7k07j"),o("7fcf9"),o("hmuIR")),b=o("2fV2j"),S=o("by2b6"),w=o("4NPqX"),M=Math.max,I=Math.min,T={};function A(t){return s.default.extend(t)}var C=r.extendFromString;function D(t,e){return C(t,e)}function k(t,e){T[t]=e}function L(t){if(T.hasOwnProperty(t))return T[t]}function O(t,e,n,i){var o=r.createFromString(t,e);return n&&("center"===i&&(n=E(n,o.getBoundingRect())),N(o,n)),o}function P(t,e,n){var r=new(0,u.default)({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(E(e,i))}}});return r}function E(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 R=r.mergePath;function N(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function V(t,e){return _.subPixelOptimizeLine(t,t,{lineWidth:e}),t}function z(t){return _.subPixelOptimizeRect(t.shape,t.shape,t.style),t}var B=_.subPixelOptimize;function F(t,e){for(var n=i.identity([]);t&&t!==e;)i.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function G(t,e,n){return e&&!(0,b.isArrayLike)(e)&&(e=l.default.getLocalTransform(e)),n&&(e=i.invert([],e)),a.applyTransform([],t,e)}function j(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=G(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function H(t){return!t.isGroup}function W(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){H(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(H(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),(0,w.updateProps)(t,r,n,(0,S.getECData)(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=(0,b.extend)({},t.shape)),e}}function U(t,e){return(0,b.map)(t,(function(t){var n=t[0];n=M(n,e.x),n=I(n,e.x+e.width);var r=t[1];return r=M(r,e.y),[n,r=I(r,e.y+e.height)]}))}function Y(t,e){var n=M(t.x,e.x),r=I(t.x+t.width,e.x+e.width),i=M(t.y,e.y),o=I(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function X(t,e,n){var r=(0,b.extend)({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),(0,b.defaults)(i,n),new(0,u.default)(r)):O(t.replace("path://",""),r,n,"center")}function Z(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(q(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function q(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,p=s-o,d=K(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,y=K(f,g,u,c)/d;if(y<0||y>1)return!1;var m=K(f,g,h,p)/d;return!(m<0||m>1)}function K(t,e,n,r){return t*r-n*e}function J(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=(0,b.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&(0,b.each)((0,b.keys)(l),(function(t){(0,b.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=(0,S.getECData)(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:(0,b.defaults)({content:r,formatterParams:s},i)}}function Q(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function $(t,e){if(t)if((0,b.isArray)(t))for(var n=0;n<t.length;n++)Q(t[n],e);else Q(t,e)}k("circle",c.default),k("ellipse",h.default),k("sector",p.default),k("ring",d.default),k("polygon",f.default),k("polyline",g.default),k("rect",y.default),k("line",m.default),k("bezierCurve",v.default),k("arc",x.default)})),o.register("1AjVZ",(function(t,n){e(t.exports,"createFromString",(function(){return S})),e(t.exports,"extendFromString",(function(){return w})),e(t.exports,"mergePath",(function(){return M})),e(t.exports,"clonePath",(function(){return I}));var r=o("2pli3"),i=o("lv1gH"),a=o("btLRI"),s=o("1g0o3"),l=o("2fV2j"),u=Math.sqrt,c=Math.sin,h=Math.cos,p=Math.PI;function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function f(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function g(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(f(t,e))}function y(t,e,n,r,i,o,a,s,l,d,y){var m=l*(p/180),v=h(m)*(t-n)/2+c(m)*(e-r)/2,x=-1*c(m)*(t-n)/2+h(m)*(e-r)/2,_=v*v/(a*a)+x*x/(s*s);_>1&&(a*=u(_),s*=u(_));var b=(i===o?-1:1)*u((a*a*(s*s)-a*a*(x*x)-s*s*(v*v))/(a*a*(x*x)+s*s*(v*v)))||0,S=b*a*x/s,w=b*-s*v/a,M=(t+n)/2+h(m)*S-c(m)*w,I=(e+r)/2+c(m)*S+h(m)*w,T=g([1,0],[(v-S)/a,(x-w)/s]),A=[(v-S)/a,(x-w)/s],C=[(-1*v-S)/a,(-1*x-w)/s],D=g(A,C);if(f(A,C)<=-1&&(D=p),f(A,C)>=1&&(D=0),D<0){var k=Math.round(D/p*1e6)/1e6;D=2*p+k%2*p}y.addData(d,M,I,a,s,T,D,m,o)}var m=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,v=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.applyTransform=function(t){},e}(i.default);function _(t){return null!=t.setData}function b(t,e){var n=function(t){var e=new(0,a.default);if(!t)return e;var n,r=0,i=0,o=r,s=i,l=a.default.CMD,u=t.match(m);if(!u)return e;for(var c=0;c<u.length;c++){for(var h=u[c],p=h.charAt(0),d=void 0,f=h.match(v)||[],g=f.length,x=0;x<g;x++)f[x]=parseFloat(f[x]);for(var _=0;_<g;){var b=void 0,S=void 0,w=void 0,M=void 0,I=void 0,T=void 0,A=void 0,C=r,D=i,k=void 0,L=void 0;switch(p){case"l":r+=f[_++],i+=f[_++],d=l.L,e.addData(d,r,i);break;case"L":r=f[_++],i=f[_++],d=l.L,e.addData(d,r,i);break;case"m":r+=f[_++],i+=f[_++],d=l.M,e.addData(d,r,i),o=r,s=i,p="l";break;case"M":r=f[_++],i=f[_++],d=l.M,e.addData(d,r,i),o=r,s=i,p="L";break;case"h":r+=f[_++],d=l.L,e.addData(d,r,i);break;case"H":r=f[_++],d=l.L,e.addData(d,r,i);break;case"v":i+=f[_++],d=l.L,e.addData(d,r,i);break;case"V":i=f[_++],d=l.L,e.addData(d,r,i);break;case"C":d=l.C,e.addData(d,f[_++],f[_++],f[_++],f[_++],f[_++],f[_++]),r=f[_-2],i=f[_-1];break;case"c":d=l.C,e.addData(d,f[_++]+r,f[_++]+i,f[_++]+r,f[_++]+i,f[_++]+r,f[_++]+i),r+=f[_-2],i+=f[_-1];break;case"S":b=r,S=i,k=e.len(),L=e.data,n===l.C&&(b+=r-L[k-4],S+=i-L[k-3]),d=l.C,C=f[_++],D=f[_++],r=f[_++],i=f[_++],e.addData(d,b,S,C,D,r,i);break;case"s":b=r,S=i,k=e.len(),L=e.data,n===l.C&&(b+=r-L[k-4],S+=i-L[k-3]),d=l.C,C=r+f[_++],D=i+f[_++],r+=f[_++],i+=f[_++],e.addData(d,b,S,C,D,r,i);break;case"Q":C=f[_++],D=f[_++],r=f[_++],i=f[_++],d=l.Q,e.addData(d,C,D,r,i);break;case"q":C=f[_++]+r,D=f[_++]+i,r+=f[_++],i+=f[_++],d=l.Q,e.addData(d,C,D,r,i);break;case"T":b=r,S=i,k=e.len(),L=e.data,n===l.Q&&(b+=r-L[k-4],S+=i-L[k-3]),r=f[_++],i=f[_++],d=l.Q,e.addData(d,b,S,r,i);break;case"t":b=r,S=i,k=e.len(),L=e.data,n===l.Q&&(b+=r-L[k-4],S+=i-L[k-3]),r+=f[_++],i+=f[_++],d=l.Q,e.addData(d,b,S,r,i);break;case"A":w=f[_++],M=f[_++],I=f[_++],T=f[_++],A=f[_++],y(C=r,D=i,r=f[_++],i=f[_++],T,A,w,M,I,d=l.A,e);break;case"a":w=f[_++],M=f[_++],I=f[_++],T=f[_++],A=f[_++],y(C=r,D=i,r+=f[_++],i+=f[_++],T,A,w,M,I,d=l.A,e)}}"z"!==p&&"Z"!==p||(d=l.Z,e.addData(d),r=o,i=s),n=d}return e.toStatic(),e}(t),r=(0,l.extend)({},e);return r.buildPath=function(t){if(_(t))t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1);else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){(0,s.default)(n,t),this.dirtyShape()},r}function S(t,e){return new x(b(t,e))}function w(t,e){var n=b(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return(0,r.__extends)(e,t),e}(x)}function M(t,e){for(var n=[],r=t.length,o=0;o<r;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new(0,i.default)(e);return s.createPathProxy(),s.buildPath=function(t){if(_(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function I(t,e){e=e||{};var n=new(0,i.default);return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?(0,s.default)(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}})),o.register("1g0o3",(function(t,n){e(t.exports,"default",(function(){return c}));var r=o("btLRI"),i=o("lDRrb"),a=r.default.CMD,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;function c(t,e){if(e){var n,r,o,c,h,p,d=t.data,f=t.len(),g=a.M,y=a.C,m=a.L,v=a.R,x=a.A,_=a.Q;for(o=0,c=0;o<f;){switch(n=d[o++],c=o,r=0,n){case g:case m:r=1;break;case y:r=3;break;case _:r=2;break;case x:var b=e[4],S=e[5],w=l(e[0]*e[0]+e[1]*e[1]),M=l(e[2]*e[2]+e[3]*e[3]),I=u(-e[1]/M,e[0]/w);d[o]*=w,d[o++]+=b,d[o]*=M,d[o++]+=S,d[o++]*=w,d[o++]*=M,d[o++]+=I,d[o++]+=I,c=o+=2;break;case v:p[0]=d[o++],p[1]=d[o++],(0,i.applyTransform)(p,p,e),d[c++]=p[0],d[c++]=p[1],p[0]+=d[o++],p[1]+=d[o++],(0,i.applyTransform)(p,p,e),d[c++]=p[0],d[c++]=p[1]}for(h=0;h<r;h++){var T=s[h];T[0]=d[o++],T[1]=d[o++],(0,i.applyTransform)(T,T,e),d[c++]=T[0],d[c++]=T[1]}}t.increaseVersion()}}})),o.register("18USZ",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("2pli3"),i=o("lv1gH"),a=function(){this.cx=0,this.cy=0,this.r=0},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},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}(i.default);s.prototype.type="circle";var l=s})),o.register("5GLyX",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("2pli3"),i=o("lv1gH"),a=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},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}(i.default);s.prototype.type="ellipse";var l=s})),o.register("4rNRw",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("2pli3"),i=o("lv1gH"),a=o("lQ0hW"),s=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},l=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){a.buildPath(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.default);l.prototype.type="sector";var u=l})),o.register("lQ0hW",(function(t,n){e(t.exports,"buildPath",(function(){return m}));var r=o("2fV2j"),i=Math.PI,a=2*i,s=Math.sin,l=Math.cos,u=Math.acos,c=Math.atan2,h=Math.abs,p=Math.sqrt,d=Math.max,f=Math.min,g=1e-4;function y(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/p(s*s+l*l),c=u*l,h=-u*s,f=t+c,g=e+h,y=n+c,m=r+h,v=(f+y)/2,x=(g+m)/2,_=y-f,b=m-g,S=_*_+b*b,w=i-o,M=f*m-y*g,I=(b<0?-1:1)*p(d(0,w*w*S-M*M)),T=(M*b-_*I)/S,A=(-M*_-b*I)/S,C=(M*b+_*I)/S,D=(-M*_+b*I)/S,k=T-v,L=A-x,O=C-v,P=D-x;return k*k+L*L>O*O+P*P&&(T=C,A=D),{cx:T,cy:A,x0:-c,y0:-h,x1:T*(i/w-1),y1:A*(i/w-1)}}function m(t,e){var n,o=d(e.r,0),m=d(e.r0||0,0),v=o>0;if(v||m>0){if(v||(o=m,m=0),m>o){var x=o;o=m,m=x}var _=e.startAngle,b=e.endAngle;if(!isNaN(_)&&!isNaN(b)){var S=e.cx,w=e.cy,M=!!e.clockwise,I=h(b-_),T=I>a&&I%a;if(T>g&&(I=T),o>g)if(I>a-g)t.moveTo(S+o*l(_),w+o*s(_)),t.arc(S,w,o,_,b,!M),m>g&&(t.moveTo(S+m*l(b),w+m*s(b)),t.arc(S,w,m,b,_,M));else{var A=void 0,C=void 0,D=void 0,k=void 0,L=void 0,O=void 0,P=void 0,E=void 0,R=void 0,N=void 0,V=void 0,z=void 0,B=void 0,F=void 0,G=void 0,j=void 0,H=o*l(_),W=o*s(_),U=m*l(b),Y=m*s(b),X=I>g;if(X){var Z=e.cornerRadius;Z&&(A=(n=function(t){var e;if((0,r.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Z))[0],C=n[1],D=n[2],k=n[3]);var q=h(o-m)/2;if(L=f(q,D),O=f(q,k),P=f(q,A),E=f(q,C),V=R=d(L,O),z=N=d(P,E),(R>g||N>g)&&(B=o*l(b),F=o*s(b),G=m*l(_),j=m*s(_),I<i)){var K=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=h*l-c*u;if(!(p*p<g))return[t+(p=(c*(e-o)-h*(t-i))/p)*l,e+p*u]}(H,W,G,j,B,F,U,Y);if(K){var J=H-K[0],Q=W-K[1],$=B-K[0],tt=F-K[1],et=1/s(u((J*$+Q*tt)/(p(J*J+Q*Q)*p($*$+tt*tt)))/2),nt=p(K[0]*K[0]+K[1]*K[1]);V=f(R,(o-nt)/(et+1)),z=f(N,(m-nt)/(et-1))}}}if(X)if(V>g){var rt=f(D,V),it=f(k,V),ot=y(G,j,H,W,o,rt,M),at=y(B,F,U,Y,o,it,M);t.moveTo(S+ot.cx+ot.x0,w+ot.cy+ot.y0),V<R&&rt===it?t.arc(S+ot.cx,w+ot.cy,V,c(ot.y0,ot.x0),c(at.y0,at.x0),!M):(rt>0&&t.arc(S+ot.cx,w+ot.cy,rt,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!M),t.arc(S,w,o,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),!M),it>0&&t.arc(S+at.cx,w+at.cy,it,c(at.y1,at.x1),c(at.y0,at.x0),!M))}else t.moveTo(S+H,w+W),t.arc(S,w,o,_,b,!M);else t.moveTo(S+H,w+W);m>g&&X?z>g?(rt=f(A,z),ot=y(U,Y,B,F,m,-(it=f(C,z)),M),at=y(H,W,G,j,m,-rt,M),t.lineTo(S+ot.cx+ot.x0,w+ot.cy+ot.y0),z<N&&rt===it?t.arc(S+ot.cx,w+ot.cy,z,c(ot.y0,ot.x0),c(at.y0,at.x0),!M):(it>0&&t.arc(S+ot.cx,w+ot.cy,it,c(ot.y0,ot.x0),c(ot.y1,ot.x1),!M),t.arc(S,w,m,c(ot.cy+ot.y1,ot.cx+ot.x1),c(at.cy+at.y1,at.cx+at.x1),M),rt>0&&t.arc(S+at.cx,w+at.cy,rt,c(at.y1,at.x1),c(at.y0,at.x0),!M))):(t.lineTo(S+U,w+Y),t.arc(S,w,m,b,_,M)):t.lineTo(S+U,w+Y)}else t.moveTo(S,w);t.closePath()}}}})),o.register("9AYeo",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("2pli3"),i=o("lv1gH"),a=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},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}(i.default);s.prototype.type="ring";var l=s})),o.register("4w8lf",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("2pli3"),i=o("lv1gH"),a=o("kRgfW"),s=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},l=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){a.buildPath(t,e,!0)},e}(i.default);l.prototype.type="polygon";var u=l})),o.register("kRgfW",(function(t,n){e(t.exports,"buildPath",(function(){return i}));var r=o("c3QUW");function i(t,e,n){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var a=(0,r.default)(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],h=o[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]),l=1;for(var p=o.length;l<p;l++)t.lineTo(o[l][0],o[l][1])}n&&t.closePath()}}})),o.register("c3QUW",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("lDRrb");function i(t,e,n,i){var o,a,s,l,u=[],c=[],h=[],p=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)(0,r.min)(s,s,t[d]),(0,r.max)(l,l,t[d]);(0,r.min)(s,s,i[0]),(0,r.max)(l,l,i[1])}for(d=0,f=t.length;d<f;d++){var g=t[d];if(n)o=t[d?d-1:f-1],a=t[(d+1)%f];else{if(0===d||d===f-1){u.push((0,r.clone)(t[d]));continue}o=t[d-1],a=t[d+1]}(0,r.sub)(c,a,o),(0,r.scale)(c,c,e);var y=(0,r.distance)(g,o),m=(0,r.distance)(g,a),v=y+m;0!==v&&(y/=v,m/=v),(0,r.scale)(h,c,-y),(0,r.scale)(p,c,m);var x=(0,r.add)([],g,h),_=(0,r.add)([],g,p);i&&((0,r.max)(x,x,s),(0,r.min)(x,x,l),(0,r.max)(_,_,s),(0,r.min)(_,_,l)),u.push(x),u.push(_)}return n&&u.push(u.shift()),u}})),o.register("ln8jP",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("2pli3"),i=o("lv1gH"),a=o("kRgfW"),s=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},l=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){a.buildPath(t,e,!1)},e}(i.default);l.prototype.type="polyline";var u=l})),o.register("8UpdG",(function(t,n){e(t.exports,"default",(function(){return c}));var r=o("2pli3"),i=o("lv1gH"),a=o("hmuIR"),s={},l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var l=(0,a.subPixelOptimizeLine)(s,e,this.style);n=l.x1,r=l.y1,i=l.x2,o=l.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,o=r*(1-u)+o*u),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}(i.default);u.prototype.type="line";var c=u})),o.register("2Kft9",(function(t,n){e(t.exports,"default",(function(){return p}));var r=o("2pli3"),i=o("lv1gH"),a=o("lDRrb"),s=o("d7uFa"),l=[],u=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function c(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?s.cubicDerivativeAt:s.cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?s.cubicDerivativeAt:s.cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?s.quadraticDerivativeAt:s.quadraticAt)(t.x1,t.cpx1,t.x2,e),(n?s.quadraticDerivativeAt:s.quadraticAt)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new u},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,p=e.percent;0!==p&&(t.moveTo(n,r),null==c||null==h?(p<1&&((0,s.quadraticSubdivide)(n,a,i,p,l),a=l[1],i=l[2],(0,s.quadraticSubdivide)(r,u,o,p,l),u=l[1],o=l[2]),t.quadraticCurveTo(a,u,i,o)):(p<1&&((0,s.cubicSubdivide)(n,a,c,i,p,l),a=l[1],c=l[2],i=l[3],(0,s.cubicSubdivide)(r,u,h,o,p,l),u=l[1],h=l[2],o=l[3]),t.bezierCurveTo(a,u,c,h,i,o)))},e.prototype.pointAt=function(t){return c(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=c(this.shape,t,!0);return a.normalize(e,e)},e}(i.default);h.prototype.type="bezier-curve";var p=h})),o.register("eDBCF",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("2pli3"),i=o("lv1gH"),a=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},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}(i.default);s.prototype.type="arc";var l=s})),o.register("hqpEF",(function(t,n){e(t.exports,"default",(function(){return s}));var r=o("2pli3"),i=o("lv1gH"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,r.__extends)(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),i.default.prototype.getBoundingRect.call(this)},e}(i.default),s=a})),o.register("kwypm",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("2pli3"),i=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(0,r.__extends)(e,t),e}(o("ekSk7").default)})),o.register("ekSk7",(function(t,n){e(t.exports,"default",(function(){return r}));var r=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()})),o.register("cVxFK",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("2pli3"),i=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(0,r.__extends)(e,t),e}(o("ekSk7").default)})),o.register("03UV8",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("7k07j"),i=[0,0],a=[0,0],s=new(0,r.default),l=new(0,r.default),u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new(0,r.default);for(n=0;n<2;n++)this._axes[n]=new(0,r.default);t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);for(r.default.sub(i[0],n[1],n[0]),r.default.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return s.set(1/0,1/0),l.set(0,0),!this._intersectCheckOneSide(this,t,s,l,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,s,l,i,-1)&&(n=!1,i)||i||r.default.copy(e,n?s:l),n},t.prototype._intersectCheckOneSide=function(t,e,n,o,s,l){for(var u=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,a),i[1]<a[0]||i[0]>a[1]){if(u=!1,s)return u;var p=Math.abs(a[0]-i[1]),d=Math.abs(i[0]-a[1]);Math.min(p,d)>o.len()&&(p<d?r.default.scale(o,h,-p*l):r.default.scale(o,h,d*l))}else n&&(p=Math.abs(a[0]-i[1]),d=Math.abs(i[0]-a[1]),Math.min(p,d)<n.len()&&(p<d?r.default.scale(n,h,p*l):r.default.scale(n,h,-d*l)))}return u},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}()})),o.register("7fcf9",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("2pli3"),i=o("32n5A"),a=o("e2ttp"),s=[],l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,r.__extends)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(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(0,a.default)(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(s)),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}(i.default),u=l})),o.register("4RHu7",(function(t,n){e(t.exports,"LINE_STYLE_KEY_MAP",(function(){return i})),e(t.exports,"LineStyleMixin",(function(){return s}));var r=o("fpBSa"),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],a=(0,r.default)(i),s=function(){function t(){}return t.prototype.getLineStyle=function(t){return a(this,t)},t}()})),o.register("5gH42",(function(t,n){e(t.exports,"ITEM_STYLE_KEY_MAP",(function(){return i})),e(t.exports,"ItemStyleMixin",(function(){return s}));var r=o("fpBSa"),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],a=(0,r.default)(i),s=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return a(this,t,e)},t}()})),o.register("krEnk",(function(t,n){e(t.exports,"default",(function(){return d}));var r=o("2pli3"),i=o("2fV2j"),a=o("1C7zE"),s=o("aRppD"),l=o("fyXJH"),u=o("jnApb"),c=o("aZMsI"),h=(0,u.makeInner)(),p=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=s.getUID("ec_cpt_model"),i}var n;return(0,r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=c.fetchLayoutMode(this),r=n?c.getLayoutParams(t):{},o=e.getTheme();i.merge(t,o.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&c.mergeLayoutParam(t,r,n)},e.prototype.mergeOption=function(t,e){i.merge(this.option,t,!0);var n=c.fetchLayoutMode(this);n&&c.mergeLayoutParam(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,l.isExtendedClass)(t))return t.defaultOption;var e=h(this);if(!e.defaultOption){for(var n=[],r=t;r;){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var a={},s=n.length-1;s>=0;s--)a=i.merge(a,n[s],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return(0,u.queryReferringComponents)(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(a.default);(0,l.mountExtend)(p,a.default),(0,l.enableClassManagement)(p),s.enableSubTypeDefaulter(p),s.enableTopologicalTravel(p,(function(t){var e=[];return i.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=i.map(e,(function(t){return(0,l.parseClassType)(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}));var d=p})),o.register("aRppD",(function(t,n){e(t.exports,"getUID",(function(){return s})),e(t.exports,"enableSubTypeDefaulter",(function(){return l})),e(t.exports,"enableTopologicalTravel",(function(){return u})),e(t.exports,"inheritDefaultOption",(function(){return c}));var r=o("2fV2j"),i=o("fyXJH"),a=Math.round(10*Math.random());function s(t){return[t||"",a++].join("_")}function l(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=(0,i.parseClassType)(t);e[r.main]=n},t.determineSubType=function(n,r){var o=r.type;if(!o){var a=(0,i.parseClassType)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](r))}return o}}function u(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,o,a){if(t.length){var s=function(t){var i={},o=[];return r.each(t,(function(a){var s=n(i,a),l=function(t,e){var n=[];return r.each(t,(function(t){r.indexOf(e,t)>=0&&n.push(t)})),n}(s.originalDeps=e(a),t);s.entryCount=l.length,0===s.entryCount&&o.push(a),r.each(l,(function(t){r.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);r.indexOf(e.successor,t)<0&&e.successor.push(a)}))})),{graph:i,noEntryList:o}}(i),l=s.graph,u=s.noEntryList,c={};for(r.each(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),p=l[h],d=!!c[h];d&&(o.call(a,h,p.originalDeps.slice()),delete c[h]),r.each(p.successor,d?g:f)}r.each(c,(function(){throw new Error("")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}function c(t,e){return r.merge(r.merge({},t,!0),e,!0)}})),o.register("aZMsI",(function(t,n){e(t.exports,"LOCATION_PARAMS",(function(){return u})),e(t.exports,"box",(function(){return p})),e(t.exports,"getAvailableSize",(function(){return d})),e(t.exports,"getLayoutRect",(function(){return f})),e(t.exports,"positionElement",(function(){return g})),e(t.exports,"sizeCalculable",(function(){return y})),e(t.exports,"fetchLayoutMode",(function(){return m})),e(t.exports,"mergeLayoutParam",(function(){return v})),e(t.exports,"getLayoutParams",(function(){return x})),e(t.exports,"copyLayoutParams",(function(){return _}));var r=o("2fV2j"),i=o("e2ttp"),a=o("iIXbb"),s=o("gnWKD"),l=r.each,u=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function h(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,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(h=a+y)>i||l.newline?(o+=s+n,a=0,h=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var p=h;function d(t,e,n){var r=e.width,i=e.height,o=(0,a.parsePercent)(t.left,r),l=(0,a.parsePercent)(t.top,i),u=(0,a.parsePercent)(t.right,r),c=(0,a.parsePercent)(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=i),n=s.normalizeCssArray(n||0),{width:Math.max(u-o-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function f(t,e,n){n=s.normalizeCssArray(n||0);var r=e.width,o=e.height,l=(0,a.parsePercent)(t.left,r),u=(0,a.parsePercent)(t.top,o),c=(0,a.parsePercent)(t.right,r),h=(0,a.parsePercent)(t.bottom,o),p=(0,a.parsePercent)(t.width,r),d=(0,a.parsePercent)(t.height,o),f=n[2]+n[0],g=n[1]+n[3],y=t.aspect;switch(isNaN(p)&&(p=r-c-g-l),isNaN(d)&&(d=o-h-f-u),null!=y&&(isNaN(p)&&isNaN(d)&&(y>r/o?p=.8*r:d=.8*o),isNaN(p)&&(p=y*d),isNaN(d)&&(d=p/y)),isNaN(l)&&(l=r-c-p-g),isNaN(u)&&(u=o-h-d-f),t.left||t.right){case"center":l=r/2-p/2-n[3];break;case"right":l=r-p-g}switch(t.top||t.bottom){case"middle":case"center":u=o/2-d/2-n[0];break;case"bottom":u=o-d-f}l=l||0,u=u||0,isNaN(p)&&(p=r-g-l-(c||0)),isNaN(d)&&(d=o-f-u-(h||0));var m=new(0,i.default)(l+n[3],u+n[0],p,d);return m.margin=n,m}function g(t,e,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new(0,i.default)(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var p=t.getLocalTransform();(l=l.clone()).applyTransform(p)}var d=f(r.defaults({width:l.width,height:l.height},e),n,o),g=u?d.x-l.x:0,y=c?d.y-l.y:0;return"raw"===h?(s.x=g,s.y=y):(s.x+=g,s.y+=y),s===t&&t.markRedraw(),!0}function y(t,e){return null!=t[c[e][0]]||null!=t[c[e][1]]&&null!=t[c[e][2]]}function m(t){var e=t.layoutMode||t.constructor.layoutMode;return r.isObject(e)?e:e?{type:e}:null}function v(t,e,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=s(c[0],0),a=s(c[1],1);function s(n,r){var o={},a=0,s={},c=0;if(l(n,(function(e){s[e]=t[e]})),l(n,(function(t){u(e,t)&&(o[t]=s[t]=e[t]),h(o,t)&&a++,h(s,t)&&c++})),i[r])return h(e,n[1])?s[n[2]]=null:h(e,n[2])&&(s[n[1]]=null),s;if(2!==c&&a){if(a>=2)return o;for(var p=0;p<n.length;p++){var d=n[p];if(!u(o,d)&&u(t,d)){o[d]=t[d];break}}return o}return s}function u(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function p(t,e,n){l(t,(function(t){e[t]=n[t]}))}p(c[0],t,o),p(c[1],t,a)}function x(t){return _({},t)}function _(t,e){return e&&t&&l(u,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}r.curry(h,"vertical"),r.curry(h,"horizontal")})),o.register("gnWKD",(function(t,n){e(t.exports,"addCommas",(function(){return l})),e(t.exports,"toCamelCase",(function(){return u})),e(t.exports,"normalizeCssArray",(function(){return c})),e(t.exports,"makeValueReadable",(function(){return h})),e(t.exports,"formatTpl",(function(){return f})),e(t.exports,"formatTplSimple",(function(){return g})),e(t.exports,"getTooltipMarker",(function(){return y})),e(t.exports,"formatTime",(function(){return m})),e(t.exports,"capitalFirst",(function(){return v})),e(t.exports,"convertToColorString",(function(){return x})),e(t.exports,"windowOpen",(function(){return _})),e(t.exports,"encodeHTML",(function(){return o("049dS").encodeHTML}));var r=o("2fV2j"),i=o("049dS"),a=o("iIXbb"),s=o("fdJAh");function l(t){if(!(0,a.isNumeric)(t))return r.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function u(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}o("3yrYX"),o("73LCa");var c=r.normalizeCssArray;function h(t,e,n){function i(t){return t&&r.trim(t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?(0,a.parseDate)(t):t;if(!isNaN(+h))return(0,s.format)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return r.isStringSafe(t)?i(t):r.isNumber(t)&&o(t)?t+"":"-";var p=(0,a.numericToNumber)(t);return o(p)?l(p):r.isStringSafe(t)?i(t):"boolean"==typeof t?t+"":"-"}var p=["a","b","c","d","e","f","g"],d=function(t,e){return"{"+t+(null==e?"":e)+"}"};function f(t,e,n){r.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var l=p[s];t=t.replace(d(l),d(l,0))}for(var u=0;u<o;u++)for(var c=0;c<a.length;c++){var h=e[u][a[c]];t=t.replace(d(p[c],u),n?(0,i.encodeHTML)(h):h)}return t}function g(t,e,n){return r.each(e,(function(e,r){t=t.replace("{"+r+"}",n?(0,i.encodeHTML)(e):e)})),t}function y(t,e){var n=r.isString(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,i.encodeHTML)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,i.encodeHTML)(o)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function m(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=(0,a.parseDate)(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),l=r[i+"Month"]()+1,u=r[i+"Date"](),c=r[i+"Hours"](),h=r[i+"Minutes"](),p=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return t.replace("MM",(0,s.pad)(l,2)).replace("M",l).replace("yyyy",o).replace("yy",(0,s.pad)(o%100+"",2)).replace("dd",(0,s.pad)(u,2)).replace("d",u).replace("hh",(0,s.pad)(c,2)).replace("h",c).replace("mm",(0,s.pad)(h,2)).replace("m",h).replace("ss",(0,s.pad)(p,2)).replace("s",p).replace("SSS",(0,s.pad)(d,3))}function v(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function x(t,e){return e=e||"transparent",r.isString(t)?t:r.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function _(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}})),o.register("fdJAh",(function(t,n){e(t.exports,"ONE_SECOND",(function(){return l})),e(t.exports,"ONE_MINUTE",(function(){return u})),e(t.exports,"ONE_HOUR",(function(){return c})),e(t.exports,"ONE_DAY",(function(){return h})),e(t.exports,"ONE_YEAR",(function(){return p})),e(t.exports,"fullLeveledFormatter",(function(){return f})),e(t.exports,"timeUnits",(function(){return y})),e(t.exports,"pad",(function(){return m})),e(t.exports,"getPrimaryTimeUnit",(function(){return v})),e(t.exports,"isPrimaryTimeUnit",(function(){return x})),e(t.exports,"getDefaultFormatPrecisionOfInterval",(function(){return _})),e(t.exports,"format",(function(){return b})),e(t.exports,"fullYearGetterName",(function(){return I})),e(t.exports,"monthGetterName",(function(){return T})),e(t.exports,"dateGetterName",(function(){return A})),e(t.exports,"hoursGetterName",(function(){return C})),e(t.exports,"minutesGetterName",(function(){return D})),e(t.exports,"secondsGetterName",(function(){return k})),e(t.exports,"millisecondsGetterName",(function(){return L})),e(t.exports,"leveledFormat",(function(){return S})),e(t.exports,"getUnitValue",(function(){return M})),e(t.exports,"fullYearSetterName",(function(){return O})),e(t.exports,"monthSetterName",(function(){return P})),e(t.exports,"dateSetterName",(function(){return E})),e(t.exports,"hoursSetterName",(function(){return R})),e(t.exports,"minutesSetterName",(function(){return N})),e(t.exports,"secondsSetterName",(function(){return V})),e(t.exports,"millisecondsSetterName",(function(){return z}));var r=o("2fV2j"),i=o("iIXbb"),a=o("fJkwV"),s=o("1C7zE"),l=1e3,u=60*l,c=60*u,h=24*c,p=365*h,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},f={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+d.hour,minute:"{yyyy}-{MM}-{dd} "+d.minute,second:"{yyyy}-{MM}-{dd} "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],y=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function m(t,e){return"0000".substr(0,e-(t+="").length)+t}function v(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 x(t){return t===v(t)}function _(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(t,e,n,r){var o=i.parseDate(t),l=o[I(n)](),u=o[T(n)]()+1,c=Math.floor((u-1)/3)+1,h=o[A(n)](),p=o["get"+(n?"UTC":"")+"Day"](),d=o[C(n)](),f=(d-1)%12+1,g=o[D(n)](),y=o[k(n)](),v=o[L(n)](),x=(r instanceof s.default?r:(0,a.getLocaleModel)(r||a.SYSTEM_LANG)||(0,a.getDefaultLocaleModel)()).getModel("time"),_=x.get("month"),b=x.get("monthAbbr"),S=x.get("dayOfWeek"),w=x.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,m(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[u-1]).replace(/{MMM}/g,b[u-1]).replace(/{MM}/g,m(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,m(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,S[p]).replace(/{ee}/g,w[p]).replace(/{e}/g,p+"").replace(/{HH}/g,m(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,m(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,m(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,m(y,2)).replace(/{s}/g,y+"").replace(/{SSS}/g,m(v,3)).replace(/{S}/g,v+"")}function S(t,e,n,i,o){var a=null;if(r.isString(n))a=n;else if(r.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=r.extend({},d);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:r.defaults(n,s):s,c=w(t.value,o);if(u[c])a=u[c];else if(u.inherit){for(l=y.indexOf(c)-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(r.isArray(a)){var h=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[h=Math.min(h,a.length-1)]}}return b(new Date(t.value),a,o,i)}function w(t,e){var n=i.parseDate(t),r=n[T(e)]()+1,o=n[A(e)](),a=n[C(e)](),s=n[D(e)](),l=n[k(e)](),u=0===n[L(e)](),c=u&&0===l,h=c&&0===s,p=h&&0===a,d=p&&1===o;return d&&1===r?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function M(t,e,n){var o=r.isNumber(t)?i.parseDate(t):t;switch(e=e||w(t,n)){case"year":return o[I(n)]();case"half-year":return o[T(n)]()>=6?1:0;case"quarter":return Math.floor((o[T(n)]()+1)/4);case"month":return o[T(n)]();case"day":return o[A(n)]();case"half-day":return o[C(n)]()/24;case"hour":return o[C(n)]();case"minute":return o[D(n)]();case"second":return o[k(n)]();case"millisecond":return o[L(n)]()}}function I(t){return t?"getUTCFullYear":"getFullYear"}function T(t){return t?"getUTCMonth":"getMonth"}function A(t){return t?"getUTCDate":"getDate"}function C(t){return t?"getUTCHours":"getHours"}function D(t){return t?"getUTCMinutes":"getMinutes"}function k(t){return t?"getUTCSeconds":"getSeconds"}function L(t){return t?"getUTCMilliseconds":"getMilliseconds"}function O(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function E(t){return t?"setUTCDate":"setDate"}function R(t){return t?"setUTCHours":"setHours"}function N(t){return t?"setUTCMinutes":"setMinutes"}function V(t){return t?"setUTCSeconds":"setSeconds"}function z(t){return t?"setUTCMilliseconds":"setMilliseconds"}})),o.register("fJkwV",(function(t,n){e(t.exports,"SYSTEM_LANG",(function(){return f})),e(t.exports,"registerLocale",(function(){return g})),e(t.exports,"createLocaleObject",(function(){return y})),e(t.exports,"getLocaleModel",(function(){return m})),e(t.exports,"getDefaultLocaleModel",(function(){return v}));var r=o("1C7zE"),i=o("akmdr"),a=o("bhgdd"),s=o("kXlKN"),l=o("2fV2j"),u="ZH",c="EN",h=c,p={},d={},f=i.default.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||h).toUpperCase().indexOf(u)>-1?u:h;function g(t,e){t=t.toUpperCase(),d[t]=new(0,r.default)(e),p[t]=e}function y(t){if((0,l.isString)(t)){var e=p[t.toUpperCase()]||{};return t===u||t===c?(0,l.clone)(e):(0,l.merge)((0,l.clone)(e),(0,l.clone)(p.EN),!1)}return(0,l.merge)((0,l.clone)(t),(0,l.clone)(p.EN),!1)}function m(t){return d[t]}function v(){return d.EN}g(c,a.default),g(u,s.default)})),o.register("bhgdd",(function(t,n){e(t.exports,"default",(function(){return r}));var r={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:". "}}}}})),o.register("kXlKN",(function(t,n){e(t.exports,"default",(function(){return r}));var r={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:""}}}}})),o.register("73LCa",(function(t,n){e(t.exports,"getTextRect",(function(){return i}));var r=o("kjDai");function i(t,e,n,i,o,a,s,l){return new(0,r.default)({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:l}}).getBoundingRect()}})),o.register("5JeI8",(function(t,n){e(t.exports,"default",(function(){return o}));var r="";"undefined"!=typeof navigator&&(r=navigator.platform||"");var i="rgba(0, 0, 0, 0.2)",o={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:i,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:i,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:i,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:i,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:i,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:i,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:r.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}})),o.register("6ahuT",(function(t,n){e(t.exports,"BE_ORDINAL",(function(){return s})),e(t.exports,"resetSourceDefaulter",(function(){return u})),e(t.exports,"makeSeriesEncodeForAxisCoordSys",(function(){return c})),e(t.exports,"querySeriesUpstreamDatasetModel",(function(){return p})),e(t.exports,"makeSeriesEncodeForNameBased",(function(){return h})),e(t.exports,"queryDatasetUpstreamDatasetModels",(function(){return d})),e(t.exports,"guessOrdinal",(function(){return f}));var r=o("jnApb"),i=o("2fV2j"),a=o("cwqlf"),s={Must:1,Might:2,Not:3},l=(0,r.makeInner)();function u(t){l(t).datasetMap=(0,i.createHashMap)()}function c(t,e,n){var r={},o=p(e);if(!o||!t)return r;var a,s,u=[],c=[],h=e.ecModel,d=l(h).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,i.each)(t,(function(e,n){var o=(0,i.isObject)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,s=m(o)),r[o.name]=[]}));var g=d.get(f)||d.set(f,{categoryWayDim:s,valueWayDim:0});function y(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function m(t){var e=t.dimsDef;return e?e.length:1}return(0,i.each)(t,(function(t,e){var n=t.name,i=m(t);if(null==a){var o=g.valueWayDim;y(r[n],o,i),y(c,o,i),g.valueWayDim+=i}else a===e?(y(r[n],0,i),y(u,0,i)):(o=g.categoryWayDim,y(r[n],o,i),y(c,o,i),g.categoryWayDim+=i)})),u.length&&(r.itemName=u),c.length&&(r.seriesName=c),r}function h(t,e,n){var r={};if(!p(t))return r;var o,l=e.sourceFormat,u=e.dimensionsDefine;l!==a.SOURCE_FORMAT_OBJECT_ROWS&&l!==a.SOURCE_FORMAT_KEYED_COLUMNS||(0,i.each)(u,(function(t,e){"name"===((0,i.isObject)(t)?t.name:t)&&(o=e)}));var c=function(){for(var t={},r={},i=[],a=0,c=Math.min(5,n);a<c;a++){var h=g(e.data,l,e.seriesLayoutBy,u,e.startIndex,a);i.push(h);var p=h===s.Not;if(p&&null==t.v&&a!==o&&(t.v=a),(null==t.n||t.n===t.v||!p&&i[t.n]===s.Not)&&(t.n=a),d(t)&&i[t.n]!==s.Not)return t;p||(h===s.Might&&null==r.v&&a!==o&&(r.v=a),null!=r.n&&r.n!==r.v||(r.n=a))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(c){r.value=[c.v];var h=null!=o?o:c.n;r.itemName=[h],r.seriesName=[h]}return r}function p(t){if(!t.get("data",!0))return(0,r.queryReferringComponents)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},r.SINGLE_REFERRING).models[0]}function d(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,r.queryReferringComponents)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},r.SINGLE_REFERRING).models:[]}function f(t,e){return g(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function g(t,e,n,o,l,u){var c,h,p;if((0,i.isTypedArray)(t))return s.Not;if(o){var d=o[u];(0,i.isObject)(d)?(h=d.name,p=d.type):(0,i.isString)(d)&&(h=d)}if(null!=p)return"ordinal"===p?s.Must:s.Not;if(e===a.SOURCE_FORMAT_ARRAY_ROWS){var f=t;if(n===a.SERIES_LAYOUT_BY_ROW){for(var g=f[u],y=0;y<(g||[]).length&&y<5;y++)if(null!=(c=w(g[l+y])))return c}else for(y=0;y<f.length&&y<5;y++){var m=f[l+y];if(m&&null!=(c=w(m[u])))return c}}else if(e===a.SOURCE_FORMAT_OBJECT_ROWS){var v=t;if(!h)return s.Not;for(y=0;y<v.length&&y<5;y++)if((b=v[y])&&null!=(c=w(b[h])))return c}else if(e===a.SOURCE_FORMAT_KEYED_COLUMNS){var x=t;if(!h)return s.Not;if(!(g=x[h])||(0,i.isTypedArray)(g))return s.Not;for(y=0;y<g.length&&y<5;y++)if(null!=(c=w(g[y])))return c}else if(e===a.SOURCE_FORMAT_ORIGINAL){var _=t;for(y=0;y<_.length&&y<5;y++){var b=_[y],S=(0,r.getDataItemValue)(b);if(!(0,i.isArray)(S))return s.Not;if(null!=(c=w(S[u])))return c}}function w(t){var e=(0,i.isString)(t);return null!=t&&isFinite(t)&&""!==t?e?s.Might:s.Not:e&&"-"!==t?s.Must:void 0}return s.Not}})),o.register("cwqlf",(function(t,n){e(t.exports,"VISUAL_DIMENSIONS",(function(){return r})),e(t.exports,"SOURCE_FORMAT_ORIGINAL",(function(){return i})),e(t.exports,"SOURCE_FORMAT_ARRAY_ROWS",(function(){return a})),e(t.exports,"SOURCE_FORMAT_OBJECT_ROWS",(function(){return s})),e(t.exports,"SOURCE_FORMAT_KEYED_COLUMNS",(function(){return l})),e(t.exports,"SOURCE_FORMAT_TYPED_ARRAY",(function(){return u})),e(t.exports,"SOURCE_FORMAT_UNKNOWN",(function(){return c})),e(t.exports,"SERIES_LAYOUT_BY_COLUMN",(function(){return h})),e(t.exports,"SERIES_LAYOUT_BY_ROW",(function(){return p}));var r=(0,o("2fV2j").createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),i="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",p="row"})),o.register("epWMF",(function(t,n){e(t.exports,"registerInternalOptionCreator",(function(){return a})),e(t.exports,"concatInternalOptions",(function(){return s}));var r=o("2fV2j"),i=(0,r.createHashMap)();function a(t,e){(0,r.assert)(null==i.get(t)&&e),i.set(t,e)}function s(t,e,n){var r=i.get(e);if(!r)return n;var o=r(t);return o?n.concat(o):n}})),o.register("4mdeT",(function(t,n){e(t.exports,"PaletteMixin",(function(){return s})),e(t.exports,"getDecalFromPalette",(function(){return l}));var r=o("jnApb"),i=(0,r.makeInner)(),a=(0,r.makeInner)(),s=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=(0,r.normalizeToArray)(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,i,o,a,t,e,n)},t.prototype.clearColorPalette=function(){var t;(t=i)(this).paletteIdx=0,t(this).paletteNameMap={}},t}();function l(t,e,n,i){var o=(0,r.normalizeToArray)(t.get(["aria","decal","decals"]));return u(t,a,o,null,e,n,i)}function u(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}}})),o.register("3ds5n",(function(t,n){e(t.exports,"warn",(function(){return a})),e(t.exports,"error",(function(){return s})),e(t.exports,"deprecateLog",(function(){return l})),e(t.exports,"throwError",(function(){return u}));var r={},i="undefined"!=typeof console&&console.warn&&console.log;function o(t,e,n){if(i){if(n){if(r[e])return;r[e]=!0}console[t]("[ECharts] "+e)}}function a(t,e){o("warn",t,e)}function s(t,e){o("error",t,e)}function l(t){}function u(t){throw new Error(t)}})),o.register("j6EDF",(function(t,n){e(t.exports,"default",(function(){return a}));var r=o("2fV2j"),i=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],a=function(t){r.each(i,(function(e){this[e]=r.bind(t[e],t)}),this)}})),o.register("gqZ26",(function(t,n){e(t.exports,"default",(function(){return a}));var r=o("2fV2j"),i={},a=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];r.each(i,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){r.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){i[t]=e},t.get=function(t){return i[t]},t}()})),o.register("cE7wv",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("jnApb"),i=o("2fV2j"),a=/^(min|max)?(.+)$/;function s(t,e,n){var r={width:e,height:n,aspectratio:e/n},o=!0;return(0,i.each)(t,(function(t,e){var n=e.match(a);if(n&&n[1]&&n[2]){var i=n[1],s=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[s],t,i)||(o=!1)}})),o}var l=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,i.each)((0,r.normalizeToArray)(t.series),(function(t){t&&t.data&&(0,i.isTypedArray)(t.data)&&(0,i.setAsPrimitive)(t.data)})),(0,i.each)((0,r.normalizeToArray)(t.dataset),(function(t){t&&t.source&&(0,i.isTypedArray)(t.source)&&(0,i.setAsPrimitive)(t.source)}))),t=(0,i.clone)(t);var o=this._optionBackup,a=function(t,e,n){var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,p=!!(u||l||s&&s.timeline);function d(t){(0,i.each)(e,(function(e){e(t,n)}))}return s?(o=s).timeline||(o.timeline=l):((p||h)&&(t.options=t.media=null),o=t),h&&(0,i.isArray)(c)&&(0,i.each)(c,(function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))})),d(o),(0,i.each)(u,(function(t){return d(t)})),(0,i.each)(a,(function(t){return d(t.option)})),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}(t,e,!o);this._newBaseOption=a.baseOption,o?(a.timelineOptions.length&&(o.timelineOptions=a.timelineOptions),a.mediaList.length&&(o.mediaList=a.mediaList),a.mediaDefault&&(o.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,i.clone)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=(0,i.clone)(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),o=this._api.getHeight(),a=this._mediaList,l=this._mediaDefault,u=[],c=[];if(!a.length&&!l)return c;for(var h=0,p=a.length;h<p;h++)s(a[h].query,r,o)&&u.push(h);return!u.length&&l&&(u=[-1]),u.length&&(e=u,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(c=(0,i.map)(u,(function(t){return(0,i.clone)(-1===t?l.option:a[t].option)}))),this._currentMediaIndices=u,c},t}()})),o.register("16qAa",(function(t,n){e(t.exports,"default",(function(){return g}));var r=o("2fV2j"),i=o("junM7"),a=o("jnApb");function s(t){t&&(0,r.each)(l,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var l=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function h(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<c.length;n++){var r=c[n][1],i=c[n][0];null!=e[r]&&(e[i]=e[r])}}function p(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function d(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function f(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&f(t[n].children,e)}function g(t,e){(0,i.default)(t,e),t.series=(0,a.normalizeToArray)(t.series),(0,r.each)(t.series,(function(t){if((0,r.isObject)(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),p(t.label),(o=t.data)&&!(0,r.isTypedArray)(o))for(var n=0;n<o.length;n++)p(o[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var i=function(t,e){for(var n="pointer.color".split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t);null!=i&&function(t,e,n,r){for(var i,o="itemStyle.color".split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];null==a[o[s]]&&(a[o[s]]=n)}(t,0,i)}else if("bar"===e){var o;if(h(t),h(t.backgroundStyle),h(t.emphasis),(o=t.data)&&!(0,r.isTypedArray)(o))for(n=0;n<o.length;n++)"object"==typeof o[n]&&(h(o[n]),h(o[n]&&o[n].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),d(t),f(t.data,d)}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&&(0,r.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),s(t)}})),t.dataRange&&(t.visualMap=t.dataRange),(0,r.each)(u,(function(e){var n=t[e];n&&((0,r.isArray)(n)||(n=[n]),(0,r.each)(n,(function(t){s(t)})))}))}})),o.register("junM7",(function(t,n){e(t.exports,"default",(function(){return y}));var r=o("2fV2j"),i=o("jnApb"),a=r.each,s=r.isObject,l=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=l.length;n<i;n++){var o=l[n],a=e.normal,s=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?r.merge(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?r.merge(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function c(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,o=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,r.defaults(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o,o.focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope))}}function h(t){c(t,"itemStyle"),c(t,"lineStyle"),c(t,"areaStyle"),c(t,"label"),c(t,"labelLine"),c(t,"upperLabel"),c(t,"edgeLabel")}function p(t,e){var n=s(t)&&t[e],r=s(n)&&n.textStyle;if(r)for(var o=0,a=i.TEXT_STYLE_OPTIONS.length;o<a;o++){var l=i.TEXT_STYLE_OPTIONS[o];r.hasOwnProperty(l)&&(n[l]=r[l])}}function d(t){t&&(h(t),p(t,"label"),t.emphasis&&p(t.emphasis,"label"))}function f(t){return r.isArray(t)?t:t?[t]:[]}function g(t){return(r.isArray(t)?t[0]:t)||{}}function y(t,e){a(f(t.series),(function(t){s(t)&&function(t){if(s(t)){u(t),h(t),p(t,"label"),p(t,"upperLabel"),p(t,"edgeLabel"),t.emphasis&&(p(t.emphasis,"label"),p(t.emphasis,"upperLabel"),p(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u(e),d(e));var n=t.markLine;n&&(u(n),d(n));var i=t.markArea;i&&d(i);var o=t.data;if("graph"===t.type){o=o||t.nodes;var a=t.links||t.edges;if(a&&!r.isTypedArray(a))for(var l=0;l<a.length;l++)d(a[l]);r.each(t.categories,(function(t){h(t)}))}if(o&&!r.isTypedArray(o))for(l=0;l<o.length;l++)d(o[l]);if((e=t.markPoint)&&e.data){var f=e.data;for(l=0;l<f.length;l++)d(f[l])}if((n=t.markLine)&&n.data){var g=n.data;for(l=0;l<g.length;l++)r.isArray(g[l])?(d(g[l][0]),d(g[l][1])):d(g[l])}"gauge"===t.type?(p(t,"axisLabel"),p(t,"title"),p(t,"detail")):"treemap"===t.type?(c(t.breadcrumb,"itemStyle"),r.each(t.levels,(function(t){h(t)}))):"tree"===t.type&&h(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),a(n,(function(e){a(f(t[e]),(function(t){t&&(p(t,"axisLabel"),p(t.axisPointer,"label"))}))})),a(f(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;p(e,"axisLabel"),p(e&&e.axisPointer,"label")})),a(f(t.calendar),(function(t){c(t,"itemStyle"),p(t,"dayLabel"),p(t,"monthLabel"),p(t,"yearLabel")})),a(f(t.radar),(function(t){p(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)})),a(f(t.geo),(function(t){s(t)&&(d(t),a(f(t.regions),(function(t){d(t)})))})),a(f(t.timeline),(function(t){d(t),c(t,"label"),c(t,"itemStyle"),c(t,"controlStyle",!0);var e=t.data;r.isArray(e)&&r.each(e,(function(t){r.isObject(t)&&(c(t,"label"),c(t,"itemStyle"))}))})),a(f(t.toolbox),(function(t){c(t,"iconStyle"),a(t.feature,(function(t){c(t,"iconStyle")}))})),p(g(t.axisPointer),"label"),p(g(t.tooltip).axisPointer,"label")}})),o.register("2brhl",(function(t,n){e(t.exports,"default",(function(){return a}));var r=o("2fV2j"),i=o("iIXbb");function a(t){var e=(0,r.createHashMap)();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(s)}function s(t){(0,r.each)(t,(function(e,n){var r=[],o=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],s=e.data,l=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";s.modify(a,(function(a,c,h){var p,d,f=s.get(e.stackedDimension,h);if(isNaN(f))return o;l?d=s.getRawIndex(h):p=s.get(e.stackedByDimension,h);for(var g=NaN,y=n-1;y>=0;y--){var m=t[y];if(l||(d=m.data.rawIndexOf(m.stackedByDimension,p)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===u||"positive"===u&&v>0||"negative"===u&&v<0||"samesign"===u&&f>=0&&v>0||"samesign"===u&&f<=0&&v<0){f=(0,i.addSafe)(f,v),g=v;break}}}return r[0]=f,r[1]=g,r}))}))}})),o.register("icZIP",(function(t,n){e(t.exports,"SERIES_UNIVERSAL_TRANSITION_PROP",(function(){return v})),e(t.exports,"default",(function(){return A}));var r=o("2pli3"),i=o("2fV2j"),a=o("akmdr"),s=o("jnApb"),l=o("krEnk"),u=o("4mdeT"),c=o("5cO6H"),h=o("aZMsI"),p=o("5TqOU"),d=o("fyXJH"),f=o("2kumC"),g=o("b9GIG"),y=s.makeInner();function m(t,e){return t.getName(e)||t.getId(e)}var v="__universalTransitionEnabled",x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return(0,r.__extends)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,p.createTask)({count:b,reset:S}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(y(this).sourceManager=new(0,f.SourceManager)(this)).prepareSource();var r=this.getInitialData(t,n);M(r,this),this.dataTask.context.data=r,y(this).dataBeforeProcessed=r,_(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,h.fetchLayoutMode)(this),r=n?(0,h.getLayoutParams)(t):{},o=this.subType;l.default.hasClass(o)&&(o+="Series"),i.merge(t,e.getTheme().get(this.subType)),i.merge(t,this.getDefaultOption()),s.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,h.mergeLayoutParam)(t,r,n)},e.prototype.mergeOption=function(t,e){t=i.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,h.fetchLayoutMode)(this);n&&(0,h.mergeLayoutParam)(this.option,t,n);var r=y(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(t,e);M(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,y(this).dataBeforeProcessed=o,_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!i.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&s.defaultEmphasis(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=T(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return y(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=T(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}y(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return i.createHashMap(t)},e.prototype.getSourceManager=function(){return y(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return y(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.formatTooltip=function(t,e,n){return(0,g.defaultSeriesFormatTooltip)({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(a.default.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=u.PaletteMixin.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=m(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=i.keys(t),n=[],r=0;r<e.length;r++){var o=t[e[r]];o>=0&&n.push(o)}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[m(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=e[u];l[p=m(t,c)]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1],p=m(t,h);o.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((r={})[p]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return l.default.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(l.default);function _(t){var e=t.name;s.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function b(t){return t.model.getRawData().count()}function S(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function M(t,e){i.each(i.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,i.curry(I,e))}))}function I(t,e){var n=T(t);return n&&n.setOutputEnd((e||this).count()),e}function T(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}}i.mixin(x,c.DataFormatMixin),i.mixin(x,u.PaletteMixin),(0,d.mountExtend)(x,l.default);var A=x})),o.register("5cO6H",(function(t,n){e(t.exports,"DataFormatMixin",(function(){return l})),e(t.exports,"normalizeTooltipFormatResult",(function(){return u}));var r=o("2fV2j"),i=o("3INyz"),a=o("gnWKD"),s=/\{@(.+?)\}/g,l=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,p=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:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,o,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);return u&&(h.value=u.interpolatedValue),null!=o&&r.isArray(h.value)&&(h.value=h.value[o]),l||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),r.isFunction(l)?(h.status=e,h.dimensionIndex=o,l(h)):r.isString(l)?(0,a.formatTpl)(l,h).replace(s,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,i.retrieveRawValue)(c,t,a);if(u&&r.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return(0,i.retrieveRawValue)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u(t){var e,n;return r.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}})),o.register("3INyz",(function(t,n){e(t.exports,"DefaultDataProvider",(function(){return d})),e(t.exports,"getRawSourceItemGetter",(function(){return y})),e(t.exports,"getRawSourceDataCounter",(function(){return x})),e(t.exports,"getRawSourceValueGetter",(function(){return S})),e(t.exports,"retrieveRawValue",(function(){return M}));var r,i,a,s,l,u=o("2fV2j"),c=o("jnApb"),h=o("ckvRB"),p=o("cwqlf"),d=function(){function t(t,e){var n=(0,h.isSourceInstance)(t)?t:(0,h.createSourceFromSeriesDataOption)(t);this._source=n;var r=this._data=n.data;n.sourceFormat===p.SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=e,this._data=r),l(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;l=function(t,i,o){var a=o.sourceFormat,l=o.seriesLayoutBy,c=o.startIndex,h=o.dimensionsDefine,d=s[w(a,l)];if((0,u.extend)(t,d),a===p.SOURCE_FORMAT_TYPED_ARRAY)t.getItem=e,t.count=r,t.fillStorage=n;else{var f=y(a,l);t.getItem=(0,u.bind)(f,null,i,c,h);var g=x(a,l);t.count=(0,u.bind)(g,null,i,c,h)}};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],p=0;p<c;p++){var d=i[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}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={})[p.SOURCE_FORMAT_ARRAY_ROWS+"_"+p.SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:i},t[p.SOURCE_FORMAT_ARRAY_ROWS+"_"+p.SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[p.SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:i},t[p.SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(t){var e=this._data;(0,u.each)(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[p.SOURCE_FORMAT_ORIGINAL]={appendData:i},t[p.SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},s=t}(),t}(),f=function(t,e,n,r){return t[r]},g=((r={})[p.SOURCE_FORMAT_ARRAY_ROWS+"_"+p.SERIES_LAYOUT_BY_COLUMN]=function(t,e,n,r){return t[r+e]},r[p.SOURCE_FORMAT_ARRAY_ROWS+"_"+p.SERIES_LAYOUT_BY_ROW]=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},r[p.SOURCE_FORMAT_OBJECT_ROWS]=f,r[p.SOURCE_FORMAT_KEYED_COLUMNS]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[r]:null}return o},r[p.SOURCE_FORMAT_ORIGINAL]=f,r);function y(t,e){return g[w(t,e)]}var m=function(t,e,n){return t.length},v=((i={})[p.SOURCE_FORMAT_ARRAY_ROWS+"_"+p.SERIES_LAYOUT_BY_COLUMN]=function(t,e,n){return Math.max(0,t.length-e)},i[p.SOURCE_FORMAT_ARRAY_ROWS+"_"+p.SERIES_LAYOUT_BY_ROW]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},i[p.SOURCE_FORMAT_OBJECT_ROWS]=m,i[p.SOURCE_FORMAT_KEYED_COLUMNS]=function(t,e,n){var r=t[n[0].name];return r?r.length:0},i[p.SOURCE_FORMAT_ORIGINAL]=m,i);function x(t,e){return v[w(t,e)]}var _=function(t,e,n){return t[e]},b=((a={})[p.SOURCE_FORMAT_ARRAY_ROWS]=_,a[p.SOURCE_FORMAT_OBJECT_ROWS]=function(t,e,n){return t[n]},a[p.SOURCE_FORMAT_KEYED_COLUMNS]=_,a[p.SOURCE_FORMAT_ORIGINAL]=function(t,e,n){var r=(0,c.getDataItemValue)(t);return r instanceof Array?r[e]:r},a[p.SOURCE_FORMAT_TYPED_ARRAY]=_,a);function S(t){return b[t]}function w(t,e){return t===p.SOURCE_FORMAT_ARRAY_ROWS?t+"_"+e:t}function M(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 S(o)(r,a,s)}var l=r;return o===p.SOURCE_FORMAT_ORIGINAL&&(l=(0,c.getDataItemValue)(r)),l}}}})),o.register("ckvRB",(function(t,n){e(t.exports,"isSourceInstance",(function(){return u})),e(t.exports,"createSource",(function(){return c})),e(t.exports,"detectSourceFormat",(function(){return d})),e(t.exports,"createSourceFromSeriesDataOption",(function(){return h})),e(t.exports,"cloneSourceShallow",(function(){return p})),e(t.exports,"shouldRetrieveDataByName",(function(){return y}));var r=o("2fV2j"),i=o("cwqlf"),a=o("jnApb"),s=o("6ahuT"),l=function(t){this.data=t.data||(t.sourceFormat===i.SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||i.SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||i.SERIES_LAYOUT_BY_COLUMN,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&&(0,s.guessOrdinal)(this,n)===s.BE_ORDINAL.Must&&(r.type="ordinal")}};function u(t){return t instanceof l}function c(t,e,n){n=n||d(t);var o=e.seriesLayoutBy,s=function(t,e,n,o,s){var l,u;if(!t)return{dimensionsDefine:f(s),startIndex:u,dimensionsDetectedCount:l};if(e===i.SOURCE_FORMAT_ARRAY_ROWS){var c=t;"auto"===o||null==o?g((function(t){null!=t&&"-"!==t&&((0,r.isString)(t)?null==u&&(u=1):u=0)}),n,c,10):u=(0,r.isNumber)(o)?o:o?1:0,s||1!==u||(s=[],g((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),l=s?s.length:n===i.SERIES_LAYOUT_BY_ROW?c.length:c[0]?c[0].length:null}else if(e===i.SOURCE_FORMAT_OBJECT_ROWS)s||(s=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return(0,r.keys)(e)}(t));else if(e===i.SOURCE_FORMAT_KEYED_COLUMNS)s||(s=[],(0,r.each)(t,(function(t,e){s.push(e)})));else if(e===i.SOURCE_FORMAT_ORIGINAL){var h=(0,a.getDataItemValue)(t[0]);l=(0,r.isArray)(h)&&h.length||1}return{startIndex:u,dimensionsDefine:f(s),dimensionsDetectedCount:l}}(t,n,o,e.sourceHeader,e.dimensions);return new l({data:t,sourceFormat:n,seriesLayoutBy:o,dimensionsDefine:s.dimensionsDefine,startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount,metaRawOption:(0,r.clone)(e)})}function h(t){return new l({data:t,sourceFormat:(0,r.isTypedArray)(t)?i.SOURCE_FORMAT_TYPED_ARRAY:i.SOURCE_FORMAT_ORIGINAL})}function p(t){return new l({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,r.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function d(t){var e=i.SOURCE_FORMAT_UNKNOWN;if((0,r.isTypedArray)(t))e=i.SOURCE_FORMAT_TYPED_ARRAY;else if((0,r.isArray)(t)){0===t.length&&(e=i.SOURCE_FORMAT_ARRAY_ROWS);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,r.isArray)(a)||(0,r.isTypedArray)(a)){e=i.SOURCE_FORMAT_ARRAY_ROWS;break}if((0,r.isObject)(a)){e=i.SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if((0,r.isObject)(t))for(var s in t)if((0,r.hasOwn)(t,s)&&(0,r.isArrayLike)(t[s])){e=i.SOURCE_FORMAT_KEYED_COLUMNS;break}return e}function f(t){if(t){var e=(0,r.createHashMap)();return(0,r.map)(t,(function(t,n){var i={name:(t=(0,r.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i}))}}function g(t,e,n,r){if(e===i.SERIES_LAYOUT_BY_ROW)for(var o=0;o<n.length&&o<r;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<r;o++)t(a[o],o)}}function y(t){var e=t.sourceFormat;return e===i.SOURCE_FORMAT_OBJECT_ROWS||e===i.SOURCE_FORMAT_KEYED_COLUMNS}})),o.register("5TqOU",(function(t,n){e(t.exports,"createTask",(function(){return i}));var r=o("2fV2j");function i(t){return new a(t)}var a=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,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=u,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(a||d<f)){var g=this._progress;if((0,r.isArray)(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],d,f,u,c);else this._doProgress(g,d,f,u,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}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){s.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:s.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),(0,r.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),s=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}}()})),o.register("2kumC",(function(t,n){e(t.exports,"SourceManager",(function(){return h})),e(t.exports,"disableTransformOptionMerge",(function(){return p}));var r=o("2fV2j"),i=o("ckvRB"),a=o("cwqlf"),s=o("6ahuT"),l=o("2ljNz"),u=o("2DbjB"),c=o("3INyz"),h=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,o=this._getUpstreamSourceManagers(),s=!!o.length;if(d(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var p=o[0];p.prepareSource(),u=(h=p.getSource()).data,c=h.sourceFormat,e=[p._getVersionSign()]}else u=l.get("data",!0),c=(0,r.isTypedArray)(u)?a.SOURCE_FORMAT_TYPED_ARRAY:a.SOURCE_FORMAT_ORIGINAL,e=[];var f=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},y=(0,r.retrieve2)(f.seriesLayoutBy,g.seriesLayoutBy)||null,m=(0,r.retrieve2)(f.sourceHeader,g.sourceHeader),v=(0,r.retrieve2)(f.dimensions,g.dimensions);t=y!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||v?[(0,i.createSource)(u,{seriesLayoutBy:y,sourceHeader:m,dimensions:v},c)]:[]}else{var x=n;if(s){var _=this._applyTransform(o);t=_.sourceList,e=_.upstreamSignList}else{var b=x.get("source",!0);t=[(0,i.createSource)(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);null!=a&&1!==t.length&&f("");var s=[],u=[];return(0,r.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||f(""),s.push(e),u.push(t._getVersionSign())})),o?e=(0,l.applyDataTransform)(o,s,{datasetIndex:n.componentIndex}):null!=a&&(e=[(0,i.cloneSourceShallow)(s[0])]),{sourceList:e,upstreamSignList:u}},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];d(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new(0,u.default)).initData(new(0,c.DefaultDataProvider)(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(d(t)){var e=(0,s.querySeriesUpstreamDatasetModel)(t);return e?[e.getSourceManager()]:[]}return(0,r.map)((0,s.queryDatasetUpstreamDatasetModels)(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(d(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 p(t){t.option.transform&&(0,r.setAsPrimitive)(t.option.transform)}function d(t){return"series"===t.mainType}function f(t){throw new Error(t)}})),o.register("2ljNz",(function(t,n){e(t.exports,"registerExternalTransform",(function(){return m})),e(t.exports,"applyDataTransform",(function(){return v}));var r=o("cwqlf"),i=o("jnApb"),a=o("2fV2j"),s=o("3INyz"),l=o("9L5Mv"),u=o("3ds5n"),c=o("ckvRB"),h=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(0,l.parseDataValue)(t,e)},t}();function p(t){return _(t.sourceFormat)||(0,u.throwError)(""),t.data}function d(t){var e=t.sourceFormat,n=t.data;if(_(e)||(0,u.throwError)(""),e===r.SOURCE_FORMAT_ARRAY_ROWS){for(var i=[],o=0,s=n.length;o<s;o++)i.push(n[o].slice());return i}if(e===r.SOURCE_FORMAT_OBJECT_ROWS){for(i=[],o=0,s=n.length;o<s;o++)i.push((0,a.extend)({},n[o]));return i}}function f(t,e,n){if(null!=n)return(0,a.isNumber)(n)||!isNaN(n)&&!(0,a.hasOwn)(e,n)?t[n]:(0,a.hasOwn)(e,n)?e[n]:void 0}function g(t){return(0,a.clone)(t)}var y=(0,a.createHashMap)();function m(t){var e=(t=(0,a.clone)(t)).type;e||(0,u.throwError)("");var n=e.split(":");2!==n.length&&(0,u.throwError)("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,y.set(e,t)}function v(t,e,n){var r=(0,i.normalizeToArray)(t),o=r.length;o||(0,u.throwError)("");for(var a=0,s=o;a<s;a++)e=x(r[a],e,n,1===o?null:a),a!==s-1&&(e.length=Math.max(e.length,1));return e}function x(t,e,n,o){e.length||(0,u.throwError)(""),(0,a.isObject)(t)||(0,u.throwError)("");var l=t.type,m=y.get(l);m||(0,u.throwError)("");var v=(0,a.map)(e,(function(t){return function(t,e){var n=new h,i=t.data,o=n.sourceFormat=t.sourceFormat,l=t.startIndex;t.seriesLayoutBy!==r.SERIES_LAYOUT_BY_COLUMN&&(0,u.throwError)("");var c=[],y={},m=t.dimensionsDefine;if(m)(0,a.each)(m,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};c.push(r),null!=n&&((0,a.hasOwn)(y,n)&&(0,u.throwError)(""),y[n]=r)}));else for(var v=0;v<t.dimensionsDetectedCount;v++)c.push({index:v});var x=(0,s.getRawSourceItemGetter)(o,r.SERIES_LAYOUT_BY_COLUMN);e.__isBuiltIn&&(n.getRawDataItem=function(t){return x(i,l,c,t)},n.getRawData=(0,a.bind)(p,null,t)),n.cloneRawData=(0,a.bind)(d,null,t);var _=(0,s.getRawSourceDataCounter)(o,r.SERIES_LAYOUT_BY_COLUMN);n.count=(0,a.bind)(_,null,i,l,c);var b=(0,s.getRawSourceValueGetter)(o);n.retrieveValue=function(t,e){var n=x(i,l,c,t);return S(n,e)};var S=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=c[e];return n?b(t,e,n.name):void 0}};return n.getDimensionInfo=(0,a.bind)(f,null,c,y),n.cloneAllDimensionInfo=(0,a.bind)(g,null,c),n}(t,m)})),x=(0,i.normalizeToArray)(m.transform({upstream:v[0],upstreamList:v,config:(0,a.clone)(t.config)}));return(0,a.map)(x,(function(t,n){var i;(0,a.isObject)(t)||(0,u.throwError)(""),t.data||(0,u.throwError)(""),_((0,c.detectSourceFormat)(t.data))||(0,u.throwError)("");var o=e[0];if(o&&0===n&&!t.dimensions){var s=o.startIndex;s&&(t.data=o.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:r.SERIES_LAYOUT_BY_COLUMN,sourceHeader:s,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:r.SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:t.dimensions};return(0,c.createSource)(t.data,i,null)}))}function _(t){return t===r.SOURCE_FORMAT_ARRAY_ROWS||t===r.SOURCE_FORMAT_OBJECT_ROWS}})),o.register("9L5Mv",(function(t,n){e(t.exports,"parseDataValue",(function(){return s})),e(t.exports,"getRawValueParser",(function(){return u})),e(t.exports,"SortOrderComparator",(function(){return p})),e(t.exports,"createFilterComparator",(function(){return f}));var r=o("iIXbb"),i=o("2fV2j"),a=o("3ds5n");function s(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,i.isNumber)(t)||null==t||"-"===t||(t=+(0,r.parseDate)(t)),null==t||""===t?NaN:+t)}var l=(0,i.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+(0,r.parseDate)(t)},trim:function(t){return(0,i.isString)(t)?(0,i.trim)(t):t}});function u(t){return l.get(t)}var c={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},h=function(){function t(t,e){(0,i.isNumber)(e)||(0,a.throwError)(""),this._opFn=c[t],this._rvalFloat=(0,r.numericToNumber)(e)}return t.prototype.evaluate=function(t){return(0,i.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,r.numericToNumber)(t),this._rvalFloat)},t}(),p=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=(0,i.isNumber)(t)?t:(0,r.numericToNumber)(t),o=(0,i.isNumber)(e)?e:(0,r.numericToNumber)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,i.isString)(t),u=(0,i.isString)(e);l&&(n=u?t:0),u&&(o=l?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),d=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,r.numericToNumber)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=(0,r.numericToNumber)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function f(t,e){return"eq"===t||"ne"===t?new d("eq"===t,e):(0,i.hasOwn)(c,t)?new h(t,e):null}})),o.register("2DbjB",(function(t,n){e(t.exports,"CtorInt32Array",(function(){return h})),e(t.exports,"default",(function(){return y}));var r,i=o("2fV2j"),a=o("9L5Mv"),s=o("ckvRB"),l="undefined",u=typeof Uint32Array===l?Array:Uint32Array,c=typeof Uint16Array===l?Array:Uint16Array,h=typeof Int32Array===l?Array:Int32Array,p=typeof Float64Array===l?Array:Float64Array,d={float:p,int:h,ordinal:Array,number:Array,time:p};function f(t){return t>65535?u:c}function g(t,e,n,r,i){var o=d[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 y=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,i.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),a=this.defaultDimValueGetter=r[o.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],(0,s.shouldRetrieveDataByName)(o),this._dimensions=(0,i.map)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new d[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,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<o;u++)g(n,u,(f=i[u]).type,l,!0);for(var c=[],h=s;h<l;h++)for(var p=h-s,d=0;d<o;d++){var f=i[d],y=r.arrayRows.call(this,t[p]||c,f.property,p,d);n[d][h]=y;var m=a[d];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=(0,i.map)(a,(function(t){return t.property})),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=[1/0,-1/0]),g(o,c,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,o,l);else for(var p=[],d=t;d<e;d++){p=r.getItem(d,p);for(var f=0;f<s;f++){var y=o[f],m=this._dimValueGetter(p,u[f],d,f);y[d]=m;var v=l[f];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}!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)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;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.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},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 for(t=new(n=f(this._rawCount))(this.count()),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(f(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][p],c);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(i[s++]=p)}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=(0,i.keys)(t),o=r.length;if(!o)return this;var a=e.count(),s=new(f(e._rawCount))(a),l=0,u=r[0],c=t[u][0],h=t[u][1],p=e._chunks,d=!1;if(!e._indices){var g=0;if(1===o){for(var y=p[r[0]],m=0;m<n;m++)((b=y[m])>=c&&b<=h||isNaN(b))&&(s[l++]=g),g++;d=!0}else if(2===o){y=p[r[0]];var v=p[r[1]],x=t[r[1]][0],_=t[r[1]][1];for(m=0;m<n;m++){var b=y[m],S=v[m];(b>=c&&b<=h||isNaN(b))&&(S>=x&&S<=_||isNaN(S))&&(s[l++]=g),g++}d=!0}}if(!d)if(1===o)for(m=0;m<a;m++){var w=e.getRawIndex(m);((b=p[r[0]][w])>=c&&b<=h||isNaN(b))&&(s[l++]=w)}else for(m=0;m<a;m++){for(var M=!0,I=(w=e.getRawIndex(m),0);I<o;I++){var T=r[I];((b=p[T][w])<t[T][0]||b>t[T][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(m))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=r[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(i[0]=d,d=i),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],m=r[f];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[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(f(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),g=Math.min(p+2*u,s),y=(g+d)/2,m=0,v=d;v<g;v++){var x=a[T=this.getRawIndex(v)];isNaN(x)||(m+=x)}m/=g-d;var _=p,b=Math.min(p+u,s),S=p-1,w=a[c];n=-1,i=_;var M=-1,I=0;for(v=_;v<b;v++){var T;x=a[T=this.getRawIndex(v)],isNaN(x)?(I++,M<0&&(M=T)):(r=Math.abs((S-y)*(x-w)-(S-v)*(m-w)))>n&&(n=r,i=T)}I>0&&I<b-_&&(h[l++]=Math.min(M,i),i=Math.max(M,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.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(f(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var g=0;g<s;g++){var y=this.getRawIndex(d+g);a[g]=l[y]}var m=n(a),v=this.getRawIndex(Math.min(d+r(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[p++]=v}return i._count=p,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,o,a=new t,s=this._chunks,l=e&&(0,i.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(l)for(var u=0;u<s.length;u++)a._chunks[u]=l[u]?(o=void 0,(o=(r=s[u]).constructor)===Array?r.slice():new o(r)):s[u];else a._chunks=s;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,i.clone)(this._extent),t._rawExtent=(0,i.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return(0,a.parseDataValue)(t[r],this._dimensions[r])}r={arrayRows:t,objectRows:function(t,e,n,r){return(0,a.parseDataValue)(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return(0,a.parseDataValue)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}()})),o.register("b9GIG",(function(t,n){e(t.exports,"defaultSeriesFormatTooltip",(function(){return l}));var r=o("2fV2j"),i=o("dcFkT"),a=o("3INyz"),s=o("jnApb");function l(t){var e,n,o,l,u=t.series,c=t.dataIndex,h=t.multipleSeries,p=u.getData(),d=p.mapDimensionsAll("defaultedTooltip"),f=d.length,g=u.getRawValue(c),y=(0,r.isArray)(g),m=(0,i.retrieveVisualColorForTooltipMarker)(u,c);if(f>1||y&&!f){var v=function(t,e,n,o,s){var l=e.getData(),u=(0,r.reduce)(t,(function(t,e,n){var r=l.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],h=[],p=[];function d(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?p.push((0,i.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),h.push(n.type)))}return o.length?(0,r.each)(o,(function(t){d((0,a.retrieveRawValue)(l,n,t),t)})):(0,r.each)(t,d),{inlineValues:c,inlineValueTypes:h,blocks:p}}(g,u,c,d,m);e=v.inlineValues,n=v.inlineValueTypes,o=v.blocks,l=v.inlineValues[0]}else if(f){var x=p.getDimensionInfo(d[0]);l=e=(0,a.retrieveRawValue)(p,c,d[0]),n=x.type}else l=e=y?g[0]:g;var _=(0,s.isNameSpecified)(u),b=_&&u.name||"",S=p.getName(c),w=h?b:S;return(0,i.createTooltipMarkup)("section",{header:b,noHeader:h||!_,sortParam:l,blocks:[(0,i.createTooltipMarkup)("nameValue",{markerType:"item",markerColor:m,name:w,noName:!(0,r.trim)(w),value:e,valueType:n,dataIndex:c})].concat(o||[])})}})),o.register("dcFkT",(function(t,n){e(t.exports,"createTooltipMarkup",(function(){return p})),e(t.exports,"buildTooltipMarkup",(function(){return v})),e(t.exports,"retrieveVisualColorForTooltipMarker",(function(){return b})),e(t.exports,"getPaddingFromTooltipModel",(function(){return S})),e(t.exports,"TooltipMarkupStyleCreator",(function(){return w})),o("gnWKD");var r=o("049dS"),i=o("gnWKD"),a=o("2fV2j"),s=o("9L5Mv"),l=o("iIXbb");function u(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,r.encodeHTML)(i+"")+"px;color:"+(0,r.encodeHTML)(n)+";font-weight:"+(0,r.encodeHTML)(o+""),valueStyle:"font-size:"+(0,r.encodeHTML)(s+"")+"px;color:"+(0,r.encodeHTML)(a)+";font-weight:"+(0,r.encodeHTML)(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function p(t,e){return e.type=t,e}function d(t){return"section"===t.type}function f(t){return d(t)?y:m}function g(t){if(d(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return(0,a.each)(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(r&&(!n||d(t)&&!t.noHeader)))})),e}return 0}function y(t,e,n,o){var l,p=e.noHeader,d=(l=g(e),{html:c[l],richText:h[l]}),y=[],m=e.blocks||[];(0,a.assert)(!m||(0,a.isArray)(m)),m=m||[];var v=t.orderMode;if(e.sortBlocks&&v){m=m.slice();var b={valueAsc:"asc",valueDesc:"desc"};if((0,a.hasOwn)(b,v)){var S=new(0,s.SortOrderComparator)(b[v],null);m.sort((function(t,e){return S.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===v&&m.reverse()}(0,a.each)(m,(function(n,r){var i=e.valueFormatter,s=f(n)(i?(0,a.extend)((0,a.extend)({},t),{valueFormatter:i}):t,n,r>0?d.html:0,o);null!=s&&y.push(s)}));var w="richText"===t.renderMode?y.join(d.richText):x(y.join(""),p?n:d.html);if(p)return w;var M=(0,i.makeValueReadable)(e.header,"ordinal",t.useUTC),I=u(o,t.renderMode).nameStyle;return"richText"===t.renderMode?_(t,M,I)+d.richText+w:x('<div style="'+I+';line-height:1;">'+(0,r.encodeHTML)(M)+"</div>"+w,n)}function m(t,e,n,o){var s=t.renderMode,l=e.noName,c=e.noValue,h=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=(0,a.isArray)(t)?t:[t],(0,a.map)(t,(function(t,e){return(0,i.makeValueReadable)(t,(0,a.isArray)(m)?m[e]:m,d)}))};if(!l||!c){var g=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),y=l?"":(0,i.makeValueReadable)(p,"ordinal",d),m=e.valueType,v=c?[]:f(e.value,e.dataIndex),b=!h||!l,S=!h&&l,w=u(o,s),M=w.nameStyle,I=w.valueStyle;return"richText"===s?(h?"":g)+(l?"":_(t,y,M))+(c?"":function(t,e,n,r,i){var o=[i],s=r?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,a.isArray)(e)?e.join(" "):e,o)}(t,v,b,S,I)):x((h?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,r.encodeHTML)(t)+"</span>"}(y,!h,M))+(c?"":function(t,e,n,i){var o=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=(0,a.isArray)(t)?t:[t],'<span style="'+o+";"+i+'">'+(0,a.map)(t,(function(t){return(0,r.encodeHTML)(t)})).join(" ")+"</span>"}(v,b,S,I)),n)}}function v(t,e,n,r,i,o){if(t)return f(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function x(t,e){return'<div style="margin: '+e+'px 0 0;line-height:1;">'+t+'<div style="clear:both"></div></div>'}function _(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,i.convertToColorString)(n)}function S(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var w=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,l.getRandomIdBase)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,o=(0,i.getTooltipMarker)({color:e,type:t,renderMode:n,markerId:r});return(0,a.isString)(o)?o:(this.richTextStyles[r]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,a.isArray)(e)?(0,a.each)(e,(function(t){return(0,a.extend)(n,t)})):(0,a.extend)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}()})),o.register("jMGr2",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("4zWIO"),i=o("aRppD"),a=o("fyXJH"),s=function(){function t(){this.group=new(0,r.default),this.uid=i.getUID("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}();a.enableClassExtend(s),a.enableClassManagement(s);var l=s})),o.register("ansKp",(function(t,n){e(t.exports,"default",(function(){return b}));var r=o("2fV2j"),i=o("4zWIO"),a=o("aRppD"),s=o("fyXJH"),l=o("jnApb"),u=o("6EdQu"),c=o("5TqOU"),h=o("1ZHIk"),p=o("4x6s5"),d=l.makeInner(),f=(0,h.default)(),g=function(){function t(){this.group=new(0,i.default),this.uid=a.getUID("viewChart"),this.renderTask=(0,c.createTask)({plan:v,reset:x}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&m(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&m(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){(0,p.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){d(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function y(t,e,n){t&&(0,u.isHighDownDispatcher)(t)&&("emphasis"===e?u.enterEmphasis:u.leaveEmphasis)(t,n)}function m(t,e,n){var i=l.queryDataIndex(t,e),o=e&&null!=e.highlightKey?(0,u.getHighlightDigit)(e.highlightKey):null;null!=i?(0,r.each)(l.normalizeToArray(i),(function(e){y(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){y(t,n,o)}))}function v(t){return f(t.model)}function x(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&d(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),_[l]}s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g);var _={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)}}},b=g})),o.register("1ZHIk",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("jnApb");function i(){var t=(0,r.makeInner)();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"}}})),o.register("lx0YT",(function(t,n){function r(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 p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,i=r-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):i>=0?h():c=setTimeout(h,-i),l=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function i(t,e,n,i){var o=t[e];if(o){var a=o["\0__throttleOriginMethod"]||o,s=o["\0__throttleType"];if(o["\0__throttleRate"]!==n||s!==i){if(null==n||!i)return t[e]=a;(o=t[e]=r(a,n,"debounce"===i))["\0__throttleOriginMethod"]=a,o["\0__throttleType"]=i,o["\0__throttleRate"]=n}return o}}function o(t,e){var n=t[e];n&&n["\0__throttleOriginMethod"]&&(n.clear&&n.clear(),t[e]=n["\0__throttleOriginMethod"])}e(t.exports,"throttle",(function(){return r})),e(t.exports,"createOrUpdate",(function(){return i})),e(t.exports,"clear",(function(){return o}))})),o.register("69md3",(function(t,n){e(t.exports,"seriesStyleTask",(function(){return f})),e(t.exports,"dataStyleTask",(function(){return y})),e(t.exports,"dataColorPaletteTask",(function(){return m}));var r=o("2fV2j"),i=o("fpBSa"),a=o("5gH42"),s=o("4RHu7"),l=o("1C7zE"),u=(0,o("jnApb").makeInner)(),c={itemStyle:(0,i.default)(a.ITEM_STYLE_KEY_MAP,!0),lineStyle:(0,i.default)(s.LINE_STYLE_KEY_MAP,!0)},h={lineStyle:"stroke",itemStyle:"fill"};function p(t,e){return t.visualStyleMapper||c[e]||(console.warn("Unknown style type '"+e+"'."),c.itemStyle)}function d(t,e){return t.visualDrawType||h[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var f={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),a=p(t,i)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=d(t,i),u=a[l],c=(0,r.isFunction)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,r.isFunction)(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||(0,r.isFunction)(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=(0,r.extend)({},a);o[l]=c(i),e.setItemVisual(n,"style",o)}}}},g=new(0,l.default),y={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=p(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){g.option=n[i];var s=o(g),l=t.ensureUniqueItemVisual(e,"style");(0,r.extend)(l,s),g.option.decal&&(t.setItemVisual(e,"decal",g.option.decal),g.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},m={performRawSeries:!0,overallReset:function(t){var e=(0,r.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),u(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=u(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=d(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}}})),o.register("hX8mK",(function(t,n){e(t.exports,"default",(function(){return c}));var r=o("2fV2j");o("4x6s5");var i=o("4m2Ab"),a=o("eDBCF"),s=o("4zWIO"),l=o("kjDai"),u=Math.PI;function c(t,e){e=e||{},r.defaults(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new s.default,o=new i.default({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(o);var c,h=new l.default({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),p=new i.default({style:{fill:"none"},textContent:h,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(p),e.showSpinner&&((c=new a.default({shape:{startAngle:-u/2,endAngle:-u/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*u/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*u/2}).delay(300).start("circularInOut"),n.add(c)),n.resize=function(){var n=h.getBoundingRect().width,r=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*r-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:r),a=t.getHeight()/2;e.showSpinner&&c.setShape({cx:i,cy:a}),p.setShape({x:i-r,y:a-r,width:2*r,height:2*r}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}})),o.register("je9YP",(function(t,n){e(t.exports,"default",(function(){return I}));var r=o("2fV2j"),i=o("5TqOU"),a=o("aRppD"),s=o("7OdSb"),l=o("j6EDF"),u=o("jnApb"),c=function(){function t(t,e,n,i){this._stageTaskMap=(0,r.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),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.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,r.createHashMap)();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,r.each)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});(0,r.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,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,i){i=i||{};var o=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,r.each)(t,(function(t,r){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var d=a.getPerformArgs(c,i.block);p.each((function(t){t.perform(d)})),c.perform(d)&&(o=!0)}else u&&u.each((function(r,l){s(i,r)&&r.dirty();var u=a.getPerformArgs(r,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(u)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,o){var a=this,s=e.seriesTaskMap,l=e.seriesTaskMap=(0,r.createHashMap)(),u=t.seriesType,c=t.getTargetSeries;function h(e){var r=e.uid,u=l.set(r,s&&s.get(r)||(0,i.createTask)({plan:g,reset:y,count:x}));u.context={model:e,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(e,u)}t.createOnAllSeries?n.eachRawSeries(h):u?n.eachRawSeriesByType(u,h):c&&c(n,o).each(h)},t.prototype._createOverallStageTask=function(t,e,n,o){var a=this,s=e.overallTask=e.overallTask||(0,i.createTask)({reset:h});s.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,u=s.agentStubMap=(0,r.createHashMap)(),c=t.seriesType,d=t.getTargetSeries,g=!0,y=!1;function m(t){var e=t.uid,n=u.set(e,l&&l.get(e)||(y=!0,(0,i.createTask)({reset:p,onDirty:f})));n.context={model:t,overallProgress:g},n.agent=s,n.__block=g,a._pipe(t,n)}(0,r.assert)(!t.createOnAllSeries,""),c?n.eachRawSeriesByType(c,m):d?d(n,o).each(m):(g=!1,(0,r.each)(n.getSeries(),m)),y&&s.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(0,r.isFunction)(t)&&(t={overallReset:t,seriesType:_(t)}),t.uid=(0,a.getUID)("stageHandler"),e&&(t.visualType=e),t},t}();function h(t){t.overallReset(t.ecModel,t.api,t.payload)}function p(t){return t.overallProgress&&d}function d(){this.agent.dirty(),this.getDownstream().dirty()}function f(){this.agent&&this.agent.dirty()}function g(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function y(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,u.normalizeToArray)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,r.map)(e,(function(t,e){return v(e)})):m}var m=v(0);function v(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 x(t){return t.data.count()}function _(t){b=null;try{t(S,w)}catch(t){}return b}var b,S={},w={};function M(t,e){for(var n in e.prototype)t[n]=r.noop}M(S,s.default),M(w,l.default),S.eachSeriesByType=S.eachRawSeriesByType=function(t){b=t},S.eachComponent=function(t){"series"===t.mainType&&t.subType&&(b=t.subType)};var I=c})),o.register("irSZj",(function(t,n){e(t.exports,"default",(function(){return i}));var r=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],i={color:r,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],r]}})),o.register("eqvhE",(function(t,n){e(t.exports,"default",(function(){return l}));var r="#B9B8CE",i="#100C2A",o=function(){return{axisLine:{lineStyle:{color:r}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},a=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],s={darkMode:!0,color:a,backgroundColor:i,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:r}},dataZoom:{borderColor:"#71708A",textStyle:{color:r},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},label:{color:r},controlStyle:{color:r,borderColor:r}},calendar:{itemStyle:{color:i},dayLabel:{color:r},monthLabel:{color:r},yearLabel:{color:r}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:a},gauge:{title:{color:r},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:r},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};s.categoryAxis.splitLine.show=!1;var l=s})),o.register("1Jhmu",(function(t,n){e(t.exports,"ECEventProcessor",(function(){return a}));var r=o("2fV2j"),i=o("fyXJH"),a=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},o={};if(r.isString(t)){var a=(0,i.parseClassType)(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var s=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var i=!1,a=0;a<s.length;a++){var u=s[a],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,i=!0)}}l.hasOwnProperty(r)&&(n[r]=t,i=!0),i||(o[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:o}},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}()})),o.register("6Spy7",(function(t,n){e(t.exports,"seriesSymbolTask",(function(){return s})),e(t.exports,"dataSymbolTask",(function(){return l}));var r=o("2fV2j"),i=["symbol","symbolSize","symbolRotate","symbolOffset"],a=i.concat(["symbolKeepAspect"]),s={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var o={},a={},s=!1,l=0;l<i.length;l++){var u=i[l],c=t.get(u);(0,r.isFunction)(c)?(s=!0,a[u]=c):o[u]=c}if(o.symbol=o.symbol||t.defaultSymbol,n.setVisual((0,r.extend)({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t)){var h=(0,r.keys)(a);return{dataEach:s?function(e,n){for(var r=t.getRawValue(n),i=t.getDataParams(n),o=0;o<h.length;o++){var s=h[o];e.setItemVisual(n,s,a[s](r,i))}}:null}}}}},l={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<a.length;r++){var i=a[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}}})),o.register("kJZzU",(function(t,n){function r(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)}}function i(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function o(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r)}}e(t.exports,"getItemVisualFromData",(function(){return r})),e(t.exports,"getVisualFromData",(function(){return i})),e(t.exports,"setItemVisualFromData",(function(){return o}))})),o.register("j11Si",(function(t,n){e(t.exports,"createLegacyDataSelectAction",(function(){return a})),e(t.exports,"handleLegacySelectEvents",(function(){return l}));var r=o("2fV2j"),i=o("jnApb");function a(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}(0,r.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,o){e=(0,r.extend)({},e),o.dispatchAction((0,r.extend)(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function s(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===e){var c=t.getData(),h=(0,i.queryDataIndex)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,r.isArray)(h)?c.getName(h[0]):c.getName(h),selected:(0,r.isString)(o)?o:(0,r.extend)({},o)})}}))}function l(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(s("map","selectchanged",e,r,t),s("pie","selectchanged",e,r,t)):"select"===t.fromAction?(s("map","selected",e,r,t),s("pie","selected",e,r,t)):"unselect"===t.fromAction&&(s("map","unselected",e,r,t),s("pie","unselected",e,r,t))}))}})),o.register("16uHh",(function(t,n){function r(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}e(t.exports,"findEventDispatcher",(function(){return r}))})),o.register("dJ7GV",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("35g6g");function i(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=(0,r.createOrUpdatePatternFromDecal)(n,e))}));var o=i.getVisual("decal");o&&(i.getVisual("style").decal=(0,r.createOrUpdatePatternFromDecal)(o,e))}}))}})),o.register("35g6g",(function(t,n){e(t.exports,"createOrUpdatePatternFromDecal",(function(){return f}));var r=o("2WcFm"),i=o("4rQdS"),a=o("2fV2j"),s=o("iIXbb"),l=o("8TH6f"),u=o("cragi"),c=o("iXQJv"),h=new(0,r.default),p=new(0,i.default)(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function f(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&h.delete(t);var o=h.get(t);if(o)return o;var f=(0,a.defaults)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===f.backgroundColor&&(f.backgroundColor=null);var v={repeat:"repeat"};return function(t){for(var e,o=[n],h=!0,v=0;v<d.length;++v){var x=f[d[v]];if(null!=x&&!(0,a.isArray)(x)&&!(0,a.isString)(x)&&!(0,a.isNumber)(x)&&"boolean"!=typeof x){h=!1;break}o.push(x)}if(h){e=o.join(",")+(i?"-svg":"");var _=p.get(e);_&&(i?t.svgElement=_:t.image=_)}var b,S,w=y(f.dashArrayX),M=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,a.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,a.map)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(f.dashArrayY),I=g(f.symbol),T=(S=w,(0,a.map)(S,(function(t){return m(t)}))),A=m(M),C=!i&&c.platformApi.createCanvas(),D=i&&{tag:"g",attrs:{},key:"dcl",children:[]},k=function(){for(var t=1,e=0,n=T.length;e<n;++e)t=(0,s.getLeastCommonMultiple)(t,T[e]);var r=1;for(e=0,n=I.length;e<n;++e)r=(0,s.getLeastCommonMultiple)(r,I[e].length);t*=r;var i=A*T.length*I.length;return{width:Math.max(1,Math.min(t,f.maxTileWidth)),height:Math.max(1,Math.min(i,f.maxTileHeight))}}();C&&(C.width=k.width*n,C.height=k.height*n,b=C.getContext("2d")),function(){b&&(b.clearRect(0,0,C.width,C.height),f.backgroundColor&&(b.fillStyle=f.backgroundColor,b.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<M.length;++e)t+=M[e];if(!(t<=0))for(var o=-A,a=0,s=0,c=0;o<k.height;){if(a%2==0){for(var h=s/2%I.length,p=0,d=0,g=0;p<2*k.width;){var y=0;for(e=0;e<w[c].length;++e)y+=w[c][e];if(y<=0)break;if(d%2==0){var m=.5*(1-f.symbolSize),v=p+w[c][d]*m,x=o+M[a]*m,_=w[c][d]*f.symbolSize,S=M[a]*f.symbolSize,T=g/2%I[h].length;L(v,x,_,S,I[h][T])}p+=w[c][d],++g,++d===w[c].length&&(d=0)}++c===w.length&&(c=0)}o+=M[a],++s,++a===M.length&&(a=0)}function L(t,e,o,a,s){var c=i?1:n,h=(0,l.createSymbol)(s,t*c,e*c,o*c,a*c,f.color,f.symbolKeepAspect);if(i){var p=r.painter.renderOneToVNode(h);p&&D.children.push(p)}else(0,u.brushSingle)(b,h)}}(),h&&p.put(e,C||D),t.image=C,t.svgElement=D,t.svgWidth=k.width,t.svgHeight=k.height}(v),v.rotation=f.rotation,v.scaleX=v.scaleY=i?1:1/n,h.set(t,v),t.dirty=!1,v}function g(t){if(!t||0===t.length)return[["rect"]];if((0,a.isString)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,a.isString)(t[n])){e=!1;break}if(e)return g([t]);var r=[];for(n=0;n<t.length;++n)(0,a.isString)(t[n])?r.push([t[n]]):r.push(t[n]);return r}function y(t){if(!t||0===t.length)return[[0,0]];if((0,a.isNumber)(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!(0,a.isNumber)(t[n])){e=!1;break}if(e)return y([t]);var r=[];for(n=0;n<t.length;++n)if((0,a.isNumber)(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else(i=(0,a.map)(t[n],(function(t){return Math.ceil(t)}))).length%2==1?r.push(i.concat(i)):r.push(i);return r}function m(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}})),o.register("2WcFm",(function(t,n){e(t.exports,"default",(function(){return o}));var r=Math.round(9*Math.random()),i="function"==typeof Object.defineProperty,o=function(){function t(){this._id="__ec_inner_"+r++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return i?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}()})),o.register("8TH6f",(function(t,n){e(t.exports,"symbolBuildProxies",(function(){return x})),e(t.exports,"createSymbol",(function(){return S})),e(t.exports,"normalizeSymbolSize",(function(){return w})),e(t.exports,"normalizeSymbolOffset",(function(){return M}));var r=o("2fV2j");o("4x6s5");var i=o("lv1gH"),a=o("8UpdG"),s=o("4m2Ab"),l=o("18USZ"),u=o("4x6s5"),c=o("e2ttp"),h=o("lj5IW"),p=o("iIXbb"),d=i.default.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()}}),f=i.default.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()}}),g=i.default.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),p=Math.cos(u),d=.6*a,f=.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*d,l+s+p*d,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),y=i.default.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()}}),m={line:a.default,rect:s.default,roundRect:s.default,square:s.default,circle:l.default,diamond:f,pin:g,arrow:y,triangle:d},v={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}},x={};(0,r.each)(m,(function(t,e){x[e]=new t}));var _=i.default.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=(0,h.calculateTextPosition)(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=x[r];i||(i=x[r="rect"]),v[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function b(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function S(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://")?u.makeImage(t.slice(8),new(0,c.default)(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?u.makePath(t.slice(7),{},new(0,c.default)(e,n,r,i),a?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=b,o&&s.setColor(o),s}function w(t){return(0,r.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function M(t,e){if(null!=t)return(0,r.isArray)(t)||(t=[t,t]),[(0,p.parsePercent)(t[0],e[0])||0,(0,p.parsePercent)((0,r.retrieve2)(t[1],t[0]),e[1])||0]}})),o.register("cragi",(function(t,n){e(t.exports,"createCanvasPattern",(function(){return b})),e(t.exports,"brushSingle",(function(){return D})),e(t.exports,"brush",(function(){return k}));var r=o("32n5A"),i=o("btLRI"),a=o("abrcr"),s=o("71lD2"),l=o("lv1gH"),u=o("b1qY0"),c=o("dF0cA"),h=o("2fV2j"),p=o("1enBL"),d=o("botma"),f=o("iXQJv"),g=new(0,i.default)(!0);function y(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function x(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 _(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 b(t,e,n){var r=(0,a.createOrUpdateImage)(e.image,e.__image,n);if((0,a.isImageReady)(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)*h.RADIAN_TO_DEGREE),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(t,e,n,i,o){var a=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){A(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.DEFAULT_COMMON_STYLE.opacity:s}(i||e.blend!==n.blend)&&(a||(A(t,o),a=!0),t.globalCompositeOperation=e.blend||r.DEFAULT_COMMON_STYLE.blend);for(var l=0;l<S.length;l++){var u=S[l];(i||e[u]!==n[u])&&(a||(A(t,o),a=!0),t[u]=t.dpr*(e[u]||0))}return(i||e.shadowColor!==n.shadowColor)&&(a||(A(t,o),a=!0),t.shadowColor=e.shadowColor||r.DEFAULT_COMMON_STYLE.shadowColor),a}function I(t,e,n,r,i){var o=C(e,i.inHover),a=r?null:n&&C(n,i.inHover)||{};if(o===a)return!1;var s=M(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(A(t,i),s=!0),m(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(A(t,i),s=!0),m(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(A(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||(A(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<w.length;u++){var c=w[u],h=c[0];(r||o[h]!==a[h])&&(s||(A(t,i),s=!0),t[h]=o[h]||c[1])}return s}function T(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 A(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function C(t,e){return e&&t.__hoverStyle||t.style}function D(t,e){k(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function k(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~d.REDRAW_BIT,void(e.__isRendered=!1);var o=e.__clipPaths,h=n.prevElClipPaths,m=!1,S=!1;if(h&&!(0,s.isClipPathChanged)(o,h)||(h&&h.length&&(A(t,n),t.restore(),S=m=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(A(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(),T(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),m=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var w=n.prevEl;w||(S=m=!0);var D,L,O=e instanceof l.default&&e.autoBatch&&function(t){var e=v(t),n=y(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);m||(D=i,L=w.transform,D&&L?D[0]!==L[0]||D[1]!==L[1]||D[2]!==L[2]||D[3]!==L[3]||D[4]!==L[4]||D[5]!==L[5]:D||L)?(A(t,n),T(t,e)):O||A(t,n);var P=C(e,n.inHover);e instanceof l.default?(1!==n.lastDrawType&&(S=!0,n.lastDrawType=1),I(t,e,w,S,n),O&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=y(n),a=v(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var h=e.path||g,f=e.__dirty;if(!r){var m=n.fill,S=n.stroke,w=a&&!!m.colorStops,M=o&&!!S.colorStops,I=a&&!!m.image,T=o&&!!S.image,A=void 0,C=void 0,D=void 0,k=void 0,L=void 0;(w||M)&&(L=e.getBoundingRect()),w&&(A=f?(0,s.getCanvasGradient)(t,m,L):e.__canvasFillGradient,e.__canvasFillGradient=A),M&&(C=f?(0,s.getCanvasGradient)(t,S,L):e.__canvasStrokeGradient,e.__canvasStrokeGradient=C),I&&(D=f||!e.__canvasFillPattern?b(t,m,e):e.__canvasFillPattern,e.__canvasFillPattern=D),T&&(k=f||!e.__canvasStrokePattern?b(t,S,e):e.__canvasStrokePattern,e.__canvasStrokePattern=D),w?t.fillStyle=A:I&&(D?t.fillStyle=D:a=!1),M?t.strokeStyle=C:T&&(k?t.strokeStyle=k:o=!1)}var O,P,E=e.getGlobalScale();h.setScale(E[0],E[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(O=(i=(0,p.getLineDash)(e))[0],P=i[1]);var R=!0;(c||f&d.SHAPE_CHANGED_BIT)&&(h.setDPR(t.dpr),u?h.setContext(null):(h.setContext(t),R=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),R&&h.rebuildPath(t,u?l:1),O&&(t.setLineDash(O),t.lineDashOffset=P),r||(n.strokeFirst?(o&&_(t,n),a&&x(t,n)):(a&&x(t,n),o&&_(t,n))),O&&t.setLineDash([])}(t,e,P,O),O&&(n.batchFill=P.fill||"",n.batchStroke=P.stroke||"")):e instanceof c.default?(3!==n.lastDrawType&&(S=!0,n.lastDrawType=3),I(t,e,w,S,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||f.DEFAULT_FONT,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=(0,p.getLineDash)(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(y(n)&&t.strokeText(i,n.x,n.y),v(n)&&t.fillText(i,n.x,n.y)):(v(n)&&t.fillText(i,n.x,n.y),y(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,P)):e instanceof u.default?(2!==n.lastDrawType&&(S=!0,n.lastDrawType=2),function(t,e,n,r,i){M(t,C(e,i.inHover),n&&C(n,i.inHover),r,i)}(t,e,w,S,n),function(t,e,n){var r=e.__image=(0,a.createOrUpdateImage)(n.image,e.__image,e,e.onload);if(r&&(0,a.isImageReady)(r)){var i=n.x||0,o=n.y||0,s=e.getWidth(),l=e.getHeight(),u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;t.drawImage(r,c,h,n.sWidth,n.sHeight,i,o,s,l)}else if(n.sx&&n.sy){var p=s-(c=n.sx),d=l-(h=n.sy);t.drawImage(r,c,h,p,d,i,o,s,l)}else t.drawImage(r,i,o,s,l)}}(t,e,P)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(S=!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};for(o=e.getCursor(),a=r.length;o<a;o++)(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),k(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),k(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),O&&r&&A(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}})),o.register("71lD2",(function(t,n){function r(t){return isFinite(t)}function i(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r;return e.global||(s=s*i+n.x,l=l*o+n.y,u*=a),s=r(s)?s:.5,l=r(l)?l:.5,u=u>=0&&r(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0,t.createLinearGradient(i,a,o,s)}(t,e,n),o=e.colorStops,a=0;a<o.length;a++)i.addColorStop(o[a].offset,o[a].color);return i}function o(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function a(t){return parseInt(t,10)}function s(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var l=document.defaultView.getComputedStyle(t);return(t[i]||a(l[r])||a(t.style[r]))-(a(l[o])||0)-(a(l[s])||0)|0}e(t.exports,"getCanvasGradient",(function(){return i})),e(t.exports,"isClipPathChanged",(function(){return o})),e(t.exports,"getSize",(function(){return s}))})),o.register("1enBL",(function(t,n){e(t.exports,"getLineDash",(function(){return i}));var r=o("2fV2j");function i(t){var e,n,i=t.style,o=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,r.isNumber)(e)?[e]:(0,r.isArray)(e)?e:null:null),a=i.lineDashOffset;if(o){var s=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,r.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}})),o.register("dLZJQ",(function(t,n){e(t.exports,"default",(function(){return r}));var r=new(0,o("bMEwb").default)})),o.register("lYz6m",(function(t,n){e(t.exports,"registerImpl",(function(){return i})),e(t.exports,"getImpl",(function(){return o}));var r={};function i(t,e){r[t]=e}function o(t){return r[t]}})),o.register("4gVD6",(function(t,n){e(t.exports,"extendComponentModel",(function(){return l})),e(t.exports,"extendComponentView",(function(){return u})),e(t.exports,"extendSeriesModel",(function(){return c})),e(t.exports,"extendChartView",(function(){return h})),e(t.exports,"zrender",(function(){return o("i2pfq")})),e(t.exports,"matrix",(function(){return o("2QCok")})),e(t.exports,"vector",(function(){return o("lDRrb")})),e(t.exports,"zrUtil",(function(){return o("2fV2j")})),e(t.exports,"color",(function(){return o("6s8l4")})),e(t.exports,"throttle",(function(){return o("lx0YT").throttle})),e(t.exports,"helper",(function(){return o("lgAJl")})),e(t.exports,"use",(function(){return o("loiyq").use})),e(t.exports,"setPlatformAPI",(function(){return o("iXQJv").setPlatformAPI})),e(t.exports,"parseGeoJSON",(function(){return o("9RZSW").default})),e(t.exports,"parseGeoJson",(function(){return o("9RZSW").default})),e(t.exports,"number",(function(){return o("9Fdih")})),e(t.exports,"time",(function(){return o("f595g")})),e(t.exports,"graphic",(function(){return o("1i5Jx")})),e(t.exports,"format",(function(){return o("hR0oZ")})),e(t.exports,"util",(function(){return o("esD2j")})),e(t.exports,"env",(function(){return o("akmdr").default})),e(t.exports,"List",(function(){return o("ao62o").default})),e(t.exports,"Model",(function(){return o("1C7zE").default})),e(t.exports,"Axis",(function(){return o("jXYF6").default})),e(t.exports,"ComponentModel",(function(){return o("krEnk").default})),e(t.exports,"ComponentView",(function(){return o("jMGr2").default})),e(t.exports,"SeriesModel",(function(){return o("icZIP").default})),e(t.exports,"ChartView",(function(){return o("ansKp").default})),e(t.exports,"innerDrawElementOnCanvas",(function(){return o("cragi").brushSingle}));var r=o("krEnk"),i=o("jMGr2"),a=o("icZIP"),s=o("ansKp");function l(t){var e=r.default.extend(t);return r.default.registerClass(e),e}function u(t){var e=i.default.extend(t);return i.default.registerClass(e),e}function c(t){var e=a.default.extend(t);return a.default.registerClass(e),e}function h(t){var e=s.default.extend(t);return s.default.registerClass(e),e}o("ao62o"),o("i2pfq"),o("2QCok"),o("lDRrb"),o("2fV2j"),o("6s8l4"),o("lx0YT"),o("lgAJl"),o("loiyq"),o("iXQJv"),o("9RZSW"),o("9RZSW"),o("9Fdih"),o("f595g"),o("1i5Jx"),o("hR0oZ"),o("esD2j"),o("akmdr"),o("1C7zE"),o("jXYF6"),o("cragi")})),o.register("ao62o",(function(t,n){e(t.exports,"default",(function(){return D}));var r,i,a,s,l,u,c,h=o("2fV2j"),p=o("1C7zE"),d=o("iWPaD"),f=o("3INyz"),g=o("auf5w"),y=o("1ZGib"),m=o("cwqlf"),v=o("jnApb"),x=o("by2b6"),_=o("ckvRB"),b=o("2DbjB"),S=o("2pFPO"),w=h.isObject,M=h.map,I="undefined"==typeof Int32Array?Array:Int32Array,T=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],A=["_approximateExtent"],C=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;(0,S.isSeriesDataSchema)(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],p=h.isString(c)?new(0,y.default)({name:c}):c instanceof y.default?c:new(0,y.default)(c),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var f=p.otherDims=p.otherDims||{};o.push(d),i[d]=p,null!=l[d]&&(s=!0),p.createInvertedIndices&&(a[d]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),r&&(p.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=h.createHashMap();h.each(o,(function(t){g.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(h.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},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 b.default&&(r=t),!r){var o=this.dimensions,a=(0,_.isSourceInstance)(t)||h.isArrayLike(t)?new(0,f.DefaultDataProvider)(t,o.length):t;r=new(0,b.default);var s=M(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=(0,g.summarizeDimensions)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&c(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!==m.SOURCE_FORMAT_TYPED_ARRAY&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===m.SOURCE_FORMAT_ORIGINAL&&!n.pure)for(var a=[],s=t;s<e;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&(0,v.isDataItemOption)(l)&&(this.hasItemOption=!0),l){var u=l.name;null==i[s]&&null!=u&&(i[s]=(0,v.convertOptionIdName)(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=(0,v.convertOptionIdName)(h,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)c(this,s);r(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){w(t)?h.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=a(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 i(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return h.isArray(t)?r.getValues(M(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])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){"use strict";h.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=M(s(t),this._getStoreDimIndex,this);this._store.each(i,r?h.bind(e,r):e)},t.prototype.filterSelf=function(t,e,n){"use strict";h.isFunction(t)&&(n=e,e=t,t=[]);var r=n||this,i=M(s(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?h.bind(e,r):e),this},t.prototype.selectRange=function(t){"use strict";var e=this,n={},r=h.keys(t),i=[];return h.each(r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){"use strict";h.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){"use strict";var i=n||r||this,o=M(s(t),this._getStoreDimIndex,this),a=u(this);return a._store=this._store.map(o,i?h.bind(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=M(s(t),this._getStoreDimIndex,this);this._store.modify(o,i?h.bind(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=u(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=u(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(0,p.default)(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new(0,d.default)(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return i(t,e)}),(function(t){return i(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||{},w(t)?h.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),h.isArray(i)?i=i.slice():w(i)&&(i=h.extend({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,w(e)?h.extend(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?h.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;(0,x.setCommonECData)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){h.each(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:M(this.dimensions,this._getDimInfo,this),this.hostModel)),l(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];h.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(h.slice(arguments)))})},t.internalField=(r=function(t){var e=t._invertedIndicesMap;h.each(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new I(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}}))},a=function(t,e,n){return(0,v.convertOptionIdName)(t._getCategory(e,n),null)},i=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=a(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},s=function(t){return h.isArray(t)||(t=null!=t?[t]:[]),t},u=function(e){var n=new t(e._schema?e._schema:M(e.dimensions,e._getDimInfo,e),e.hostModel);return l(n,e),n},l=function(t,e){h.each(T.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,h.each(A,(function(n){t[n]=h.clone(e[n])})),t._calculationInfo=h.extend({},e._calculationInfo)},void(c=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=r[e];if(null==s&&null!=i&&(n[e]=s=a(t,i,e)),null==l&&null!=o&&(r[e]=l=a(t,o,e)),null==l&&null!=s){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),r[e]=l}})),t}(),D=C})),o.register("iWPaD",(function(t,n){function r(t){return null==t?0:t.length||1}function i(t){return t}e(t.exports,"default",(function(){return o}));var o=function(){function t(t,e,n,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=o,this._diffModeMultiple="multiple"===a}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={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=n[s],u=r(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===u?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],c=i[l],h=r(u),p=r(c);if(h>1&&1===p)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===h&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===h&&1===p)this._update&&this._update(c,u),i[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=r(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),e){var l=e[s],u=r(l);0===u?(e[s]=a,o&&n.push(s)):1===u?e[s]=[l,a]:l.push(a)}}},t}()})),o.register("auf5w",(function(t,n){e(t.exports,"summarizeDimensions",(function(){return s})),e(t.exports,"getDimensionTypeByAxis",(function(){return u}));var r=o("2fV2j"),i=o("cwqlf"),a=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 s(t,e){var n={},o=n.encode={},s=(0,r.createHashMap)(),u=[],c=[],h={};(0,r.each)(t.dimensions,(function(e){var n,r=t.getDimensionInfo(e),a=r.coordDim;if(a){var p=r.coordDimIndex;l(o,a)[p]=e,r.isExtraCoord||(s.set(a,1),"ordinal"!==(n=r.type)&&"time"!==n&&(u[0]=e),l(h,a)[p]=t.getDimensionIndex(r.name)),r.defaultTooltip&&c.push(e)}i.VISUAL_DIMENSIONS.each((function(t,e){var n=l(o,e),i=r.otherDims[e];null!=i&&!1!==i&&(n[i]=r.name)}))}));var p=[],d={};s.each((function(t,e){var n=o[e];d[e]=n[0],p=p.concat(n)})),n.dataDimsOnCoord=p,n.dataDimIndicesOnCoord=(0,r.map)(p,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=d;var f=o.label;f&&f.length&&(u=f.slice());var g=o.tooltip;return g&&g.length?c=g.slice():c.length||(c=u.slice()),o.defaultedLabel=u,o.defaultedTooltip=c,n.userOutput=new a(h,e),n}function l(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function u(t){return"category"===t?"ordinal":"time"===t?"time":"float"}})),o.register("1ZGib",(function(t,n){e(t.exports,"default",(function(){return i}));var r=o("2fV2j"),i=function(t){this.otherDims={},null!=t&&r.extend(this,t)}})),o.register("2pFPO",(function(t,n){e(t.exports,"SeriesDataSchema",(function(){return u})),e(t.exports,"ensureSourceDimNameMap",(function(){return p})),e(t.exports,"shouldOmitUnusedDimensions",(function(){return d})),e(t.exports,"isSeriesDataSchema",(function(){return c})),e(t.exports,"createDimNameMap",(function(){return h}));var r=o("2fV2j"),i=o("jnApb"),a=o("ckvRB"),s=(0,i.makeInner)(),l={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u=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=p(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,r.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=(0,a.shouldRetrieveDataByName)(this.source),n=!d(t),r="",i=[],o=0,s=0;o<t;o++){var u=void 0,c=void 0,h=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===o)u=e?p.name:null,c=p.type,h=p.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(u=e?f.name:null,c=f.type)}i.push({property:u,type:c,ordinalMeta:h}),!e||null==u||p&&p.isCalculationCoord||(r+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),r+="$",r+=l[c]||"f",h&&(r+=h.uid),r+="$"}var g=this.source;return{dimensions:i,hash:[g.seriesLayoutBy,g.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 c(t){return t instanceof u}function h(t){for(var e=(0,r.createHashMap)(),n=0;n<(t||[]).length;n++){var i=t[n],o=(0,r.isObject)(i)?i.name:i;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function p(t){var e=s(t);return e.dimNameMap||(e.dimNameMap=h(t.dimensionsDefine))}function d(t){return t>30}})),o.register("lgAJl",(function(t,n){e(t.exports,"createList",(function(){return h})),e(t.exports,"dataStack",(function(){return p})),e(t.exports,"createScale",(function(){return d})),e(t.exports,"mixinAxisModelCommonMethods",(function(){return f})),e(t.exports,"createTextStyle",(function(){return g})),e(t.exports,"getLayoutRect",(function(){return o("aZMsI").getLayoutRect})),e(t.exports,"createDimensions",(function(){return o("bJU8K").createDimensions})),e(t.exports,"createSymbol",(function(){return o("8TH6f").createSymbol})),e(t.exports,"getECData",(function(){return o("by2b6").getECData})),e(t.exports,"enableHoverEmphasis",(function(){return o("6EdQu").enableHoverEmphasis}));var r=o("2fV2j"),i=o("hNaFr"),a=o("9XcNn"),s=o("aZZ0S"),l=o("1C7zE"),u=(o("aZMsI"),o("1O8EX")),c=(o("by2b6"),o("5xWWJ"));function h(t){return(0,i.default)(null,t)}o("bJU8K"),o("8TH6f"),o("6EdQu");var p={isDimensionStacked:u.isDimensionStacked,enableDataStack:u.enableDataStack,getStackedDimension:u.getStackedDimension};function d(t,e){var n=e;e instanceof l.default||(n=new(0,l.default)(e));var r=a.createScaleByModel(n);return r.setExtent(t[0],t[1]),a.niceScaleExtent(r,n),r}function f(t){r.mixin(t,s.AxisModelCommonMixin)}function g(t,e){return e=e||{},(0,c.createTextStyle)(t,null,null,"normal"!==e.state)}})),o.register("hNaFr",(function(t,n){e(t.exports,"default",(function(){return g}));var r=o("2fV2j"),i=o("ao62o"),a=o("bJU8K"),s=o("auf5w"),l=o("jnApb"),u=o("gqZ26"),c=o("km70N"),h=o("ckvRB"),p=o("1O8EX"),d=o("6ahuT"),f=o("cwqlf"),g=function(t,e,n){n=n||{};var o,g=e.getSourceManager(),y=!1;t?(y=!0,o=(0,h.createSourceFromSeriesDataOption)(t)):y=(o=g.getSource()).sourceFormat===f.SOURCE_FORMAT_ORIGINAL;var m=(0,c.getCoordSysInfoBySeries)(e),v=function(t,e){var n,i=t.get("coordinateSystem"),o=u.default.get(i);return e&&e.coordSysDims&&(n=r.map(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=(0,s.getDimensionTypeByAxis)(i)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(e,m),x=n.useEncodeDefaulter,_=r.isFunction(x)?x:x?r.curry(d.makeSeriesEncodeForAxisCoordSys,v,e):null,b={coordDimensions:v,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:_,canOmitUnusedDimensions:!y},S=(0,a.default)(o,b),w=function(t,e,n){var i,o;return n&&r.each(t,(function(t,r){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}(S.dimensions,n.createInvertedIndices,m),M=y?null:g.getSharedDataStore(S),I=(0,p.enableDataStack)(e,{schema:S,store:M}),T=new(0,i.default)(S,e);T.setCalculationInfo(I);var A=null!=w&&function(t){if(t.sourceFormat===f.SOURCE_FORMAT_ORIGINAL){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!r.isArray((0,l.getDataItemValue)(e))}}(o)?function(t,e,n,r){return r===w?n:this.defaultDimValueGetter(t,e,n,r)}:null;return T.hasItemOption=!1,T.initData(y?o:M,null,A),T}})),o.register("bJU8K",(function(t,n){e(t.exports,"createDimensions",(function(){return p})),e(t.exports,"default",(function(){return d}));var r=o("cwqlf"),i=o("1ZGib"),a=o("2fV2j"),s=o("ckvRB"),l=o("2DbjB"),u=o("jnApb"),c=o("6ahuT"),h=o("2pFPO");function p(t,e){return d(t,e).dimensions}function d(t,e){(0,s.isSourceInstance)(t)||(t=(0,s.createSourceFromSeriesDataOption)(t));var n=(e=e||{}).coordDimensions||[],o=e.dimensionsDefine||t.dimensionsDefine||[],p=(0,a.createHashMap)(),d=[],g=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return(0,a.each)(e,(function(t){var e;(0,a.isObject)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,o,e.dimensionsCount),y=e.canOmitUnusedDimensions&&(0,h.shouldOmitUnusedDimensions)(g),m=o===t.dimensionsDefine,v=m?(0,h.ensureSourceDimNameMap)(t):(0,h.createDimNameMap)(o),x=e.encodeDefine;!x&&e.encodeDefaulter&&(x=e.encodeDefaulter(t,g));for(var _=(0,a.createHashMap)(x),b=new(0,l.CtorInt32Array)(g),S=0;S<b.length;S++)b[S]=-1;function w(t){var e=b[t];if(e<0){var n=o[t],r=(0,a.isObject)(n)?n:{name:n},s=new(0,i.default),l=r.name;null!=l&&null!=v.get(l)&&(s.name=s.displayName=l),null!=r.type&&(s.type=r.type),null!=r.displayName&&(s.displayName=r.displayName);var u=d.length;return b[t]=u,s.storeDimIndex=t,d.push(s),s}return d[e]}if(!y)for(S=0;S<g;S++)w(S);_.each((function(t,e){var n=(0,u.normalizeToArray)(t).slice();if(1===n.length&&!(0,a.isString)(n[0])&&n[0]<0)_.set(e,!1);else{var r=_.set(e,[]);(0,a.each)(n,(function(t,n){var i=(0,a.isString)(t)?v.get(t):t;null!=i&&i<g&&(r[n]=i,I(w(i),e,n))}))}}));var M=0;function I(t,e,n){null!=r.VISUAL_DIMENSIONS.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,p.set(e,!0))}(0,a.each)(n,(function(t){var e,n,r,i;if((0,a.isString)(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=(0,a.extend)({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=_.get(e);if(!1!==s){if(!(s=(0,u.normalizeToArray)(s)).length)for(var l=0;l<(n&&n.length||1);l++){for(;M<g&&null!=w(M).coordDim;)M++;M<g&&s.push(M++)}(0,a.each)(s,(function(t,o){var s=w(t);if(m&&null!=i.type&&(s.type=i.type),I((0,a.defaults)(s,i),e,o),null==s.name&&n){var l=n[o];!(0,a.isObject)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&(0,a.defaults)(s.otherDims,r)}))}}));var T=e.generateCoord,A=e.generateCoordCount,C=null!=A;A=T?A||1:0;var D=T||"value";function k(t){null==t.name&&(t.name=t.coordDim)}if(y)(0,a.each)(d,(function(t){k(t)})),d.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var L=0;L<g;L++){var O=w(L);null==O.coordDim&&(O.coordDim=f(D,p,C),O.coordDimIndex=0,(!T||A<=0)&&(O.isExtraCoord=!0),A--),k(O),null!=O.type||(0,c.guessOrdinal)(t,L)!==c.BE_ORDINAL.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return function(t){for(var e=(0,a.createHashMap)(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(d),new(0,h.SeriesDataSchema)({source:t,dimensions:d,fullDimensionCount:g,dimensionOmitted:y})}function f(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}})),o.register("km70N",(function(t,n){e(t.exports,"getCoordSysInfoBySeries",(function(){return s}));var r=o("2fV2j"),i=o("jnApb"),a=function(t){this.coordSysDims=[],this.axisMap=(0,r.createHashMap)(),this.categoryAxisMap=(0,r.createHashMap)(),this.coordSysName=t};function s(t){var e=t.get("coordinateSystem"),n=new a(e),r=l[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var l={cartesian2d:function(t,e,n,r){var o=t.getReferringComponents("xAxis",i.SINGLE_REFERRING).models[0],a=t.getReferringComponents("yAxis",i.SINGLE_REFERRING).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),u(o)&&(r.set("x",o),e.firstCategoryDimIndex=0),u(a)&&(r.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var o=t.getReferringComponents("singleAxis",i.SINGLE_REFERRING).models[0];e.coordSysDims=["single"],n.set("single",o),u(o)&&(r.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var o=t.getReferringComponents("polar",i.SINGLE_REFERRING).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),u(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),u(s)&&(r.set("angle",s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,r.each)(a.parallelAxisIndex,(function(t,r){var a=o.getComponent("parallelAxis",t),l=s[r];n.set(l,a),u(a)&&(i.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function u(t){return"category"===t.get("type")}})),o.register("1O8EX",(function(t,n){e(t.exports,"enableDataStack",(function(){return a})),e(t.exports,"isDimensionStacked",(function(){return s})),e(t.exports,"getStackedDimension",(function(){return l}));var r=o("2fV2j"),i=o("2pFPO");function a(t,e,n){var o,a,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(t){return!(0,i.isSeriesDataSchema)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,h,p,d,f=!(!t||!t.get("stack"));if((0,r.each)(o,(function(t,e){(0,r.isString)(t)&&(o[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))})),!h||l||c||(l=!0),h){p="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,y=h.type,m=0;(0,r.each)(o,(function(t){t.coordDim===g&&m++}));var v={name:p,coordDim:g,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},x={name:d,coordDim:d,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(d,y),x.storeDimIndex=s.ensureCalculationDimension(p,y)),a.appendCalculationDimension(v),a.appendCalculationDimension(x)):(o.push(v),o.push(x))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:d,stackResultDimension:p}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}})),o.register("9XcNn",(function(t,n){e(t.exports,"getScaleExtent",(function(){return f})),e(t.exports,"niceScaleExtent",(function(){return g})),e(t.exports,"createScaleByModel",(function(){return y})),e(t.exports,"ifAxisCrossZero",(function(){return m})),e(t.exports,"makeLabelFormatter",(function(){return v})),e(t.exports,"getAxisRawValue",(function(){return x})),e(t.exports,"estimateLabelUnionRect",(function(){return _})),e(t.exports,"getOptionCategoryInterval",(function(){return b})),e(t.exports,"shouldShowAllLabels",(function(){return S})),e(t.exports,"getDataDimensionsOnAxis",(function(){return w})),e(t.exports,"unionAxisExtentFromData",(function(){return M}));var r=o("2fV2j"),i=o("NN8JZ"),a=o("aIyi7"),s=o("7DSyS"),l=o("7Nj47"),u=o("e2ttp"),c=o("3hmyO"),h=o("8Wuw6"),p=o("1O8EX"),d=o("3fNUT");function f(t,e){var n=t.type,i=(0,d.ensureScaleRawExtentInfo)(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,s=e.ecModel;if(s&&"time"===n){var u=(0,l.prepareLayoutBarSeries)("bar",s),c=!1;if(r.each(u,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var h=(0,l.makeColumnLayout)(u),p=function(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],s=(0,l.retrieveColumnLayout)(i,n.axis);if(void 0===s)return{min:t,max:e};var u=1/0;r.each(s,(function(t){u=Math.min(t.offset,u)}));var c=-1/0;r.each(s,(function(t){c=Math.max(t.offset+t.width,c)})),u=Math.abs(u),c=Math.abs(c);var h=u+c,p=e-t,d=p/(1-(u+c)/a)-p;return{min:t-=d*(u/h),max:e+=d*(c/h)}}(o,a,e,h);o=p.min,a=p.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function g(t,e){var n=e,r=f(t,n),i=r.extent,o=n.get("splitNumber");t instanceof h.default&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function y(t,e){if(e=e||t.get("type"))switch(e){case"category":return new(0,i.default)({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new(0,c.default)({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(s.default.getClass(e)||a.default)}}function m(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function v(t){var e,n,i=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):r.isString(i)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(i):r.isFunction(i)?(e=i,function(n,r){return null!=o&&(r=n.value-o),e(x(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function x(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function _(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,o,a=n.getExtent();o=n instanceof i.default?n.count():(r=n.getTicks()).length;var s,l,c,h,p,d,f,g=t.getLabelModel(),y=v(t),m=1;o>40&&(m=Math.ceil(o/40));for(var x=0;x<o;x+=m){var _=y(r?r[x]:{value:a[0]+x},x),b=(l=g.getTextRect(_),void 0,void 0,void 0,void 0,void 0,c=(g.get("rotate")||0)*Math.PI/180,h=l.width,p=l.height,d=h*Math.abs(Math.cos(c))+Math.abs(p*Math.sin(c)),f=h*Math.abs(Math.sin(c))+Math.abs(p*Math.cos(c)),new(0,u.default)(l.x,l.y,d,f));s?s.union(b):s=b}return s}}function b(t){var e=t.get("interval");return null==e?"auto":e}function S(t){return"category"===t.type&&0===b(t.getLabelModel())}function w(t,e){var n={};return r.each(t.mapDimensionsAll(e),(function(e){n[(0,p.getStackedDimension)(t,e)]=!0})),r.keys(n)}function M(t,e,n){e&&r.each(w(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}))}})),o.register("NN8JZ",(function(t,n){e(t.exports,"default",(function(){return c}));var r=o("2pli3"),i=o("7DSyS"),a=o("bC8qa"),s=o("1zbr5"),l=o("2fV2j"),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new(0,a.default)({})),(0,l.isArray)(r)&&(r=new(0,a.default)({categories:(0,l.map)(r,(function(t){return(0,l.isObject)(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return(0,r.__extends)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,l.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),s.contain(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),s.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(s.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(i.default);i.default.registerClass(u);var c=u})),o.register("7DSyS",(function(t,n){e(t.exports,"default",(function(){return a}));var r=o("fyXJH"),i=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();r.enableClassManagement(i);var a=i})),o.register("bC8qa",(function(t,n){e(t.exports,"default",(function(){return s}));var r=o("2fV2j"),i=0;function a(t){return(0,r.isObject)(t)&&null!=t.value?t.value:t+""}var s=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++i}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&(0,r.map)(i,a);return new t({categories:o,needCollect:!o,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(!(0,r.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,r.createHashMap)(this.categories))},t}()})),o.register("1zbr5",(function(t,n){e(t.exports,"isIntervalOrLogScale",(function(){return i})),e(t.exports,"intervalScaleNiceTicks",(function(){return a})),e(t.exports,"getIntervalPrecision",(function(){return l})),e(t.exports,"increaseInterval",(function(){return s})),e(t.exports,"contain",(function(){return c})),e(t.exports,"normalize",(function(){return h})),e(t.exports,"scale",(function(){return p}));var r=o("iIXbb");function i(t){return"interval"===t.type||"log"===t.type}function a(t,e,n,i){var o={},a=t[1]-t[0],s=o.interval=(0,r.nice)(a/e,!0);null!=n&&s<n&&(s=o.interval=n),null!=i&&s>i&&(s=o.interval=i);var c=o.intervalPrecision=l(s);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),u(t,0,e),u(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[(0,r.round)(Math.ceil(t[0]/s)*s,c),(0,r.round)(Math.floor(t[1]/s)*s,c)],t),o}function s(t){var e=Math.pow(10,(0,r.quantityExponent)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,r.round)(n*e)}function l(t){return(0,r.getPrecision)(t)+2}function u(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(t,e){return t>=e[0]&&t<=e[1]}function h(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function p(t,e){return t*(e[1]-e[0])+e[0]}})),o.register("aIyi7",(function(t,n){e(t.exports,"default",(function(){return h}));var r=o("2pli3"),i=o("iIXbb"),a=o("gnWKD"),s=o("7DSyS"),l=o("1zbr5"),u=i.round,c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,r.__extends)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return l.contain(t,this._extent)},e.prototype.normalize=function(t){return l.normalize(t,this._extent)},e.prototype.scale=function(t){return l.scale(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=l.getIntervalPrecision(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:u(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=u(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:u(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],c=(o.value-a.value)/t;s<t-1;){var h=u(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=i.getPrecision(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=u(t.value,n,!0);return a.addCommas(r)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=l.intervalScaleNiceTicks(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=u(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=u(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(s.default);s.default.registerClass(c);var h=c})),o.register("7Nj47",(function(t,n){e(t.exports,"getLayoutOnAxis",(function(){return p})),e(t.exports,"prepareLayoutBarSeries",(function(){return d})),e(t.exports,"makeColumnLayout",(function(){return f})),e(t.exports,"retrieveColumnLayout",(function(){return y})),e(t.exports,"layout",(function(){return m})),e(t.exports,"createProgressiveLayout",(function(){return v}));var r=o("2fV2j"),i=o("iIXbb"),a=o("1O8EX"),s=o("1ZHIk"),l=o("jgaRs"),u="__ec_stack_";function c(t){return t.get("stack")||u+t.seriesIndex}function h(t){return t.dim+t.index}function p(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push((0,r.defaults)({bandWidth:i,axisKey:"axis0",stackId:u+o},t));var a=g(e),s=[];for(o=0;o<t.count;o++){var l=a.axis0[u+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function d(t,e){var n=[];return e.eachSeriesByType(t,(function(t){x(t)&&n.push(t)})),n}function f(t){var e=function(t){var e={};(0,r.each)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[i]=a}}return n}(t),n=[];return(0,r.each)(t,(function(t){var r,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),d=Math.abs(p[1]-p[0]);r=l?u/d*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var g=(0,i.parsePercent)(t.get("barWidth"),r),y=(0,i.parsePercent)(t.get("barMaxWidth"),r),m=(0,i.parsePercent)(t.get("barMinWidth")||(_(t)?.5:1),r),v=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:g,barMaxWidth:y,barMinWidth:m,barGap:v,barCategoryGap:x,axisKey:h(o),stackId:c(t)})})),g(n)}function g(t){var e={};(0,r.each)(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return(0,r.each)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=(0,r.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var u=(0,i.parsePercent)(s,a),c=(0,i.parsePercent)(t.gap,1),h=t.remainedWidth,p=t.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),(0,r.each)(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)r=t.width,e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,h-=r+c*r,p--;else{var r=d;e&&e<r&&(r=Math.min(e,h)),n&&n>r&&(r=n),r!==d&&(t.width=r,h-=r+c*r,p--)}})),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var f,g=0;(0,r.each)(o,(function(t,e){t.width||(t.width=d),f=t,g+=t.width*(1+c)})),f&&(g-=f.width*c);var y=-g/2;(0,r.each)(o,(function(t,r){n[e][r]=n[e][r]||{bandWidth:a,offset:y,width:t.width},y+=t.width*(1+c)}))})),n}function y(t,e,n){if(t&&e){var r=t[h(e)];return null!=r&&null!=n?r[c(n)]:r}}function m(t,e){var n=d(t,e),i=f(n);(0,r.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=c(t),o=i[h(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function v(t){return{seriesType:t,plan:(0,s.default)(),reset:function(t){if(x(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(r.dim)),u=t.get("showBackground",!0),c=e.mapDimension(i.dim),h=e.getCalculationInfo("stackResultDimension"),p=(0,a.isDimensionStacked)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),f=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),g=_(t),y=t.get("barMinHeight")||0,m=h&&e.getDimensionIndex(h),v=e.getLayout("size"),b=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,a=g&&(0,l.createFloat32Array)(3*i),c=g&&u&&(0,l.createFloat32Array)(3*i),h=g&&(0,l.createFloat32Array)(i),x=n.master.getRect(),_=d?x.width:x.height,S=e.getStore(),w=0;null!=(r=t.next());){var M=S.get(p?m:o,r),I=S.get(s,r),T=f,A=void 0;p&&(A=+M-S.get(o,r));var C=void 0,D=void 0,k=void 0,L=void 0;if(d){var O=n.dataToPoint([M,I]);p&&(T=n.dataToPoint([A,I])[0]),C=T,D=O[1]+b,k=O[0]-T,L=v,Math.abs(k)<y&&(k=(k<0?-1:1)*y)}else O=n.dataToPoint([I,M]),p&&(T=n.dataToPoint([I,A])[1]),C=O[0]+b,D=T,k=v,L=O[1]-T,Math.abs(L)<y&&(L=(L<=0?-1:1)*y);g?(a[w]=C,a[w+1]=D,a[w+2]=d?k:L,c&&(c[w]=d?x.x:C,c[w+1]=d?D:x.y,c[w+2]=_),h[r]=r):e.setItemLayout(r,{x:C,y:D,width:k,height:L}),w+=3}g&&e.setLayout({largePoints:a,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function x(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function _(t){return t.pipelineContext&&t.pipelineContext.large}})),o.register("jgaRs",(function(t,n){e(t.exports,"createFloat32Array",(function(){return s}));var r=o("2fV2j"),i="undefined"!=typeof Float32Array,a=i?Float32Array:Array;function s(t){return(0,r.isArray)(t)?i?new Float32Array(t):t:new a(t)}})),o.register("3hmyO",(function(t,n){e(t.exports,"default",(function(){return x}));var r=o("2pli3"),i=o("iIXbb"),a=o("fdJAh"),s=o("1zbr5"),l=o("aIyi7"),u=o("7DSyS"),c=o("2fV2j"),h=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,r.__extends)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,a.format)(t.value,a.fullLeveledFormatter[(0,a.getDefaultFormatPrecisionOfInterval)((0,a.getPrimaryTimeUnit)(this._minLevelUnit))]||a.fullLeveledFormatter.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return(0,a.leveledFormat)(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),o=function(t,e,n,r){var o=a.timeUnits,s=0;function l(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function u(t,o,s){var u=[],c=!o.length;if(!function(t,e,n,r){var o=i.parseDate(e),s=i.parseDate(n),l=function(t){return(0,a.getUnitValue)(o,t,r)===(0,a.getUnitValue)(s,t,r)},u=function(){return l("year")},c=function(){return u()&&l("month")},h=function(){return c()&&l("day")},p=function(){return h()&&l("hour")},d=function(){return p()&&l("minute")},f=function(){return d()&&l("second")};switch(t){case"year":return u();case"month":return c();case"day":return h();case"hour":return p();case"minute":return d();case"second":return f();case"millisecond":return f()&&l("millisecond")}}((0,a.getPrimaryTimeUnit)(t),r[0],r[1],n)){c&&(o=[{value:v(new Date(r[0]),t,n)},{value:r[1]}]);for(var h=0;h<o.length-1;h++){var p=o[h].value,x=o[h+1].value;if(p!==x){var _=void 0,b=void 0,S=void 0;switch(t){case"year":_=Math.max(1,Math.round(e/a.ONE_DAY/365)),b=(0,a.fullYearGetterName)(n),S=(0,a.fullYearSetterName)(n);break;case"half-year":case"quarter":case"month":_=f(e),b=(0,a.monthGetterName)(n),S=(0,a.monthSetterName)(n);break;case"week":case"half-week":case"day":_=d(e,31),b=(0,a.dateGetterName)(n),S=(0,a.dateSetterName)(n),!0;break;case"half-day":case"quarter-day":case"hour":_=g(e),b=(0,a.hoursGetterName)(n),S=(0,a.hoursSetterName)(n);break;case"minute":_=y(e,!0),b=(0,a.minutesGetterName)(n),S=(0,a.minutesSetterName)(n);break;case"second":_=y(e,!1),b=(0,a.secondsGetterName)(n),S=(0,a.secondsSetterName)(n);break;case"millisecond":_=m(e),b=(0,a.millisecondsGetterName)(n),S=(0,a.millisecondsSetterName)(n)}l(_,p,x,b,S,0,u),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h<u.length;h++)s.push(u[h]);return u}}for(var h=[],p=[],x=0,_=0,b=0;b<o.length&&s++<1e4;++b){var S=(0,a.getPrimaryTimeUnit)(o[b]);if((0,a.isPrimaryTimeUnit)(o[b])&&(u(o[b],h[h.length-1]||[],p),S!==(o[b+1]?(0,a.getPrimaryTimeUnit)(o[b+1]):null))){if(p.length){_=x,p.sort((function(t,e){return t.value-e.value}));for(var w=[],M=0;M<p.length;++M){var I=p[M].value;0!==M&&p[M-1].value===I||(w.push(p[M]),I>=r[0]&&I<=r[1]&&x++)}var T=(r[1]-r[0])/e;if(x>1.5*T&&_>T/1.5)break;if(h.push(w),x>T||t===o[b])break}p=[]}}var A=(0,c.filter)((0,c.map)(h,(function(t){return(0,c.filter)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),C=[],D=A.length-1;for(b=0;b<A.length;++b)for(var k=A[b],L=0;L<k.length;++L)C.push({value:k[L].value,level:D-b});C.sort((function(t,e){return t.value-e.value}));var O=[];for(b=0;b<C.length;++b)0!==b&&C[b].value===C[b-1].value||O.push(C[b]);return O}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(o)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=a.ONE_DAY,e[1]+=a.ONE_DAY),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-a.ONE_DAY}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=p.length,a=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}(p,this._approxInterval,0,o),o-1);this._interval=p[a][1],this._minLevelUnit=p[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,c.isNumber)(t)?t:+i.parseDate(t)},e.prototype.contain=function(t){return s.contain(this.parse(t),this._extent)},e.prototype.normalize=function(t){return s.normalize(this.parse(t),this._extent)},e.prototype.scale=function(t){return s.scale(t,this._extent)},e.type="time",e}(l.default),p=[["second",a.ONE_SECOND],["minute",a.ONE_MINUTE],["hour",a.ONE_HOUR],["quarter-day",6*a.ONE_HOUR],["half-day",12*a.ONE_HOUR],["day",1.2*a.ONE_DAY],["half-week",3.5*a.ONE_DAY],["week",7*a.ONE_DAY],["month",31*a.ONE_DAY],["quarter",95*a.ONE_DAY],["half-year",a.ONE_YEAR/2],["year",a.ONE_YEAR]];function d(t,e){return(t/=a.ONE_DAY)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function f(t){return(t/=30*a.ONE_DAY)>6?6:t>3?3:t>2?2:1}function g(t){return(t/=a.ONE_HOUR)>12?12:t>6?6:t>3.5?4:t>2?2:1}function y(t,e){return(t/=e?a.ONE_MINUTE:a.ONE_SECOND)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function m(t){return i.nice(t,!0)}function v(t,e,n){var r=new Date(t);switch((0,a.getPrimaryTimeUnit)(e)){case"year":case"month":r[(0,a.monthSetterName)(n)](0);case"day":r[(0,a.dateSetterName)(n)](1);case"hour":r[(0,a.hoursSetterName)(n)](0);case"minute":r[(0,a.minutesSetterName)(n)](0);case"second":r[(0,a.secondsSetterName)(n)](0),r[(0,a.millisecondsSetterName)(n)](0)}return r.getTime()}u.default.registerClass(h);var x=h})),o.register("8Wuw6",(function(t,n){e(t.exports,"default",(function(){return _}));var r=o("2pli3"),i=o("2fV2j"),a=o("7DSyS"),s=o("iIXbb"),l=o("1zbr5"),u=o("aIyi7"),c=a.default.prototype,h=u.default.prototype,p=s.round,d=Math.floor,f=Math.ceil,g=Math.pow,y=Math.log,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new(0,u.default),e._interval=0,e}return(0,r.__extends)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=h.getTicks.call(this,t);return i.map(o,(function(t){var e=t.value,i=s.round(g(this.base,e));return i=e===n[0]&&this._fixMin?x(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?x(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=y(this.base);t=y(Math.max(0,t))/n,e=y(Math.max(0,e))/n,h.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=c.getExtent.call(this);e[0]=g(t,e[0]),e[1]=g(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=x(e[0],n[0])),this._fixMax&&(e[1]=x(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=y(t[0])/y(e),t[1]=y(t[1])/y(e),c.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=s.quantity(n);for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[s.round(f(e[0]/r)*r),s.round(d(e[1]/r)*r)];this._interval=r,this._niceExtent=i}},e.prototype.calcNiceExtent=function(t){h.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=y(t)/y(this.base),l.contain(t,this._extent)},e.prototype.normalize=function(t){return t=y(t)/y(this.base),l.normalize(t,this._extent)},e.prototype.scale=function(t){return t=l.scale(t,this._extent),g(this.base,t)},e.type="log",e}(a.default),v=m.prototype;function x(t,e){return p(t,s.getPrecision(e))}v.getMinorTicks=h.getMinorTicks,v.getLabel=h.getLabel,a.default.registerClass(m);var _=m})),o.register("3fNUT",(function(t,n){e(t.exports,"ensureScaleRawExtentInfo",(function(){return u}));var r=o("2fV2j"),i=o("lj5IW"),a=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);(0,r.isFunction)(a)?this._modelMinNum=c(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=c(t,a));var s=this._modelMaxRaw=e.get("max",!0);if((0,r.isFunction)(s)?this._modelMaxNum=c(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=c(t,s)),o)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=(0,r.isArray)(l)?l:[l||0,l||0];"boolean"==typeof u[0]||"boolean"==typeof u[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,i.parsePercent)(u[0],1),(0,i.parsePercent)(u[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?i?0:NaN:e-o[0]*a),null==l&&(l=t?i?i-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,r.eqNaN)(s)||(0,r.eqNaN)(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return null!=p&&(s=p,u=!0),null!=d&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[l[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[s[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),s={min:"_determinedMin",max:"_determinedMax"},l={min:"_dataMin",max:"_dataMax"};function u(t,e,n){var r=t.rawExtentInfo;return r||(r=new a(t,e,n),t.rawExtentInfo=r,r)}function c(t,e){return null==e?null:(0,r.eqNaN)(e)?NaN:t.parse(e)}})),o.register("aZZ0S",(function(t,n){e(t.exports,"AxisModelCommonMixin",(function(){return r}));var r=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()})),o.register("loiyq",(function(t,n){e(t.exports,"use",(function(){return f}));var r=o("5TtXY"),i=o("jMGr2"),a=o("ansKp"),s=o("krEnk"),l=o("icZIP"),u=o("2fV2j"),c=o("lYz6m"),h=o("i2pfq"),p=[],d={registerPreprocessor:r.registerPreprocessor,registerProcessor:r.registerProcessor,registerPostInit:r.registerPostInit,registerPostUpdate:r.registerPostUpdate,registerUpdateLifecycle:r.registerUpdateLifecycle,registerAction:r.registerAction,registerCoordinateSystem:r.registerCoordinateSystem,registerLayout:r.registerLayout,registerVisual:r.registerVisual,registerTransform:r.registerTransform,registerLoading:r.registerLoading,registerMap:r.registerMap,registerImpl:c.registerImpl,PRIORITY:r.PRIORITY,ComponentModel:s.default,ComponentView:i.default,SeriesModel:l.default,ChartView:a.default,registerComponentModel:function(t){s.default.registerClass(t)},registerComponentView:function(t){i.default.registerClass(t)},registerSeriesModel:function(t){l.default.registerClass(t)},registerChartView:function(t){a.default.registerClass(t)},registerSubTypeDefaulter:function(t,e){s.default.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,h.registerPainter)(t,e)}};function f(t){(0,u.isArray)(t)?(0,u.each)(t,(function(t){f(t)})):(0,u.indexOf)(p,t)>=0||(p.push(t),(0,u.isFunction)(t)&&(t={install:t}),t.install(d))}})),o.register("9RZSW",(function(t,n){e(t.exports,"default",(function(){return l}));var r=o("2fV2j"),i=o("9X5ej");function a(t,e,n){for(var r=0;r<t.length;r++)t[r]=s(t[r],e[r],n)}function s(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 l(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return r.each(i,(function(t){var e=t.geometry,i=e.encodeOffsets,o=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=s(o,i,n);break;case"Polygon":case"MultiLineString":a(o,i,n);break;case"MultiPolygon":r.each(o,(function(t,e){return a(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t),r.map(r.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new(0,i.GeoJSONPolygonGeometry)(s[0],s.slice(1)));break;case"MultiPolygon":r.each(o.coordinates,(function(t){t[0]&&a.push(new(0,i.GeoJSONPolygonGeometry)(t[0],t.slice(1)))}));break;case"LineString":a.push(new(0,i.GeoJSONLineStringGeometry)([o.coordinates]));break;case"MultiLineString":a.push(new(0,i.GeoJSONLineStringGeometry)(o.coordinates))}var l=new(0,i.GeoJSONRegion)(n[e||"name"],a,n.cp);return l.properties=n,l}))}})),o.register("9X5ej",(function(t,n){e(t.exports,"GeoJSONPolygonGeometry",(function(){return f})),e(t.exports,"GeoJSONLineStringGeometry",(function(){return g})),e(t.exports,"GeoJSONRegion",(function(){return y})),e(t.exports,"GeoSVGRegion",(function(){return m}));var r=o("2pli3"),i=o("e2ttp"),a=o("lDRrb"),s=o("jUdXv"),l=o("2QCok"),u=o("2fV2j"),c=[];function h(t,e){for(var n=0;n<t.length;n++)a.applyTransform(t[n],t[n],e)}function p(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])&&(a.min(e,e,o),a.max(n,n,o))}}var d=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}(),f=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},g=function(t){this.type="linestring",this.points=t},y=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(0,r.__extends)(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],o=this.geometries;return(0,u.each)(o,(function(e){"polygon"===e.type?p(e.exterior,n,r,t):(0,u.each)(e.points,(function(e){p(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(0,i.default)(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,l=o.interiors;if(s.contain(a,t[0],t[1])){for(var u=0;u<(l?l.length:0);u++)if(s.contain(l[u],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var o=this.getBoundingRect(),a=o.width/o.height;n?r||(r=n/a):n=a*r;for(var s=new(0,i.default)(t,e,n,r),l=o.calculateTransform(s),c=this.geometries,p=0;p<c.length;p++){var d=c[p];"polygon"===d.type?(h(d.exterior,l),(0,u.each)(d.interiors,(function(t){h(t,l)}))):(0,u.each)(d.points,(function(t){h(t,l)}))}(o=this._rect).copy(s),this._center=[o.x+o.width/2,o.y+o.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}(d),m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return(0,r.__extends)(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=l.identity(c),i=t;i&&!i.isGeoSVGGraphicRoot;)l.mul(r,i.getLocalTransform(),r),i=i.parent;return l.invert(r,r),a.applyTransform(n,n,r),n},e}(d)})),o.register("jUdXv",(function(t,n){e(t.exports,"contain",(function(){return a}));var r=o("kAKGd");function i(t,e){return Math.abs(t-e)<1e-8}function a(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var l=t[s];o+=(0,r.default)(a[0],a[1],l[0],l[1],e,n),a=l}var u=t[0];return i(a[0],u[0])&&i(a[1],u[1])||(o+=(0,r.default)(a[0],a[1],u[0],u[1],e,n)),0!==o}})),o.register("9Fdih",(function(t,n){e(t.exports,"linearMap",(function(){return o("iIXbb").linearMap})),e(t.exports,"round",(function(){return o("iIXbb").round})),e(t.exports,"asc",(function(){return o("iIXbb").asc})),e(t.exports,"getPrecision",(function(){return o("iIXbb").getPrecision})),e(t.exports,"getPrecisionSafe",(function(){return o("iIXbb").getPrecisionSafe})),e(t.exports,"getPixelPrecision",(function(){return o("iIXbb").getPixelPrecision})),e(t.exports,"getPercentWithPrecision",(function(){return o("iIXbb").getPercentWithPrecision})),e(t.exports,"MAX_SAFE_INTEGER",(function(){return o("iIXbb").MAX_SAFE_INTEGER})),e(t.exports,"remRadian",(function(){return o("iIXbb").remRadian})),e(t.exports,"isRadianAroundZero",(function(){return o("iIXbb").isRadianAroundZero})),e(t.exports,"parseDate",(function(){return o("iIXbb").parseDate})),e(t.exports,"quantity",(function(){return o("iIXbb").quantity})),e(t.exports,"quantityExponent",(function(){return o("iIXbb").quantityExponent})),e(t.exports,"nice",(function(){return o("iIXbb").nice})),e(t.exports,"quantile",(function(){return o("iIXbb").quantile})),e(t.exports,"reformIntervals",(function(){return o("iIXbb").reformIntervals})),e(t.exports,"isNumeric",(function(){return o("iIXbb").isNumeric})),e(t.exports,"numericToNumber",(function(){return o("iIXbb").numericToNumber})),o("iIXbb")})),o.register("f595g",(function(t,n){e(t.exports,"parse",(function(){return o("iIXbb").parseDate})),e(t.exports,"format",(function(){return o("fdJAh").format})),o("iIXbb"),o("fdJAh")})),o.register("1i5Jx",(function(t,n){e(t.exports,"extendShape",(function(){return o("4x6s5").extendShape})),e(t.exports,"extendPath",(function(){return o("4x6s5").extendPath})),e(t.exports,"makePath",(function(){return o("4x6s5").makePath})),e(t.exports,"makeImage",(function(){return o("4x6s5").makeImage})),e(t.exports,"mergePath",(function(){return o("4x6s5").mergePath})),e(t.exports,"resizePath",(function(){return o("4x6s5").resizePath})),e(t.exports,"createIcon",(function(){return o("4x6s5").createIcon})),e(t.exports,"updateProps",(function(){return o("4NPqX").updateProps})),e(t.exports,"initProps",(function(){return o("4NPqX").initProps})),e(t.exports,"getTransform",(function(){return o("4x6s5").getTransform})),e(t.exports,"clipPointsByRect",(function(){return o("4x6s5").clipPointsByRect})),e(t.exports,"clipRectByRect",(function(){return o("4x6s5").clipRectByRect})),e(t.exports,"registerShape",(function(){return o("4x6s5").registerShape})),e(t.exports,"getShapeClass",(function(){return o("4x6s5").getShapeClass})),e(t.exports,"Group",(function(){return o("4zWIO").default})),e(t.exports,"Image",(function(){return o("b1qY0").default})),e(t.exports,"Text",(function(){return o("kjDai").default})),e(t.exports,"Circle",(function(){return o("18USZ").default})),e(t.exports,"Ellipse",(function(){return o("5GLyX").default})),e(t.exports,"Sector",(function(){return o("4rNRw").default})),e(t.exports,"Ring",(function(){return o("9AYeo").default})),e(t.exports,"Polygon",(function(){return o("4w8lf").default})),e(t.exports,"Polyline",(function(){return o("ln8jP").default})),e(t.exports,"Rect",(function(){return o("4m2Ab").default})),e(t.exports,"Line",(function(){return o("8UpdG").default})),e(t.exports,"BezierCurve",(function(){return o("2Kft9").default})),e(t.exports,"Arc",(function(){return o("eDBCF").default})),e(t.exports,"IncrementalDisplayable",(function(){return o("7fcf9").default})),e(t.exports,"CompoundPath",(function(){return o("hqpEF").default})),e(t.exports,"LinearGradient",(function(){return o("kwypm").default})),e(t.exports,"RadialGradient",(function(){return o("cVxFK").default})),e(t.exports,"BoundingRect",(function(){return o("e2ttp").default})),o("4x6s5"),o("4NPqX"),o("b1qY0"),o("18USZ"),o("5GLyX"),o("4rNRw"),o("9AYeo"),o("4w8lf"),o("ln8jP"),o("4m2Ab"),o("8UpdG"),o("2Kft9"),o("eDBCF"),o("e2ttp"),o("hqpEF"),o("4zWIO"),o("7fcf9"),o("4NPqX"),o("kwypm"),o("cVxFK"),o("kjDai")})),o.register("hR0oZ",(function(t,n){e(t.exports,"addCommas",(function(){return o("gnWKD").addCommas})),e(t.exports,"toCamelCase",(function(){return o("gnWKD").toCamelCase})),e(t.exports,"normalizeCssArray",(function(){return o("gnWKD").normalizeCssArray})),e(t.exports,"encodeHTML",(function(){return o("049dS").encodeHTML})),e(t.exports,"formatTpl",(function(){return o("gnWKD").formatTpl})),e(t.exports,"getTooltipMarker",(function(){return o("gnWKD").getTooltipMarker})),e(t.exports,"formatTime",(function(){return o("gnWKD").formatTime})),e(t.exports,"capitalFirst",(function(){return o("gnWKD").capitalFirst})),e(t.exports,"truncateText",(function(){return o("3yrYX").truncateText})),e(t.exports,"getTextRect",(function(){return o("73LCa").getTextRect})),o("gnWKD"),o("049dS"),o("73LCa"),o("3yrYX")})),o.register("esD2j",(function(t,n){e(t.exports,"map",(function(){return o("2fV2j").map})),e(t.exports,"each",(function(){return o("2fV2j").each})),e(t.exports,"indexOf",(function(){return o("2fV2j").indexOf})),e(t.exports,"inherits",(function(){return o("2fV2j").inherits})),e(t.exports,"reduce",(function(){return o("2fV2j").reduce})),e(t.exports,"filter",(function(){return o("2fV2j").filter})),e(t.exports,"bind",(function(){return o("2fV2j").bind})),e(t.exports,"curry",(function(){return o("2fV2j").curry})),e(t.exports,"isArray",(function(){return o("2fV2j").isArray})),e(t.exports,"isString",(function(){return o("2fV2j").isString})),e(t.exports,"isObject",(function(){return o("2fV2j").isObject})),e(t.exports,"isFunction",(function(){return o("2fV2j").isFunction})),e(t.exports,"extend",(function(){return o("2fV2j").extend})),e(t.exports,"defaults",(function(){return o("2fV2j").defaults})),e(t.exports,"clone",(function(){return o("2fV2j").clone})),e(t.exports,"merge",(function(){return o("2fV2j").merge})),o("2fV2j")})),o.register("jXYF6",(function(t,n){e(t.exports,"default",(function(){return u}));var r=o("2fV2j"),i=o("iIXbb"),a=o("akKPc"),s=[0,1];function l(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var u=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,i.getPixelPrecision)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count()),(0,i.linearMap)(t,s,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count());var o=(0,i.linearMap)(t,n,s,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=(0,a.createAxisTicks)(this,e).ticks,o=(0,r.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,o){var a=e.length;if(t.onBand&&!n&&a){var s,l,u=t.getExtent();if(1===a)e[0].coord=u[0],s=e[1]={coord:u[1]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;(0,r.each)(e,(function(t){t.coord-=h/2})),l=1+t.scale.getExtent()[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*l},e.push(s)}var p=u[0]>u[1];d(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift()),o&&d(u[0],e[0].coord)&&e.unshift({coord:u[0]}),d(u[1],s.coord)&&(o?s.coord=u[1]:e.pop()),o&&d(s.coord,u[1])&&e.push({coord:u[1]})}function d(t,e){return t=(0,i.round)(t),e=(0,i.round)(e),p?t>e:t<e}}(this,o,e.get("alignWithLabel"),t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,r.map)(e,(function(t){return(0,r.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return(0,a.createAxisLabels)(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return(0,a.calculateCategoryInterval)(this)},t}()})),o.register("akKPc",(function(t,n){e(t.exports,"createAxisLabels",(function(){return u})),e(t.exports,"createAxisTicks",(function(){return c})),e(t.exports,"calculateCategoryInterval",(function(){return g}));var r=o("2fV2j"),i=o("lj5IW"),a=o("jnApb"),s=o("9XcNn"),l=(0,a.makeInner)();function u(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=h(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=(0,s.makeLabelFormatter)(t);return{labels:r.map(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function c(t,e){return"category"===t.type?function(t,e){var n,i,o=p(t,"ticks"),a=(0,s.getOptionCategoryInterval)(e),l=d(o,a);if(l)return l;if(e.get("show")&&!t.scale.isBlank()||(n=[]),r.isFunction(a))n=m(t,a,!0);else if("auto"===a){var u=h(t,t.getLabelModel());i=u.labelCategoryInterval,n=r.map(u.labels,(function(t){return t.tickValue}))}else n=y(t,i=a,!0);return f(o,a,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:r.map(t.scale.getTicks(),(function(t){return t.value}))}}function h(t,e){var n,i,o=p(t,"labels"),a=(0,s.getOptionCategoryInterval)(e);return d(o,a)||(r.isFunction(a)?n=m(t,a):(i="auto"===a?function(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}(t):a,n=y(t,i)),f(o,a,{labels:n,labelCategoryInterval:i}))}function p(t,e){return l(t)[e]||(l(t)[e]=[])}function d(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function f(t,e,n){return t.push({key:e,value:n}),n}function g(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=(0,s.makeLabelFormatter)(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),u=o.count();if(a[1]-a[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=a[0],p=t.dataToCoord(h+1)-t.dataToCoord(h),d=Math.abs(p*Math.cos(r)),f=Math.abs(p*Math.sin(r)),g=0,y=0;h<=a[1];h+=c){var m,v,x=i.getBoundingRect(n({value:h}),e.font,"center","top");m=1.3*x.width,v=1.3*x.height,g=Math.max(g,m,7),y=Math.max(y,v,7)}var _=g/d,b=y/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b))),w=l(t.model),M=t.getExtent(),I=w.lastAutoInterval,T=w.lastTickCount;return null!=I&&null!=T&&Math.abs(I-S)<=1&&Math.abs(T-u)<=1&&I>S&&w.axisExtent0===M[0]&&w.axisExtent1===M[1]?S=I:(w.lastTickCount=u,w.lastAutoInterval=S,w.axisExtent0=M[0],w.axisExtent1=M[1]),S}function y(t,e,n){var r=(0,s.makeLabelFormatter)(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=o[0],h=i.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var p=(0,s.shouldShowAllLabels)(t),d=a.get("showMinLabel")||p,f=a.get("showMaxLabel")||p;d&&c!==o[0]&&y(o[0]);for(var g=c;g<=o[1];g+=u)y(g);function y(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return f&&g-u!==o[1]&&y(o[1]),l}function m(t,e,n){var i=t.scale,o=(0,s.makeLabelFormatter)(t),a=[];return r.each(i.getTicks(),(function(t){var r=i.getLabel(t),s=t.value;e(t.value,r)&&a.push(n?s:{formattedLabel:o(t),rawLabel:r,tickValue:s})})),a}})),o.register("axDY0",(function(t,n){e(t.exports,"installLabelLayout",(function(){return s}));var r=o("jnApb"),i=o("8F3Zq"),a=(0,r.makeInner)();function s(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=a(e).labelManager;r||(r=a(e).labelManager=new(0,i.default)),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=a(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}})),o.register("8F3Zq",(function(t,n){e(t.exports,"default",(function(){return w}));var r=o("e2ttp"),i=o("4NPqX");o("4x6s5"),i=o("4NPqX");var a=o("by2b6"),s=o("iIXbb"),l=o("bCcJ1"),u=o("iUFRK"),c=o("jnApb"),h=o("2fV2j"),p=o("mPTQR"),d=o("5xWWJ"),f=o("yI2pV");function g(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function y(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:g(r&&r.shape.points)}}var m=["align","verticalAlign","width","height","fontSize"],v=new(0,l.default),x=(0,c.makeInner)(),_=(0,c.makeInner)();function b(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var S=["x","y","rotation"],w=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,o){var a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();r.default.applyTransform(u,u,l),l?v.setLocalTransform(l):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1),v.rotation=(0,f.normalizeRadian)(v.rotation);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var p=h.getComputedTransform();r.default.applyTransform(c,c,p)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");((0,h.isFunction)(r)||(0,h.keys)(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=(0,a.getECData)(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){(0,u.updateLabelLinePoints)(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,l=a.__hostTarget,c=o.defaultAttr,p=void 0;p=(p=(0,h.isFunction)(o.layoutOption)?o.layoutOption(y(o,l)):o.layoutOption)||{},o.computedLayoutOption=p;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=p.x||null!=p.y?null:c.attachedPos,rotation:null!=p.rotate?p.rotate*d:c.attachedRot,offset:[p.dx||0,p.dy||0]});var f=!1;if(null!=p.x?(a.x=(0,s.parsePercent)(p.x,e),a.setStyle("x",0),f=!0):(a.x=c.x,a.setStyle("x",c.style.x)),null!=p.y?(a.y=(0,s.parsePercent)(p.y,n),a.setStyle("y",0),f=!0):(a.y=c.y,a.setStyle("y",c.style.y)),p.labelLinePoints){var g=l.getTextGuideLine();g&&(g.setShape({points:p.labelLinePoints}),f=!1)}x(a).needsUpdateLabelLine=f,a.rotation=null!=p.rotate?p.rotate*d:c.rotation,a.scaleX=c.scaleX,a.scaleY=c.scaleY;for(var v=0;v<m.length;v++){var _=m[v];a.setStyle(_,null!=p[_]?p[_]:c.style[_])}if(p.draggable){if(a.draggable=!0,a.cursor="move",l){var b=o.seriesModel;null!=o.dataIndex&&(b=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),a.on("drag",r(l,b.getModel("labelLine")))}}else a.off("drag"),a.cursor=c.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=(0,p.prepareLayoutList)(this._labelList),i=(0,h.filter)(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=(0,h.filter)(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));(0,p.shiftLayoutOnX)(i,0,e),(0,p.shiftLayoutOnY)(o,0,n);var a=(0,h.filter)(r,(function(t){return t.layoutOption.hideOverlap}));(0,p.hideOverlap)(a)},t.prototype.processLabelsOverall=function(){var t=this;(0,h.each)(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=x(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=(0,a.getECData)(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),s=o.getItemModel(i),l={},c=o.getItemVisual(i,"style");if(c){var h=o.getVisual("drawType");l.stroke=c[h]}var p=s.getModel("labelLine");(0,u.setLabelLineStyle)(t,(0,u.getLabelLineStatesModels)(s),l),(0,u.updateLabelLinePoints)(t,p)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!(0,i.isElementRemoved)(t))){var o=(m=x(n)).oldLayout,s=(0,a.getECData)(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=e.getData(s.dataType);if(o){n.attr(o);var p=t.prevStates;p&&((0,h.indexOf)(p,"select")>=0&&n.attr(m.oldLayoutSelect),(0,h.indexOf)(p,"emphasis")>=0&&n.attr(m.oldLayoutEmphasis)),(0,i.updateProps)(n,u,e,l)}else if(n.attr(u),!(0,d.labelInner)(n).valueAnimation){var f=(0,h.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,i.initProps)(n,{style:{opacity:f}},e,l)}if(m.oldLayout=u,n.states.select){var g=m.oldLayoutSelect={};b(g,u,S),b(g,n.states.select,S)}if(n.states.emphasis){var y=m.oldLayoutEmphasis={};b(y,u,S),b(y,n.states.emphasis,S)}(0,d.animateLabelValue)(n,l,c,e,e)}if(r&&!r.ignore&&!r.invisible){o=(m=_(r)).oldLayout;var m,v={points:r.shape.points};o?(r.attr({shape:o}),(0,i.updateProps)(r,{shape:v},e)):(r.setShape(v),r.style.strokePercent=0,(0,i.initProps)(r,{style:{strokePercent:1}},e)),m.oldLayout=v}},t}()})),o.register("iUFRK",(function(t,n){e(t.exports,"updateLabelLinePoints",(function(){return D})),e(t.exports,"limitTurnAngle",(function(){return O})),e(t.exports,"limitSurfaceAngle",(function(){return P})),e(t.exports,"setLabelLineStyle",(function(){return N})),e(t.exports,"getLabelLineStatesModels",(function(){return V})),o("4x6s5");var r=o("lv1gH"),i=o("ln8jP"),a=o("7k07j"),s=o("btLRI"),l=o("yI2pV"),u=o("d7uFa"),c=o("2fV2j"),h=o("2QCok"),p=o("lDRrb"),d=o("6EdQu"),f=2*Math.PI,g=s.default.CMD,y=["top","right","bottom","left"];function m(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function v(t,e,n,r,i,o,a,s,u){a-=t,s-=e;var c=Math.sqrt(a*a+s*s),h=(a/=c)*n+t,p=(s/=c)*n+e;if(Math.abs(r-i)%f<1e-4)return u[0]=h,u[1]=p,c-n;if(o){var d=r;r=(0,l.normalizeRadian)(i),i=(0,l.normalizeRadian)(d)}else r=(0,l.normalizeRadian)(r),i=(0,l.normalizeRadian)(i);r>i&&(i+=f);var g=Math.atan2(s,a);if(g<0&&(g+=f),g>=r&&g<=i||g+f>=r&&g+f<=i)return u[0]=h,u[1]=p,c-n;var y=n*Math.cos(r)+t,m=n*Math.sin(r)+e,v=n*Math.cos(i)+t,x=n*Math.sin(i)+e,_=(y-a)*(y-a)+(m-s)*(m-s),b=(v-a)*(v-a)+(x-s)*(x-s);return _<b?(u[0]=y,u[1]=m,Math.sqrt(_)):(u[0]=v,u[1]=x,Math.sqrt(b))}function x(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,p=Math.sqrt(c*c+h*h),d=(l*(c/=p)+u*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}function _(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var b=[];function S(t,e,n){var r=_(e.x,e.y,e.width,e.height,t.x,t.y,b);return n.set(b[0],b[1]),r}function w(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,c=1/0,h=e.data,p=t.x,d=t.y,f=0;f<h.length;){var y=h[f++];1===f&&(s=o=h[f],l=a=h[f+1]);var m=c;switch(y){case g.M:o=s=h[f++],a=l=h[f++];break;case g.L:m=x(o,a,h[f],h[f+1],p,d,b,!0),o=h[f++],a=h[f++];break;case g.C:m=(0,u.cubicProjectPoint)(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],p,d,b),o=h[f++],a=h[f++];break;case g.Q:m=(0,u.quadraticProjectPoint)(o,a,h[f++],h[f++],h[f],h[f+1],p,d,b),o=h[f++],a=h[f++];break;case g.A:var S=h[f++],w=h[f++],M=h[f++],I=h[f++],T=h[f++],A=h[f++];f+=1;var C=!!(1-h[f++]);r=Math.cos(T)*M+S,i=Math.sin(T)*I+w,f<=1&&(s=r,l=i),m=v(S,w,I,T,T+A,C,(p-S)*I/M+S,d,b),o=Math.cos(T+A)*M+S,a=Math.sin(T+A)*I+w;break;case g.R:m=_(s=o=h[f++],l=a=h[f++],h[f++],h[f++],p,d,b);break;case g.Z:m=x(o,a,s,l,p,d,b,!0),o=s,a=l}m<c&&(c=m,n.set(b[0],b[1]))}return c}var M=new(0,a.default),I=new(0,a.default),T=new(0,a.default),A=new(0,a.default),C=new(0,a.default);function D(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=o.candidates||y,u=i.getBoundingRect().clone();u.applyTransform(i.getComputedTransform());var c=1/0,p=o.anchor,d=t.getComputedTransform(),f=d&&(0,h.invert)([],d),g=e.get("length2")||0;p&&T.copy(p);for(var v=0;v<l.length;v++){m(l[v],0,u,M,A),a.default.scaleAndAdd(I,M,A,g),I.transform(f);var x=t.getBoundingRect(),_=p?p.distance(I):t instanceof r.default?w(I,t.path,T):S(I,x,T);_<c&&(c=_,I.transform(d),T.transform(d),T.toArray(s[0]),I.toArray(s[1]),M.toArray(s[2]))}O(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var k=[],L=new(0,a.default);function O(t,e){if(e<=180&&e>0){e=e/180*Math.PI,M.fromArray(t[0]),I.fromArray(t[1]),T.fromArray(t[2]),a.default.sub(A,M,I),a.default.sub(C,T,I);var n=A.len(),r=C.len();if(!(n<.001||r<.001)){A.scale(1/n),C.scale(1/r);var i=A.dot(C);if(Math.cos(e)<i){var o=x(I.x,I.y,T.x,T.y,M.x,M.y,k,!1);L.fromArray(k),L.scaleAndAdd(C,o/Math.tan(Math.PI-e));var s=T.x!==I.x?(L.x-I.x)/(T.x-I.x):(L.y-I.y)/(T.y-I.y);if(isNaN(s))return;s<0?a.default.copy(L,I):s>1&&a.default.copy(L,T),L.toArray(t[1])}}}}function P(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,M.fromArray(t[0]),I.fromArray(t[1]),T.fromArray(t[2]),a.default.sub(A,I,M),a.default.sub(C,T,I);var r=A.len(),i=C.len();if(!(r<.001||i<.001)&&(A.scale(1/r),C.scale(1/i),A.dot(e)<Math.cos(n))){var o=x(I.x,I.y,T.x,T.y,M.x,M.y,k,!1);L.fromArray(k);var s=Math.PI/2,l=s+Math.acos(C.dot(e))-n;if(l>=s)a.default.copy(L,T);else{L.scaleAndAdd(C,o/Math.tan(Math.PI/2-l));var u=T.x!==I.x?(L.x-I.x)/(T.x-I.x):(L.y-I.y)/(T.y-I.y);if(isNaN(u))return;u<0?a.default.copy(L,I):u>1&&a.default.copy(L,T)}L.toArray(t[1])}}}function E(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function R(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=p.dist(r[0],r[1]),o=p.dist(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=p.lerp([],r[1],r[0],a/i),l=p.lerp([],r[1],r[2],a/o),u=p.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function N(t,e,n){var r=t.getTextGuideLine(),o=t.getTextContent();if(o){for(var a=e.normal,s=a.get("show"),l=o.ignore,u=0;u<d.DISPLAY_STATES.length;u++){var h=d.DISPLAY_STATES[u],p=e[h],f="normal"===h;if(p){var g=p.get("show");if((f?l:(0,c.retrieve2)(o.states[h]&&o.states[h].ignore,l))||!(0,c.retrieve2)(g,s)){var y=f?r:r&&r.states[h];y&&(y.ignore=!0),r&&E(r,!0,h,p);continue}r||(r=new(0,i.default),t.setTextGuideLine(r),f||!l&&s||E(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),E(r,!1,h,p)}}if(r){(0,c.defaults)(r.style,n),r.style.fill=null;var m=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=m||!1,r.buildPath=R}}else r&&t.removeTextGuideLine()}function V(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<d.SPECIAL_STATES.length;r++){var i=d.SPECIAL_STATES[r];n[i]=t.getModel([i,e])}return n}})),o.register("mPTQR",(function(t,n){e(t.exports,"prepareLayoutList",(function(){return a})),e(t.exports,"shiftLayoutOnX",(function(){return l})),e(t.exports,"shiftLayoutOnY",(function(){return u})),e(t.exports,"hideOverlap",(function(){return c}));var r=o("e2ttp"),i=o("03UV8");function a(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new(0,i.default)(s,a):null;e.push({label:o,labelLine:r.labelLine,rect:c,localRect:s,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return e}function s(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,p=0;p<a;p++){var d=t[p],f=d.rect;(s=f[e]-l)<0&&(f[e]-=s,d.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&o&&S(-h/a,0,a);var y,m,v=t[0],x=t[a-1];return _(),y<0&&w(-y,.8),m<0&&w(m,.8),_(),b(y,m,1),b(m,y,-1),_(),y<0&&M(-y),m<0&&M(m),u}function _(){y=v.rect[e]-r,m=i-x.rect[e]-x.rect[n]}function b(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){S(r*n,0,a);var i=r+t;i<0&&w(-i*n,1)}else w(-t*n,1)}}function S(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function w(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++)S(o[l]*h,0,l+1);else for(l=a-1;l>0;l--)S(-o[l-1]*h,l,a)}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?S(n,0,r+1):S(-n,a-r-1,a),(t-=n)<=0)return}}function l(t,e,n,r){return s(t,"x","width",e,n,r)}function u(t,e,n,r){return s(t,"y","height",e,n,r)}function c(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new(0,r.default)(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,p=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=s.obb,f=!1,g=0;g<e.length;g++){var y=e[g];if(n.intersect(y.rect)){if(l&&y.axisAligned){f=!0;break}if(y.obb||(y.obb=new(0,i.default)(y.localRect,y.transform)),d||(d=new(0,i.default)(u,c)),d.intersect(y.obb)){f=!0;break}}}f?(o(h),p&&o(p)):(h.attr("ignore",s.defaultAttr.ignore),p&&p.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}})),o.register("8GiaB",(function(t,n){e(t.exports,"install",(function(){return i}));var r=o("4GEFo");function i(t){t.registerPainter("canvas",r.default)}})),o.register("4GEFo",(function(t,n){e(t.exports,"default",(function(){return g}));var r=o("2g2Ep"),i=o("2fV2j"),a=o("bfG3I"),s=o("9c6Zx"),l=o("akmdr"),u=o("cragi"),c=o("botma"),h=o("71lD2"),p=1e5,d=314159,f=.01,g=function(){function t(t,e,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var s=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=i.extend({},n||{}),this.dpr=n.devicePixelRatio||r.devicePixelRatio,this._singleCanvas=s,this.root=t,t.style&&(i.disableUserSelect(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(s){var c=t,p=c.width,f=c.height;null!=n.width&&(p=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,c.width=p*this.dpr,c.height=f*this.dpr,this._width=p,this._height=f;var g=new(0,a.default)(c,this,this.dpr);g.__builtin__=!0,g.initContext(),u[314159]=g,g.zlevel=d,l.push(d),this._domRoot=t}else{this._width=(0,h.getSize)(t,0,n),this._height=(0,h.getSize)(t,1,n);var y=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(y)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(p)),r||(r=n.ctx).save(),(0,u.brush)(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(p)},t.prototype.paintOne=function(t,e){(0,u.brushSingle)(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var l=this;(0,s.default)((function(){l._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(d).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&o.push(c)}for(var h=!0,p=!1,d=function(i){var s,l=o[i],u=l.ctx,c=a&&l.createRepaintRects(t,e,f._width,f._height),d=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),m=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,c);else if(d===l.__startIndex){var v=t[d];v.incremental&&v.notClear&&!n||l.clear(!1,m,c)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=d;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(p=!0),r._doPaintEl(i,l,a,e,n,s===l.__endIndex-1),g&&Date.now()-y>15)break}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var _=f.dpr,b=0;b<c.length;++b){var S=c[b];u.save(),u.beginPath(),u.rect(S.x*_,S.y*_,S.width*_,S.height*_),u.clip(),x(S),u.restore()}else u.save(),x(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},f=this,g=0;g<o.length;g++)d(g);return l.default.wxa&&i.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:p}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&((0,u.brush)(a,t,i,o),t.setPrevPaintRect(s))}else(0,u.brush)(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=d);var n=this._layers[t];return n||((n=new(0,a.default)("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?i.merge(n,this._layerConfig[t],!0):this._layerConfig[t-f]&&i.merge(n,this._layerConfig[t-f],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}var r,o,a=null,s=0;for(o=0;o<t.length;o++){var l,u=(l=t[o]).zlevel,h=void 0;r!==u&&(r=u,s=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(u+(s>0?f:0),this._needsManuallyCompositing),h.__builtin__||i.logError("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),l.__dirty&c.REDRAW_BIT&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,i.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?i.merge(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+f){var a=this._layers[o];i.merge(a,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(i.indexOf(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=(0,h.getSize)(i,0,r),e=(0,h.getSize)(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(d).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new(0,a.default)("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var h=s[l];(0,u.brush)(n,h,o,l===c-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}()})),o.register("bfG3I",(function(t,n){e(t.exports,"default",(function(){return f}));var r=o("2pli3"),i=o("2fV2j"),a=o("2g2Ep"),s=o("bMEwb"),l=o("71lD2"),u=o("cragi"),c=o("e2ttp"),h=o("botma"),p=o("iXQJv");function d(t,e,n){var r=p.platformApi.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var f=function(t){function e(e,n,r){var o,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,r=r||a.devicePixelRatio,"string"==typeof e?o=d(e,n,r):i.isObject(e)&&(e=(o=e).id),s.id=e,s.dom=o;var l=o.style;return l&&(i.disableUserSelect(o),o.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=r,s}return(0,r.__extends)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new(0,c.default)(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new(0,c.default)(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var p=new(0,c.default)(0,0,0,0);p.copy(h),p.union(t),o[u]=p,n=!0;break}if(s){l.copy(t),l.union(h);var d=t.width*t.height,f=h.width*h.height,g=l.width*l.height-d-f;g<r&&(r=g,i=u)}}s&&(o[i].union(t),n=!0),n||((e=new(0,c.default)(0,0,0,0)).copy(t),o.push(e)),s||(s=o.length>=a)}}for(var p=this.__startIndex;p<this.__endIndex;++p)if(g=t[p]){var d=g.shouldBePainted(n,r,!0,!0);(y=g.__isRendered&&(g.__dirty&h.REDRAW_BIT||!d)?g.getPrevPaintRect():null)&&u(y);var f=d&&(g.__dirty&h.REDRAW_BIT||!g.__isRendered)?g.getPaintRect():null;f&&u(f)}for(p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g,y;d=(g=e[p])&&g.shouldBePainted(n,r,!0,!0),!g||d&&g.__zr||!g.__isRendered||(y=g.getPrevPaintRect())&&u(y)}do{for(i=!1,p=0;p<o.length;)if(o[p].isZero())o.splice(p,1);else{for(var m=p+1;m<o.length;)o[p].intersect(o[m])?(i=!0,o[p].union(o[m]),o.splice(m,1)):m++;p++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var c=this.motionBlur&&!t,h=this.lastFrameAlpha,p=this.dpr,d=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/p,s/p));var f=this.domBack;function g(t,n,r,a){if(o.clearRect(t,n,r,a),e&&"transparent"!==e){var s=void 0;i.isGradientObject(e)?(s=(e.global||e.__width===r&&e.__height===a)&&e.__canvasGradient||(0,l.getCanvasGradient)(o,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=s,e.__width=r,e.__height=a):i.isImagePatternObject(e)&&(e.scaleX=e.scaleX||p,e.scaleY=e.scaleY||p,s=(0,u.createCanvasPattern)(o,e,{dirty:function(){d.setUnpainted(),d.painter.refresh()}})),o.save(),o.fillStyle=s||e,o.fillRect(t,n,r,a),o.restore()}c&&(o.save(),o.globalAlpha=h,o.drawImage(f,t,n,r,a),o.restore())}!n||c?g(0,0,a,s):n.length&&i.each(n,(function(t){g(t.x*p,t.y*p,t.width*p,t.height*p)}))},e}(s.default)})),o.register("lxQbO",(function(t,n){e(t.exports,"install",(function(){return h}));var r=o("2pli3"),i=o("krEnk"),a=o("jMGr2"),s=o("cwqlf"),l=o("2kumC"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,r.__extends)(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new(0,l.SourceManager)(this),(0,l.disableTransformOptionMerge)(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),(0,l.disableTransformOptionMerge)(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:s.SERIES_LAYOUT_BY_COLUMN},e}(i.default),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,r.__extends)(e,t),e.type="dataset",e}(a.default);function h(t){t.registerComponentModel(u),t.registerComponentView(c)}}));var a=o("UiqKl"),s={},l=Math.log(2),u=s,c={},h=c;function p(t){return 1-Math.abs(t)}c.isNumber=function(t){return"number"==typeof t},c.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},c.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},c.findMinMulti=function(t){for(var e=h.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,h.findMin(t[n]));return e},c.findMaxMulti=function(t){for(var e=h.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,h.findMax(t[n]));return e},c.inside=function(t,e,n){return t<=n&&n<=e},s.getUnifiedMinMax=function(t,e){return u.getUnifiedMinMaxMulti([t],e)},s.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=c.isNumber(e.width)?e.width:2,o=c.isNumber(e.size)?e.size:50,a=c.isNumber(e.min)?e.min:(n=!0,c.findMinMulti(t)),s=c.isNumber(e.max)?e.max:(r=!0,c.findMaxMulti(t)),l=(s-a)/(o-1);return n&&(a-=2*i*l),r&&(s+=2*i*l),{min:a,max:s}},s.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=c.isNumber(e.size)?e.size:50,r=c.isNumber(e.width)?e.width:2,i=u.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),o=i.min,a=i.max-o,s=a/(n-1);if(0===a)return[{x:o,y:1}];for(var l=[],h=0;h<n;h++)l.push({x:o+h*s,y:0});var d=function(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}(p,r),f=d[r],g=d[r-1]-d[r-2],y=0;t.forEach((function(t){var e=function(t){return Math.floor((t-o)/s)}(t);if(!(e+r<0||e-r>=l.length)){var n=Math.max(e-r,0),i=e,a=Math.min(e+r,l.length-1),u=n-(e-r),h=e+r-a,p=d[-r-1+u]||0,m=d[-r-1+h]||0,v=f/(f-p-m);u>0&&(y+=v*(u-1)*g);var x=Math.max(0,e-r+1);c.inside(0,l.length-1,x)&&(l[x].y+=1*v*g),c.inside(0,l.length-1,i+1)&&(l[i+1].y-=2*v*g),c.inside(0,l.length-1,a+1)&&(l[a+1].y+=1*v*g)}}));var m=y,v=0,x=0;return l.forEach((function(t){v+=t.y,m+=v,t.y=m,x+=m})),x>0&&l.forEach((function(t){t.y/=x})),l},s.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},s.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length&&(r=i,!((n+=t[i].y)>=e));i++);return t[r].x}},s.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/l,Math.pow(2,e)}};var d=o("loiyq");o("5TtXY");var f=o("8GiaB"),g=o("eYVlv"),y=o("lv1gH"),m=o("b1qY0"),v=o("lj5IW"),x=o("dF0cA"),_=(g=o("eYVlv"),Math.sin),b=Math.cos,S=Math.PI,w=2*Math.PI,M=180/S,I=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l,u=a-o,c=!s,h=Math.abs(u),p=(0,g.isAroundZero)(h-w)||(c?u>=w:-u>=w),d=u>0?u%w:u%w+w;l=!!p||!(0,g.isAroundZero)(h)&&d>=S==!!c;var f=t+n*b(o),y=e+r*_(o);this._start&&this._add("M",f,y);var m=Math.round(i*M);if(p){var v=1/this._p,x=(c?1:-1)*(w-v);this._add("A",n,r,m,1,+c,t+n*b(o+x),e+r*_(o+x)),v>.01&&this._add("A",n,r,m,0,+c,f,y)}else{var I=t+n*b(a),T=e+r*_(a);this._add("A",n,r,m,+l,+c,I,T)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var p=arguments[h];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),T=I,A=(y=o("lv1gH"),m=o("b1qY0"),o("1enBL")),C=o("2fV2j"),D=(g=o("eYVlv"),"none"),k=Math.round,L=["lineCap","miterLimit","lineJoin"],O=(0,C.map)(L,(function(t){return"stroke-"+t.toLowerCase()}));C=o("2fV2j");var P=o("049dS"),E="http://www.w3.org/2000/svg",R="http://www.w3.org/1999/xlink",N="ecmeta_";function V(t){return document.createElementNS(E,t)}function z(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function B(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?(0,P.encodeHTML)(a):a||"")+(r?""+n+(0,C.map)(r,(function(e){return t(e)})).join(n)+n:"")+"</"+i+">"}(t)}function F(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function G(t,e,n,r){return z("svg","root",{width:t,height:e,xmlns:E,"xmlns:xlink":R,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}C=o("2fV2j");var j=o("abrcr"),H=o("bCcJ1"),W=o("btLRI"),U=(g=o("eYVlv"),C=o("2fV2j"),o("hqpEF")),Y=o("j15ws"),X=0;function Z(){return X++}var q={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};function K(t,e,n){var r=(0,C.extend)({},t.shape);(0,C.extend)(r,e),t.buildPath(n,r);var i=new T;return i.reset((0,g.getPathPrecision)(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function J(t,e){var n=e.originX,r=e.originY;(n||r)&&(t["transform-origin"]=n+"px "+r+"px")}var Q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function $(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function tt(t){return(0,C.isString)(t)?q[t]?"cubic-bezier("+q[t]+")":(0,Y.createCubicEasingFunc)(t)?t:"":""}function et(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof U.default){var s=function(t,e,n){var r,i,o=t.shape.paths,a={};if((0,C.each)(o,(function(t){var e=F(n.zrId);e.animation=!0,et(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,C.keys)(o),u=l.length;if(u){var c=o[i=l[u-1]];for(var h in c){var p=c[h];a[h]=a[h]||{d:""},a[h].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(i)>=0&&(r=f)}}})),r){e.d=!1;var s=$(a,n);return r.replace(i,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],p=tt(c.getClip().easing),d=c.getDelay();p?h.push(p):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function y(i){var o,a=i[1],s=a.length,l={},u={},c={};function h(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],h=Math.round(c.time/i*100)+"%",p=tt(c.easing),d=c.rawValue;((0,C.isString)(d)||(0,C.isNumber)(d))&&(e[h]=e[h]||{},e[h][l]=c.rawValue,p&&(e[h]["animation-timing-function"]=p))}}}}for(var p=0;p<s;p++)(w=(S=a[p]).targetName)?"shape"===w&&h(S,u):!r&&h(S,l);for(var d in l){var f={};(0,H.copyTransform)(f,t),(0,C.extend)(f,l[d]);var y=(0,g.getSRTTransformString)(f),m=l[d]["animation-timing-function"];c[d]=y?{transform:y}:{},J(c[d],f),m&&(c[d]["animation-timing-function"]=m)}var v=!0;for(var d in u){c[d]=c[d]||{};var x=!o;m=u[d]["animation-timing-function"],x&&(o=new(0,W.default));var _=o.len();o.reset(),c[d].d=K(t,u[d],o);var b=o.len();if(!x&&_!==b){v=!1;break}m&&(c[d]["animation-timing-function"]=m)}if(!v)for(var d in c)delete c[d].d;if(!r)for(p=0;p<s;p++){var S,w;"style"===(w=(S=a[p]).targetName)&&h(S,c,(function(t){return Q[t]}))}var M,I=(0,C.keys)(c),T=!0;for(p=1;p<I.length;p++){var A=I[p-1],D=I[p];if(c[A]["transform-origin"]!==c[D]["transform-origin"]){T=!1;break}M=c[A]["transform-origin"]}if(T&&M){for(var d in c)c[d]["transform-origin"]&&delete c[d]["transform-origin"];e["transform-origin"]=M}if((0,C.filter)(I,(function(t){return(0,C.keys)(c[t]).length>0})).length)return $(c,n)+" "+i[0]+" both"}for(var m in l)(s=y(l[m]))&&a.push(s);if(a.length){var v=n.zrId+"-cls-"+Z();n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}var nt=o("kjDai"),rt=o("iXQJv"),it=o("6s8l4");function ot(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Z(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var at=o("i2pfq"),st=Math.round;function lt(t){return t&&(0,C.isString)(t.src)}function ut(t){return t&&(0,C.isFunction)(t.toDataURL)}function ct(t,e,n,r){(function(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof m.default)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&e!==D}(e)){var o=(0,g.normalizeColor)(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&t("fill-opacity",a)}else t("fill",D);if(function(t){var e=t.stroke;return null!=e&&e!==D}(e)){var s=(0,g.normalizeColor)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var p=(0,A.getLineDash)(n),d=p[0],f=p[1];d&&(f=k(f||0),t("stroke-dasharray",d.join(",")),(f||r)&&t("stroke-dashoffset",f))}else r&&t("stroke-dasharray",D);for(var v=0;v<L.length;v++){var x=L[v];if(r||e[x]!==y.DEFAULT_PATH_STYLE[x]){var _=e[x]||y.DEFAULT_PATH_STYLE[x];_&&t(O[v],_)}}}else r&&t("stroke",D)}})((function(i,o){var a="fill"===i||"stroke"===i;a&&(0,g.isGradient)(o)?bt(e,t,i,r):a&&(0,g.isPattern)(o)?St(n,t,i,r):t[i]=a&&"none"===o?"transparent":o}),e,n,!1),function(t,e,n){var r=t.style;if((0,g.hasShadow)(r)){var i=(0,g.getShadowKey)(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,p=r.shadowBlur,d=(0,g.normalizeColor)(r.shadowColor),f=d.opacity,y=d.color,m=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=z("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[z("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":y,"flood-opacity":f})]),o[i]=a}e.filter=(0,g.getIdURL)(a)}}(n,t,r)}function ht(t,e){var n=(0,at.getElementSSRData)(e);n&&(n.each((function(e,n){null!=e&&(t[(N+n).toLowerCase()]=e+"")})),e.isSilent()&&(t.ecmeta_silent="true"))}function pt(t){return(0,g.isAroundZero)(t[0]-1)&&(0,g.isAroundZero)(t[1])&&(0,g.isAroundZero)(t[2])&&(0,g.isAroundZero)(t[3]-1)}function dt(t,e,n){if(e&&(!function(t){return(0,g.isAroundZero)(t[4])&&(0,g.isAroundZero)(t[5])}(e)||!pt(e))){var r=n?10:1e4;t.transform=pt(e)?"translate("+st(e[4]*r)/r+" "+st(e[5]*r)/r+")":(0,g.getMatrixStr)(e)}}function ft(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(st(r[o][0]*n)/n),i.push(st(r[o][1]*n)/n);e.points=i.join(" ")}function gt(t){return!t.smooth}var yt,mt,vt={circle:[(yt=["cx","cy","r"],mt=(0,C.map)(yt,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var r=0;r<mt.length;r++){var i=mt[r],o=t[i[0]];null!=o&&(e[i[1]]=st(o*n)/n)}})],polyline:[ft,gt],polygon:[ft,gt]};function xt(t,e){var n=t.style,r=t.shape,i=vt[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&(0,g.getPathPrecision)(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var p=h.getVersion(),d=t,f=d.__svgPathBuilder;d.__svgPathVersion===p&&f&&l===d.__svgPathStrokePercent||(f||(f=d.__svgPathBuilder=new T),f.reset(u),h.rebuildPath(f,l),f.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var y=Math.pow(10,u);i[0](r,o,y)}return dt(o,t.transform),ct(o,n,t,e),ht(o,t),e.animation&&et(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())ot(u={"pointer-events":"none"},e,n,!0);else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=r.fill;if(!i){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(i=(0,it.liftColor)(s))}var l=r.lineWidth;l&&(l/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};i&&(u.fill=i),r.stroke&&(u.stroke=r.stroke),l&&(u["stroke-width"]=l),ot(u,e,n,!0)}}(t,o,e),z(s,t.id+"",o)}function _t(t,e){return t instanceof y.default?xt(t,e):t instanceof m.default?function(t,e){var n=t.style,r=n.image;if(r&&!(0,C.isString)(r)&&(lt(r)?r=r.src:ut(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),dt(a,t.transform),ct(a,n,t,e),ht(a,t),e.animation&&et(t,a,e),z("image",t.id+"",a)}}(t,e):t instanceof x.default?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||rt.DEFAULT_FONT,o=n.x||0,a=(0,g.adjustTextY)(n.y||0,(0,v.getLineHeight)(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":g.TEXT_ALIGN_TO_ANCHOR[n.textAlign]||n.textAlign};if((0,nt.hasSeparateFont)(n)){var l="",u=n.fontStyle,c=(0,nt.parseFontSize)(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||rt.DEFAULT_FONT_FAMILY,p=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),p&&"normal"!==p&&(l+="font-weight:"+p+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),dt(s,t.transform),ct(s,n,t,e),ht(s,t),e.animation&&et(t,s,e),z("text",t.id+"",s,void 0,r)}}(t,e):void 0}function bt(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if((0,g.isLinearGradient)(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!(0,g.isRadialGradient)(o))return;i="radialGradient",a.cx=(0,C.retrieve2)(o.x,.5),a.cy=(0,C.retrieve2)(o.y,.5),a.r=(0,C.retrieve2)(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*(0,g.round4)(s[u].offset)+"%",p=s[u].color,d=(0,g.normalizeColor)(p),f=d.color,y=d.opacity,m={offset:h};m["stop-color"]=f,y<1&&(m["stop-opacity"]=y),l.push(z("stop",u+"",m))}var v=B(z(i,"",a,l)),x=r.gradientCache,_=x[v];_||(_=r.zrId+"-g"+r.gradientIdx++,x[v]=_,a.id=_,r.defs[_]=z(i,_,a,l)),e[n]=(0,g.getIdURL)(_)}function St(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if((0,g.isImagePattern)(o)){var p=o.imageWidth,d=o.imageHeight,f=void 0,y=o.image;if((0,C.isString)(y)?f=y:lt(y)?f=y.src:ut(y)&&(f=y.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";(0,C.assert)(p,m),(0,C.assert)(d,m)}else if(null==p||null==d){var v=function(t,e){if(t){var n=t.elm,r=p||e.width,i=d||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):h&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},x=(0,j.createOrUpdateImage)(f,null,t,(function(t){u||v(w,t),v(i,t)}));x&&x.width&&x.height&&(p=p||x.width,d=d||x.height)}i=z("image","img",{href:f,width:p,height:d}),s.width=p,s.height=d}else o.svgElement&&(i=(0,C.clone)(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var _,b;u?_=b=1:c?(b=1,_=s.width/a.width):h?(_=1,b=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==b||isNaN(b)||(s.height=b);var S=(0,g.getSRTTransformString)(o);S&&(s.patternTransform=S);var w=z("pattern","",s,[i]),M=B(w),I=r.patternCache,T=I[M];T||(T=r.zrId+"-p"+r.patternIdx++,I[M]=T,s.id=T,w=r.defs[T]=z("pattern",T,s,[i])),e[n]=(0,g.getIdURL)(T)}}function wt(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=z("clipPath",o,a,[xt(t,n)])}e["clip-path"]=(0,g.getIdURL)(o)}function Mt(t){return document.createTextNode(t)}function It(t,e,n){t.insertBefore(e,n)}function Tt(t,e){t.removeChild(e)}function At(t,e){t.appendChild(e)}function Ct(t){return t.parentNode}function Dt(t){return t.nextSibling}function kt(t,e){t.textContent=e}g=o("eYVlv"),C=o("2fV2j"),C=o("2fV2j");var Lt=z("","");function Ot(t){return void 0===t}function Pt(t){return void 0!==t}function Et(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function Rt(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Nt(t){var e,n=t.children,r=t.tag;if(Pt(r)){var i=t.elm=V(r);if(Bt(Lt,t),(0,C.isArray)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&At(i,Nt(o))}else Pt(t.text)&&!(0,C.isObject)(t.text)&&At(i,Mt(t.text))}else t.elm=Mt(t.text);return t.elm}function Vt(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&It(t,Nt(o),e)}}function zt(t,e,n,r){for(;n<=r;++n){var i=e[n];null!=i&&(Pt(i.tag)?Tt(Ct(i.elm),i.elm):Tt(t,i.elm))}}function Bt(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:120!==n.charCodeAt(0)?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS(R,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Ft(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Bt(t,e),Ot(e.text)?Pt(r)&&Pt(i)?r!==i&&function(t,e,n){for(var r,i,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,p=n[0],d=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==p?p=n[++s]:null==d?d=n[--h]:Rt(u,p)?(Ft(u,p),u=e[++a],p=n[++s]):Rt(c,d)?(Ft(c,d),c=e[--l],d=n[--h]):Rt(u,d)?(Ft(u,d),It(t,u.elm,Dt(c.elm)),u=e[++a],d=n[--h]):Rt(c,p)?(Ft(c,p),It(t,c.elm,u.elm),c=e[--l],p=n[++s]):(Ot(r)&&(r=Et(e,a,l)),Ot(i=r[p.key])||(o=e[i]).tag!==p.tag?It(t,Nt(p),u.elm):(Ft(o,p),e[i]=void 0,It(t,o.elm,u.elm)),p=n[++s]);(a<=l||s<=h)&&(a>l?Vt(t,null==n[h+1]?null:n[h+1].elm,n,s,h):zt(t,e,a,l))}(n,r,i):Pt(i)?(Pt(t.text)&&kt(n,""),Vt(n,null,i,0,i.length-1)):Pt(r)?zt(n,r,0,r.length-1):Pt(t.text)&&kt(n,""):t.text!==e.text&&(Pt(r)&&zt(n,r,0,r.length-1),kt(n,e.text)))}function Gt(t,e){if(Rt(t,e))Ft(t,e);else{var n=t.elm,r=Ct(n);Nt(e),null!==r&&(It(r,e.elm,Dt(n)),zt(r,[t],0,0))}return e}var jt=o("71lD2"),Ht=0,Wt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=(0,C.extend)({},n),this.root=t,this._id="zr"+Ht++,this._oldVNode=G(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=V("svg");Bt(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Gt(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return _t(t,F(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=F(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=z("rect","bg",{width:t,height:e,x:"0",y:"0"}),(0,g.isGradient)(n))bt({fill:n},i.attrs,"fill",r);else if((0,g.isPattern)(n))St({style:{fill:n},dirty:C.noop,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=(0,g.normalizeColor)(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=z("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=(0,C.map)((0,C.keys)(i.defs),(function(t){return i.defs[t]}));if(l.length&&o.push(z("defs","defs",{},l)),t.animation){var u=function(t,e,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=(0,C.map)((0,C.keys)(t),(function(e){return e+i+(0,C.map)((0,C.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=(0,C.map)((0,C.keys)(e),(function(t){return"@keyframes "+t+i+(0,C.map)((0,C.keys)(e[t]),(function(n){return n+i+(0,C.map)((0,C.keys)(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=z("style","stl",{},[],u);o.push(c)}}return G(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},B(this.renderToVNode({animation:(0,C.retrieve2)(t.cssAnimation,!0),emphasis:(0,C.retrieve2)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,C.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,p=h&&h.length||0,d=i&&i.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!h||!i||h[f]!==i[f]);f--);for(var g=d-1;g>f;g--)r=a[--s-1];for(var y=f+1;y<p;y++){var m={};wt(h[y],m,e);var v=z("g","clip-g-"+l++,m,[]);(r?r.children:n).push(v),a[s++]=v,r=v}i=h;var x=_t(c,e);x&&(r?r.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=(0,jt.getSize)(r,0,n),e=(0,jt.getSize)(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if((0,g.isPattern)(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=(0,g.encodeBase64)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}(),Ut=Wt;C=o("2fV2j");var Yt=o("7Nj47"),Xt=(C=o("2fV2j"),{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},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var i=t[r],o=Math.abs(i);o>e&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}}),Zt=function(t){return Math.round(t.length/2)};function qt(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),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var d=void 0;(0,C.isString)(i)?d=Xt[i]:(0,C.isFunction)(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/p,d,Zt))}}}}}var Kt=o("2pli3"),Jt=(Kt=o("2pli3"),o("icZIP")),Qt=o("hNaFr"),$t=(C=o("2fV2j"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,Qt.default)(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)(0,C.each)(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,p=0;p<r.length;p++){var d=r[p].coord,f=p===r.length-1?r[p-1].tickValue+h:r[p].tickValue;if(f===s){c=d;break}if(f<s)u=d;else if(null!=u&&f>s){c=(d+u)/2;break}1===p&&(h=f-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.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Jt.default));Jt.default.registerClass($t);var te=$t,ee=(Qt=o("hNaFr"),o("aRppD")),ne=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(){return(0,Qt.default)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,ee.inheritDefaultOption)(te.defaultOption,{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:"#212121"}},realtimeSort:!1}),e}(te),re=ne,ie=(Kt=o("2pli3"),y=o("lv1gH"),o("4zWIO")),oe=(C=o("2fV2j"),o("4NPqX")),ae=o("4x6s5"),se=(oe=o("4NPqX"),o("4m2Ab")),le=o("4rNRw"),ue=o("by2b6"),ce=o("6EdQu"),he=o("5xWWJ"),pe=o("lx0YT");oe=o("4NPqX"),o("4x6s5"),se=o("4m2Ab"),le=o("4rNRw");var de=o("iIXbb");function fe(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"])||2;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 se.default({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=(0,C.isFunction)(i)?function(t){i(t,h)}:null;oe.initProps(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function ge(t,e,n){var r=t.getArea(),i=(0,de.round)(r.r0,1),o=(0,de.round)(r.r,1),a=new le.default({shape:{cx:(0,de.round)(t.cx,1),cy:(0,de.round)(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,oe.initProps(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}function ye(t,e,n,r,i){return t?"polar"===t.type?ge(t,e,n):"cartesian2d"===t.type?fe(t,e,n,r,i):null:null}C=o("2fV2j"),Kt=o("2pli3"),o("4x6s5"),y=o("lv1gH");var me=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},ve=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new me},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,p=c?u-l<h:l-u<h;p||(l=u-(c?h:-h));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*i+n,f*i+r),t.arc(d*s+n,f*s+r,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,y*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(y.default),xe=o("ansKp");function _e(t,e){return t.type===e}var be=o("3INyz");function Se(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=(0,be.retrieveRawValue)(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push((0,be.retrieveRawValue)(t,e,n[a]));return o.join(" ")}}function we(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,C.isArray)(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(" ")}function Me(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Ie(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Te(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;(0,C.isArray)(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,C.map)(r,(function(t){return(0,v.parsePercent)(t,i)}))}}C=o("2fV2j"),v=o("lj5IW"),C=o("2fV2j"),oe=o("4NPqX"),C=o("2fV2j"),v=o("lj5IW");var Ae=Math.max,Ce=Math.min,De=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,Kt.__extends)(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){(0,ae.traverseElements)(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();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=function(t,e){var n=t.getArea&&t.getArea();if(_e(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),m=y.get("borderRadius")||0,v=[],x=this._backgroundEls,_=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function S(t){var e=Ve[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?le.default:se.default)({shape:We(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),v[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=Ve[l.type](a,e,n);if(g&&S(e),a.hasValue(e)&&Ne[l.type](r)){var s=!1;p&&(s=ke[l.type](d,r));var y=Le[l.type](t,a,e,r,i,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),Be(y,a,e,n,r,t,i,"polar"===l.type),_?y.attr({shape:r}):h?Oe(h,c,y,r,e,i,!1,!1):(0,oe.initProps)(y,{shape:r},t,e),a.setItemGraphicEl(e,y),o.add(y),y.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),w=Ve[l.type](a,e,r);if(g){var M=void 0;0===x.length?M=S(n):((M=x[n]).useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",m):M.setShape("cornerRadius",m),v[e]=M);var I=Ve[l.type](a,e),T=We(i,I,l);(0,oe.updateProps)(M,{shape:T},c,e)}var A=s.getItemGraphicEl(n);if(a.hasValue(e)&&Ne[l.type](w)){var C=!1;if(p&&(C=ke[l.type](d,w))&&o.remove(A),A?(0,oe.saveOldStyle)(A):A=Le[l.type](t,a,e,w,i,c,u.model,!!A,f),h&&(A.forceLabelAnimation=!0),b){var D=A.getTextContent();if(D){var k=(0,he.labelInner)(D);null!=k.prevValue&&(k.prevValue=k.value)}}else Be(A,a,e,r,w,t,i,"polar"===l.type);_?A.attr({shape:w}):h?Oe(h,c,A,w,e,i,!0,b):(0,oe.updateProps)(A,{shape:w},t,e,null),a.setItemGraphicEl(e,A),A.ignore=C,o.add(A)}else o.remove(A)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&(0,oe.removeElementWithFadeOut)(n,t,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new(0,ie.default));w.removeAll();for(var M=0;M<v.length;++M)w.add(v[M]);o.add(w),this._backgroundEls=v,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),je(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),je(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&ye(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:(0,C.map)(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){(0,oe.removeElementWithFadeOut)(e,t,(0,ue.getECData)(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(xe.default),ke={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=Ae(e.x,t.x),s=Ce(e.x+e.width,i),l=Ae(e.y,t.y),u=Ce(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=Ce(e.r,t.r),o=Ae(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;return n<0&&(r=e.r,e.r=e.r0,e.r0=r),a}},Le={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new(0,se.default)({shape:(0,C.extend)({},r),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[i?"height":"width"]=0),u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?ve:le.default,c=new u({shape:r,z2:1});c.name="item";var h,p,d=ze(i);if(c.calculateTextPosition=(h=d,p=({isRoundCap:u===ve}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return(0,v.calculateTextPosition)(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,d=(u+c)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,m=p?Math.abs(u-c)/2:0,x=Math.cos,_=Math.sin,b=s+u*x(f),S=l+u*_(f),w="left",M="top";switch(i){case"startArc":b=s+(c-o)*x(y),S=l+(c-o)*_(y),w="center",M="top";break;case"insideStartArc":b=s+(c+o)*x(y),S=l+(c+o)*_(y),w="center",M="bottom";break;case"startAngle":b=s+d*x(f)+Me(f,o+m,!1),S=l+d*_(f)+Ie(f,o+m,!1),w="right",M="middle";break;case"insideStartAngle":b=s+d*x(f)+Me(f,-o+m,!1),S=l+d*_(f)+Ie(f,-o+m,!1),w="left",M="middle";break;case"middle":b=s+d*x(y),S=l+d*_(y),w="center",M="middle";break;case"endArc":b=s+(u+o)*x(y),S=l+(u+o)*_(y),w="center",M="bottom";break;case"insideEndArc":b=s+(u-o)*x(y),S=l+(u-o)*_(y),w="center",M="top";break;case"endAngle":b=s+d*x(g)+Me(g,o+m,!0),S=l+d*_(g)+Ie(g,o+m,!0),w="left",M="middle";break;case"insideEndAngle":b=s+d*x(g)+Me(g,-o+m,!0),S=l+d*_(g)+Ie(g,-o+m,!0),w="right",M="middle";break;default:return(0,v.calculateTextPosition)(t,e,n)}return(t=t||{}).x=b,t.y=S,t.align=w,t.verticalAlign=M,t}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?r.r0:r.startAngle,g[f]=r[f],(s?oe.updateProps:oe.initProps)(c,{shape:g},o)}return c}};function Oe(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?oe.updateProps:oe.initProps)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?oe.updateProps:oe.initProps)(n,{shape:u},c,i)}function Pe(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Ee=["x","y","width","height"],Re=["cx","cy","r","startAngle","endAngle"],Ne={cartesian2d:function(t){return!Pe(t,Ee)},polar:function(t){return!Pe(t,Re)}},Ve={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),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 ze(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 Be(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=Te(r.getModel("itemStyle"),u,!0);(0,C.extend)(u,c),t.setShape(u)}}else{var h=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var p=r.getShallow("cursor");p&&t.attr("cursor",p);var d=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=(0,he.getLabelStatesModels)(r);(0,he.setLabelStyle)(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:Se(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var y=r.get(["label","position"]);t.textConfig.inside="middle"===y||null,function(t,e,n,r){if((0,C.isNumber)(r))t.setTextConfig({rotation:r});else if((0,C.isArray)(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"===y?d:y,ze(a),r.get(["label","rotate"]))}(0,he.setLabelValueAnimation)(g,f,o.getRawValue(n),(function(t){return we(e,t)}));var m=r.getModel(["emphasis"]);(0,ce.toggleHoverEmphasis)(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),(0,ce.setStatesStylesFromModel)(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",(0,C.each)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var Fe=function(){},Ge=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Fe},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}(y.default);function je(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");if(u){var c=new Ge({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new Ge({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),(0,ue.getECData)(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",He),h.on("mousemove",He)),n&&n.push(h)}var He=(0,pe.throttle)((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 p=3*c;if(l[r]=u,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+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);(0,ue.getECData)(this).dataIndex=e>=0?e:null}),30,!1);function We(t,e,n){if(_e(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 Ue=De;Kt=o("2pli3"),Jt=o("icZIP");var Ye=o("bJU8K"),Xe=o("ao62o");function Ze(t,e,n){e=(0,C.isArray)(e)&&{coordDimensions:e}||(0,C.extend)({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=(0,Ye.default)(r,e).dimensions,o=new(0,Xe.default)(i,t);return o.initData(r,n),o}C=o("2fV2j"),C=o("2fV2j");var qe=o("auf5w"),Ke=o("6ahuT"),Je=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],p=[i,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&r){var y=[];C.each(g,(function(t,e){var n;C.isArray(t)?(n=t.slice(),t.unshift(e)):C.isArray(t.value)?((n=C.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var m=this.defaultValueDimensions,v=[{name:c,type:(0,qe.getDimensionTypeByAxis)(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:(0,qe.getDimensionTypeByAxis)(f),dimsDef:m.slice()}];return Ze(this,{coordDimensions:v,dimensionsCount:m.length+1,encodeDefaulter:C.curry(Ke.makeSeriesEncodeForAxisCoordSys,v,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Qe=(C=o("2fV2j"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,Kt.__extends)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Jt.default));(0,C.mixin)(Qe,Je,!0);var $e=Qe,tn=(Kt=o("2pli3"),C=o("2fV2j"),xe=o("ansKp"),ae=o("4x6s5"),ce=o("6EdQu"),y=o("lv1gH"),oe=o("4NPqX"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=rn(r.getItemLayout(t),r,t,a,!0);r.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?((0,oe.saveOldStyle)(n),on(s,n,r,t)):n=rn(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(xe.default)),en=function(){},nn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new en},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(y.default);function rn(t,e,n,r,i){var o=t.ends,a=new nn({shape:{points:i?an(o,r,t):o}});return on(t,a,e,n,i),a}function on(t,e,n,r,i){var o=n.hostModel;(0,ae[i?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(r),s=a.getModel("emphasis");(0,ce.setStatesStylesFromModel)(e,a),(0,ce.toggleHoverEmphasis)(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function an(t,e,n){return C.map(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var sn=tn,ln=(C=o("2fV2j"),de=o("iIXbb"),C.each);function un(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=C.indexOf(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}(t);ln(e,(function(t){var e=t.seriesModels;e.length&&(function(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;ln(r,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}ln(r,(function(t){var n=t.get("boxWidth");C.isArray(n)||(n=[n,n]),s.push([(0,de.parsePercent)(n[0],e)||0,(0,de.parsePercent)(n[1],e)||0])}));var c=.8*e-2,h=c/i*.3,p=(c-h*(i-1))/i,d=p/2-c/2;ln(r,(function(t,e){a.push(d),d+=h+p,o.push(Math.min(Math.max(p,s[e][0]),s[e][1]))}))}(t),ln(e,(function(e,n){!function(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<i.count();h++){var p=i.get(u,h),d=x(p,c[2],h),f=x(p,c[0],h),g=x(p,c[1],h),y=x(p,c[3],h),m=x(p,c[4],h),v=[];_(v,g,!1),_(v,y,!0),v.push(f,g,m,y),b(v,f),b(v,m),b(v,d),i.setItemLayout(h,{initBaseline:d[s],ends:v})}function x(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=e,l}function _(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function b(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}de=o("iIXbb"),C=o("2fV2j");var cn=o("3ds5n"),hn=o("cwqlf"),pn={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==hn.SOURCE_FORMAT_ARRAY_ROWS&&(0,cn.throwError)("");var n=function(t,e){for(var n=[],r=[],i=(e=e||{}).boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=(0,de.asc)(t[a].slice()),l=(0,de.quantile)(s,.25),u=(0,de.quantile)(s,.5),c=(0,de.quantile)(s,.75),h=s[0],p=s[s.length-1],d=(null==i?1.5:i)*(c-l),f=o?h:Math.max(h,l-d),g=o?p:Math.min(p,c+d),y=e.itemNameFormatter,m=(0,C.isFunction)(y)?y({value:a}):(0,C.isString)(y)?y.replace("{value}",a+""):a+"";n.push([m,f,l,u,c,g]);for(var v=0;v<s.length;v++){var x=s[v];if(x<f||x>g){var _=[m,x];r.push(_)}}}return{boxData:n,outliers:r}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};Kt=o("2pli3"),C=o("2fV2j"),xe=o("ansKp"),oe=o("4NPqX"),ae=o("4x6s5"),oe=o("4NPqX"),ce=o("6EdQu"),y=o("lv1gH"),oe=o("4NPqX");var dn=["color","borderColor"],fn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){ae.traverseElements(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){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&vn(s,a))return;var l=mn(a,n,!0);oe.initProps(l,{shape:{points:a.ends}},t,n),xn(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&vn(s,c)?r.remove(u):(u?(oe.updateProps(u,{shape:{points:c.ends}},t,a),(0,oe.saveOldStyle)(u)):u=mn(c,a),xn(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),wn(t,this.group);var e=t.get("clip",!0)?ye(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,r=e.getData(),i=r.getLayout("isSimpleBox");null!=(n=t.next());){var o=mn(r.getItemLayout(n),n);xn(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){wn(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(xe.default),gn=function(){},yn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new gn},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(y.default);function mn(t,e,n){var r=t.ends;return new yn({shape:{points:n?_n(r,t):r},z2:100})}function vn(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function xn(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,(0,ce.setStatesStylesFromModel)(t,i)}function _n(t,e){return C.map(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var bn=function(){},Sn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new bn},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(y.default);function wn(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new Sn({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new Sn({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Sn({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),Mn(1,a,t,i),Mn(-1,s,t,i),Mn(0,l,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Mn(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(dn);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var In=fn,Tn=(Kt=o("2pli3"),Jt=o("icZIP"),C=o("2fV2j"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,Kt.__extends)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Jt.default));(0,C.mixin)(Tn,Je,!0);var An=Tn;function Cn(t){t&&C.isArray(t.series)&&C.each(t.series,(function(t){C.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}C=o("2fV2j");var Dn=o("1ZHIk"),kn=(C=o("2fV2j"),["itemStyle","borderColor"]),Ln=["itemStyle","borderColor0"],On=["itemStyle","borderColorDoji"],Pn=["itemStyle","color"],En=["itemStyle","color0"],Rn={seriesType:"candlestick",plan:(0,Dn.default)(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?Pn:En)}function r(t,e){return e.get(0===t?On:t>0?kn:Ln)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");(0,C.extend)(l,s)}}}}},Nn=(ae=o("4x6s5"),Dn=o("1ZHIk"),de=o("iIXbb"),C=o("2fV2j"),o("jgaRs"));function Vn(t,e,n,r,i,o){return n>r?-1:n<r?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1}var zn={seriesType:"candlestick",plan:(0,Dn.default)(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=function(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=(0,de.parsePercent)((0,C.retrieve2)(t.get("barMaxWidth"),i),i),a=(0,de.parsePercent)((0,C.retrieve2)(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?(0,de.parsePercent)(s,i):Math.max(Math.min(i/2,o),a)}(t,n),i=["x","y"],o=n.getDimensionIndex(n.mapDimension(i[0])),a=(0,C.map)(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,r){for(var i,a,h=(0,Nn.createFloat32Array)(4*n.count),p=0,d=[],f=[],g=r.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);null!=(a=n.next());){var m=g.get(o,a),v=g.get(s,a),x=g.get(l,a),_=g.get(u,a),b=g.get(c,a);isNaN(m)||isNaN(_)||isNaN(b)?(h[p++]=NaN,p+=3):(h[p++]=Vn(g,a,v,x,l,y),d[0]=m,d[1]=_,i=e.dataToPoint(d,null,f),h[p++]=i?i[0]:NaN,h[p++]=i?i[1]:NaN,d[1]=b,i=e.dataToPoint(d,null,f),h[p++]=i?i[1]:NaN)}r.setLayout("largePoints",h)}:function(t,n){for(var i,a=n.getStore();null!=(i=t.next());){var h=a.get(o,i),p=a.get(s,i),d=a.get(l,i),f=a.get(u,i),g=a.get(c,i),y=Math.min(p,d),m=Math.max(p,d),v=M(y,h),x=M(m,h),_=M(f,h),b=M(g,h),S=[];I(S,x,0),I(S,v,1),S.push(A(b),A(x),A(_),A(v));var w=!!n.getItemModel(i).get(["itemStyle","borderColorDoji"]);n.setItemLayout(i,{sign:Vn(a,i,p,d,l,w),initBaseline:p>d?x[1]:v[1],ends:S,brushRect:T(f,g,h)})}function M(t,n){var r=[];return r[0]=n,r[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function I(t,e,n){var i=e.slice(),o=e.slice();i[0]=(0,ae.subPixelOptimize)(i[0]+r/2,1,!1),o[0]=(0,ae.subPixelOptimize)(o[0]-r/2,1,!0),n?t.push(i,o):t.push(o,i)}function T(t,e,n){var i=M(t,n),o=M(e,n);return i[0]-=r/2,o[0]-=r/2,{x:i[0],y:i[1],width:r,height:o[1]-i[1]}}function A(t){return t[0]=(0,ae.subPixelOptimize)(t[0],1),t}}}}};Kt=o("2pli3"),Qt=o("hNaFr");var Bn=o("jnApb"),Fn=(Jt=o("icZIP"),{color:"fill",borderColor:"stroke"}),Gn={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},jn=(0,Bn.makeInner)(),Hn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return(0,Qt.default)(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=jn(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Jt.default),Wn=Hn;Kt=o("2pli3"),C=o("2fV2j"),o("4x6s5"),y=o("lv1gH"),ae=o("4x6s5"),m=o("b1qY0"),ie=o("4zWIO"),nt=o("kjDai"),ce=o("6EdQu"),he=o("5xWWJ"),Yt=o("7Nj47");var Un=o("iWPaD");function Yn(t,e){return e=e||[0,0],C.map(["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function Xn(t,e){return e=e||[0,0],C.map([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function Zn(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function qn(t,e){return e=e||[0,0],C.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=e[r],a=t[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}xe=o("ansKp"),C=o("2fV2j"),C=o("2fV2j"),C=o("2fV2j"),C=o("2fV2j");var Kn=o("32n5A");function Jn(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||(0,C.hasOwn)(t,"text")))}function Qn(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},(0,C.hasOwn)(a,"text")&&(o.text=a.text),(0,C.hasOwn)(a,"rich")&&(o.rich=a.rich),(0,C.hasOwn)(a,"textFill")&&(o.fill=a.textFill),(0,C.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),(0,C.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),(0,C.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),(0,C.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),(0,C.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=(0,C.hasOwn)(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),(0,C.hasOwn)(a,"textPosition")&&(r.position=a.textPosition),(0,C.hasOwn)(a,"textOffset")&&(r.offset=a.textOffset),(0,C.hasOwn)(a,"textRotation")&&(r.rotation=a.textRotation),(0,C.hasOwn)(a,"textDistance")&&(r.distance=a.textDistance)}return $n(o,t),(0,C.each)(o.rich,(function(t){$n(t,t)})),{textConfig:r,textContent:i}}function $n(t,e){e&&(e.font=e.textFont||e.font,(0,C.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,C.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),(0,C.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,C.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,C.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),(0,C.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),(0,C.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),(0,C.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),(0,C.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,C.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,C.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,C.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,C.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,C.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,C.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function tr(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";er(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,(0,C.each)(e.rich,(function(t){er(t,t)})),r}function er(t,e){e&&((0,C.hasOwn)(e,"fill")&&(t.textFill=e.fill),(0,C.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),(0,C.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,C.hasOwn)(e,"font")&&(t.font=e.font),(0,C.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,C.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,C.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,C.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,C.hasOwn)(e,"align")&&(t.textAlign=e.align),(0,C.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,C.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,C.hasOwn)(e,"width")&&(t.textWidth=e.width),(0,C.hasOwn)(e,"height")&&(t.textHeight=e.height),(0,C.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,C.hasOwn)(e,"padding")&&(t.textPadding=e.padding),(0,C.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,C.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,C.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,C.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,C.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,C.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,C.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,C.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,C.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,C.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,C.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}C=o("2fV2j"),cn=o("3ds5n");var nr=o("35g6g"),rr=(Bn=o("jnApb"),C=o("2fV2j"),o("jzMlC"));Kn=o("32n5A"),oe=o("4NPqX"),o("4x6s5"),y=o("lv1gH"),H=o("bCcJ1");var ir={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},or=(0,C.keys)(ir),ar=((0,C.reduce)(H.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=1,t}),{}),H.TRANSFORMABLE_PROPS.join(", "),["","style","shape","extra"]),sr=(0,Bn.makeInner)();function lr(t,e,n,r,i){var o=t+"Animation",a=(0,oe.getAnimationConfig)(t,r,i)||{},s=sr(e).userDuring;return a.duration>0&&(a.during=s?(0,C.bind)(gr,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),(0,C.extend)(a,n[o]),a}function ur(t,e,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=sr(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var r=0;r<or.length;r++){var i=or[r],o=ir[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<H.TRANSFORMABLE_PROPS.length;r++){var s=H.TRANSFORMABLE_PROPS[r];null!=e[s]&&(n[s]=e[s])}}(0,e,h),mr("shape",e,h),mr("extra",e,h),!o&&s&&(function(t,e,n){for(var r=e.transition,i=pr(r)?H.TRANSFORMABLE_PROPS:(0,Bn.normalizeToArray)(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,c),yr("shape",t,e,c),yr("extra",t,e,c),function(t,e,n,r){if(n){var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!pr(a)){var l=(0,Bn.normalizeToArray)(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];i[f]=c}}else if(t.getAnimationStyleProps&&(pr(s)||pr(a)||(0,C.indexOf)(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!i&&(i=r.style={});var d=(0,C.keys)(n);for(u=0;u<d.length;u++){var f;p[f=d[u]]&&(c=o[f],i[f]=c)}}}}}}(t,e,u,c)),h.style=u,function(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}(t,h,a),function(t,e){(0,C.hasOwn)(e,"silent")&&(t.silent=e.silent),(0,C.hasOwn)(e,"ignore")&&(t.ignore=e.ignore),t instanceof Kn.default&&(0,C.hasOwn)(e,"invisible")&&(t.invisible=e.invisible),t instanceof y.default&&(0,C.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var p={};(0,C.each)(ar,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),(0,C.extend)(t?p[t]:p,n.enterFrom))}));var d=lr("enter",t,e,n,i);d.duration>0&&t.animateFrom(p,d)}else!function(t,e,n,r,i){if(i){var o=lr("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,i||0,n,c);cr(t,e),u?t.dirty():t.markRedraw()}function cr(t,e){for(var n=sr(t).leaveToProps,r=0;r<ar.length;r++){var i=ar[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=sr(t).leaveToProps={}),i&&(n[i]=n[i]||{}),(0,C.extend)(i?n[i]:n,o.leaveTo))}}function hr(t,e,n,r){if(t){var i=t.parent,o=sr(t).leaveToProps;if(o){var a=lr("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function pr(t){return"all"===t}var dr={},fr={setTransform:function(t,e){return dr.el[t]=e,this},getTransform:function(t){return dr.el[t]},setShape:function(t,e){var n=dr.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=dr.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=dr.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=dr.el.style;if(e)return e[t]},setExtra:function(t,e){return(dr.el.extra||(dr.el.extra={}))[t]=e,this},getExtra:function(t){var e=dr.el.extra;if(e)return e[t]}};function gr(){var t=this,e=t.el;if(e){var n=sr(e).userDuring,r=t.userDuring;n===r?(dr.el=e,r(fr)):t.el=t.userDuring=null}}function yr(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),pr(l))(0,C.extend)(o,a);else for(var u=(0,Bn.normalizeToArray)(l),c=0;c<u.length;c++){var h=a[d=u[c]];o[d]=h}else if(pr(s)||(0,C.indexOf)(s,t)>=0){!o&&(o=r[t]={});var p=(0,C.keys)(a);for(c=0;c<p.length;c++){var d;h=a[d=p[c]],vr(i[d],h)&&(o[d]=h)}}}}}function mr(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=(0,C.keys)(r),a=0;a<o.length;a++){var s=o[a];i[s]=(0,rr.cloneValue)(r[s])}}function vr(t,e){return(0,C.isArrayLike)(t)?t!==e:null!=t&&isFinite(t)}C=o("2fV2j"),oe=o("4NPqX");var xr=(0,(Bn=o("jnApb")).makeInner)(),_r=["percent","easing","shape","style","extra"];function br(t){t.stopAnimation("keyframe"),t.attr(xr(t))}function Sr(t,e,n){if(n.isAnimationEnabled()&&e)if((0,C.isArray)(e))(0,C.each)(e,(function(e){Sr(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=(0,oe.getAnimationConfig)("enter",n,0);i=o&&o.duration}if(r&&i){var a=xr(t);(0,C.each)(ar,(function(n){var o;n&&!t[n]||(r.sort((function(t,e){return t.percent-e.percent})),(0,C.each)(r,(function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=(0,C.keys)(l);if(n||(u=(0,C.filter)(u,(function(t){return(0,C.indexOf)(_r,t)<0}))),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;(0,C.each)(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing))}))}}}var wr="emphasis",Mr="normal",Ir="blur",Tr="select",Ar=[Mr,wr,Ir,Tr],Cr={normal:["itemStyle"],emphasis:[wr,"itemStyle"],blur:[Ir,"itemStyle"],select:[Tr,"itemStyle"]},Dr={normal:["label"],emphasis:[wr,"label"],blur:[Ir,"label"],select:[Tr,"label"]},kr=["x","y"],Lr={normal:{},emphasis:{},blur:{},select:{}},Or={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:C.bind(Yn,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:C.bind(Xn,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,C.bind)(Zn,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:C.bind(qn,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Pr(t){return t instanceof y.default}function Er(t){return t instanceof Kn.default}var Rr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=Gr(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){Hr(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&hr(n,jn(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);Hr(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?ye(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=Gr(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=Hr(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){ae.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},e.type="custom",e}(xe.default),Nr=Rr;function Vr(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=$r(r);e=ae.makePath(o,null,i,r.layout||"center"),jn(e).customPathData=o}else if("image"===n)e=new m.default({}),jn(e).customImagePath=t.style.image;else if("text"===n)e=new nt.default({});else if("group"===n)e=new ie.default;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=ae.getShapeClass(n);a||(0,cn.throwError)(""),e=new a}return jn(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function zr(t,e,n,r,i,o,a){br(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=kr);var l=r&&r.style;if(l){if("text"===e.type){var u=l;(0,C.hasOwn)(u,"textFill")&&(u.fill=u.textFill),(0,C.hasOwn)(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Pr(e)?l.decal:null;t&&h&&(h.dirty=!0,c=(0,nr.createOrUpdatePatternFromDecal)(h,t)),l.__decalPattern=c}Er(e)&&l&&(c=l.__decalPattern)&&(l.decal=c),ur(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),Sr(e,r.keyframeAnimation,o)}function Br(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),(0,ce.setDefaultStateProxy)(o)}}function Fr(t,e,n){var r=n===Mr,i=r?e:Xr(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function Gr(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):Or[o.type](o));for(var s,l,u=(0,C.defaults)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=v(r,Mr).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:(0,C.isString)(o)?o:"#000"},c=x(r,Mr),h=he.createTextStyle(c,null,u,!1,!0);h.text=c.getShallow("show")?(0,C.retrieve2)(t.getFormattedLabel(r,Mr),Se(e,r)):null;var p=he.createTextConfig(c,u,!1);return b(n,l),l=tr(l,h,p),n&&_(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){null==r&&(r=s);var i=v(r,wr).getItemStyle(),o=x(r,wr),a=he.createTextStyle(o,null,null,!0,!0);a.text=o.getShallow("show")?(0,C.retrieve3)(t.getFormattedLabel(r,wr),t.getFormattedLabel(r,Mr),Se(e,r)):null;var l=he.createTextConfig(o,null,!0);return b(n,i),i=tr(i,a,l),n&&_(i,n),i.legacy=!0,i},visual:function(t,n){if(null==n&&(n=s),(0,C.hasOwn)(Fn,t)){var r=e.getItemVisual(n,"style");return r?r[Fn[t]]:null}if((0,C.hasOwn)(Gn,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return(0,Yt.getLayoutOnAxis)((0,C.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return he.getFont(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:jr(t.getData())},h={},p={},d={},f={},g=0;g<Ar.length;g++){var y=Ar[g];d[y]=t.getModel(Cr[y]),f[y]=t.getModel(Dr[y])}function m(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function v(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=m(t).getModel(Cr[n])):m(t).getModel(Cr[n]):d[n]}function x(t,n){return e.hasItemOption?t===s?p[n]||(p[n]=m(t).getModel(Dr[n])):m(t).getModel(Dr[n]):f[n]}return function(t,n){return s=t,l=null,h={},p={},i&&i((0,C.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function _(t,e){for(var n in e)(0,C.hasOwn)(e,n)&&(t[n]=e[n])}function b(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function jr(t){var e={};return(0,C.each)(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(e[i]=e[i]||[])[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function Hr(t,e,n,r,i,o,a){if(r){var s=Wr(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&(0,ce.toggleHoverEmphasis)(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function Wr(t,e,n,r,i,o){var a=-1,s=e;e&&Ur(e,r,i)&&(a=(0,C.indexOf)(o.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=Vr(r),s&&(l=s,(u=h).copyTransform(l),Er(u)&&Er(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,Pr(u)&&Pr(l)&&u.setShape(l.shape)))),!1===r.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),Lr.normal.cfg=Lr.normal.conOpt=Lr.emphasis.cfg=Lr.emphasis.conOpt=Lr.blur.cfg=Lr.blur.conOpt=Lr.select.cfg=Lr.select.conOpt=null,Lr.isLegacy=!1,function(t,e,n,r,i,o){if(!t.isGroup){Yr(n,null,o),Yr(n,wr,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=Vr(a),t.setTextContent(c)),zr(null,c,e,a,null,r,i);for(var h=a&&a.style,p=0;p<Ar.length;p++){var d=Ar[p];if(d!==Mr)Br(d,c,0,Zr(a,o[d].conOpt,d),null)}h?c.dirty():c.markRedraw()}}}}(h,n,r,i,c,Lr),function(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Ur(a,o,r)&&(a=null),a||(a=Vr(o),t.setClipPath(a)),zr(null,a,e,o,null,r,i)}}(h,n,r,i,c),zr(t,h,n,r,Lr,i,c),(0,C.hasOwn)(r,"info")&&(jn(h).info=r.info);for(var p=0;p<Ar.length;p++){var d=Ar[p];if(d!==Mr)Br(d,h,0,Zr(r,Xr(r,d),d),Lr)}return function(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<Ar.length;s++)Fr(r,e,Ar[s])}}(h,r,i),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(a||l||u){if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new(0,Un.default)(c.oldChildren,c.newChildren,Kr,Kr,c).add(Jr).update(Jr).remove(Qr).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var p=o[h],d=e.childAt(h);p?(null==p.ignore&&(p.ignore=!1),Wr(t,d,n,p,i,e)):d.ignore=!0}for(var f=e.childCount()-1;f>=h;f--){var g=e.childAt(f);qr(e,g,i)}}}(t,h,n,r,i),a>=0?o.replaceAt(h,a):o.add(h),h}function Ur(t,e,n){var r,i=jn(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&(r=a)&&((0,C.hasOwn)(r,"pathData")||(0,C.hasOwn)(r,"d"))&&$r(a)!==i.customPathData||"image"===o&&(0,C.hasOwn)(s,"image")&&s.image!==i.customImagePath}function Yr(t,e,n){var r=e?Xr(t,e):t,i=e?Zr(t,r,wr):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?Xr(s,e):s:null;if(i&&(n.isLegacy||Jn(i,o,!!a,!!l))){n.isLegacy=!0;var u=Qn(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function Xr(t,e){return e?t?t[e]:null:t}function Zr(t,e,n){var r=e&&e.style;return null==r&&n===wr&&t&&(r=t.styleEmphasis),r}function qr(t,e,n){e&&hr(e,jn(t).option,n)}function Kr(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function Jr(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;Wr(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function Qr(t){var e=this.context,n=e.oldChildren[t];n&&hr(n,jn(n).option,e.seriesModel)}function $r(t){return t&&(t.pathData||t.d)}Kt=o("2pli3"),ie=o("4zWIO"),o("4x6s5"),oe=o("4NPqX"),ae=o("4x6s5"),Kt=o("2pli3");var ti=o("8TH6f");function ei(t,e){this.parent.drift(t,e)}ie=o("4zWIO"),oe=o("4NPqX"),o("4x6s5"),oe=o("4NPqX"),ue=o("by2b6"),ce=o("6EdQu"),C=o("2fV2j"),he=o("5xWWJ"),m=o("b1qY0"),oe=o("4NPqX");var ni=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return(0,Kt.__extends)(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=(0,ti.createSymbol)(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=ei,this._symbolType=t,this.add(o)},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(){(0,ce.enterEmphasis)(this.childAt(0))},e.prototype.downplay=function(){(0,ce.leaveEmphasis)(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=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(h):oe.updateProps(p,h,a,n),(0,oe.saveOldStyle)(p)}if(this._updateCommon(t,n,s,r,i),l){var p=this.childAt(0);u||(h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,oe.initProps(p,h,a,n))}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,p,d,f=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,p=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=(0,he.getLabelStatesModels)(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(x||0)*Math.PI/180||0);var _=(0,ti.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var b=t.getItemVisual(e,"style"),S=b.fill;if(f instanceof m.default){var w=f.style;f.useStyle((0,C.extend)({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle((0,C.extend)({},b)):f.useStyle(b),f.style.decal=null,f.setColor(S,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=f.z2,f.z2+=M):null!=I&&(f.z2=I,this._z2=null);var T=i&&i.useNameLabel;(0,he.setLabelStyle)(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):Se(t,e)},inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=f.ensureState("emphasis");A.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var D=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;A.scaleX=this._sizeX*D,A.scaleY=this._sizeY*D,this.setSymbolScale(1),(0,ce.toggleHoverEmphasis)(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=(0,ue.getECData)(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&oe.removeElement(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();oe.removeElement(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return(0,ti.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize"))},e}(ie.default);function ri(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ii(t){return null==t||(0,C.isObject)(t)||(t={isIgnore:t}),t||{}}function oi(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:(0,he.getLabelStatesModels)(e),cursorStyle:e.get("cursor")}}C=o("2fV2j"),he=o("5xWWJ");var ai=function(){function t(t){this.group=new ie.default,this._SymbolCtor=t||ni}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ii(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=oi(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);if(ri(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var p=i.getItemGraphicEl(h),d=u(c);if(ri(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):oe.updateProps(p,y,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).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(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=oi(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ii(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(ri(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){ae.traverseElements(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 si(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}Kt=o("2pli3"),ti=o("8TH6f"),ie=o("4zWIO"),ce=o("6EdQu");var li=function(t){function e(e,n){var r=t.call(this)||this,i=new ni(e,n),o=new(0,ie.default);return r.add(i),r.add(o),r.updateData(e,n),r}return(0,Kt.__extends)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=(0,ti.createSymbol)(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}si(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}si(n,t)},e.prototype.highlight=function(){(0,ce.enterEmphasis)(this)},e.prototype.downplay=function(){(0,ce.leaveEmphasis)(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=(0,ti.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=(0,ti.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var p=t.getItemVisual(e,"symbolRotate");i.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=1e3*o.get(["rippleEffect","period"]),d.effectOffset=e/t.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=a,d.color=u,d.rippleEffectColor=o.get(["rippleEffect","color"]),d.rippleNumber=o.get(["rippleEffect","number"]),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===t&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,(0,ce.toggleHoverEmphasis)(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(ie.default),ui=o("2QCok"),ci=(C=o("2fV2j"),Dn=o("1ZHIk"),o("1O8EX"));function hi(t,e){return{seriesType:t,plan:(0,Dn.default)(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=(0,C.map)(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");(0,ci.isDimensionStacked)(n,a[0])&&(a[0]=l),(0,ci.isDimensionStacked)(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&&(0,Nn.createFloat32Array)(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=r.dataToPoint(a,null,l);o?(i[d++]=f[0],i[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",i)}}}}}}Nn=o("jgaRs");var pi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){this._symbolDraw=new ai(li)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=hi("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=ui.clone(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}((xe=o("ansKp")).default),di=pi,fi=(Kt=o("2pli3"),Qt=o("hNaFr"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,Qt.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}((Jt=o("icZIP")).default)),gi=fi;Kt=o("2pli3"),oe=o("4NPqX");var yi=o("7k07j");o("4x6s5");var mi=o("ln8jP"),vi=(oe=o("4NPqX"),o("4w8lf")),xi=(nt=o("kjDai"),ce=o("6EdQu"),xe=o("ansKp"),o("iUFRK")),_i=(he=o("5xWWJ"),oe=o("4NPqX"),["itemStyle","opacity"]),bi=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new mi.default,a=new nt.default;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return(0,Kt.__extends)(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(_i);l=null==l?1:l,n||(0,oe.saveOldStyle)(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,oe.initProps(r,{style:{opacity:l}},i,e)):oe.updateProps(r,{style:{opacity:l},shape:{points:a.points}},i,e),(0,ce.setStatesStylesFromModel)(r,o),this._updateLabel(t,e),(0,ce.toggleHoverEmphasis)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;(0,he.setLabelStyle)(i,(0,he.getLabelStatesModels)(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;r.setShape({points:c}),n.textGuideLineConfig={anchor:c?new yi.default(c[0][0],c[0][1]):null},oe.updateProps(i,{style:{x:s.x,y:s.y}},o,e),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),(0,xi.setLabelLineStyle)(n,(0,xi.getLabelLineStatesModels)(a),{stroke:u})},e}(vi.default),Si=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new bi(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);oe.removeElementWithFadeOut(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(xe.default),wi=Si,Mi=(Kt=o("2pli3"),C=o("2fV2j"),Bn=o("jnApb"),Ke=o("6ahuT"),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}()),Ii=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mi(C.bind(this.getData,this),C.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Ze(this,{coordDimensions:["value"],encodeDefaulter:C.curry(Ke.makeSeriesEncodeForNameBased,this)})},e.prototype._defaultLabelLine=function(t){(0,Bn.defaultEmphasis)(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.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}((Jt=o("icZIP")).default),Ti=Ii,Ai=o("aZMsI");function Ci(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=function(t,e){return Ai.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();a<s;a++)i[a]=a;return(0,C.isFunction)(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}(n,i),c=o.x,h=o.y,p="horizontal"===a?[(0,de.parsePercent)(t.get("minSize"),l),(0,de.parsePercent)(t.get("maxSize"),l)]:[(0,de.parsePercent)(t.get("minSize"),s),(0,de.parsePercent)(t.get("maxSize"),s)],d=n.getDataExtent(r),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(d[0],0)),null==g&&(g=d[1]);var y=t.get("funnelAlign"),m=t.get("gap"),v=(("horizontal"===a?s:l)-m*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var i=n.get(r,t)||0,o=(0,de.linearMap)(i,[f,g],p,!0),u=void 0;switch(y){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o)}return[[e,u],[e,u+o]]}var d,m=n.get(r,t)||0,v=(0,de.linearMap)(m,[f,g],p,!0);switch(y){case"left":d=c;break;case"center":d=c+(s-v)/2;break;case"right":d=c+s-v}return[[d,e],[d+v,e]]};"ascending"===i&&(v=-v,m=-m,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var _=0;_<u.length;_++){var b=u[_],S=u[_+1],w=n.getItemModel(b);if("horizontal"===a){var M=w.get(["itemStyle","width"]);null==M?M=v:(M=(0,de.parsePercent)(M,s),"ascending"===i&&(M=-M));var I=x(b,c),T=x(S,c+M);c+=M+m,n.setItemLayout(b,{points:I.concat(T.slice().reverse())})}else{var A=w.get(["itemStyle","height"]);null==A?A=v:(A=(0,de.parsePercent)(A,l),"ascending"===i&&(A=-A)),I=x(b,h),T=x(S,h+A),h+=A+m,n.setItemLayout(b,{points:I.concat(T.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var r,i,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,p="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(p)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var d=void 0,f=void 0,g=void 0,y=void 0,m=u.get("length");"left"===l?(d=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,i=(g=d-m)-5,r="right"):"right"===l?(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,i=(g=d+m)+5,r="left"):"top"===l?(d=(h[3][0]+h[0][0])/2,o=(y=(f=(h[3][1]+h[0][1])/2)-m)-5,r="center"):"bottom"===l?(d=(h[1][0]+h[2][0])/2,o=(y=(f=(h[1][1]+h[2][1])/2)+m)+5,r="center"):"rightTop"===l?(d="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(y=f-m)-5,r="center"):(i=(g=d+m)+5,r="top")):"rightBottom"===l?(d=h[2][0],f=h[2][1],"horizontal"===e?(o=(y=f+m)+5,r="center"):(i=(g=d+m)+5,r="bottom")):"leftTop"===l?(d=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(y=f-m)-5,r="center"):(i=(g=d-m)-5,r="right")):"leftBottom"===l?(d="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(y=f+m)+5,r="center"):(i=(g=d-m)-5,r="right")):(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(y=f+m)+5,r="center"):(i=(g=d+m)+5,r="left")),"horizontal"===e?i=g=d:o=y=f,a=[[d,f],[g,y]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:p}}))}(n)}))}function Di(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}))}}}}de=o("iIXbb"),C=o("2fV2j"),Kt=o("2pli3"),Kt=o("2pli3"),y=o("lv1gH");var ki=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Li=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new ki},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(y.default);ie=o("4zWIO"),oe=o("4NPqX"),o("4x6s5"),le=o("4rNRw");var Oi=o("8UpdG");function Pi(t,e){var n=null==t?"":t+"";return e&&((0,C.isString)(e)?n=e.replace("{value}",n):(0,C.isFunction)(e)&&(n=e(t))),n}oe=o("4NPqX"),nt=o("kjDai"),ce=o("6EdQu"),he=o("5xWWJ"),xe=o("ansKp"),de=o("iIXbb"),ti=o("8TH6f"),m=o("b1qY0"),C=o("2fV2j"),ue=o("by2b6"),W=o("btLRI");var Ei=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i);return{cx:(0,de.parsePercent)(n[0],e.getWidth()),cy:(0,de.parsePercent)(n[1],e.getHeight()),r:(0,de.parsePercent)(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?ve:le.default,h=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];(0,W.normalizeArcAngles)(f,!a);for(var g=(l=f[1])-(s=f[0]),y=s,m=[],v=0;h&&v<r.length;v++){var x=new c({shape:{startAngle:y,endAngle:l=s+g*Math.min(Math.max(r[v][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-d,r:i.r},silent:!0});x.setStyle({fill:r[v][1]}),x.setStyle(p.getLineStyle(["color","width"])),m.push(x),y=l}m.reverse(),(0,C.each)(m,(function(t){return o.add(t)}));var _=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,_,i,s,l,a,d),this._renderTitleAndDetail(t,e,n,_,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,_,i,s,l,a,d)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,p=i.cx,d=i.cy,f=i.r,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),v=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=v.get("splitNumber"),S=(0,de.parsePercent)(m.get("length"),f),w=(0,de.parsePercent)(v.get("length"),f),M=o,I=(a-o)/_,T=I/b,A=m.getModel("lineStyle").getLineStyle(),D=v.getModel("lineStyle").getLineStyle(),k=m.get("distance"),L=0;L<=_;L++){if(u=Math.cos(M),c=Math.sin(M),m.get("show")){var O=k?k+l:l,P=new Oi.default({shape:{x1:u*(f-O)+p,y1:c*(f-O)+d,x2:u*(f-S-O)+p,y2:c*(f-S-O)+d},style:A,silent:!0});"auto"===A.stroke&&P.setStyle({stroke:r(L/_)}),h.add(P)}if(x.get("show")){O=x.get("distance")+k;var E=Pi((0,de.round)(L/_*(y-g)+g),x.get("formatter")),R=r(L/_),N=u*(f-S-O)+p,V=c*(f-S-O)+d,z=x.get("rotate"),B=0;"radial"===z?(B=-M+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:(0,C.isNumber)(z)&&(B=z*Math.PI/180),0===B?h.add(new nt.default({style:(0,he.createTextStyle)(x,{text:E,x:N,y:V,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):h.add(new nt.default({style:(0,he.createTextStyle)(x,{text:E,x:N,y:V,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:V,rotation:B}))}if(v.get("show")&&L!==_){O=(O=v.get("distance"))?O+l:l;for(var F=0;F<=b;F++){u=Math.cos(M),c=Math.sin(M);var G=new Oi.default({shape:{x1:u*(f-O)+p,y1:c*(f-O)+d,x2:u*(f-w-O)+p,y2:c*(f-w-O)+d},silent:!0,style:D});"auto"===D.stroke&&G.setStyle({stroke:r((L+F/b)/_)}),h.add(G),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),x=+t.get("min"),_=+t.get("max"),b=[x,_],S=[o,a];function w(e,n){var r,o=y.getItemModel(e).getModel("pointer"),a=(0,de.parsePercent)(o.get("width"),i.r),s=(0,de.parsePercent)(o.get("length"),i.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=(0,de.parsePercent)(u[0],i.r),h=(0,de.parsePercent)(u[1],i.r),p=o.get("keepAspect");return(r=l?(0,ti.createSymbol)(l,c-a/2,h-s,a,s,null,p):new Li({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function M(t,e){var n=f.get("roundCap")?ve:le.default,r=f.get("overlap"),a=r?f.get("width"):l/y.count(),u=r?i.r-a:i.r-(t+1)*a,c=r?i.r:i.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:c}});return r&&(h.z2=_-y.get(v,t)%_),h}(g||d)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(d){var r=w(e,o);oe.initProps(r,{rotation:-((isNaN(+n)?S[0]:(0,de.linearMap)(n,b,S,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=M(e,o),a=f.get("clip");oe.initProps(i,{shape:{endAngle:(0,de.linearMap)(n,b,S,a)}},t),u.add(i),(0,ue.setCommonECData)(t.seriesIndex,y.dataType,e,i),p[e]=i}})).update((function(e,n){var r=y.get(v,e);if(d){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=w(e,a);s.rotation=a,oe.updateProps(s,{rotation:-((isNaN(+r)?S[0]:(0,de.linearMap)(r,b,S,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=M(e,l?l.shape.endAngle:o),x=f.get("clip");oe.updateProps(m,{shape:{endAngle:(0,de.linearMap)(r,b,S,x)}},t),u.add(m),(0,ue.setCommonECData)(t.seriesIndex,y.dataType,e,m),p[e]=m}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof m.default){var c=s.style;s.useStyle((0,C.extend)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r((0,de.linearMap)(y.get(v,t),b,[0,1],!0))),s.z2EmphasisLift=0,(0,ce.setStatesStylesFromModel)(s,e),(0,ce.toggleHoverEmphasis)(s,i,o,a)}if(g){var h=p[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,ce.setStatesStylesFromModel)(h,e),(0,ce.toggleHoverEmphasis)(h,i,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,ti.createSymbol)(i,e.cx-r/2+(0,de.parsePercent)(o[0],e.r),e.cy-r/2+(0,de.parsePercent)(o[1],e.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new ie.default,h=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new nt.default({silent:!0}),p[t]=new nt.default({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new ie.default,y=r((0,de.linearMap)(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),x=i.cx+(0,de.parsePercent)(v[0],i.r),_=i.cy+(0,de.parsePercent)(v[1],i.r);(C=h[e]).attr({z2:f?0:2,style:(0,he.createTextStyle)(m,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(C)}var b=n.getModel("detail");if(b.get("show")){var S=b.get("offsetCenter"),w=i.cx+(0,de.parsePercent)(S[0],i.r),M=i.cy+(0,de.parsePercent)(S[1],i.r),I=(0,de.parsePercent)(b.get("width"),i.r),T=(0,de.parsePercent)(b.get("height"),i.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,C=p[e],D=b.get("formatter");C.attr({z2:f?0:2,style:(0,he.createTextStyle)(b,{x:w,y:M,text:Pi(o,D),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:A})}),(0,he.setLabelValueAnimation)(C,{normal:b},o,(function(t){return Pi(t,D)})),d&&(0,he.animateLabelValue)(C,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return Pi(a?a.interpolatedValue:o,D)}}),g.add(C)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(xe.default),Ri=Ei,Ni=(Kt=o("2pli3"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){return Ze(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}((Jt=o("icZIP")).default)),Vi=Ni;function zi(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t).getShallow("category");if(null!=n){(0,C.isNumber)(n)&&(n=i[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function Bi(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){(0,C.isString)(e)&&(e=i["ec-"+e]);var o=n.getItemVisual(e,"style"),a=r.ensureUniqueItemVisual(t,"style");(0,C.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)r.setItemVisual(t,s[l],n.getItemVisual(e,s[l]))}}))}))}function Fi(t){return t instanceof Array||(t=[t,t]),t}function Gi(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=Fi(t.get("edgeSymbol")),i=Fi(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=Fi(r.getShallow("symbol",!0)),a=Fi(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch((0,C.extend)(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style"),l.stroke=u&&u.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}C=o("2fV2j"),C=o("2fV2j"),C=o("2fV2j"),C=o("2fV2j");var ji=o("lDRrb"),Hi=(C=o("2fV2j"),C=o("2fV2j"),"--\x3e"),Wi=function(t){return t.get("autoCurveness")||null},Ui=function(t,e){var n=Wi(t),r=20,i=[];if(C.isNumber(n))r=n;else if(C.isArray(n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},Yi=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(Hi)},Xi=function(t){var e=t.split(Hi);return[e[0],e[2],e[1]].join(Hi)},Zi=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function qi(t,e,n,r){var i=Wi(e),o=C.isArray(i);if(!i)return null;var a=function(t,e){var n=Yi(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=function(t,e){return Zi(Yi(t.node1,t.node2,e),e)+Zi(Yi(t.node2,t.node1,e),e)}(t,e);Ui(e,u),t.lineStyle=t.lineStyle||{};var c=Yi(t.node1,t.node2,e),h=e.__curvenessList,p=o||u%2?0:1;if(a.isForward)return h[p+s];var d=Xi(c),f=Zi(d,e),g=h[s+f+p];return r?o?i&&0===i[0]?(f+p)%2?g:-g:((f%2?0:1)+p)%2?g:-g:(f+p)%2?g:-g:h[s+f+p]}function Ki(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),Ji(n,t)}}function Ji(t,e){t.eachEdge((function(t,n){var r=C.retrieve3(t.getModel().get(["lineStyle","curveness"]),-qi(t,e,n,!0),0),i=ji.clone(t.node1.getLayout()),o=ji.clone(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)}))}function Qi(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];(0,C.each)(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}Ji(r.graph,t)}else e&&"none"!==e||Ki(t)}))}function $i(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function to(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}ji=o("lDRrb"),C=o("2fV2j");var eo=Math.PI,no=[];function ro(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var p=i.pointToData(r),d=p[0],f=p[1],g=[d-l,f-u];ji.normalize(g,g),ji.scale(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),oo(n,t.get(["circular","rotateLabel"]),l,u)}io[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var r,i=C.retrieve3(e.getModel().get(["lineStyle","curveness"]),qi(e,t,n),0),o=ji.clone(e.node1.getLayout()),a=ji.clone(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])}))}}}var io={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,i,o,a){var s=0;no.length=a;var l=$i(t);e.eachNode((function(t){var e=to(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=eo/2),no[t.dataIndex]=n,s+=2*n}));var u=(2*eo-s)/a/2,c=0;e.eachNode((function(t){var e=u+no[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function oo(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");C.extend(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function ao(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&ro(t,"symbolSize")}))}var so=(ji=o("lDRrb")).scaleAndAdd;function lo(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&ro(t,"value"):Ki(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),p=C.isArray(c)?c:[c,c],d=C.isArray(h)?h:[h,h];d=[d[1],d[0]];var f=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=(0,de.linearMap)(t,l,p);return isNaN(r)&&(r=(p[0]+p[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=(0,de.linearMap)(e,u,d);isNaN(o)&&(o=(d[0]+d[1])/2);var a=i.getModel(),s=C.retrieve3(i.getModel().get(["lineStyle","curveness"]),-qi(i,t,n,!0),0);return{n1:f[i.node1.dataIndex],n2:f[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=e.getBoundingRect(),m=function(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=ji.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=ji.clone(h.p),h.edges=null}var p,d,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){p=t},afterStep:function(t){d=t},step:function(t){p&&p(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;ji.sub(e,c.p,s.p);var h=ji.len(e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),ji.normalize(e,e),!s.fixed&&so(s.p,s.p,e,f*h*g),!c.fixed&&so(c.p,c.p,e,-(1-f)*h*g)}}for(o=0;o<n;o++)(x=r[o]).fixed||(ji.sub(e,l,x.p),so(x.p,x.p,e,u*g));for(o=0;o<n;o++){s=r[o];for(var y=o+1;y<n;y++){c=r[y],ji.sub(e,c.p,s.p),0===(h=ji.len(e))&&(ji.set(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&so(s.pp,s.pp,e,m),!c.fixed&&so(c.pp,c.pp,e,-m)}}var v=[];for(o=0;o<n;o++){var x;(x=r[o]).fixed||(ji.sub(v,x.p,x.pp),so(x.p,x.p,v,g),ji.copy(x.pp,x.p))}var _=(g*=.992)<.01;d&&d(r,i,_),t&&t(_)}}}(f,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&ji.copy(t[n].p,r.getNodeByIndex(n).getLayout())})),m.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],ji.copy(p[0],c),ji.copy(p[1],h),+l.curveness&&(p[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(p)}})),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null}))}de=o("iIXbb"),ji=o("lDRrb"),C=o("2fV2j"),Kt=o("2pli3"),ji=o("lDRrb"),ui=o("2QCok");var uo=o("e2ttp"),co=(H=o("bCcJ1"),de=o("iIXbb"),ji.applyTransform);function ho(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var po=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new(0,H.default),n._rawTransformable=new(0,H.default),n.name=e,n}return(0,Kt.__extends)(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new(0,uo.default)(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new(0,uo.default)(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new(0,uo.default)(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[(0,de.parsePercent)(t[0],e.getWidth()),(0,de.parsePercent)(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=ji.applyTransform([],r,t),n=ji.applyTransform([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ui.copy(this.transform||(this.transform=[]),e.transform||ui.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ui.invert(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new(0,H.default);return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?co(n,t,r):ji.copy(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?co([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=ho(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=ho(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(H.default),fo=(Ai=o("aZMsI"),o("hA1kS"));function go(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];fo.fromPoints(o,a,s),s[0]-a[0]==0&&(s[0]+=1,a[0]-=1),s[1]-a[1]==0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=function(t,e,n){var r=(0,C.extend)(t.getBoxLayoutParams(),{aspect:n});return(0,Ai.getLayoutRect)(r,{width:e.getWidth(),height:e.getHeight()})}(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],p=u.width,d=u.height,f=t.coordinateSystem=new po;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,p,d),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}C=o("2fV2j"),Kt=o("2pli3"),ie=o("4zWIO"),ae=o("4x6s5"),Kt=o("2pli3"),C=o("2fV2j"),ji=o("lDRrb"),ti=o("8TH6f"),Kt=o("2pli3"),o("4x6s5"),Oi=o("8UpdG");var yo=o("2Kft9"),mo=(y=o("lv1gH"),ji=o("lDRrb"),Oi.default.prototype),vo=yo.default.prototype,xo=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function _o(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}!function(t){(0,Kt.__extends)((function(){return null!==t&&t.apply(this,arguments)||this}),t)}(xo);var bo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xo},e.prototype.buildPath=function(t,e){_o(e)?mo.buildPath.call(this,t,e):vo.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return _o(this.shape)?mo.pointAt.call(this,t):vo.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=_o(e)?[e.x2-e.x1,e.y2-e.y1]:vo.tangentAt.call(this,t);return ji.normalize(n,n)},e}(y.default);ie=o("4zWIO"),oe=o("4NPqX"),o("4x6s5"),oe=o("4NPqX"),ce=o("6EdQu"),he=o("5xWWJ"),de=o("iIXbb");var So=["fromSymbol","toSymbol"];function wo(t){return"_"+t+"Type"}function Mo(t,e,n){var r=e.getItemVisual(n,t);if(!r||"none"===r)return r;var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=ti.normalizeSymbolSize(i);return r+l+ti.normalizeSymbolOffset(a||0,l)+(o||"")+(s||"")}function Io(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=ti.normalizeSymbolSize(i),u=ti.normalizeSymbolOffset(a||0,l),c=ti.createSymbol(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function To(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Ao=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return(0,Kt.__extends)(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=function(t){var e=new bo({name:"line",subPixelOptimize:!0});return To(e.shape,t),e}(t.getItemLayout(e));i.shape.percent=0,oe.initProps(i,{shape:{percent:1}},r,e),this.add(i),(0,C.each)(So,(function(n){var r=Io(n,t,e);this.add(r),this[wo(n)]=Mo(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};To(a.shape,o),oe.updateProps(i,a,r,e),(0,C.each)(So,(function(n){var r=Mo(n,t,e),i=wo(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=Io(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),d=p.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),l=(0,he.getLabelStatesModels)(p)}var f=t.getItemVisual(e,"style"),g=f.stroke;i.useStyle(f),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,(0,C.each)(So,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<ce.SPECIAL_STATES.length;n++){var r=ce.SPECIAL_STATES[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var y=r.getRawValue(e);(0,he.setLabelStyle)(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?(0,de.round)(y):y)+""});var m=this.getTextContent();if(m){var v=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=v.get("position")||"middle";var x=v.get("distance");(0,C.isArray)(x)||(x=[x,x]),m.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),(0,ce.toggleHoverEmphasis)(this,c,h,u)},e.prototype.highlight=function(){(0,ce.enterEmphasis)(this)},e.prototype.downplay=function(){(0,ce.leaveEmphasis)(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");To(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=ji.sub([],u,l);if(ji.normalize(c,c),e&&(e.setPosition(l),w(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),w(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,p=void 0,d=r.__labelDistance,f=d[0]*i,g=d[1]*i,y=s/2,m=a.tangentAt(y),v=[m[1],-m[0]],x=a.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=m[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var b=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(b=Math.PI+b),r.rotation=b}var S=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,p="top";break;default:S=0,p="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*f+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=f*_+l[0],r.y=l[1]+S,h=m[0]<0?"right":"left",r.originX=-f*_,r.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=x[0],r.y=x[1]+S,h="center",r.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*_+u[0],r.y=u[1]+S,h=m[0]>=0?"right":"left",r.originX=f*_,r.originY=-S}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(ie.default);function Co(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,he.getLabelStatesModels)(e)}}function Do(t){return isNaN(t[0])||isNaN(t[1])}function ko(t){return t&&!Do(t[0])&&!Do(t[1])}he=o("5xWWJ");var Lo=function(){function t(t){this.group=new ie.default,this._LineCtor=t||Ao}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=Co(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Co(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++)if(ko(e.getItemLayout(r))){var i=new this._LineCtor(e,r,this._seriesScope);i.traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){ae.traverseElements(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(ko(t.getItemLayout(e))){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);ko(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}(),Oo=(Kt=o("2pli3"),o("bMEwb")),Po=o("9Ocvr"),Eo=o("5TtXY");function Ro(t,e){return!!No(t)[e]}function No(t){return t["\0_ec_interaction_mutex"]||(t["\0_ec_interaction_mutex"]={})}function Vo(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Po.stop(r.event),zo(t,e,n,r,i))}function zo(t,e,n,r,i){i.isAvailableBehavior=(0,C.bind)(Bo,null,n,r),t.trigger(e,i)}function Bo(t,e,n){var r=n[t];return!t||r&&(!(0,C.isString)(r)||e.event[r+"Key"])}C=o("2fV2j"),Eo.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},C.noop),C=o("2fV2j");var Fo=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=(0,C.bind)(n._mousedownHandler,n),i=(0,C.bind)(n._mousemoveHandler,n),o=(0,C.bind)(n._mouseupHandler,n),a=(0,C.bind)(n._mousewheelHandler,n),s=(0,C.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,C.defaults)((0,C.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return(0,Kt.__extends)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Po.isMiddleOrRightButtonOnMouseUpDown(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&Bo("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Ro(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Po.stop(t.event),zo(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Po.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=Bo("zoomOnMouseWheel",t,this._opt),n=Bo("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;Vo(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);Vo(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Ro(this._zr,"globalPan")||Vo(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Oo.default);function Go(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function jo(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Ho={axisPointer:1,tooltip:1,brush:1};function Wo(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Ho.hasOwnProperty(r.mainType)&&i&&i.model!==n}o("4x6s5"),oe=o("4NPqX");var Uo=o("d7uFa"),Yo=(ji=o("lDRrb"),[]),Xo=[],Zo=[],qo=Uo.quadraticAt,Ko=ji.distSquare,Jo=Math.abs;function Qo(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)Yo[0]=qo(i[0],o[0],a[0],c),Yo[1]=qo(i[1],o[1],a[1],c),(d=Jo(Ko(Yo,e)-l))<s&&(s=d,r=c);for(var h=0;h<32;h++){var p=r+u;Xo[0]=qo(i[0],o[0],a[0],r),Xo[1]=qo(i[1],o[1],a[1],r),Zo[0]=qo(i[0],o[0],a[0],p),Zo[1]=qo(i[1],o[1],a[1],p);var d=Ko(Xo,e)-l;if(Jo(d)<.01)break;var f=Ko(Zo,e)-l;u/=2,d<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function $o(t,e){var n=[],r=Uo.quadraticSubdivide,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[ji.clone(l[0]),ji.clone(l[1])],l[2]&&l.__original.push(ji.clone(l[2])));var h=l.__original;if(null!=l[2]){if(ji.copy(i[0],h[0]),ji.copy(i[1],h[2]),ji.copy(i[2],h[1]),u&&"none"!==u){var p=to(t.node1),d=Qo(i,h[0],p*e);r(i[0][0],i[1][0],i[2][0],d,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],d,n),i[0][1]=n[3],i[1][1]=n[4]}c&&"none"!==c&&(p=to(t.node2),d=Qo(i,h[1],p*e),r(i[0][0],i[1][0],i[2][0],d,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],d,n),i[1][1]=n[1],i[2][1]=n[2]),ji.copy(l[0],i[0]),ji.copy(l[1],i[2]),ji.copy(l[2],i[1])}else ji.copy(o[0],h[0]),ji.copy(o[1],h[1]),ji.sub(a,o[1],o[0]),ji.normalize(a,a),u&&"none"!==u&&(p=to(t.node1),ji.scaleAndAdd(o[0],o[0],a,p*e)),c&&"none"!==c&&(p=to(t.node2),ji.scaleAndAdd(o[1],o[1],a,-p*e)),ji.copy(l[0],o[0]),ji.copy(l[1],o[1])}))}function ta(t){return"view"===t.type}xe=o("ansKp"),ue=o("by2b6");var ea=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){var n=new ai,r=new Lo,i=this.group;this._controller=new Fo(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(ta(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):oe.updateProps(s,l,t)}$o(t.getGraph(),$i(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var d=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(d){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,p),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),ro(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;default:u.setItemLayout(n,[i.x,i.y]),Ji(t.getGraph(),t),r.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&((0,ue.getECData)(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&((0,ue.getECData)(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(t){oo(t,f,g,y)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))}()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Wo(e,n,t)})),ta(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){Go(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){jo(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),$o(t.getGraph(),$i(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=$i(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){$o(t.getGraph(),$i(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(xe.default),na=ea,ra=(Kt=o("2pli3"),Xe=o("ao62o"),C=o("2fV2j"),Bn=o("jnApb"),o("1C7zE"));function ia(t){return"_EC_"+t}C=o("2fV2j"),Xe=o("ao62o"),C=o("2fV2j");var oa=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[ia(t)]){var r=new aa(t,e);return r.hostGraph=this,this.nodes.push(r),n[ia(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[ia(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(C.isNumber(t)&&(t=this.nodes[t]),C.isNumber(e)&&(e=this.nodes[e]),t instanceof aa||(t=r[ia(t)]),e instanceof aa||(e=r[ia(e)]),t&&e){var o=t.id+"-"+e.id,a=new sa(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof aa&&(t=t.id),e instanceof aa&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof aa||(e=this._nodesMap[ia(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;for(e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0})),i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),aa=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=C.createHashMap(),e=C.createHashMap(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var i=[r.node1],o=[r.node2],a=0;a<i.length;){var s=i[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];for(a++,e.set(u.dataIndex,!0),l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),sa=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=C.createHashMap(),e=C.createHashMap();t.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(i=0;i<r.length;){var s=r[i];for(i++,e.set(s.dataIndex,!0),a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function la(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}C.mixin(aa,la("hostGraph","data")),C.mixin(sa,la("hostGraph","edgeData"));var ua=oa,ca=(C=o("2fV2j"),(0,(Bn=o("jnApb")).makeInner)());function ha(t,e){if(ca(this).mainData===this){var n=(0,C.extend)({},ca(this).datas);n[this.dataType]=e,ya(e,n,t)}else ma(e,this.dataType,ca(this).mainData,t);return e}function pa(t,e){return t.struct&&t.struct.update(),e}function da(t,e){return(0,C.each)(ca(e).datas,(function(n,r){n!==e&&ma(n.cloneShallow(),r,e,t)})),e}function fa(t){var e=ca(this).mainData;return null==t||null==e?e:ca(e).datas[t]}function ga(){var t=ca(this).mainData;return null==t?[{data:t}]:(0,C.map)((0,C.keys)(ca(t).datas),(function(e){return{type:e,data:ca(t).datas[e]}}))}function ya(t,e,n){ca(t).datas={},(0,C.each)(e,(function(e,r){ma(e,r,t,n)}))}function ma(t,e,n,r){ca(n).datas[e]=t,ca(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=fa,t.getLinkedDataAll=ga}var va=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,ya(e,n,t),(0,C.each)(n,(function(n){(0,C.each)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,(0,C.curry)(ha,t))}))})),e.wrapMethod("cloneShallow",(0,C.curry)(da,t)),(0,C.each)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,(0,C.curry)(pa,t))})),(0,C.assert)(n[e.dataType]===e)},xa=(Ye=o("bJU8K"),o("gqZ26"));function _a(t,e,n,r,i){for(var o=new ua(r),a=0;a<t.length;a++)o.addNode(C.retrieve(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,p=c.target;o.addEdge(h,p,u)&&(l.push(c),s.push(C.retrieve((0,Bn.convertOptionIdName)(c.id,null),h+" > "+p)),u++)}var d,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)d=(0,Qt.default)(t,n);else{var g=xa.default.get(f),y=g&&g.dimensions||[];C.indexOf(y,"value")<0&&y.concat(["value"]);var m=(0,Ye.default)(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(d=new(0,Xe.default)(m,n)).initData(t)}var v=new(0,Xe.default)(["value"],n);return v.initData(l,s),i&&i(d,v),va({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}Qt=o("hNaFr"),Bn=o("jnApb"),Jt=o("icZIP");var ba=o("dcFkT"),Sa=o("b9GIG"),wa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Mi(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,Bn.defaultEmphasis)(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,r=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&r){Wi(n=this)&&(n.__curvenessList=[],n.__edgeMap={},Ui(n));var a=_a(i,r,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=ra.default.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=i,r}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=i,t.getModel=r,t}))}));return C.each(a.edges,(function(t){!function(t,e,n,r){if(Wi(n)){var i=Yi(t,e,n),o=n.__edgeMap,a=o[Xi(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,ba.createTooltipMarkup)("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return(0,Sa.defaultSeriesFormatTooltip)({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=C.map(this.option.categories||[],(function(t){return null!=t.value?t:C.extend({value:0},t)})),e=new(0,Xe.default)(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Jt.default),Ma=wa;function Ia(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Ta(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Ia(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(Ia(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}C=o("2fV2j");var Aa={type:"graphRoam",event:"graphRoam",update:"none"};Kt=o("2pli3"),ae=o("4x6s5"),se=o("4m2Ab"),m=o("b1qY0"),ce=o("6EdQu"),rt=o("iXQJv");var Ca=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=rt.platformApi.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=t.length;c.width=e,c.height=n;for(var d=0;d<p;++d){var f=t[d],g=f[0],y=f[1],m=r(f[2]);h.globalAlpha=m,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),x=v.data,_=0,b=x.length,S=this.minOpacity,w=this.maxOpacity-S;_<b;){m=x[_+3]/256;var M=4*Math.floor(255*m);if(m>0){var I=o(m)?s:l;m>0&&(m=m*w+S),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*m*256}else _+=4}return h.putImageData(v,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=rt.platformApi.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}();function Da(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}C=o("2fV2j"),xe=o("ansKp"),he=o("5xWWJ");var ka=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Da(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(Da(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ae.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=_e(u,"cartesian2d");if(c){var h=u.getAxis("x"),p=u.getAxis("y");o=h.getBandWidth()+.5,a=p.getBandWidth()+.5,s=h.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=t.get(["itemStyle","borderRadius"]),x=(0,he.getLabelStatesModels)(t),_=t.getModel("emphasis"),b=_.get("focus"),S=_.get("blurScope"),w=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<r;I++){var T=void 0,A=f.getItemVisual(I,"style");if(c){var C=f.get(M[0],I),D=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(C)||isNaN(D)||C<s[0]||C>s[1]||D<l[0]||D>l[1])continue;var k=u.dataToPoint([C,D]);T=new se.default({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:A})}else{if(isNaN(f.get(M[1],I)))continue;T=new se.default({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:A})}if(f.hasItemOption){var L=f.getItemModel(I),O=L.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),m=L.getModel(["select","itemStyle"]).getItemStyle(),v=L.get(["itemStyle","borderRadius"]),b=O.get("focus"),S=O.get("blurScope"),w=O.get("disabled"),x=(0,he.getLabelStatesModels)(L)}T.shape.r=v;var P=t.getRawValue(I),E="-";P&&null!=P[2]&&(E=P[2]+""),(0,he.setLabelStyle)(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:A.opacity,defaultText:E}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=m,(0,ce.toggleHoverEmphasis)(T,b,S,w),T.incremental=i,i&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Ca;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,r.getWidth()),d=Math.min(l.height+l.y,r.getHeight()),f=p-c,g=d-h,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),x=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(x,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=C.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,o=0;return function(t){var r;for(r=o;r<i;r++)if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(x,n.getPieceList(),n.option.selected);s.update(v,f,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var b=new m.default({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(xe.default),La=ka,Oa=(Kt=o("2pli3"),Jt=o("icZIP"),Qt=o("hNaFr"),xa=o("gqZ26"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,Qt.default)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=xa.default.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Jt.default)),Pa=Oa;Kt=o("2pli3"),Qt=o("hNaFr"),Jt=o("icZIP"),ti=o("8TH6f"),ie=o("4zWIO");var Ea=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t){return(0,Qt.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new(0,ie.default),n=(0,ti.createSymbol)("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=(0,ti.createSymbol)(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="#fff",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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Jt.default),Ra=Ea;function Na(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:(0,C.isNumber)(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),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=(0,C.map)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return(0,ci.isDimensionStacked)(e,h[0])&&(p=!0,h[0]=d),(0,ci.isDimensionStacked)(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Va(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)}Kt=o("2pli3"),C=o("2fV2j"),ci=o("1O8EX"),C=o("2fV2j"),Nn=o("jgaRs"),ie=o("4zWIO"),oe=o("4NPqX");var za=o("kwypm");nt=o("kjDai"),o("4x6s5"),oe=o("4NPqX"),Bn=o("jnApb"),Kt=o("2pli3"),y=o("lv1gH"),W=o("btLRI"),Uo=o("d7uFa");var Ba=Math.min,Fa=Math.max;function Ga(t,e){return isNaN(t)||isNaN(e)}function ja(t,e,n,r,i,o,a,s,l){for(var u,c,h,p,d,f,g=n,y=0;y<r;y++){var m=e[2*g],v=e[2*g+1];if(g>=i||g<0)break;if(Ga(m,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,v),h=m,p=v;else{var x=m-u,_=v-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,S=e[2*b],w=e[2*b+1];S===m&&w===v&&y<r;)y++,g+=o,S=e[2*(b+=o)],w=e[2*b+1],x=(m=e[2*g])-u,_=(v=e[2*g+1])-c;var M=y+1;if(l)for(;Ga(S,w)&&M<r;)M++,S=e[2*(b+=o)],w=e[2*b+1];var I=.5,T=0,A=0,C=void 0,D=void 0;if(M>=r||Ga(S,w))d=m,f=v;else{T=S-u,A=w-c;var k=m-u,L=S-m,O=v-c,P=w-v,E=void 0,R=void 0;if("x"===s){var N=T>0?1:-1;d=m-N*(E=Math.abs(k))*a,f=v,C=m+N*(R=Math.abs(L))*a,D=v}else if("y"===s){var V=A>0?1:-1;d=m,f=v-V*(E=Math.abs(O))*a,C=m,D=v+V*(R=Math.abs(P))*a}else E=Math.sqrt(k*k+O*O),d=m-T*a*(1-(I=(R=Math.sqrt(L*L+P*P))/(R+E))),f=v-A*a*(1-I),D=v+A*a*I,C=Ba(C=m+T*a*I,Fa(S,m)),D=Ba(D,Fa(w,v)),C=Fa(C,Ba(S,m)),f=v-(A=(D=Fa(D,Ba(w,v)))-v)*E/R,d=Ba(d=m-(T=C-m)*E/R,Fa(u,m)),f=Ba(f,Fa(c,v)),C=m+(T=m-(d=Fa(d,Ba(u,m))))*R/E,D=v+(A=v-(f=Fa(f,Ba(c,v))))*R/E}t.bezierCurveTo(h,p,d,f,m,v),h=C,p=D}else t.lineTo(m,v)}u=m,c=v,g+=o}return y}var Ha=function(){this.smooth=0,this.smoothConstraint=!0},Wa=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ha},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&Ga(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Ga(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=ja(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=W.default.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=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 y=a?(c-r)*g+r:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],p=i[l++],d=i[l++],f=i[l++];var m=a?(0,Uo.cubicRootAt)(n,u,h,d,t,s):(0,Uo.cubicRootAt)(r,c,p,f,t,s);if(m>0)for(var v=0;v<m;v++){var x=s[v];if(x<=1&&x>=0)return y=a?(0,Uo.cubicAt)(r,c,p,f,x):(0,Uo.cubicAt)(n,u,h,d,x),a?[t,y]:[y,t]}n=d,r=f}}},e}(y.default),Ua=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e}(Ha),Ya=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new Ua},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&&Ga(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Ga(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=ja(t,n,i,o,o,1,e.smooth,a,e.connectNulls);ja(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(y.default),Xa=(xe=o("ansKp"),ce=o("6EdQu"),he=o("5xWWJ"),ue=o("by2b6"),Nn=o("jgaRs"),o("gnWKD"));function Za(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function qa(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Ka(t,e){var n=qa(t),r=n[0],i=n[1],o=qa(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Ja(t){return C.isNumber(t)?t:t?.5:0}function Qa(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+c[o])/2,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function $a(t,e){return[t[2*e],t[2*e+1]]}function ts(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<ce.SPECIAL_STATES.length;e++)if(t.get([ce.SPECIAL_STATES[e],"endLabel","show"]))return!0;return!1}function es(t,e,n,r){if(_e(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=ts(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=fe(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,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return ge(e,n,r)}it=o("6s8l4");var ns=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.init=function(){var t=new ie.default,e=new ai;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,y=!e.ssr&&t.get("animation"),m=!l.isEmpty(),v=l.get("origin"),x=Na(i,a,v),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=(0,Nn.createFloat32Array)(2*r),o=0;o<r;o++){var a=Va(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),b=t.get("showSymbol"),S=t.get("connectNulls"),w=b&&!c&&function(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*ni.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return C.each(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,i),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),b||p.remove(),o.add(g);var I,T=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(I=i.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=function(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=C.map(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 p=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r);return{coord:n,color:(0,it.lerp)(i,[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()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";C.each(p,(function(t){t.offset=(t.coord-f)/y})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var m=new za.default(0,0,0,0,p,!0);return m[i]=f,m[i+"2"]=g,m}}}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===i.type&&T===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,(0,Xa.convertToColorString)(A));var D=g.getClipPath();if(D){var k=es(this,i,!1,t);oe.initProps(D,{shape:k.shape},t)}else g.setClipPath(es(this,i,!0,t));b&&p.updateData(a,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Za(this._stackedOnPoints,_)&&Za(this._points,u)||(y?this._doUpdateAnimation(a,_,i,n,T,v,S):(T&&(u=Qa(u,i,T,S),_&&(_=Qa(_,i,T,S))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&p.updateData(a,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,i,I),T&&(u=Qa(u,i,T,S),_&&(_=Qa(_,i,T,S))),d=this._newPolyline(u),m?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,(0,Xa.convertToColorString)(A)),g.setClipPath(es(this,i,!0,t));var L=t.getModel("emphasis"),O=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled");d.useStyle(C.defaults(s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),(0,ce.setStatesStylesFromModel)(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),(0,ue.getECData)(d).seriesIndex=t.seriesIndex,(0,ce.toggleHoverEmphasis)(d,O,P,E);var R=Ja(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),f){var V=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(C.defaults(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),V&&(z=Ja(V.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:S}),(0,ce.setStatesStylesFromModel)(f,t,"areaStyle"),(0,ue.getECData)(f).seriesIndex=t.seriesIndex,(0,ce.toggleHoverEmphasis)(f,O,P,E)}var B=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=T,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){(0,ue.getECData)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Bn.queryDataIndex(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(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new ni(i,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else xe.default.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Bn.queryDataIndex(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 xe.default.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,ce.setStatesFlag)(this._polyline,t),e&&(0,ce.setStatesFlag)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Wa({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 Ya({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");C.isFunction(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=C.isFunction(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(i){var g=n,y=e.pointToCoord(h);r?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var m=n;r?(p=m.x,d=m.x+m.width,f=t.x):(p=m.y+m.height,d=m.y,f=t.y)}var v=d===p?0:(f-p)/(d-p);a&&(v=1-v);var x=C.isFunction(u)?u(o):l*v+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),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(ts(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 nt.default({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(a);l>=0&&((0,he.setLabelStyle)(o,(0,he.getLabelStatesModels)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?we(i,n):Se(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"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=e.shape,v=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",S=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(i=t[2*u+a],!isNaN(i)&&!isNaN(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,v,b),w=S.range,M=w[1]-w[0],I=void 0;if(M>=1){if(M>1&&!h){var T=$a(u,w[0]);s.attr({x:T[0]+x,y:T[1]+_}),i&&(I=c.getRawValue(w[0]))}else{(T=l.getPointOn(v,b))&&s.attr({x:T[0]+x,y:T[1]+_});var A=c.getRawValue(w[0]),C=c.getRawValue(w[1]);i&&(I=Bn.interpolateRawValues(n,p,A,C,S.t))}r.lastFrameIndex=w[0]}else{var D=1===t||r.lastFrameIndex>0?w[0]:0;T=$a(u,D),i&&(I=c.getRawValue(D)),s.attr({x:T[0]+x,y:T[1]+_})}if(i){var k=(0,he.labelInner)(s);"function"==typeof k.setLabelText&&k.setLabelText(I)}}},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,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],h=[],p=[],d=[],f=[],g=[],y=Na(i,e,a),m=t.getLayout("points")||[],v=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,w=void 0;switch(_.cmd){case"=":S=2*_.idx,w=2*_.idx1;var M=m[S],I=m[S+1],T=v[w],A=v[w+1];(isNaN(M)||isNaN(I))&&(M=T,I=A),u.push(M,I),c.push(T,A),h.push(n[S],n[S+1]),p.push(r[w],r[w+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,D=y.dataDimsForPoint,k=i.dataToPoint([e.get(D[0],C),e.get(D[1],C)]);w=2*C,u.push(k[0],k[1]),c.push(v[w],v[w+1]);var L=Va(y,i,e,C);h.push(L[0],L[1]),p.push(r[w],r[w+1]),g.push(e.getRawIndex(C));break;case"-":b=!1}b&&(d.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var O=u.length,P=(0,Nn.createFloat32Array)(O),E=(0,Nn.createFloat32Array)(O),R=(0,Nn.createFloat32Array)(O),N=(0,Nn.createFloat32Array)(O),V=[];for(x=0;x<f.length;x++){var z=f[x],B=2*x,F=2*z;P[B]=u[F],P[B+1]=u[F+1],E[B]=c[F],E[B+1]=c[F+1],R[B]=h[F],R[B+1]=h[F+1],N[B]=p[F],N[B+1]=p[F+1],V[x]=d[z]}return{current:P,next:E,stackedOnCurrent:R,stackedOnNext:N,status:V}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(h=Qa(c.current,n,i,a),p=Qa(c.stackedOnCurrent,n,i,a),d=Qa(c.next,n,i,a),f=Qa(c.stackedOnNext,n,i,a)),Ka(h,d)>3e3||l&&Ka(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),oe.updateProps(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),oe.updateProps(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],m=c.status,v=0;v<m.length;v++)if("="===m[v].cmd){var x=t.getItemGraphicEl(m[v].idx1);x&&y.push({el:x,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,r=2*y[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}(xe.default),rs=ns;Kt=o("2pli3"),Kt=o("2pli3"),ie=o("4zWIO"),C=o("2fV2j"),ti=o("8TH6f"),ji=o("lDRrb"),Uo=o("d7uFa");var is=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return(0,Kt.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new Ao(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");C.isArray(r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=(0,ti.createSymbol)(i,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=C.retrieve(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=C.isFunction(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return ji.dist(t.__p1,t.__cp1)+ji.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Uo.quadraticAt,l=Uo.quadraticDerivativeAt;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*ji.dist(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*ji.dist(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(ie.default);Kt=o("2pli3"),ie=o("4zWIO"),o("4x6s5"),mi=o("ln8jP"),oe=o("4NPqX"),ce=o("6EdQu");var os=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return(0,Kt.__extends)(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new mi.default({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};oe.updateProps(i,o,r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,(0,ce.toggleHoverEmphasis)(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(ie.default),as=(Kt=o("2pli3"),ji=o("lDRrb"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return(0,Kt.__extends)(e,t),e.prototype.createLine=function(t,e,n){return new os(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=ji.dist(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>e);o++);o=Math.min(o-1,i-2)}var s=(e-r[o])/(r[o+1]-r[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(is)),ss=as;Kt=o("2pli3"),uo=o("e2ttp"),ie=o("4zWIO"),o("4x6s5"),y=o("lv1gH");var ls=o("iifjm"),us=o("gPFlX"),cs=(ue=o("by2b6"),function(){this.polyline=!1,this.curveness=0,this.segs=[]}),hs=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Kt.__extends)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cs},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,p=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,p,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){var p=r[s++],d=r[s++];if(ls.containStroke(u,c,p,d,o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){if(u=r[s++],c=r[s++],p=r[s++],d=r[s++],i>0){var f=(u+p)/2-(c-d)*i,g=(c+d)/2-(p-u)*i;if(us.containStroke(u,c,f,g,p,d,o,t,e))return a}else if(ls.containStroke(u,c,p,d,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(l,r),o=Math.max(l,o)}t=this._rect=new uo.default(n,r,i,o)}return t},e}(y.default),ps=function(){function t(){this.group=new ie.default}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new hs({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=(0,ue.getECData)(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ds={seriesType:"lines",plan:(0,(Dn=o("1ZHIk")).default)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,p=[];for(c=i.start;c<i.end;c++){var d=t.getLineCoords(c,a);n&&(s[h++]=d);for(var f=0;f<d;f++)p=e.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),y=(d=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<d;m++)y.push(e.dataToPoint(a[m]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var v=g.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}o.setItemLayout(c,y)}}}}}},fs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&ye(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateLineDraw(r,t).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=ds.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new ps:new Lo(i?r?ss:os:r?is:Ao),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}((xe=o("ansKp")).default),gs=fs,ys=(Kt=o("2pli3"),Jt=o("icZIP"),Xe=o("ao62o"),C=o("2fV2j"),ba=o("dcFkT"),"undefined"==typeof Uint32Array?Array:Uint32Array),ms="undefined"==typeof Float64Array?Array:Float64Array;function vs(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=(0,C.map)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),(0,C.mergeAll)([e,t[0],t[1]])})))}var xs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e){e.data=e.data||[],vs(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(vs(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,C.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,C.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),(0,C.isNumber)(t[0])){for(var n=t.length,r=new ys(n),i=new ms(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],p=t[l++];i[o++]=h,i[o++]=p}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new(0,Xe.default)(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().getItemModel(t),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),(0,ba.createTooltipMarkup)("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Jt.default),_s=xs;function bs(t){return t instanceof Array||(t=[t,t]),t}var Ss={seriesType:"lines",reset:function(t){var e=bs(t.get("symbol")),n=bs(t.get("symbolSize")),r=t.getData();return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(t,e){var n=t.getItemModel(e),r=bs(n.getShallow("symbol",!0)),i=bs(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};d=o("loiyq"),Kt=o("2pli3"),o("4x6s5");var ws=o("18USZ");C=o("2fV2j"),U=o("hqpEF"),ie=o("4zWIO"),o("4x6s5"),oe=o("4NPqX"),vi=o("4w8lf"),mi=o("ln8jP"),ae=o("4x6s5"),ce=o("6EdQu"),C=o("2fV2j"),ie=o("4zWIO"),m=o("b1qY0"),ws=o("18USZ"),se=o("4m2Ab");var Ms,Is=o("5GLyX"),Ts=(Oi=o("8UpdG"),vi=o("4w8lf"),mi=o("ln8jP"),ui=o("2QCok"),o("1AjVZ")),As=(C=o("2fV2j"),za=o("kwypm"),o("cVxFK"));function Cs(t){(0,C.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}x=o("dF0cA"),C=o("2fV2j");var Ds={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ks=(0,C.keys)(Ds),Ls={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Os=(0,C.keys)(Ls),Ps=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=Cs(t);this._defsUsePending=[];var r=new(0,ie.default);this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),Bs(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=Hs(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=Zs(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=r;(r=new(0,ie.default)).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new(0,se.default)({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=Ms[s];if(u&&(0,C.hasOwn)(Ms,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var p=Es[s];if(p&&(0,C.hasOwn)(Es,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new(0,x.default)({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(Ms={g:function(t,e){var n=new(0,ie.default);return Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new(0,se.default);return Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new(0,ws.default);return Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new(0,Oi.default);return Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new(0,Is.default);return Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=zs(r));var i=new(0,vi.default)({shape:{points:n||[]},silent:!0});return Vs(e,i),Bs(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=zs(r));var i=new(0,mi.default)({shape:{points:n||[]},silent:!0});return Vs(e,i),Bs(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new(0,m.default);return Vs(e,n),Bs(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new(0,ie.default);return Vs(e,a),Bs(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new(0,ie.default);return Vs(e,a),Bs(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",r=(0,Ts.createFromString)(n);return Vs(e,r),Bs(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}),t}(),Es={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new(0,za.default)(e,n,r,i);return Rs(t,o),Ns(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new(0,As.default)(e,n,r);return Rs(t,i),Ns(t,i),i}};function Rs(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Ns(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r,i=n.getAttribute("offset");r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Xs(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function Vs(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),(0,C.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function zs(t){for(var e=Hs(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function Bs(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(Ws,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=Hs(a);switch(i=i||ui.create(),s){case"translate":ui.translate(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ui.scale(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ui.rotate(i,i,-parseFloat(l[0])*Us,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Us);ui.mul(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Us);ui.mul(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),Xs(t,a,s),r||function(t,e,n){for(var r=0;r<ks.length;r++){var i=ks[r];null!=(o=t.getAttribute(i))&&(e[Ds[i]]=o)}for(r=0;r<Os.length;r++){var o;i=Os[r],null!=(o=t.getAttribute(i))&&(n[Ls[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Gs(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=Gs(o,"stroke",a.stroke,n)),(0,C.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),(0,C.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=(0,C.map)(Hs(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var Fs=/^url\(\s*#(.*?)\)/;function Gs(t,e,n,r){var i=n&&n.match(Fs);if(!i)return"none"===n&&(n=null),n;var o=(0,C.trim)(i[1]);r.push([t,e,o])}var js=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hs(t){return t.match(js)||[]}var Ws=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Us=Math.PI/180,Ys=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Xs(t,e,n){var r,i=t.getAttribute("style");if(i)for(Ys.lastIndex=0;null!=(r=Ys.exec(i));){var o=r[1],a=(0,C.hasOwn)(Ds,o)?Ds[o]:null;a&&(e[a]=r[2]);var s=(0,C.hasOwn)(Ls,o)?Ls[o]:null;s&&(n[s]=r[2])}}function Zs(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}ie=o("4zWIO"),se=o("4m2Ab"),C=o("2fV2j"),uo=o("e2ttp");var qs=o("9X5ej"),Ks=(0,C.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Js=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=(0,C.createHashMap)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Cs(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=(0,C.createHashMap)();return(0,C.each)(t,(function(t){if(null==t.namedFrom){var r=new(0,qs.GeoSVGRegion)(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new Ps).parse(r,i))||{}).root,(0,C.assert)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new(0,ie.default);o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,p=void 0,d=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(h=0,d=s):l&&(h=l.y,d=l.height),null==c||null==h){var f=n.getBoundingRect();null==c&&(c=f.x,p=f.width),null==h&&(h=f.y,d=f.height)}u=this._boundingRect=new(0,uo.default)(c,h,p,d)}if(l){var g=Zs(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new(0,se.default)({shape:u.plain()}));var y=[];return(0,C.each)(e.named,(function(t){var e;null!=Ks.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();C=o("2fV2j");for(var Qs=o("9RZSW"),$s=(C=o("2fV2j"),qs=o("9X5ej"),[126,25]),tl="南海诸岛",el=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],nl=0;nl<el.length;nl++)for(var rl=0;rl<el[nl].length;rl++)el[nl][rl][0]/=10.5,el[nl][rl][1]/=-14,el[nl][rl][0]+=$s[0],el[nl][rl][1]+=$s[1];var il={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var ol=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];uo=o("e2ttp");var al=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=(0,C.createHashMap)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(r=e,(0,C.isString)(r)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:sl(r)})}var i=(0,C.createHashMap)(),o=[];return(0,C.each)(n.regions,(function(e){var n=e.name;t&&(0,C.hasOwn)(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new(0,uo.default)(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?(0,Qs.default)(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===tl)return;e.push(new(0,qs.GeoJSONRegion)(tl,C.map(el,(function(t){return{type:"polygon",exterior:t}})),$s))}}(n,e),(0,C.each)(e,(function(t){var e=t.name;(function(t,e){if("china"===t){var n=il[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}})(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:ol[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function sl(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var ll=(0,C.createHashMap)(),ul={registerMap:function(t,e,n){if(e.svg){var r=new Js(t,e.svg);ll.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e,r=new al(t,i,n),ll.set(t,r)}},getGeoResource:function(t){return ll.get(t)},getMapForUser:function(t){var e=ll.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=ll.get(t);if(r)return r.load(e,n)}},cl=(ee=o("aRppD"),he=o("5xWWJ"),ue=o("by2b6"),nr=o("35g6g"),Kn=o("32n5A"),Bn=o("jnApb"),["rect","circle","line","ellipse","polygon","polyline","path"]),hl=C.createHashMap(cl),pl=C.createHashMap(cl.concat(["g"])),dl=C.createHashMap(cl.concat(["g"])),fl=(0,Bn.makeInner)();function gl(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function yl(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}function ml(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=gl(i),u=gl(o),c=gl(s),h=gl(a),p=t.data;if(p){var d=p.getItemVisual(n,"style"),f=p.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=(0,nr.createOrUpdatePatternFromDecal)(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,(0,ce.setDefaultStateProxy)(e)}function vl(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,p=void 0;(!s||o>=0)&&(p=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,he.setLabelStyle)(e,(0,he.getLabelStatesModels)(r),{labelFetcher:p,labelDataIndex:h,defaultText:n},d);var f=e.getTextContent();if(f&&(fl(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function xl(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):(0,ue.getECData)(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function _l(t,e,n,r,i){t.data||ae.setTooltipConfig({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function bl(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return(0,ce.toggleHoverEmphasis)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&(0,ce.enableComponentHighDownFeatures)(e,i,n),a}function Sl(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),C.each(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var wl=function(){function t(t){var e=new ie.default;this.uid=(0,ee.getUID)("ec_map_draw"),this._controller=new Fo(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ie.default),e.add(this._svgGroup=new ie.default)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,p=c.roam;!l.childAt(0)||i?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):oe.updateProps(u,p,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=C.createHashMap(),n=C.createHashMap(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function h(t){return{shape:{points:c(t)}}}r.removeAll(),C.each(t.geo.regions,(function(i){var c=i.name,p=e.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;p||(p=e.set(c,new ie.default),r.add(p),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var y=[],m=[];C.each(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=Sl(e,l)),C.each(e,(function(t){y.push(new vi.default(h(t)))}))}else{var n=t.points;l&&(n=Sl(n,l,!0)),C.each(n,(function(t){m.push(new mi.default(h(t)))}))}}));var v=u(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new U.default({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(r),ml(t,r,f,g),vl(t,r,c,g,o,f,v),n&&(yl(r),C.each(r.states,yl))}}x(y),x(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;xl(t,e,r,s,o,a),_l(t,e,r,s,o),bl(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=C.createHashMap(),i=!1;C.each(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=hl.get(s)&&l instanceof Kn.default&&ml(t,l,u,c),l instanceof Kn.default&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom||(null!=dl.get(s)&&vl(t,l,n,c,o,u,null),xl(t,l,n,c,o,u),_l(t,l,n,c,o),null!=pl.get(s)&&("self"===bl(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){(0,ce.setDefaultStateProxy)(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=ul.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=ul.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Go(o,t.dx,t.dy),n.dispatchAction(C.extend(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,jo(o,t.scale,t.originX,t.originY),n.dispatchAction(C.extend(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!Wo(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=fl(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}(),Ml=(xe=o("ansKp"),he=o("5xWWJ"),ce=o("6EdQu"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new wl(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new ws.default({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:ce.Z2_EMPHASIS_LIFT+1)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),p=r.getItemModel(n),d=p.getModel("label"),f=u.getItemGraphicEl(h);(0,he.setLabelStyle)(l,(0,he.getLabelStatesModels)(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){(0,ce.setStatesFlag)(l,t)}}i.add(l)}}}))},e.type="map",e}(xe.default)),Il=Ml,Tl=(Kt=o("2pli3"),C=o("2fV2j"),Jt=o("icZIP"),Ke=o("6ahuT"),ba=o("dcFkT"),ti=o("8TH6f"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t){for(var e=Ze(this,{coordDimensions:["value"],encodeDefaulter:C.curry(Ke.makeSeriesEncodeForNameBased,this)}),n=C.createHashMap(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}var s=ul.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return C.each(s.regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return(0,ba.createTooltipMarkup)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,ba.createTooltipMarkup)("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=(0,ti.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Jt.default)),Al=Tl;function Cl(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),C.each(e,(function(t,e){for(var n,r,i,o=(n=C.map(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),i={},C.each(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function Dl(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};C.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}C=o("2fV2j"),C=o("2fV2j");var kl=o("j11Si"),Ll=(Kt=o("2pli3"),C=o("2fV2j"),Bn=o("jnApb"),o("krEnk")),Ol=(ra=o("1C7zE"),C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),uo=o("e2ttp"),Bn=o("jnApb"),{geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}}),Pl=["lng","lat"],El=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=Pl,i.type="geo",i._nameCoordMap=C.createHashMap(),i.map=n;var o,a=r.projection,s=ul.load(n,r.nameMap,r.nameProperty),l=ul.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=Ol[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var h=0;h<u.length;h++){var p=u[h].getBoundingRect(a);(o=o||p.clone()).union(p)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:C.retrieve2(r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return(0,Kt.__extends)(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new(0,uo.default)(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(C.isString(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=Rl(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=Rl(e);return r===this?r.pointToData(n):null},e}(po);function Rl(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Bn.SINGLE_REFERRING).models[0]||{}).coordinateSystem:null}C.mixin(El,po);var Nl=El;function Vl(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);ji.min(r,r,h),ji.max(i,i,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var h,p,d,f=this.getBoundingRect(),g=t.get("layoutCenter"),y=t.get("layoutSize"),m=e.getWidth(),v=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(h=[de.parsePercent(g[0],m),de.parsePercent(g[1],v)],p=de.parsePercent(y,Math.min(m,v)),isNaN(h[0])||isNaN(h[1])||isNaN(p)||(_=!0)),_)d={},x>1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=Ai.getLayoutRect(b,{width:m,height:v})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}Ai=o("aZMsI"),de=o("iIXbb"),ji=o("lDRrb");var zl=new(function(){function t(){this.dimensions=Pl}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new Nl(o+i,o,C.extend({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=Vl,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),C.each(i,(function(t,i){var o=C.map(t,(function(t){return t.get("nameMap")})),a=new Nl(i,i,C.extend({nameMap:C.mergeAll(o)},r(t[0])));a.zoomLimit=C.retrieve.apply(null,C.map(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=Vl,a.resize(t[0],e),C.each(t,(function(t){t.coordinateSystem=a,function(t,e){C.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=C.createHashMap(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=ul.load(e,n,r);return C.each(s.regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}()),Bl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e,n){var r=ul.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Bn.defaultEmphasis(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=zl.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=C.reduce(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new(0,ra.default)(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),C.createHashMap()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new(0,ra.default)(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return C.isFunction(r)?(i.status=e,r(i)):C.isString(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Ll.default),Fl=Bl,Gl=(C=o("2fV2j"),Kt=o("2pli3"),o("jMGr2")),jl=(ue=o("by2b6"),o("16uHh")),Hl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new wl(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;(0,jl.findEventDispatcher)(t.target,(function(t){return null!=(e=(0,ue.getECData)(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=(0,ue.getECData)(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Gl.default),Wl=Hl;function Ul(t,e,n){ul.registerMap(t,e,n)}function Yl(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;(0,C.each)(o.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var a=[];(0,C.each)(r,(function(t,e){r[e]&&a.push(e)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",zl),t.registerComponentModel(Fl),t.registerComponentView(Wl),t.registerImpl("registerMap",Ul),t.registerImpl("getMap",(function(t){return ul.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=Ta(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&(0,C.each)(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}d=o("loiyq"),Kt=o("2pli3"),ie=o("4zWIO"),oe=o("4NPqX"),o("4x6s5"),oe=o("4NPqX"),se=o("4m2Ab"),mi=o("ln8jP"),ce=o("6EdQu"),xe=o("ansKp"),de=o("iIXbb"),C=o("2fV2j"),oe=o("4NPqX");var Xl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new ie.default,n._initialized=!1,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=Kl(t);if(o.diff(a).add((function(t){Jl(ql(o,i,t,l,s),o,t,u)})).update((function(e,n){var r=a.getItemGraphicEl(n),i=Zl(o,e,l,s);o.setItemGraphicEl(e,r),oe.updateProps(r,{shape:{points:i}},t,e),(0,oe.saveOldStyle)(r),Jl(r,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);i.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var r=t.model,i=t.getRect(),o=new se.default({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),oe.initProps(o,{shape:{width:i.width,height:i.height}},e,n),o}(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=Kl(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=ql(r,this._dataGroup,l,o,i);u.incremental=!0,Jl(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(xe.default);function Zl(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function ql(t,e,n,r,i){var o=Zl(t,n,r,i),a=new mi.default({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function Kl(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=(0,de.numericToNumber)(e),(0,C.eqNaN)(e)&&(e=0),{smooth:e}}function Jl(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");(0,ce.setStatesStylesFromModel)(t,i,"lineStyle"),(0,ce.toggleHoverEmphasis)(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var Ql=Xl,$l=(Kt=o("2pli3"),C=o("2fV2j"),Jt=o("icZIP"),Qt=o("hNaFr"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,Qt.default)(null,this,{useEncodeDefaulter:(0,C.bind)(tu,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Jt.default));function tu(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return(0,C.each)(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}var eu=$l,nu=["lineStyle","opacity"],ru={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(nu,!0);null!=o&&(i=o)}e.ensureUniqueItemVisual(n,"style").opacity=i}),t.start,t.end)}}}};function iu(t){!function(t){if(!t.parallel){var e=!1;C.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}(t),function(t){var e=Bn.normalizeToArray(t.parallelAxis);C.each(e,(function(e){if(C.isObject(e)){var n=e.parallelIndex||0,r=Bn.normalizeToArray(t.parallel)[n];r&&r.parallelAxisDefault&&C.merge(e,r.parallelAxisDefault,!1)}}))}(t)}C=o("2fV2j"),Bn=o("jnApb"),Kt=o("2pli3"),Gl=o("jMGr2"),C=o("2fV2j"),pe=o("lx0YT");var ou=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},(0,C.each)(au,(function(t,e){n.getZr().on(e,this._handlers[e]=(0,C.bind)(t,this))}),this)),(0,pe.createOrUpdate)(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){(0,pe.clear)(this,"_throttledDispatchExpand"),(0,C.each)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction((0,C.extend)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Gl.default),au={mousedown:function(t){su(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(su(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&su(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function su(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var lu=ou,uu=(Kt=o("2pli3"),C=o("2fV2j"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&C.merge(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){C.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=C.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);C.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}((Ll=o("krEnk")).default)),cu=uu,hu=(C=o("2fV2j"),ui=o("2QCok"),Ai=o("aZMsI"),o("9XcNn")),pu=(Kt=o("2pli3"),function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return(0,Kt.__extends)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}((Ix=o("jXYF6")).default));function du(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=gu(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=gu(s,[0,a]),i=o=gu(s,[i,o]),r=0}e[0]=gu(e[0],n),e[1]=gu(e[1],n);var l=fu(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=gu(e[r],h),u=fu(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=fu(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function fu(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function gu(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}ae=o("4x6s5"),de=o("iIXbb");var yu=C.each,mu=Math.min,vu=Math.max,xu=Math.floor,_u=Math.ceil,bu=de.round,Su=Math.PI;function wu(t,e){return mu(vu(t,e[0]),e[1])}function Mu(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Iu(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var Tu=function(){function t(t,e,n){this.type="parallel",this._axesMap=C.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;yu(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new pu(t,hu.createScaleByModel(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();yu(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),hu.niceScaleExtent(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Ai.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=wu(e.get("axisExpandWidth"),l),h=wu(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow");d?(t=wu(d[1]-d[0],l),d[1]=d[0]+t):(t=wu(c*(h-1),l),(d=[c*(e.get("axisExpandCenter")||xu(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[xu(bu(d[0]/c,1))+1,_u(bu(d[1]/c,1))-1],y=f/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:d,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),yu(n,(function(e,n){var o=(r.axisExpandable?Iu:Mu)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:Su/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=ui.create();ui.rotate(c,c,u),ui.translate(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];C.each(o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),p=0,d=o.length;p<d;p++)if("inactive"===s[p].getActiveState(h[p])){c="inactive";break}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return ae.applyTransform([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return C.clone(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?du(a,r,o,"all"):l="none";else{var p=r[1]-r[0];(r=[vu(0,o[1]*s/p-p/2)])[1]=mu(o[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();Bn=o("jnApb");var Au={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new Tu(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Bn.SINGLE_REFERRING).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},Cu=(Kt=o("2pli3"),{show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}}),Du=(C=o("2fV2j")).merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Cu),ku=C.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Cu),Lu={category:Du,value:ku,time:C.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ku),log:C.defaults({logBase:10},ku)},Ou=(Ai=o("aZMsI"),o("bC8qa")),Pu={value:1,category:1,time:1,log:1};function Eu(t,e,n,r){(0,C.each)(Pu,(function(i,o){var a=(0,C.merge)((0,C.merge)({},Lu[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return(0,Kt.__extends)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,Ai.fetchLayoutMode)(this),r=n?(0,Ai.getLayoutParams)(t):{},i=e.getTheme();(0,C.merge)(t,i.get(o+"Axis")),(0,C.merge)(t,this.getDefaultOption()),t.type=Ru(t),n&&(0,Ai.mergeLayoutParam)(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Ou.default.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",Ru)}function Ru(t){return t.type||(t.data?"category":"value")}C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),Ll=o("krEnk");var Nu=o("fpBSa"),Vu=(de=o("iIXbb"),o("aZZ0S")),zu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return(0,Kt.__extends)(e,t),e.prototype.getAreaSelectStyle=function(){return(0,Nu.default)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=C.clone(t);if(e)for(var n=e.length-1;n>=0;n--)de.asc(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(Ll.default);C.mixin(zu,Vu.AxisModelCommonMixin);var Bu=zu;Kt=o("2pli3"),C=o("2fV2j"),C=o("2fV2j"),ie=o("4zWIO"),o("4x6s5"),Oi=o("8UpdG"),ae=o("4x6s5"),nt=o("kjDai"),ue=o("by2b6"),he=o("5xWWJ"),ra=o("1C7zE"),de=o("iIXbb"),ti=o("8TH6f"),ui=o("2QCok"),ji=o("lDRrb"),hu=o("9XcNn");var Fu=o("mPTQR"),Gu=Math.PI,ju=function(){function t(t,e){this.group=new ie.default,this.opt=e,this.axisModel=t,(0,C.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ie.default({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Hu[t]},t.prototype.add=function(t){Hu[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=(0,de.remRadian)(e-t);return(0,de.isRadianAroundZero)(o)?(i=n>0?"top":"bottom",r="center"):(0,de.isRadianAroundZero)(o-Gu)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<Gu?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}(),Hu={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&((0,ji.applyTransform)(s,s,a),(0,ji.applyTransform)(l,l,a));var c=(0,C.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Oi.default({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});ae.subPixelOptimizeLine(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);(0,C.isString)(p)&&(p=[p,p]),((0,C.isString)(d)||(0,C.isNumber)(d))&&(d=[d,d]);var f=(0,ti.normalizeSymbolOffset)(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];(0,C.each)([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==p[r]&&null!=p[r]){var i=(0,ti.createSymbol)(p[r],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=Xu(i.getTicksCoords(),e.transform,l,(0,C.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}}(n,r,e,t),o=function(t,e,n,r){var i=n.axis;if((0,C.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]))&&!i.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=((0,C.retrieve)(r.labelRotate,o.get("rotate"))||0)*Gu/180,u=ju.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=ju.isLabelSilent(n),d=n.get("triggerEvent");return(0,C.each)(s,(function(l,f){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(l.tickValue):l.tickValue,y=l.formattedLabel,m=l.rawLabel,v=o;if(c&&c[g]){var x=c[g];(0,C.isObject)(x)&&x.textStyle&&(v=new(0,ra.default)(x.textStyle,o,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(g),S=v.getShallow("align",!0)||u.textAlign,w=(0,C.retrieve2)(v.getShallow("alignMinLabel",!0),S),M=(0,C.retrieve2)(v.getShallow("alignMaxLabel",!0),S),I=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,T=(0,C.retrieve2)(v.getShallow("verticalAlignMinLabel",!0),I),A=(0,C.retrieve2)(v.getShallow("verticalAlignMaxLabel",!0),I),D=new nt.default({x:b,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(l.level||0),style:(0,he.createTextStyle)(v,{text:y,align:0===f?w:f===s.length-1?M:S,verticalAlign:0===f?T:f===s.length-1?A:I,fill:(0,C.isFunction)(_)?_("category"===i.type?m:"value"===i.type?g+"":g,f):_})});if(D.anid="label_"+g,d){var k=ju.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=m,k.tickIndex=f,"category"===i.type&&(k.dataIndex=g),(0,ue.getECData)(D).eventData=k}e.add(D),D.updateTransform(),h.push(D),t.add(D),D.decomposeTransform()})),h}}(n,r,e,t);if(function(t,e,n){if(!(0,hu.shouldShowAllLabels)(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===r?(Wu(o),Wu(u)):Uu(o,a)&&(r?(Wu(a),Wu(c)):(Wu(o),Wu(u))),!1===i?(Wu(s),Wu(h)):Uu(l,s)&&(i?(Wu(l),Wu(p)):(Wu(s),Wu(h)))}}(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=(0,C.defaults)(s.getLineStyle(),(0,C.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=Xu(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=(0,Fu.prepareLayoutList)((0,C.map)(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));(0,Fu.hideOverlap)(a)}},axisName:function(t,e,n,r){var i=(0,C.retrieve)(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,d=["start"===s?h[0]-p*c:"end"===s?h[1]+p*c:(h[0]+h[1])/2,Yu(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*Gu/180),Yu(s)?o=ju.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,r){var i,o,a=(0,de.remRadian)(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return(0,de.isRadianAroundZero)(a-Gu/2)?(o=l?"bottom":"top",i="center"):(0,de.isRadianAroundZero)(a-1.5*Gu)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*Gu&&a>Gu/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,v=(0,C.retrieve)(t.nameTruncateMaxWidth,y.maxWidth,a),x=new nt.default({x:d[0],y:d[1],rotation:o.rotation,silent:ju.isLabelSilent(e),style:(0,he.createTextStyle)(u,{text:i,font:g,overflow:"truncate",width:v,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(ae.setTooltipConfig({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var _=ju.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,(0,ue.getECData)(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Wu(t){t&&(t.ignore=!0)}function Uu(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=ui.identity([]);return ui.rotate(i,i,-t.rotation),n.applyTransform(ui.mul([],i,t.getLocalTransform())),r.applyTransform(ui.mul([],i,e.getLocalTransform())),n.intersect(r)}}function Yu(t){return"middle"===t||"center"===t}function Xu(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&&((0,ji.applyTransform)(a,a,e),(0,ji.applyTransform)(s,s,e));var c=new Oi.default({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});ae.subPixelOptimizeLine(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}var Zu=ju;Kt=o("2pli3"),C=o("2fV2j"),Oo=o("bMEwb"),o("4x6s5"),se=o("4m2Ab"),ae=o("4x6s5"),mi=o("ln8jP"),vi=o("4w8lf"),ie=o("4zWIO"),Un=o("iWPaD");var qu=!0,Ku=Math.min,Ju=Math.max,Qu=Math.pow,$u="globalPan",tc={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ec={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},nc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},rc=0,ic=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ie.default,n._uid="brushController_"+rc++,(0,C.each)(Lc,(function(t,e){this._handlers[e]=(0,C.bind)(t,this)}),n),n}return(0,Kt.__extends)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){No(t)[e]=n}(e,$u,this._uid),(0,C.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=(0,C.merge)((0,C.clone)(nc),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var r=No(t);r[e]===n&&(r[e]=null)}(t,$u,this._uid),(0,C.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};(0,C.each)(t,(function(t){e[t.panelId]=(0,C.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=(0,C.map)(t,(function(t){return(0,C.merge)((0,C.clone)(nc),t,!0)}));var e=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new(0,Un.default)(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==i&&r.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===i)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):ac(r,oc(r,s));uc(r,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),dc(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Oo.default);function oc(t,e){var n=Pc[e.brushType].createCover(t,e);return n.__brushOption=e,lc(n,e),t.group.add(n),n}function ac(t,e){var n=cc(e);return n.endCreating&&(n.endCreating(t,e),lc(e,e.__brushOption)),e}function sc(t,e){var n=e.__brushOption;cc(e).updateCoverShape(t,e,n.range,n)}function lc(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function uc(t,e){cc(e).updateCommon(t,e),sc(t,e)}function cc(t){return Pc[t.__brushOption.brushType]}function hc(t,e,n){var r,i=t._panels;if(!i)return qu;var o=t._transform;return(0,C.each)(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function pc(t,e){var n=t._panels;if(!n)return qu;var r=e.__brushOption.panelId;return null!=r?n[r]:qu}function dc(t){var e=t._covers,n=e.length;return(0,C.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function fc(t,e){var n=(0,C.map)(t._covers,(function(t){var e=t.__brushOption,n=(0,C.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function gc(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function yc(t,e,n,r){var i=new ie.default;return i.add(new se.default({name:"main",style:_c(n),silent:!0,draggable:!0,cursor:"move",drift:(0,C.curry)(wc,t,e,i,["n","s","w","e"]),ondragend:(0,C.curry)(fc,e,{isEnd:!0})})),(0,C.each)(r,(function(n){i.add(new se.default({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,C.curry)(wc,t,e,i,n),ondragend:(0,C.curry)(fc,e,{isEnd:!0})}))})),i}function mc(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=Ju(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],p=c-o+i/2,d=h-o+i/2,f=c-a,g=h-s,y=f+i,m=g+i;xc(t,e,"main",a,s,f,g),r.transformable&&(xc(t,e,"w",l,u,o,m),xc(t,e,"e",p,u,o,m),xc(t,e,"n",l,u,y,o),xc(t,e,"s",l,d,y,o),xc(t,e,"nw",l,u,o,o),xc(t,e,"ne",p,u,o,o),xc(t,e,"sw",l,d,o,o),xc(t,e,"se",p,d,o,o))}function vc(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(_c(n)),i.attr({silent:!r,cursor:r?"move":"default"}),(0,C.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?Sc(t,n[0]):function(t,e){var n=[Sc(t,e[0]),Sc(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?ec[o]+"-resize":null})}))}function xc(t,e,n,r,i,o,a){var s,l,u,c=e.childOfName(n);c&&c.setShape((s=Tc(t,e,[[r,i],[r+o,i+a]]),{x:l=Ku(s[0][0],s[1][0]),y:u=Ku(s[0][1],s[1][1]),width:Ju(s[0][0],s[1][0])-l,height:Ju(s[0][1],s[1][1])-u}))}function _c(t){return(0,C.defaults)({strokeNoScale:!0},t.brushStyle)}function bc(t,e,n,r){var i=[Ku(t,n),Ku(e,r)],o=[Ju(t,n),Ju(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function Sc(t,e){var n=ae.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return ae.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function wc(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=Ic(e,i,o);(0,C.each)(r,(function(t){var e=tc[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(bc(s[0][0],s[1][0],s[0][1],s[1][1])),uc(e,n),fc(e,{isEnd:!1})}function Mc(t,e,n,r){var i=e.__brushOption.range,o=Ic(t,n,r);(0,C.each)(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),uc(t,e),fc(t,{isEnd:!1})}function Ic(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function Tc(t,e,n){var r=pc(t,e);return r&&r!==qu?r.clipPath(n,t._transform):(0,C.clone)(n)}function Ac(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Cc(t,e,n){return t.childOfName("main").contain(e,n)}function Dc(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return Qu(i*i+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&dc(t);var l=(0,C.clone)(s);l.brushType=kc(l.brushType,a),l.panelId=a===qu?null:a.panelId,o=t._creatingCover=oc(t,l),t._covers.push(o)}if(o){var u=Pc[kc(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(Tc(t,o,t._track)),r&&(ac(t,o),u.updateCommon(t,o)),sc(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&hc(t,e,n)&&dc(t)&&(i={isEnd:r,removeOnClick:!0});return i}function kc(t,e){return"auto"===t?e.defaultBrushType:t}var Lc={mousedown:function(t){if(this._dragging)Oc(this,t);else if(!t.target||!t.target.draggable){Ac(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=hc(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=hc(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===qu||s.panelId===o.panelId)&&Pc[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){Ac(t);var i=Dc(this,t,r,!1);i&&fc(this,i)}},mouseup:function(t){Oc(this,t)}};function Oc(t,e){if(t._dragging){Ac(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=Dc(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&fc(t,o)}}var Pc={lineX:Ec(0),lineY:Ec(1),rect:{createCover:function(t,e){function n(t){return t}return yc({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=gc(t);return bc(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){mc(t,e,n,r)},updateCommon:vc,contain:Cc},polygon:{createCover:function(t,e){var n=new ie.default;return n.add(new mi.default({name:"main",style:_c(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new vi.default({name:"main",draggable:!0,drift:(0,C.curry)(Mc,t,e),ondragend:(0,C.curry)(fc,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:Tc(t,e,n)})},updateCommon:vc,contain:Cc}};function Ec(t){return{createCover:function(e,n){return yc({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=gc(e);return[Ku(n[0][t],n[1][t]),Ju(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=pc(e,n);if(a!==qu&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),mc(e,n,l,i)},updateCommon:vc,contain:Cc}}var Rc=ic;function Nc(t){return t=Bc(t),function(e){return ae.clipPointsByRect(e,t)}}function Vc(t,e){return t=Bc(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function zc(t,e,n){var r=Bc(t);return function(t,i){return r.contain(i[0],i[1])&&!Wo(t,e,n)}}function Bc(t){return uo.default.create(t)}uo=o("e2ttp"),ae=o("4x6s5"),uo=o("e2ttp"),ie=o("4zWIO"),ae=o("4x6s5"),Gl=o("jMGr2");var Fc=["axisLine","axisTickLabel","axisName"],Gc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new Rc(n.getZr())).on("brush",C.bind(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new ie.default,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=C.extend({strokeContainThreshold:l},c),p=new Zu(t,h);C.each(Fc,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,s,t,o,l,n),ae.groupTransition(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=uo.default.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Nc(u),isTargetByCursor:zc(u,o,r),getLinearBrushOtherExtent:Vc(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return C.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=C.map(e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Gl.default),jc=Gc,Hc={type:"axisAreaSelect",event:"axisAreaSelected"};var Wc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Uc(t){t.registerComponentView(lu),t.registerComponentModel(cu),t.registerCoordinateSystem("parallel",Au),t.registerPreprocessor(iu),t.registerComponentModel(Bu),t.registerComponentView(jc),Eu(t,"parallel",Bu,Wc),function(t){t.registerAction(Hc,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}Kt=o("2pli3"),C=o("2fV2j"),ae=o("4x6s5"),ce=o("6EdQu"),ti=o("8TH6f"),de=o("iIXbb"),xe=o("ansKp"),he=o("5xWWJ"),m=o("b1qY0"),ue=o("by2b6");var Yc=["itemStyle","borderWidth"],Xc=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Zc=new ae.Circle,qc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:Xc[+s],categoryDim:Xc[1-+s]};i.diff(o).add((function(t){if(i.hasValue(t)){var e=rh(i,t),n=Kc(i,t,e,u),o=ah(i,u,n);i.setItemGraphicEl(t,o),r.add(o),hh(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=rh(i,t),s=Kc(i,t,a,u),l=lh(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;ae.updateProps(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?$c(t,e,n,!0):th(t,e,n,!0),eh(t,n,!0),nh(t,e,n,!0)}(n,u,s):n=ah(i,u,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),hh(n,u,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&sh(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?ye(t.coordinateSystem,!1,t):null;return c?r.setClipPath(c):r.removeClipPath(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){sh(r,(0,ue.getECData)(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(xe.default);function Kc(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(C.isArray(s)){var h=[Jc(l,s[0])-u,Jc(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?Jc(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]),i.pxSign=o>0?1:-1}(n,o,i,r,h),function(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,"symbolSize");(c=C.isArray(f)?f.slice():null==f?["100%","100%"]:[f,f])[p.index]=(0,de.parsePercent)(c[p.index],d),c[h.index]=(0,de.parsePercent)(c[h.index],r?d:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,i,o,0,h.boundingLength,h.pxSign,u,r,h),function(t,e,n,r,i){var o=t.get(Yc)||0;o&&(Zc.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Zc.updateTransform(),o/=Zc.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}(n,h.symbolScale,l,r,h);var p=h.symbolSize,d=(0,ti.normalizeSymbolOffset)(n.get("symbolOffset"),p);return function(t,e,n,r,i,o,a,s,l,u,c,h){var p=c.categoryDim,d=c.valueDim,f=h.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(r){var m=Math.abs(l),v=C.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;v.lastIndexOf("!")===v.length-1&&(x=!0,v=v.slice(0,v.length-1));var _=(0,de.parsePercent)(v,e[d.index]),b=Math.max(g+2*_,0),S=x?0:2*_,w=(0,de.isNumeric)(r),M=w?r:ph((m+S)/b);b=g+2*(_=(m-M*g)/2/(x?M:Math.max(M-1,1))),S=x?0:2*_,w||"fixed"===r||(M=u?ph((Math.abs(u)+S)/b):0),y=M*b-S,h.repeatTimes=M,h.symbolMargin=_}var I=f*(y/2),T=h.pathPosition=[];T[p.index]=n[p.wh]/2,T[d.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var A=h.bundlePosition=[];A[p.index]=n[p.xy],A[d.index]=n[d.xy];var D=h.barRectShape=C.extend({},n);D[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(T[d.index]+I)),D[p.wh]=n[p.wh];var k=h.clipShape={};k[p.xy]=-n[p.xy],k[p.wh]=c.ecSize[p.wh],k[d.xy]=0,k[d.wh]=n[d.wh]}(n,p,i,o,0,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function Jc(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Qc(t){var e=t.symbolPatternSize,n=(0,ti.createSymbol)(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function $c(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(uh(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?ch(t,null,f(c),n,r):ch(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var p=Qc(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,i.add(p);var d=f(c);ch(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,r)}function f(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function th(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?ch(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=Qc(n),i.add(o),ch(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function eh(t,e,n){var r=C.extend({},e.barRectShape),i=t.__pictorialBarRect;i?ch(i,null,{shape:r},e,n):((i=t.__pictorialBarRect=new ae.Rect({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function nh(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=C.extend({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)ae.updateProps(i,{shape:o},s,l);else{o[a.wh]=0,i=new ae.Rect({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],ae[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function rh(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=ih,n.isAnimationEnabled=oh,n}function ih(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function oh(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ah(t,e,n,r){var i=new ae.Group,o=new ae.Group;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?$c(i,e,n):th(i,0,n),eh(i,n,r),nh(i,e,n,r),i.__pictorialShapeStr=lh(t,n),i.__pictorialSymbolMeta=n,i}function sh(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];uh(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),C.each(o,(function(t){ae.removeElement(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function lh(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function uh(t,e,n){C.each(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function ch(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&ae[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function hh(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),p=o.get("scale");uh(t,(function(t){if(t instanceof m.default){var e=t.style;t.useStyle(C.extend({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,p&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,(0,he.setLabelStyle)(f,(0,he.getLabelStatesModels)(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Se(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),(0,ce.toggleHoverEmphasis)(t,c,h,o.get("disabled"))}function ph(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var dh=qc,fh=(Kt=o("2pli3"),ee=o("aRppD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=(0,ee.inheritDefaultOption)(te.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(te)),gh=fh;Yt=o("7Nj47"),C=o("2fV2j"),kl=o("j11Si"),de=o("iIXbb"),Ai=o("aZMsI"),C=o("2fV2j"),W=o("btLRI");var yh=2*Math.PI,mh=Math.PI/180;function vh(t,e){return Ai.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function xh(t,e){var n=vh(t,e),r=t.get("center"),i=t.get("radius");C.isArray(i)||(i=[0,i]);var o,a,s=(0,de.parsePercent)(n.width,e.getWidth()),l=(0,de.parsePercent)(n.height,e.getHeight()),u=Math.min(s,l),c=(0,de.parsePercent)(i[0],u/2),h=(0,de.parsePercent)(i[1],u/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(r);o=d[0]||0,a=d[1]||0}else C.isArray(r)||(r=[r,r]),o=(0,de.parsePercent)(r[0],s)+n.x,a=(0,de.parsePercent)(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function _h(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=vh(t,n),o=xh(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*mh,h=t.get("endAngle"),p=t.get("padAngle")*mh;h="auto"===h?c-yh:-h*mh;var d=t.get("minAngle")*mh+p,f=0;e.each(r,(function(t){!isNaN(t)&&f++}));var g=e.getSum(r),y=Math.PI/(g||f)*2,m=t.get("clockwise"),v=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(r);_[0]=0;var b=m?1:-1,S=[c,h],w=b*p/2;(0,W.normalizeArcAngles)(S,!m),c=S[0],h=S[1];var M=Math.abs(h-c),I=M,T=0,A=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:v?NaN:l});else{(r="area"!==v?0===g&&x?y:t*y:M/f)<d?(r=d,I-=d):T+=t;var i=A+b*r,o=0,c=0;p>r?c=o=A+b*r/2:(o=A+w,c=i-w),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:v?(0,de.linearMap)(t,_,[u,l]):l}),A=i}})),I<yh&&f)if(I<=.001){var C=M/f;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=C;var i=0,o=0;C<p?o=i=c+b*(n+.5)*C:(i=c+b*n*C+w,o=c+b*(n+1)*C-w),r.startAngle=i,r.endAngle=o}}))}else y=I/T,A=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===d?d:t*y,o=0,a=0;i<p?a=o=A+b*i/2:(o=A+w,a=A+b*i-w),r.startAngle=o,r.endAngle=a,A+=b*i}}))}))}C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),oe=o("4NPqX"),o("4x6s5"),oe=o("4NPqX"),mi=o("ln8jP"),le=o("4rNRw"),nt=o("kjDai"),ce=o("6EdQu"),xe=o("ansKp"),de=o("iIXbb"),yi=o("7k07j"),C=o("2fV2j"),xi=o("iUFRK"),Fu=o("mPTQR");var bh=Math.PI/180;function Sh(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 p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}(0,Fu.shiftLayoutOnY)(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,p=r+l.len,f=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=f,u.maxY=c}u.list.push(l)}d(o),d(a)}(t)}function d(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,p=Math.sqrt((1-Math.abs(u*u/a))*h),d=e+(p+l.len2)*i,f=d-l.label.x;wh(l,l.targetTextWidth-f*i,!0),l.label.x=d}}}function wh(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var y=(r.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function Mh(t){return"center"===t.position}xi=o("iUFRK"),he=o("5xWWJ"),oe=o("4NPqX");var Ih=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new nt.default;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return(0,Kt.__extends)(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=(0,C.extend)(Te(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?(oe.initProps(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,oe.initProps(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),oe.initProps(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,oe.updateProps(i,{shape:{endAngle:l.endAngle}},o,e))}else(0,oe.saveOldStyle)(i),oe.updateProps(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),(0,ce.setStatesStylesFromModel)(i,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,f=Math.sin(h)*p,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=(0,C.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Te(s.getModel("itemStyle"),l)),(0,C.extend)(i.ensureState("select"),{x:d,y:f,shape:Te(a.getModel(["select","itemStyle"]),l)}),(0,C.extend)(i.ensureState("blur"),{shape:Te(a.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),m=i.getTextContent();y&&(0,C.extend)(y.ensureState("select"),{x:d,y:f}),(0,C.extend)(m.ensureState("select"),{x:d,y:f}),(0,ce.toggleHoverEmphasis)(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;(0,he.setLabelStyle)(r,(0,he.getLabelStatesModels)(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new mi.default,this.setTextGuideLine(h)),(0,xi.setLabelLineStyle)(this,(0,xi.getLabelLineStatesModels)(i),{stroke:s,opacity:(0,C.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},e}(le.default),Th=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new le.default({shape:xh(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new Ih(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);oe.removeElementWithFadeOut(n,t,e)})).execute(),function(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*bh,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(t),y=g.getModel("label"),m=y.get("position")||g.get(["emphasis","label","position"]),v=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=(0,de.parsePercent)(y.get("edgeDistance"),u),b=y.get("bleedMargin"),S=g.getModel("labelLine"),w=S.get("length");w=(0,de.parsePercent)(w,u);var M=S.get("length2");if(M=(0,de.parsePercent)(M,u),Math.abs(h.endAngle-h.startAngle)<a)return(0,C.each)(p.states,d),p.ignore=!0,void(f&&((0,C.each)(f.states,d),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(p)){var I,T,A,D,k=(h.startAngle+h.endAngle)/2,L=Math.cos(k),O=Math.sin(k);e=h.cx,n=h.cy;var P="inside"===m||"inner"===m;if("center"===m)I=h.cx,T=h.cy,D="center";else{var E=(P?(h.r+h.r0)/2*L:h.r*L)+e,R=(P?(h.r+h.r0)/2*O:h.r*O)+n;if(I=E+3*L,T=R+3*O,!P){var N=E+L*(w+l-h.r),V=R+O*(w+l-h.r),z=N+(L<0?-1:1)*M;I="edge"===x?L<0?c+_:c+u-_:z+(L<0?-v:v),T=V,A=[[E,R],[N,V],[z,V]]}D=P?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var B=Math.PI,F=0,G=y.get("rotate");if((0,C.isNumber)(G))F=G*(B/180);else if("center"===m)F=0;else if("radial"===G||!0===G)F=L<0?-k+B:-k;else if("tangential"===G&&"outside"!==m&&"outer"!==m){var j=Math.atan2(L,O);j<0&&(j=2*B+j),O>0&&(j=B+j),F=j-B}if(o=!!F,p.x=I,p.y=T,p.rotation=F,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:D});var H=p.states.select;H&&(H.x+=p.x,H.y+=p.y)}else{var W=p.getBoundingRect().clone();W.applyTransform(p.getComputedTransform());var U=(p.style.margin||0)+2.1;W.y-=U/2,W.height+=U,i.push({label:p,labelLine:f,position:m,len:w,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new(0,yi.default)(L,O),linePoints:A,textAlign:D,labelDistance:v,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}})),!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,p=0;p<t.length;p++){var d=t[p].label;Mh(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(p=0;p<t.length;p++)if(!Mh(y=t[p])&&y.linePoints){if(null!=y.labelStyleWidth)continue;d=y.label;var f,g=y.linePoints;f="edge"===y.labelAlignTo?d.x<e?g[2][0]-y.labelDistance-a-y.edgeDistance:a+i-y.edgeDistance-g[2][0]-y.labelDistance:"labelLine"===y.labelAlignTo?d.x<e?c-a-y.bleedMargin:a+i-h-y.bleedMargin:d.x<e?d.x-a-y.bleedMargin:a+i-d.x-y.bleedMargin,y.targetTextWidth=f,wh(y,f)}for(Sh(u,e,n,r,1,0,o,0,s,h),Sh(l,e,n,r,-1,0,o,0,s,c),p=0;p<t.length;p++){var y;if(!Mh(y=t[p])&&y.linePoints){d=y.label,g=y.linePoints;var m="edge"===y.labelAlignTo,v=d.style.padding,x=v?v[1]+v[3]:0,_=d.style.backgroundColor?0:x,b=y.rect.width+_,S=g[1][0]-g[2][0];m?d.x<e?g[2][0]=a+y.edgeDistance+b+y.labelDistance:g[2][0]=a+i-y.edgeDistance-b-y.labelDistance:(d.x<e?g[2][0]=d.x+y.labelDistance:g[2][0]=d.x-y.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=d.y}}}(i,e,n,l,u,p,c,h);for(var f=0;f<i.length;f++){var g=i[f],y=g.label,m=g.labelLine,v=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),v&&((0,C.each)(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var _=g.linePoints;v||!_?((0,C.each)(m.states,d),m.ignore=!0):((0,xi.limitTurnAngle)(_,g.minTurnAngle),(0,xi.limitSurfaceAngle)(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new(0,yi.default)(_[0][0],_[0][1])})}}}(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="pie",e}(xe.default),Ah=Th,Ch=(Kt=o("2pli3"),C=o("2fV2j"),Bn=o("jnApb"),de=o("iIXbb"),Ke=o("6ahuT"),Jt=o("icZIP"),Bn.makeInner()),Dh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mi(C.bind(this.getData,this),C.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ze(this,{coordDimensions:["value"],encodeDefaulter:C.curry(Ke.makeSeriesEncodeForNameBased,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=Ch(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=(0,de.getPercentSeats)(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){Bn.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Jt.default),kh=Dh;function Lh(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();C.each(i,(function(t,o){e.each(e.mapDimension(i[o].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=Oh(i)?i:Ph(r)}))})),e.each((function(t){var i=C.find(n[t],(function(t){return Oh(t)}))||Ph(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function Oh(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ph(t){return[t.cx,t.cy]}function Eh(t){var e=t.polar;if(e){C.isArray(e)||(e=[e]);var n=[];C.each(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],C.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}C.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}C=o("2fV2j"),d=o("loiyq"),C=o("2fV2j"),C=o("2fV2j"),Kt=o("2pli3"),ae=o("4x6s5"),ce=o("6EdQu"),C=o("2fV2j"),ti=o("8TH6f"),xe=o("ansKp"),he=o("5xWWJ"),m=o("b1qY0"),oe=o("4NPqX");var Rh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=ti.normalizeSymbolSize(t.getItemVisual(e,"symbolSize")),i=ti.createSymbol(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function l(e,n,r,i,o,a){r.removeAll();for(var l=0;l<n.length-1;l++){var u=s(i,o);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),ae[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,o)):u.setPosition(n[l]),r.add(u))}}function u(t){return C.map(t,(function(t){return[r.cx,r.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var r=new ae.Polygon,i=new ae.Polyline,a={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),ae.initProps(r,a,t,e),ae.initProps(i,a,t,e);var s=new ae.Group,c=new ae.Group;s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),u=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(l(i.shape.points,c.shape.points,u,o,e,!1),(0,oe.saveOldStyle)(s),(0,oe.saveOldStyle)(i),ae.updateProps(i,c,t),ae.updateProps(s,c,t),o.setItemGraphicEl(e,r))})).remove((function(t){i.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(C.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),(0,ce.setStatesStylesFromModel)(r,n,"lineStyle"),(0,ce.setStatesStylesFromModel)(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,C.each(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h})),a.useStyle(C.defaults(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),d=p.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof m.default){var r=t.style;t.useStyle(C.extend({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=C.clone(d);var i=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),(0,he.setLabelStyle)(t,(0,he.getLabelStatesModels)(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})})),(0,ce.toggleHoverEmphasis)(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(xe.default),Nh=Rh,Vh=(Kt=o("2pli3"),Jt=o("icZIP"),C=o("2fV2j"),ba=o("dcFkT"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mi(C.bind(this.getData,this),C.bind(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Ze(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=(0,ba.retrieveVisualColorForTooltipMarker)(this,t);return(0,ba.createTooltipMarkup)("section",{header:a,sortBlocks:!0,blocks:C.map(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return(0,ba.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(C.map(n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Jt.default)),zh=Vh,Bh=(Kt=o("2pli3"),C=o("2fV2j"),ra=o("1C7zE"),Vu=o("aZZ0S"),Ll=o("krEnk"),Lu.value);function Fh(t,e){return C.defaults({show:e},t)}var Gh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=C.map(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=a;null!=h.color&&(p=C.defaults({color:h.color},a));var d=C.merge(C.clone(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(C.isString(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else C.isFunction(l)&&(d.name=l(d.name,d));var g=new(0,ra.default)(d,null,this.ecModel);return C.mixin(g,Vu.AxisModelCommonMixin.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:C.merge({lineStyle:{color:"#bbb"}},Bh.axisLine),axisLabel:Fh(Bh.axisLabel,!1),axisTick:Fh(Bh.axisTick,!1),splitLine:Fh(Bh.splitLine,!0),splitArea:Fh(Bh.splitArea,!0),indicator:[]},e}(Ll.default),jh=Gh;Kt=o("2pli3"),C=o("2fV2j"),o("4x6s5"),ws=o("18USZ");var Hh=o("9AYeo"),Wh=(mi=o("ln8jP"),vi=o("4w8lf"),ae=o("4x6s5"),Gl=o("jMGr2"),["axisLine","axisTickLabel","axisName"]),Uh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=C.map(n,(function(t){var n=t.model.get("showName")?t.name:"";return new Zu(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));C.each(r,(function(t){C.each(Wh,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),p=C.isArray(c)?c:[c],d=C.isArray(h)?h:[h],f=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),m=e.cx,v=e.cy,x=0;x<y.length;x++)l&&f[A(f,p,x)].push(new ws.default({shape:{cx:m,cy:v,r:y[x].coord}})),u&&x<y.length-1&&g[A(g,d,x)].push(new Hh.default({shape:{cx:m,cy:v,r0:y[x].coord,r:y[x+1].coord}}));else{var _,b=C.map(n,(function(t,n){var r=t.getTicksCoords();return _=null==_?r.length-1:Math.min(r.length-1,_),C.map(r,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=_;x++){for(var w=[],M=0;M<n.length;M++)w.push(b[M][x]);w[0]&&w.push(w[0].slice()),l&&f[A(f,p,x)].push(new mi.default({shape:{points:w}})),u&&S&&g[A(g,d,x-1)].push(new vi.default({shape:{points:w.concat(S)}})),S=w.slice().reverse()}}var I=a.getLineStyle(),T=s.getAreaStyle();C.each(g,(function(t,e){this.group.add(ae.mergePath(t,{style:C.defaults({stroke:"none",fill:d[e%d.length]},T),silent:!0}))}),this),C.each(f,(function(t,e){this.group.add(ae.mergePath(t,{style:C.defaults({fill:"none",stroke:p[e%p.length]},I),silent:!0}))}),this)}function A(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(Gl.default),Yh=Uh,Xh=(Kt=o("2pli3"),function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return(0,Kt.__extends)(e,t),e}((Ix=o("jXYF6")).default)),Zh=o("aIyi7"),qh=(de=o("iIXbb"),C=o("2fV2j"),de=o("iIXbb"),Zh=o("aIyi7"),hu=o("9XcNn"),o("1zbr5")),Kh=Math.log;function Jh(t,e,n){var r=Zh.default.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=(0,hu.getScaleExtent)(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=Kh(t.base);u=[Kh(u[0])/p,Kh(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=r.getInterval.call(t),g=u[0],y=u[1];if(c&&h)f=(y-g)/a;else if(c)for(y=u[0]+f*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=(0,qh.increaseInterval)(f),y=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=(0,qh.increaseInterval)(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=(0,qh.increaseInterval)(f));var m=f*a;y=Math.ceil(u[1]/f)*f,(g=(0,de.round)(y-m))<0&&u[0]>=0?(g=0,y=(0,de.round)(m)):y>0&&u[1]<=0&&(y=0,g=-(0,de.round)(m))}var v=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+f*v,y+f*x),r.setInterval.call(t,f),(v||x)&&r.setNiceExtent.call(t,g+f,y-f)}var Qh=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,C.map)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new Xh(n,new(0,Zh.default));return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=de.parsePercent(n[0],r),this.cy=de.parsePercent(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");((0,C.isString)(a)||(0,C.isNumber)(a))&&(a=[0,a]),this.r0=de.parsePercent(a[0],o),this.r=de.parsePercent(a[1],o),(0,C.each)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;(0,C.each)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();(0,C.each)(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new(0,Zh.default);o.setExtent(0,i),o.setInterval(1),(0,C.each)(n,(function(t,e){Jh(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}();function $h(t){t.registerCoordinateSystem("radar",Qh),t.registerComponentModel(jh),t.registerComponentView(Yh),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}Kt=o("2pli3"),oe=o("4NPqX"),za=o("kwypm"),o("4x6s5"),y=o("lv1gH"),se=o("4m2Ab"),ce=o("6EdQu"),xe=o("ansKp"),he=o("5xWWJ"),ue=o("by2b6"),C=o("2fV2j");var tp=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},ep=function(t){function e(e){return t.call(this,e)||this}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new tp},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){(0,ce.enterEmphasis)(this)},e.prototype.downplay=function(){(0,ce.leaveEmphasis)(this)},e}(y.default),np=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new ep,r=(0,ue.getECData)(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,p,d,f,g,y,m=e.getModel(),v=m.getModel("lineStyle"),x=v.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),S=b.get("localX"),w=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),A=I.get("localY"),D=e.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(i=(null!=S?S*s:_.x)+D.sy,a=(null!=w?w*l:_.y)+_.dy,u=(null!=T?T*s:M.x)+D.ty,d=i,f=a*(1-x)+(p=null!=A?A*l:M.y)*x,g=u,y=a*x+p*(1-x)):(i=(null!=S?S*s:_.x)+_.dx,a=(null!=w?w*l:_.y)+D.sy,d=i*(1-x)+(u=null!=T?T*s:M.x)*x,f=a,g=i*x+u*(1-x),y=p=(null!=A?A*l:M.y)+D.ty),n.setShape({x1:i,y1:a,x2:u,y2:p,cpx1:d,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(v.getItemStyle()),rp(n.style,h,e);var k=""+m.get("value"),L=(0,he.getLabelStatesModels)(m,"edgeLabel");(0,he.setLabelStyle)(n,L,{labelFetcher:{getFormattedLabel:function(e,n,r,i,o,a){return t.getFormattedLabel(e,n,"edge",i,(0,C.retrieve3)(o,L.normal&&L.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var O=m.getModel("emphasis");(0,ce.setStatesStylesFromModel)(n,m,"lineStyle",(function(t){var n=t.getItemStyle();return rp(n,h,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=O.get("focus");(0,ce.toggleHoverEmphasis)(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,O.get("blurScope"),O.get("disabled"))})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new se.default({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});(0,he.setLabelStyle)(h,(0,he.getLabelStatesModels)(r),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),(0,ce.setStatesStylesFromModel)(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),(0,ue.getECData)(h).dataType="node";var p=c.get("focus");(0,ce.toggleHoverEmphasis)(h,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){u.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var r=new se.default({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return oe.initProps(r,{shape:{width:t.width+20}},e,(function(){o.removeClipPath()})),r}(o.getBoundingRect(),t)),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(xe.default);function rp(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");(0,C.isString)(r)&&(0,C.isString)(i)&&(t.fill=new za.default(0,0,+("horizontal"===e),+("vertical"===e),[{color:r,offset:0},{color:i,offset:1}]))}}var ip=np,op=(Kt=o("2pli3"),Jt=o("icZIP"),ra=o("1C7zE"),ba=o("dcFkT"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new(0,ra.default)(i[a],this,e));if(r&&n)return _a(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return(0,ba.createTooltipMarkup)("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,n).data.name;return(0,ba.createTooltipMarkup)("nameValue",{name:null!=u?u+"":null,value:l,noValue:r(l)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=i}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Jt.default)),ap=op;function sp(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=function(t,e){return Ai.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){C.each(t,(function(t){var e=mp(t.outEdges,yp),n=mp(t.inEdges,yp),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}(l),function(t,e,n,r,i,o,a,s,l){(function(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);for(var d=-1;u.length;){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=y.depth&&y.depth>=0;m&&y.depth>d&&(d=y.depth),g.setLayout({depth:m?y.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var x=g.outEdges[v];s[e.indexOf(x)]=0;var _=x.node2;0==--l[t.indexOf(_)]&&c.indexOf(_)<0&&c.push(_)}}++h,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var b=d>h-1?d:h-1;a&&"left"!==a&&function(t,e,n,r){if("right"===e){for(var i=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}C.each(t,(function(t){lp(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){C.each(t,(function(t){lp(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,a,0,b),function(t,e,n){C.each(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,"vertical"===o?(i-n)/b:(r-n)/b,o)})(t,e,n,i,o,s,l),function(t,e,n,r,i,o,a){var s=function(t,e){var n=[],r="vertical"===e?"y":"x",i=(0,Bn.groupData)(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),C.each(i.keys,(function(t){n.push(i.buckets.get(t))})),n}(t,a);(function(t,e,n,r,i,o){var a=1/0;C.each(t,(function(t){var e=t.length,s=0;C.each(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)})),C.each(t,(function(t){C.each(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),C.each(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,r,i,a),up(s,i,n,r,a);for(var l=1;o>0;o--)cp(s,l*=.99,a),up(s,i,n,r,a),vp(s,l,a),up(s,i,n,r,a)}(t,e,o,i,r,a,s),function(t,e){var n="vertical"===e?"x":"y";C.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),C.each(t,(function(t){var e=0,n=0;C.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),C.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,r,o,a,0!==C.filter(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function lp(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function up(t,e,n,r,i){var o="vertical"===i?"x":"y";C.each(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",p=0;p<c;p++)(l=u-(s=t[p]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===i?r:n))>0)for(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,p=c-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}))}function cp(t,e,n){C.each(t.slice().reverse(),(function(t){C.each(t,(function(t){if(t.outEdges.length){var r=mp(t.outEdges,hp,n)/mp(t.outEdges,yp);if(isNaN(r)){var i=t.outEdges.length;r=i?mp(t.outEdges,pp,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-gp(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-gp(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function hp(t,e){return gp(t.node2,e)*t.getValue()}function pp(t,e){return gp(t.node2,e)}function dp(t,e){return gp(t.node1,e)*t.getValue()}function fp(t,e){return gp(t.node1,e)}function gp(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function yp(t){return t.getValue()}function mp(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function vp(t,e,n){C.each(t,(function(t){C.each(t,(function(t){if(t.inEdges.length){var r=mp(t.inEdges,dp,n)/mp(t.inEdges,yp);if(isNaN(r)){var i=t.inEdges.length;r=i?mp(t.inEdges,fp,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-gp(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-gp(t,n))*e;t.setLayout({y:a},!0)}}}))}))}Ai=o("aZMsI"),C=o("2fV2j"),Bn=o("jnApb"),C=o("2fV2j"),C=o("2fV2j"),it=o("6s8l4"),de=o("iIXbb");var xp=C.each,_p=C.isObject,bp=-1,Sp=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=C.clone(e);this.type=r,this.mappingMethod=n,this._normalizeData=Op[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(wp(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,C.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(xp(e,(function(t,e){n[t]=e})),!C.isArray(r)){var i=[];C.isObject(r)?xp(r,(function(t,e){var r=n[e];i[null!=r?r:bp]=t})):i[-1]=r,r=Lp(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):wp(i,!0):(C.assert("linear"!==n||i.dataExtent),wp(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return C.bind(this._normalizeData,this)},t.listVisualTypes=function(){return C.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){C.isObject(t)?C.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=C.isArray(e)?[]:C.isObject(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&xp(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(C.isArray(t))t=t.slice();else{if(!_p(t))return[];var e=[];xp(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||C.isString(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(Pp(c[1],t,u[1]))return o}else if(u[1]===1/0){if(Pp(c[0],u[0],t))return o}else if(Pp(c[0],u[0],t)&&Pp(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:Tp("color"),getColorMapper:function(){var t=this.option;return C.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),Ap.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=it.fastLerp(e,t.parsedVisual,r),i?r:it.stringify(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return it.stringify(it.fastLerp(t,this.option.parsedVisual),"rgba")},category:Ap,piecewise:function(t,e){var n=kp.call(this,e);return null==n&&(n=it.stringify(it.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:Cp}},colorHue:Mp((function(t,e){return it.modifyHSL(t,e)})),colorSaturation:Mp((function(t,e){return it.modifyHSL(t,null,e)})),colorLightness:Mp((function(t,e){return it.modifyHSL(t,null,null,e)})),colorAlpha:Mp((function(t,e){return it.modifyAlpha(t,e)})),decal:{applyVisual:Tp("decal"),_normalizedToVisual:{linear:null,category:Ap,piecewise:null,fixed:null}},opacity:{applyVisual:Tp("opacity"),_normalizedToVisual:Dp([0,1])},liftZ:{applyVisual:Tp("liftZ"),_normalizedToVisual:{linear:Cp,category:Cp,piecewise:Cp,fixed:Cp}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Ip,category:Ap,piecewise:function(t,e){var n=kp.call(this,e);return null==n&&(n=Ip.call(this,t)),n},fixed:Cp}},symbolSize:{applyVisual:Tp("symbolSize"),_normalizedToVisual:Dp([0,1])}},t}();function wp(t,e){var n=t.visual,r=[];C.isObject(n)?xp(n,(function(t){r.push(t)})):null!=n&&r.push(n),e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),Lp(t,r)}function Mp(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:Dp([0,1])}}function Ip(t){var e=this.option.visual;return e[Math.round((0,de.linearMap)(t,[0,1],[0,e.length-1],!0))]||{}}function Tp(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function Ap(t){var e=this.option.visual;return e[this.option.loop&&t!==bp?t%e.length:t]}function Cp(){return this.option.visual[0]}function Dp(t){return{linear:function(e){return(0,de.linearMap)(e,t,this.option.visual,!0)},category:Ap,piecewise:function(e,n){var r=kp.call(this,n);return null==r&&(r=(0,de.linearMap)(e,t,this.option.visual,!0)),r},fixed:Cp}}function kp(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[Sp.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function Lp(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=C.map(e,(function(t){return it.parse(t)||[0,0,0,1]}))),e}var Op={linear:function(t){return(0,de.linearMap)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Sp.findPieceIndex(t,e,!0);if(null!=n)return(0,de.linearMap)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?bp:e},fixed:C.noop};function Pp(t,e,n){return t?e<=n:e<n}var Ep=Sp;function Rp(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,o=-1/0;C.each(n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>o&&(o=e)})),C.each(n,(function(e){var n=new Ep({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}r.length&&C.each(r,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}d=o("loiyq"),Kt=o("2pli3"),Qt=o("hNaFr");var Np=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){return(0,Qt.default)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}((Jt=o("icZIP")).default),Vp=Np;Kt=o("2pli3"),Kt=o("2pli3"),uo=o("e2ttp"),ie=o("4zWIO"),o("4x6s5"),y=o("lv1gH"),ti=o("8TH6f"),ue=o("by2b6");var zp=function(){},Bp=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Kt.__extends)(e,t),e.prototype.getDefaultShape=function(){return new zp},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new uo.default(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(y.default),Fp=function(){function t(){this.group=new ie.default}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=8*t.startIndex;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Bp({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,ti.createSymbol)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=(0,ue.getECData)(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Gp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=hi("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Fp:new ai,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}((xe=o("ansKp")).default),jp=Gp,Hp=(Kt=o("2pli3"),Gl=o("jMGr2"),Kt=o("2pli3"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}((Ll=o("krEnk")).default)),Wp=Hp;o("4x6s5"),se=o("4m2Ab"),C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),Ll=o("krEnk"),Vu=o("aZZ0S"),Bn=o("jnApb");var Up=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bn.SINGLE_REFERRING).models[0]},e.type="cartesian2dAxis",e}(Ll.default);C.mixin(Up,Vu.AxisModelCommonMixin),C=o("2fV2j"),Ai=o("aZMsI"),hu=o("9XcNn"),Kt=o("2pli3"),uo=o("e2ttp"),C=o("2fV2j");var Yp=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 C.map(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),C.filter(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}(),Xp=(ui=o("2QCok"),ji=o("lDRrb"),["x","y"]);function Zp(t){return"interval"===t.type||"time"===t.type}var qp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Xp,e}return(0,Kt.__extends)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Zp(t)&&Zp(e)){var n=t.getExtent(),r=e.getExtent(),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,p=this._transform=[l,0,0,u,c,h];this._invTransform=(0,ui.invert)([],p)}}},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(0,uo.default)(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(0,ji.applyTransform)(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){var n=[];if(this._invTransform)return(0,ji.applyTransform)(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(0,uo.default)(r,i,o,a)},e}(Yp),Kp=qp,Jp=(Kt=o("2pli3"),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(0,Kt.__extends)(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}((Ix=o("jXYF6")).default));function Qp(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:h[0],"x"===u?f[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),C.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function $p(t){return"cartesian2d"===t.get("coordinateSystem")}function td(t){var e={xAxisModel:null,yAxisModel:null};return C.each(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Bn.SINGLE_REFERRING).models[0];e[r]=o})),e}function ed(t,e){return t.getCoordSysModel()===e}function nd(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)rd(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&rd(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function rd(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,hu.ifAxisCrossZero)(t)}Bn=o("jnApb"),C=o("2fV2j"),Bn=o("jnApb"),qh=o("1zbr5");var id=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Xp,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){var e,n=(0,C.keys)(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;(0,qh.isIntervalOrLogScale)(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):((0,hu.niceScaleExtent)(l,s),(0,qh.isIntervalOrLogScale)(l)&&(e=a))}i.length&&(e||(e=i.pop(),(0,hu.niceScaleExtent)(e.scale,e.model)),(0,C.each)(i,(function(t){Jh(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};(0,C.each)(n.x,(function(t){nd(n,"y",t,i)})),(0,C.each)(n.y,(function(t){nd(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=(0,Ai.getLayoutRect)(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,C.each)(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),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?o.x:o.y)}))}s(),i&&((0,C.each)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,hu.estimateLabelUnionRect)(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),(0,C.each)(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]}(0,C.isObject)(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",Bn.SINGLE_REFERRING).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",Bn.SINGLE_REFERRING).models[0],a=t.gridModel,s=this._coordsList;return r?(e=r.coordinateSystem,(0,C.indexOf)(s,e)<0&&(e=null)):i&&o?e=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{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(ed(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new Jp(e,(0,hu.createScaleByModel)(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,(0,C.each)(a.x,(function(e,n){(0,C.each)(a.y,(function(i,o){var a="x"+n+"y"+o,s=new Kp(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){(0,C.each)((0,hu.getDataDimensionsOnAxis)(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}(0,C.each)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if($p(t)){var r=td(t),i=r.xAxisModel,o=r.yAxisModel;if(!ed(i,e)||!ed(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,C.each)(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);(0,C.indexOf)(e,i)<0&&e.push(i),(0,C.indexOf)(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.eachSeries((function(t){if($p(t)){var e=td(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=Xp,t}();function od(t,e){return"all"===t||(0,C.isArray)(t)&&(0,C.indexOf)(t,e)>=0||t===e}function ad(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ld(t)]}function sd(t){return!!t.get(["handle","show"])}function ld(t){return t.type+"||"+t.id}Kt=o("2pli3"),C=o("2fV2j"),ie=o("4zWIO"),ae=o("4x6s5"),Oi=o("8UpdG"),Kt=o("2pli3"),ra=o("1C7zE"),C=o("2fV2j"),Gl=o("jMGr2");var ud={},cd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=ad(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=sd(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(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=ad(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){ud[t]=e},e.getAxisPointerClass=function(t){return t&&ud[t]},e.type="axis",e}(Gl.default),hd=cd;C=o("2fV2j"),o("4x6s5"),se=o("4m2Ab");var pd=(0,(Bn=o("jnApb")).makeInner)();function dd(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,clamp:!0});if(u.length){var c=s.length,h=pd(t).splitAreaColors,p=C.createHashMap(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var y=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=C.isArray(s)?s:[s],f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,S=void 0;i.isHorizontal()?(x=y,_=l.y,b=v-x,S=l.height,y=x+b):(x=l.x,_=y,b=l.width,y=_+(S=v-_));var w=u[f-1].tickValue;null!=w&&p.set(w,d),e.add(new se.default({anid:null!=w?"area_"+w:null,shape:{x:x,y:_,width:b,height:S},style:C.defaults({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}pd(t).splitAreaColors=p}}}function fd(t){pd(t).splitAreaColors=null}qh=o("1zbr5");var gd=["axisLine","axisTickLabel","axisName"],yd=["splitArea","splitLine","minorSplitLine"],md=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,Kt.__extends)(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ie.default,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Qp(a,e),l=new Zu(e,C.extend({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if((0,qh.isIntervalOrLogScale)(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));C.each(gd,l.add,l),this._axisGroup.add(l.getGroup()),C.each(yd,(function(t){e.get([t,"show"])&&vd[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||ae.groupTransition(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){fd(this)},e.type="cartesianAxis",e}(hd),vd={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=C.isArray(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var y=i.toGlobalCoord(h[g].coord);u?(p[0]=y,p[1]=l.y,d[0]=y,d[1]=l.y+l.height):(p[0]=l.x,p[1]=y,d[0]=l.x+l.width,d[1]=y);var m=c++%s.length,v=h[g].tickValue,x=new Oi.default({anid:null!=v?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:C.defaults({stroke:s[m]},f),silent:!0});ae.subPixelOptimizeLine(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=i.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new Oi.default({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});ae.subPixelOptimizeLine(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){dd(t,e,n,r)}},xd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="xAxis",e}(md),_d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=xd.type,e}return(0,Kt.__extends)(e,t),e.type="yAxis",e}(md),bd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new(0,se.default)({shape:t.coordinateSystem.getRect(),style:(0,C.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Gl.default),Sd={offset:0};function wd(t){t.registerComponentView(bd),t.registerComponentModel(Wp),t.registerCoordinateSystem("cartesian2d",id),Eu(t,"x",Up,Sd),Eu(t,"y",Up,Sd),t.registerComponentView(xd),t.registerComponentView(_d),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}Kt=o("2pli3"),C=o("2fV2j"),xe=o("ansKp"),Kt=o("2pli3"),C=o("2fV2j"),oe=o("4NPqX"),o("4x6s5"),oe=o("4NPqX"),le=o("4rNRw"),nt=o("kjDai"),ce=o("6EdQu"),he=o("5xWWJ"),ue=o("by2b6"),nr=o("35g6g"),oe=o("4NPqX");var Md=o("yI2pV"),Id=(de=o("iIXbb"),function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},(0,ue.getECData)(o).seriesIndex=n.seriesIndex;var a=new nt.default({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return(0,Kt.__extends)(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;(0,ue.getECData)(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=C.extend({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=(0,nr.createOrUpdatePatternFromDecal)(h,i));var p=Te(a.getModel("itemStyle"),u,!0);C.extend(u,p),C.each(ce.SPECIAL_STATES,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=Te(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,oe.initProps(o,{shape:{r:l.r}},n,e.dataIndex)):(oe.updateProps(o,{shape:u},n),(0,oe.saveOldStyle)(o)),o.useStyle(c),this._updateLabel(n);var d=a.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var f=s.get("focus"),g="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;(0,ce.toggleHoverEmphasis)(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,p=r.get("minAngle")/180*Math.PI,d=r.get("show")&&!(null!=p&&Math.abs(o)<p);function f(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!d,C.each(ce.DISPLAY_STATES,(function(r){var p="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,g=d?c:c.ensureState(r),y=t.getFormattedLabel(h,r);d&&(y=y||e.node.name),g.style=(0,he.createTextStyle)(p,{},null,"normal"!==r,!0),y&&(g.style.text=y);var m=p.get("show");null==m||d||(g.ignore=!m);var v,x=f(p,"position"),_=d?u:u.states[r],b=_.style.fill;_.textConfig={outsideFill:"inherit"===p.get("color")?b:null,inside:"outside"!==x};var S=f(p,"distance")||0,w=f(p,"align"),M=f(p,"rotate"),I=.5*Math.PI,T=1.5*Math.PI,A=(0,Md.normalizeRadian)("tangential"===M?Math.PI/2-a:a),D=A>I&&!(0,de.isRadianAroundZero)(A-I)&&A<T;"outside"===x?(v=i.r+S,w=D?"right":"left"):w&&"center"!==w?"left"===w?(v=i.r0+S,w=D?"right":"left"):"right"===w&&(v=i.r-S,w=D?"left":"right"):(v=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,w="center"),g.style.align=w,g.style.verticalAlign=f(p,"verticalAlign")||"middle",g.x=v*s+i.cx,g.y=v*l+i.cy;var k=0;"radial"===M?k=(0,Md.normalizeRadian)(-a)+(D?Math.PI:0):"tangential"===M?k=(0,Md.normalizeRadian)(Math.PI/2-a)+(D?Math.PI:0):C.isNumber(M)&&(k=M*Math.PI/180),g.rotation=(0,Md.normalizeRadian)(k)})),c.dirtyStyle()},e}(le.default));function Td(t,e,n){if(t&&C.indexOf(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(C.isString(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function Ad(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function Cd(t,e){var n=Ad(t);return C.indexOf(n,e)>=0}function Dd(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}Un=o("iWPaD"),C=o("2fV2j"),C=o("2fV2j");var kd="sunburstRootToNode",Ld="sunburstHighlight";Xa=o("gnWKD");var Od=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];!function(r,i){function s(t){return t.getId()}function c(s,c){!function(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}(i);else if(r){var s=new Id(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==c?null:i[c])}0===r.length&&0===i.length||new(0,Un.default)(i,r,s,s).add(c).update(c).remove(C.curry(c,null)).execute()}(c,h),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new Id(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";(0,Xa.windowOpen)(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kd,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},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="sunburst",e}(xe.default),Pd=Od,Ed=(Kt=o("2pli3"),C=o("2fV2j"),Jt=o("icZIP"),C=o("2fV2j"),Xe=o("ao62o"),Ye=o("bJU8K"),Bn=o("jnApb"),function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){C.isFunction(t)&&(n=e,e=t,t=null),t=t||{},C.isString(t)&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}()),Rd=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;!function t(e,n){var r=e.value;a=Math.max(a,C.isArray(r)?r.length:1),o.push(e);var s=new Ed((0,Bn.convertOptionIdName)(e.name,""),i);n?function(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}(s,n):i.root=s,i._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),i.root.updateDepthAndHeight(0);var s=(0,Ye.default)(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new(0,Xe.default)(s,n);return l.initData(o),r&&r(l),va({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},t}(),Nd=(ra=o("1C7zE"),o("4mdeT"));function Vd(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var r=e;r&&r.depth>1;)r=r.parentNode;var i=(0,Nd.getDecalFromPalette)(t.ecModel,r.name||r.dataIndex+"",n);e.setVisual("decal",i)}))}var zd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Bd(n);var r=this._levelModels=C.map(t.levels||[],(function(t){return new(0,ra.default)(t,this,e)}),this),i=Rd.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}));return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Dd(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Vd(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Jt.default);function Bd(t){var e=0;C.each(t.children,(function(t){Bd(t);var n=t.value;C.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;C.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),C.isArray(t.value)?t.value[0]=n:t.value=n}var Fd=zd,Gd=(de=o("iIXbb"),C=o("2fV2j"),Math.PI/180);function jd(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");C.isArray(r)||(r=[0,r]),C.isArray(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=(0,de.parsePercent)(e[0],i),l=(0,de.parsePercent)(e[1],o),u=(0,de.parsePercent)(r[0],a/2),c=(0,de.parsePercent)(r[1],a/2),h=-t.get("startAngle")*Gd,p=t.get("minAngle")*Gd,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&Hd(f,y);var m=0;C.each(f.children,(function(t){!isNaN(t.getValue())&&m++}));var v=f.getValue(),x=Math.PI/(v||m)*2,_=f.depth>0,b=f.height-(_?-1:1),S=(c-u)/(b||1),w=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=w?1:-1,T=function(e,n){if(e){var r=n;if(e!==d){var i=e.getValue(),o=0===v&&M?x:i*x;o<p&&(o=p),r=n+I*o;var c=e.depth-g-(_?-1:1),h=u+S*c,f=u+S*(c+1),y=t.getLevelModel(e);if(y){var m=y.get("r0",!0),b=y.get("r",!0),A=y.get("radius",!0);null!=A&&(m=A[0],b=A[1]),null!=m&&(h=(0,de.parsePercent)(m,a/2)),null!=b&&(f=(0,de.parsePercent)(b,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:w,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var D=0;C.each(e.children,(function(t){D+=T(t,n+D)}))}return r-n}};if(_){var A=u,D=u+S,k=2*Math.PI;d.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:w,cx:s,cy:l,r0:A,r:D})}T(f,h)}))}function Hd(t,e){var n=t.children||[];t.children=function(t,e){if(C.isFunction(e)){var n=C.map(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),C.map(n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}(n,e),n.length&&C.each(t.children,(function(t){Hd(t,e)}))}function Wd(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),r=n.tree;r.eachNode((function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,r){for(var i=t;i&&i.depth>1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&(0,C.isString)(o)&&(o=(0,it.lift)(o,(t.depth-1)/(r-1)*.5)),o}(i,t,r.root.height));var a=n.ensureUniqueItemVisual(i.dataIndex,"style");(0,C.extend)(a,o)}))}))}it=o("6s8l4"),C=o("2fV2j"),C=o("2fV2j"),Kt=o("2pli3"),ie=o("4zWIO"),oe=o("4NPqX"),o("4x6s5"),oe=o("4NPqX"),se=o("4m2Ab"),ce=o("6EdQu"),he=o("5xWWJ"),C=o("2fV2j"),Un=o("iWPaD"),xe=o("ansKp"),oe=o("4NPqX");var Ud=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new(0,Un.default)(this._layersSeries||[],a,c,c),p=[];function d(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],d=[],f=a[n].indices,g=0;g<f.length;g++){var y=r.getItemLayout(f[g]),m=y.x,v=y.y0,x=y.y;h.push(m,v),d.push(m,v+x),u=r.getItemVisual(f[g],"style")}var _=r.getItemLayout(f[0]),b=t.getModel("label").get("margin"),S=t.getModel("emphasis");if("add"===e){var w=p[n]=new ie.default;c=new Ya({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),w.add(c),o.add(w),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var r=new se.default({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return oe.initProps(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,(function(){c.removeClipPath()})),r}(c.getBoundingRect(),t))}else w=l[s],c=w.childAt(0),o.add(w),p[n]=w,oe.updateProps(c,{shape:{points:h,stackedOnPoints:d}},t),(0,oe.saveOldStyle)(c);(0,he.setLabelStyle)(c,(0,he.getLabelStatesModels)(t),{labelDataIndex:f[g-1],defaultText:r.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var M=c.getTextContent();M&&(M.x=_.x-b,M.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),(0,ce.setStatesStylesFromModel)(c,t),(0,ce.toggleHoverEmphasis)(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}h.add((0,C.bind)(d,this,"add")).update((0,C.bind)(d,this,"update")).remove((0,C.bind)(d,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(xe.default),Yd=Ud,Xd=(Kt=o("2pli3"),Jt=o("icZIP"),Ye=o("bJU8K"),qe=o("auf5w"),Xe=o("ao62o"),C=o("2fV2j"),Bn=o("jnApb"),ba=o("dcFkT"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mi(C.bind(this.getData,this),C.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=(0,Bn.groupData)(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Bn.SINGLE_REFERRING).models[0].get("type"),r=C.filter(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=C.createHashMap(),s=0,l=0;l<i.length;++l)o.push(i[l][2]),a.get(i[l][2])||(a.set(i[l][2],s),s++);var u=(0,Ye.default)(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,qe.getDimensionTypeByAxis)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new(0,Xe.default)(u,this);return c.initData(i),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=(0,Bn.groupData)(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){C.isArray(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,p=0;p<h;++p){var d=i.get(t[0],o[l].indices[p]),f=Math.abs(d-e);f<=u&&(r=d,u=f,c=o[l].indices[p])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getName(t),o=r.get(r.mapDimension("value"),t);return(0,ba.createTooltipMarkup)("nameValue",{name:i,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Jt.default)),Zd=Xd;function qd(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();r.boundaryGap=o,"horizontal"===a.orient?(o[0]=de.parsePercent(o[0],i.height),o[1]=de.parsePercent(o[1],i.height),Kd(e,t,i.height-o[0]-o[1])):(o[0]=de.parsePercent(o[0],i.width),o[1]=de.parsePercent(o[1],i.width),Kd(e,t,i.width-o[0]-o[1])),e.setLayout("layoutInfo",r)}))}function Kd(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=C.map(o,(function(e){return C.map(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=function(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}(l),c=u.y0,h=n/u.max,p=o.length,d=o[0].indices.length,f=0;f<d;++f){r=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*h});for(var g=1;g<p;++g)r+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*h})}}function Jd(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){for(var e=t.children,n=e.length,r=0,i=0;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=ef(s),o=nf(o),s&&o;){i=ef(i),a=nf(a),i.hierNode.ancestor=t;var p=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);p>0&&(of(rf(s,t,n),t,p),u+=p,l+=p),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!ef(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!nf(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function Qd(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function $d(t){return arguments.length?t:af}function tf(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function ef(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function nf(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function rf(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function of(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function af(t,e){return t.parentNode===e.parentNode?1:2}C=o("2fV2j"),de=o("iIXbb"),Kt=o("2pli3"),C=o("2fV2j"),o("4x6s5"),oe=o("4NPqX"),yo=o("2Kft9"),ie=o("4zWIO"),oe=o("4NPqX"),ue=o("by2b6"),Ai=o("aZMsI"),fo=o("hA1kS"),de=o("iIXbb"),xe=o("ansKp"),y=o("lv1gH"),ce=o("6EdQu");var sf=function(){this.parentPoint=[],this.childPoints=[]},lf=function(t){function e(e){return t.call(this,e)||this}return(0,Kt.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sf},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=(0,de.parsePercent)(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var p=1;p<r-1;p++){var d=n[p];t.moveTo(d[0],d[1]),h[l]=d[l],t.lineTo(h[0],h[1])}},e}(y.default),uf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new ie.default,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){this._controller=new Fo(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;r.diff(a).add((function(e){cf(r,e)&&hf(r,e,null,o,t)})).update((function(e,n){var i=a.getItemGraphicEl(n);cf(r,e)?hf(r,e,i,o,t):i&&ff(a,n,i,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&ff(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];fo.fromPoints(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new po;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Wo(e,n,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){Go(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){jo(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1;return((e.getZoom()-1)*n+1)/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(xe.default);function cf(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function hf(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?((n=new ni(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,oe.updateProps(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var m=c.children[0],v=m.getLayout(),x=m.children.length,_=void 0,b=void 0;if(g.x===v.x&&!0===a.isExpand&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};(_=Math.atan2(S.y-v.y,S.x-v.x))<0&&(_=2*Math.PI+_),(b=S.x<v.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-v.y,g.x-v.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<v.x)&&(_-=Math.PI):(b=g.x>v.x)||(_-=Math.PI);var w=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||w,rotation:null==I?-_:T,origin:"center"}),A.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),k="relative"===D?C.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():null;k&&((0,ue.getECData)(n).focus=k),function(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new yo.default({shape:gf(c,h,p,i,i)})),oe.updateProps(g,{shape:gf(c,h,p,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],v=0;v<y.length;v++){var x=y[v].getLayout();m.push([x.x,x.y])}g||(g=r.__edge=new lf({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:d}})),oe.updateProps(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}g&&("polyline"!==u||e.isExpand)&&(g.useStyle(C.defaults({strokeNoScale:!0,fill:null},f)),(0,ce.setStatesStylesFromModel)(g,l,"lineStyle"),(0,ce.setDefaultStateProxy)(g),s.add(g))}(i,a,c,n,f,d,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===ce.HOVER_STATE_BLUR||(0,ce.setStatesFlag)(n.__edge,e)}})}function pf(t,e,n,r,i){var o=df(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=r.get("edgeShape"),p=r.get("layout"),d=r.get("orient"),f=r.get(["lineStyle","curveness"]);c&&("curve"===h?oe.removeElement(c,{shape:gf(p,d,f,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&oe.removeElement(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function df(t,e){for(var n,r=e.parentNode===t?e:e.parentNode||e;null==(n=r.getLayout());)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function ff(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=df(t.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};oe.removeElement(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){pf(e,t,r,i,s)})),pf(o,t,r,i,s)}function gf(t,e,n,r,i){var o,a,s,l,u,c,h,p;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,p=i.rawY;var d=tf(u,h),f=tf(u,h+(p-h)*n),g=tf(c,p+(h-p)*n),y=tf(c,p);return{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,p=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(o=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var yf=uf,mf=(Kt=o("2pli3"),Jt=o("icZIP"),ra=o("1C7zE"),ba=o("dcFkT"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new(0,ra.default)(n,this,this.ecModel),i=Rd.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))})),o=0;i.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return(0,ba.createTooltipMarkup)("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Dd(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Jt.default)),vf=mf;function xf(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function _f(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Ai.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=$d((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=$d());var s=t.getData().tree.root,l=s.children[0];if(l){(function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}})(s),function(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,n)}(l,Jd,a),s.hierNode.modifier=-l.hierNode.prelim,xf(l,Qd);var u=l,c=l,h=l;xf(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var p=u===c?1:a(u,c)/2,d=p-u.getLayout().x,f=0,g=0,y=0,m=0;if("radial"===r)f=i/(c.getLayout().x+p+d),g=o/(h.depth-1||1),xf(l,(function(t){y=(t.getLayout().x+d)*f,m=(t.depth-1)*g;var e=tf(y,m);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:m},!0)}));else{var v=t.getOrient();"RL"===v||"LR"===v?(g=o/(c.getLayout().x+p+d),f=i/(h.depth-1||1),xf(l,(function(t){m=(t.getLayout().x+d)*g,y="LR"===v?(t.depth-1)*f:i-(t.depth-1)*f,t.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(f=i/(c.getLayout().x+p+d),g=o/(h.depth-1||1),xf(l,(function(t){y=(t.getLayout().x+d)*f,m="TB"===v?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:m},!0)})))}}}(t,e)}))}function bf(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");(0,C.extend)(r,n)}))}))}C=o("2fV2j"),C=o("2fV2j");var Sf=["treemapZoomToNode","treemapRender","treemapMove"];Kt=o("2pli3"),C=o("2fV2j"),Jt=o("icZIP"),ra=o("1C7zE"),Bn=o("jnApb"),ba=o("dcFkT");var wf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return(0,Kt.__extends)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Mf(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new(0,ra.default)({itemStyle:i},this,e);r=t.levels=function(t,e){var n,r,i=(0,Bn.normalizeToArray)(e.get("color")),o=(0,Bn.normalizeToArray)(e.get(["aria","decal","decals"]));if(i){t=t||[],C.each(t,(function(t){var e=new(0,ra.default)(t),i=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var a=t[0]||(t[0]={});return n||(a.color=i.slice()),!r&&o&&(a.decal=o.slice()),t}}(r,e);var a=C.map(r||[],(function(t){return new(0,ra.default)(t,o,e)}),this),s=Rd.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return(0,ba.createTooltipMarkup)("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Dd(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},C.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=C.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Vd(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Jt.default);function Mf(t){var e=0;C.each(t.children,(function(t){Mf(t);var n=t.value;C.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;C.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),C.isArray(t.value)?t.value[0]=n:t.value=n}var If=wf;function Tf(t,e,n,r,i,o){var a=[[i?t:t-5,e],[t+n,e],[t+n,e+r],[i?t:t-5,e+r]];return!o&&a.splice(2,0,[t+n+5,e+r/2]),!i&&a.push([t,e+r/2]),a}function Af(t,e,n){(0,ue.getECData)(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Dd(n,e)}}Kt=o("2pli3"),C=o("2fV2j"),ie=o("4zWIO"),o("4x6s5"),se=o("4m2Ab"),ue=o("by2b6"),ce=o("6EdQu"),Un=o("iWPaD"),ie=o("4zWIO"),o("4x6s5"),vi=o("4w8lf"),nt=o("kjDai"),ue=o("by2b6"),Ai=o("aZMsI"),C=o("2fV2j"),Bn=o("jnApb"),ce=o("6EdQu"),he=o("5xWWJ");var Cf=function(){function t(t){this.group=new ie.default,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),Ai.positionElement(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=(0,Bn.convertOptionIdName)(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=Ai.getAvailableSize(e.pos,e.box),h=e.totalWidth,p=e.renderList,d=r.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var g=p[f],y=g.node,m=g.width,v=g.text;h>c.width&&(h-=m-l,m=l,v=null);var x=new vi.default({shape:{points:Tf(s,0,m,u,f===p.length-1,0===f)},style:(0,C.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new nt.default({style:(0,he.createTextStyle)(i,{text:v})}),textConfig:{position:"inside"},z2:1e4*ce.Z2_EMPHASIS_LIFT,onclick:(0,C.curry)(a,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=(0,he.createTextStyle)(o,{text:v}),x.ensureState("emphasis").style=d,(0,ce.toggleHoverEmphasis)(x,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(x),Af(x,t,y),s+=m+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),Df=(uo=o("e2ttp"),ui=o("2QCok"),function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}());Nu=o("fpBSa"),xe=o("ansKp"),Kn=o("32n5A"),Bn=o("jnApb"),Xa=o("gnWKD"),he=o("5xWWJ");var kf=ie.default,Lf=se.default,Of="label",Pf="upperLabel",Ef=10*ce.Z2_EMPHASIS_LIFT,Rf=2*ce.Z2_EMPHASIS_LIFT,Nf=3*ce.Z2_EMPHASIS_LIFT,Vf=(0,Nu.default)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),zf=function(t){var e=Vf(t);return e.stroke=e.fill=e.lineWidth=null,e},Bf=(0,Bn.makeInner)(),Ff=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!((0,C.indexOf)(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=Td(r,["treemapZoomToNode","treemapRootToNode"],t),a=r&&r.type,s=t.layoutInfo,l=!this._oldTree,u=this._storage,c="treemapRootToNode"===a&&o&&u?{rootNodeGroup:u.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,h=this._giveContainerGroup(s),p=t.get("animation"),d=this._doRender(h,t,c);!p||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?d.renderFinally():this._doAnimation(h,d,t,c),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new kf,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,r,i,u){return function(t,e,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var d=c.width,f=c.height,g=c.borderWidth,y=c.invisible,m=a.getRawIndex(),v=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,S=p.getModel("itemStyle"),w=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,A=B("nodeGroup",kf);if(A){if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),Bf(A).nodeWidth=d,Bf(A).nodeHeight=f,c.isAboveViewRoot)return A;var D=B("background",Lf,u,Rf);D&&function(e,n,r){var i=(0,ue.getECData)(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:f,r:T}),y)N(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=zf(S);l.fill=s;var u=Vf(w);u.fill=w.get("borderColor");var c=Vf(M);c.fill=M.get("borderColor");var h=Vf(I);if(h.fill=I.get("borderColor"),r){var p=d-2*g;V(n,s,o.opacity,{x:g,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,(0,ce.setDefaultStateProxy)(n)}e.add(n)}(A,D,b&&c.upperLabelHeight);var k=p.getModel("emphasis"),L=k.get("focus"),O=k.get("blurScope"),P=k.get("disabled"),E="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(b)(0,ce.isHighDownDispatcher)(A)&&(0,ce.setAsHighDownDispatcher)(A,!1),D&&((0,ce.setAsHighDownDispatcher)(D,!P),h.setItemGraphicEl(a.dataIndex,D),(0,ce.enableHoverFocus)(D,E,O));else{var R=B("content",Lf,u,Nf);R&&function(e,n){var r=(0,ue.getECData)(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(d-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:T}),y)N(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=zf(S);u.fill=l,u.decal=s.decal;var c=Vf(w),h=Vf(M),p=Vf(I);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=p,(0,ce.setDefaultStateProxy)(n)}e.add(n)}(A,R),D.disableMorphing=!0,D&&(0,ce.isHighDownDispatcher)(D)&&(0,ce.setAsHighDownDispatcher)(D,!1),(0,ce.setAsHighDownDispatcher)(A,!P),h.setItemGraphicEl(a.dataIndex,A),(0,ce.enableHoverFocus)(A,E,O)}return A}}}function N(t){!t.invisible&&o.push(t)}function V(e,n,r,i){var o=p.getModel(i?Pf:Of),s=(0,Bn.convertOptionIdName)(p.get("name"),null),l=o.getShallow("show");(0,he.setLabelStyle)(e,(0,he.getLabelStatesModels)(p,i?Pf:Of),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,d=(0,C.normalizeCssArray)(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-d[1]-d[3],0),n=Math.max((i?i.height:e.shape.height)-d[0]-d[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,i,c);var f=u.getState("emphasis");z(f?f.style:null,i,c)}}function z(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function B(t,r,o,a){var s=null!=v&&n[t][v],l=i[t];return s?(n[t][v]=null,function(t,e){var n=t[m]={};e instanceof kf?(n.oldX=e.x,n.oldY=e.y):n.oldShape=(0,C.extend)({},e.shape)}(l,s)):y||((s=new r)instanceof Kn.default&&(s.z2=function(t,e){return t*Ef+e}(o,a)),F(l,s)),e[t][m]=s}function F(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof ie.default;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(e,a,s,n,o,l,t,r,i,u)}!function t(e,n,r,i,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,h=u(l,c,r,o);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,i,o+1)}i?(n=e,(0,C.each)(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new(0,Un.default)(n,e,a,a).add(s).update(s).remove((0,C.curry)(s,null)).execute()}(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&(0,C.each)(t,(function(t,n){var r=e[n];(0,C.each)(t,(function(t){t&&(r.push(t),Bf(t).willDelete=!0)}))})),e}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){(0,C.each)(c,(function(t){(0,C.each)(t,(function(t){t.parent&&t.parent.remove(t)}))})),(0,C.each)(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=((0,C.isFunction)(i)?0:i)||0,s=((0,C.isFunction)(o)?null:o)||"cubicOut",l=new Df;(0,C.each)(e.willDeleteEls,(function(t,e){(0,C.each)(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=Bf(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,a,0,s)}}))})),(0,C.each)(this._storage,(function(t,n){(0,C.each)(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof ie.default?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=(0,C.extend)({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished((0,C.bind)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new Fo(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",(0,C.bind)(this._onPan,this)),e.on("zoom",(0,C.bind)(this._onZoom,this)));var n=new(0,uo.default)(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,r){return n.contain(e,r)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new(0,uo.default)(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=ui.create();ui.translate(s,s,[-e,-n]),ui.scale(s,s,[t.scale,t.scale]),ui.translate(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&(0,Xa.windowOpen)(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Cf(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(Cd(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(xe.default),Gf=Ff,jf=(C=o("2fV2j"),it=o("6s8l4"),(0,(Bn=o("jnApb")).makeInner)()),Hf={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||Wf(e,{},t.getViewRoot().getAncestors(),t)}};function Wf(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel("itemStyle"),u=function(t,e,n){var r=(0,C.extend)({},e),i=n.designatedVisualItemStyle;return(0,C.each)(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),p=l.get("borderColorSaturation");null!=p&&(h=function(t,e){return null!=e?(0,it.modifyHSL)(e,null,null,t):null}(p,s=Uf(u))),c.stroke=h;var d=t.viewChildren;if(d&&d.length){var f=function(t,e,n,r,i,o){if(o&&o.length){var a=Xf(e,"color")||null!=i.color&&"none"!==i.color&&(Xf(e,"colorAlpha")||Xf(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var p=new Ep(h);return jf(p).drColorMappingBy=c,p}}}(0,i,o,0,u,d);(0,C.each)(d,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,r,i,o){var a=(0,C.extend)({},e);if(i){var s=i.type,l="color"===s&&jf(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}(i,u,t,e,f,r);Wf(t,o,n,r)}}))}else s=Uf(u),c.fill=s}}function Uf(t){var e=Yf(t,"color");if(e){var n=Yf(t,"colorAlpha"),r=Yf(t,"colorSaturation");return r&&(e=(0,it.modifyHSL)(e,null,null,r)),n&&(e=(0,it.modifyAlpha)(e,n)),e}}function Yf(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function Xf(t,e){var n=t.get(e);return(0,C.isArray)(n)&&n.length?{name:e,range:n}:null}C=o("2fV2j"),uo=o("e2ttp"),de=o("iIXbb"),Ai=o("aZMsI");var Zf=Math.max,qf=Math.min,Kf=C.retrieve,Jf=C.each,Qf=["itemStyle","borderWidth"],$f=["itemStyle","gapWidth"],tg=["upperLabel","show"],eg=["upperLabel","height"],ng={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=Ai.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=(0,de.parsePercent)(Kf(s.width,l[0]),i),c=(0,de.parsePercent)(Kf(s.height,l[1]),o),h=r&&r.type,p=Td(r,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===h||"treemapMove"===h?r.rootRect:null,f=t.getViewRoot(),g=Ad(f);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;for(var l=r*i,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,h=o.children,p=0,d=h.length;p<d;p++)c+=h[p].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),y=g.get(Qf);(u+=4*y*y+(3*y+Math.max(y,sg(g)))*Math.pow(u,.5))>de.MAX_SAFE_INTEGER&&(u=de.MAX_SAFE_INTEGER),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,i*m]}(t,p,f,u,c):d?[d.width,d.height]:[u,c],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var v={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};f.setLayout(x),rg(f,v,!1,0),x=f.getLayout(),Jf(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(C.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;for(var a=[o.width/2,o.height/2],s=i;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,d,p),!0),t.setLayoutInfo(s),ag(_,new(0,uo.default)(-s.x,-s.y,i,o),g,f,0)}};function rg(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(Qf),u=s.get($f)/2,c=sg(s),h=Math.max(l,c),p=l-u,d=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var f=(i=Zf(i-2*p,0))*(o=Zf(o-p-d,0)),g=function(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=C.filter(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r}))}(a,s);var u=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],Jf(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var p=a[c].getValue()/u.sum*n;a[c].setLayout({area:p})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(t,s,f,e,n,r);if(g.length){var y={x:p,y:d,width:i,height:o},m=qf(i,o),v=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var S=g[_];x.push(S),x.area+=S.getLayout().area;var w=ig(x,m,e.squareRatio);w<=v?(_++,v=w):(x.area-=x.pop().getLayout().area,og(x,m,y,u,!1),m=qf(y.width,y.height),x.length=x.area=0,v=1/0)}if(x.length&&og(x,m,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)rg(g[_],e,n,r+1)}}}function ig(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?Zf(u*r/l,l/(u*i)):1/0}function og(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,p=t.length;h<p;h++){var d=t[h],f={},g=c?d.getLayout().area/c:0,y=f[l[a]]=Zf(c-2*r,0),m=n[s[o]]+n[l[o]]-u,v=h===p-1||m<g?m:g,x=f[l[o]]=Zf(v-2*r,0);f[s[a]]=n[s[a]]+qf(r,y/2),f[s[o]]=u+qf(r,x/2),u+=v,d.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function ag(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new(0,uo.default)(e.x-o.x,e.y-o.y,e.width,e.height);Jf(t.viewChildren||[],(function(t){ag(t,l,n,r,i+1)}))}}function sg(t){return t.get(tg)?t.get(eg):0}C=o("2fV2j"),Bn=o("jnApb"),Nd=o("4mdeT");var lg={label:{enabled:!0},decal:{show:!1}},ug=(0,Bn.makeInner)(),cg={};function hg(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=C.clone(lg);C.merge(r.label,t.getLocaleModel().get("aria"),!1),C.merge(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=C.createHashMap();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),ug(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(C.isFunction(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=(0,Nd.getDecalFromPalette)(e.ecModel,e.name,cg,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=ug(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=(0,Nd.getDecalFromPalette)(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?C.extend(C.extend({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var r=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=C.defaults(o.option,r),o.get("enabled")){var a=e.getZr().dom;if(o.get("description"))a.setAttribute("aria-label",o.get("description"));else{var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var p=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();if(p)s=i(o.get(["general","withTitle"]),{title:p});else s=o.get(["general","withoutTitle"]);var d=[];s+=i(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<h){var r=void 0,a=e.get("name")?"withName":"withoutName";r=i(r=l>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,_=t.getLocaleModel().get(["series","typeNames"]),_[x]||_.chart)});var s=e.getData();s.count()>u?r+=i(o.get(["data","partialData"]),{displayCnt:u}):r+=o.get(["data","allData"]);for(var c=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<u){var y=s.getName(g),m=s.getValues(g),v=o.get(["data",y?"withName":"withoutName"]);f.push(i(v,{name:y,value:m.join(c)}))}r+=f.join(c)+p,d.push(r)}var x,_}));var f=o.getModel(["series","multiple","separator"]),g=f.get("middle"),y=f.get("end");s+=d.join(g)+y,a.setAttribute("aria-label",s)}}}}()}function i(t,e){if(!C.isString(t))return t;var n=t;return C.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function pg(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},C.each(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),ae=o("4x6s5"),Po=o("9Ocvr"),pe=o("lx0YT");var dg=(0,(Bn=o("jnApb")).makeInner)(),fg=C.clone,gg=C.bind;function yg(t,e,n,r){mg(dg(n).lastProp,r)||(dg(n).lastProp=r,e?ae.updateProps(n,r,t):(n.stopAnimation(),n.attr(r)))}function mg(t,e){if(C.isObject(t)&&C.isObject(e)){var n=!0;return C.each(e,(function(e,r){n=n&&mg(t[r],e)})),!!n}return t===e}function vg(t,e){t[e.get(["label","show"])?"show":"hide"]()}function xg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _g(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var bg=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=C.curry(yg,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new ae.Group,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);_g(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=ad(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=dg(t).pointerEl=new ae[i.type](fg(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=dg(t).labelEl=new ae.Text(fg(e.label));t.add(i),vg(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=dg(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=dg(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),vg(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=ae.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Po.stop(t.event)},onmousedown:gg(this._onHandleDragMove,this,0,0),drift:gg(this._onHandleDragMove,this),ondragend:gg(this._onHandleDragEnd,this)}),r.add(i)),_g(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");C.isArray(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,pe.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){yg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,xg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(xg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xg(r)),dg(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),pe.clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Sg(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function wg(t,e,n,r,i){var o=Mg(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Xa.normalizeCssArray(a.get("padding")||0),l=a.getFont(),u=v.getBoundingRect(o,l),c=i.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=i.align;"right"===d&&(c[0]-=h),"center"===d&&(c[0]-=h/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,p,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:(0,he.createTextStyle)(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function Mg(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:hu.getAxisRawValue(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C.each(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),C.isString(a)?o=a.replace("{value}",o):C.isFunction(a)&&(o=a(s))}return o}function Ig(t,e,n){var r=ui.create();return ui.rotate(r,r,n.rotation),ui.translate(r,r,n.position),ae.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Tg(t,e,n,r,i,o){var a=Zu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),wg(e,r,i,o,{position:Ig(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Ag(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Cg(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function Dg(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}C=o("2fV2j"),ae=o("4x6s5"),v=o("lj5IW"),Xa=o("gnWKD"),ui=o("2QCok"),hu=o("9XcNn"),he=o("5xWWJ");var kg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=Lg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=Sg(r),h=Og[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}Tg(e,t,Qp(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=Qp(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Ig(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=Lg(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(bg);function Lg(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Og={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Ag([e,n[0]],[e,n[1]],Pg(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Cg([e-r/2,n[0]],[r,i],Pg(t))}}};function Pg(t){return"x"===t.dim?0:1}var Eg=kg,Rg=(Kt=o("2pli3"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}((Ll=o("krEnk")).default)),Ng=Rg,Vg=(Kt=o("2pli3"),C=o("2fV2j"),o("akmdr")),zg=(0,(Bn=o("jnApb")).makeInner)(),Bg=C.each;function Fg(t,e,n){if(!Vg.default.node){var r=e.getZr();zg(r).records||(zg(r).records={}),function(t,e){function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);Bg(zg(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}zg(t).initialized||(zg(t).initialized=!0,n("click",C.curry(jg,"click")),n("mousemove",C.curry(jg,"mousemove")),n("globalout",Gg))}(r,e),(zg(r).records[t]||(zg(r).records[t]={})).handler=n}}function Gg(t,e,n){t.handler("leave",null,n)}function jg(t,e,n,r){e.handler(t,n,r)}function Hg(t,e){if(!Vg.default.node){var n=e.getZr();(zg(n).records||{})[t]&&(zg(n).records[t]=null)}}var Wg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Fg("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){Hg("axisPointer",e)},e.prototype.dispose=function(t,e){Hg("axisPointer",e)},e.type="axisPointer",e}((Gl=o("jMGr2")).default),Ug=Wg;function Yg(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Bn.queryDataIndex(o,t);if(null==a||a<0||C.isArray(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(C.map(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}C=o("2fV2j"),Bn=o("jnApb"),C=o("2fV2j"),Bn=o("jnApb"),C=o("2fV2j");var Xg=(0,Bn.makeInner)();function Zg(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||(0,C.bind)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){$g(i)&&(i=Yg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=$g(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||$g(i),p={},d={},f={list:[],map:{}},g={showPointer:(0,C.curry)(Kg,d),showTooltip:(0,C.curry)(Jg,f)};(0,C.each)(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);(0,C.each)(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&qg(t,a,g,!1,p)}}))}));var y={};return(0,C.each)(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&(0,C.each)(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Qg(e),Qg(t)))),y[t.key]=o}}))})),(0,C.each)(y,(function(t,e){qg(c[e],t,g,!0,p)})),function(t,e,n){var r=n.axesInfo=[];(0,C.each)(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(d,c,p),function(t,e,n,r){if(!$g(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}(f,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=Xg(r)[i]||{},a=Xg(r)[i]={};(0,C.each)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,C.each)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];(0,C.each)(o,(function(t,e){!a[e]&&l.push(t)})),(0,C.each)(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function qg(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return(0,C.each)(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,i=u,o.length=0),(0,C.each)(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&(0,C.extend)(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function Kg(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function Jg(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=ld(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Qg(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function $g(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function ty(t){hd.registerAxisPointerClass("CartesianAxisPointer",Eg),t.registerComponentModel(Ng),t.registerComponentView(Ug),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,C.isArray)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];(0,C.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=ld(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if((0,C.each)(n.getAxes(),(0,C.curry)(d,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&(0,C.each)(p.baseAxes,(0,C.curry)(d,!h||"cross",c)),h&&(0,C.each)(p.otherAxes,(0,C.curry)(d,"cross",!1))}}function d(r,s,c){var h=c.model.getModel("axisPointer",i),p=h.get("show");if(p&&("auto"!==p||r||sd(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};(0,C.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=(0,C.clone)(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&(0,C.defaults)(l,c.textStyle)}}return t.model.getModel("axisPointer",new(0,ra.default)(s,n,r))}(c,u,i,e,r,s):h;var d=h.get("snap"),f=h.get("triggerEmphasis"),g=ld(c.model),y=s||d||"category"===c.type,m=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:d,useHandle:sd(h),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||y;var v=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(od(o[r+"AxisId"],n.id)||od(o[r+"AxisIndex"],n.componentIndex)||od(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=m,x.mapper=o[v].mapper,m.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&(0,C.each)(t.coordSysAxesInfo[ld(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Zg)}C=o("2fV2j"),Bn=o("jnApb");var ey=["rect","polygon","keep","clear"];function ny(t,e){var n=(0,Bn.normalizeToArray)(t?t.brush:[]);if(n.length){var r=[];C.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;C.isArray(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o,a,s=i.feature||(i.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,r),o=u,a={},C.each(o,(function(t){a[t]=1})),o.length=0,C.each(a,(function(t,e){o.push(e)})),e&&!u.length&&u.push.apply(u,ey)}}Kt=o("2pli3"),C=o("2fV2j"),C=o("2fV2j"),uo=o("e2ttp"),C=o("2fV2j");var ry=o("kJZzU"),iy=C.each;function oy(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function ay(t,e,n){var r={};return iy(e,(function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);iy(t[e],(function(t,r){if(Ep.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new Ep(i),"opacity"===r&&((i=C.clone(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new Ep(i))}}))})),r}function sy(t,e,n){var r;C.each(n,(function(t){e.hasOwnProperty(t)&&oy(e[t])&&(r=!0)})),r&&C.each(n,(function(n){e.hasOwnProperty(n)&&oy(e[n])?t[n]=C.clone(e[n]):delete t[n]}))}var ly=o("jUdXv");uo=o("e2ttp"),ae=o("4x6s5");var uy={lineX:cy(0),lineY:cy(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ly.contain(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(ly.contain(r,i,o)||ly.contain(r,i+a,o)||ly.contain(r,i,o+s)||ly.contain(r,i+a,o+s)||uo.default.create(t).contain(l[0],l[1])||(0,ae.linePolygonIntersect)(i,o,i+a,o,r)||(0,ae.linePolygonIntersect)(i,o,i,o+s,r)||(0,ae.linePolygonIntersect)(i+a,o,i+a,o+s,r)||(0,ae.linePolygonIntersect)(i,o+s,i+a,o+s,r))||void 0}}};function cy(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return hy(e[t],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),hy(s[0],a)||hy(s[1],a)||hy(a[0],s)||hy(a[1],s)}}}}function hy(t,e){return e[0]<=t&&t<=e[1]}pe=o("lx0YT"),C=o("2fV2j"),ae=o("4x6s5"),Bn=o("jnApb");var py=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],dy=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=gy(e,t);(0,C.each)(yy,(function(t,e){(!n||!n.include||(0,C.indexOf)(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=xy[t.brushType](0,n,e);t.__rangeOffset={offset:by[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){(0,C.each)(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&(0,C.each)(r.coordSyses,(function(r){var i=xy[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){(0,C.each)(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=xy[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?by[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=wy(n),o=wy(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return(0,C.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Nc(r),isTargetByCursor:zc(r,t,n.coordSysModel),getLinearBrushOtherExtent:Vc(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&(0,C.indexOf)(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=gy(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<my.length;s++)if(my[s](r,o))return o}return!0},t}();function fy(t){return t[0]>t[1]&&t.reverse(),t}function gy(t,e){return(0,Bn.parseFinder)(t,e,{includeMainTypes:py})}var yy={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=(0,C.createHashMap)(),a={},s={};(n||r||i)&&((0,C.each)(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),(0,C.each)(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),(0,C.each)(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];(0,C.each)(i.getCartesians(),(function(t,e){((0,C.indexOf)(n,t.getAxis("x").model)>=0||(0,C.indexOf)(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:vy.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){(0,C.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:vy.geo})}))}},my=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],vy={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ae.getTransform(t)),e}},xy={lineX:(0,C.curry)(_y,0),lineY:(0,C.curry)(_y,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[fy([i[0],o[0]]),fy([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,C.map)(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o})),xyMinMax:i}}};function _y(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=fy((0,C.map)([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var by={lineX:(0,C.curry)(Sy,0),lineY:(0,C.curry)(Sy,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return(0,C.map)(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function Sy(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function wy(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var My=dy,Iy=["inBrush","outOfBrush"],Ty="__ecBrushSelect";function Ay(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new My(e.option,t)).setInputRanges(e.areas,t)}))}function Cy(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),Ay(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:C.clone(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],p=!1;n||(r=s.throttleType,i=s.throttleDelay);var d=C.map(e.areas,(function(t){var e=Ly[t.brushType],n=C.defaults({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(r){return uy[e].point(r,n,t)},rect:function(r){return uy[e].rect(r,n,t)}};return n}(n),n})),f=ay(e.option,Iy,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}C.isArray(l)&&C.each(l,(function(t){u[t]=1})),t.eachSeries((function(n,r){var i=h[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;p=p||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,r):function(n,r,i){if(n.brushSelector&&!function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(C.isArray(n)?C.indexOf(n,e)<0:e!==n)}(e,r)&&(C.each(d,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),p=p||y(i)})),g(r)&&y(i))){var o=n.getData();o.each((function(t){ky(n,i,o,t)&&(c[t]=1)}))}}(n,r,i)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=h[e],i=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return ky(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?p:y(r))&&function(t,e,n,r,i,o){var a,s={};function l(t){return(0,ry.getItemVisualFromData)(n,a,t)}function u(t,e){(0,ry.setItemVisualFromData)(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var p=r.call(i,t),d=e[p],f=s[p],g=0,y=f.length;g<y;g++){var m=f[g];d[m]&&d[m].applyVisual(t,l,u)}}C.each(t,(function(t){var n=Ep.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}(Iy,f,i,o)}))})),function(t,e,n,r,i){if(i){var o=t.getZr();o.__ecInBrushSelectEvent||(o.__ecBrushSelect||(o.__ecBrushSelect=Dy),pe.createOrUpdate(o,Ty,n,e)(t,r))}}(e,r,i,o,n)}function Dy(t,e){if(!t.isDisposed()){var n=t.getZr();n.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),n.__ecInBrushSelectEvent=!1}}function ky(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}var Ly={rect:function(t){return Oy(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&Oy(e)}};function Oy(t){return new(0,uo.default)(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Py=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Rc(e.getZr())).on("brush",C.bind(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){Ay(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:C.clone(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:C.clone(n),$from:e})},e.type="brush",e}((Gl=o("jMGr2")).default),Ey=Py,Ry=(Kt=o("2pli3"),C=o("2fV2j"),ra=o("1C7zE"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return(0,Kt.__extends)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&sy(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=C.map(t,(function(t){return Ny(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=Ny(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}((Ll=o("krEnk")).default));function Ny(t,e){return C.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new(0,ra.default)(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var Vy=Ry,zy=(Kt=o("2pli3"),C=o("2fV2j"),function(){}),By={};function Fy(t,e){By[t]=e}function Gy(t){return By[t]}var jy=["rect","polygon","lineX","lineY","keep","clear"],Hy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,C.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return C.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:jy.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(zy),Wy=Hy;C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),Ll=o("krEnk"),Ai=o("aZMsI");var Uy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e,n,r){var i=(0,Ai.getLayoutParams)(e);t.prototype.init.apply(this,arguments),Yy(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Yy(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Ll.default);function Yy(t,e){var n,r=t.cellSize;1===(n=C.isArray(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var i=C.map([0,1],(function(t){return(0,Ai.sizeCalculable)(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));(0,Ai.mergeLayoutParam)(t,e,{type:"box",ignoreSize:i})}var Xy=Uy;Kt=o("2pli3"),C=o("2fV2j"),o("4x6s5"),se=o("4m2Ab"),mi=o("ln8jP"),nt=o("kjDai"),he=o("5xWWJ"),Xa=o("gnWKD"),de=o("iIXbb"),Gl=o("jMGr2");var Zy=o("fJkwV"),qy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new se.default({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function p(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new mi.default({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return(0,C.isString)(t)&&t?(0,Xa.formatTplSimple)(t,e):(0,C.isFunction)(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),y=new nt.default({z2:30,style:(0,he.createTextStyle)(i,{text:g})});y.attr(this._yearTextPositionControl(y,h[a],n,a,o)),r.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!(0,C.isString)(o)||(o&&(e=(0,Zy.getLocaleModel)(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,d=0;d<u[c].length-1;d++){var f=u[c][d].slice(),g=this._firstDayOfMonth[d];if(p){var y=this._firstDayPoints[d];f[h]=(y[h]+u[0][d+1][h])/2}var m=i.get("formatter"),v=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:v},_=this._formatterLabel(m,x),b=new nt.default({z2:30,style:(0,C.extend)((0,he.createTextStyle)(i,{text:_}),this._monthTextPositionControl(f,p,n,s,a))});r.add(b)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();l&&!(0,C.isString)(l)||(l&&(e=(0,Zy.getLocaleModel)(l)||e),l=e.get(["time","dayOfWeekShort"])||(0,C.map)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]})));var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=(0,de.parsePercent)(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=0;d<7;d++){var f,g=a.getNextNDay(h,d),y=a.dataToRect([g.time],!1).center;f=Math.abs((d+c)%7);var m=new nt.default({z2:30,style:(0,C.extend)((0,he.createTextStyle)(o,{text:l[f]}),this._weekTextPositionControl(y,r,s,u,p))});i.add(m)}}},e.type="calendar",e}(Gl.default),Ky=qy,Jy=(C=o("2fV2j"),Ai=o("aZMsI"),de=o("iIXbb"),864e5);function Qy(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var $y=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=de.parseDate(t)).getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return{y:e+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];C.each([0,1],(function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Ai.getLayoutRect(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}C.each([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){C.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+Jy))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=Qy(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=Qy(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(C.isArray(e)&&1===e.length&&(e=e[0]),C.isArray(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/Jy)-Math.floor(n[0].time/Jy)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}(),tm=o("lxQbO"),em=(d=o("loiyq"),Kt=o("2pli3"),Kt=o("2pli3"),C=o("2fV2j"),Ll=o("krEnk"),C=o("2fV2j"),["x","y","radius","angle","single"]),nm=["cartesian2d","polar","singleAxis"];function rm(t){return t+"Axis"}function im(t){var e=t.ecModel,n={infoList:[],infoMap:(0,C.createHashMap)()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(rm(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}Bn=o("jnApb");var om=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),am=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e,n){var r=sm(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=sm(t);(0,C.merge)(this.option,t,!0),(0,C.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,C.each)([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,C.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,C.each)(em,(function(n){var r=this.getReferringComponents(rm(n),Bn.MULTIPLE_REFERRING);if(r.specified){e=!0;var i=new om;(0,C.each)(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}function o(e,n){var i=e[0];if(i){var o=new om;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",Bn.SINGLE_REFERRING).models[0];a&&(0,C.each)(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Bn.SINGLE_REFERRING).models[0]&&o.add(t.componentIndex)}))}}}r&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),r&&(0,C.each)(em,(function(e){if(r){var i=n.findComponents({mainType:rm(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new om;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,C.each)([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(rm(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){(0,C.each)(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(rm(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,C.each)([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,C.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ll.default);function sm(t){var e={};return(0,C.each)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var lm=am,um=(ee=o("aRppD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="dataZoom.inside",e.defaultOption=(0,ee.inheritDefaultOption)(lm.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(lm)),cm=um,hm=(Kt=o("2pli3"),Kt=o("2pli3"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}((Gl=o("jMGr2")).default)),pm=hm,dm=(pe=o("lx0YT"),Bn=o("jnApb"),C=o("2fV2j"),(0,Bn.makeInner)());function fm(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function gm(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function ym(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}C=o("2fV2j");var mm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,Kt.__extends)(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){dm(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}(r,e,{pan:(0,C.bind)(vm.pan,this),zoom:(0,C.bind)(vm.zoom,this),scrollMove:(0,C.bind)(vm.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=dm(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||fm(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(pm),vm={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=_m[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return du(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:xm((function(t,e,n,r,i,o){var a=_m[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:xm((function(t,e,n,r,i,o){return _m[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function xm(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return du(t(a,s,e,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var _m={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},bm=mm,Sm=(C=o("2fV2j"),C=o("2fV2j"),de=o("iIXbb"),hu=o("9XcNn"),o("3fNUT")),wm=(Bn=o("jnApb"),C.each),Mm=de.asc,Im=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return(0,C.indexOf)(nm,e)>=0}(e)){var n=rm(this._dimName),r=e.getReferringComponents(n,Bn.SINGLE_REFERRING).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return C.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];wm(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),h=r.parse(de.linearMap(c,o,n))):(e=!0,h=null==h?n[u]:r.parse(h),c=de.linearMap(h,n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),Mm(s),Mm(a);var l=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";du(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=de.linearMap(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];wm(n,(function(t){(0,hu.unionAxisExtentFromData)(r,t.getData(),e)}));var i=t.getAxisModel(),o=(0,Sm.ensureScaleRawExtentInfo)(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&wm(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=e.getStore(),s=C.map(r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,l=0;l<r.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],p=u>o[1];if(c&&!h&&!p)return!0;c&&(i=!0),h&&(e=!0),p&&(n=!0)}return i&&e&&n}))}else wm(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));wm(r,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;wm(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=de.linearMap(n[0]+o,n,[0,100],!0):null!=i&&(o=de.linearMap(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=de.getPixelPrecision(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}(),Tm={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(rm(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new Im(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=(0,C.createHashMap)();return(0,C.each)(n,(function(t){(0,C.each)(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};function Am(t){t.registerAction("dataZoom",(function(t,e){var n=function(t,e){var n,r=(0,C.createHashMap)(),i=[],o=(0,C.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}(e,t);(0,C.each)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}C=o("2fV2j");var Cm=!1;function Dm(t){Cm||(Cm=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Tm),Am(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function km(t){Dm(t),t.registerComponentModel(cm),t.registerComponentView(bm),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=dm(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=(0,C.createHashMap)());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=im(t);(0,C.each)(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(t,e){var n={model:e,containsPoint:(0,C.curry)(ym,e),dispatchAction:(0,C.curry)(gm,t),dataZoomInfoMap:null,controller:null},r=n.controller=new Fo(t.getZr());return(0,C.each)(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,C.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=function(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),pe.createOrUpdate(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else fm(r,t)}))}))}(t)}Kt=o("2pli3"),ee=o("aRppD");var Lm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,ee.inheritDefaultOption)(lm.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(lm),Om=Lm;Kt=o("2pli3"),C=o("2fV2j"),Po=o("9Ocvr"),o("4x6s5"),se=o("4m2Ab"),vi=o("4w8lf"),mi=o("ln8jP"),ae=o("4x6s5"),ie=o("4zWIO"),yi=o("7k07j"),nt=o("kjDai"),pe=o("lx0YT"),de=o("iIXbb"),Ai=o("aZMsI"),ce=o("6EdQu"),ti=o("8TH6f"),he=o("5xWWJ");var Pm=se.default,Em="horizontal",Rm="vertical",Nm=["line","bar","candlestick","scatter"],Vm={easing:"cubicOut",duration:100,delay:0},zm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,C.bind)(this._onBrush,this),this._onBrushEnd=(0,C.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),pe.createOrUpdate(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){pe.clear(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new ie.default;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o=this._orient===Em?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=Ai.getLayoutParams(t.option);(0,C.each)(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Ai.getLayoutRect(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Rm&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Em||i?n===Em&&i?{scaleY:a?1:-1,scaleX:-1}:n!==Rm||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new Pm({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new Pm({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,C.bind)(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=d[1]/(i.count()-1),m=0,v=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(v>0&&e%v)m+=y;else{var n=null==t||isNaN(t)||""===t,r=n?0:(0,de.linearMap)(t,u,p,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([m,0]),g.push([m,0])),f.push([m,r]),g.push([m,r]),m+=y,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=S(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function S(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new ie.default,r=new vi.default({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new mi.default({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();(0,C.each)(a,(function(t){if(!(n||!0!==e&&(0,C.indexOf)(Nm,t.get("type"))<0)){var a,s=r.getComponent(rm(i),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new Pm({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new Pm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,C.each)([0,1],(function(e){var o=a.get("handleIcon");!ti.symbolBuildProxies[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,ti.createSymbol)(o,-1,0,2,2,null,!0);s.attr({cursor:Bm(this._orient),draggable:!0,drift:(0,C.bind)(this._onDragMove,this,e),ondragend:(0,C.bind)(this._onDragEnd,this),onmouseover:(0,C.bind)(this._showDataInfo,this,!0),onmouseout:(0,C.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=(0,de.parsePercent)(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,ce.enableHoverEmphasis)(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new nt.default({silent:!0,invisible:!0,style:(0,he.createTextStyle)(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var p=(0,de.parsePercent)(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new se.default({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=(0,ti.createSymbol)(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(h=e.moveZone=new se.default({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),i.add(d),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:Bm(this._orient),drift:(0,C.bind)(this._onDragMove,this,"all"),ondragstart:(0,C.bind)(this._showDataInfo,this,!0),ondragend:(0,C.bind)(this._onDragEnd,this),onmouseover:(0,C.bind)(this._showDataInfo,this,!0),onmouseout:(0,C.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,de.linearMap)(t[0],[0,100],e,!0),(0,de.linearMap)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];du(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?(0,de.linearMap)(o.minSpan,a,i,!0):null,null!=o.maxSpan?(0,de.linearMap)(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=(0,de.asc)([(0,de.linearMap)(r[0],i,a,!0),(0,de.linearMap)(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=(0,de.asc)(n.slice()),i=this._size;(0,C.each)([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new se.default,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,de.asc)(this._handleEnds.slice());function h(t){var e=ae.getTransform(n.handles[t].parent,this.group),a=ae.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=ae.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===Em?"middle":a,align:i===Em?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return(0,C.isFunction)(r)?r(t,o):(0,C.isString)(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,Po.stop(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=ae.applyTransform([e,n],i,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new yi.default(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=(0,de.asc)([(0,de.linearMap)(n.x,r,i,!0),(0,de.linearMap)(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Po.stop(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new Pm({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Vm:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=im(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(pm);function Bm(t){return"vertical"===t?"ns-resize":"ew-resize"}var Fm=zm;function Gm(t){t.registerComponentModel(Om),t.registerComponentView(Fm),Dm(t)}function jm(t,e){var n;return C.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),Bn=o("jnApb"),Ll=o("krEnk"),Ai=o("aZMsI");var Hm=["transition","enterFrom","leaveTo"],Wm=Hm.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Um(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?Hm:Wm,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var Ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return(0,Kt.__extends)(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=Bn.mappingToExists(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];C.each(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var r=C.extend({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(C.merge(i,r,!0),(0,Ai.mergeLayoutParam)(i,r,{ignoreSize:!0}),(0,Ai.copyLayoutParams)(n,i),Um(n,i),Um(n,i,"shape"),Um(n,i,"style"),Um(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}(i,e,n),function(t,e){if(t&&(t.hv=e.hv=[jm(e,["left","right"]),jm(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[e],n))}),this),n.elements=C.filter(i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){C.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Ll.default);Kt=o("2pli3"),C=o("2fV2j"),Kn=o("32n5A"),Bn=o("jnApb"),o("4x6s5"),m=o("b1qY0"),ae=o("4x6s5"),ie=o("4zWIO"),nt=o("kjDai"),Ai=o("aZMsI"),de=o("iIXbb"),Gl=o("jMGr2"),ue=o("by2b6"),oe=o("4NPqX");var Xm={path:null,compoundPath:null,group:ie.default,image:m.default,text:nt.default},Zm=Bn.makeInner(),qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){this._elMap=C.createHashMap()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");C.each(e,(function(e){var a=Bn.convertOptionIdName(e.id,null),s=null!=a?n.get(a):null,l=Bn.convertOptionIdName(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=e.textContent,d=e.textConfig;if(h&&Jn(h,c,!!d,!!p)){var f=Qn(h,c,!0);!d&&f.textConfig&&(d=e.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=function(t){return t=C.extend({},t),C.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ai.LOCATION_PARAMS),(function(e){delete t[e]})),t}(e),y=e.$action||"merge",m="merge"===y,v="replace"===y;if(m){var x=s;(T=!s)?x=Jm(a,u,e.type,n):(x&&(Zm(x).isNew=!1),br(x)),x&&(ur(x,g,t,{isInit:T}),$m(x,e,i,o))}else if(v){Qm(s,e,n,t);var _=Jm(a,u,e.type,n);_&&(ur(_,g,t,{isInit:!0}),$m(_,e,i,o))}else"remove"===y&&(cr(s,e),Qm(s,e,n,t));var b=n.get(a);if(b&&p)if(m){var S=b.getTextContent();S?S.attr(p):b.setTextContent(new nt.default(p))}else v&&b.setTextContent(new nt.default(p));if(b){var w=e.clipPath;if(w){var M=w.type,I=void 0,T=!1;if(m){var A=b.getClipPath();I=(T=!A||Zm(A).type!==M)?Km(M):A}else v&&(T=!0,I=Km(M));b.setClipPath(I),ur(I,w,t,{isInit:T}),Sr(I,w.keyframeAnimation,t)}var D=Zm(b);b.setTextConfig(d),D.option=e,function(t,e,n){var r=(0,ue.getECData)(t).eventData;t.silent||t.ignore||r||(r=(0,ue.getECData)(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}(b,t,e),ae.setTooltipConfig({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),Sr(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l];if((f=null!=(d=Bn.convertOptionIdName(u.id,null))?i.get(d):null)&&f.isGroup){var c=(g=f.parent)===r,h=Zm(f),p=Zm(g);h.width=(0,de.parsePercent)(h.option.width,c?o:p.width)||0,h.height=(0,de.parsePercent)(h.option.height,c?a:p.height)||0}}for(l=n.length-1;l>=0;l--){var d,f;if(u=n[l],f=null!=(d=Bn.convertOptionIdName(u.id,null))?i.get(d):null){var g=f.parent,y=(p=Zm(g),g===r?{width:o,height:a}:{width:p.width,height:p.height}),m={},v=Ai.positionElement(f,u,y,null,{hv:u.hv,boundingMode:u.bounding},m);if(!Zm(f).isNew&&v){for(var x=u.transition,_={},b=0;b<s.length;b++){var S=s[b],w=m[S];x&&(pr(x)||C.indexOf(x,S)>=0)?_[S]=w:f[S]=w}(0,oe.updateProps)(f,_,t,0)}else f.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){Qm(n,Zm(n).option,e,t._lastGraphicModel)})),this._elMap=C.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Gl.default);function Km(t){var e=new(C.hasOwn(Xm,t)?Xm[t]:ae.getShapeClass(t))({});return Zm(e).type=t,e}function Jm(t,e,n,r){var i=Km(n);return e.add(i),r.set(t,i),Zm(i).id=t,Zm(i).isNew=!0,i}function Qm(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse((function(t){Qm(t,e,n,r)})),hr(t,e,r),n.removeKey(Zm(t).id))}function $m(t,e,n,r){t.isGroup||C.each([["cursor",Kn.default.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];C.hasOwn(e,r)?t[r]=C.retrieve2(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),C.each(C.keys(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=C.isFunction(r)?r:null}})),C.hasOwn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}d=o("loiyq"),d=o("loiyq"),Kt=o("2pli3"),C=o("2fV2j"),ra=o("1C7zE"),Bn=o("jnApb");var tv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),C.isArray(e)&&C.each(e,(function(t,r){C.isString(t)&&(t={type:t}),e[r]=C.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&(0,Bn.isNameSpecified)(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=C.createHashMap(),o=C.map(r,(function(t){return(C.isString(t)||C.isNumber(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new(0,ra.default)(t,this,this.ecModel))}),this);this._data=C.filter(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;C.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;C.each(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;C.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&C.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}((Ll=o("krEnk")).default),ev=tv;function nv(t,e){var n=Xa.normalizeCssArray(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),new se.default({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}Kt=o("2pli3"),C=o("2fV2j"),it=o("6s8l4"),ie=o("4zWIO"),o("4x6s5"),se=o("4m2Ab"),ae=o("4x6s5"),nt=o("kjDai"),ce=o("6EdQu"),he=o("5xWWJ"),Ai=o("aZMsI"),Xa=o("gnWKD"),o("4x6s5"),se=o("4m2Ab"),Ai=o("aZMsI"),Gl=o("jMGr2"),ti=o("8TH6f"),nr=o("35g6g"),ue=o("by2b6");var rv=C.curry,iv=C.each,ov=ie.default,av=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new ov),this.group.add(this._selectorGroup=new ov),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=Ai.getLayoutRect(l,u,c),p=this.layoutInner(t,i,h,r,a,s),d=Ai.getLayoutRect(C.defaults({width:p.width,height:p.height},l),u,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nv(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=C.createHashMap(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),iv(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new ov;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),m=this._createItem(p,a,o,i,e,t,f,y,g,u,r);m.on("click",rv(sv,a,null,r,c)).on("mouseover",rv(uv,p.name,null,r,c)).on("mouseout",rv(cv,p.name,null,r,c)),n.ssr&&m.eachChild((function(t){var e=(0,ue.getECData)(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var p=h.indexOfName(a),d=h.getItemVisual(p,"style"),f=h.getItemVisual(p,"legendIcon"),g=(0,it.parse)(d.fill);g&&0===g[3]&&(g[3]=.2,d=C.extend(C.extend({},d),{fill:(0,it.stringify)(g,"rgba")}));var y=this._createItem(s,a,o,i,e,t,{},d,f,u,r);y.on("click",rv(sv,null,a,r,c)).on("mouseover",rv(uv,null,a,r,c)).on("mouseout",rv(cv,null,a,r,c)),n.ssr&&y.eachChild((function(t){var e=(0,ue.getECData)(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this)}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();iv(t,(function(t){var r=t.type,i=new nt.default({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,he.setLabelStyle)(i,{normal:a,emphasis:s},{defaultText:t.title}),(0,ce.enableHoverEmphasis)(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,p=i.get("itemWidth"),d=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),m=r.get("icon"),v=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),iv(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,nr.createOrUpdatePatternFromDecal)(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=m||l||"roundRect",r,a,s,h,f,c),x=new ov,_=r.getModel("textStyle");if(!C.isFunction(t.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=(0,ti.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:b,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:y}));var S="left"===o?p+5:-5,w=o,M=i.get("formatter"),I=e;C.isString(M)&&M?I=M.replace("{name}",null!=e?e:""):C.isFunction(M)&&(I=M(e));var T=f?_.getTextColor():r.get("inactiveColor");x.add(new nt.default({style:(0,he.createTextStyle)(_,{text:I,x:S,y:d/2,fill:T,align:w,verticalAlign:"middle"},{inheritColor:T})}));var A=new se.default({shape:x.getBoundingRect(),style:{fill:"transparent"}}),D=r.getModel("tooltip");return D.get("show")&&ae.setTooltipConfig({el:A,componentModel:i,itemName:e,itemTooltipOption:D.option}),x.add(A),x.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(x),(0,ce.enableHoverEmphasis)(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Ai.box(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){Ai.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+p+c[f],m[g]=Math.max(l[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gl.default);function sv(t,e,n,r){cv(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),uv(t,e,n,r)}function lv(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function uv(t,e,n,r){lv(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function cv(t,e,n,r){lv(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var hv=av;function pv(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function dv(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();(0,C.each)(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function fv(t){t.registerComponentModel(ev),t.registerComponentView(hv),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,pv),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,C.curry)(dv,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,C.curry)(dv,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,C.curry)(dv,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,C.curry)(dv,"select")),t.registerAction("legendUnSelect","legendunselected",(0,C.curry)(dv,"unSelect"))}(t)}C=o("2fV2j"),d=o("loiyq"),Kt=o("2pli3"),Ai=o("aZMsI"),ee=o("aRppD");var gv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=(0,Ai.getLayoutParams)(e);t.prototype.init.call(this,e,n,r),yv(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),yv(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,ee.inheritDefaultOption)(ev.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(ev);function yv(t,e,n){var r=[1,1];r[t.getOrient().index]=0,(0,Ai.mergeLayoutParam)(e,n,{type:"box",ignoreSize:!!r})}var mv=gv,vv=(Kt=o("2pli3"),C=o("2fV2j"),ae=o("4x6s5"),se=o("4m2Ab"),oe=o("4NPqX"),ie=o("4zWIO"),nt=o("kjDai"),Ai=o("aZMsI"),ie.default),xv=["width","height"],_v=["x","y"],bv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new vv),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vv)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=C.isArray(c)?c:[c,c];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var r=t+"DataIndex",o=ae.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:C.bind(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new nt.default({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=xv[s],u=_v[s],c=xv[1-s],h=_v[1-s];i&&Ai.box("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=C.clone(n);i&&(g[l]=n[l]-d[l]-p);var y=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)f[s]+=y[l]+p;else{var m=d[l]+p;f[s]-=m,y[u]-=m}y[l]+=d[l]+p,f[1-s]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Ai.box(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),Ai.box("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[i]>n[i],f=[-h.x,-h.y];e||(f[r]=l[s]);var g=[0,0],y=[-p.x,-p.y],m=C.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[r]+=n[i]-p[i]:g[r]+=p[i]+m),y[1-r]+=h[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var v={x:0,y:0};if(v[i]=d?n[i]:h[i],v[o]=Math.max(h[o],p[o]),v[a]=Math.min(0,p[a]+y[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-p[i]-m,0),x[o]=v[o],u.setClipPath(new se.default({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&oe.updateProps(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),v},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;C.each(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",C.isString(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=xv[i],a=_v[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=v(u);p.contentPosition[i]=-d.s;for(var f=s+1,g=d,y=d,m=null;f<=c;++f)(!(m=v(l[f]))&&y.e>g.s+r||m&&!x(m,g.s))&&(g=y.i>g.i?y:m)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=m;for(f=s-1,g=d,y=d,m=null;f>=-1;--f)(m=v(l[f]))&&x(y,m.s)||!(g.i<y.i)||(y=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=m;return p;function v(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(hv),Sv=bv;function wv(t){(0,d.use)(fv),t.registerComponentModel(mv),t.registerComponentView(Sv),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}function Mv(t,e){if(!t)return!1;for(var n=(0,C.isArray)(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}C=o("2fV2j"),Kt=o("2pli3"),Kt=o("2pli3"),C=o("2fV2j"),Vg=o("akmdr");var Iv=o("5cO6H");function Tv(t){(0,Bn.defaultEmphasis)(t,"label",["show"])}Ll=o("krEnk"),Bn=o("jnApb"),ba=o("dcFkT");var Av=(0,Bn.makeInner)(),Cv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Vg.default.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=Av(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&Tv(n),C.each(n.data,(function(t){t instanceof Array?(Tv(t[0]),Tv(t[1])):Tv(t)})),o=this.createMarkerModelFromSeries(n,this,e),C.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),Av(t)[i]=o):Av(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return(0,ba.createTooltipMarkup)("section",{header:this.name,blocks:[(0,ba.createTooltipMarkup)("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return Av(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Ll.default);C.mixin(Cv,Iv.DataFormatMixin.prototype);var Dv=Cv,kv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Dv),Lv=kv;Kt=o("2pli3"),it=o("6s8l4"),Xe=o("ao62o"),de=o("iIXbb"),ie=o("4zWIO"),o("4x6s5"),vi=o("4w8lf"),oe=o("4NPqX"),ce=o("6EdQu"),de=o("iIXbb"),ci=o("1O8EX"),C=o("2fV2j");var Ov=o("9L5Mv");function Pv(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Ev(t,e,n,r,i,o){var a=[],s=(0,ci.isDimensionStacked)(e,r)?e.getCalculationInfo("stackResultDimension"):r,l=Fv(e,s,t),u=e.indicesOfNearest(s,l)[0];a[i]=e.get(n,u),a[o]=e.get(s,u);var c=e.get(r,u),h=de.getPrecision(e.get(r,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var Rv={min:(0,C.curry)(Ev,"min"),max:(0,C.curry)(Ev,"max"),average:(0,C.curry)(Ev,"average"),median:(0,C.curry)(Ev,"median")};function Nv(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!(0,C.isArray)(e.coord)&&(0,C.isArray)(i)){var o=Vv(e,n,r,t);if((e=(0,C.clone)(e)).type&&Rv[e.type]&&o.baseAxis&&o.valueAxis){var a=(0,C.indexOf)(i,o.baseAxis.dim),s=(0,C.indexOf)(i,o.valueAxis.dim),l=Rv[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&(0,C.isArray)(i))for(var u=e.coord,c=0;c<2;c++)Rv[u[c]]&&(u[c]=Fv(n,n.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function Vv(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function zv(t,e){return!(t&&t.containData&&e.coord&&!Pv(e))||t.containData(e.coord)}function Bv(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return(0,Ov.parseDataValue)(o,e[i])}:function(t,n,r,i){return(0,Ov.parseDataValue)(t.value,e[i])}}function Fv(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}Kt=o("2pli3"),Gl=o("jMGr2"),C=o("2fV2j"),Bn=o("jnApb"),ce=o("6EdQu");var Gv=(0,Bn.makeInner)(),jv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(){this.markerGroupMap=(0,C.createHashMap)()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){Gv(t).keep=!1})),e.eachSeries((function(t){var i=Dv.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!Gv(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){Gv(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;(0,C.each)(t,(function(t){var r=Dv.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?(0,ce.enterBlur)(t):(0,ce.leaveBlur)(t))}))}))},e.type="marker",e}(Gl.default),Hv=jv,Wv=(C=o("2fV2j"),Bn=o("jnApb"),ry=o("kJZzU"),he=o("5xWWJ"),ue=o("by2b6"),Ov=o("9L5Mv"),(0,Bn.makeInner)()),Uv=function(t,e,n,r){var i=r[0],o=r[1];if(i&&o){var a=Nv(t,i),s=Nv(t,o),l=a.coord,u=s.coord;l[0]=(0,C.retrieve)(l[0],-1/0),l[1]=(0,C.retrieve)(l[1],-1/0),u[0]=(0,C.retrieve)(u[0],1/0),u[1]=(0,C.retrieve)(u[1],1/0);var c=(0,C.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function Yv(t){return!isNaN(t)&&!isFinite(t)}function Xv(t,e,n,r){var i=1-t;return Yv(e[i])&&Yv(n[i])}function Zv(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return _e(t,"cartesian2d")?!(!n||!r||!Xv(1,n,r)&&!Xv(0,n,r))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!Pv(e)&&!Pv(n))||t.containZone(e.coord,n.coord)}(t,i,o):zv(t,i)||zv(t,o)}function qv(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=de.parsePercent(s.get(n[0]),i.getWidth()),u=de.parsePercent(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),p=a.clampData(c),d=a.clampData(h),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?h[0]:c[0]:f[0]=p[0]>d[0]?c[0]:h[0],"y0"===n[1]?f[1]=p[1]>d[1]?h[1]:c[1]:f[1]=p[1]>d[1]?c[1]:h[1],o=r.getMarkerPosition(f,n,!0)}else{var g=[v=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(_e(a,"cartesian2d")){var y=a.getAxis("x"),m=a.getAxis("y"),v=t.get(n[0],e),x=t.get(n[1],e);Yv(v)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):Yv(x)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var Kv=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Jv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Dv.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=(0,C.map)(Kv,(function(i){return qv(r,e,i,t,n)}));r.setItemLayout(e,i),r.getItemGraphicEl(e).setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new ie.default});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var r,i;if(t){var o=(0,C.map)(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return(0,C.extend)((0,C.extend)({},r),{name:t,ordinalMeta:null})}));i=(0,C.map)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:o[e%2].type}})),r=new(0,Xe.default)(i,n)}else i=[{name:"value",type:"float"}],r=new(0,Xe.default)(i,n);var a=(0,C.map)(n.get("data"),(0,C.curry)(Uv,e,t,n));t&&(a=(0,C.filter)(a,(0,C.curry)(Zv,t)));var s=t?function(t,e,n,r){var o=t.coord[Math.floor(r/2)][r%2];return(0,Ov.parseDataValue)(o,i[r])}:function(t,e,n,r){return(0,Ov.parseDataValue)(t.value,i[r])};return r.initData(a,null,s),r.hasItemOption=!0,r}(i,t,e);e.setData(u),u.each((function(e){var n=(0,C.map)(Kv,(function(n){return qv(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];de.asc(h),de.asc(p);var d=!!(l[0]>h[1]||l[1]<h[0]||c[0]>p[1]||c[1]<p[0]);u.setItemLayout(e,{points:n,allClipped:d});var f=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=(0,ry.getVisualFromData)(a,"color");f.fill||(f.fill=g,(0,C.isString)(f.fill)&&(f.fill=it.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(e,"style",f)})),u.diff(Wv(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new vi.default({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=Wv(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?oe.updateProps(r,{shape:{points:i.points}},e,t):r=new vi.default({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=Wv(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),(0,he.setLabelStyle)(t,(0,he.getLabelStatesModels)(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:(0,C.isString)(i.fill)?it.modifyAlpha(i.fill,1):"#000"}),(0,ce.setStatesStylesFromModel)(t,r),(0,ce.toggleHoverEmphasis)(t,null,null,r.get(["emphasis","disabled"])),(0,ue.getECData)(t).dataModel=e})),Wv(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(Hv),Qv=Jv;Kt=o("2pli3");var $v=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Dv),tx=$v,ex=(Kt=o("2pli3"),Xe=o("ao62o"),de=o("iIXbb"),ci=o("1O8EX"),ue=o("by2b6"),C=o("2fV2j"),Bn=o("jnApb"),ry=o("kJZzU"),(0,Bn.makeInner)()),nx=function(t,e,n,r){var i,o=t.getData();if((0,C.isArray)(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=(0,C.retrieve)(r.yAxis,r.xAxis);else{var u=Vv(r,o,e,t);s=u.valueAxis,l=Fv(o,(0,ci.getStackedDimension)(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,p=(0,C.clone)(r),d={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,d.coord[h]=1/0;var f=n.get("precision");f>=0&&(0,C.isNumber)(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[c]=d.coord[c]=l,i=[p,d,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[Nv(t,i[0]),Nv(t,i[1]),(0,C.extend)({},i[2])];return g[2].type=g[2].type||null,(0,C.merge)(g[2],g[0]),(0,C.merge)(g[2],g[1]),g};function rx(t){return!isNaN(t)&&!isFinite(t)}function ix(t,e,n,r){var i=1-t,o=r.dimensions[t];return rx(e[i])&&rx(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function ox(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(ix(1,n,r,t)||ix(0,n,r,t)))return!0}return zv(t,e[0])&&zv(t,e[1])}function ax(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=de.parsePercent(s.get("x"),i.getWidth()),u=de.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),p=t.get(c[1],e);o=a.dataToPoint([h,p])}if(_e(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions,rx(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):rx(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var sx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Dv.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=ex(e).from,o=ex(e).to;i.each((function(e){ax(i,e,!0,t,n),ax(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Lo);this.group.add(l.group);var u=function(t,e,n){var r;r=t?(0,C.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,C.extend)((0,C.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new(0,Xe.default)(r,n),o=new(0,Xe.default)(r,n),a=new(0,Xe.default)([],n),s=(0,C.map)(n.get("data"),(0,C.curry)(nx,e,t,n));t&&(s=(0,C.filter)(s,(0,C.curry)(ox,t)));var l=Bv(!!t,r);return i.initData((0,C.map)(s,(function(t){return t[0]})),null,l),o.initData((0,C.map)(s,(function(t){return t[1]})),null,l),a.initData((0,C.map)(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,t,e),c=u.from,h=u.to,p=u.line;ex(e).from=c,ex(e).to=h,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function m(e,n,i){var o=e.getItemModel(n);ax(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=(0,ry.getVisualFromData)(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,C.retrieve2)(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:(0,C.retrieve2)(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:(0,C.retrieve2)(o.get("symbolSize"),f[i?0:1]),symbol:(0,C.retrieve2)(o.get("symbol",!0),d[i?0:1]),style:s})}(0,C.isArray)(d)||(d=[d,d]),(0,C.isArray)(f)||(f=[f,f]),(0,C.isArray)(g)||(g=[g,g]),(0,C.isArray)(y)||(y=[y,y]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(p),u.line.eachItemGraphicEl((function(t){(0,ue.getECData)(t).dataModel=e,t.traverse((function(t){(0,ue.getECData)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Hv),lx=sx;Kt=o("2pli3");var ux=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Dv),cx=ux;function hx(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=de.parsePercent(a.get("x"),n.getWidth()),l=de.parsePercent(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}Kt=o("2pli3"),de=o("iIXbb"),Xe=o("ao62o"),C=o("2fV2j"),ue=o("by2b6"),ry=o("kJZzU");var px=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Dv.getMarkerModelFromSeries(t,"markPoint");e&&(hx(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new ai),u=function(t,e,n){var r;r=t?(0,C.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,C.extend)((0,C.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new(0,Xe.default)(r,n),o=(0,C.map)(n.get("data"),(0,C.curry)(Nv,e));t&&(o=(0,C.filter)(o,(0,C.curry)(zv,t)));var a=Bv(!!t,r);return i.initData(o,null,a),i}(i,t,e);e.setData(u),hx(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if((0,C.isFunction)(r)||(0,C.isFunction)(i)||(0,C.isFunction)(o)||(0,C.isFunction)(s)){var c=e.getRawValue(t),h=e.getDataParams(t);(0,C.isFunction)(r)&&(r=r(c,h)),(0,C.isFunction)(i)&&(i=i(c,h)),(0,C.isFunction)(o)&&(o=o(c,h)),(0,C.isFunction)(s)&&(s=s(c,h))}var p=n.getModel("itemStyle").getItemStyle(),d=(0,ry.getVisualFromData)(a,"color");p.fill||(p.fill=d),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){(0,ue.getECData)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(Hv),dx=px;Kt=o("2pli3"),d=o("loiyq"),Kt=o("2pli3"),ae=o("4x6s5"),ui=o("2QCok");var fx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=r.get("type");if(u&&"none"!==u){var c=Sg(r),h=gx[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var p=function(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var p=ui.create();ui.rotate(p,p,s),ui.translate(p,p,[r.cx,r.cy]),l=ae.applyTransform([a,-i],p);var d=e.getModel("axisLabel").get("rotate")||0,f=Zu.innerTextLayout(s,d*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var y=r.cx,m=r.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,r.get(["label","margin"]));wg(t,n,r,i,p)},e}(bg),gx={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:Ag(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Dg(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:Dg(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},yx=fx,mx=(Kt=o("2pli3"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}((Ll=o("krEnk")).default)),vx=mx,xx=(Kt=o("2pli3"),C=o("2fV2j"),Ll=o("krEnk"),Vu=o("aZZ0S"),Bn=o("jnApb"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Bn.SINGLE_REFERRING).models[0]},e.type="polarAxis",e}(Ll.default));C.mixin(xx,Vu.AxisModelCommonMixin);var _x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="angleAxis",e}(xx),bx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="radiusAxis",e}(xx),Sx=(C=o("2fV2j"),Kt=o("2pli3"),function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return(0,Kt.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}((Ix=o("jXYF6")).default));Sx.prototype.dataToRadius=Ix.default.prototype.dataToCoord,Sx.prototype.radiusToData=Ix.default.prototype.coordToData;var Mx=Sx,Ix=(Kt=o("2pli3"),v=o("lj5IW"),o("jXYF6")),Tx=(0,(Bn=o("jnApb")).makeInner)(),Ax=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return(0,Kt.__extends)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=v.getBoundingRect(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=Tx(t.model),p=h.lastAutoInterval,d=h.lastTickCount;return null!=p&&null!=d&&Math.abs(p-c)<=1&&Math.abs(d-i)<=1&&p>c?c=p:(h.lastTickCount=i,h.lastAutoInterval=c),c},e}(Ix.default);Ax.prototype.dataToAngle=Ix.default.prototype.dataToCoord,Ax.prototype.angleToData=Ix.default.prototype.coordToData;var Cx=Ax,Dx=["radius","angle"];function kx(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var Lx=function(){function t(t){this.dimensions=Dx,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Mx,this._angleAxis=new Cx,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return kx(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return kx(e)===this?this.pointToData(n):null},t}();function Ox(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();C.each((0,hu.getDataDimensionsOnAxis)(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),C.each((0,hu.getDataDimensionsOnAxis)(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),(0,hu.niceScaleExtent)(r.scale,r.model),(0,hu.niceScaleExtent)(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function Px(t,e){var n;if(t.type=e.get("type"),t.scale=(0,hu.createScaleByModel)(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=null!==(n=e.get("endAngle"))&&void 0!==n?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}de=o("iIXbb"),hu=o("9XcNn"),Bn=o("jnApb");var Ex={dimensions:Dx,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new Lx(r+"");i.update=Ox;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Px(o,s),Px(a,l),function(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=(0,de.parsePercent)(r[0],i),t.cy=(0,de.parsePercent)(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:C.isArray(l)||(l=[0,l]);var u=[(0,de.parsePercent)(l[0],s),(0,de.parsePercent)(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Bn.SINGLE_REFERRING).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},Rx=(Kt=o("2pli3"),C=o("2fV2j"),ae=o("4x6s5"),he=o("5xWWJ"),ra=o("1C7zE"),ue=o("by2b6"),["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"]);function Nx(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function Vx(t){return t.getRadiusAxis().inverse?0:1}function zx(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var Bx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=C.map(n.getViewLabels(),(function(t){t=C.clone(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));zx(s),zx(o),C.each(Rx,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||Fx[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(hd),Fx={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=Vx(n),p=h?0:1,d=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[p]?new ae[d]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new ae.Ring({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Vx(n)],u=C.map(r,(function(t){return new ae.Line({shape:Nx(n,[l,l+s],t.coord)})}));t.add(ae.mergePath(u,{style:C.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Vx(n)],c=[],h=0;h<i.length;h++)for(var p=0;p<i[h].length;p++)c.push(new ae.Line({shape:Nx(n,[u,u+l],i[h][p].coord)}));t.add(ae.mergePath(c,{style:C.defaults(s.getModel("lineStyle").getLineStyle(),C.defaults(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");C.each(a,(function(r,i){var a=l,h=r.tickValue,p=o[Vx(n)],d=n.coordToPoint([p+u,r.coord]),f=n.cx,g=n.cy,y=Math.abs(d[0]-f)/p<.3?"center":d[0]>f?"left":"right",m=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var v=s[h];C.isObject(v)&&v.textStyle&&(a=new(0,ra.default)(v.textStyle,l,l.ecModel))}var x=new ae.Text({silent:Zu.isLabelSilent(e),style:(0,he.createTextStyle)(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:m})});if(t.add(x),c){var _=Zu.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=r.rawLabel,(0,ue.getECData)(x).eventData=_}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new ae.Line({shape:Nx(n,o,r[c].coord)}))}for(c=0;c<u.length;c++)t.add(ae.mergePath(u[c],{style:C.defaults({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new ae.Line({shape:Nx(n,o,i[l][u].coord)}));t.add(ae.mergePath(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-r[0].coord*c,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,v=l++%s.length;u[v]=u[v]||[],u[v].push(new ae.Sector({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:h,endAngle:-m*c,clockwise:f},silent:!0})),h=-m*c}for(g=0;g<u.length;g++)t.add(ae.mergePath(u[g],{style:C.defaults({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},Gx=Bx,jx=(Kt=o("2pli3"),C=o("2fV2j"),ae=o("4x6s5"),["axisLine","axisTickLabel","axisName"]),Hx=["splitLine","splitArea","minorSplitLine"],Wx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new ae.Group;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,u),p=new Zu(t,h);C.each(jx,p.add,p),r.add(p.getGroup()),ae.groupTransition(n,r,t),C.each(Hx,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&Ux[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(hd),Ux={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),p=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var d=[],f=0;f<o.length;f++){var g=l++%s.length;d[g]=d[g]||[],d[g].push(new ae[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(f=0;f<d.length;f++)t.add(ae.mergePath(d[f],{style:C.defaults({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new ae.Circle({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(ae.mergePath(l,{style:C.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new ae.Sector({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)t.add(ae.mergePath(u[h],{style:C.defaults({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}},Yx=Wx;function Xx(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Zx(t,e){return e.dim+t.model.componentIndex}Gl=o("jMGr2"),C=o("2fV2j"),C=o("2fV2j"),de=o("iIXbb"),ci=o("1O8EX");var qx=function(t,e,n){var r={},i=function(t){var e={};C.each(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=Zx(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=Xx(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var p=(0,de.parsePercent)(t.get("barWidth"),l),d=(0,de.parsePercent)(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");p&&!c[h].width&&(p=Math.min(u.remainedWidth,p),c[h].width=p,u.remainedWidth-=p),d&&(c[h].maxWidth=d),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return C.each(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=(0,de.parsePercent)(t.categoryGap,i),a=(0,de.parsePercent)(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),C.each(r,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;C.each(r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var p=-h/2;C.each(r,(function(t,r){n[e][r]=n[e][r]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),n}(C.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=Zx(n,o),s=Xx(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),p=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var y=e.mapDimension(h.dim),m=e.mapDimension(o.dim),v=(0,ci.isDimensionStacked)(e,y),x="radius"!==o.dim||!t.get("roundCap",!0),_=h.dataToCoord(0),b=0,S=e.count();b<S;b++){var w=e.get(y,b),M=e.get(m,b),I=w>=0?"p":"n",T=_;v&&(r[s][M]||(r[s][M]={p:_,n:_}),T=r[s][M][I]);var A=void 0,C=void 0,D=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(w)-_,O=o.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),A=T,C=T+L,k=(D=O-u)-c,v&&(r[s][M][I]=C)}else{var P=h.dataToCoord(w,x)-_,E=o.dataToCoord(M);Math.abs(P)<g&&(P=(P<0?-1:1)*g),C=(A=E+u)+c,D=T,k=T+P,v&&(r[s][M][I]=k)}e.setItemLayout(b,{cx:p,cy:d,r0:A,r:C,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:D>=k})}}}))},Kx={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Jx={splitNumber:5},Qx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="polar",e}(Gl.default);function $x(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),C.retrieve(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-c:c,i.z2=1,i}Kt=o("2pli3"),d=o("loiyq"),Gl=o("jMGr2"),Kt=o("2pli3"),C=o("2fV2j"),ie=o("4zWIO"),ae=o("4x6s5"),Oi=o("8UpdG"),C=o("2fV2j");var t_=["axisLine","axisTickLabel","axisName"],e_=["splitArea","splitLine"],n_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return(0,Kt.__extends)(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new ie.default;var s=$x(e),l=new Zu(e,s);C.each(t_,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),C.each(e_,(function(t){e.get([t,"show"])&&r_[t](this,this.group,this._axisGroup,e)}),this),ae.groupTransition(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){fd(this)},e.type="singleAxis",e}(hd),r_={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],p=0,d=i.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(f[0]=m,f[1]=u.y,g[0]=m,g[1]=u.y+u.height):(f[0]=u.x,f[1]=m,g[0]=u.x+u.width,g[1]=m);var v=new Oi.default({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});ae.subPixelOptimizeLine(v.shape,l);var x=p++%s.length;h[x]=h[x]||[],h[x].push(v)}var _=a.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(ae.mergePath(h[y],{style:C.defaults({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,r){dd(t,n,r,r)}},i_=n_,o_=(Kt=o("2pli3"),Ll=o("krEnk"),Vu=o("aZZ0S"),C=o("2fV2j"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Ll.default));(0,C.mixin)(o_,Vu.AxisModelCommonMixin.prototype);var a_=o_,s_=(Kt=o("2pli3"),function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return(0,Kt.__extends)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}((Ix=o("jXYF6")).default)),l_=(hu=o("9XcNn"),Ai=o("aZMsI"),C=o("2fV2j"),["single"]);function u_(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var c_=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=l_,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new s_(r,hu.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();(0,C.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),hu.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=(0,Ai.getLayoutRect)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return u_(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return u_(e)===this?this.pointToData(n):null},t}();Bn=o("jnApb");var h_={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new c_(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Bn.SINGLE_REFERRING).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:l_},p_=(Kt=o("2pli3"),["x","y"]),d_=["width","height"],f_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=m_(a,1-y_(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=Sg(r),h=g_[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}Tg(e,t,$x(n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=$x(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Ig(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=y_(i),s=m_(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=m_(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(bg),g_={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Ag([e,n[0]],[e,n[1]],y_(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Cg([e-r/2,n[0]],[r,i],y_(t))}}};function y_(t){return t.isHorizontal()?0:1}function m_(t,e){var n=t.getRect();return[n[p_[e]],n[p_[e]]+n[d_[e]]]}var v_=f_,x_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="single",e}(Gl.default);Kt=o("2pli3"),Kt=o("2pli3"),Ll=o("krEnk"),Xe=o("ao62o"),C=o("2fV2j"),Bn=o("jnApb");var __=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],(0,C.each)(n,(function(e,n){var r,o=(0,Bn.convertOptionIdName)((0,Bn.getDataItemValue)(e),"");(0,C.isObject)(e)?(r=(0,C.clone)(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new(0,Xe.default)([{name:"value",type:o}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Ll.default),b_=__,S_=(Iv=o("5cO6H"),C=o("2fV2j"),ee=o("aRppD"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="timeline.slider",e.defaultOption=(0,ee.inheritDefaultOption)(b_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(b_));(0,C.mixin)(S_,Iv.DataFormatMixin.prototype);var w_=S_;Kt=o("2pli3"),uo=o("e2ttp"),ui=o("2QCok"),o("4x6s5"),Oi=o("8UpdG"),ae=o("4x6s5"),ie=o("4zWIO"),nt=o("kjDai"),he=o("5xWWJ"),Ai=o("aZMsI"),Kt=o("2pli3");var M_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="timeline",e}((Gl=o("jMGr2")).default),I_=M_,T_=(Kt=o("2pli3"),function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return(0,Kt.__extends)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}((Ix=o("jXYF6")).default)),A_=(ti=o("8TH6f"),de=o("iIXbb"),C=o("2fV2j"),o("NN8JZ")),C_=o("3hmyO"),D_=(Zh=o("aIyi7"),v=o("lj5IW"),Bn=o("jnApb"),ue=o("by2b6"),ce=o("6EdQu"),ba=o("dcFkT"),Math.PI),k_=(0,Bn.makeInner)(),L_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return(0,ba.createTooltipMarkup)("nameValue",{noName:!0,value:e})},(0,C.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r,i,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Ai.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":(0,C.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:D_/2},p="vertical"===s?l.height:l.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,m=g+y,v=t.get(["label","rotate"])||0;v=v*D_/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),S=f&&d.get("showNextBtn",!0),w=0,M=p;"left"===x||"bottom"===x?(_&&(r=[0,0],w+=m),b&&(i=[w,0],w+=m),S&&(o=[M-g,0],M-=m)):(_&&(r=[M-g,0],M-=m),b&&(i=[0,0],w+=m),S&&(o=[M-g,0],M-=m));var I=[w,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:h[s],labelRotation:v,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=ui.create(),a=i.x,s=i.y+i.height;ui.translate(o,o,[-a,-s]),ui.rotate(o,o,-D_/2),ui.translate(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],p=[r.x,r.y];p[0]=h[0]=l[0][0];var d,f=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}null==f||(0,C.isString)(f)?(m(h,u,l,1,d="+"===f?0:1),m(p,c,l,1,1-d)):(m(h,u,l,1,d=f>=0?0:1),p[1]=h[1]+f),n.setPosition(h),r.setPosition(p),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new(0,A_.default)({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new(0,C_.default)({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(0,Zh.default)}}(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new T_("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new ie.default;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Oi.default({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:(0,C.extend)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Oi.default({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:(0,C.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,C.each)(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:(0,C.bind)(i._changeTimeline,i,t.value)},p=O_(s,l,e,h);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=c.getItemStyle(),(0,ce.enableHoverEmphasis)(p);var d=(0,ue.getECData)(p);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],(0,C.each)(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),p=new nt.default({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,C.bind)(i._changeTimeline,i,a),silent:!1,style:(0,he.createTextStyle)(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=(0,he.createTextStyle)(u),p.ensureState("progress").style=(0,he.createTextStyle)(c),e.add(p),(0,ce.enableHoverEmphasis)(p),k_(p).dataIndex=a,i._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=(0,v.parsePercent)((0,C.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(t,e,n,r){var i=r.style,o=ae.createIcon(t.get(["controlStyle",e]),r||{},new(0,uo.default)(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}(r,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),(0,ce.enableHoverEmphasis)(h)}}c(t.nextBtnPosition,"next",(0,C.bind)(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",(0,C.bind)(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",(0,C.bind)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=(0,C.bind)(s._handlePointerDrag,s),t.ondragend=(0,C.bind)(s._handlePointerDragend,s),P_(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){P_(t,s._progressLine,o,n,r)}};this._currentPointer=O_(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,i=de.asc(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return ae.applyTransform(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",k_(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(I_);function O_(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");(i=(0,ti.createSymbol)(s,-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=(0,C.merge)({rectHover:!0,z2:100},r,!0);var u=(0,ti.normalizeSymbolSize)(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=(0,ti.normalizeSymbolOffset)(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function P_(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var E_=L_;function R_(t){var e=t&&t.timeline;C.isArray(e)||(e=e?[e]:[]),C.each(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),N_(t),V_(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});V_(r,"position")||(r.position=t.controlPosition),"none"!==r.position||V_(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}C.each(t.data||[],(function(t){C.isObject(t)&&!C.isArray(t)&&(!V_(t,"value")&&V_(t,"name")&&(t.value=t.name),N_(t))}))}(t)}))}function N_(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};C.each(r,(function(t,e){o[e]||V_(i,e)||(i[e]=t)})),n.label&&!V_(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function V_(t,e){return t.hasOwnProperty(e)}C=o("2fV2j"),C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),o("4x6s5"),se=o("4m2Ab"),nt=o("kjDai"),ue=o("by2b6"),he=o("5xWWJ"),Ai=o("aZMsI"),Ll=o("krEnk"),Gl=o("jMGr2"),Xa=o("gnWKD");var z_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Kt.__extends)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Ll.default),B_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=C.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),l=new nt.default({style:(0,he.createTextStyle)(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new nt.default({style:(0,he.createTextStyle)(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){(0,Xa.windowOpen)(p,"_"+t.get("target"))})),d&&h.on("click",(function(){(0,Xa.windowOpen)(d,"_"+t.get("subtarget"))})),(0,ue.getECData)(l).eventData=(0,ue.getECData)(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=(0,Ai.getLayoutRect)(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var v={align:a,verticalAlign:s};l.setStyle(v),h.setStyle(v),g=r.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new se.default({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},e.type="title",e}(Gl.default);d=o("loiyq"),Kt=o("2pli3");var F_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="dataZoom.select",e}(lm),G_=F_,j_=(Kt=o("2pli3"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="dataZoom.select",e}(pm)),H_=j_;function W_(t){t.registerComponentModel(G_),t.registerComponentView(H_),Dm(t)}Kt=o("2pli3"),C=o("2fV2j");var U_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;C.each(this.option.feature,(function(t,n){var r=Gy(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),C.merge(t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}((Ll=o("krEnk")).default),Y_=U_,X_=(Kt=o("2pli3"),C=o("2fV2j"),v=o("lj5IW"),ae=o("4x6s5"),ce=o("6EdQu"),ra=o("1C7zE"),Un=o("iWPaD"),Gl=o("jMGr2"),ee=o("aRppD"),nt=o("kjDai"),he=o("5xWWJ"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];C.each(s,(function(t,e){u.push(e)})),new(0,Un.default)(this._featureNames||[],u).add(c).update(c).remove(C.curry(c,null)).execute(),this._featureNames=u,function(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=(0,Ai.getLayoutRect)(r,o,i);(0,Ai.box)(e.get("orient"),t,e.get("itemGap"),a.width,a.height),(0,Ai.positionElement)(t,r,o,i)}(i,t,n),i.add(nv(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!C.isFunction(l)&&e){var u=l.style||(l.style={}),c=v.getBoundingRect(e,nt.default.makeFont(u)),h=t.x+i.x,p=!1;t.y+i.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var d=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",d],u.align="right"):h-c.width/2<0&&(a.position=[0,d],u.align="left")}}))}function c(c,h){var p,d=u[c],f=u[h],g=s[d],y=new(0,ra.default)(g,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===d&&(g.title=r.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))p={onclick:y.option.onclick,featureName:d};else{var m=Gy(d);if(!m)return;p=new m}l[d]=p}else if(!(p=l[f]))return;p.uid=(0,ee.getUID)("toolbox-feature"),p.model=y,p.ecModel=e,p.api=n;var v=p instanceof zy;d||!f?!y.get("show")||v&&p.unusable?v&&p.remove&&p.remove(e,n):(function(r,s,l){var u,c,h=r.getModel("iconStyle"),p=r.getModel(["emphasis","iconStyle"]),d=s instanceof zy&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};C.isString(d)?(u={})[l]=d:u=d,C.isString(f)?(c={})[l]=f:c=f;var g=r.iconPaths={};C.each(u,(function(l,u){var d=ae.createIcon(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(h.getItemStyle()),d.ensureState("emphasis").style=p.getItemStyle();var f=new(0,nt.default)({style:{text:c[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:(0,he.getFont)({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},e)},ignore:!0});d.setTextContent(f),ae.setTooltipConfig({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.on("mouseover",(function(){var e=p.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),d.setTextConfig({position:p.get("textPosition")||r}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===r.get(["iconStatus",u])?ce.enterEmphasis:ce.leaveEmphasis)(d),i.add(d),d.on("click",C.bind(s.onclick,s,e,n,u)),g[u]=d}))}(y,p,d),y.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?ce.enterEmphasis:ce.leaveEmphasis)(r[t])},p instanceof zy&&p.render&&p.render(y,e,n,r)):v&&p.dispose&&p.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){C.each(this._features,(function(t){t instanceof zy&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){C.each(this._features,(function(n){n instanceof zy&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){C.each(this._features,(function(n){n instanceof zy&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Gl.default)),Z_=X_,q_=(Kt=o("2pli3"),Vg=o("akmdr"),C=o("2fV2j"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Vg.default.browser;if((0,C.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),h=c[0].indexOf("base64")>-1,p=i?decodeURIComponent(c[1]):c[1];h&&(p=window.atob(p));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,g=new Uint8Array(f);f--;)g[f]=p.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var v=m.contentWindow,x=v.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),v.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var _=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',S=window.open();S.document.write(b),S.document.title=r}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(zy)),K_=q_,J_=(Kt=o("2pli3"),Eo=o("5TtXY"),C=o("2fV2j"),Bn=o("jnApb"),"__ec_magicType_stack__"),Q_=[["line","bar"],["stack"]],$_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return C.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(tb[n]){var o,a={series:[]};C.each(Q_,(function(t){C.indexOf(t,n)>=0&&C.each(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(t){var e=t.subType,i=t.id,o=tb[n](e,i,t,r);o&&(C.defaults(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,Bn.SINGLE_REFERRING).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=C.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(zy),tb={line:function(t,e,n,r){if("bar"===t)return C.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return C.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===J_;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),C.merge({id:e,stack:i?"":J_},r.get(["option","stack"])||{},!0)}};Eo.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var eb=$_,nb=(Kt=o("2pli3"),Eo=o("5TtXY"),C=o("2fV2j"),Po=o("9Ocvr"),new Array(60).join("-")),rb="\t";function ib(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var ob=new RegExp("[\t]+","g");var ab=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=function(t){var e,n,r,i=function(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}(t);return{value:C.filter([(n=i.seriesGroupByCategoryAxis,r=[],C.each(n,(function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(C.map(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];C.each(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var s=[o.join(rb)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(rb))}r.push(s.join("\n"))})),r.join("\n\n"+nb+"\n\n")),(e=i.other,C.map(e,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+rb:"")+r.join(rb))})),n.join("\n")})).join("\n\n"+nb+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+nb+"\n\n"),meta:i.meta}}(t);if(C.isFunction(u)){var p=u(e.getOption());C.isString(p)?s.innerHTML=p:C.isDom(p)&&s.appendChild(p)}else{l.readOnly=r.get("readOnly");var d=l.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=r.get("textColor"),d.borderColor=r.get("textareaBorderColor"),d.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),v=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var x=this;function _(){n.removeChild(i),x._dom=null}(0,Po.addEventListener)(m,"click",_),(0,Po.addEventListener)(v,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=C.isFunction(c)?c(s,e.getOption()):function(t,e){var n=t.split(new RegExp("\n*"+nb+"\n*","g")),r={series:[]};return C.each(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(rb)>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=ib(e.shift()).split(ob),r=[],i=C.map(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=ib(e[o]).split(ob);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}(t),o=e[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else i=function(t){for(var e=t.split(/\n+/g),n=ib(e.shift()),r=[],i=0;i<e.length;i++){var o=ib(e[i]);if(o){var a=o.split(ob),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(t),r.series.push(i)})),r}(l.value,f)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),m.innerHTML=a[1],v.innerHTML=a[2],v.style.cssText=m.style.cssText=y,!r.get("readOnly")&&g.appendChild(v),g.appendChild(m),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(zy);function sb(t,e){return C.map(t,(function(t,n){var r=e&&e[n];if(C.isObject(r)&&!C.isArray(r)){C.isObject(t)&&!C.isArray(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=C.defaults(t,r),i&&delete t.name,t}return t}))}Eo.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];C.each(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:sb(t.data,i)})}else n.push(C.extend({type:"scatter"},t))})),e.mergeOption(C.defaults({series:n},t.newOption))}));var lb=ab,ub=(Kt=o("2pli3"),Eo=o("5TtXY"),C=o("2fV2j"),Bn=o("jnApb"),C.each),cb=(0,Bn.makeInner)();function hb(t){var e=cb(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var pb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.onclick=function(t,e){!function(t){cb(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(zy);Eo.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var db=pb,fb=(Kt=o("2pli3"),C=o("2fV2j"),Bn=o("jnApb"),o("epWMF")),gb=C.each,yb=(0,Bn.makeInternalComponentId)("toolbox-dataZoom_"),mb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Kt.__extends)(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new Rc(n.getZr()),this._brushController.on("brush",C.bind(this._onBrush,this)).mount()),function(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new My(xb(t),e,{include:["grid"]}).makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",function(t){return hb(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){vb[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new My(xb(this.model),r,{include:["grid"]}).matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}})),function(t,e){var n=hb(t);ub(e,(function(e,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(e)}(r,n),this._dispatchZoomAction(n)}function i(t,e,i){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)})),r}(t,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=du(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];gb(t,(function(t,n){e.push(C.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(zy),vb={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=hb(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return ub(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}(this.ecModel))}};function xb(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}(0,fb.registerInternalOptionCreator)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=xb(r),a=(0,Bn.parseFinder)(t,o);return gb(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),gb(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:yb+e+o};a[n]=o,i.push(a)}}));var _b=mb;d=o("loiyq"),Kt=o("2pli3");var bb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}((Ll=o("krEnk")).default),Sb=bb;function wb(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Mb(t){if(Vg.default.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}Kt=o("2pli3"),C=o("2fV2j"),Vg=o("akmdr"),C=o("2fV2j"),Po=o("9Ocvr"),P=o("049dS"),Vg=o("akmdr"),Xa=o("gnWKD"),Xa=o("gnWKD"),Vg=o("akmdr");var Ib=Mb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Tb=Mb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Ab(t,e){if(!t)return e;e=(0,Xa.toCamelCase)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}ba=o("dcFkT");var Cb=Ab(Tb,"transition"),Db=Ab(Ib,"transform"),kb="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Vg.default.transform3dSupported?"will-change:transform;":"");function Lb(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Vg.default.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Vg.default.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+Db+":"+a+";":[["top",0],["left",0],[Ib,a]]}function Ob(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,P.transformLocalCoord)(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Pb=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Vg.default.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&((0,C.isString)(i)?document.querySelector(i):(0,C.isDom)(i)?i:(0,C.isFunction)(i)&&i(t.getDom()));Ob(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();(0,Po.normalizeEvent)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?o?a[o]:a:null),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=kb+function(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=(0,ba.getPaddingFromTooltipModel)(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),e&&i&&r.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Vg.default.transformSupported?","+Db+r:",left"+r+",top"+r),Cb+":"+i}(i,n)),o&&r.push("background-color:"+o),(0,C.each)(["width","color","radius"],(function(e){var n="border-"+e,i=(0,Xa.toCamelCase)(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),(0,C.each)(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(c)),null!=h&&r.push("padding:"+(0,Xa.normalizeCssArray)(h).join("px ")+"px"),r.join(";")+";"}(t,!this._firstShow,this._longHide)+Lb(i[0],i[1],!0)+"border-color:"+(0,Xa.convertToColorString)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if((0,C.isString)(i)&&"item"===n.get("trigger")&&!wb(n)&&(a=function(t,e,n){if(!(0,C.isString)(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=(0,Xa.convertToColorString)(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=Db+":";(0,C.indexOf)(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,p=l+i,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),(0,C.isString)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",(0,C.isArray)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,C.isDom)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Ob(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=Lb(n[0],n[1]);(0,C.each)(i,(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Vg.default.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,C.bind)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();function Eb(t){return Math.max(0,t)}function Rb(t){var e=Eb(t.shadowBlur||0),n=Eb(t.shadowOffsetX||0),r=Eb(t.shadowOffsetY||0);return{left:Eb(e-n),right:Eb(e+n),top:Eb(e-r),bottom:Eb(e+r)}}function Nb(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}C=o("2fV2j"),nt=o("kjDai"),ba=o("dcFkT"),cn=o("3ds5n");var Vb=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Nb(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;C.isObject(t)&&(0,cn.throwError)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new(0,nt.default)({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,ba.getPaddingFromTooltipModel)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),C.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Rb(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;Nb(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=Eb(i.borderWidth||0),a=Rb(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(C.bind(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();Xa=o("gnWKD"),de=o("iIXbb"),o("4x6s5"),se=o("4m2Ab"),Ai=o("aZMsI"),ra=o("1C7zE"),hu=o("9XcNn"),Bn=o("jnApb"),Gl=o("jMGr2");var zb=o("fdJAh"),Bb=(ue=o("by2b6"),Iv=o("5cO6H"),ba=o("dcFkT"),jl=o("16uHh"),pe=o("lx0YT"),new(0,se.default)({shape:{x:-1,y:-1,width:2,height:2}})),Fb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){if(!Vg.default.node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=(0,Bn.getTooltipRenderMode)(n.get("renderMode"));this._tooltipContent="richText"===r?new Vb(e):new Pb(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!Vg.default.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,pe.createOrUpdate)(this,"_updatePosition",50,"fixRate"):(0,pe.clear)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Fg("itemTooltip",this._api,(0,C.bind)((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!Vg.default.node&&n.getDom()){var i=jb(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=(0,Bn.preParseFinder)(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o,a=(0,Bn.queryReferringComponents)(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse((function(e){var n=(0,ue.getECData)(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o?{componentMainType:i,componentIndex:a.componentIndex,el:o}:void 0}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=Bb;l.x=r.x,l.y=r.y,l.update(),(0,ue.getECData)(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=Yg(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(jb(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s&&"axis"===Gb([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;if("legend"===(0,ue.getECData)(n).ssrType)return;this._lastDataByCoordSys=null,(0,jl.findEventDispatcher)(n,(function(t){return null!=(0,ue.getECData)(t).dataIndex?(i=t,!0):null!=(0,ue.getECData)(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,C.bind)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=Gb([e.tooltipOption],r),a=this._renderMode,s=[],l=(0,ba.createTooltipMarkup)("section",{blocks:[],noHeader:!0}),u=[],c=new(0,ba.TooltipMarkupStyleCreator);(0,C.each)(t,(function(t){(0,C.each)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=Mg(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=(0,ba.createTooltipMarkup)("section",{header:o,noHeader:!(0,C.trim)(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),(0,C.each)(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=hu.getAxisRawValue(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",(0,Xa.convertToColorString)(f.color),a);var g=(0,Iv.normalizeTooltipFormatResult)(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var m=Gb([p],r).get("valueFormatter");h.blocks.push(m?(0,C.extend)({valueFormatter:m},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),d=(0,ba.buildTooltipMarkup)(l,c,a,p,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=(0,ue.getECData)(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=Gb([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new(0,ba.TooltipMarkupStyleCreator);g.marker=y.makeTooltipMarker("item",(0,Xa.convertToColorString)(g.color),h);var m=(0,Iv.normalizeTooltipFormatResult)(s.formatTooltip(l,!1,u)),v=d.get("order"),x=d.get("valueFormatter"),_=m.frag,b=_?(0,ba.buildTooltipMarkup)(x?(0,C.extend)({valueFormatter:x},_):_,y,h,v,r.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=(0,ue.getECData)(e),i=r.tooltipConfig.option||{};(0,C.isString)(i)&&(i={content:i,formatter:i});var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=t.positionDefault,l=Gb(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new(0,ba.TooltipMarkupStyleCreator);this._showOrMove(l,(function(){var n=(0,C.clone)(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if((0,C.isString)(c)){var d=t.ecModel.get("useUTC"),f=(0,C.isArray)(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=(0,zb.format)(f.axisValue,h,d)),h=(0,Xa.formatTpl)(h,n,!0)}else if((0,C.isFunction)(c)){var g=(0,C.bind)((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||(0,C.isArray)(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:(0,C.isArray)(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),(0,C.isFunction)(e)&&(e=e([n,r],o,i.el,p,{viewSize:[s,l],contentSize:u.slice()})),(0,C.isArray)(e))n=(0,de.parsePercent)(e[0],s),r=(0,de.parsePercent)(e[1],l);else if((0,C.isObject)(e)){var d=e;d.width=u[0],d.height=u[1];var f=(0,Ai.getLayoutRect)(d,{width:s,height:l});n=f.x,r=f.y,c=null,h=null}else if((0,C.isString)(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],r=g[1]}else g=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}(n,r,i,s,l,c?null:20,h?null:20),n=g[0],r=g[1];c&&(n-=Hb(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=Hb(h)?u[1]/2:"bottom"===h?u[1]:0),wb(t)&&(g=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,r,i,s,l),n=g[0],r=g[1]),i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&(0,C.each)(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&(0,C.each)(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&(0,C.each)(a,(function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&(0,C.each)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Vg.default.node&&e.getDom()&&((0,pe.clear)(this,"_updatePosition"),this._tooltipContent.dispose(),Hg("itemTooltip",e))},e.type="tooltip",e}(Gl.default);function Gb(t,e,n){var r,i=e.ecModel;n?(r=new(0,ra.default)(n,i,i),r=new(0,ra.default)(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ra.default&&(a=a.get("tooltip",!0)),(0,C.isString)(a)&&(a={formatter:a}),a&&(r=new(0,ra.default)(a,r,i)))}return r}function jb(t,e){return t.dispatchAction||(0,C.bind)(e.dispatchAction,e)}function Hb(t){return"center"===t||"middle"===t}var Wb=Fb;C=o("2fV2j"),C=o("2fV2j"),cn=o("3ds5n"),Ov=o("9L5Mv");var Ub={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Yb=function(){function t(t){null==(this._condVal=(0,C.isString)(t)?new RegExp(t):(0,C.isRegExp)(t)?t:null)&&(0,cn.throwError)("")}return t.prototype.evaluate=function(t){var e=typeof t;return(0,C.isString)(e)?this._condVal.test(t):!!(0,C.isNumber)(e)&&this._condVal.test(t+"")},t}(),Xb=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Zb=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),qb=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),Kb=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Jb=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0},t}();function Qb(t,e){if(!0===t||!1===t){var n=new Xb;return n.value=t,n}return tS(t)||(0,cn.throwError)(""),t.and?$b("and",t,e):t.or?$b("or",t,e):t.not?function(t,e){var n=t.not;tS(n)||(0,cn.throwError)("");var r=new Kb;return r.child=Qb(n,e),r.child||(0,cn.throwError)(""),r}(t,e):function(t,e){for(var n=e.prepareGetValue(t),r=[],i=(0,C.keys)(t),o=t.parser,a=o?(0,Ov.getRawValueParser)(o):null,s=0;s<i.length;s++){var l=i[s];if("parser"!==l&&!e.valueGetterAttrMap.get(l)){var u=(0,C.hasOwn)(Ub,l)?Ub[l]:l,c=t[l],h=a?a(c):c,p=(0,Ov.createFilterComparator)(u,h)||"reg"===u&&new Yb(h);p||(0,cn.throwError)(""),r.push(p)}}r.length||(0,cn.throwError)("");var d=new Jb;return d.valueGetterParam=n,d.valueParser=a,d.getValue=e.getValue,d.subCondList=r,d}(t,e)}function $b(t,e,n){var r=e[t];(0,C.isArray)(r)||(0,cn.throwError)(""),r.length||(0,cn.throwError)("");var i="and"===t?new Zb:new qb;return i.children=(0,C.map)(r,(function(t){return Qb(t,n)})),i.children.length||(0,cn.throwError)(""),i}function tS(t){return(0,C.isObject)(t)&&!(0,C.isArrayLike)(t)}var eS=function(){function t(t,e){this._cond=Qb(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();C=o("2fV2j"),cn=o("3ds5n");var nS={type:"echarts:filter",transform:function(t){for(var e,n,r,i=t.upstream,o=(n=t.config,r={valueGetterAttrMap:(0,C.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;(0,C.hasOwn)(t,"dimension")||(0,cn.throwError)("");var n=i.getDimensionInfo(e);return n||(0,cn.throwError)(""),{dimIdx:n.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new eS(n,r)),a=[],s=0,l=i.count();s<l;s++)e=i.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}},rS=(hn=o("cwqlf"),cn=o("3ds5n"),C=o("2fV2j"),Bn=o("jnApb"),Ov=o("9L5Mv"),{type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=(0,Bn.normalizeToArray)(n);i.length||(0,cn.throwError)(r);var o=[];(0,C.each)(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;null==n&&(0,cn.throwError)(r),"asc"!==i&&"desc"!==i&&(0,cn.throwError)(r),s&&"min"!==s&&"max"!==s&&(0,cn.throwError)(""),"asc"!==i&&"desc"!==i&&(0,cn.throwError)("");var l=e.getDimensionInfo(n);l||(0,cn.throwError)(r);var u=a?(0,Ov.getRawValueParser)(a):null;a&&!u&&(0,cn.throwError)(r),o.push({dimIdx:l.index,parser:u,comparator:new(0,Ov.SortOrderComparator)(i,s)})}));var a=e.sourceFormat;a!==hn.SOURCE_FORMAT_ARRAY_ROWS&&a!==hn.SOURCE_FORMAT_OBJECT_ROWS&&(0,cn.throwError)(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<o.length;r++){var i=o[r],a=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}});d=o("loiyq"),Kt=o("2pli3"),C=o("2fV2j"),Kt=o("2pli3"),C=o("2fV2j"),C=o("2fV2j");var iS={get:function(t,e,n){var r=C.clone((oS[t]||{})[e]);return n&&C.isArray(r)?r[r.length-1]:r}},oS={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},aS=iS,sS=(Bn=o("jnApb"),de=o("iIXbb"),Ll=o("krEnk"),Ep.mapVisual),lS=Ep.eachVisual,uS=C.isArray,cS=C.each,hS=de.asc,pS=de.linearMap,dS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&sy(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=C.bind(t,this),this.controllerVisuals=ay(this.option.controller,e,t),this.targetVisuals=ay(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Bn.normalizeToArray(t),e},e.prototype.eachTargetSeries=function(t,e){C.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],C.isArray(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return C.isString(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):C.isFunction(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=hS([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});C.merge(r,n),C.merge(i,n);var o=this.isCategory();function a(n){uS(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},cS(r,(function(t,e){if(Ep.isValidType(e)){var n=aS.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";cS(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&C.clone(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&C.clone(n)||(o?s[0]:[s[0],s[0]])),l.symbol=sS(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;lS(u,(function(t){t>c&&(c=t)})),l.symbolSize=sS(u,(function(t){return pS(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Ll.default),fS=dS,gS=(de=o("iIXbb"),ee=o("aRppD"),[20,140]),yS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=gS[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=gS[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):C.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),C.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=de.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=mS(this,"outOfRange",this.getExtent()),n=mS(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,ee.inheritDefaultOption)(fS.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fS);function mS(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var vS=yS;Kt=o("2pli3"),C=o("2fV2j"),za=o("kwypm"),Po=o("9Ocvr"),Kt=o("2pli3"),C=o("2fV2j"),o("4x6s5"),se=o("4m2Ab"),Xa=o("gnWKD"),Ai=o("aZMsI");var xS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,Kt.__extends)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Xa.normalizeCssArray(e.get("padding")||0),r=t.getBoundingRect();t.add(new(0,se.default)({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)],c=Ep.prepareVisualTypes(u);return C.each(c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),Ep.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Ai.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}((Gl=o("jMGr2")).default),_S=xS;o("4x6s5"),se=o("4m2Ab"),ae=o("4x6s5"),vi=o("4w8lf"),ie=o("4zWIO"),nt=o("kjDai"),de=o("iIXbb"),C=o("2fV2j"),Ai=o("aZMsI");var bS=[["left","right","width"],["top","bottom","height"]];function SS(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=bS[a],l=[0,null,10],u={},c=0;c<3;c++)u[bS[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],p=(0,Ai.getLayoutRect)(u,o,r.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function wS(t,e){return C.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}Bn=o("jnApb"),v=o("lj5IW"),ce=o("6EdQu"),ti=o("8TH6f"),m=o("b1qY0"),ue=o("by2b6"),he=o("5xWWJ"),jl=o("16uHh");var MS=de.linearMap,IS=C.each,TS=Math.min,AS=Math.max,CS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,Kt.__extends)(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=C.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=C.bind(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new nt.default({style:(0,he.createTextStyle)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=SS(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new ie.default;s.add(l),l.add(n.outOfRange=DS()),l.add(n.inRange=DS(null,o?LS(this._orient):null,C.bind(this._dragHandle,this,"all",!1),C.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new se.default({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=AS(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=C.bind(this._dragHandle,this,n,!1),s=C.bind(this._dragHandle,this,n,!0),l=(0,v.parsePercent)(t.get("handleSize"),r[0]),u=(0,ti.createSymbol)(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=LS(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Po.stop(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,ce.setAsHighDownDispatcher)(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new nt.default({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Po.stop(t.event)},ondragend:s,style:(0,he.createTextStyle)(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,r,i){var o=(0,v.parsePercent)(t.get("indicatorSize"),n[0]),a=(0,ti.createSymbol)(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof m.default){var l=a.style;a.useStyle(C.extend({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new nt.default({silent:!0,invisible:!0,style:(0,he.createTextStyle)(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():kS(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[MS(e[0],n,r,!0),MS(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];du(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[MS(r[0],i,o,!0),MS(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new(0,za.default)(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new ie.default("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();IS([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=MS(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=ae.applyTransform(n.handleLabelPoints[l],ae.getTransform(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=MS(t,o,s,!0),d=a[0]-h/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=ae.applyTransform(l.indicatorLabelPoint,ae.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:v?m:"middle",align:v?"center":m});var x={x:d,y:p,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var w=0;w<S.length;w++)this.api.enterBlur(S[w])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=TS(AS(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=TS(AS(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");return i&&(r=MS(i,e,n,!0)/2),r}(n,o,i),s=[t-a,t+a],l=MS(t,i,o,!0),u=[MS(s[0],i,o,!0),MS(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||kS(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=Bn.compressBatches(c,h);this._dispatchHighDown("downplay",wS(p[0],n)),this._dispatchHighDown("highlight",wS(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,jl.findEventDispatcher)(t.target,(function(t){var n=(0,ue.getECData)(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",wS(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=ae.getTransform(e,r?null:this.group);return C.isArray(t)?ae.applyTransform(t,i,n):ae.transformDirection(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(_S);function DS(t,e,n,r){return new vi.default({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Po.stop(t.event)},ondragend:r})}function kS(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function LS(t){return"vertical"===t?"ns-resize":"ew-resize"}var OS=CS,PS={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ES=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},RS=(C=o("2fV2j"),ry=o("kJZzU"),[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r,i,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((r=e.stateList,i=e.targetVisuals,o=C.bind(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},C.each(r,(function(t){var e=Ep.prepareVisualTypes(i[t]);s[t]=e})),{progress:function(t,e){var n,r;function l(t){return(0,ry.getItemVisualFromData)(e,r,t)}function u(t,n){(0,ry.setItemVisualFromData)(e,r,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(r=t.next());){var h=e.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var p=null!=a?c.get(n,r):r,d=o(p),f=i[d],g=s[d],y=0,m=g.length;y<m;y++){var v=g[y];f[v]&&f[v].applyVisual(p,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(C.bind(NS,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}]);function NS(t,e,n,r){for(var i=e.targetVisuals[r],o=Ep.prepareVisualTypes(i),a={color:(0,ry.getVisualFromData)(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,p)}return a.color;function h(t){return a[t]}function p(t,e){a[t]=e}}C=o("2fV2j");var VS=(C=o("2fV2j")).each;function zS(t){var e=t&&t.visualMap;C.isArray(e)||(e=e?[e]:[]),VS(e,(function(t){if(t){BS(t,"splitList")&&!BS(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&C.isArray(e)&&VS(e,(function(t){C.isObject(t)&&(BS(t,"start")&&!BS(t,"min")&&(t.min=t.start),BS(t,"end")&&!BS(t,"max")&&(t.max=t.end))}))}}))}function BS(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var FS=!1;function GS(t){FS||(FS=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(PS,ES),(0,C.each)(RS,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(zS))}function jS(t){t.registerComponentModel(vS),t.registerComponentView(OS),GS(t)}Kt=o("2pli3"),C=o("2fV2j"),de=o("iIXbb"),ee=o("aRppD");var HS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,Kt.__extends)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],WS[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=C.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=C.map(this._pieceList,(function(t){return t=C.clone(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=Ep.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}C.each(e.pieces,(function(t){C.each(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),C.each(n,(function(t,n){var r=!1;C.each(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&C.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=aS.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,C.each(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;C.each(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=C.clone(t)},e.prototype.getValueState=function(t){var e=Ep.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){Ep.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return C.each(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,ee.inheritDefaultOption)(fS.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fS),WS={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),(0,de.reformIntervals)(t),C.each(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;C.each(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),US(e,t)},pieces:function(t){var e=this.option;C.each(e.pieces,(function(e,n){C.isObject(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=Ep.retrieveVisuals(e),t.push(r)}),this),US(e,t),(0,de.reformIntervals)(t),C.each(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function US(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var YS=HS,XS=(Kt=o("2pli3"),C=o("2fV2j"),ie=o("4zWIO"),nt=o("kjDai"),ti=o("8TH6f"),Ai=o("aZMsI"),he=o("5xWWJ"),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Kt.__extends)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=C.retrieve(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),C.each(l.viewPieceList,(function(r){var l=r.piece,u=new ie.default;u.onclick=C.bind(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(h);u.add(new nt.default({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Ai.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:wS(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return SS(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new ie.default,a=this.visualMapModel.textStyleModel;o.add(new nt.default({style:(0,he.createTextStyle)(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=C.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add((0,ti.createSymbol)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=C.clone(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,C.each(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(_S)),ZS=XS;function qS(t){t.registerComponentModel(YS),t.registerComponentView(ZS),GS(t)}var KS=o("axDY0"),JS=(Jt=o("icZIP"),C=o("2fV2j"),Uo=o("d7uFa"),y=o("lv1gH"),C=o("2fV2j"),ji=o("lDRrb"),Ts=o("1AjVZ"),H=o("bCcJ1"),fo=o("hA1kS"),uo=o("e2ttp"),yi=o("7k07j"),C=o("2fV2j"),vi=o("4w8lf"),se=o("4m2Ab"),le=o("4rNRw"),Uo=o("d7uFa"),(W=o("btLRI")).default.CMD);function QS(t,e){return Math.abs(t-e)<1e-5}function $S(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,p=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,r,i){QS(t,r)&&QS(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),p=Math.cos(n),d=Math.sin(n),f=c*o+r,g=h*a+i,y=p*o+r,m=d*a+i,v=o*l*u,x=a*l*u;e.push(f-v*h,g+x*c,y+v*d,m-x*p,y,m)}for(var y=0;y<s;){var m=a[y++],v=1===y;switch(v&&(h=u=a[y],p=c=a[y+1],m!==JS.L&&m!==JS.C&&m!==JS.Q||(e=[h,p])),m){case JS.M:u=h=a[y++],c=p=a[y++],d(h,p);break;case JS.L:f(u,c,n=a[y++],r=a[y++]),u=n,c=r;break;case JS.C:e.push(a[y++],a[y++],a[y++],a[y++],u=a[y++],c=a[y++]);break;case JS.Q:n=a[y++],r=a[y++],i=a[y++],o=a[y++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case JS.A:var x=a[y++],_=a[y++],b=a[y++],S=a[y++],w=a[y++],M=a[y++]+w;y+=1;var I=!a[y++];n=Math.cos(w)*b+x,r=Math.sin(w)*S+_,v?d(h=n,p=r):f(u,c,n,r),u=Math.cos(M)*b+x,c=Math.sin(M)*S+_;for(var T=(I?-1:1)*Math.PI/2,A=w;I?A>M:A<M;A+=T)g(A,I?Math.max(A+T,M):Math.min(A+T,M),x,_,b,S);break;case JS.R:h=u=a[y++],p=c=a[y++],n=h+a[y++],r=p+a[y++],d(n,p),f(n,p,n,r),f(n,r,h,r),f(h,r,h,p),f(h,p,n,p);break;case JS.Z:e&&f(u,c,h,p),u=h,c=p}}return e&&e.length>2&&l.push(e),l}function tw(t,e,n,r,i,o,a,s,l,u){if(QS(t,n)&&QS(e,r)&&QS(i,a)&&QS(o,s))l.push(a,s);else{var c=2/u,h=c*c,p=a-t,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=n-t,y=r-e,m=i-a,v=o-s,x=g*g+y*y,_=m*m+v*v;if(x<h&&_<h)l.push(a,s);else{var b=p*g+d*y,S=-p*m-d*v;if(x-b*b<h&&b>=0&&_-S*S<h&&S>=0)l.push(a,s);else{var w=[],M=[];(0,Uo.cubicSubdivide)(t,n,i,a,.5,w),(0,Uo.cubicSubdivide)(e,r,o,s,.5,M),tw(w[0],M[0],w[1],M[1],w[2],M[2],w[3],M[3],l,u),tw(w[4],M[4],w[5],M[5],w[6],M[6],w[7],M[7],l,u)}}}}function ew(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function nw(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=ew([l,u],c?0:1,e),p=(c?s:u)/h.length,d=0;d<h.length;d++)for(var f=(c?u:s)/h[d],g=0;g<h[d];g++){var y={};c?(y.startAngle=o+p*d,y.endAngle=o+p*(d+1),y.r0=r+f*g,y.r=r+f*(g+1)):(y.startAngle=o+f*g,y.endAngle=o+f*(g+1),y.r0=r+p*d,y.r=r+p*(d+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function rw(t,e,n,r){return t*r-n*e}function iw(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=rw(c,h,l,u);if(Math.abs(p)<1e-6)return null;var d=rw(t-i,e-o,c,h)/p;return d<0||d>1?null:new(0,yi.default)(d*l+t,d*u+e)}function ow(t,e,n){var r=new(0,yi.default);yi.default.sub(r,n,e),r.normalize();var i=new(0,yi.default);return yi.default.sub(i,t,e),i.dot(r)}function aw(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function sw(t){var e=t.points,n=[],r=[];(0,fo.fromPoints)(e,n,r);var i=new(0,uo.default)(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new(0,yi.default),c=new(0,yi.default);return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=iw(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:ow(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var p=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],f=[p],g=[d];for(o=u.idx+1;o<=c.idx;o++)aw(f,t[o].slice());for(aw(f,d),aw(f,p),o=c.idx+1;o<=u.idx+r;o++)aw(g,t[o%r].slice());return aw(g,p),aw(g,d),[{points:f},{points:g}]}(e,u,c)}function lw(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);lw(t,o[0],i,r),lw(t,o[1],n-i,r)}return r}function uw(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=ew([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,p=0;p<a.length;p++)for(var d=t[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*h,g[c]=f*d,g[s]=h,g[l]=d,g.x+=t.x,g.y+=t.y,n.push(g)}}(i,e,r),n=se.default;break;case"sector":nw(i,e,r),n=le.default;break;case"circle":nw({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=le.default;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=(0,C.map)(function(t,e){var n=$S(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++];tw(s,l,c,h,p,d,f,g,a,e),s=f,l=g}r.push(a)}return r}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)lw(sw,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=(0,C.map)(s,(function(t){var e=[],n=[];(0,fo.fromPoints)(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var p=e;for(u=0;u<l;u++){var d=h[u];if(p<=0)break;var f=u===l-1?p:Math.ceil(d.area/c*e);f<0||(lw(sw,{points:d.poly},f,r),p-=f)}}n=vi.default}if(!n)return function(t,e){for(var n=[],r=0;r<e;r++)n.push((0,Ts.clonePath)(t));return n}(t,e);var g,y,m=[];for(u=0;u<r.length;u++){var v=new n;v.setShape(r[u]),g=t,(y=v).setStyle(g.style),y.z=g.z,y.z2=g.z2,y.zlevel=g.zlevel,m.push(v)}return m}function cw(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],p=l,d=2;d<s;){var f=a[d-2],g=a[d-1],y=a[d++],m=a[d++],v=a[d++],x=a[d++],_=a[d++],b=a[d++];if(p<=0)h.push(y,m,v,x,_,b);else{for(var S=Math.min(p,c-1)+1,w=1;w<=S;w++){var M=w/S;(0,Uo.cubicSubdivide)(f,y,v,_,M,i),(0,Uo.cubicSubdivide)(g,m,x,b,M,o),f=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],f,g),y=i[5],m=o[5],v=i[6],x=o[6]}p-=S-1}}return a===t?[h,e]:[t,h]}function hw(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function pw(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function dw(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,p=0;p<s;p+=2){var d=0===p?c:(c+p-2)%l+2,f=t[d]-n[0],g=t[d+1]-n[1],y=e[p]-r[0]-f,m=e[p+1]-r[1]-g;h+=y*y+m*m}h<o&&(o=h,a=u)}return a}function fw(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function gw(t){return t.__isCombineMorphing}Ts=o("1AjVZ");var yw="__mOriginal_";function mw(t,e,n){var r=yw+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function vw(t,e){var n=yw+e;t[n]&&(t[e]=t[n],t[n]=null)}function xw(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function _w(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=function(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(r=c=(n=cw(l,u))[0],i=h=n[1]):(h=hw(i||l,l),c=l):(c=hw(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}($S(n),$S(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&xw(o,s),l&&xw(a,l),mw(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=pw(s),c=pw(l);null==i&&(i=u[2]<0!=c[2]<0);var h=[],p=[],d=0,f=1/0,g=[],y=s.length;i&&(s=fw(s));for(var m=6*dw(s,l,u,c),v=y-2,x=0;x<v;x+=2){var _=(m+x)%v+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}h[0]=s[m]-u[0],h[1]=s[m+1]-u[1];for(var b=r/10,S=-r/2;S<=r/2;S+=b){var w=Math.sin(S),M=Math.cos(S),I=0;for(x=0;x<s.length;x+=2){var T=h[x],A=h[x+1],C=l[x]-c[0],D=l[x+1]-c[1],k=C*M-D*w,L=C*w+D*M;g[x]=k,g[x+1]=L;var O=k-T,P=L-A;I+=O*O+P*P}if(I<f){f=I,d=S;for(var E=0;E<g.length;E++)p[E]=g[E]}}o.push({from:h,to:p,fromCp:u,toCp:c,rotation:-d})}return o}(o,a,0,Math.PI),c=[];mw(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,p=a.fromCp,d=a.toCp,f=Math.sin(h),g=Math.cos(h);(0,ji.lerp)(i,p,d,n);for(var y=0;y<s.length;y+=2){var m=s[y],v=s[y+1],x=m*r+(w=l[y])*n,_=v*r+(M=l[y+1])*n;c[y]=x*g-_*f+i[0],c[y+1]=x*f+_*g+i[1]}var b=c[0],S=c[1];for(t.moveTo(b,S),y=2;y<s.length;){var w=c[y++],M=c[y++],I=c[y++],T=c[y++],A=c[y++],C=c[y++];b===w&&S===M&&I===A&&T===C?t.lineTo(A,C):t.bezierCurveTo(w,M,I,T,A,C),b=A,S=C}}}})}function bw(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return _w(t,e),e.__morphT=0,e.animateTo({__morphT:1},(0,C.defaults)({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){vw(e,"buildPath"),vw(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function Sw(t,e,n,r,i,o){t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function ww(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=(0,C.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}));return(0,C.map)(o,(function(o,a){return{cp:o,z:Sw(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function Mw(t){return uw(t.path,t.count)}function Iw(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];gw(i)?t(i.childrenRef()):i instanceof y.default&&r.push(i)}}(t);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||Mw)({path:e,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=ww(r),o=ww(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new(0,H.default),c=0;c<i;c++){var h=r[c],p=o[c];p.parent=e,p.copyTransform(u),l||_w(h,p)}function d(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,vw(e,"addSelfToZr"),vw(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},mw(e,"addSelfToZr",{after:function(t){d(t)}}),mw(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var m=g,v=function(){0==--m&&(f(),a&&a())};for(c=0;c<g;c++){var x=l?(0,C.defaults)({delay:(n.delay||0)+l(c,g,r[c],o[c]),done:v},n):n;bw(r[c],o[c],x)}}else e.__morphT=0,e.animateTo({__morphT:1},(0,C.defaults)({during:function(t){for(var n=0;n<g;n++){var r=o[n];r.__morphT=e.__morphT,r.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)vw(t[e],"updateTransform");a&&a()}},n));return e.__zr&&d(e.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function Tw(t,e,n){var r=e.length,i=[],o=n.dividePath||Mw;if(gw(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];gw(r)?t(r.childrenRef()):r instanceof y.default&&i.push(r)}}(t.childrenRef());var a=i.length;if(a<r)for(var s=0,l=a;l<r;l++)i.push((0,Ts.clonePath)(i[s++%a]));i.length=r}else{i=o({path:t,count:r});var u=t.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=ww(i),e=ww(e);var c=n.individualDelay;for(l=0;l<r;l++){var h=c?(0,C.defaults)({delay:(n.delay||0)+c(l,r,i[l],e[l])},n):n;bw(i[l],e[l],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function Aw(t){return(0,C.isArray)(t[0])}function Cw(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}o("4x6s5"),y=o("lv1gH"),C=o("2fV2j"),oe=o("4NPqX"),Ts=o("1AjVZ");var Dw={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=(0,Ts.clonePath)(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function kw(t,e,n,r,i,o){if(t.length&&e.length){var a=(0,oe.getAnimationConfig)("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);Aw(t)&&(s=t,l=e),Aw(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,p=s?Cw(l,s):Cw(h?e:t,[h?t:e]),d=0,f=0;f<p.length;f++)d+=p[f].many.length;var g=0;for(f=0;f<p.length;f++)y(p[f],h,g,d),g+=p[f].many.length}}function y(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=(0,C.defaults)({dividePath:Dw[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),p=e?Iw(s,l,h):Tw(l,s,h),d=p.fromIndividuals,f=p.toIndividuals,g=d.length,m=0;m<g;m++)v=u?(0,C.defaults)({delay:u(m,g)},c):c,o(d[m],f[m],e?s[m]:t.one,e?t.one:s[m],v);else{var v,x=e?s[0]:l,_=e?l:s[0];gw(x)?y({many:[x],one:_},!0,r,i,!0):(bw(x,_,v=u?(0,C.defaults)({delay:u(r,i)},c):c),o(x,_,x,_,v))}}}function Lw(t){if(!t)return[];if((0,C.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(Lw(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof y.default&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}y=o("lv1gH"),oe=o("4NPqX"),Un=o("iWPaD"),Bn=o("jnApb"),cn=o("3ds5n"),oe=o("4NPqX"),Kn=o("32n5A");var Ow=(0,Bn.makeInner)();function Pw(t,e,n,r){var i=function(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&0===i.otherDims[e])return n[r]}}(t,r?"itemChildGroupId":"itemGroupId");if(i){var o=function(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}(t,e,i);return o}var a=t.getRawDataItem(e),s=r?"childGroupId":"groupId";return a&&a[s]?a[s]+"":r?void 0:n||t.getId(e)}function Ew(t){var e=[];return(0,C.each)(t,(function(t){var n=t.data,r=t.dataGroupId;if(!(n.count()>1e4))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:Pw(n,o,r,!1),childGroupId:Pw(n,o,r,!0),divide:t.divide,dataIndex:o})})),e}function Rw(t,e,n){t.traverse((function(t){t instanceof y.default&&(0,oe.initProps)(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function Nw(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Vw(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function zw(t,e,n){var r=Ew(t),i=Ew(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?(0,C.extend)((0,C.extend)({},n.style),t.style):t.style},i)}var a=!1,s=0,l=(0,C.createHashMap)(),u=(0,C.createHashMap)();r.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<i.length;c++){var h=i[c].groupId;if(u.get(h)){s=1;break}var p=i[c].childGroupId;if(p&&l.get(p)){s=2;break}}function d(t,e){return function(n){var r=n.data,i=n.dataIndex;return e?r.getId(i):t?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,i),g={};if(!f)for(c=0;c<i.length;c++){var m=i[c],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function x(t,e){var n=r[e],s=i[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(Vw(c),u?(Vw(u),Nw(u),a=!0,kw(Lw(u),Lw(c),s.divide,l,t,o)):Rw(c,l,t)):c&&function(t,e,n){var r=(0,oe.getAnimationConfig)("update",n,e);r&&t.traverse((function(t){if(t instanceof Kn.default){var e=(0,oe.getOldStyle)(t);e&&t.animateFrom({style:e},r)}}))}(c,s.dataIndex,l)}new(0,Un.default)(r,i,d(!0,f),d(!1,f),null,"multiple").update(x).updateManyToOne((function(t,e){var n=i[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=(0,C.filter)((0,C.map)(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(Vw(u),c.length?((0,C.each)(c,(function(t){Vw(t),Nw(t)})),a=!0,kw(Lw(c),Lw(u),n.divide,l,t,o)):Rw(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=(0,C.filter)((0,C.map)(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==s})),u=i[t[0]].data.hostModel;l.length&&((0,C.each)(l,(function(t){return Vw(t)})),s?(Vw(s),Nw(s),a=!0,kw(Lw(s),Lw(l),n.divide,u,t[0],o)):(0,C.each)(l,(function(e){return Rw(e,u,t[0])})))}})).updateManyToMany((function(t,e){new(0,Un.default)(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){x(t[n],e[r])})).execute()})).execute(),a&&(0,C.each)(e,(function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=(0,oe.getAnimationConfig)("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(t){t instanceof y.default&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function Bw(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function Fw(t){return(0,C.isArray)(t)?t.sort().join(","):t}function Gw(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function jw(t,e){for(var n=0;n<t.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}(0,d.use)([f.install]),(0,d.use)([function(t){t.registerPainter("svg",Ut)}]),(0,d.use)([function(t){t.registerChartView(rs),t.registerSeriesModel(Ra),t.registerLayout(hi("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,qt("line"))},function(t){t.registerChartView(Ue),t.registerSeriesModel(re),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,C.curry(Yt.layout,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,Yt.createProgressiveLayout)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,qt("bar")),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)}))}))},function(t){t.registerChartView(Ah),t.registerSeriesModel(kh),(0,kl.createLegacyDataSelectAction)("pie",t.registerAction),t.registerLayout((0,C.curry)(_h,"pie")),t.registerProcessor(Di("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!((0,C.isNumber)(r)&&!isNaN(r)&&r<0)}))}})},function(t){(0,d.use)(wd),t.registerSeriesModel(Vp),t.registerChartView(jp),t.registerLayout(hi("scatter"))},function(t){(0,d.use)($h),t.registerChartView(Nh),t.registerSeriesModel(zh),t.registerLayout(Lh),t.registerProcessor(Di("radar")),t.registerPreprocessor(Eh)},function(t){(0,d.use)(Yl),t.registerChartView(Il),t.registerSeriesModel(Al),t.registerLayout(Dl),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Cl),(0,kl.createLegacyDataSelectAction)("map",t.registerAction)},function(t){t.registerChartView(yf),t.registerSeriesModel(vf),t.registerLayout(_f),t.registerVisual(bf),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=Ta(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}(t)},function(t){t.registerSeriesModel(If),t.registerChartView(Gf),t.registerVisual(Hf),t.registerLayout(ng),function(t){for(var e=0;e<Sf.length;e++)t.registerAction({type:Sf[e],update:"updateView"},C.noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var r=Td(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=Cd(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}))}(t)},function(t){t.registerChartView(na),t.registerSeriesModel(Ma),t.registerProcessor(zi),t.registerVisual(Bi),t.registerVisual(Gi),t.registerLayout(Qi),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,ao),t.registerLayout(lo),t.registerCoordinateSystem("graphView",{dimensions:po.dimensions,create:go}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},C.noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},C.noop),t.registerAction(Aa,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=Ta(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t){t.registerChartView(Ri),t.registerSeriesModel(Vi)},function(t){t.registerChartView(wi),t.registerSeriesModel(Ti),t.registerLayout(Ci),t.registerProcessor(Di("funnel"))},function(t){(0,d.use)(Uc),t.registerChartView(Ql),t.registerSeriesModel(eu),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ru)},function(t){t.registerChartView(ip),t.registerSeriesModel(ap),t.registerLayout(sp),t.registerVisual(Rp),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel($e),t.registerChartView(sn),t.registerLayout(un),t.registerTransform(pn)},function(t){t.registerChartView(In),t.registerSeriesModel(An),t.registerPreprocessor(Cn),t.registerVisual(Rn),t.registerLayout(zn)},function(t){t.registerChartView(di),t.registerSeriesModel(gi),t.registerLayout(hi("effectScatter"))},function(t){t.registerChartView(gs),t.registerSeriesModel(_s),t.registerLayout(ds),t.registerVisual(Ss)},function(t){t.registerChartView(La),t.registerSeriesModel(Pa)},function(t){t.registerChartView(dh),t.registerSeriesModel(gh),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,(0,C.curry)(Yt.layout,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,Yt.createProgressiveLayout)("pictorialBar"))},function(t){t.registerChartView(Yd),t.registerSeriesModel(Zd),t.registerLayout(qd),t.registerProcessor(Di("themeRiver"))},function(t){t.registerChartView(Pd),t.registerSeriesModel(Fd),t.registerLayout((0,C.curry)(jd,"sunburst")),t.registerProcessor((0,C.curry)(Di,"sunburst")),t.registerVisual(Wd),function(t){t.registerAction({type:kd,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=Td(t,[kd],e);if(r){var i=e.getViewRoot();i&&(t.direction=Cd(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))})),t.registerAction({type:Ld,update:"none"},(function(t,e,n){t=(0,C.extend)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=Td(t,[Ld],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction((0,C.extend)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=(0,C.extend)({},t),n.dispatchAction((0,C.extend)(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(Nr),t.registerSeriesModel(Wn)}]),(0,d.use)((function(t){(0,d.use)(wd),(0,d.use)(ty)})),(0,d.use)((function(t){(0,d.use)(ty),hd.registerAxisPointerClass("PolarAxisPointer",yx),t.registerCoordinateSystem("polar",Ex),t.registerComponentModel(vx),t.registerComponentView(Qx),Eu(t,"angle",_x,Kx),Eu(t,"radius",bx,Jx),t.registerComponentView(Gx),t.registerComponentView(Yx),t.registerLayout((0,C.curry)(qx,"bar"))})),(0,d.use)(Yl),(0,d.use)((function(t){(0,d.use)(ty),hd.registerAxisPointerClass("SingleAxisPointer",v_),t.registerComponentView(x_),t.registerComponentView(i_),t.registerComponentModel(a_),Eu(t,"single",a_,a_.defaultOption),t.registerCoordinateSystem("single",h_)})),(0,d.use)(Uc),(0,d.use)((function(t){t.registerComponentModel(Xy),t.registerComponentView(Ky),t.registerCoordinateSystem("calendar",$y)})),(0,d.use)((function(t){t.registerComponentModel(Ym),t.registerComponentView(qm),t.registerPreprocessor((function(t){var e=t.graphic;(0,C.isArray)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),(0,d.use)((function(t){t.registerComponentModel(Y_),t.registerComponentView(Z_),Fy("saveAsImage",K_),Fy("magicType",eb),Fy("dataView",lb),Fy("dataZoom",_b),Fy("restore",db),(0,d.use)(W_)})),(0,d.use)((function(t){(0,d.use)(ty),t.registerComponentModel(Sb),t.registerComponentView(Wb),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},C.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},C.noop)})),(0,d.use)(ty),(0,d.use)((function(t){t.registerComponentView(Ey),t.registerComponentModel(Vy),t.registerPreprocessor(ny),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Cy),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},C.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},C.noop),Fy("brush",Wy)})),(0,d.use)((function(t){t.registerComponentModel(z_),t.registerComponentView(B_)})),(0,d.use)((function(t){t.registerComponentModel(w_),t.registerComponentView(E_),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),(0,C.defaults)({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(R_)})),(0,d.use)((function(t){t.registerComponentModel(cx),t.registerComponentView(dx),t.registerPreprocessor((function(t){Mv(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),(0,d.use)((function(t){t.registerComponentModel(tx),t.registerComponentView(lx),t.registerPreprocessor((function(t){Mv(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),(0,d.use)((function(t){t.registerComponentModel(Lv),t.registerComponentView(Qv),t.registerPreprocessor((function(t){Mv(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),(0,d.use)((function(t){(0,d.use)(fv),(0,d.use)(wv)})),(0,d.use)((function(t){(0,d.use)(km),(0,d.use)(Gm)})),(0,d.use)(km),(0,d.use)(Gm),(0,d.use)((function(t){(0,d.use)(jS),(0,d.use)(qS)})),(0,d.use)(jS),(0,d.use)(qS),(0,d.use)((function(t){t.registerPreprocessor(pg),t.registerVisual(t.PRIORITY.VISUAL.ARIA,hg)})),(0,d.use)((function(t){t.registerTransform(nS),t.registerTransform(rS)})),(0,d.use)(tm.install),(0,d.use)((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(0,C.each)((0,Bn.normalizeToArray)(n.seriesTransition),(function(t){(0,C.each)((0,Bn.normalizeToArray)(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][Jt.SERIES_UNIVERSAL_TRANSITION_PROP]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=Ow(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)(0,C.each)((0,Bn.normalizeToArray)(i),(function(t){!function(t,e,n,r){var i=[],o=[];(0,C.each)((0,Bn.normalizeToArray)(t.from),(function(t){var n=jw(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:Gw(e.oldData[n]),groupIdDim:t.dimension})})),(0,C.each)((0,Bn.normalizeToArray)(t.to),(function(t){var r=jw(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:Gw(i),groupIdDim:t.dimension})}})),i.length>0&&o.length>0&&zw(i,o,r)}(t,r,n,e)}));else{var o=function(t,e){var n=(0,C.createHashMap)(),r=(0,C.createHashMap)(),i=(0,C.createHashMap)();return(0,C.each)(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=Bw(e),l=Fw(s);r.set(l,{dataGroupId:o,data:a}),(0,C.isArray)(s)&&(0,C.each)(s,(function(t){i.set(t,{key:l,dataGroupId:o,data:a})}))})),(0,C.each)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=Bw(t),s=Fw(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Gw(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Gw(o),data:o}]});else if((0,C.isArray)(a)){var u=[];(0,C.each)(a,(function(t){var e=r.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Gw(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:Gw(o)}]})}else{var c=i.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Gw(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:Gw(o)})}}}})),n}(r,n);(0,C.each)(o.keys(),(function(t){var n=o.get(t);zw(n.oldSeries,n.newSeries,e)}))}(0,C.each)(n.updatedSeries,(function(t){t[Jt.SERIES_UNIVERSAL_TRANSITION_PROP]&&(t[Jt.SERIES_UNIVERSAL_TRANSITION_PROP]=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<1e4&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))})),(0,d.use)(KS.installLabelLayout),Eo=o("5TtXY"),o("391mA"),Eo=o("5TtXY");var Hw=o("lgAJl"),Ww=o("9Fdih"),Uw=o("esD2j"),Yw=o("hR0oZ");o("391mA");var Xw=o("4gVD6");Hw=o("lgAJl"),Xe=o("ao62o"),Xw.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(t){return{fill:t.get("color")}},visualDrawType:"fill",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var n=Hw.createDimensions(t.data,{coordDimensions:["value"]}),r=new Xe.default(n,this);return r.initData(t.data),r},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{fontWeight:"normal"}}}),o("391mA"),Xw=o("4gVD6");var Zw=o("1i5Jx");Hw=o("lgAJl"),Xw.extendChartView({type:"wordCloud",render:function(t,e,n){var r=this.group;r.removeAll();var i=t.getData(),o=t.get("gridSize");t.layoutInstance.ondraw=function(e,n,a,s){var l=i.getItemModel(a),u=l.getModel("textStyle"),c=new Zw.Text({style:Hw.createTextStyle(u),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*o,y:(s.gy+s.info.gh/2)*o,rotation:s.rot});c.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:e,verticalAlign:"middle",fill:i.getItemVisual(a,"style").fill,fontSize:n}),r.add(c),i.setItemGraphicEl(a,c),c.ensureState("emphasis").style=Hw.createTextStyle(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),c.ensureState("blur").style=Hw.createTextStyle(l.getModel(["blur","textStyle"]),{state:"blur"}),Hw.enableHoverEmphasis(c,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),c.stateTransition={duration:t.get("animation")?t.get(["stateAnimation","duration"]):0,easing:t.get(["stateAnimation","easing"])},c.__highDownDispatcher=!0},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e="zero-timeout-message";return window.addEventListener("message",(function(n){if("string"==typeof n.data&&n.data.substr(0,e.length)===e){n.stopImmediatePropagation();var r=parseInt(n.data.substr(e.length),36);t[r]&&(t[r](),t[r]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(n){var r=t.length;return t.push(n),window.postMessage(e+r.toString(36),"*"),r}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var qw=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!!(e.getImageData&&e.fillText&&Array.prototype.some&&Array.prototype.push)}(),Kw=function(){if(qw){for(var t,e,n=document.createElement("canvas").getContext("2d"),r=20;r;){if(n.font=r.toString(10)+"px sans-serif",n.measureText("W").width===t&&n.measureText("m").width===e)return r+1;t=n.measureText("W").width,e=n.measureText("m").width,r--}return 0}}(),Jw=function(t){for(var e,n,r=t.length;r;e=Math.floor(Math.random()*r),n=t[--r],t[r]=t[e],t[e]=n);return t},Qw=function(t,e){if(qw){Array.isArray(t)||(t=[t]),t.forEach((function(e,n){if("string"==typeof e){if(t[n]=document.getElementById(e),!t[n])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."}));var n={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var r in e)r in n&&(n[r]=e[r]);if("function"!=typeof n.weightFactor){var i=n.weightFactor;n.weightFactor=function(t){return t*i}}if("function"!=typeof n.shape)switch(n.shape){case"circle":default:n.shape="circle";break;case"cardioid":n.shape=function(t){return 1-Math.sin(t)};break;case"diamond":case"square":n.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":n.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":n.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":n.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":n.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}n.gridSize=Math.max(Math.floor(n.gridSize),4);var o,a,s,l,u,c,h,p=n.gridSize,d=p-n.maskGapWidth,f=Math.abs(n.maxRotation-n.minRotation),g=Math.min(n.maxRotation,n.minRotation),y=n.rotationStep;switch(n.color){case"random-dark":h=function(){return k(10,50)};break;case"random-light":h=function(){return k(50,90)};break;default:"function"==typeof n.color&&(h=n.color)}var m=null;"function"==typeof n.classes&&(m=n.classes);var v,x=!1,_=[],b=function(t){var e,n,r=t.currentTarget,i=r.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,n=t.touches[0].clientY):(e=t.clientX,n=t.clientY);var o=e-i.left,a=n-i.top,s=Math.floor(o*(r.width/i.width||1)/p),l=Math.floor(a*(r.height/i.height||1)/p);return _[s][l]},S=function(t){var e=b(t);v!==e&&(v=e,e?n.hover(e.item,e.dimension,t):n.hover(void 0,void 0,t))},w=function(t){var e=b(t);e&&(n.click(e.item,e.dimension,t),t.preventDefault())},M=[],I=function(t){if(M[t])return M[t];var e=8*t,r=e,i=[];for(0===t&&i.push([l[0],l[1],0]);r--;){var o=1;"circle"!==n.shape&&(o=n.shape(r/e*2*Math.PI)),i.push([l[0]+t*o*Math.cos(-r/e*2*Math.PI),l[1]+t*o*Math.sin(-r/e*2*Math.PI)*n.ellipticity,r/e*2*Math.PI])}return M[t]=i,i},T=function(){return n.abortThreshold>0&&(new Date).getTime()-c>n.abortThreshold},A=function(e,n,r,i,l){e>=a||n>=s||e<0||n<0||(o[e][n]=!1,r&&t[0].getContext("2d").fillRect(e*p,n*p,d,d),x&&(_[e][n]={item:l,dimension:i}))},C=function(e){var r,i,l;Array.isArray(e)?(r=e[0],i=e[1]):(r=e.word,i=e.weight,l=e.attributes);var c=0===n.rotateRatio||Math.random()>n.rotateRatio?0:0===f?g:g+Math.round(Math.random()*f/y)*y,d=function(t,e,r){var i=n.weightFactor(e);if(i<=n.minSize)return!1;var o=1;i<Kw&&(o=function(){for(var t=2;t*i<Kw;)t+=2;return t}());var a=document.createElement("canvas"),s=a.getContext("2d",{willReadFrequently:!0});s.font=n.fontWeight+" "+(i*o).toString(10)+"px "+n.fontFamily;var l=s.measureText(t).width/o,u=Math.max(i*o,s.measureText("m").width,s.measureText("W").width)/o,c=l+2*u,h=3*u,d=Math.ceil(c/p),f=Math.ceil(h/p);c=d*p,h=f*p;var g=-l/2,y=.4*-u,m=Math.ceil((c*Math.abs(Math.sin(r))+h*Math.abs(Math.cos(r)))/p),v=Math.ceil((c*Math.abs(Math.cos(r))+h*Math.abs(Math.sin(r)))/p),x=v*p,_=m*p;a.setAttribute("width",x),a.setAttribute("height",_),s.scale(1/o,1/o),s.translate(x*o/2,_*o/2),s.rotate(-r),s.font=n.fontWeight+" "+(i*o).toString(10)+"px "+n.fontFamily,s.fillStyle="#000",s.textBaseline="middle",s.fillText(t,g*o,(y+.5*i)*o);var b=s.getImageData(0,0,x,_).data;if(T())return!1;for(var S,w,M,I=[],A=v,C=[m/2,v/2,m/2,v/2];A--;)for(S=m;S--;){M=p;t:for(;M--;)for(w=p;w--;)if(b[4*((S*p+M)*x+(A*p+w))+3]){I.push([A,S]),A<C[3]&&(C[3]=A),A>C[1]&&(C[1]=A),S<C[0]&&(C[0]=S),S>C[2]&&(C[2]=S);break t}}return{mu:o,occupied:I,bounds:C,gw:v,gh:m,fillTextOffsetX:g,fillTextOffsetY:y,fillTextWidth:l,fillTextHeight:u,fontSize:i}}(r,i,c);if(!d)return!1;if(T())return!1;if(!n.drawOutOfBound){var v=d.bounds;if(v[1]-v[3]+1>a||v[2]-v[0]+1>s)return!1}for(var _=u+1,b=function(f){var g=Math.floor(f[0]-d.gw/2),y=Math.floor(f[1]-d.gh/2);return d.gw,d.gh,!!function(t,e,r,i,l){for(var u=l.length;u--;){var c=t+l[u][0],h=e+l[u][1];if(c>=a||h>=s||c<0||h<0){if(!n.drawOutOfBound)return!1}else if(!o[c][h])return!1}return!0}(g,y,0,0,d.occupied)&&(function(e,r,i,o,a,s,l,u,c){var d,f,g=i.fontSize;d=h?h(o,a,g,s,l):n.color,f=m?m(o,a,g,s,l):n.classes;var y=i.bounds;y[3],y[0],y[1],y[3],y[2],y[0],t.forEach((function(t){if(t.getContext){var a=t.getContext("2d"),s=i.mu;a.save(),a.scale(1/s,1/s),a.font=n.fontWeight+" "+(g*s).toString(10)+"px "+n.fontFamily,a.fillStyle=d,a.translate((e+i.gw/2)*p*s,(r+i.gh/2)*p*s),0!==u&&a.rotate(-u),a.textBaseline="middle",a.fillText(o,i.fillTextOffsetX*s,(i.fillTextOffsetY+.5*g)*s),a.restore()}else{var l=document.createElement("span"),h="";h="rotate("+-u/Math.PI*180+"deg) ",1!==i.mu&&(h+="translateX(-"+i.fillTextWidth/4+"px) scale("+1/i.mu+")");var y={position:"absolute",display:"block",font:n.fontWeight+" "+g*i.mu+"px "+n.fontFamily,left:(e+i.gw/2)*p+i.fillTextOffsetX+"px",top:(r+i.gh/2)*p+i.fillTextOffsetY+"px",width:i.fillTextWidth+"px",height:i.fillTextHeight+"px",lineHeight:g+"px",whiteSpace:"nowrap",transform:h,webkitTransform:h,msTransform:h,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var m in d&&(y.color=d),l.textContent=o,y)l.style[m]=y[m];if(c)for(var v in c)l.setAttribute(v,c[v]);f&&(l.className+=f),t.appendChild(l)}}))}(g,y,d,r,i,u-_,f[2],c,l),function(e,r,i,o,l,u){var c,h,d=l.occupied,f=n.drawMask;if(f&&((c=t[0].getContext("2d")).save(),c.fillStyle=n.maskColor),x){var g=l.bounds;h={x:(e+g[3])*p,y:(r+g[0])*p,w:(g[1]-g[3]+1)*p,h:(g[2]-g[0]+1)*p}}for(var y=d.length;y--;){var m=e+d[y][0],v=r+d[y][1];m>=a||v>=s||m<0||v<0||A(m,v,f,h,u)}f&&c.restore()}(g,y,0,0,d,e),{gx:g,gy:y,rot:c,info:d})};_--;){var S=I(u-_);n.shuffle&&(S=[].concat(S),Jw(S));for(var w=0;w<S.length;w++){var M=b(S[w]);if(M)return M}}return null},D=function(e,n,r){if(n)return!t.some((function(t){var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,!0,n,r||{}),!t.dispatchEvent(i)}),this);t.forEach((function(t){var i=document.createEvent("CustomEvent");i.initCustomEvent(e,!0,n,r||{}),t.dispatchEvent(i)}),this)};!function(){var e=t[0];if(e.getContext)a=Math.ceil(e.width/p),s=Math.ceil(e.height/p);else{var r=e.getBoundingClientRect();a=Math.ceil(r.width/p),s=Math.ceil(r.height/p)}if(D("wordcloudstart",!0)){var i,h,d,f,g;if(l=n.origin?[n.origin[0]/p,n.origin[1]/p]:[a/2,s/2],u=Math.floor(Math.sqrt(a*a+s*s)),o=[],!e.getContext||n.clearCanvas)for(t.forEach((function(t){if(t.getContext){var e=t.getContext("2d");e.fillStyle=n.backgroundColor,e.clearRect(0,0,a*(p+1),s*(p+1)),e.fillRect(0,0,a*(p+1),s*(p+1))}else t.textContent="",t.style.backgroundColor=n.backgroundColor,t.style.position="relative"})),i=a;i--;)for(o[i]=[],h=s;h--;)o[i][h]=!0;else{var y=document.createElement("canvas").getContext("2d");y.fillStyle=n.backgroundColor,y.fillRect(0,0,1,1);var m,b,M=y.getImageData(0,0,1,1).data,I=e.getContext("2d").getImageData(0,0,a*p,s*p).data;for(i=a;i--;)for(o[i]=[],h=s;h--;){b=p;t:for(;b--;)for(m=p;m--;)for(d=4;d--;)if(I[4*((h*p+b)*a*p+(i*p+m))+d]!==M[d]){o[i][h]=!1;break t}!1!==o[i][h]&&(o[i][h]=!0)}I=y=M=void 0}if(n.hover||n.click){for(x=!0,i=a+1;i--;)_[i]=[];n.hover&&e.addEventListener("mousemove",S),n.click&&(e.addEventListener("click",w),e.addEventListener("touchstart",w),e.addEventListener("touchend",(function(t){t.preventDefault()})),e.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),e.addEventListener("wordcloudstart",(function t(){e.removeEventListener("wordcloudstart",t),e.removeEventListener("mousemove",S),e.removeEventListener("click",w),v=void 0}))}d=0;var A=!0;n.layoutAnimation?0!==n.wait?(f=window.setTimeout,g=window.clearTimeout):(f=window.setImmediate,g=window.clearImmediate):(f=function(t){t()},g=function(){A=!1});var k=function(e,n){t.forEach((function(t){t.removeEventListener(e,n)}),this)},L=function t(){k("wordcloudstart",t),g(O)};!function(e,n){t.forEach((function(t){t.addEventListener("wordcloudstart",n)}),this)}(0,L);var O=(n.layoutAnimation?f:setTimeout)((function t(){if(A){if(d>=n.list.length)return g(O),D("wordcloudstop",!1),void k("wordcloudstart",L);c=(new Date).getTime();var e=C(n.list[d]),r=!D("wordclouddrawn",!0,{item:n.list[d],drawn:e});if(T()||r)return g(O),n.abort(),D("wordcloudabort",!1),D("wordcloudstop",!1),void k("wordcloudstart",L);d++,O=f(t,n.wait)}}),n.wait)}}()}function k(t,e){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(e-t)+t).toFixed()+"%)"}};Qw.isSupported=qw,Qw.minFontSize=Kw;var $w=Qw;if(!$w.isSupported)throw new Error("Sorry your browser not support wordCloud");Eo.registerLayout((function(t,e){t.eachSeriesByType("wordCloud",(function(n){var r=Hw.getLayoutRect(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),i=n.getData(),o=document.createElement("canvas");o.width=r.width,o.height=r.height;var a=o.getContext("2d"),s=n.get("maskImage");if(s)try{a.drawImage(s,0,0,o.width,o.height),function(t){for(var e=t.getContext("2d"),n=e.getImageData(0,0,t.width,t.height),r=e.createImageData(n),i=0,o=0,a=0;a<n.data.length;a+=4)n.data[a+3]>128&&(i+=l=n.data[a]+n.data[a+1]+n.data[a+2],++o);var s=i/o;for(a=0;a<n.data.length;a+=4){var l=n.data[a]+n.data[a+1]+n.data[a+2];n.data[a+3]<128||l>s?(r.data[a]=0,r.data[a+1]=0,r.data[a+2]=0,r.data[a+3]=0):(r.data[a]=255,r.data[a+1]=255,r.data[a+2]=255,r.data[a+3]=255)}e.putImageData(r,0,0)}(o)}catch(t){console.error("Invalid mask image"),console.error(t.toString())}var l=n.get("sizeRange"),u=n.get("rotationRange"),c=i.getDataExtent("value"),h=Math.PI/180,p=n.get("gridSize");function d(t){var e=t.detail.item;t.detail.drawn&&n.layoutInstance.ondraw&&(t.detail.drawn.gx+=r.x/p,t.detail.drawn.gy+=r.y/p,n.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}$w(o,{list:i.mapArray("value",(function(t,e){var n=i.getItemModel(e);return[i.getName(e),n.get("textStyle.fontSize",!0)||Ww.linearMap(t,c,l),e]})).sort((function(t,e){return e[1]-t[1]})),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||t.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||t.get("textStyle.fontWeight"),gridSize:p,ellipticity:r.height/r.width,minRotation:u[0]*h,maxRotation:u[1]*h,clearCanvas:!s,rotateRatio:1,rotationStep:n.get("rotationStep")*h,drawOutOfBound:n.get("drawOutOfBound"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),o.addEventListener("wordclouddrawn",d),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){o.removeEventListener("wordclouddrawn",d),o.addEventListener("wordclouddrawn",(function(t){t.preventDefault()}))}}}))})),Eo.registerPreprocessor((function(t){var e=(t||{}).series;!Uw.isArray(e)&&(e=e?[e]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r(t){t&&Uw.each(n,(function(e){t.hasOwnProperty(e)&&(t["text"+Yw.capitalFirst(e)]=t[e])}))}Uw.each(e,(function(t){if(t&&"wordCloud"===t.type){var e=t.textStyle||{};r(e.normal),r(e.emphasis)}}))}));var tM,eM,nM={};tM=nM,eM=function(t,e){e.registerLocale("DE",{time:{month:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthAbbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayOfWeekAbbr:["So","Mo","Di","Mi","Do","Fr","Sa"]},legend:{selector:{all:"Alle",inverse:"Invertiert"}},toolbox:{brush:{title:{rect:"Box Auswahl",polygon:"Lasso Auswahl",lineX:"Horizontale Auswahl",lineY:"Vertikale Auswahl",keep:"Bereich Auswahl",clear:"Auswahl zurücksetzen"}},dataView:{title:"Daten Ansicht",lang:["Daten Ansicht","Schließen","Aktualisieren"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom zurücksetzen"}},magicType:{title:{line:"Zu Liniendiagramm wechseln",bar:"Zu Balkendiagramm wechseln",stack:"Stapel",tiled:"Kachel"}},restore:{title:"Wiederherstellen"},saveAsImage:{title:"Als Bild speichern",lang:["Rechtsklick zum Speichern des Bildes"]}},series:{typeNames:{pie:"Tortendiagramm",bar:"Balkendiagramm",line:"Liniendiagramm",scatter:"Streudiagramm",effectScatter:"Welligkeits-Streudiagramm",radar:"Radar-Karte",tree:"Baum",treemap:"Baumkarte",boxplot:"Boxplot",candlestick:"Kerzenständer",k:"K Liniendiagramm",heatmap:"Heatmap",map:"Karte",parallel:"Parallele Koordinatenkarte",lines:"Liniendiagramm",graph:"Beziehungsgrafik",sankey:"Sankey-Diagramm",funnel:"Trichterdiagramm",gauge:"Meßanzeige",pictorialBar:"Bildlicher Balken",themeRiver:"Thematische Flusskarte",sunburst:"Sonnenausbruch",custom:"Graficu persunalizatu",chart:"Diagramm"}},aria:{general:{withTitle:'Dies ist ein Diagramm über "{title}"',withoutTitle:"Dies ist ein Diagramm"},series:{single:{prefix:"",withName:" mit Typ {seriesType} namens {seriesName}.",withoutName:" mit Typ {seriesType}."},multiple:{prefix:". Es besteht aus {seriesCount} Serienzählung.",withName:" Die Serie {seriesId} ist ein {seriesType} welcher {seriesName} darstellt.",withoutName:" Die {seriesId}-Reihe ist ein {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Die Daten sind wie folgt: ",partialData:"Die ersten {displayCnt} Elemente sind: ",withName:"die Daten für {name} sind {value}",withoutName:"{value}",separator:{middle:",",end:"."}}}})},"function"==typeof define&&define.amd?define(["exports","echarts"],eM):eM(0,"string"!=typeof nM.nodeName?o("391mA"):tM.echarts);var rM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof rM.nodeName?e(rM,o("391mA")):e({},t.echarts)}(rM,(function(t,e){e.registerLocale("EN",{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:". "}}}})}));var iM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof iM.nodeName?e(iM,o("391mA")):e({},t.echarts)}(iM,(function(t,e){e.registerLocale("ES",{time:{month:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthAbbr:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayOfWeek:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayOfWeekAbbr:["dom","lun","mar","mie","jue","vie","sáb"]},legend:{selector:{all:"Todas",inverse:"Inversa"}},toolbox:{brush:{title:{rect:"Selección de cuadro",polygon:"Selección de lazo",lineX:"Seleccionar horizontalmente",lineY:"Seleccionar verticalmente",keep:"Mantener selección",clear:"Despejar selecciones"}},dataView:{title:"Ver datos",lang:["Ver datos","Cerrar","Actualizar"]},dataZoom:{title:{zoom:"Zoom",back:"Restablecer zoom"}},magicType:{title:{line:"Cambiar a gráfico de líneas",bar:"Cambiar a gráfico de barras",stack:"Pila",tiled:"Teja"}},restore:{title:"Restaurar"},saveAsImage:{title:"Guardar como imagen",lang:["Clic derecho para guardar imagen"]}},series:{typeNames:{pie:"Gráfico circular",bar:"Gráfico de barras",line:"Gráfico de líneas",scatter:"Diagrama de dispersión",effectScatter:"Diagrama de dispersión de ondas",radar:"Gráfico de radar",tree:"Árbol",treemap:"Mapa de árbol",boxplot:"Diagrama de caja",candlestick:"Gráfico de velas",k:"Gráfico de líneas K",heatmap:"Mapa de calor",map:"Mapa",parallel:"Mapa de coordenadas paralelas",lines:"Gráfico de líneas",graph:"Gráfico de relaciones",sankey:"Diagrama de Sankey",funnel:"Gráfico de embudo",gauge:"Medidor",pictorialBar:"Gráfico de barras pictóricas",themeRiver:"Mapa de río temático",sunburst:"Sunburst",custom:"Gráfico personalizado",chart:"Gráfico"}},aria:{general:{withTitle:"Este es un gráfico sobre “{title}”",withoutTitle:"Este es un gráfico"},series:{single:{prefix:"",withName:" con tipo {seriesType} llamado {seriesName}.",withoutName:" con tipo {seriesType}."},multiple:{prefix:". Consta de {seriesCount} series.",withName:" La serie {seriesId} es un {seriesType} que representa {seriesName}.",withoutName:" La serie {seriesId} es un {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Los datos son los siguientes: ",partialData:"Los primeros {displayCnt} elementos son: ",withName:"los datos para {name} son {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}})}));var oM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof oM.nodeName?e(oM,o("391mA")):e({},t.echarts)}(oM,(function(t,e){e.registerLocale("FI",{time:{month:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],monthAbbr:["tammik","helmik","maalisk","huhtik","toukok","kesäk","heinäk","elok","syysk","lokak","marrask","jouluk"],dayOfWeek:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],dayOfWeekAbbr:["su","ma","ti","ke","to","pe","la"]},legend:{selector:{all:"Kaikki",inverse:"Käänteinen"}},toolbox:{brush:{title:{rect:"Laatikko valinta",polygon:"Lasso valinta",lineX:"Vaakataso valinta",lineY:"Pysty valinta",keep:"Pidä valinta",clear:"Poista valinta"}},dataView:{title:"Data näkymä",lang:["Data näkymä","Sulje","Päivitä"]},dataZoom:{title:{zoom:"Zoomaa",back:"Zoomin nollaus"}},magicType:{title:{line:"Vaihda Viivakaavioon",bar:"Vaihda palkkikaavioon",stack:"Pinoa",tiled:"Erottele"}},restore:{title:"Palauta"},saveAsImage:{title:"Tallenna kuvana",lang:["Paina oikeaa hiirennappia tallentaaksesi kuva"]}},series:{typeNames:{pie:"Ympyrädiagrammi",bar:"Pylväsdiagrammi",line:"Viivakaavio",scatter:"Pisteplot",effectScatter:"Ripple-pisteplot",radar:"Sädekaavio",tree:"Puu",treemap:"Tilastoaluekartta",boxplot:"Viivadiagrammi",candlestick:"Kynttiläkaavio",k:"K-linjakaavio",heatmap:"Lämpökartta",map:"Kartta",parallel:"Rinnakkaiskoordinaattikartta",lines:"Viivakuvaaja",graph:"Suhdekuvaaja",sankey:"Sankey-kaavio",funnel:"Suppilokaavio",gauge:"Mittari",pictorialBar:"Kuvallinen pylväs",themeRiver:"Teemajokikartta",sunburst:"Auringonkehä",custom:"Mukautettu kaavio",chart:"Kaavio"}},aria:{general:{withTitle:"Tämä on kaavio “{title}”",withoutTitle:"Tämä on kaavio"},series:{single:{prefix:"",withName:" tyyppiä {seriesType} nimeltään {seriesName}.",withoutName:" tyyppiä {seriesType}."},multiple:{prefix:". Se koostuu {seriesCount} sarjasta.",withName:" Sarja {seriesId} on {seriesType}, joka edustaa {seriesName}.",withoutName:" Sarja {seriesId} on {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Tiedot ovat seuraavat: ",partialData:"Ensimmäiset {displayCnt} kohtaa ovat: ",withName:"tiedot nimelle {name} ovat {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}})}));var aM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof aM.nodeName?e(aM,o("391mA")):e({},t.echarts)}(aM,(function(t,e){e.registerLocale("FR",{time:{month:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthAbbr:["Jan","Fév","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Déc"],dayOfWeek:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayOfWeekAbbr:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},legend:{selector:{all:"Tout",inverse:"Inverse"}},toolbox:{brush:{title:{rect:"Sélection rectangulaire",polygon:"Sélection au lasso",lineX:"Sélectionner horizontalement",lineY:"Sélectionner verticalement",keep:"Garder la sélection",clear:"Effacer la sélection"}},dataView:{title:"Visualisation des données",lang:["Visualisation des données","Fermer","Rafraîchir"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Remise à zéro"}},magicType:{title:{line:"Changer pour Ligne",bar:"Changer pour Histogramme",stack:"Superposition",tiled:"Tuile"}},restore:{title:"Restaurer"},saveAsImage:{title:"Sauvegarder l'image",lang:["Clic droit pour sauvegarder l'image"]}},series:{typeNames:{pie:"Camembert",bar:"Histogramme",line:"Ligne",scatter:"Nuage de points",effectScatter:"Nuage de points stylisé",radar:"Radar",tree:"Arbre",treemap:"Treemap",boxplot:"Boîte à moustaches",candlestick:"Chandelier",k:"Linéaire K",heatmap:"Carte de fréquentation",map:"Carte",parallel:"Données parallèles",lines:"Lignes",graph:"Graphe",sankey:"Sankey",funnel:"Entonnoir",gauge:"Jauge",pictorialBar:"Barres à images",themeRiver:"Stream Graph",sunburst:"Sunburst",custom:"Graphique personnalisé",chart:"Graphique"}},aria:{general:{withTitle:'Cette carte est intitulée "{title}"',withoutTitle:"C'est une carte"},series:{single:{prefix:"",withName:" Avec le type de {seriesType} qui s'appelle {seriesName}.",withoutName:" Avec le type de {seriesType}."},multiple:{prefix:" Elle comprend {seriesCount} séries.",withName:" La série {seriesId} représente {seriesName} de {seriesType}.",withoutName:" La série {seriesId} est un/une {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"Les données sont: ",partialData:"Les premiers {displayCnt} éléments sont : ",withName:"Les données pour {name} sont {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}})}));var sM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof sM.nodeName?e(sM,o("391mA")):e({},t.echarts)}(sM,(function(t,e){e.registerLocale("JA",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayOfWeekAbbr:["日","月","火","水","木","金","土"]},legend:{selector:{all:"すべてを選択",inverse:"選択範囲を反転"}},toolbox:{brush:{title:{rect:"矩形選択",polygon:"なげなわ選択",lineX:"横方向に選択",lineY:"縦方向に選択",keep:"選択範囲を維持",clear:"選択範囲をクリア"}},dataView:{title:"データビュー",lang:["データビュー","閉じる","リロード"]},dataZoom:{title:{zoom:"ズーム",back:"リセット"}},magicType:{title:{line:"折れ線に切り替え",bar:"棒に切り替え",stack:"積み上げに切り替え",tiled:"タイル状に切り替え"}},restore:{title:"復元"},saveAsImage:{title:"図として保存",lang:["右クリックして図を保存"]}},series:{typeNames:{pie:"円グラフ",bar:"棒グラフ",line:"折れ線グラフ",scatter:"散布図",effectScatter:"エフェクト散布図",radar:"レーダーチャート",tree:"階層グラフ",treemap:"ツリーマップ",boxplot:"箱ひげ図",candlestick:"Kチャート",k:"Kチャート",heatmap:"ヒートマップ",map:"地図",parallel:"パラレルチャート",lines:"ラインチャート",graph:"相関図",sankey:"サンキーダイアグラム",funnel:"ファネルグラフ",gauge:"ゲージ",pictorialBar:"絵入り棒グラフ",themeRiver:"テーマリバー",sunburst:"サンバースト",custom:"カスタムチャート",chart:"チャート"}},aria:{general:{withTitle:"これは「{title}」に関するチャートです。",withoutTitle:"これはチャートで、"},series:{single:{prefix:"",withName:"チャートのタイプは{seriesType}で、{seriesName}を示しています。",withoutName:"チャートのタイプは{seriesType}です。"},multiple:{prefix:"{seriesCount}つのチャートシリーズによって構成されています。",withName:"{seriesId}番目のシリーズは{seriesName}を示した{seriesType}で、",withoutName:"{seriesId}番目のシリーズは{seriesType}で、",separator:{middle:";",end:"。"}}},data:{allData:"データは:",partialData:"その内、{displayCnt}番目までは:",withName:"{name}のデータは{value}",withoutName:"{value}",separator:{middle:"、",end:""}}}})}));var lM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof lM.nodeName?e(lM,o("391mA")):e({},t.echarts)}(lM,(function(t,e){e.registerLocale("TH",{time:{month:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthAbbr:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],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",heatmap:"แผนที่ความร้อน",map:"แผนที่",parallel:"แผนที่พิกัดขนาน",lines:"กราฟเส้น",graph:"กราฟความสัมพันธ์",sankey:"แผนภูมิซันกีย์",funnel:"แผนภูมิกรวย",gauge:"เกจ",pictorialBar:"แผนภูมิแท่งภาพ",themeRiver:"แผนที่แม่น้ำธีม",sunburst:"Sunburst",custom:"แผนภูมิที่กำหนดเอง",chart:"แผนภูมิ"}},aria:{general:{withTitle:"นี่คือแผนภูมิเกี่ยวกับ “{title}”",withoutTitle:"นี่คือแผนภูมิ"},series:{single:{prefix:"",withName:" ด้วยประเภท {seriesType} ชื่อ {seriesName} ",withoutName:" ด้วยประเภท {seriesType} "},multiple:{prefix:" มีทั้งหมด {seriesCount} ชุดข้อมูล ",withName:" ชุดข้อมูลที่ {seriesId} เป็นประเภท {seriesType} แทน {seriesName} ",withoutName:" ชุดข้อมูลที่ {seriesId} เป็นประเภท {seriesType} ",separator:{middle:"",end:""}}},data:{allData:"ข้อมูลดังต่อไปนี้: ",partialData:"ข้อมูล {displayCnt} รายการแรกคือ: ",withName:"ข้อมูลสำหรับ {name} คือ {value} ",withoutName:"{value} ",separator:{middle:", ",end:". "}}}})}));var uM={};!function(t,e){"function"==typeof define&&define.amd?define(["exports","echarts"],e):"string"!=typeof uM.nodeName?e(uM,o("391mA")):e({},t.echarts)}(uM,(function(t,e){e.registerLocale("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}})}));var cM=o("axlxN");const hM="width: 100%; height: 400px; margin-top: -0.2em;";customElements.define("lia-chart",class extends HTMLElement{val="";static get observedAttributes(){return["style","mode","json","locale","aria-label"]}constructor(){super();const t=this.attachShadow({mode:"open"});this.option_={},this.chart=null,this.geoJson={url:"",data:null},this.locale="en",this.mode="",this.container=document.createElement("div"),t.appendChild(this.container);let e=this;this.resizeObserver=new(0,a.default)(cM.debounce((()=>{e.resizeChart()}))),this.style_=hM}connectedCallback(){if(!this.chart){this.container.setAttribute("style",this.style_),this.chart=Eo.init(this.container,this.mode||"",{renderer:"svg",locale:this.locale}),this.option_=JSON.parse(this.getAttribute("option")||"null")||this.option_,this.option_.aria={show:!0};let t=this;this.chart.on("finished",(function(){t.setAttribute("aria-label",t.container.getAttribute("aria-label")||"")})),t.setAttribute("aria-role","figure alert"),t.setAttribute("aria-relevant","text"),this.geoJson.url||(this.updateChart(),this.resizeChart());try{this.parentElement&&this.resizeObserver.observe(this.parentElement)}catch(t){console.warn("charts: resize observer =>",t)}}}disconnectedCallback(){this.chart&&Eo.dispose(this.chart),this.resizeObserver.disconnect(),this.geoJson.data={}}attributeChangedCallback(t,e,n){if(e!==n)switch(t){case"style":this.style_=hM+n,this.container.setAttribute("style",this.style_),this.resizeChart();break;case"locale":this.chart&&this.locale!==n&&(this.locale=n,Eo.dispose(this.chart),this.chart=Eo.init(this.container,this.mode,{renderer:"svg",locale:this.locale}),this.updateChart());case"mode":n=n||"",this.chart&&this.mode!==n&&(this.mode=n,Eo.dispose(this.chart),this.chart=Eo.init(this.container,this.mode,{renderer:"svg",locale:this.locale}),this.updateChart());break;case"json":if(this.geoJson.url=n,this.geoJson.data=null,cM.allowedProtocol(this.geoJson.url)){let t=new XMLHttpRequest,e=this;t.onreadystatechange=function(){if(4==t.readyState&&200==t.status)try{t.responseText&&(e.geoJson.data=JSON.parse(t.responseText),e.updateChart())}catch(t){console.warn("eCharts ... could not load =>",t)}},t.open("GET",n,!0),t.send(null)}break;default:console.warn("charts: unknown attribute",t)}}updateChart(){this.chart&&this.option_&&(null!==this.geoJson.data&&Eo.registerMap(this.geoJson.url,this.geoJson.data),this.chart.setOption(this.option_,!0))}resizeChart(){this.chart&&this.chart.resize()}get option(){return this.option_}set option(t){if(t){const e=JSON.stringify(t);if(e!==this.val){if(this.val=e,t.aria={show:!0},t.pdf){const e=s.create(t.pdf.data,{min:t.pdf.min,max:t.pdf.max,size:t.pdf.size,width:t.pdf.width}),n=[],r=[];for(let t=0;t<e.length;t++)n.push(e[t].x),r.push(e[t].y);t.xAxis.data=n,t.series[0].data=r}this.option_=t,this.updateChart()}}}})}();
|