echarts-for-react 1.2.5 → 1.4.4
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 +52 -28
- package/lib/{echarts-for-react.js → core.js} +7 -8
- package/lib/index.js +39 -0
- package/package.json +45 -28
- package/src/{echarts-for-react.js → core.js} +8 -6
- package/src/index.js +10 -0
- package/.babelrc +0 -8
- package/.eslintrc +0 -54
- package/.npmignore +0 -3
- package/.travis.yml +0 -3
- package/__tests__/test.spec.js +0 -63
- package/demo/AirportCoordComponent.jsx +0 -321
- package/demo/CalendarComponent.jsx +0 -199
- package/demo/ChartAPIComponent.jsx +0 -127
- package/demo/ChartShowLoadingComponent.jsx +0 -93
- package/demo/ChartWithEventComponent.jsx +0 -93
- package/demo/DynamicChartComponent.jsx +0 -189
- package/demo/EchartsComponent.jsx +0 -47
- package/demo/GCalendarComponent.jsx +0 -72
- package/demo/GaugeComponent.jsx +0 -323
- package/demo/GraphComponent.jsx +0 -54
- package/demo/LiquidfillComponent.jsx +0 -32
- package/demo/LunarCalendarComponent.jsx +0 -492
- package/demo/MainPageComponent.jsx +0 -48
- package/demo/MapChartComponent.jsx +0 -203
- package/demo/ModuleLoadChartComponent.jsx +0 -54
- package/demo/SimpleChartComponent.jsx +0 -90
- package/demo/ThemeChartComponent.jsx +0 -114
- package/demo/TreemapComponent.jsx +0 -273
- package/demo/demo.css +0 -151
- package/demo/demo.jsx +0 -17
- package/demo/dist/bundle.js +0 -67
- package/demo/dist/bundle.js.map +0 -1
- package/index.html +0 -20
- package/webpack.config.js +0 -27
package/demo/dist/bundle.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(1),i=r(a),o=n(31),s=r(o),l=n(169),u=n(232),c=r(u),h=n(660),d=r(h);n(682),s.default.render(i.default.createElement(l.Router,{history:l.hashHistory},i.default.createElement(l.Route,{path:"/",component:c.default},i.default.createElement(l.Route,{path:"/echarts/:type",component:d.default}))),document.querySelector("#wrapper"))},function(e,t,n){"use strict";e.exports=n(2)},function(e,t,n){"use strict";var r=n(3),a=n(4),i=n(17),o=n(20),s=n(21),l=n(23),u=n(8),c=n(24),h=n(29),d=n(30),p=(n(10),u.createElement),f=u.createFactory,g=u.cloneElement,m=r,v={Children:{map:a.map,forEach:a.forEach,count:a.count,toArray:a.toArray,only:d},Component:i,PureComponent:o,createElement:p,cloneElement:g,isValidElement:u.isValidElement,PropTypes:c,createClass:s.createClass,createFactory:f,createMixin:function(e){return e},DOM:l,version:h,__spread:m};e.exports=v},function(e,t){/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,s,l=n(e),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var c in r)i.call(r,c)&&(l[c]=r[c]);if(a){s=a(r);for(var h=0;h<s.length;h++)o.call(r,s[h])&&(l[s[h]]=r[s[h]])}}return l}},function(e,t,n){"use strict";function r(e){return(""+e).replace(_,"$&/")}function a(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,a=e.context;r.call(a,t,e.count++)}function o(e,t,n){if(null==e)return e;var r=a.getPooled(t,n);v(e,i,r),a.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function l(e,t,n){var a=e.result,i=e.keyPrefix,o=e.func,s=e.context,l=o.call(s,t,e.count++);Array.isArray(l)?u(l,a,n,m.thatReturnsArgument):null!=l&&(g.isValidElement(l)&&(l=g.cloneAndReplaceKey(l,i+(!l.key||t&&t.key===l.key?"":r(l.key)+"/")+n)),a.push(l))}function u(e,t,n,a,i){var o="";null!=n&&(o=r(n)+"/");var u=s.getPooled(t,o,a,i);v(e,l,u),s.release(u)}function c(e,t,n){if(null==e)return e;var r=[];return u(e,r,null,t,n),r}function h(e,t,n){return null}function d(e,t){return v(e,h,null)}function p(e){var t=[];return u(e,t,null,m.thatReturnsArgument),t}var f=n(5),g=n(8),m=n(11),v=n(14),y=f.twoArgumentPooler,x=f.fourArgumentPooler,_=/\/+/g;a.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},f.addPoolingTo(a,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f.addPoolingTo(s,x);var b={forEach:o,map:c,mapIntoWithKeyPrefixInternal:u,count:d,toArray:p};e.exports=b},function(e,t,n){"use strict";var r=n(6),a=(n(7),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},l=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=10,c=a,h=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=u),n.release=l,n},d={addPoolingTo:h,oneArgumentPooler:a,twoArgumentPooler:i,threeArgumentPooler:o,fourArgumentPooler:s};e.exports=d},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,l){if(a(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,l],h=0;u=new Error(t.replace(/%s/g,function(){return c[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function a(e){return void 0!==e.key}var i=n(3),o=n(9),s=(n(10),n(12),Object.prototype.hasOwnProperty),l=n(13),u={key:!0,ref:!0,__self:!0,__source:!0},c=function(e,t,n,r,a,i,o){var s={$$typeof:l,type:e,key:t,ref:n,props:o,_owner:i};return s};c.createElement=function(e,t,n){var i,l={},h=null,d=null,p=null,f=null;if(null!=t){r(t)&&(d=t.ref),a(t)&&(h=""+t.key),p=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!u.hasOwnProperty(i)&&(l[i]=t[i])}var g=arguments.length-2;if(1===g)l.children=n;else if(g>1){for(var m=Array(g),v=0;v<g;v++)m[v]=arguments[v+2];l.children=m}if(e&&e.defaultProps){var y=e.defaultProps;for(i in y)void 0===l[i]&&(l[i]=y[i])}return c(e,h,d,p,f,o.current,l)},c.createFactory=function(e){var t=c.createElement.bind(null,e);return t.type=e,t},c.cloneAndReplaceKey=function(e,t){var n=c(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},c.cloneElement=function(e,t,n){var l,h=i({},e.props),d=e.key,p=e.ref,f=e._self,g=e._source,m=e._owner;if(null!=t){r(t)&&(p=t.ref,m=o.current),a(t)&&(d=""+t.key);var v;e.type&&e.type.defaultProps&&(v=e.type.defaultProps);for(l in t)s.call(t,l)&&!u.hasOwnProperty(l)&&(void 0===t[l]&&void 0!==v?h[l]=v[l]:h[l]=t[l])}var y=arguments.length-2;if(1===y)h.children=n;else if(y>1){for(var x=Array(y),_=0;_<y;_++)x[_]=arguments[_+2];h.children=x}return c(e.type,d,p,f,g,m,h)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},e.exports=c},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";var r=n(11),a=r;e.exports=a},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function a(e,t,n,i){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(i,e,""===t?c+r(e,0):t),1;var p,f,g=0,m=""===t?c:t+h;if(Array.isArray(e))for(var v=0;v<e.length;v++)p=e[v],f=m+r(p,v),g+=a(p,f,n,i);else{var y=l(e);if(y){var x,_=y.call(e);if(y!==e.entries)for(var b=0;!(x=_.next()).done;)p=x.value,f=m+r(p,b++),g+=a(p,f,n,i);else for(;!(x=_.next()).done;){var w=x.value;w&&(p=w[1],f=m+u.escape(w[0])+h+r(p,0),g+=a(p,f,n,i))}}else if("object"===d){var S="",M=String(e);o("31","[object Object]"===M?"object with keys {"+Object.keys(e).join(", ")+"}":M,S)}}return g}function i(e,t,n){return null==e?0:a(e,"",t,n)}var o=n(6),s=(n(9),n(13)),l=n(15),u=(n(7),n(16)),c=(n(10),"."),h=":";e.exports=i},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[a]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,a="@@iterator";e.exports=n},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var a={escape:n,unescape:r};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=o,this.updater=n||i}var a=n(6),i=n(18),o=(n(12),n(19));n(7),n(10);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?a("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=r},function(e,t,n){"use strict";function r(e,t){}var a=(n(10),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});e.exports=a},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||s}function a(){}var i=n(3),o=n(17),s=n(18),l=n(19);a.prototype=o.prototype,r.prototype=new a,r.prototype.constructor=r,i(r.prototype,o.prototype),r.prototype.isPureReactComponent=!0,e.exports=r},function(e,t,n){"use strict";function r(e){return e}function a(e,t){var n=_.hasOwnProperty(t)?_[t]:null;w.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?d("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?d("74",t):void 0)}function i(e,t){if(t){"function"==typeof t?d("75"):void 0,g.isValidElement(t)?d("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(y)&&b.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==y){var o=t[i],s=n.hasOwnProperty(i);if(a(s,i),b.hasOwnProperty(i))b[i](e,o);else{var c=_.hasOwnProperty(i),h="function"==typeof o,p=h&&!c&&!s&&t.autobind!==!1;if(p)r.push(i,o),n[i]=o;else if(s){var f=_[i];!c||"DEFINE_MANY_MERGED"!==f&&"DEFINE_MANY"!==f?d("77",f,i):void 0,"DEFINE_MANY_MERGED"===f?n[i]=l(n[i],o):"DEFINE_MANY"===f&&(n[i]=u(n[i],o))}else n[i]=o}}}else;}function o(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var a=n in b;a?d("78",n):void 0;var i=n in e;i?d("79",n):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:d("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?d("81",n):void 0,e[n]=t[n]);return e}function l(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var a={};return s(a,n),s(a,r),a}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function h(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],a=t[n+1];e[r]=c(e,a)}}var d=n(6),p=n(3),f=n(17),g=n(8),m=(n(22),n(18)),v=n(19),y=(n(7),n(10),"mixins"),x=[],_={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=p({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=p({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=l(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=p({},e.propTypes,t)},statics:function(e,t){o(e,t)},autobind:function(){}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},S=function(){};p(S.prototype,f.prototype,w);var M={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&h(this),this.props=e,this.context=n,this.refs=v,this.updater=r||m,this.state=null;var a=this.getInitialState?this.getInitialState():null;"object"!=typeof a||Array.isArray(a)?d("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=a});t.prototype=new S,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],x.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:d("83");for(var n in _)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){x.push(e)}}};e.exports=M},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(8),a=r.createFactory,i={a:a("a"),abbr:a("abbr"),address:a("address"),area:a("area"),article:a("article"),aside:a("aside"),audio:a("audio"),b:a("b"),base:a("base"),bdi:a("bdi"),bdo:a("bdo"),big:a("big"),blockquote:a("blockquote"),body:a("body"),br:a("br"),button:a("button"),canvas:a("canvas"),caption:a("caption"),cite:a("cite"),code:a("code"),col:a("col"),colgroup:a("colgroup"),data:a("data"),datalist:a("datalist"),dd:a("dd"),del:a("del"),details:a("details"),dfn:a("dfn"),dialog:a("dialog"),div:a("div"),dl:a("dl"),dt:a("dt"),em:a("em"),embed:a("embed"),fieldset:a("fieldset"),figcaption:a("figcaption"),figure:a("figure"),footer:a("footer"),form:a("form"),h1:a("h1"),h2:a("h2"),h3:a("h3"),h4:a("h4"),h5:a("h5"),h6:a("h6"),head:a("head"),header:a("header"),hgroup:a("hgroup"),hr:a("hr"),html:a("html"),i:a("i"),iframe:a("iframe"),img:a("img"),input:a("input"),ins:a("ins"),kbd:a("kbd"),keygen:a("keygen"),label:a("label"),legend:a("legend"),li:a("li"),link:a("link"),main:a("main"),map:a("map"),mark:a("mark"),menu:a("menu"),menuitem:a("menuitem"),meta:a("meta"),meter:a("meter"),nav:a("nav"),noscript:a("noscript"),object:a("object"),ol:a("ol"),optgroup:a("optgroup"),option:a("option"),output:a("output"),p:a("p"),param:a("param"),picture:a("picture"),pre:a("pre"),progress:a("progress"),q:a("q"),rp:a("rp"),rt:a("rt"),ruby:a("ruby"),s:a("s"),samp:a("samp"),script:a("script"),section:a("section"),select:a("select"),small:a("small"),source:a("source"),span:a("span"),strong:a("strong"),style:a("style"),sub:a("sub"),summary:a("summary"),sup:a("sup"),table:a("table"),tbody:a("tbody"),td:a("td"),textarea:a("textarea"),tfoot:a("tfoot"),th:a("th"),thead:a("thead"),time:a("time"),title:a("title"),tr:a("tr"),track:a("track"),u:a("u"),ul:a("ul"),var:a("var"),video:a("video"),wbr:a("wbr"),circle:a("circle"),clipPath:a("clipPath"),defs:a("defs"),ellipse:a("ellipse"),g:a("g"),image:a("image"),line:a("line"),linearGradient:a("linearGradient"),mask:a("mask"),path:a("path"),pattern:a("pattern"),polygon:a("polygon"),polyline:a("polyline"),radialGradient:a("radialGradient"),rect:a("rect"),stop:a("stop"),svg:a("svg"),text:a("text"),tspan:a("tspan")};e.exports=i},function(e,t,n){"use strict";var r=n(8),a=r.isValidElement,i=n(25);e.exports=i(a)},function(e,t,n){"use strict";var r=n(26);e.exports=function(e){var t=!1;return r(e,t)}},function(e,t,n){"use strict";var r=n(11),a=n(7),i=n(10),o=n(27),s=n(28);e.exports=function(e,t){function n(e){var t=e&&(A&&e[A]||e[I]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function u(e){this.message=e,this.stack=""}function c(e){function n(n,r,i,s,l,c,h){if(s=s||E,c=c||i,h!==o)if(t)a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new u(null===r[i]?"The "+l+" `"+c+"` is marked as required "+("in `"+s+"`, but its value is `null`."):"The "+l+" `"+c+"` is marked as required in "+("`"+s+"`, but its value is `undefined`.")):null:e(r,i,s,l,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function h(e){function t(t,n,r,a,i,o){var s=t[n],l=S(s);if(l!==e){var c=M(s);return new u("Invalid "+a+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return c(t)}function d(){return c(r.thatReturnsNull)}function p(e){function t(t,n,r,a,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var l=S(s);return new u("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<s.length;c++){var h=e(s,c,r,a,i+"["+c+"]",o);if(h instanceof Error)return h}return null}return c(t)}function f(){function t(t,n,r,a,i){var o=t[n];if(!e(o)){var s=S(o);return new u("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return c(t)}function g(e){function t(t,n,r,a,i){if(!(t[n]instanceof e)){var o=e.name||E,s=T(t[n]);return new u("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return c(t)}function m(e){function t(t,n,r,a,i){for(var o=t[n],s=0;s<e.length;s++)if(l(o,e[s]))return null;var c=JSON.stringify(e);return new u("Invalid "+a+" `"+i+"` of value `"+o+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return Array.isArray(e)?c(t):r.thatReturnsNull}function v(e){function t(t,n,r,a,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=S(s);if("object"!==l)return new u("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var c in s)if(s.hasOwnProperty(c)){var h=e(s,c,r,a,i+"."+c,o);if(h instanceof Error)return h}return null}return c(t)}function y(e){function t(t,n,r,a,i){for(var s=0;s<e.length;s++){var l=e[s];if(null==l(t,n,r,a,i,o))return null}return new u("Invalid "+a+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(e))return r.thatReturnsNull;for(var n=0;n<e.length;n++){var a=e[n];if("function"!=typeof a)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",C(a),n),r.thatReturnsNull}return c(t)}function x(){function e(e,t,n,r,a){return b(e[t])?null:new u("Invalid "+r+" `"+a+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return c(e)}function _(e){function t(t,n,r,a,i){var s=t[n],l=S(s);if("object"!==l)return new u("Invalid "+a+" `"+i+"` of type `"+l+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in e){var h=e[c];if(h){var d=h(s,c,r,a,i+"."+c,o);if(d)return d}}return null}return c(t)}function b(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||e(t))return!0;var r=n(t);if(!r)return!1;var a,i=r.call(t);if(r!==t.entries){for(;!(a=i.next()).done;)if(!b(a.value))return!1}else for(;!(a=i.next()).done;){var o=a.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function w(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function S(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":w(t,e)?"symbol":t}function M(e){if("undefined"==typeof e||null===e)return""+e;var t=S(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function C(e){var t=M(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function T(e){return e.constructor&&e.constructor.name?e.constructor.name:E}var A="function"==typeof Symbol&&Symbol.iterator,I="@@iterator",E="<<anonymous>>",P={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:d(),arrayOf:p,element:f(),instanceOf:g,node:x(),objectOf:v,oneOf:m,oneOfType:y,shape:_};return u.prototype=Error.prototype,P.checkPropTypes=s,P.PropTypes=P,P}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r,a){}e.exports=r},function(e,t){"use strict";e.exports="15.5.4"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:a("143"),e}var a=n(6),i=n(8);n(7);e.exports=r},function(e,t,n){"use strict";e.exports=n(32)},function(e,t,n){"use strict";var r=n(33),a=n(37),i=n(160),o=n(58),s=n(55),l=n(165),u=n(166),c=n(167),h=n(168);n(10);a.inject();var d={findDOMNode:u,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:l,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:h};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:o});e.exports=d},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(f)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function a(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=a(e);n._hostNode=t,t[m]=n}function o(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function s(e,t){if(!(e._flags&g.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var l=n[s],u=a(l)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(r(o,u)){i(l,o);continue e}h("32",u)}}e._flags|=g.hasCachedChildNodes}}function l(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=l(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode?h("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:h("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var h=n(34),d=n(35),p=n(36),f=(n(7),d.ID_ATTRIBUTE_NAME),g=p,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:l,getInstanceFromNode:u,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:i,uncacheNode:o};e.exports=v},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=n},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var a=n(34),i=(n(7),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var h in n){s.properties.hasOwnProperty(h)?a("48",h):void 0;var d=h.toLowerCase(),p=n[h],f={attributeName:d,attributeNamespace:null,propertyName:h,mutationMethod:null,mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(f.hasBooleanValue+f.hasNumericValue+f.hasOverloadedBooleanValue<=1?void 0:a("50",h),l.hasOwnProperty(h)){var g=l[h];f.attributeName=g}o.hasOwnProperty(h)&&(f.attributeNamespace=o[h]),u.hasOwnProperty(h)&&(f.propertyName=u[h]),c.hasOwnProperty(h)&&(f.mutationMethod=c[h]),s.properties[h]=f}}}),o=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:o,ATTRIBUTE_NAME_CHAR:o+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:i};e.exports=s},function(e,t){"use strict";var n={hasCachedChildNodes:1};e.exports=n},function(e,t,n){"use strict";function r(){S||(S=!0,y.EventEmitter.injectReactEventListener(v),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(d),y.EventPluginUtils.injectTreeTraversal(f),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:l,ChangeEventPlugin:o,SelectEventPlugin:b,BeforeInputEventPlugin:i}),y.HostComponent.injectGenericComponentClass(h),y.HostComponent.injectTextComponentClass(g),y.DOMProperty.injectDOMPropertyConfig(a),y.DOMProperty.injectDOMPropertyConfig(u),y.DOMProperty.injectDOMPropertyConfig(_),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new p(e)}),y.Updates.injectReconcileTransaction(x),y.Updates.injectBatchingStrategy(m),y.Component.injectEnvironment(c))}var a=n(38),i=n(39),o=n(54),s=n(66),l=n(67),u=n(72),c=n(73),h=n(86),d=n(33),p=n(131),f=n(132),g=n(133),m=n(134),v=n(135),y=n(138),x=n(139),_=n(147),b=n(148),w=n(149),S=!1;e.exports={inject:r}},function(e,t){"use strict";var n={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=n},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function a(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return T.compositionStart;case"topCompositionEnd":return T.compositionEnd;case"topCompositionUpdate":return T.compositionUpdate}}function o(e,t){return"topKeyDown"===e&&t.keyCode===x}function s(e,t){switch(e){case"topKeyUp":return y.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==x;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function l(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,r){var a,u;if(_?a=i(e):I?s(e,n)&&(a=T.compositionEnd):o(e,n)&&(a=T.compositionStart),!a)return null;S&&(I||a!==T.compositionStart?a===T.compositionEnd&&I&&(u=I.getData()):I=g.getPooled(r));var c=m.getPooled(a,t,n,r);if(u)c.data=u;else{var h=l(n);null!==h&&(c.data=h)}return p.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return l(t);case"topKeyPress":var n=t.which;return n!==M?null:(A=!0,C);case"topTextInput":var r=t.data;return r===C&&A?null:r;default:return null}}function h(e,t){if(I){if("topCompositionEnd"===e||!_&&s(e,t)){var n=I.getData();return g.release(I),I=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!a(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return S?null:t.data;default:return null}}function d(e,t,n,r){var a;if(a=w?c(e,n):h(e,n),!a)return null;var i=v.getPooled(T.beforeInput,t,n,r);return i.data=a,p.accumulateTwoPhaseDispatches(i),i}var p=n(40),f=n(47),g=n(48),m=n(51),v=n(53),y=[9,13,27,32],x=229,_=f.canUseDOM&&"CompositionEvent"in window,b=null;f.canUseDOM&&"documentMode"in document&&(b=document.documentMode);var w=f.canUseDOM&&"TextEvent"in window&&!b&&!r(),S=f.canUseDOM&&(!_||b&&b>8&&b<=11),M=32,C=String.fromCharCode(M),T={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},A=!1,I=null,E={eventTypes:T,extractEvents:function(e,t,n,r){return[u(e,t,n,r),d(e,t,n,r)]}};e.exports=E},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function a(e,t,n){var a=r(e,n,t);a&&(n._dispatchListeners=g(n._dispatchListeners,a),n._dispatchInstances=g(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&f.traverseTwoPhase(e._targetInst,a,e)}function o(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?f.getParentInstance(t):null;f.traverseTwoPhase(n,a,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,a=v(e,r);a&&(n._dispatchListeners=g(n._dispatchListeners,a),n._dispatchInstances=g(n._dispatchInstances,e))}}function l(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){m(e,i)}function c(e){m(e,o)}function h(e,t,n,r){f.traverseEnterLeave(n,r,s,e,t)}function d(e){m(e,l)}var p=n(41),f=n(43),g=n(45),m=n(46),v=(n(10),p.getListener),y={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:h};e.exports=y},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function a(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var i=n(34),o=n(42),s=n(43),l=n(44),u=n(45),c=n(46),h=(n(7),{}),d=null,p=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},f=function(e){return p(e,!0)},g=function(e){return p(e,!1)},m=function(e){return"."+e._rootNodeID},v={injection:{injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?i("94",t,typeof n):void 0;var r=m(e),a=h[t]||(h[t]={});a[r]=n;var s=o.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=h[t];if(a(t,e._currentElement.type,e._currentElement.props))return null;var r=m(e);return n&&n[r]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=h[t];if(r){var a=m(e);delete r[a]}},deleteAllListeners:function(e){var t=m(e);for(var n in h)if(h.hasOwnProperty(n)&&h[n][t]){var r=o.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete h[n][t]}},extractEvents:function(e,t,n,r){for(var a,i=o.plugins,s=0;s<i.length;s++){var l=i[s];if(l){var c=l.extractEvents(e,t,n,r);c&&(a=u(a,c))}}return a},enqueueEvents:function(e){e&&(d=u(d,e))},processEventQueue:function(e){var t=d;d=null,e?c(t,f):c(t,g),d?i("95"):void 0,l.rethrowCaughtError()},__purge:function(){h={}},__getListenerBank:function(){return h}};e.exports=v},function(e,t,n){"use strict";function r(){if(s)for(var e in l){var t=l[e],n=s.indexOf(e);if(n>-1?void 0:o("96",e),
|
|
7
|
-
!u.plugins[n]){t.extractEvents?void 0:o("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)?void 0:o("98",i,e)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?o("99",n):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]?o("100",e):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(34),s=(n(7),null),l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?o("101"):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];l.hasOwnProperty(n)&&l[n]===a||(l[n]?o("102",n):void 0,l[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var a=u.registrationNameModules[n[r]];if(a)return a}}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function a(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,t,n,r){var a=e.type||"unknown-event";e.currentTarget=v.getNodeFromInstance(r),t?g.invokeGuardedCallbackWithCatch(a,n,e):g.invokeGuardedCallback(a,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var a=0;a<n.length&&!e.isPropagationStopped();a++)o(e,t,n[a],r[a]);else n&&o(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function l(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=l(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?f("103"):void 0,e.currentTarget=t?v.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function h(e){return!!e._dispatchListeners}var d,p,f=n(34),g=n(44),m=(n(7),n(10),{injectComponentTree:function(e){d=e},injectTreeTraversal:function(e){p=e}}),v={isEndish:r,isMoveish:a,isStartish:i,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:h,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return p.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return p.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return p.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return p.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,a){return p.traverseEnterLeave(e,t,n,r,a)},injection:m};e.exports=v},function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===a&&(a=e)}}var a=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(a){var e=a;throw a=null,e}}};e.exports=i},function(e,t,n){"use strict";function r(e,t){return null==t?a("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var a=n(34);n(7);e.exports=r},function(e,t){"use strict";function n(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=n},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var a=n(3),i=n(49),o=n(50);a(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[o()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,a=this.getText(),i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=a.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(34),a=(n(7),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},l=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=10,c=a,h=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=u),n.release=l,n},d={addPoolingTo:h,oneArgumentPooler:a,twoArgumentPooler:i,threeArgumentPooler:o,fourArgumentPooler:s};e.exports=d},function(e,t,n){"use strict";function r(){return!i&&a.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var a=n(47),i=null;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),i={data:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var a=this.constructor.Interface;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return l?this.isDefaultPrevented=o.thatReturnsTrue:this.isDefaultPrevented=o.thatReturnsFalse,this.isPropagationStopped=o.thatReturnsFalse,this}var a=n(3),i=n(49),o=n(11),s=(n(10),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),l={type:null,target:null,currentTarget:o.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=o.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=o.thatReturnsTrue)},persist:function(){this.isPersistent=o.thatReturnsTrue},isPersistent:o.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=l,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var o=new r;a(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),i={data:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function a(e){var t=M.getPooled(I.change,P,e,C(e));_.accumulateTwoPhaseDispatches(t),S.batchedUpdates(i,t)}function i(e){x.enqueueEvents(e),x.processEventQueue(!1)}function o(e,t){E=e,P=t,E.attachEvent("onchange",a)}function s(){E&&(E.detachEvent("onchange",a),E=null,P=null)}function l(e,t){if("topChange"===e)return t}function u(e,t,n){"topFocus"===e?(s(),o(t,n)):"topBlur"===e&&s()}function c(e,t){E=e,P=t,L=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(E,"value",R),E.attachEvent?E.attachEvent("onpropertychange",d):E.addEventListener("propertychange",d,!1)}function h(){E&&(delete E.value,E.detachEvent?E.detachEvent("onpropertychange",d):E.removeEventListener("propertychange",d,!1),E=null,P=null,L=null,D=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==L&&(L=t,a(e))}}function p(e,t){if("topInput"===e)return t}function f(e,t,n){"topFocus"===e?(h(),c(t,n)):"topBlur"===e&&h()}function g(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&E&&E.value!==L)return L=E.value,P}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function v(e,t){if("topClick"===e)return t}function y(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var x=n(41),_=n(40),b=n(47),w=n(33),S=n(55),M=n(52),C=n(63),T=n(64),A=n(65),I={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},E=null,P=null,L=null,D=null,k=!1;b.canUseDOM&&(k=T("change")&&(!document.documentMode||document.documentMode>8));var O=!1;b.canUseDOM&&(O=T("input")&&(!document.documentMode||document.documentMode>11));var R={get:function(){return D.get.call(this)},set:function(e){L=""+e,D.set.call(this,e)}},N={eventTypes:I,extractEvents:function(e,t,n,a){var i,o,s=t?w.getNodeFromInstance(t):window;if(r(s)?k?i=l:o=u:A(s)?O?i=p:(i=g,o=f):m(s)&&(i=v),i){var c=i(e,t);if(c){var h=M.getPooled(I.change,c,n,a);return h.type="change",_.accumulateTwoPhaseDispatches(h),h}}o&&o(e,s,t),"topBlur"===e&&y(t,s)}};e.exports=N},function(e,t,n){"use strict";function r(){A.ReactReconcileTransaction&&b?void 0:c("123")}function a(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=A.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,a,i,o){return r(),b.batchedUpdates(e,t,n,a,i,o)}function o(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==v.length?c("124",t,v.length):void 0,v.sort(o),y++;for(var n=0;n<t;n++){var r=v[n],a=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(f.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(g.performUpdateIfNecessary(r,e.reconcileTransaction,y),i&&console.timeEnd(i),a)for(var l=0;l<a.length;l++)e.callbackQueue.enqueue(a[l],r.getPublicInstance())}}function l(e){return r(),b.isBatchingUpdates?(v.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=y+1))):void b.batchedUpdates(l,e)}function u(e,t){b.isBatchingUpdates?void 0:c("125"),x.enqueue(e,t),_=!0}var c=n(34),h=n(3),d=n(56),p=n(49),f=n(57),g=n(58),m=n(62),v=(n(7),[]),y=0,x=d.getPooled(),_=!1,b=null,w={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),C()):v.length=0}},S={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},M=[w,S];h(a.prototype,m,{getTransactionWrappers:function(){return M},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,A.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return m.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(a);var C=function(){for(;v.length||_;){if(v.length){var e=a.getPooled();e.perform(s,null,e),a.release(e)}if(_){_=!1;var t=x;x=d.getPooled(),t.notifyAll(),d.release(t)}}},T={injectReconcileTransaction:function(e){e?void 0:c("126"),A.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:c("127"),"function"!=typeof e.batchedUpdates?c("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?c("129"):void 0,b=e}},A={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:l,flushBatchedUpdates:C,injection:T,asap:u};e.exports=A},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=n(34),i=n(49),o=(n(7),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?a("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(t[r],n);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}());e.exports=i.addPoolingTo(o)},function(e,t){"use strict";var n={logTopLevelRenders:!1};e.exports=n},function(e,t,n){"use strict";function r(){a.attachRefs(this,this._currentElement)}var a=n(59),i=(n(61),n(10),{mountComponent:function(e,t,n,a,i,o){var s=e.mountComponent(t,n,a,i,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){a.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var o=e._currentElement;if(t!==o||i!==e._context){var s=a.shouldUpdateRefs(o,t);s&&a.detachRefs(e,o),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function a(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(60),o={};o.attachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&r(n,e,t._owner)}},o.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"==typeof e&&(n=e.ref,r=e._owner);var a=null,i=null;return null!==t&&"object"==typeof t&&(a=t.ref,i=t._owner),n!==a||"string"==typeof a&&i!==r},o.detachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&a(n,e,t._owner)}},e.exports=o},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var a=n(34),i=(n(7),{addComponentAsRefTo:function(e,t,n){r(n)?void 0:a("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)?void 0:a("120");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});e.exports=i},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){"use strict";var r=n(34),a=(n(7),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,a,i,o,s,l){this.isInTransaction()?r("27"):void 0;var u,c;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),c=e.call(t,n,a,i,o,s,l),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=a,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===a)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()?void 0:r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,o=t[n],s=this.wrapperInitData[n];try{i=!0,s!==a&&o.close&&o.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";/**
|
|
8
|
-
* Checks if an event is supported in the current execution environment.
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
11
|
-
* `reset`, `load`, `error`, and `select`.
|
|
12
|
-
*
|
|
13
|
-
* Borrows from Modernizr.
|
|
14
|
-
*
|
|
15
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
16
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
17
|
-
* @return {boolean} True if the event is supported.
|
|
18
|
-
* @internal
|
|
19
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
20
|
-
*/
|
|
21
|
-
function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,i=n(47);i.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!r[e.type]:"textarea"===t}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var r=n(40),a=n(33),i=n(68),o={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:o,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var l;if(s.window===s)l=s;else{var u=s.ownerDocument;l=u?u.defaultView||u.parentWindow:window}var c,h;if("topMouseOut"===e){c=t;var d=n.relatedTarget||n.toElement;h=d?a.getClosestInstanceFromNode(d):null}else c=null,h=t;if(c===h)return null;var p=null==c?l:a.getNodeFromInstance(c),f=null==h?l:a.getNodeFromInstance(h),g=i.getPooled(o.mouseLeave,c,n,s);g.type="mouseleave",g.target=p,g.relatedTarget=f;var m=i.getPooled(o.mouseEnter,h,n,s);return m.type="mouseenter",m.target=f,m.relatedTarget=p,r.accumulateEnterLeaveDispatches(g,m,c,h),[g,m]}};e.exports=s},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(69),i=n(70),o=n(71),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:o,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};a.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),i=n(63),o={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};a.augmentClass(r,o),e.exports=r},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=a[e];return!!r&&!!n[r]}function r(e){return n}var a={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t,n){"use strict";var r=n(35),a=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,o=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,l=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:a|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:l,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:a|i,muted:a|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:o,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:a|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:o,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){return null==t?e.removeAttribute("value"):void("number"!==e.type||e.hasAttribute("value")===!1?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t))}}};e.exports=u},function(e,t,n){"use strict";var r=n(74),a=n(85),i={processChildrenUpdates:a.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function a(e,t,n){c.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):g(e,t,n)}function o(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var a=t;;){var i=a.nextSibling;if(g(e,a,r),a===n)break;a=i}}function l(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,a=e.nextSibling;a===t?n&&g(r,document.createTextNode(n),a):n?(f(a,n),l(r,a,t)):l(r,e,t)}var c=n(75),h=n(81),d=(n(33),n(61),n(78)),p=n(77),f=n(79),g=d(function(e,t,n){e.insertBefore(t,n)}),m=h.dangerouslyReplaceNodeWithMarkup,v={dangerouslyReplaceNodeWithMarkup:m,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var s=t[n];switch(s.type){case"INSERT_MARKUP":a(e,s.content,r(e,s.afterNode));break;case"MOVE_EXISTING":i(e,s.fromNode,r(e,s.afterNode));break;case"SET_MARKUP":p(e,s.content);break;case"TEXT_CONTENT":f(e,s.content);break;case"REMOVE_NODE":o(e,s.fromNode)}}}};e.exports=v},function(e,t,n){"use strict";function r(e){if(m){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)v(t,n[r],null);else null!=e.html?h(t,e.html):null!=e.text&&p(t,e.text)}}function a(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){m?e.children.push(t):e.node.appendChild(t.node)}function o(e,t){m?e.html=t:h(e.node,t)}function s(e,t){m?e.text=t:p(e.node,t)}function l(){return this.node.nodeName}function u(e){return{node:e,children:[],html:null,text:null,toString:l}}var c=n(76),h=n(77),d=n(78),p=n(79),f=1,g=11,m="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),v=d(function(e,t,n){t.node.nodeType===g||t.node.nodeType===f&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===c.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});u.insertTreeBefore=v,u.replaceChildWithTree=a,u.queueChild=i,u.queueHTML=o,u.queueText=s,e.exports=u},function(e,t){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=n},function(e,t,n){"use strict";var r,a=n(47),i=n(76),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,l=n(78),u=l(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=u},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e};e.exports=n},function(e,t,n){"use strict";var r=n(47),a=n(80),i=n(77),o=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(o=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void i(e,a(t))})),e.exports=o},function(e,t){"use strict";function n(e){var t=""+e,n=a.exec(t);if(!n)return t;var r,i="",o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==o&&(i+=t.substring(s,o)),s=o+1,i+=r}return s!==o?i+t.substring(s,o):i}function r(e){return"boolean"==typeof e||"number"==typeof e?""+e:n(e)}var a=/["'&<>]/;e.exports=r},function(e,t,n){"use strict";var r=n(34),a=n(75),i=n(47),o=n(82),s=n(11),l=(n(7),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:r("56"),t?void 0:r("57"),"HTML"===e.nodeName?r("58"):void 0,"string"==typeof t){var n=o(t,s)[0];e.parentNode.replaceChild(n,e)}else a.replaceChildWithTree(e,t)}});e.exports=l},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function a(e,t){var n=u;u?void 0:l(!1);var a=r(e),i=a&&s(a);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var h=n.getElementsByTagName("script");h.length&&(t?void 0:l(!1),o(h).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=n(47),o=n(83),s=n(84),l=n(7),u=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=a},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),"function"==typeof e.callee?o(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}function a(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return a(e)?Array.isArray(e)?e.slice():r(e):[e]}var o=n(7);e.exports=i},function(e,t,n){"use strict";function r(e){return o?void 0:i(!1),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?o.innerHTML="<link />":o.innerHTML="<"+e+"></"+e+">",s[e]=!o.firstChild),s[e]?d[e]:null}var a=n(47),i=n(7),o=a.canUseDOM?document.createElement("div"):null,s={},l=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],h=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(e){d[e]=h,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";var r=n(74),a=n(33),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=a.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function a(e,t){t&&(Y[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?g("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?g("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&H in t.dangerouslySetInnerHTML?void 0:g("61")),null!=t.style&&"object"!=typeof t.style?g("62",r(e)):void 0)}function i(e,t,n,r){if(!(r instanceof k)){var a=e._hostContainerInfo,i=a._node&&a._node.nodeType===j,s=i?a._node:a._ownerDocument;z(t,s),r.getReactMountReady().enqueue(o,{inst:e,registrationName:t,listener:n})}}function o(){var e=this;S.putListener(e.inst,e.registrationName,e.listener)}function s(){var e=this;I.postMountWrapper(e)}function l(){var e=this;L.postMountWrapper(e)}function u(){var e=this;E.postMountWrapper(e)}function c(){var e=this;e._rootNodeID?void 0:g("63");var t=V(e);switch(t?void 0:g("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[C.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in U)U.hasOwnProperty(n)&&e._wrapperState.listeners.push(C.trapBubbledEvent(n,U[n],t));break;case"source":e._wrapperState.listeners=[C.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[C.trapBubbledEvent("topError","error",t),C.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[C.trapBubbledEvent("topReset","reset",t),C.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[C.trapBubbledEvent("topInvalid","invalid",t)]}}function h(){P.postUpdateWrapper(this)}function d(e){Q.call(K,e)||(X.test(e)?void 0:g("65",e),K[e]=!0)}function p(e,t){return e.indexOf("-")>=0||null!=t.is}function f(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var g=n(34),m=n(3),v=n(87),y=n(89),x=n(75),_=n(76),b=n(35),w=n(97),S=n(41),M=n(42),C=n(99),T=n(36),A=n(33),I=n(102),E=n(105),P=n(106),L=n(107),D=(n(61),n(108)),k=n(127),O=(n(11),n(80)),R=(n(7),n(64),n(116),n(130),n(10),T),N=S.deleteListener,V=A.getNodeFromInstance,z=C.listenTo,B=M.registrationNameModules,F={string:!0,number:!0},G="style",H="__html",W={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},j=11,U={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Z={listing:!0,pre:!0,textarea:!0},Y=m({menuitem:!0},q),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,K={},Q={}.hasOwnProperty,J=1;f.displayName="ReactDOMComponent",f.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=J++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"input":I.mountWrapper(this,i,t),i=I.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":E.mountWrapper(this,i,t),i=E.getHostProps(this,i);break;case"select":P.mountWrapper(this,i,t),i=P.getHostProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":L.mountWrapper(this,i,t),i=L.getHostProps(this,i),e.getReactMountReady().enqueue(c,this)}a(this,i);var o,h;null!=t?(o=t._namespaceURI,h=t._tag):n._tag&&(o=n._namespaceURI,h=n._tag),(null==o||o===_.svg&&"foreignobject"===h)&&(o=_.html),o===_.html&&("svg"===this._tag?o=_.svg:"math"===this._tag&&(o=_.mathml)),this._namespaceURI=o;var d;if(e.useCreateElement){var p,f=n._ownerDocument;if(o===_.html)if("script"===this._tag){var g=f.createElement("div"),m=this._currentElement.type;g.innerHTML="<"+m+"></"+m+">",p=g.removeChild(g.firstChild)}else p=i.is?f.createElement(this._currentElement.type,i.is):f.createElement(this._currentElement.type);else p=f.createElementNS(o,this._currentElement.type);A.precacheNode(this,p),this._flags|=R.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(p),this._updateDOMProperties(null,i,e);var y=x(p);this._createInitialChildren(e,i,r,y),d=y}else{var b=this._createOpenTagMarkupAndPutListeners(e,i),S=this._createContentMarkup(e,i,r);d=!S&&q[this._tag]?b+"/>":b+">"+S+"</"+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(u,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)if(B.hasOwnProperty(r))a&&i(this,r,a,e);else{r===G&&(a&&(a=this._previousStyleCopy=m({},t.style)),a=y.createMarkupForStyles(a,this));var o=null;null!=this._tag&&p(this._tag,t)?W.hasOwnProperty(r)||(o=w.createMarkupForCustomAttribute(r,a)):o=w.createMarkupForProperty(r,a),o&&(n+=" "+o)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&(r=a.__html);else{var i=F[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)r=O(i);else if(null!=o){var s=this.mountChildren(o,e,n);r=s.join("")}}return Z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var a=t.dangerouslySetInnerHTML;if(null!=a)null!=a.__html&&x.queueHTML(r,a.__html);else{var i=F[typeof t.children]?t.children:null,o=null!=i?null:t.children;if(null!=i)""!==i&&x.queueText(r,i);else if(null!=o)for(var s=this.mountChildren(o,e,n),l=0;l<s.length;l++)x.queueChild(r,s[l])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var i=t.props,o=this._currentElement.props;switch(this._tag){case"input":i=I.getHostProps(this,i),o=I.getHostProps(this,o);break;case"option":i=E.getHostProps(this,i),o=E.getHostProps(this,o);break;case"select":i=P.getHostProps(this,i),o=P.getHostProps(this,o);break;case"textarea":i=L.getHostProps(this,i),o=L.getHostProps(this,o)}switch(a(this,o),this._updateDOMProperties(i,o,e),this._updateDOMChildren(i,o,e,r),this._tag){case"input":I.updateWrapper(this);break;case"textarea":L.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(h,this)}},_updateDOMProperties:function(e,t,n){var r,a,o;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if(r===G){var s=this._previousStyleCopy;for(a in s)s.hasOwnProperty(a)&&(o=o||{},o[a]="");this._previousStyleCopy=null}else B.hasOwnProperty(r)?e[r]&&N(this,r):p(this._tag,e)?W.hasOwnProperty(r)||w.deleteValueForAttribute(V(this),r):(b.properties[r]||b.isCustomAttribute(r))&&w.deleteValueForProperty(V(this),r);for(r in t){var l=t[r],u=r===G?this._previousStyleCopy:null!=e?e[r]:void 0;if(t.hasOwnProperty(r)&&l!==u&&(null!=l||null!=u))if(r===G)if(l?l=this._previousStyleCopy=m({},l):this._previousStyleCopy=null,u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(o=o||{},o[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&(o=o||{},o[a]=l[a])}else o=l;else if(B.hasOwnProperty(r))l?i(this,r,l,n):u&&N(this,r);else if(p(this._tag,t))W.hasOwnProperty(r)||w.setValueForAttribute(V(this),r,l);else if(b.properties[r]||b.isCustomAttribute(r)){var c=V(this);null!=l?w.setValueForProperty(c,r,l):w.deleteValueForProperty(c,r)}}o&&y.setValueForStyles(V(this),o,this)},_updateDOMChildren:function(e,t,n,r){var a=F[typeof e.children]?e.children:null,i=F[typeof t.children]?t.children:null,o=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,l=null!=a?null:e.children,u=null!=i?null:t.children,c=null!=a||null!=o,h=null!=i||null!=s;null!=l&&null==u?this.updateChildren(null,n,r):c&&!h&&this.updateTextContent(""),null!=i?a!==i&&this.updateTextContent(""+i):null!=s?o!==s&&this.updateMarkup(""+s):null!=u&&this.updateChildren(u,n,r)},getHostNode:function(){return V(this)},unmountComponent:function(e){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"html":case"head":case"body":g("66",this._tag)}this.unmountChildren(e),A.uncacheNode(this),S.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return V(this)}},m(f.prototype,f.Mixin,D.Mixin),e.exports=f},function(e,t,n){"use strict";var r=n(33),a=n(88),i={focusDOMComponent:function(){a(r.getNodeFromInstance(this))}};e.exports=i},function(e,t){"use strict";function n(e){try{e.focus()}catch(e){}}e.exports=n},function(e,t,n){"use strict";var r=n(90),a=n(47),i=(n(61),n(91),n(93)),o=n(94),s=n(96),l=(n(10),s(function(e){return o(e)})),u=!1,c="cssFloat";if(a.canUseDOM){var h=document.createElement("div").style;try{h.font=""}catch(e){u=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var d={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];null!=a&&(n+=l(r)+":",n+=i(r,a,t)+";")}return n||null},setValueForStyles:function(e,t,n){var a=e.style;for(var o in t)if(t.hasOwnProperty(o)){var s=i(o,t[o],n);if("float"!==o&&"cssFloat"!==o||(o=c),s)a[o]=s;else{var l=u&&r.shorthandPropertyExpansions[o];if(l)for(var h in l)a[h]="";else a[o]=""}}}};e.exports=d},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},a=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){a.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},o={isUnitlessNumber:r,shorthandPropertyExpansions:i};e.exports=o},function(e,t,n){"use strict";function r(e){return a(e.replace(i,"ms-"))}var a=n(92),i=/^-ms-/;e.exports=r},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r=null==t||"boolean"==typeof t||""===t;if(r)return"";var a=isNaN(t);if(a||0===t||i.hasOwnProperty(e)&&i[e])return""+t;if("string"==typeof t){t=t.trim()}return t+"px"}var a=n(90),i=(n(10),a.isUnitlessNumber);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e).replace(i,"-ms-")}var a=n(95),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){return!!u.hasOwnProperty(e)||!l.hasOwnProperty(e)&&(s.test(e)?(u[e]=!0,!0):(l[e]=!0,!1))}function a(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var i=n(35),o=(n(33),n(61),n(98)),s=(n(10),new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),l={},u={},c={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+o(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(a(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+o(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+o(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+o(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var o=r.mutationMethod;if(o)o(e,n);else{if(a(r,n))return void this.deleteValueForProperty(e,t);if(r.mustUseProperty)e[r.propertyName]=n;else{var s=r.attributeName,l=r.attributeNamespace;l?e.setAttributeNS(l,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}}}else if(i.isCustomAttribute(t))return void c.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){if(r(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n)}},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var a=n.propertyName;n.hasBooleanValue?e[a]=!1:e[a]=""}else e.removeAttribute(n.attributeName)}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};e.exports=c},function(e,t,n){"use strict";function r(e){return'"'+a(e)+'"'}var a=n(80);e.exports=r},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,g)||(e[g]=p++,h[e[g]]={}),h[e[g]]}var a,i=n(3),o=n(42),s=n(100),l=n(70),u=n(101),c=n(64),h={},d=!1,p=0,f={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},g="_reactListenersID"+String(Math.random()).slice(2),m=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=o.registrationNameDependencies[e],s=0;s<i.length;s++){var l=i[s];a.hasOwnProperty(l)&&a[l]||("topWheel"===l?c("wheel")?m.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):c("mousewheel")?m.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):m.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===l?c("scroll",!0)?m.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):m.ReactEventListener.trapBubbledEvent("topScroll","scroll",m.ReactEventListener.WINDOW_HANDLE):"topFocus"===l||"topBlur"===l?(c("focus",!0)?(m.ReactEventListener.trapCapturedEvent("topFocus","focus",n),m.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):c("focusin")&&(m.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),m.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),a.topBlur=!0,a.topFocus=!0):f.hasOwnProperty(l)&&m.ReactEventListener.trapBubbledEvent(l,f[l],n),a[l]=!0)}},trapBubbledEvent:function(e,t,n){return m.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return m.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===a&&(a=m.supportsEventPageXY()),!a&&!d){var e=l.refreshScrollValues;m.ReactEventListener.monitorScrollValue(e),d=!0}}});e.exports=m},function(e,t,n){"use strict";function r(e){a.enqueueEvents(e),a.processEventQueue(!1)}var a=n(41),i={handleTopLevel:function(e,t,n,i){var o=a.extractEvents(e,t,n,i);r(o)}};e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function a(e){if(s[e])return s[e];if(!o[e])return e;var t=o[e];for(var n in t)if(t.hasOwnProperty(n)&&n in l)return s[e]=t[n];return""}var i=n(47),o={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},l={};i.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete o.animationend.animation,
|
|
22
|
-
delete o.animationiteration.animation,delete o.animationstart.animation),"TransitionEvent"in window||delete o.transitionend.transition),e.exports=a},function(e,t,n){"use strict";function r(){this._rootNodeID&&d.updateWrapper(this)}function a(e){var t="checkbox"===e.type||"radio"===e.type;return t?null!=e.checked:null!=e.value}function i(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);h.asap(r,this);var a=t.name;if("radio"===t.type&&null!=a){for(var i=c.getNodeFromInstance(this),s=i;s.parentNode;)s=s.parentNode;for(var l=s.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),d=0;d<l.length;d++){var p=l[d];if(p!==i&&p.form===i.form){var f=c.getInstanceFromNode(p);f?void 0:o("90"),h.asap(r,f)}}}return n}var o=n(34),s=n(3),l=n(97),u=n(103),c=n(33),h=n(55),d=(n(7),n(10),{getHostProps:function(e,t){var n=u.getValue(t),r=u.getChecked(t),a=s({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return a},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null,onChange:i.bind(e),controlled:a(t)}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&l.setValueForProperty(c.getNodeFromInstance(e),"checked",n||!1);var r=c.getNodeFromInstance(e),a=u.getValue(t);if(null!=a)if(0===a&&""===r.value)r.value="0";else if("number"===t.type){var i=parseFloat(r.value,10)||0;a!=i&&(r.value=""+a)}else a!=r.value&&(r.value=""+a);else null==t.value&&null!=t.defaultValue&&r.defaultValue!==""+t.defaultValue&&(r.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(r.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=c.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}});e.exports=d},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?s("87"):void 0}function a(e){r(e),null!=e.value||null!=e.onChange?s("88"):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?s("89"):void 0}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(34),l=n(104),u=n(25),c=n(2),h=u(c.isValidElement),d=(n(7),n(10),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),p={value:function(e,t,n){return!e[t]||d[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:h.func},f={},g={checkPropTypes:function(e,t,n){for(var r in p){if(p.hasOwnProperty(r))var a=p[r](t,r,e,"prop",null,l);if(a instanceof Error&&!(a.message in f)){f[a.message]=!0;o(n)}}},getValue:function(e){return e.valueLink?(a(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(a(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=g},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function r(e){var t="";return i.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:l||(l=!0))}),t}var a=n(3),i=n(2),o=n(33),s=n(106),l=(n(10),!1),u={mountWrapper:function(e,t,n){var a=null;if(null!=n){var i=n;"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(a=s.getSelectValueContext(i))}var o=null;if(null!=a){var l;if(l=null!=t.value?t.value+"":r(t.children),o=!1,Array.isArray(a)){for(var u=0;u<a.length;u++)if(""+a[u]===l){o=!0;break}}else o=""+a===l}e._wrapperState={selected:o}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){var n=o.getNodeFromInstance(e);n.setAttribute("value",t.value)}},getHostProps:function(e,t){var n=a({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var i=r(t.children);return i&&(n.children=i),n}};e.exports=u},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=s.getValue(e);null!=t&&a(this,Boolean(e.multiple),t)}}function a(e,t,n){var r,a,i=l.getNodeFromInstance(e).options;if(t){for(r={},a=0;a<n.length;a++)r[""+n[a]]=!0;for(a=0;a<i.length;a++){var o=r.hasOwnProperty(i[a].value);i[a].selected!==o&&(i[a].selected=o)}}else{for(r=""+n,a=0;a<i.length;a++)if(i[a].value===r)return void(i[a].selected=!0);i.length&&(i[0].selected=!0)}}function i(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),u.asap(r,this),n}var o=n(3),s=n(103),l=n(33),u=n(55),c=(n(10),!1),h={getHostProps:function(e,t){return o({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=s.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:i.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||c||(c=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=s.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,a(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?a(e,Boolean(t.multiple),t.defaultValue):a(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=h},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function a(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return u.asap(r,this),n}var i=n(34),o=n(3),s=n(103),l=n(33),u=n(55),c=(n(7),n(10),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?i("91"):void 0;var n=o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=s.getValue(t),r=n;if(null==n){var o=t.defaultValue,l=t.children;null!=l&&(null!=o?i("92"):void 0,Array.isArray(l)&&(l.length<=1?void 0:i("93"),l=l[0]),o=""+l),null==o&&(o=""),r=o}e._wrapperState={initialValue:""+r,listeners:null,onChange:a.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=l.getNodeFromInstance(e),r=s.getValue(t);if(null!=r){var a=""+r;a!==n.value&&(n.value=a),null==t.defaultValue&&(n.defaultValue=a)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=l.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function a(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function o(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){h.processChildrenUpdates(e,t)}var c=n(34),h=n(109),d=(n(110),n(61),n(9),n(58)),p=n(111),f=(n(11),n(126)),g=(n(7),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return p.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,a,i){var o,s=0;return o=f(t,s),p.updateChildren(e,o,n,r,a,this,this._hostContainerInfo,i,s),o},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var a=[],i=0;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],l=0,u=d.mountComponent(s,t,this,this._hostContainerInfo,n,l);s._mountIndex=i++,a.push(u)}return a},updateTextContent:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var r=[s(e)];u(this,r)},updateMarkup:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var r=[o(e)];u(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,a={},i=[],o=this._reconcilerUpdateChildren(r,e,i,a,t,n);if(o||r){var s,c=null,h=0,p=0,f=0,g=null;for(s in o)if(o.hasOwnProperty(s)){var m=r&&r[s],v=o[s];m===v?(c=l(c,this.moveChild(m,g,h,p)),p=Math.max(m._mountIndex,p),m._mountIndex=h):(m&&(p=Math.max(m._mountIndex,p)),c=l(c,this._mountChildAtIndex(v,i[f],g,h,t,n)),f++),h++,g=d.getHostNode(v)}for(s in a)a.hasOwnProperty(s)&&(c=l(c,this._unmountChild(r[s],a[s])));c&&u(this,c),this._renderedChildren=o}},unmountChildren:function(e){var t=this._renderedChildren;p.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return a(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return i(e,t)},_mountChildAtIndex:function(e,t,n,r,a,i){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}});e.exports=g},function(e,t,n){"use strict";var r=n(34),a=(n(7),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){a?r("104"):void 0,i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,a=!0}}};e.exports=i},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,t,n,r){var a=void 0===e[n];null!=t&&a&&(e[n]=i(t,!0))}var a=n(58),i=n(113),o=(n(121),n(117)),s=n(122),l=(n(10),{instantiateChildren:function(e,t,n,a){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,l,u,c,h){if(t||e){var d,p;for(d in t)if(t.hasOwnProperty(d)){p=e&&e[d];var f=p&&p._currentElement,g=t[d];if(null!=p&&o(f,g))a.receiveComponent(p,g,s,c),t[d]=p;else{p&&(r[d]=a.getHostNode(p),a.unmountComponent(p,!1));var m=i(g,!0);t[d]=m;var v=a.mountComponent(m,s,l,u,c,h);n.push(v)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(p=e[d],r[d]=a.getHostNode(p),a.unmountComponent(p,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];a.unmountComponent(r,t)}}});e.exports=l}).call(t,n(112))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(h===clearTimeout)return clearTimeout(e);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function o(){g&&p&&(g=!1,p.length?f=p.concat(f):m=-1,f.length&&s())}function s(){if(!g){var e=a(o);g=!0;for(var t=f.length;t;){for(p=f,f=[];++m<t;)p&&p[m].run();m=-1,t=f.length}p=null,g=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,h,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(e){h=r}}();var p,f=[],g=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new l(e,t)),1!==f.length||g||a(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.prependListener=u,d.prependOnceListener=u,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function a(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var s=e,l=s.type;if("function"!=typeof l&&"string"!=typeof l){var d="";d+=r(s._owner),o("130",null==l?l:typeof l,d)}"string"==typeof s.type?n=c.createInternalComponent(s):a(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new h(s)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):o("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var o=n(34),s=n(3),l=n(114),u=n(118),c=n(119),h=(n(120),n(7),n(10),function(e){this.construct(e)});s(h.prototype,l,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){}function a(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function o(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s=n(34),l=n(3),u=n(2),c=n(109),h=n(9),d=n(44),p=n(110),f=(n(61),n(115)),g=n(58),m=n(19),v=(n(7),n(116)),y=n(117),x=(n(10),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=p.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return a(e,t),t};var _=1,b={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,l){this._context=l,this._mountOrder=_++,this._hostParent=t,this._hostContainerInfo=n;var c,h=this._currentElement.props,d=this._processContext(l),f=this._currentElement.type,g=e.getUpdateQueue(),v=i(f),y=this._constructComponent(v,h,d,g);v||null!=y&&null!=y.render?o(f)?this._compositeType=x.PureClass:this._compositeType=x.ImpureClass:(c=y,a(f,c),null===y||y===!1||u.isValidElement(y)?void 0:s("105",f.displayName||f.name||"Component"),y=new r(f),this._compositeType=x.StatelessFunctional);y.props=h,y.context=d,y.refs=m,y.updater=g,this._instance=y,p.set(y,this);var b=y.state;void 0===b&&(y.state=b=null),"object"!=typeof b||Array.isArray(b)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,l):this.performInitialMount(c,t,n,e,l),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var a=this._currentElement.type;return e?new a(t,n,r):a(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,a){var i,o=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,a)}catch(s){r.rollback(o),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),o=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(o),i=this.performInitialMount(e,t,n,r,a)}return i},performInitialMount:function(e,t,n,r,a){var i=this._instance,o=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var s=f.getType(e);this._renderedNodeType=s;var l=this._instantiateReactComponent(e,s!==f.EMPTY);this._renderedComponent=l;var u=g.mountComponent(l,r,t,n,this._processChildContext(a),o);return u},getHostNode:function(){return g.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(g.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,p.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return m;var r={};for(var a in n)r[a]=e[a];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var a in t)a in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",a);return l({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,a=this._context;this._pendingElement=null,this.updateComponent(t,r,e,a,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?g.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,a){var i=this._instance;null==i?s("136",this.getName()||"ReactCompositeComponent"):void 0;var o,l=!1;this._context===a?o=i.context:(o=this._processContext(a),l=!0);var u=t.props,c=n.props;t!==n&&(l=!0),l&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,o);var h=this._processPendingState(c,o),d=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?d=i.shouldComponentUpdate(c,h,o):this._compositeType===x.PureClass&&(d=!v(u,c)||!v(i.state,h))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,h,o,e,a)):(this._currentElement=n,this._context=a,i.props=c,i.state=h,i.context=o)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,a=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(a&&1===r.length)return r[0];for(var i=l({},a?r[0]:n.state),o=a?1:0;o<r.length;o++){var s=r[o];l(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,a,i){var o,s,l,u=this._instance,c=Boolean(u.componentDidUpdate);c&&(o=u.props,s=u.state,l=u.context),u.componentWillUpdate&&u.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,u.props=t,u.state=n,u.context=r,this._updateRenderedComponent(a,i),c&&a.getReactMountReady().enqueue(u.componentDidUpdate.bind(u,o,s,l),u)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,a=this._renderValidatedComponent(),i=0;if(y(r,a))g.receiveComponent(n,a,e,this._processChildContext(t));else{var o=g.getHostNode(n);g.unmountComponent(n,!1);var s=f.getType(a);this._renderedNodeType=s;var l=this._instantiateReactComponent(a,s!==f.EMPTY);this._renderedComponent=l;var u=g.mountComponent(l,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),i);this._replaceNodeWithMarkup(o,u,n)}},_replaceNodeWithMarkup:function(e,t,n){c.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e,t=this._instance;return e=t.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==x.StatelessFunctional){h.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{h.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return null===e||e===!1||u.isValidElement(e)?void 0:s("109",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?s("110"):void 0;var r=t.getPublicInstance(),a=n.refs===m?n.refs={}:n.refs;a[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===x.StatelessFunctional?null:e},_instantiateReactComponent:null};e.exports=b},function(e,t,n){"use strict";var r=n(34),a=n(2),i=(n(7),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:a.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(!a.call(t,r[o])||!n(e[r[o]],t[r[o]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;e.exports=r},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var a=typeof e,i=typeof t;return"string"===a||"number"===a?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t){"use strict";var n,r={injectEmptyComponentFactory:function(e){n=e}},a={create:function(e){return n(e)}};a.injection=r,e.exports=a},function(e,t,n){"use strict";function r(e){return s?void 0:o("111",e.type),new s(e)}function a(e){return new l(e)}function i(e){return e instanceof l}var o=n(34),s=(n(7),null),l=null,u={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){l=e}},c={createInternalComponent:r,createInstanceForText:a,isTextComponent:i,injection:u};e.exports=c},function(e,t){"use strict";function n(){return r++}var r=1;e.exports=n},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var a={escape:n,unescape:r};e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?u.escape(e.key):t.toString(36)}function a(e,t,n,i){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(i,e,""===t?c+r(e,0):t),1;var p,f,g=0,m=""===t?c:t+h;if(Array.isArray(e))for(var v=0;v<e.length;v++)p=e[v],f=m+r(p,v),g+=a(p,f,n,i);else{var y=l(e);if(y){var x,_=y.call(e);if(y!==e.entries)for(var b=0;!(x=_.next()).done;)p=x.value,f=m+r(p,b++),g+=a(p,f,n,i);else for(;!(x=_.next()).done;){var w=x.value;w&&(p=w[1],f=m+u.escape(w[0])+h+r(p,0),g+=a(p,f,n,i))}}else if("object"===d){var S="",M=String(e);o("31","[object Object]"===M?"object with keys {"+Object.keys(e).join(", ")+"}":M,S)}}return g}function i(e,t,n){return null==e?0:a(e,"",t,n)}var o=n(34),s=(n(9),n(123)),l=n(124),u=(n(7),n(121)),c=(n(10),"."),h=":";e.exports=i},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[a]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,a="@@iterator";e.exports=n},function(e,t,n){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var a=t.call(e);return r.test(a)}catch(e){return!1}}function a(e){var t=u(e);if(t){var n=t.childIDs;c(e),n.forEach(a)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function o(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=C.getDisplayName(e),r=C.getElement(e),a=C.getOwnerID(e);return a&&(t=C.getDisplayName(a)),i(n,r&&r._source,t)}var l,u,c,h,d,p,f,g=n(6),m=n(9),v=(n(7),n(10),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(v){var y=new Map,x=new Set;l=function(e,t){y.set(e,t)},u=function(e){return y.get(e)},c=function(e){y.delete(e)},h=function(){return Array.from(y.keys())},d=function(e){x.add(e)},p=function(e){x.delete(e)},f=function(){return Array.from(x.keys())}}else{var _={},b={},w=function(e){return"."+e},S=function(e){return parseInt(e.substr(1),10)};l=function(e,t){var n=w(e);_[n]=t},u=function(e){var t=w(e);return _[t]},c=function(e){var t=w(e);delete _[t]},h=function(){return Object.keys(_).map(S)},d=function(e){var t=w(e);b[t]=!0},p=function(e){var t=w(e);delete b[t]},f=function(){return Object.keys(b).map(S)}}var M=[],C={onSetChildren:function(e,t){var n=u(e);n?void 0:g("144"),n.childIDs=t;for(var r=0;r<t.length;r++){var a=t[r],i=u(a);i?void 0:g("140"),null==i.childIDs&&"object"==typeof i.element&&null!=i.element?g("141"):void 0,i.isMounted?void 0:g("71"),null==i.parentID&&(i.parentID=e),i.parentID!==e?g("142",a,i.parentID,e):void 0}},onBeforeMountComponent:function(e,t,n){var r={element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};l(e,r)},onBeforeUpdateComponent:function(e,t){var n=u(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var t=u(e);t?void 0:g("144"),t.isMounted=!0;var n=0===t.parentID;n&&d(e)},onUpdateComponent:function(e){var t=u(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=u(e);if(t){t.isMounted=!1;var n=0===t.parentID;n&&p(e)}M.push(e)},purgeUnmountedComponents:function(){if(!C._preventPurging){for(var e=0;e<M.length;e++){var t=M[e];a(t)}M.length=0}},isMounted:function(e){var t=u(e);return!!t&&t.isMounted},getCurrentStackAddendum:function(e){var t="";if(e){var n=o(e),r=e._owner;t+=i(n,e._source,r&&r.getName())}var a=m.current,s=a&&a._debugID;return t+=C.getStackAddendumByID(s)},getStackAddendumByID:function(e){for(var t="";e;)t+=s(e),e=C.getParentID(e);return t},getChildIDs:function(e){var t=u(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=C.getElement(e);return t?o(t):null},getElement:function(e){var t=u(e);return t?t.element:null},getOwnerID:function(e){var t=C.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=u(e);return t?t.parentID:null},getSource:function(e){var t=u(e),n=t?t.element:null,r=null!=n?n._source:null;return r},getText:function(e){var t=C.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=u(e);return t?t.updateCount:0},getRootIDs:f,getRegisteredIDs:h};e.exports=C},function(e,t,n){(function(t){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var a=e,i=void 0===a[n];i&&null!=t&&(a[n]=t)}}function a(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(n(121),n(122));n(10);e.exports=a}).call(t,n(112))},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new s(this)}var a=n(3),i=n(49),o=n(62),s=(n(61),n(128)),l=[],u={enqueue:function(){}},c={getTransactionWrappers:function(){return l},getReactMountReady:function(){return u},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};a(r.prototype,o,c),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){}var i=n(129),o=(n(10),function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&i.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?i.enqueueForceUpdate(e):a(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?i.enqueueReplaceState(e,t):a(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?i.enqueueSetState(e,t):a(e,"setState")},e}());e.exports=o},function(e,t,n){"use strict";function r(e){l.enqueueUpdate(e)}function a(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var o=n(34),s=(n(9),n(110)),l=(n(61),n(55)),u=(n(7),n(10),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var a=i(e);return a?(a._pendingCallbacks?a._pendingCallbacks.push(t):a._pendingCallbacks=[t],void r(a)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var a=i(e,"replaceState");a&&(a._pendingStateQueue=[t],a._pendingReplaceState=!0,void 0!==n&&null!==n&&(u.validateCallback(n,"replaceState"),a._pendingCallbacks?a._pendingCallbacks.push(n):a._pendingCallbacks=[n]),r(a))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var a=n._pendingStateQueue||(n._pendingStateQueue=[]);a.push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?o("122",t,a(e)):void 0}});e.exports=u},function(e,t,n){"use strict";var r=(n(3),n(11)),a=(n(10),r);e.exports=a},function(e,t,n){"use strict";var r=n(3),a=n(75),i=n(33),o=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(o.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++;this._domID=o,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var l=n._ownerDocument,u=l.createComment(s);
|
|
23
|
-
return i.precacheNode(this,u),a(u)}return e.renderToStaticMarkup?"":"<!--"+s+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=o},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e?void 0:l("33"),"_hostNode"in t?void 0:l("33");for(var n=0,r=e;r;r=r._hostParent)n++;for(var a=0,i=t;i;i=i._hostParent)a++;for(;n-a>0;)e=e._hostParent,n--;for(;a-n>0;)t=t._hostParent,a--;for(var o=n;o--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function a(e,t){"_hostNode"in e?void 0:l("35"),"_hostNode"in t?void 0:l("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e?void 0:l("36"),e._hostParent}function o(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var a;for(a=r.length;a-- >0;)t(r[a],"captured",n);for(a=0;a<r.length;a++)t(r[a],"bubbled",n)}function s(e,t,n,a,i){for(var o=e&&t?r(e,t):null,s=[];e&&e!==o;)s.push(e),e=e._hostParent;for(var l=[];t&&t!==o;)l.push(t),t=t._hostParent;var u;for(u=0;u<s.length;u++)n(s[u],"bubbled",a);for(u=l.length;u-- >0;)n(l[u],"captured",i)}var l=n(34);n(7);e.exports={isAncestor:a,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:o,traverseEnterLeave:s}},function(e,t,n){"use strict";var r=n(34),a=n(3),i=n(74),o=n(75),s=n(33),l=n(80),u=(n(7),n(130),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});a(u.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++,i=" react-text: "+a+" ",u=" /react-text ";if(this._domID=a,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,h=c.createComment(i),d=c.createComment(u),p=o(c.createDocumentFragment());return o.queueChild(p,o(h)),this._stringText&&o.queueChild(p,o(c.createTextNode(this._stringText))),o.queueChild(p,o(d)),s.precacheNode(this,h),this._closingComment=d,p}var f=l(this._stringText);return e.renderToStaticMarkup?f:"<!--"+i+"-->"+f+"<!--"+u+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=u},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var a=n(3),i=n(55),o=n(62),s=n(11),l={initialize:s,close:function(){d.isBatchingUpdates=!1}},u={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[u,l];a(r.prototype,o,{getTransactionWrappers:function(){return c}});var h=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,a,i){var o=d.isBatchingUpdates;return d.isBatchingUpdates=!0,o?e(t,n,r,a,i):h.perform(e,null,t,n,r,a,i)}};e.exports=d},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=h.getNodeFromInstance(e),n=t.parentNode;return h.getClosestInstanceFromNode(n)}function a(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=p(e.nativeEvent),n=h.getClosestInstanceFromNode(t),a=n;do e.ancestors.push(a),a=a&&r(a);while(a);for(var i=0;i<e.ancestors.length;i++)n=e.ancestors[i],g._handleTopLevel(e.topLevelType,n,e.nativeEvent,p(e.nativeEvent))}function o(e){var t=f(window);e(t)}var s=n(3),l=n(136),u=n(47),c=n(49),h=n(33),d=n(55),p=n(63),f=n(137);s(a.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(a,c.twoArgumentPooler);var g={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){g._handleTopLevel=e},setEnabled:function(e){g._enabled=!!e},isEnabled:function(){return g._enabled},trapBubbledEvent:function(e,t,n){return n?l.listen(n,t,g.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?l.capture(n,t,g.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=o.bind(null,e);l.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(g._enabled){var n=a.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{a.release(n)}}}};e.exports=g},function(e,t,n){"use strict";var r=n(11),a={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=a},function(e,t){"use strict";function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t,n){"use strict";var r=n(35),a=n(41),i=n(43),o=n(109),s=n(118),l=n(99),u=n(119),c=n(55),h={Component:o.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:a.injection,EventPluginUtils:i.injection,EventEmitter:l.injection,HostComponent:u.injection,Updates:c.injection};e.exports=h},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=e}var a=n(3),i=n(56),o=n(49),s=n(99),l=n(140),u=(n(61),n(62)),c=n(129),h={initialize:l.getSelectionInformation,close:l.restoreSelection},d={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},p={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f=[h,d,p],g={getTransactionWrappers:function(){return f},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return c},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};a(r.prototype,u,g),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var a=n(141),i=n(143),o=n(88),s=n(146),l={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:l.hasSelectionCapabilities(e)?l.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,a=e.selectionRange;t!==n&&r(n)&&(l.hasSelectionCapabilities(n)&&l.setSelection(n,a),o(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=a.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else a.setOffsets(e,t)}};e.exports=l},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function a(e){var t=document.selection,n=t.createRange(),r=n.text.length,a=n.duplicate();a.moveToElementText(e),a.setEndPoint("EndToStart",n);var i=a.text.length,o=i+r;return{start:i,end:o}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,a=t.anchorOffset,i=t.focusNode,o=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var l=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),u=l?0:s.toString().length,c=s.cloneRange();c.selectNodeContents(e),c.setEnd(s.startContainer,s.startOffset);var h=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),d=h?0:c.toString().length,p=d+u,f=document.createRange();f.setStart(n,a),f.setEnd(i,o);var g=f.collapsed;return{start:g?p:d,end:g?d:p}}function o(e,t){var n,r,a=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),a.moveToElementText(e),a.moveStart("character",n),a.setEndPoint("EndToStart",a),a.moveEnd("character",r-n),a.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,a=Math.min(t.start,r),i=void 0===t.end?a:Math.min(t.end,r);if(!n.extend&&a>i){var o=i;i=a,a=o}var s=u(e,a),l=u(e,i);if(s&&l){var h=document.createRange();h.setStart(s.node,s.offset),n.removeAllRanges(),a>i?(n.addRange(h),n.extend(l.node,l.offset)):(h.setEnd(l.node,l.offset),n.addRange(h))}}}var l=n(47),u=n(142),c=n(50),h=l.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:h?a:i,setOffsets:h?o:s};e.exports=d},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function a(e,t){for(var a=n(e),i=0,o=0;a;){if(3===a.nodeType){if(o=i+a.textContent.length,i<=t&&o>=t)return{node:a,offset:t-i};i=o}a=n(r(a))}}e.exports=a},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!a(e)&&(a(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var a=n(144);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)&&3==e.nodeType}var a=n(145);e.exports=r},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},a={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(e){a.Properties[e]=0,r[e]&&(a.DOMAttributeNames[e]=r[e])}),e.exports=a},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&l.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function a(e,t){if(y||null==g||g!==c())return null;var n=r(g);if(!v||!d(v,n)){v=n;var a=u.getPooled(f.select,m,e,t);return a.type="select",a.target=g,i.accumulateTwoPhaseDispatches(a),a}return null}var i=n(40),o=n(47),s=n(33),l=n(140),u=n(52),c=n(146),h=n(65),d=n(116),p=o.canUseDOM&&"documentMode"in document&&document.documentMode<=11,f={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},g=null,m=null,v=null,y=!1,x=!1,_={eventTypes:f,extractEvents:function(e,t,n,r){if(!x)return null;var i=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(h(i)||"true"===i.contentEditable)&&(g=i,m=t,v=null);break;case"topBlur":g=null,m=null,v=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return y=!1,a(n,r);case"topSelectionChange":if(p)break;case"topKeyDown":case"topKeyUp":return a(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(x=!0)}};e.exports=_},function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function a(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var i=n(34),o=n(136),s=n(40),l=n(33),u=n(150),c=n(151),h=n(52),d=n(152),p=n(153),f=n(68),g=n(156),m=n(157),v=n(158),y=n(69),x=n(159),_=n(11),b=n(154),w=(n(7),{}),S={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,a={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};w[e]=a,S[r]=a});var M={},C={eventTypes:w,extractEvents:function(e,t,n,r){var a=S[e];if(!a)return null;var o;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":o=h;break;case"topKeyPress":if(0===b(n))return null;case"topKeyDown":case"topKeyUp":o=p;break;case"topBlur":case"topFocus":o=d;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":o=f;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":o=g;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":o=m;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":o=u;break;case"topTransitionEnd":o=v;break;case"topScroll":o=y;break;case"topWheel":o=x;break;case"topCopy":case"topCut":case"topPaste":o=c}o?void 0:i("86",e);var l=o.getPooled(a,t,n,r);return s.accumulateTwoPhaseDispatches(l),l},didPutListener:function(e,t,n){if("onClick"===t&&!a(e._tag)){var i=r(e),s=l.getNodeFromInstance(e);M[i]||(M[i]=o.listen(s,"click",_))}},willDeleteListener:function(e,t){if("onClick"===t&&!a(e._tag)){var n=r(e);M[n].remove(),delete M[n]}}};e.exports=C},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),i={animationName:null,elapsedTime:null,pseudoElement:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(69),i={relatedTarget:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(69),i=n(154),o=n(155),s=n(71),l={key:o,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};a.augmentClass(r,l),e.exports=r},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=a(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?o[e.keyCode]||"Unidentified":""}var a=n(154),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(68),i={dataTransfer:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(69),i=n(71),o={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};a.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(52),i={propertyName:null,elapsedTime:null,pseudoElement:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(68),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};a.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function a(e){return e?e.nodeType===O?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(L)||""}function o(e,t,n,r,a){var i;if(b.logTopLevelRenders){var o=e._currentElement.props.child,s=o.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var l=M.mountComponent(e,n,null,x(e,t),a,0);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,B._mountImageIntoNode(l,t,e,r,n)}function s(e,t,n,r){var a=T.ReactReconcileTransaction.getPooled(!n&&_.useCreateElement);a.perform(o,null,e,t,a,n,r),T.ReactReconcileTransaction.release(a)}function l(e,t,n){for(M.unmountComponent(e,n),t.nodeType===O&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function u(e){var t=a(e);if(t){var n=y.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function c(e){return!(!e||e.nodeType!==k&&e.nodeType!==O&&e.nodeType!==R)}function h(e){var t=a(e),n=t&&y.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function d(e){var t=h(e);return t?t._hostContainerInfo._topLevelWrapper:null}var p=n(34),f=n(75),g=n(35),m=n(2),v=n(99),y=(n(9),n(33)),x=n(161),_=n(162),b=n(57),w=n(110),S=(n(61),n(163)),M=n(58),C=n(129),T=n(55),A=n(19),I=n(113),E=(n(7),n(77)),P=n(117),L=(n(10),g.ID_ATTRIBUTE_NAME),D=g.ROOT_ATTRIBUTE_NAME,k=1,O=9,R=11,N={},V=1,z=function(){this.rootID=V++};z.prototype.isReactComponent={},z.prototype.render=function(){return this.props.child},z.isReactTopLevelWrapper=!0;var B={TopLevelWrapper:z,_instancesByReactRootID:N,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,a){return B.scrollMonitor(r,function(){C.enqueueElementInternal(e,t,n),a&&C.enqueueCallbackInternal(e,a)}),e},_renderNewRootComponent:function(e,t,n,r){c(t)?void 0:p("37"),v.ensureScrollValueMonitoring();var a=I(e,!1);T.batchedUpdates(s,a,t,n,r);var i=a._instance.rootID;return N[i]=a,a},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&w.has(e)?void 0:p("38"),B._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){C.validateCallback(r,"ReactDOM.render"),m.isValidElement(t)?void 0:p("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var o,s=m.createElement(z,{child:t});if(e){var l=w.get(e);o=l._processChildContext(l._context)}else o=A;var c=d(n);if(c){var h=c._currentElement,f=h.props.child;if(P(f,t)){var g=c._renderedComponent.getPublicInstance(),v=r&&function(){r.call(g)};return B._updateRootComponent(c,s,o,n,v),g}B.unmountComponentAtNode(n)}var y=a(n),x=y&&!!i(y),_=u(n),b=x&&!c&&!_,S=B._renderNewRootComponent(s,n,b,o)._renderedComponent.getPublicInstance();return r&&r.call(S),S},render:function(e,t,n){return B._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:p("40");var t=d(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(D);return!1}return delete N[t._instance.rootID],T.batchedUpdates(l,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,o){if(c(t)?void 0:p("41"),i){var s=a(t);if(S.canReuseMarkup(e,s))return void y.precacheNode(n,s);var l=s.getAttribute(S.CHECKSUM_ATTR_NAME);s.removeAttribute(S.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(S.CHECKSUM_ATTR_NAME,l);var h=e,d=r(h,u),g=" (client) "+h.substring(d-20,d+20)+"\n (server) "+u.substring(d-20,d+20);t.nodeType===O?p("42",g):void 0}if(t.nodeType===O?p("43"):void 0,o.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);f.insertTreeBefore(t,e,null)}else E(t,e),y.precacheNode(n,t.firstChild)}};e.exports=B},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===a?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var a=(n(130),9);e.exports=r},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var r=n(164),a=/\/?>/,i=/^<\!\-\-/,o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(a," "+o.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var a=r(e);return a===n}};e.exports=o},function(e,t){"use strict";function n(e){for(var t=1,n=0,a=0,i=e.length,o=i&-4;a<o;){for(var s=Math.min(a+4096,o);a<s;a+=4)n+=(t+=e.charCodeAt(a))+(t+=e.charCodeAt(a+1))+(t+=e.charCodeAt(a+2))+(t+=e.charCodeAt(a+3));t%=r,n%=r}for(;a<i;a++)n+=t+=e.charCodeAt(a);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t){"use strict";e.exports="15.5.4"},function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=o.get(e);return t?(t=s(t),t?i.getNodeFromInstance(t):null):void("function"==typeof e.render?a("44"):a("45",Object.keys(e)))}var a=n(34),i=(n(9),n(33)),o=n(110),s=n(167);n(7),n(10);e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===a.COMPOSITE;)e=e._renderedComponent;return t===a.HOST?e._renderedComponent:t===a.EMPTY?null:void 0}var a=n(115);e.exports=r},function(e,t,n){"use strict";var r=n(160);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.createMemoryHistory=t.hashHistory=t.browserHistory=t.applyRouterMiddleware=t.formatPattern=t.useRouterHistory=t.match=t.routerShape=t.locationShape=t.PropTypes=t.RoutingContext=t.RouterContext=t.createRoutes=t.useRoutes=t.RouteContext=t.Lifecycle=t.History=t.Route=t.Redirect=t.IndexRoute=t.IndexRedirect=t.withRouter=t.IndexLink=t.Link=t.Router=void 0;var a=n(170);Object.defineProperty(t,"createRoutes",{enumerable:!0,get:function(){return a.createRoutes}});var i=n(171);Object.defineProperty(t,"locationShape",{enumerable:!0,get:function(){return i.locationShape}}),Object.defineProperty(t,"routerShape",{enumerable:!0,get:function(){return i.routerShape}});var o=n(176);Object.defineProperty(t,"formatPattern",{enumerable:!0,get:function(){return o.formatPattern}});var s=n(178),l=r(s),u=n(209),c=r(u),h=n(210),d=r(h),p=n(211),f=r(p),g=n(213),m=r(g),v=n(215),y=r(v),x=n(214),_=r(x),b=n(216),w=r(b),S=n(217),M=r(S),C=n(218),T=r(C),A=n(219),I=r(A),E=n(220),P=r(E),L=n(206),D=r(L),k=n(221),O=r(k),R=r(i),N=n(222),V=r(N),z=n(226),B=r(z),F=n(227),G=r(F),H=n(228),W=r(H),j=n(231),U=r(j),q=n(223),Z=r(q);t.Router=l.default,t.Link=c.default,t.IndexLink=d.default,t.withRouter=f.default,t.IndexRedirect=m.default,t.IndexRoute=y.default,t.Redirect=_.default,t.Route=w.default,t.History=M.default,t.Lifecycle=T.default,t.RouteContext=I.default,t.useRoutes=P.default,t.RouterContext=D.default,t.RoutingContext=O.default,t.PropTypes=R.default,t.match=V.default,t.useRouterHistory=B.default,t.applyRouterMiddleware=G.default,t.browserHistory=W.default,t.hashHistory=U.default,t.createMemoryHistory=Z.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return null==e||d.default.isValidElement(e)}function i(e){return a(e)||Array.isArray(e)&&e.every(a)}function o(e,t){return c({},e,t)}function s(e){var t=e.type,n=o(t.defaultProps,e.props);if(n.children){var r=l(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function l(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(s(e))}),n}function u(e){return i(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=i,t.createRouteFromReactElement=s,t.createRoutesFromReactChildren=l,t.createRoutes=u;var h=n(1),d=r(h)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;
|
|
24
|
-
var i=n(1),o=n(172),s=(a(o),n(175)),l=r(s),u=n(173),c=(a(u),i.PropTypes.func),h=i.PropTypes.object,d=i.PropTypes.shape,p=i.PropTypes.string,f=t.routerShape=d({push:c.isRequired,replace:c.isRequired,go:c.isRequired,goBack:c.isRequired,goForward:c.isRequired,setRouteLeaveHook:c.isRequired,isActive:c.isRequired}),g=t.locationShape=d({pathname:p.isRequired,search:p.isRequired,state:h,action:p.isRequired,key:p}),m=t.falsy=l.falsy,v=t.history=l.history,y=t.location=g,x=t.component=l.component,_=t.components=l.components,b=t.route=l.route,w=(t.routes=l.routes,t.router=f),S={falsy:m,history:v,location:y,component:x,components:_,route:b,router:w};t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.canUseMembrane=void 0;var a=n(173),i=(r(a),t.canUseMembrane=!1,function(e){return e});t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(t.indexOf("deprecated")!==-1){if(l[t])return;l[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];s.default.apply(void 0,[e,t].concat(r))}function i(){l={}}t.__esModule=!0,t.default=a,t._resetWarned=i;var o=n(174),s=r(o),l={}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var a=n(1),i=a.PropTypes.func,o=a.PropTypes.object,s=a.PropTypes.arrayOf,l=a.PropTypes.oneOfType,u=a.PropTypes.element,c=a.PropTypes.shape,h=a.PropTypes.string,d=(t.history=c({listen:i.isRequired,push:i.isRequired,replace:i.isRequired,go:i.isRequired,goBack:i.isRequired,goForward:i.isRequired}),t.component=l([i,h])),p=(t.components=l([d,o]),t.route=l([o,u]));t.routes=l([p,s(p)])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e){for(var t="",n=[],r=[],i=void 0,o=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;i=s.exec(e);)i.index!==o&&(r.push(e.slice(o,i.index)),t+=a(e.slice(o,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]&&(t+=")?"),r.push(i[0]),o=s.lastIndex;return o!==e.length&&(r.push(e.slice(o,e.length)),t+=a(e.slice(o,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function o(e){return p[e]||(p[e]=i(e)),p[e]}function s(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=o(e),r=n.regexpSource,a=n.paramNames,i=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===i[i.length-1]&&(r+="$");var s=t.match(new RegExp("^"+r,"i"));if(null==s)return null;var l=s[0],u=t.substr(l.length);if(u){if("/"!==l.charAt(l.length-1))return null;u="/"+u}return{remainingPathname:u,paramNames:a,paramValues:s.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function l(e){return o(e).paramNames}function u(e,t){var n=s(e,t);if(!n)return null;var r=n.paramNames,a=n.paramValues,i={};return r.forEach(function(e,t){i[e]=a[t]}),i}function c(e,t){t=t||{};for(var n=o(e),r=n.tokens,a=0,i="",s=0,l=void 0,u=void 0,c=void 0,h=0,p=r.length;h<p;++h)l=r[h],"*"===l||"**"===l?(c=Array.isArray(t.splat)?t.splat[s++]:t.splat,null!=c||a>0?void 0:(0,d.default)(!1),null!=c&&(i+=encodeURI(c))):"("===l?a+=1:")"===l?a-=1:":"===l.charAt(0)?(u=l.substring(1),c=t[u],null!=c||a>0?void 0:(0,d.default)(!1),null!=c&&(i+=encodeURIComponent(c))):i+=l;return i.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=o,t.matchPattern=s,t.getParamNames=l,t.getParams=u,t.formatPattern=c;var h=n(177),d=r(h),p=Object.create(null)},function(e,t,n){"use strict";var r=function(e,t,n,r,a,i,o,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return!e||!e.__v2_compatible__}function o(e){return e&&e.getCurrentLocation}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(179),u=r(l),c=n(195),h=r(c),d=n(177),p=r(d),f=n(1),g=r(f),m=n(198),v=r(m),y=n(175),x=n(206),_=r(x),b=n(170),w=n(208),S=n(173),M=(r(S),g.default.PropTypes),C=M.func,T=M.object,A=g.default.createClass({displayName:"Router",propTypes:{history:T,children:y.routes,routes:y.routes,render:C,createElement:C,onError:C,onUpdate:C,parseQueryString:C,stringifyQuery:C,matchContext:T},getDefaultProps:function(){return{render:function(e){return g.default.createElement(_.default,e)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},componentWillMount:function(){var e=this,t=this.props,n=(t.parseQueryString,t.stringifyQuery,this.createRouterObjects()),r=n.history,a=n.transitionManager,i=n.router;this._unlisten=a.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)}),this.history=r,this.router=i},createRouterObjects:function(){var e=this.props.matchContext;if(e)return e;var t=this.props.history,n=this.props,r=n.routes,a=n.children;o(t)?(0,p.default)(!1):void 0,i(t)&&(t=this.wrapDeprecatedHistory(t));var s=(0,v.default)(t,(0,b.createRoutes)(r||a)),l=(0,w.createRouterObject)(t,s),u=(0,w.createRoutingHistory)(t,s);return{history:u,transitionManager:s,router:l}},wrapDeprecatedHistory:function(e){var t=this.props,n=t.parseQueryString,r=t.stringifyQuery,a=void 0;return a=e?function(){return e}:u.default,(0,h.default)(a)({parseQueryString:n,stringifyQuery:r})},componentWillReceiveProps:function(e){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function e(){var t=this.state,n=t.location,r=t.routes,i=t.params,o=t.components,l=this.props,u=l.createElement,e=l.render,c=a(l,["createElement","render"]);return null==n?null:(Object.keys(A.propTypes).forEach(function(e){return delete c[e]}),e(s({},c,{history:this.history,router:this.router,location:n,routes:r,params:i,components:o,createElement:u})))}});t.default=A,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return"string"==typeof e&&"/"===e.charAt(0)}function i(){var e=v.getHashPath();return!!a(e)||(v.replaceHashPath("/"+e),!1)}function o(e,t,n){return e+(e.indexOf("?")===-1?"?":"&")+(t+"="+n)}function s(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function l(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function u(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;A?(t=l(e,A),e=s(e,A),t?n=y.readState(t):(n=null,t=I.createKey(),v.replaceHashPath(o(e,A,t)))):t=n=null;var r=g.parsePath(e);return I.createLocation(c({},r,{state:n}),void 0,t)}function t(t){function n(){i()&&r(e())}var r=t.transitionTo;return i(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,a=e.state,i=e.action,s=e.key;if(i!==f.POP){var l=(t||"")+n+r;A?(l=o(l,A,s),y.saveState(s,a)):e.key=e.state=null;var u=v.getHashPath();i===f.PUSH?u!==l&&(window.location.hash=l):u!==l&&v.replaceHashPath(l)}}function r(e){1===++E&&(P=t(I));var n=I.listenBefore(e);return function(){n(),0===--E&&P()}}function a(e){1===++E&&(P=t(I));var n=I.listen(e);return function(){n(),0===--E&&P()}}function u(e){I.push(e)}function h(e){I.replace(e)}function d(e){I.go(e)}function x(e){return"#"+I.createHref(e)}function w(e){1===++E&&(P=t(I)),I.registerTransitionHook(e)}function S(e){I.unregisterTransitionHook(e),0===--E&&P()}function M(e,t){I.pushState(e,t)}function C(e,t){I.replaceState(e,t)}var T=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];m.canUseDOM?void 0:p.default(!1);var A=T.queryKey;(void 0===A||A)&&(A="string"==typeof A?A:b);var I=_.default(c({},T,{getCurrentLocation:e,finishTransition:n,saveState:y.saveState})),E=0,P=void 0;v.supportsGoWithoutReloadUsingHash();return c({},I,{listenBefore:r,listen:a,push:u,replace:h,go:d,createHref:x,registerTransitionHook:w,unregisterTransitionHook:S,pushState:M,replaceState:C})}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=n(180),d=(r(h),n(177)),p=r(d),f=n(181),g=n(182),m=n(183),v=n(184),y=n(185),x=n(186),_=r(x),b="_k";t.default=u,e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var a="POP";t.POP=a,t.default={PUSH:n,REPLACE:r,POP:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function i(e){var t=a(e),n="",r="",i=t.indexOf("#");i!==-1&&(r=t.substring(i),t=t.substring(0,i));var o=t.indexOf("?");return o!==-1&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0,t.extractPath=a,t.parsePath=i;var o=n(180);r(o)},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function a(){return window.location.href.split("#")[1]||""}function i(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function o(){return window.location.pathname+window.location.search+window.location.hash}function s(e){e&&window.history.go(e)}function l(e,t){t(window.confirm(e))}function u(){var e=navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}function c(){var e=navigator.userAgent;return e.indexOf("Firefox")===-1}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=a,t.replaceHashPath=i,t.getWindowPath=o,t.go=s,t.getUserConfirmation=l,t.supportsHistory=u,t.supportsGoWithoutReloadUsingHash=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return l+e}function i(e,t){try{null==t?window.sessionStorage.removeItem(a(e)):window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(e){if(e.name===c)return;if(u.indexOf(e.name)>=0&&0===window.sessionStorage.length)return;throw e}}function o(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(e){if(e.name===c)return null}if(t)try{return JSON.parse(t)}catch(e){}return null}t.__esModule=!0,t.saveState=i,t.readState=o;var s=n(180),l=(r(s),"@@History/"),u=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],c="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){return l.canUseDOM?void 0:s.default(!1),n.listen(e)}var n=h.default(i({getUserConfirmation:u.getUserConfirmation},e,{go:u.go}));return i({},n,{listen:t})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(177),s=r(o),l=n(183),u=n(184),c=n(187),h=r(c);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return Math.random().toString(36).substr(2,e)}function i(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c.default(e.state,t.state)}function o(){function e(e){return z.push(e),function(){z=z.filter(function(t){return t!==e})}}function t(){return H&&H.action===p.POP?B.indexOf(H.key):G?B.indexOf(G.key):-1}function n(e){var n=t();G=e,G.action===p.PUSH?B=[].concat(B.slice(0,n+1),[G.key]):G.action===p.REPLACE&&(B[n]=G.key),F.forEach(function(e){e(G)})}function r(e){if(F.push(e),G)e(G);else{var t=D();B=[t.key],n(t)}return function(){F=F.filter(function(t){return t!==e})}}function o(e,t){d.loopAsync(z.length,function(t,n,r){v.default(z[t],e,function(e){null!=e?r(e):n()})},function(e){N&&"string"==typeof e?N(e,function(e){t(e!==!1)}):t(e!==!1)})}function l(e){G&&i(G,e)||(H=e,o(e,function(t){if(H===e)if(t){if(e.action===p.PUSH){var r=w(G),a=w(e);a===r&&c.default(G.state,e.state)&&(e.action=p.REPLACE)}k(e)!==!1&&n(e)}else if(G&&e.action===p.POP){var i=B.indexOf(G.key),o=B.indexOf(e.key);i!==-1&&o!==-1&&R(i-o)}}))}function u(e){l(M(e,p.PUSH,b()))}function f(e){l(M(e,p.REPLACE,b()))}function m(){R(-1)}function y(){R(1)}function b(){return a(V)}function w(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,a=t;return n&&(a+=n),r&&(a+=r),a}function S(e){return w(e)}function M(e,t){var n=arguments.length<=2||void 0===arguments[2]?b():arguments[2];return"object"==typeof t&&("string"==typeof e&&(e=h.parsePath(e)),e=s({},e,{state:t}),t=n,n=arguments[3]||b()),g.default(e,t,n)}function C(e){G?(T(G,e),n(G)):T(D(),e)}function T(e,t){e.state=s({},e.state,t),O(e.key,e.state)}function A(e){z.indexOf(e)===-1&&z.push(e)}function I(e){z=z.filter(function(t){return t!==e})}function E(e,t){"string"==typeof t&&(t=h.parsePath(t)),u(s({state:e},t))}function P(e,t){"string"==typeof t&&(t=h.parsePath(t)),f(s({state:e},t))}var L=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],D=L.getCurrentLocation,k=L.finishTransition,O=L.saveState,R=L.go,N=L.getUserConfirmation,V=L.keyLength;"number"!=typeof V&&(V=_);var z=[],B=[],F=[],G=void 0,H=void 0;return{listenBefore:e,listen:r,transitionTo:l,push:u,replace:f,go:R,goBack:m,goForward:y,createKey:b,createPath:w,createHref:S,createLocation:M,setState:x.default(C,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:x.default(A,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:x.default(I,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:x.default(E,"pushState is deprecated; use push instead"),replaceState:x.default(P,"replaceState is deprecated; use replace instead")}}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(180),u=(r(l),n(188)),c=r(u),h=n(182),d=n(191),p=n(181),f=n(192),g=r(f),m=n(193),v=r(m),y=n(194),x=r(y),_=6;t.default=o,e.exports=t.default},function(e,t,n){function r(e){return null===e||void 0===e}function a(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function i(e,t,n){var i,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(l(e))return!!l(t)&&(e=o.call(e),t=o.call(t),u(e,t,n));if(a(e)){if(!a(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var h=s(e),d=s(t)}catch(e){return!1}if(h.length!=d.length)return!1;for(h.sort(),d.sort(),i=h.length-1;i>=0;i--)if(h[i]!=d[i])return!1;for(i=h.length-1;i>=0;i--)if(c=h[i],!u(e[c],t[c],n))return!1;return typeof e==typeof t}var o=Array.prototype.slice,s=n(189),l=n(190),u=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n))}},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=a?n:r,t.supported=n,t.unsupported=r},function(e,t){"use strict";function n(e,t,n){function a(){return s=!0,l?void(c=[].concat(r.call(arguments))):void n.apply(this,arguments)}function i(){if(!s&&(u=!0,!l)){for(l=!0;!s&&o<e&&u;)u=!1,t.call(this,o++,i,a);return l=!1,s?void n.apply(this,c):void(o>=e&&u&&(s=!0,n()))}}var o=0,s=!1,l=!1,u=!1,c=void 0;i()}t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?s.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=l.parsePath(e)),"object"==typeof t&&(e=i({},e,{state:t}),t=n||s.POP,n=r);var a=e.pathname||"/",o=e.search||"",u=e.hash||"",c=e.state||null;return{pathname:a,search:o,hash:u,state:c,action:t,key:n}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(180),s=(r(o),n(181)),l=n(182);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var i=n(180);r(i);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var i=n(180);r(i);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return l.stringify(e).replace(/%20/g,"+")}function i(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=w(t.substring(1)),e[f]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[f],a=t?b(t):"";if(!r&&!a)return e;"string"==typeof e&&(e=h.parsePath(e));var i=void 0;i=r&&e.search===r.search?r.searchBase:e.search||"";var s=i;return a&&(s+=(s?"&":"?")+a),o({},e,(n={search:s},n[f]={search:s,searchBase:i},n))}function r(e){return _.listenBefore(function(n,r){c.default(e,t(n),r)})}function i(e){return _.listen(function(n){e(t(n))})}function s(e){_.push(n(e,e.query))}function l(e){_.replace(n(e,e.query))}function u(e,t){return _.createPath(n(e,t||e.query))}function d(e,t){return _.createHref(n(e,t||e.query))}function m(e){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var o=_.createLocation.apply(_,[n(e,e.query)].concat(a));return e.query&&(o.query=e.query),t(o)}function v(e,t,n){"string"==typeof t&&(t=h.parsePath(t)),s(o({state:e},t,{query:n}))}function y(e,t,n){"string"==typeof t&&(t=h.parsePath(t)),l(o({state:e},t,{query:n}))}var x=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],_=e(x),b=x.stringifyQuery,w=x.parseQueryString;return"function"!=typeof b&&(b=a),"function"!=typeof w&&(w=g),o({},_,{listenBefore:r,listen:i,push:s,replace:l,createPath:u,createHref:d,createLocation:m,pushState:p.default(v,"pushState is deprecated; use push instead"),replaceState:p.default(y,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(180),l=(r(s),n(196)),u=n(193),c=r(u),h=n(182),d=n(194),p=r(d),f="$searchBase",g=l.parse;t.default=i,e.exports=t.default},function(e,t,n){"use strict";var r=n(197);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),a=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),a=void 0===a?null:decodeURIComponent(a),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(a):e[r]=[e[r],a]:e[r]=a,e},{}):{})},t.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return void 0===n?"":null===n?t:Array.isArray(n)?n.slice().sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e,t){function n(t){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],a=void 0;return n&&n!==!0||null!==r?(t={pathname:t,query:n},a=r||!1):(t=e.createLocation(t),a=n),(0,d.default)(t,a,x.location,x.routes,x.params)}function r(e,n){_&&_.location===e?i(_,n):(0,m.default)(t,e,function(t,r){t?n(t):r?i(o({},r,{location:e}),n):n()})}function i(e,t){function n(n,a){return n||a?r(n,a):void(0,f.default)(e,function(n,r){n?t(n):t(null,null,x=o({},e,{components:r}))})}function r(e,n){e?t(e):t(null,n)}var a=(0,u.default)(x,e),i=a.leaveRoutes,s=a.changeRoutes,l=a.enterRoutes;(0,c.runLeaveHooks)(i,x),i.filter(function(e){return l.indexOf(e)===-1}).forEach(g),(0,c.runChangeHooks)(s,x,e,function(t,a){return t||a?r(t,a):void(0,c.runEnterHooks)(l,e,n)})}function s(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];return e.__id__||t&&(e.__id__=b++)}function l(e){return e.reduce(function(e,t){return e.push.apply(e,w[s(t)]),e},[])}function h(e,n){(0,m.default)(t,e,function(t,r){if(null==r)return void n();_=o({},r,{location:e});for(var a=l((0,u.default)(x,_).leaveRoutes),i=void 0,s=0,c=a.length;null==i&&s<c;++s)i=a[s](e);n(i)})}function p(){if(x.routes){for(var e=l(x.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&n<r;++n)t=e[n]();return t}}function g(e){var t=s(e,!1);t&&(delete w[t],a(w)||(S&&(S(),S=null),M&&(M(),M=null)))}function v(t,n){var r=s(t),i=w[r];if(i)i.indexOf(n)===-1&&i.push(n);else{var o=!a(w);w[r]=[n],o&&(S=e.listenBefore(h),e.listenBeforeUnload&&(M=e.listenBeforeUnload(p)))}return function(){var e=w[r];if(e){var a=e.filter(function(e){return e!==n});0===a.length?g(t):w[r]=a}}}function y(t){return e.listen(function(n){x.location===n?t(null,x):r(n,function(n,r,a){n?t(n):r?e.replace(r):a&&t(null,a)})})}var x={},_=void 0,b=1,w=Object.create(null),S=void 0,M=void 0;return{isActive:n,match:r,listenBeforeLeavingRoute:v,listen:y}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i;var s=n(173),l=(r(s),n(199)),u=r(l),c=n(200),h=n(202),d=r(h),p=n(203),f=r(p),g=n(205),m=r(g);e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,i.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function a(e,t){var n=e&&e.routes,a=t.routes,i=void 0,o=void 0,s=void 0;return n?!function(){var l=!1;i=n.filter(function(n){if(l)return!0;var i=a.indexOf(n)===-1||r(n,e,t);return i&&(l=!0),i}),i.reverse(),s=[],o=[],a.forEach(function(e){var t=n.indexOf(e)===-1,r=i.indexOf(e)!==-1;t||r?s.push(e):o.push(e)})}():(i=[],o=[],s=a),{leaveRoutes:i,changeRoutes:o,enterRoutes:s}}t.__esModule=!0;var i=n(176);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return function(){for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];if(e.apply(t,a),e.length<n){var o=a[a.length-1];o()}}}function i(e){return e.reduce(function(e,t){return t.onEnter&&e.push(a(t.onEnter,t,3)),e},[])}function o(e){return e.reduce(function(e,t){return t.onChange&&e.push(a(t.onChange,t,4)),e},[])}function s(e,t,n){function r(e,t,n){return t?void(a={pathname:t,query:n,state:e}):void(a=e)}if(!e)return void n();var a=void 0;(0,h.loopAsync)(e,function(e,n,i){t(e,r,function(e){e||a?i(e,a):n()})},n)}function l(e,t,n){var r=i(e);return s(r.length,function(e,n,a){r[e](t,n,a)},n)}function u(e,t,n,r){var a=o(e);return s(a.length,function(e,r,i){a[e](t,n,r,i)},r)}function c(e,t){for(var n=0,r=e.length;n<r;++n)e[n].onLeave&&e[n].onLeave.call(e[n],t)}t.__esModule=!0,t.runEnterHooks=l,t.runChangeHooks=u,t.runLeaveHooks=c;var h=n(201),d=n(173);r(d)},function(e,t){"use strict";function n(e,t,n){function r(){return o=!0,s?void(u=[].concat(Array.prototype.slice.call(arguments))):void n.apply(this,arguments)}function a(){if(!o&&(l=!0,!s)){for(s=!0;!o&&i<e&&l;)l=!1,t.call(this,i++,a,r);return s=!1,o?void n.apply(this,u):void(i>=e&&l&&(o=!0,n()))}}var i=0,o=!1,s=!1,l=!1,u=void 0;a()}function r(e,t,n){function r(e,t,r){o||(t?(o=!0,n(t)):(i[e]=r,o=++s===a,o&&n(null,i)))}var a=e.length,i=[];if(0===a)return n(null,i);var o=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":l(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function a(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function i(e,t,n){for(var r=e,a=[],i=[],o=0,s=t.length;o<s;++o){var l=t[o],c=l.path||"";if("/"===c.charAt(0)&&(r=e,a=[],i=[]),null!==r&&c){var h=(0,u.matchPattern)(c,r);if(h?(r=h.remainingPathname,a=[].concat(a,h.paramNames),i=[].concat(i,h.paramValues)):r=null,""===r)return a.every(function(e,t){return String(i[t])===String(n[e])})}}return!1}function o(e,t){return null==t?null==e:null==e||r(e,t)}function s(e,t,n,r,s){var l=e.pathname,u=e.query;return null!=n&&("/"!==l.charAt(0)&&(l="/"+l),!!(a(l,n.pathname)||!t&&i(l,r,s))&&o(u,n.query))}t.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.default=s;var u=n(176);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(!r)return void n();var a=e.location,i=(0,l.default)(e,a);r.call(t,i,n)}function i(e,t){(0,o.mapAsync)(e.routes,function(t,n,r){a(e,t,r)},t)}t.__esModule=!0;var o=n(201),s=n(204),l=r(s);t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return i({},e,t)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=a;var o=(n(172),n(173));r(o);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,r,a){if(e.childRoutes)return[null,e.childRoutes];if(!e.getChildRoutes)return[];var i=!0,o=void 0,l={location:t,params:s(n,r)},u=(0,f.default)(l,t);return e.getChildRoutes(u,function(e,t){return t=!e&&(0,v.createRoutes)(t),i?void(o=[e,t]):void a(e,t)}),i=!1,o}function i(e,t,n,r,a){if(e.indexRoute)a(null,e.indexRoute);else if(e.getIndexRoute){var o={location:t,params:s(n,r)},l=(0,f.default)(o,t);e.getIndexRoute(l,function(e,t){a(e,!e&&(0,v.createRoutes)(t)[0])})}else e.childRoutes?!function(){var o=e.childRoutes.filter(function(e){return!e.path});(0,d.loopAsync)(o.length,function(e,a,s){i(o[e],t,n,r,function(t,n){if(t||n){var r=[o[e]].concat(Array.isArray(n)?n:[n]);s(t,r)}else a()})},function(e,t){a(null,t)})}():a()}function o(e,t,n){return t.reduce(function(e,t,r){var a=n&&n[r];return Array.isArray(e[t])?e[t].push(a):t in e?e[t]=[e[t],a]:e[t]=a,e},e)}function s(e,t){return o({},e,t)}function l(e,t,n,r,o,l){var c=e.path||"";if("/"===c.charAt(0)&&(n=t.pathname,r=[],o=[]),null!==n&&c){try{var d=(0,g.matchPattern)(c,n);d?(n=d.remainingPathname,r=[].concat(r,d.paramNames),o=[].concat(o,d.paramValues)):n=null}catch(e){l(e)}if(""===n){var p=function(){var n={routes:[e],params:s(r,o)};return i(e,t,r,o,function(e,t){if(e)l(e);else{if(Array.isArray(t)){var r;(r=n.routes).push.apply(r,t)}else t&&n.routes.push(t);l(null,n)}}),{v:void 0}}();if("object"===("undefined"==typeof p?"undefined":h(p)))return p.v}}if(null!=n||e.childRoutes){var f=function(a,i){a?l(a):i?u(i,t,function(t,n){t?l(t):n?(n.routes.unshift(e),l(null,n)):l()},n,r,o):l()},m=a(e,t,r,o,f);m&&f.apply(void 0,m)}else l()}function u(e,t,n,r){var a=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],i=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=c({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,d.loopAsync)(e.length,function(n,o,s){l(e[n],t,r,a,i,function(e,t){e||t?s(e,t):o()})},n)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.default=u;var d=n(201),p=n(204),f=r(p),g=n(176),m=n(173),v=(r(m),n(170));e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(177),s=r(o),l=n(1),u=r(l),c=n(172),h=(r(c),n(207)),d=r(h),p=n(170),f=n(173),g=(r(f),u.default.PropTypes),m=g.array,v=g.func,y=g.object,x=u.default.createClass({displayName:"RouterContext",propTypes:{history:y,router:y.isRequired,location:y.isRequired,routes:m.isRequired,params:y.isRequired,components:m.isRequired,createElement:v.isRequired},getDefaultProps:function(){return{createElement:u.default.createElement}},childContextTypes:{history:y,location:y.isRequired,router:y.isRequired},getChildContext:function(){var e=this.props,t=e.router,n=e.history,r=e.location;return t||(t=i({},n,{setRouteLeaveHook:n.listenBeforeLeavingRoute}),delete t.listenBeforeLeavingRoute),{history:n,location:r,router:t}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.history,r=t.location,o=t.routes,l=t.params,c=t.components,h=null;return c&&(h=c.reduceRight(function(t,s,u){if(null==s)return t;var c=o[u],h=(0,d.default)(c,l),f={history:n,location:r,params:l,route:c,routeParams:h,routes:o};if((0,p.isReactChildren)(t))f.children=t;else if(t)for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&(f[g]=t[g]);if("object"===("undefined"==typeof s?"undefined":a(s))){var m={};for(var v in s)Object.prototype.hasOwnProperty.call(s,v)&&(m[v]=e.createElement(s[v],i({
|
|
25
|
-
key:v},f)));return m}return e.createElement(s,f)},h)),null===h||h===!1||u.default.isValidElement(h)?void 0:(0,s.default)(!1),h}});t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,a.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var a=n(176);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive})}function i(e,t){return e=o({},e,t)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createRouterObject=a,t.createRoutingHistory=i;var s=n(172);r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function o(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function l(e,t){var n=t.query,r=t.hash,a=t.state;return n||r||a?{pathname:e,query:n,hash:r,state:a}:e}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(1),h=r(c),d=n(173),p=(r(d),n(177)),f=r(p),g=n(171),m=h.default.PropTypes,v=m.bool,y=m.object,x=m.string,_=m.func,b=m.oneOfType,w=h.default.createClass({displayName:"Link",contextTypes:{router:g.routerShape},propTypes:{to:b([x,y]),query:y,hash:x,state:y,activeStyle:y,activeClassName:x,onlyActiveOnIndex:v.isRequired,onClick:_,target:x},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(e){if(this.props.onClick&&this.props.onClick(e),!e.defaultPrevented&&(this.context.router?void 0:(0,f.default)(!1),!o(e)&&i(e)&&!this.props.target)){e.preventDefault();var t=this.props,n=t.to,r=t.query,a=t.hash,s=t.state,u=l(n,{query:r,hash:a,state:s});this.context.router.push(u)}},render:function(){var e=this.props,t=e.to,n=e.query,r=e.hash,i=e.state,o=e.activeClassName,c=e.activeStyle,d=e.onlyActiveOnIndex,p=a(e,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]),f=this.context.router;if(f){if(null==t)return h.default.createElement("a",p);var g=l(t,{query:n,hash:r,state:i});p.href=f.createHref(g),(o||null!=c&&!s(c))&&f.isActive(g,d)&&(o&&(p.className?p.className+=" "+o:p.className=o),c&&(p.style=u({},p.style,c)))}return h.default.createElement("a",u({},p,{onClick:this.handleClick}))}});t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),o=r(i),s=n(209),l=r(s),u=o.default.createClass({displayName:"IndexLink",render:function(){return o.default.createElement(l.default,a({},this.props,{onlyActiveOnIndex:!0}))}});t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.displayName||e.name||"Component"}function i(e,t){var n=t&&t.withRef,r=c.default.createClass({displayName:"WithRouter",contextTypes:{router:p.routerShape},propTypes:{router:p.routerShape},getWrappedInstance:function(){return n?void 0:(0,l.default)(!1),this.wrappedInstance},render:function(){var t=this,r=this.props.router||this.context.router,a=o({},this.props,{router:r});return n&&(a.ref=function(e){t.wrappedInstance=e}),c.default.createElement(e,a)}});return r.displayName="withRouter("+a(e)+")",r.WrappedComponent=e,(0,d.default)(r,e)}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i;var s=n(177),l=r(s),u=n(1),c=r(u),h=n(212),d=r(h),p=n(171);e.exports=t.default},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,i){if("string"!=typeof t){var o=Object.getOwnPropertyNames(t);a&&(o=o.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;++s)if(!(n[o[s]]||r[o[s]]||i&&i[o[s]]))try{e[o[s]]=t[o[s]]}catch(e){}}return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=r(a),o=n(173),s=(r(o),n(177)),l=r(s),u=n(214),c=r(u),h=n(175),d=i.default.PropTypes,p=d.string,f=d.object,g=i.default.createClass({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=c.default.createRouteFromReactElement(e))}},propTypes:{to:p.isRequired,query:f,state:f,onEnter:h.falsy,children:h.falsy},render:function(){(0,l.default)(!1)}});t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=r(a),o=n(177),s=r(o),l=n(170),u=n(176),c=n(175),h=i.default.PropTypes,d=h.string,p=h.object,f=i.default.createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=(0,l.createRouteFromReactElement)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,a=e.params,i=void 0;if("/"===t.to.charAt(0))i=(0,u.formatPattern)(t.to,a);else if(t.to){var o=e.routes.indexOf(t),s=f.getRoutePattern(e.routes,o-1),l=s.replace(/\/*$/,"/")+t.to;i=(0,u.formatPattern)(l,a)}else i=r.pathname;n({pathname:i,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var a=e[r],i=a.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:p,state:p,onEnter:c.falsy,children:c.falsy},render:function(){(0,s.default)(!1)}});t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=r(a),o=n(173),s=(r(o),n(177)),l=r(s),u=n(170),c=n(175),h=i.default.PropTypes.func,d=i.default.createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=(0,u.createRouteFromReactElement)(e))}},propTypes:{path:c.falsy,component:c.component,components:c.components,getComponent:h,getComponents:h},render:function(){(0,l.default)(!1)}});t.default=d,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=r(a),o=n(177),s=r(o),l=n(170),u=n(175),c=i.default.PropTypes,h=c.string,d=c.func,p=i.default.createClass({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:h,component:u.component,components:u.components,getComponent:d,getComponents:d},render:function(){(0,s.default)(!1)}});t.default=p,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(173),i=(r(a),n(175)),o={contextTypes:{history:i.history},componentWillMount:function(){this.history=this.context.history}};t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(173),i=(r(a),n(1)),o=r(i),s=n(177),l=r(s),u=o.default.PropTypes.object,c={contextTypes:{history:u.isRequired,route:u},propTypes:{route:u},componentDidMount:function(){this.routerWillLeave?void 0:(0,l.default)(!1);var e=this.props.route||this.context.route;e?void 0:(0,l.default)(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};t.default=c,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(173),i=(r(a),n(1)),o=r(i),s=o.default.PropTypes.object,l={propTypes:{route:s.isRequired},childContextTypes:{route:s.isRequired},getChildContext:function(){return{route:this.props.route}},componentWillMount:function(){}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.routes,r=a(t,["routes"]),i=(0,l.default)(e)(r),s=(0,c.default)(i,n);return o({},i,s)}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(195),l=r(s),u=n(198),c=r(u),h=n(173);r(h);t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=r(a),o=n(206),s=r(o),l=n(173),u=(r(l),i.default.createClass({displayName:"RoutingContext",componentWillMount:function(){},render:function(){return i.default.createElement(s.default,this.props)}}));t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,r=e.routes,i=e.location,l=a(e,["history","routes","location"]);n||i?void 0:(0,u.default)(!1),n=n?n:(0,h.default)(l);var c=(0,p.default)(n,(0,f.createRoutes)(r)),d=void 0;i?i=n.createLocation(i):d=n.listen(function(e){i=e});var m=(0,g.createRouterObject)(n,c);n=(0,g.createRoutingHistory)(n,c),c.match(i,function(e,r,a){t(e,r&&m.createLocation(r,s.REPLACE),a&&o({},a,{history:n,router:m,matchContext:{history:n,transitionManager:c,router:m}})),d&&d()})}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(181),l=n(177),u=r(l),c=n(223),h=r(c),d=n(198),p=r(d),f=n(170),g=n(208);t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=(0,c.default)(e),n=function(){return t},r=(0,o.default)((0,l.default)(n))(e);return r.__v2_compatible__=!0,r}t.__esModule=!0,t.default=a;var i=n(195),o=r(i),s=n(224),l=r(s),u=n(225),c=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(){function t(){if(!b){if(null==_&&s.canUseDOM){var e=document.getElementsByTagName("base")[0],t=e&&e.getAttribute("href");null!=t&&(_=t)}b=!0}}function n(e){return t(),_&&null==e.basename&&(0===e.pathname.indexOf(_)?(e.pathname=e.pathname.substring(_.length),e.basename=_,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function r(e){if(t(),!_)return e;"string"==typeof e&&(e=l.parsePath(e));var n=e.pathname,r="/"===_.slice(-1)?_:_+"/",a="/"===n.charAt(0)?n.slice(1):n,o=r+a;return i({},e,{pathname:o})}function a(e){return x.listenBefore(function(t,r){c.default(e,n(t),r)})}function o(e){return x.listen(function(t){e(n(t))})}function u(e){x.push(r(e))}function h(e){x.replace(r(e))}function p(e){return x.createPath(r(e))}function f(e){return x.createHref(r(e))}function g(e){for(var t=arguments.length,a=Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return n(x.createLocation.apply(x,[r(e)].concat(a)))}function m(e,t){"string"==typeof t&&(t=l.parsePath(t)),u(i({state:e},t))}function v(e,t){"string"==typeof t&&(t=l.parsePath(t)),h(i({state:e},t))}var y=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],x=e(y),_=y.basename,b=!1;return i({},x,{listenBefore:a,listen:o,push:u,replace:h,createPath:p,createHref:f,createLocation:g,pushState:d.default(m,"pushState is deprecated; use push instead"),replaceState:d.default(v,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(180),s=(r(o),n(183)),l=n(182),u=n(193),c=r(u),h=n(194),d=r(h);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function i(){function e(e,t){v[e]=t}function t(e){return v[e]}function n(){var e=g[m],n=e.basename,r=e.pathname,a=e.search,i=(n||"")+r+(a||""),s=void 0,l=void 0;e.key?(s=e.key,l=t(s)):(s=d.createKey(),l=null,e.key=s);var u=c.parsePath(i);return d.createLocation(o({},u,{state:l}),void 0,s)}function r(e){var t=m+e;return t>=0&&t<g.length}function i(e){if(e){if(!r(e))return;m+=e;var t=n();d.transitionTo(o({},t,{action:h.POP}))}}function s(t){switch(t.action){case h.PUSH:m+=1,m<g.length&&g.splice(m),g.push(t),e(t.key,t.state);break;case h.REPLACE:g[m]=t,e(t.key,t.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var d=p.default(o({},l,{getCurrentLocation:n,finishTransition:s,saveState:e,go:i})),f=l,g=f.entries,m=f.current;"string"==typeof g?g=[g]:Array.isArray(g)||(g=["/"]),g=g.map(function(e){var t=d.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?o({},e,{key:t}):void u.default(!1)}),null==m?m=g.length-1:m>=0&&m<g.length?void 0:u.default(!1);var v=a(g);return d}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(180),l=(r(s),n(177)),u=r(l),c=n(182),h=n(181),d=n(187),p=r(d);t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(t){var n=(0,o.default)((0,l.default)(e))(t);return n.__v2_compatible__=!0,n}}t.__esModule=!0,t.default=a;var i=n(195),o=r(i),s=n(224),l=r(s);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),o=r(i),s=n(206),l=r(s),u=n(173);r(u);t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(function(e){return e.renderRouterContext}).filter(Boolean),s=t.map(function(e){return e.renderRouteComponent}).filter(Boolean),u=function(){var e=arguments.length<=0||void 0===arguments[0]?i.createElement:arguments[0];return function(t,n){return s.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return r.reduceRight(function(t,n){return n(t,e)},o.default.createElement(l.default,a({},e,{createElement:u(e.createElement)})))}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(229),i=r(a),o=n(230),s=r(o);t.default=(0,s.default)(i.default),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){try{e=e||window.history.state||{}}catch(t){e={}}var t=h.getWindowPath(),n=e,r=n.key,a=void 0;r?a=d.readState(r):(a=null,r=x.createKey(),v&&window.history.replaceState(i({},e,{key:r}),null));var o=u.parsePath(t);return x.createLocation(i({},o,{state:a}),void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return h.addEventListener(window,"popstate",n),function(){h.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,a=e.hash,i=e.state,o=e.action,s=e.key;if(o!==l.POP){d.saveState(s,i);var u=(t||"")+n+r+a,c={key:s};if(o===l.PUSH){if(y)return window.location.href=u,!1;window.history.pushState(c,null,u)}else{if(y)return window.location.replace(u),!1;window.history.replaceState(c,null,u)}}}function r(e){1===++_&&(b=t(x));var n=x.listenBefore(e);return function(){n(),0===--_&&b()}}function a(e){1===++_&&(b=t(x));var n=x.listen(e);return function(){n(),0===--_&&b()}}function o(e){1===++_&&(b=t(x)),x.registerTransitionHook(e)}function p(e){x.unregisterTransitionHook(e),0===--_&&b()}var g=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:s.default(!1);var m=g.forceRefresh,v=h.supportsHistory(),y=!v||m,x=f.default(i({},g,{getCurrentLocation:e,finishTransition:n,saveState:d.saveState})),_=0,b=void 0;return i({},x,{listenBefore:r,listen:a,registerTransitionHook:o,unregisterTransitionHook:p})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(177),s=r(o),l=n(181),u=n(182),c=n(183),h=n(184),d=n(185),p=n(186),f=r(p);t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.default=function(e){var t=void 0;return o&&(t=(0,i.default)(e)()),t};var a=n(226),i=r(a),o=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(179),i=r(a),o=n(230),s=r(o);t.default=(0,s.default)(i.default),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(169),s=n(233),l=r(s),u=n(657),c=r(u),h=i.default.createClass({displayName:"MainPageComponent",propTypes:{},render:function(){return i.default.createElement("div",null,i.default.createElement("h1",null," echarts-for-react ",this.props.params.type," "),i.default.createElement("h3",null," A very simple echarts(v3.0) wrapper for React. ",i.default.createElement("a",{href:"https://github.com/hustcc/echarts-for-react"},"hustcc/echarts-for-react")),i.default.createElement(c.default.Google,{client:"ca-pub-7292810486004926",slot:"7806394673"}),i.default.createElement("h4",null,i.default.createElement(o.Link,{to:"/echarts/simple"},"Simple demo")," |",i.default.createElement(o.Link,{to:"/echarts/loading"},"Echarts loading")," |",i.default.createElement(o.Link,{to:"/echarts/api"},"Echarts API")," |",i.default.createElement(o.Link,{to:"/echarts/events"},"Echarts events")," |",i.default.createElement(o.Link,{to:"/echarts/theme"},"Echarts theme")," |",i.default.createElement(o.Link,{to:"/echarts/dynamic"},"Dynamic chart")," |",i.default.createElement(o.Link,{to:"/echarts/map"},"Map chart")),i.default.createElement("h4",null,i.default.createElement("span",{style:{color:"red"}},"New"),": ",i.default.createElement(o.Link,{to:"/echarts/airport"},"Airport")," |",i.default.createElement(o.Link,{to:"/echarts/graph"},"Graph")," |",i.default.createElement(o.Link,{to:"/echarts/calendar"},"Calendar")," |",i.default.createElement(o.Link,{to:"/echarts/treemap"},"Treemap")," |",i.default.createElement(o.Link,{to:"/echarts/gauge"},"Gauge")," |",i.default.createElement(o.Link,{to:"/echarts/gcalendar"},"GCalendar")," |",i.default.createElement(o.Link,{to:"/echarts/lunar"},"Lunar")," |",i.default.createElement(o.Link,{to:"/echarts/liquid"},"Liquidfill")),this.props.children||i.default.createElement(l.default,null),i.default.createElement("h3",null,"Get it on GitHub! ",i.default.createElement("a",{href:"https://github.com/hustcc/echarts-for-react"},"hustcc/echarts-for-react")))}});t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=i.default.createClass({displayName:"DynamicChartComponent",propTypes:{},timeTicket:null,count:51,getInitialState:function(){return{option:this.getOption()}},fetchNewDate:function(){var e=(new Date).toLocaleTimeString().replace(/^\D*/,""),t=this.state.option;t.title.text="Hello Echarts-for-react."+(new Date).getSeconds();var n=t.series[0].data,r=t.series[1].data;n.shift(),n.push(Math.round(1e3*Math.random())),r.shift(),r.push((10*Math.random()+5).toFixed(1)-0),t.xAxis[0].data.shift(),t.xAxis[0].data.push(e),t.xAxis[1].data.shift(),t.xAxis[1].data.push(this.count++),this.setState({option:t})},componentDidMount:function(){this.timeTicket&&clearInterval(this.timeTicket),this.timeTicket=setInterval(this.fetchNewDate,1e3)},componentWillUnmount:function(){this.timeTicket&&clearInterval(this.timeTicket)},getOption:function(){var e={title:{text:"Hello Echarts-for-react."},tooltip:{trigger:"axis"},legend:{data:["最新成交价","预购队列"]},toolbox:{show:!0,feature:{dataView:{readOnly:!1},restore:{},saveAsImage:{}}},grid:{top:60,left:30,right:60,bottom:30},dataZoom:{show:!1,start:0,end:100},visualMap:{show:!1,min:0,max:1e3,color:["#BE002F","#F20C00","#F00056","#FF2D51","#FF2121","#FF4C00","#FF7500","#FF8936","#FFA400","#F0C239","#FFF143","#FAFF72","#C9DD22","#AFDD22","#9ED900","#00E500","#0EB83A","#0AA344","#0C8918","#057748","#177CB0"]},xAxis:[{type:"category",boundaryGap:!0,data:function(){for(var e=new Date,t=[],n=50;n--;)t.unshift(e.toLocaleTimeString().replace(/^\D*/,"")),e=new Date(e-2e3);return t}()},{type:"category",boundaryGap:!0,data:function(){for(var e=[],t=50;t--;)e.push(50-t+1);return e}()}],yAxis:[{type:"value",scale:!0,name:"价格",max:20,min:0,boundaryGap:[.2,.2]},{type:"value",scale:!0,name:"预购量",max:1200,min:0,boundaryGap:[.2,.2]}],series:[{name:"预购队列",type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{normal:{barBorderRadius:4}},animationEasing:"elasticOut",animationDelay:function(e){return 10*e},animationDelayUpdate:function(e){return 10*e},data:function(){for(var e=[],t=50;t--;)e.push(Math.round(1e3*Math.random()));return e}()},{name:"最新成交价",type:"line",data:function(){for(var e=[],t=0;t<50;)e.push((10*Math.random()+5).toFixed(1)-0),t++;return e}()}]};return e},render:function(){var e="<ReactEcharts ref='echartsInstance' \n option={this.state.option} />\n";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," use React state to render dynamic chart"),i.default.createElement(s.default,{ref:"echarts_react",option:this.state.option,style:{height:400}}),i.default.createElement("label",null," code below: use state of react to render dynamic chart"),i.default.createElement("pre",null,i.default.createElement("code",null,e))))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(235),c=r(u),h=n(654),d=r(h),p=n(1),f=r(p),g=n(656),m=r(g),v=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getEchartsInstance=function(){return c.default.getInstanceByDom(n.echartsElement)||c.default.init(n.echartsElement,n.props.theme)},n.bindEvents=function(e,t){var n=function(n){"string"==typeof n&&"function"==typeof t[n]&&(e.off(n),e.on(n,function(r){t[n](r,e)}))};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r)},n.renderEchartDom=function(){var e=n.getEchartsInstance();return e.setOption(n.props.option,n.props.notMerge||!1,n.props.lazyUpdate||!1),n.props.showLoading?e.showLoading(n.props.loadingOption||null):e.hideLoading(),e},n.echartsElement=null,n}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this.renderEchartDom(),t=this.props.onEvents||{};this.bindEvents(e,t),"function"==typeof this.props.onChartReady&&this.props.onChartReady(e),(0,m.default)(this.echartsElement,function(){e.resize()})}},{key:"componentDidUpdate",value:function(){this.renderEchartDom(),this.bindEvents(this.getEchartsInstance(),this.props.onEvents||[])}},{key:"componentWillUnmount",value:function(){this.echartsElement&&("function"==typeof m.default.unbind&&m.default.unbind(this.echartsElement),c.default.dispose(this.echartsElement))}},{key:"render",value:function(){var e=this,t=this.props.style||{height:"300px"};return f.default.createElement("div",{ref:function(t){e.echartsElement=t},style:t,className:this.props.className})}}]),t}(f.default.Component);t.default=v,v.propTypes={option:d.default.object.isRequired,notMerge:d.default.bool,lazyUpdate:d.default.bool,style:d.default.object,className:d.default.string,theme:d.default.string,onChartReady:d.default.func,showLoading:d.default.bool,loadingOption:d.default.object,onEvents:d.default.object},v.defaultProps={notMerge:!1,lazyUpdate:!1,style:{height:"300px"},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{}}},function(e,t,n){e.exports=n(236),n(348),n(374),n(381),n(390),n(394),n(404),n(427),n(439),n(460),n(464),n(468),n(485),n(491),n(498),n(504),n(508),n(517),n(521),n(524),n(546),n(547),n(548),n(554),n(532),n(558),n(570),n(469),n(525),n(573),n(584),n(588),n(589),n(602),n(617),n(623),n(626),n(629),n(638),n(650)},function(e,t,n){(function(t){function r(e){return function(t,n,r){t=t&&t.toLowerCase(),z.prototype[e].call(this,t,n,r)}}function a(){z.call(this)}function i(e,t,n){function r(e,t){return e.prio-t.prio}n=n||{},"string"==typeof t&&(t=le[t]),this.id,this.group,this._dom=e;var i=this._zr=R.init(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=O.throttle(N.bind(i.flush,i),17),this._theme=N.clone(t),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new T,this._api=b(this),z.call(this),this._messageCenter=new a,this._initEvents(),this.resize=N.bind(this.resize,this),this._pendingActions=[],B(se,r),B(ae,r),i.animation.on("frame",this._onframe,this),N.setAsPrimitive(this)}function o(e,t,n){var r,a=this._model,i=this._coordSysMgr.getCoordinateSystems();t=k.parseFinder(a,t);for(var o=0;o<i.length;o++){var s=i[o];if(s[e]&&null!=(r=s[e](a,t,n)))return r}__DEV__&&console.warn("No coordinate system that supports "+e+" found by the given finder.")}function s(e,t,n,r,a){function i(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}var o=e._model;if(!r)return void F(e._componentsViews.concat(e._chartsViews),i);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};a&&(l.subType=a),o&&o.eachComponent(l,function(t,n){i(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}function l(e,t){var n=e.type,r=e.escapeConnect,a=ne[n],i=a.actionInfo,o=(i.update||"update").split(":"),l=o.pop();o=null!=o[0]&&G(o[0]),this[X]=!0;var u=[e],c=!1;e.batch&&(c=!0,u=N.map(e.batch,function(t){return t=N.defaults(N.extend({},t),e),t.batch=null,t}));var h,d=[],p="highlight"===n||"downplay"===n;F(u,function(e){h=a.action(e,this._model,this._api),h=h||N.extend({},e),h.type=i.event||h.type,d.push(h),p?s(this,l,e,"series"):o&&s(this,l,e,o.main,o.sub)},this),"none"===l||p||o||(this[Q]?(ee.prepareAndUpdate.call(this,e),this[Q]=!1):ee[l].call(this,e)),h=c?{type:i.event||n,escapeConnect:r,batch:d}:d[0],this[X]=!1,!t&&this._messageCenter.trigger(h.type,h)}function u(e){for(var t=this._pendingActions;t.length;){var n=t.shift();l.call(this,n,e)}}function c(e){!e&&this.trigger("updated")}function h(e,t,n){var r=this._api;F(this._componentsViews,function(a){var i=a.__model;a[e](i,t,r,n),_(i,a)},this),t.eachSeries(function(a,i){var o=this._chartsMap[a.__viewId];o[e](a,t,r,n),_(a,o),x(a,o)},this),y(this._zr,t),F(oe,function(e){e(t,r)})}function d(e,t){for(var n="component"===e,r=n?this._componentsViews:this._chartsViews,a=n?this._componentsMap:this._chartsMap,i=this._zr,o=0;o<r.length;o++)r[o].__alive=!1;t[n?"eachComponent":"eachSeries"](function(e,o){if(n){if("series"===e)return}else o=e;var s=o.id+"_"+o.type,l=a[s];if(!l){var u=G(o.type),c=n?P.getClass(u.main,u.sub):L.getClass(u.sub);if(!c)return;l=new c,l.init(t,this._api),a[s]=l,r.push(l),i.add(l.group)}o.__viewId=l.__id=s,l.__alive=!0,l.__model=o,l.group.__ecComponentInfo={mainType:o.mainType,index:o.componentIndex}},this);for(var o=0;o<r.length;){var s=r[o];s.__alive?o++:(i.remove(s.group),s.dispose(t,this._api),r.splice(o,1),delete a[s.__id],s.__id=s.group.__ecComponentInfo=null)}}function p(e,t){F(ae,function(n){n.func(e,t)})}function f(e){var t={};e.eachSeries(function(e){var n=e.get("stack"),r=e.getData();if(n&&"list"===r.type){var a=t[n];a&&(r.stackedOn=a),t[n]=r}})}function g(e,t){var n=this._api;F(se,function(r){r.isLayout&&r.func(e,n,t)})}function m(e,t,n){var r=this._api;e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()}),F(se,function(a){(!n||!a.isLayout)&&a.func(e,r,t)})}function v(e,t){var n=this._api;F(this._componentsViews,function(r){var a=r.__model;r.render(a,e,n,t),_(a,r)},this),F(this._chartsViews,function(e){e.__alive=!1},this),e.eachSeries(function(r,a){var i=this._chartsMap[r.__viewId];i.__alive=!0,i.render(r,e,n,t),i.group.silent=!!r.get("silent"),_(r,i),x(r,i)},this),y(this._zr,e),F(this._chartsViews,function(t){t.__alive||t.remove(e,n)},this)}function y(e,t){var n=e.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get("hoverLayerThreshold")&&!S.node&&n.traverse(function(e){e.isGroup||(e.useHoverLayer=!0)})}function x(e,t){var n=0;t.group.traverse(function(e){"group"===e.type||e.ignore||n++});var r=+e.get("progressive"),a=n>e.get("progressiveThreshold")&&r&&!S.node;a&&t.group.traverse(function(e){e.isGroup||(e.progressive=a?Math.floor(n++/r):-1,a&&e.stopAnimation(!0))});var i=e.get("blendMode")||null;__DEV__&&!S.canvasSupported&&i&&"source-over"!==i&&console.warn("Only canvas support blendMode"),t.group.traverse(function(e){e.isGroup||e.setStyle("blend",i)})}function _(e,t){var n=e.get("z"),r=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=r&&(e.zlevel=r))})}function b(e){var t=e._coordSysMgr;return N.extend(new C(e),{getCoordinateSystems:N.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function w(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[i]=t}}var n=0,r=1,a=2,i="__connectUpdateStatus";N.each(re,function(o,s){e._messageCenter.on(s,function(o){if(he[e.group]&&e[i]!==n){if(o&&o.escapeConnect)return;var s=e.makeActionFromEvent(o),l=[];N.each(ce,function(t){t!==e&&t.group===e.group&&l.push(t)}),t(l,n),F(l,function(e){e[i]!==r&&e.dispatchAction(s)}),t(l,a)}})})}"undefined"==typeof __DEV__&&("undefined"!=typeof window?window.__DEV__=!0:"undefined"!=typeof t&&(t.__DEV__=!0));
|
|
26
|
-
/*!
|
|
27
|
-
* ECharts, a javascript interactive chart library.
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) 2015, Baidu Inc.
|
|
30
|
-
* All rights reserved.
|
|
31
|
-
*
|
|
32
|
-
* LICENSE
|
|
33
|
-
* https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
|
|
34
|
-
*/
|
|
35
|
-
var S=n(237),M=n(238),C=n(260),T=n(261),A=n(262),I=n(254),E=n(263),P=n(264),L=n(278),D=n(279),k=n(240),O=n(316),R=n(317),N=n(239),V=n(274),z=n(268),B=n(321),F=N.each,G=I.parseClassType,H=1e3,W=5e3,j=1e3,U=2e3,q=3e3,Z=4e3,Y=5e3,X="__flagInMainProcess",K="__hasGradientOrPatternBg",Q="__optionUpdated",J=/^[a-zA-Z0-9_]+$/;a.prototype.on=r("on"),a.prototype.off=r("off"),a.prototype.one=r("one"),N.mixin(a,z);var $=i.prototype;$._onframe=function(){if(this[Q]){var e=this[Q].silent;this[X]=!0,ee.prepareAndUpdate.call(this),this[X]=!1,this[Q]=!1,u.call(this,e),c.call(this,e)}},$.getDom=function(){return this._dom},$.getZr=function(){return this._zr},$.setOption=function(e,t,n){__DEV__&&N.assert(!this[X],"`setOption` should not be called during main process.");var r;if(N.isObject(t)&&(n=t.lazyUpdate,r=t.silent,t=t.notMerge),this[X]=!0,!this._model||t){var a=new A(this._api),i=this._theme,o=this._model=new M(null,null,i,a);o.init(null,null,i,a)}this.__lastOnlyGraphic=!(!e||!e.graphic),N.each(e,function(e,t){"graphic"!==t&&(this.__lastOnlyGraphic=!1)},this),this._model.setOption(e,ie,this.__lastOnlyGraphic),n?(this[Q]={silent:r},this[X]=!1):(ee.prepareAndUpdate.call(this),this._zr.flush(),this[Q]=!1,this[X]=!1,u.call(this,r),c.call(this,r))},$.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},$.getModel=function(){return this._model},$.getOption=function(){return this._model&&this._model.getOption()},$.getWidth=function(){return this._zr.getWidth()},$.getHeight=function(){return this._zr.getHeight()},$.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},$.getRenderedCanvas=function(e){if(S.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr,n=t.storage.getDisplayList();return N.each(n,function(e){e.stopAnimation(!0)}),t.painter.getRenderedCanvas(e)}},$.getDataURL=function(e){e=e||{};var t=e.excludeComponents,n=this._model,r=[],a=this;F(t,function(e){n.eachComponent({mainType:e},function(e){var t=a._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var i=this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return F(r,function(e){e.group.ignore=!1}),i},$.getConnectedDataURL=function(e){if(S.canvasSupported){var t=this.group,n=Math.min,r=Math.max,a=1/0;if(he[t]){var i=a,o=a,s=-a,l=-a,u=[],c=e&&e.pixelRatio||1;N.each(ce,function(a,c){if(a.group===t){var h=a.getRenderedCanvas(N.clone(e)),d=a.getDom().getBoundingClientRect();i=n(d.left,i),o=n(d.top,o),s=r(d.right,s),l=r(d.bottom,l),u.push({dom:h,left:d.left,top:d.top})}}),i*=c,o*=c,s*=c,l*=c;var h=s-i,d=l-o,p=N.createCanvas();p.width=h,p.height=d;var f=R.init(p);return F(u,function(e){var t=new D.Image({style:{x:e.left*c-i,y:e.top*c-o,image:e.dom}});f.add(t)}),f.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},$.convertToPixel=N.curry(o,"convertToPixel"),$.convertFromPixel=N.curry(o,"convertFromPixel"),$.containPixel=function(e,t){var n,r=this._model;return e=k.parseFinder(r,e),N.each(e,function(e,r){r.indexOf("Models")>=0&&N.each(e,function(e){var a=e.coordinateSystem;if(a&&a.containPoint)n|=!!a.containPoint(t);else if("seriesModels"===r){var i=this._chartsMap[e.__viewId];i&&i.containPoint?n|=i.containPoint(t,e):__DEV__&&console.warn(r+": "+(i?"The found component do not support containPoint.":"No view mapping to the found component."))}else __DEV__&&console.warn(r+": containPoint is not supported")},this)},this),!!n},$.getVisual=function(e,t){var n=this._model;e=k.parseFinder(n,e,{defaultMainType:"series"});var r=e.seriesModel;__DEV__&&(r||console.warn("There is no specified seires model"));var a=r.getData(),i=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?a.indexOfRawIndex(e.dataIndex):null;return null!=i?a.getItemVisual(i,t):a.getVisual(t)},$.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},$.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var ee={update:function(e){var t=this._model,n=this._api,r=this._coordSysMgr,a=this._zr;if(t){t.restoreData(),r.create(this._model,this._api),p.call(this,t,n),f.call(this,t),r.update(t,n),m.call(this,t,e),v.call(this,t,e);var i=t.get("backgroundColor")||"transparent",o=a.painter;if(o.isSingleCanvas&&o.isSingleCanvas())a.configLayer(0,{clearColor:i});else{if(!S.canvasSupported){var s=V.parse(i);i=V.stringify(s,"rgb"),0===s[3]&&(i="transparent")}i.colorStops||i.image?(a.configLayer(0,{clearColor:i}),this[K]=!0,this._dom.style.background="transparent"):(this[K]&&a.configLayer(0,{clearColor:null}),this[K]=!1,this._dom.style.background=i)}F(oe,function(e){e(t,n)})}},updateView:function(e){var t=this._model;t&&(t.eachSeries(function(e){e.getData().clearAllVisual()}),m.call(this,t,e),h.call(this,"updateView",t,e))},updateVisual:function(e){var t=this._model;t&&(t.eachSeries(function(e){e.getData().clearAllVisual()}),m.call(this,t,e,!0),h.call(this,"updateVisual",t,e))},updateLayout:function(e){var t=this._model;t&&(g.call(this,t,e),h.call(this,"updateLayout",t,e))},prepareAndUpdate:function(e){var t=this._model;d.call(this,"component",t),d.call(this,"chart",t),this.__lastOnlyGraphic?(F(this._componentsViews,function(n){var r=n.__model;r&&"graphic"===r.mainType&&(n.render(r,t,this._api,e),_(r,n))},this),this.__lastOnlyGraphic=!1):ee.update.call(this,e)}};$.resize=function(e){__DEV__&&N.assert(!this[X],"`resize` should not be called during main process."),this[X]=!0,this._zr.resize(e);var t=this._model&&this._model.resetOption("media"),n=t?"prepareAndUpdate":"update";ee[n].call(this),this._loadingFX&&this._loadingFX.resize(),this[X]=!1;var r=e&&e.silent;u.call(this,r),c.call(this,r)},$.showLoading=function(e,t){if(N.isObject(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),!ue[e])return void(__DEV__&&console.warn("Loading effects "+e+" not exists."));var n=ue[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},$.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},$.makeActionFromEvent=function(e){var t=N.extend({},e);return t.type=re[e.type],t},$.dispatchAction=function(e,t){if(N.isObject(t)||(t={silent:!!t}),ne[e.type]){if(this[X])return void this._pendingActions.push(e);l.call(this,e,t.silent),t.flush?this._zr.flush(!0):t.flush!==!1&&S.browser.weChat&&this._throttledZrFlush(),u.call(this,t.silent),c.call(this,t.silent)}},$.on=r("on"),$.off=r("off"),$.one=r("one");var te=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];$._initEvents=function(){F(te,function(e){this._zr.on(e,function(t){var n,r=this.getModel(),a=t.target;if("globalout"===e)n={};else if(a&&null!=a.dataIndex){var i=a.dataModel||r.getSeriesByIndex(a.seriesIndex);n=i&&i.getDataParams(a.dataIndex,a.dataType)||{}}else a&&a.eventData&&(n=N.extend({},a.eventData));n&&(n.event=t,n.type=e,this.trigger(e,n))},this)},this),F(re,function(e,t){this._messageCenter.on(t,function(e){this.trigger(t,e)},this)},this)},$.isDisposed=function(){return this._disposed},$.clear=function(){this.setOption({series:[]},!0)},$.dispose=function(){if(this._disposed)return void(__DEV__&&console.warn("Instance "+this.id+" has been disposed"));this._disposed=!0;var e=this._api,t=this._model;F(this._componentsViews,function(n){n.dispose(t,e)}),F(this._chartsViews,function(n){n.dispose(t,e)}),this._zr.dispose(),delete ce[this.id]},N.mixin(i,z);var ne={},re={},ae=[],ie=[],oe=[],se=[],le={},ue={},ce={},he={},de=new Date-0,pe=new Date-0,fe="_echarts_instance_",ge={version:"3.5.4",dependencies:{zrender:"3.4.4"}};ge.init=function(e,t,n){if(__DEV__){if(R.version.replace(".","")-0<ge.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+R.version+" is too old for ECharts "+ge.version+". Current version need ZRender "+ge.dependencies.zrender+"+");if(!e)throw new Error("Initialize failed: invalid dom.");!N.isDom(e)||"CANVAS"===e.nodeName.toUpperCase()||(e.clientWidth||n&&null!=n.width)&&(e.clientHeight||n&&null!=n.height)||console.warn("Can't get dom width or height")}var r=new i(e,t,n);return r.id="ec_"+de++,ce[r.id]=r,e.setAttribute&&e.setAttribute(fe,r.id),w(r),r},ge.connect=function(e){if(N.isArray(e)){var t=e;e=null,N.each(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+pe++,N.each(t,function(t){t.group=e})}return he[e]=!0,e},ge.disConnect=function(e){he[e]=!1},ge.disconnect=ge.disConnect,ge.dispose=function(e){N.isDom(e)?e=ge.getInstanceByDom(e):"string"==typeof e&&(e=ce[e]),e instanceof i&&!e.isDisposed()&&e.dispose()},ge.getInstanceByDom=function(e){var t=e.getAttribute(fe);return ce[t]},ge.getInstanceById=function(e){return ce[e]},ge.registerTheme=function(e,t){le[e]=t},ge.registerPreprocessor=function(e){ie.push(e)},ge.registerProcessor=function(e,t){if("function"==typeof e&&(t=e,e=H),__DEV__&&isNaN(e))throw new Error("Unkown processor priority");ae.push({prio:e,func:t})},ge.registerPostUpdate=function(e){oe.push(e)},ge.registerAction=function(e,t,n){"function"==typeof t&&(n=t,t="");var r=N.isObject(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,N.assert(J.test(r)&&J.test(t)),ne[r]||(ne[r]={action:n,actionInfo:e}),re[t]=r},ge.registerCoordinateSystem=function(e,t){T.register(e,t)},ge.registerLayout=function(e,t){if("function"==typeof e&&(t=e,e=j),__DEV__&&isNaN(e))throw new Error("Unkown layout priority");se.push({prio:e,func:t,isLayout:!0})},ge.registerVisual=function(e,t){if("function"==typeof e&&(t=e,e=q),__DEV__&&isNaN(e))throw new Error("Unkown visual priority");se.push({prio:e,func:t})},ge.registerLoading=function(e,t){ue[e]=t},ge.extendComponentModel=function(e){return I.extend(e)},ge.extendComponentView=function(e){return P.extend(e)},ge.extendSeriesModel=function(e){return E.extend(e)},ge.extendChartView=function(e){return L.extend(e)},ge.setCanvasCreator=function(e){N.createCanvas=e},ge.registerVisual(U,n(329)),ge.registerPreprocessor(n(330)),ge.registerLoading("default",n(332)),ge.registerAction({type:"highlight",event:"highlight",update:"highlight"},N.noop),ge.registerAction({type:"downplay",event:"downplay",update:"downplay"},N.noop),ge.zrender=R,ge.List=n(333),ge.Model=n(247),ge.Axis=n(335),ge.graphic=n(279),ge.number=n(242),ge.format=n(241),ge.throttle=O.throttle,ge.matrix=n(246),ge.vector=n(245),ge.color=n(274),ge.util={},F(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(e){ge.util[e]=N[e]}),ge.helper=n(336),ge.PRIORITY={PROCESSOR:{FILTER:H,STATISTIC:W},VISUAL:{LAYOUT:j,GLOBAL:U,CHART:q,COMPONENT:Z,BRUSH:Y}},e.exports=ge}).call(t,function(){return this}())},function(e,t){function n(e){var t={},n={},r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);return r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1]),o&&(n.weChat=!0),{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11)}}var r={};r="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:n(navigator.userAgent),e.exports=r},function(e,t,n){function r(e,t){c.each(t,function(t,n){x.hasClass(n)||("object"==typeof t?e[n]=e[n]?c.merge(e[n],t,!1):c.clone(t):null==e[n]&&(e[n]=t))})}function a(e){e=e,this.option={},this.option[b]=1,this._componentsMap={series:[]},this._seriesIndices=null,r(e,this._theme.option),c.merge(e,_,!1),this.mergeOption(e)}function i(e,t){c.isArray(t)||(t=t?[t]:[]);var n={};return p(t,function(t){n[t]=(e[t]||[]).slice()}),n}function o(e,t,n){var r=t.type?t.type:n?n.subType:x.determineSubType(e,t);return r}function s(e){return g(e,function(e){return e.componentIndex})||[]}function l(e,t){return t.hasOwnProperty("subType")?f(e,function(e){return e.subType===t.subType}):e}function u(e){if(__DEV__&&!e._seriesIndices)throw new Error("Series has not been initialized yet.")}var c=n(239),h=n(240),d=n(247),p=c.each,f=c.filter,g=c.map,m=c.isArray,v=c.indexOf,y=c.isObject,x=n(254),_=n(258),b="\0_ec_inner",w=d.extend({constructor:w,init:function(e,t,n,r){n=n||{},this.option=null,this._theme=new d(n),this._optionManager=r},setOption:function(e,t,n){c.assert(!(b in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null,n)},resetOption:function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(!t&&this.restoreData(),this.mergeOption(i)):a.call(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(this.mergeOption(o),n=!0)}if(!e||"recreate"===e||"media"===e){var s=r.getMediaOption(this,this._api);s.length&&p(s,function(e){this.mergeOption(e,n=!0)},this)}return n},mergeOption:function(e){function t(t,a){var l=h.normalizeToArray(e[t]),u=h.mappingToExists(r[t],l);h.makeIdAndName(u),p(u,function(e,n){var r=e.option;y(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=o(t,r,e.exist))});var d=i(r,a);n[t]=[],r[t]=[],p(u,function(e,a){var i=e.exist,o=e.option;if(c.assert(y(o)||i,"Empty component definition"),o){var s=x.getClass(t,e.keyInfo.subType,!0);if(i&&i instanceof s)i.name=e.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1);else{var l=c.extend({dependentModels:d,componentIndex:a},e.keyInfo);i=new s(o,this,this,l),c.extend(i,l),i.init(o,this,this,l),i.optionUpdated(null,!0)}}else i.mergeOption({},this),i.optionUpdated({},!1);r[t][a]=i,n[t][a]=i.option},this),"series"===t&&(this._seriesIndices=s(r.series))}var n=this.option,r=this._componentsMap,a=[];p(e,function(e,t){null!=e&&(x.hasClass(t)?a.push(t):n[t]=null==n[t]?c.clone(e):c.merge(n[t],e,!0))}),x.topologicalTravel(a,x.getAllClassMainTypes(),t,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var e=c.clone(this.option);return p(e,function(t,n){if(x.hasClass(n)){for(var t=h.normalizeToArray(t),r=t.length-1;r>=0;r--)h.isIdInner(t[r])&&t.splice(r,1);e[n]=t}}),delete e[b],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap[e];if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,a=e.name,i=this._componentsMap[t];if(!i||!i.length)return[];var o;if(null!=n)m(n)||(n=[n]),o=f(g(n,function(e){return i[e]}),function(e){return!!e});else if(null!=r){var s=m(r);o=f(i,function(e){return s&&v(r,e.id)>=0||!s&&e.id===r})}else if(null!=a){var u=m(a);o=f(i,function(e){return u&&v(a,e.name)>=0||!u&&e.name===a})}else o=i.slice();return l(o,e)},findComponents:function(e){function t(e){var t=a+"Index",n=a+"Id",r=a+"Name";return!e||null==e[t]&&null==e[n]&&null==e[r]?null:{mainType:a,index:e[t],id:e[n],name:e[r]}}function n(t){return e.filter?f(t,e.filter):t}var r=e.query,a=e.mainType,i=t(r),o=i?this.queryComponents(i):this._componentsMap[a];return n(l(o,e))},eachComponent:function(e,t,n){var r=this._componentsMap;if("function"==typeof e)n=t,t=e,p(r,function(e,r){p(e,function(e,a){t.call(n,r,e,a)})});else if(c.isString(e))p(r[e],t,n);else if(y(e)){var a=this.findComponents(e);p(a,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.series;return f(t,function(t){return t.name===e})},getSeriesByIndex:function(e){return this._componentsMap.series[e]},getSeriesByType:function(e){var t=this._componentsMap.series;return f(t,function(t){return t.subType===e})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(e,t){u(this),p(this._seriesIndices,function(n){var r=this._componentsMap.series[n];e.call(t,r,n)},this)},eachRawSeries:function(e,t){p(this._componentsMap.series,e,t)},eachSeriesByType:function(e,t,n){u(this),p(this._seriesIndices,function(r){var a=this._componentsMap.series[r];a.subType===e&&t.call(n,a,r)},this)},eachRawSeriesByType:function(e,t,n){return p(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return u(this),c.indexOf(this._seriesIndices,e.componentIndex)<0},filterSeries:function(e,t){u(this);var n=f(this._componentsMap.series,e,t);this._seriesIndices=s(n)},restoreData:function(){var e=this._componentsMap;this._seriesIndices=s(e.series);var t=[];p(e,function(e,n){t.push(n)}),x.topologicalTravel(t,x.getAllClassMainTypes(),function(t,n){p(e[t],function(e){e.restoreData()})})}});c.mixin(w,n(259)),e.exports=w},function(e,t){function n(e){if(null==e||"object"!=typeof e)return e;var t=e,r=V.call(e);if("[object Array]"===r){t=[];for(var a=0,i=e.length;a<i;a++)t[a]=n(e[a])}else if(N[r])t=e.constructor.from(e);else if(!R[r]&&!L(e)&&!C(e)){t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=n(e[o]))}return t}function r(e,t,a){if(!S(t)||!S(e))return a?n(t):e;for(var i in t)if(t.hasOwnProperty(i)){var o=e[i],s=t[i];!S(s)||!S(o)||_(s)||_(o)||C(s)||C(o)||M(s)||M(o)||L(s)||L(o)?!a&&i in e||(e[i]=n(t[i],!0)):r(o,s,a)}return e}function a(e,t){for(var n=e[0],a=1,i=e.length;a<i;a++)n=r(n,e[a],t);return n}function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function o(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(n?null!=t[r]:null==e[r])&&(e[r]=t[r]);return e}function s(){return document.createElement("canvas")}function l(){return O||(O=Z.createCanvas().getContext("2d")),O}function u(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function c(e,t){function n(){}var r=e.prototype;n.prototype=t.prototype,e.prototype=new n;for(var a in r)e.prototype[a]=r[a];e.prototype.constructor=e,e.superClass=t}function h(e,t,n){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,o(e,t,n)}function d(e){if(e)return"string"!=typeof e&&"number"==typeof e.length}function p(e,t,n){if(e&&t)if(e.forEach&&e.forEach===B)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function f(e,t,n){if(e&&t){if(e.map&&e.map===H)return e.map(t,n);for(var r=[],a=0,i=e.length;a<i;a++)r.push(t.call(n,e[a],a,e));return r}}function g(e,t,n,r){if(e&&t){if(e.reduce&&e.reduce===W)return e.reduce(t,n,r);for(var a=0,i=e.length;a<i;a++)n=t.call(r,n,e[a],a,e);return n}}function m(e,t,n){if(e&&t){if(e.filter&&e.filter===F)return e.filter(t,n);for(var r=[],a=0,i=e.length;a<i;a++)t.call(n,e[a],a,e)&&r.push(e[a]);return r}}function v(e,t,n){if(e&&t)for(var r=0,a=e.length;r<a;r++)if(t.call(n,e[r],r,e))return e[r]}function y(e,t){var n=G.call(arguments,2);return function(){return e.apply(t,n.concat(G.call(arguments)))}}function x(e){var t=G.call(arguments,1);return function(){return e.apply(this,t.concat(G.call(arguments)))}}function _(e){return"[object Array]"===V.call(e)}function b(e){return"function"==typeof e}function w(e){return"[object String]"===V.call(e)}function S(e){var t=typeof e;return"function"===t||!!e&&"object"==t}function M(e){return!!R[V.call(e)]}function C(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function T(e){return e!==e}function A(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]}function I(){return Function.call.apply(G,arguments)}function E(e,t){if(!e)throw new Error(t)}function P(e){e[j]=!0}function L(e){return e[j]}function D(e){e&&i(this,e)}function k(){return new D}var O,R={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},N={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},V=Object.prototype.toString,z=Array.prototype,B=z.forEach,F=z.filter,G=z.slice,H=z.map,W=z.reduce,j="__ec_primitive__",U="_ec_",q=4;D.prototype={constructor:D,get:function(e){return this[U+e]},set:function(e,t){return this[U+e]=t,t},each:function(e,t){void 0!==t&&(e=y(e,t));for(var n in this)this.hasOwnProperty(n)&&e(this[n],n.slice(q))},removeKey:function(e){delete this[e]}};var Z={inherits:c,mixin:h,clone:n,merge:r,mergeAll:a,extend:i,defaults:o,getContext:l,createCanvas:s,indexOf:u,slice:I,find:v,isArrayLike:d,each:p,map:f,reduce:g,filter:m,bind:y,curry:x,isArray:_,isString:w,isObject:S,isFunction:b,isBuiltInObject:M,isDom:C,eqNaN:T,retrieve:A,assert:E,setAsPrimitive:P,createHashMap:k,noop:function(){}};e.exports=Z},function(e,t,n){function r(e,t){return e&&e.hasOwnProperty(t)}var a=n(241),i=n(242),o=n(247),s=n(239),l=s.each,u=s.isObject,c={};c.normalizeToArray=function(e){return e instanceof Array?e:null==e?[]:[e]},c.defaultEmphasis=function(e,t){if(e){var n=e.emphasis=e.emphasis||{},r=e.normal=e.normal||{};l(t,function(e){var t=s.retrieve(n[e],r[e]);null!=t&&(n[e]=t)})}},c.LABEL_OPTIONS=["position","offset","show","textStyle","distance","formatter"],c.getDataItemValue=function(e){return e&&(null==e.value?e:e.value)},c.isDataItemOption=function(e){return u(e)&&!(e instanceof Array)},c.converDataValue=function(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+i.parseDate(e)),null==e||""===e?NaN:+e)},c.createDataFormatModel=function(e,t){var n=new o;return s.mixin(n,c.dataFormatMixin),n.seriesIndex=t.seriesIndex,n.name=t.name||"",n.mainType=t.mainType,n.subType=t.subType,n.getData=function(){return e},n},c.dataFormatMixin={getDataParams:function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),a=n.getRawIndex(e),i=n.getName(e,!0),o=n.getRawDataItem(e);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:i,dataIndex:a,data:o,dataType:t,value:r,color:n.getItemVisual(e,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,r){t=t||"normal";var i=this.getData(n),o=i.getItemModel(e),s=this.getDataParams(e,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",t,"formatter"]);return"function"==typeof l?(s.status=t,l(s)):"string"==typeof l?a.formatTpl(l,s):void 0},getRawValue:function(e,t){var n=this.getData(t),r=n.getRawDataItem(e);if(null!=r)return!u(r)||r instanceof Array?r:r.value},formatTooltip:s.noop},c.mappingToExists=function(e,t){t=(t||[]).slice();var n=s.map(e||[],function(e,t){return{exist:e}});return l(t,function(e,r){if(u(e)){for(var a=0;a<n.length;a++)if(!n[a].option&&null!=e.id&&n[a].exist.id===e.id+"")return n[a].option=e,void(t[r]=null);for(var a=0;a<n.length;a++){var i=n[a].exist;if(!(n[a].option||null!=i.id&&null!=e.id||null==e.name||c.isIdInner(e)||c.isIdInner(i)||i.name!==e.name+""))return n[a].option=e,void(t[r]=null)}}}),l(t,function(e,t){if(u(e)){for(var r=0;r<n.length;r++){var a=n[r].exist;if(!n[r].option&&!c.isIdInner(a)&&null==e.id){n[r].option=e;break}}r>=n.length&&n.push({option:e})}}),n},c.makeIdAndName=function(e){var t={};l(e,function(e,n){var r=e.exist;r&&(t[r.id]=e)}),l(e,function(e,n){var r=e.option;s.assert(!r||null==r.id||!t[r.id]||t[r.id]===e,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&(t[r.id]=e),!e.keyInfo&&(e.keyInfo={})}),l(e,function(e,n){var r=e.exist,a=e.option,i=e.keyInfo;if(u(a)){if(i.name=null!=a.name?a.name+"":r?r.name:"\0-",r)i.id=r.id;else if(null!=a.id)i.id=a.id+"";else{var o=0;do i.id="\0"+i.name+"\0"+o++;while(t[i.id])}t[i.id]=e}})},c.isIdInner=function(e){return u(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")},c.compressBatches=function(e,t){function n(e,t,n){for(var r=0,a=e.length;r<a;r++)for(var i=e[r].seriesId,o=c.normalizeToArray(e[r].dataIndex),s=n&&n[i],l=0,u=o.length;l<u;l++){var h=o[l];s&&s[h]?s[h]=null:(t[i]||(t[i]={}))[h]=1}}function r(e,t){var n=[];for(var a in e)if(e.hasOwnProperty(a)&&null!=e[a])if(t)n.push(+a);else{var i=r(e[a],!0);i.length&&n.push({seriesId:a,dataIndex:i})}return n}var a={},i={};return n(e||[],a),n(t||[],i,a),[r(a),r(i)]},c.queryDataIndex=function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?s.isArray(t.dataIndex)?s.map(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?s.isArray(t.name)?s.map(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0},c.makeGetter=function(){var e=0;return function(){var t="\0__ec_prop_getter_"+e++;return function(e){return e[t]||(e[t]={})}}}(),c.parseFinder=function(e,t,n){if(s.isString(t)){var a={};a[t+"Index"]=0,t=a}var i=n&&n.defaultMainType;!i||r(t,i+"Index")||r(t,i+"Id")||r(t,i+"Name")||(t[i+"Index"]=0);var o={};return l(t,function(r,a){var r=t[a];if("dataIndex"===a||"dataIndexInside"===a)return void(o[a]=r);var i=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=i[1],u=(i[2]||"").toLowerCase();if(!(!l||!u||null==r||"index"===u&&"none"===r||n&&n.includeMainTypes&&s.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===r||(c[u]=r);var h=e.queryComponents(c);o[l+"Models"]=h,o[l+"Model"]=h[0]}}),o},e.exports=c},function(e,t,n){var r=n(239),a=n(242),i=n(243),o={};o.addCommas=function(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))},o.toCamelCase=function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},o.normalizeCssArray=function(e){var t=e.length;return"number"==typeof e?[e,e,e,e]:2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e};var s=o.encodeHTML=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},l=["a","b","c","d","e","f","g"],u=function(e,t){return"{"+e+(null==t?"":t)+"}"};o.formatTpl=function(e,t,n){r.isArray(t)||(t=[t]);var a=t.length;if(!a)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var c=l[o],h=u(c,0);e=e.replace(u(c),n?s(h):h)}for(var d=0;d<a;d++)for(var p=0;p<i.length;p++){var h=t[d][i[p]];e=e.replace(u(l[p],d),n?s(h):h)}return e},o.formatTplSimple=function(e,t,n){return r.each(t,function(t,r){e=e.replace("{"+r+"}",n?s(t):t)}),e};var c=function(e){return e<10?"0"+e:e};o.formatTime=function(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=a.parseDate(t),i=n?"UTC":"",o=r["get"+i+"FullYear"](),s=r["get"+i+"Month"]()+1,l=r["get"+i+"Date"](),u=r["get"+i+"Hours"](),h=r["get"+i+"Minutes"](),d=r["get"+i+"Seconds"]();return e=e.replace("MM",c(s)).toLowerCase().replace("yyyy",o).replace("yy",o%100).replace("dd",c(l)).replace("d",l).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(d)).replace("s",d)},o.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},o.truncateText=i.truncateText,e.exports=o},function(e,t){function n(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function r(e){return Math.floor(Math.log(e)/Math.LN10)}var a={},i=1e-4;a.linearMap=function(e,t,n,r){var a=t[1]-t[0],i=n[1]-n[0];if(0===a)return 0===i?n[0]:(n[0]+n[1])/2;if(r)if(a>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/a*i+n[0]},a.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?n(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e},a.round=function(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e},a.asc=function(e){return e.sort(function(e,t){return e-t}),e},a.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n},a.getPrecisionSafe=function(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var a=t.indexOf(".");return a<0?0:t.length-1-a},a.getPixelPrecision=function(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20},a.MAX_SAFE_INTEGER=9007199254740991,a.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},a.isRadianAroundZero=function(e){return e>-i&&e<i};var o=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;a.getTimezoneOffset=function(){return(new Date).getTimezoneOffset()},a.parseDate=function(e){if(e instanceof Date)return e;if("string"==typeof e){var t=o.exec(e);if(!t)return new Date(NaN);var n=a.getTimezoneOffset(),r=t[8]?"Z"===t[8].toUpperCase()?n:60*+t[8].slice(0,3)+n:0;return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0)-r,+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))},a.quantity=function(e){return Math.pow(10,r(e))},a.nice=function(e,t){var n,a=r(e),i=Math.pow(10,a),o=e/i;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*i,a>=-20?+e.toFixed(a<0?-a:0):e},a.reformIntervals=function(e){function t(e,n,r){return e.interval[r]<n.interval[r]||e.interval[r]===n.interval[r]&&(e.close[r]-n.close[r]===(r?-1:1)||!r&&t(e,n,1))}e.sort(function(e,n){return t(e,n,0)?-1:1});for(var n=-(1/0),r=1,a=0;a<e.length;){for(var i=e[a].interval,o=e[a].close,s=0;s<2;s++)i[s]<=n&&(i[s]=n,o[s]=s?1:1-r),n=i[s],r=o[s];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(a,1):a++}return e},a.isNumeric=function(e){return e-parseFloat(e)>=0},e.exports=a},function(e,t,n){function r(e,t){var n=e+":"+t;if(l[n])return l[n];for(var r=(e+"").split("\n"),a=0,i=0,o=r.length;i<o;i++)a=Math.max(f.measureText(r[i],t).width,a);return u>c&&(u=0,l={}),u++,l[n]=a,a}function a(e,t,n,a){var i=((e||"")+"").split("\n").length,o=r(e,t),s=r("国",t),l=i*s,u=new d(0,0,o,l);switch(u.lineHeight=s,a){case"bottom":case"alphabetic":u.y-=s;break;case"middle":u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case"center":u.x-=u.width/2}return u}function i(e,t,n,r){var a=t.x,i=t.y,o=t.height,s=t.width,l=n.height,u=n.lineHeight,c=o/2-l/2+u,h="left";switch(e){case"left":a-=r,i+=c,h="right";break;case"right":a+=r+s,i+=c,h="left";break;case"top":a+=s/2,i-=r+l-u,h="center";break;case"bottom":a+=s/2,i+=o+r+u,h="center";break;case"inside":a+=s/2,i+=c,h="center";break;case"insideLeft":a+=r,i+=c,h="left";break;case"insideRight":a+=s-r,i+=c,h="right";break;case"insideTop":a+=s/2,i+=r+u,h="center";break;case"insideBottom":a+=s/2,i+=o-l-r+u,h="center";break;case"insideTopLeft":a+=r,i+=r+u,h="left";break;case"insideTopRight":a+=s-r,i+=r+u,h="right";break;case"insideBottomLeft":a+=r,i+=o-l-r+u;break;case"insideBottomRight":a+=s-r,i+=o-l-r+u,h="right"}return{x:a,y:i,textAlign:h,textBaseline:"alphabetic"}}function o(e,t,n,a,i){if(!t)return"";i=i||{},a=p(a,"...");for(var o=p(i.maxIterations,2),l=p(i.minChar,0),u=r("国",n),c=r("a",n),h=p(i.placeholder,""),d=t=Math.max(0,t-1),f=0;f<l&&d>=c;f++)d-=c;var g=r(a);g>d&&(a="",g=0),d=t-g;for(var m=(e+"").split("\n"),f=0,v=m.length;f<v;f++){var y=m[f],x=r(y,n);if(!(x<=t)){for(var _=0;;_++){if(x<=d||_>=o){y+=a;break}var b=0===_?s(y,d,c,u):x>0?Math.floor(y.length*d/x):0;y=y.substr(0,b),x=r(y,n)}""===y&&(y=h),m[f]=y}}return m.join("\n")}function s(e,t,n,r){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?n:r}return i}var l={},u=0,c=5e3,h=n(239),d=n(244),p=h.retrieve,f={getWidth:r,getBoundingRect:a,adjustTextPositionOnRect:i,truncateText:o,measureText:function(e,t){var n=h.getContext();return n.font=t||"12px sans-serif",n.measureText(e)}};e.exports=f},function(e,t,n){"use strict";function r(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}var a=n(245),i=n(246),o=a.applyTransform,s=Math.min,l=Math.max;r.prototype={constructor:r,union:function(e){var t=s(e.x,this.x),n=s(e.y,this.y);this.width=l(e.x+e.width,this.x+this.width)-t,
|
|
36
|
-
this.height=l(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:function(){var e=[],t=[],n=[],r=[];return function(a){if(a){e[0]=n[0]=this.x,e[1]=r[1]=this.y,t[0]=r[0]=this.x+this.width,t[1]=n[1]=this.y+this.height,o(e,e,a),o(t,t,a),o(n,n,a),o(r,r,a),this.x=s(e[0],t[0],n[0],r[0]),this.y=s(e[1],t[1],n[1],r[1]);var i=l(e[0],t[0],n[0],r[0]),u=l(e[1],t[1],n[1],r[1]);this.width=i-this.x,this.height=u-this.y}}}(),calculateTransform:function(e){var t=this,n=e.width/t.width,r=e.height/t.height,a=i.create();return i.translate(a,a,[-t.x,-t.y]),i.scale(a,a,[n,r]),i.translate(a,a,[e.x,e.y]),a},intersect:function(e){if(!e)return!1;e instanceof r||(e=r.create(e));var t=this,n=t.x,a=t.x+t.width,i=t.y,o=t.y+t.height,s=e.x,l=e.x+e.width,u=e.y,c=e.y+e.height;return!(a<s||l<n||o<u||c<i)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new r(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},e.exports=r},function(e,t){var n="undefined"==typeof Float32Array?Array:Float32Array,r={create:function(e,t){var r=new n(2);return null==e&&(e=0),null==t&&(t=0),r[0]=e,r[1]=t,r},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},clone:function(e){var t=new n(2);return t[0]=e[0],t[1]=e[1],t},set:function(e,t,n){return e[0]=t,e[1]=n,e},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},sub:function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},len:function(e){return Math.sqrt(this.lenSquare(e))},lenSquare:function(e){return e[0]*e[0]+e[1]*e[1]},mul:function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},div:function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},normalize:function(e,t){var n=r.len(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e},distance:function(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))},distanceSquare:function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},lerp:function(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e},applyTransform:function(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a+n[4],e[1]=n[1]*r+n[3]*a+n[5],e},min:function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},max:function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}};r.length=r.len,r.lengthSquare=r.lenSquare,r.dist=r.distance,r.distSquare=r.distanceSquare,e.exports=r},function(e,t){var n="undefined"==typeof Float32Array?Array:Float32Array,r={create:function(){var e=new n(6);return r.identity(e),e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},mul:function(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e},translate:function(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e},rotate:function(e,t,n){var r=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e},scale:function(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e},invert:function(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}};e.exports=r},function(e,t,n){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function a(e,t,n){for(var r=0;r<t.length&&(!t[r]||(e=e&&"object"==typeof e?e[t[r]]:null,null!=e));r++);return null==e&&n&&(e=n.get(t)),e}function i(e,t){var n=s.get(e,"getParent");return n?n.call(e,t):e.parentModel}var o=n(239),s=n(248),l=n(237);r.prototype={constructor:r,init:null,mergeOption:function(e){o.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:a(this.option,this.parsePath(e),!t&&i(this,e))},getShallow:function(e,t){var n=this.option,r=null==n?n:n[e],a=!t&&i(this,e);return null==r&&a&&(r=a.getShallow(e)),r},getModel:function(e,t){var n,o=null==e?this.option:a(this.option,e=this.parsePath(e));return t=t||(n=i(this,e))&&n.getModel(e),new r(o,t,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var e=this.constructor;return new e(o.clone(this.option))},setReadOnly:function(e){s.setReadOnly(this,e)},parsePath:function(e){return"string"==typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){s.set(this,"getParent",e)},isAnimationEnabled:function(){if(!l.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s.enableClassExtend(r);var u=o.mixin;u(r,n(249)),u(r,n(251)),u(r,n(252)),u(r,n(253)),e.exports=r},function(e,t,n){function r(e){o.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function a(e,t){var n=o.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function i(e,t,n){return this.superClass.prototype[t].apply(e,n)}var o=n(239),s={},l=".",u="___EC__COMPONENT__CONTAINER___",c="\0ec_\0";s.set=function(e,t,n){return e[c+t]=n},s.get=function(e,t){return e[c+t]},s.hasOwn=function(e,t){return e.hasOwnProperty(c+t)};var h=s.parseClassType=function(e){var t={main:"",sub:""};return e&&(e=e.split(l),t.main=e[0]||"",t.sub=e[1]||""),t};s.enableClassExtend=function(e,t){e.$constructor=e,e.extend=function(e){__DEV__&&o.each(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var n=this,r=function(){e.$constructor?e.$constructor.apply(this,arguments):n.apply(this,arguments)};return o.extend(r.prototype,e),r.extend=this.extend,r.superCall=a,r.superApply=i,o.inherits(r,this),r.superClass=n,r}},s.enableClassManagement=function(e,t){function n(e){var t=a[e.main];return t&&t[u]||(t=a[e.main]={},t[u]=!0),t}t=t||{};var a={};if(e.registerClass=function(e,t){if(t)if(r(t),t=h(t),t.sub){if(t.sub!==u){var i=n(t);i[t.sub]=e}}else __DEV__&&a[t.main]&&console.warn(t.main+" exists."),a[t.main]=e;return e},e.getClass=function(e,t,n){var r=a[e];if(r&&r[u]&&(r=t?r[t]:null),n&&!r)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=h(e);var t=[],n=a[e.main];return n&&n[u]?o.each(n,function(e,n){n!==u&&t.push(e)}):t.push(n),t},e.hasClass=function(e){return e=h(e),!!a[e.main]},e.getAllClassMainTypes=function(){var e=[];return o.each(a,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){e=h(e);var t=a[e.main];return t&&t[u]},e.parseClassType=h,t.registerWhenExtend){var i=e.extend;i&&(e.extend=function(t){var n=i.call(this,t);return e.registerClass(n,t.type)})}return e},s.setReadOnly=function(e,t){},e.exports=s},function(e,t,n){var r=n(250)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getLineStyle:function(e){var t=r.call(this,e),n=this.getLineDash(t.lineWidth);return n&&(t.lineDash=n),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),r=4*e;return"solid"===t||null==t?null:"dashed"===t?[r,r]:[n,n]}}},function(e,t,n){var r=n(239);e.exports=function(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,n){for(var a={},i=0;i<e.length;i++){var o=e[i][1];if(!(t&&r.indexOf(t,o)>=0||n&&r.indexOf(n,o)<0)){var s=this.getShallow(o);null!=s&&(a[e[i][0]]=s)}}return a}}},function(e,t,n){e.exports={getAreaStyle:n(250)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}},function(e,t,n){function r(e,t){return e&&e.getShallow(t)}var a=n(243);e.exports={getTextColor:function(){var e=this.ecModel;return this.getShallow("color")||e&&e.get("textStyle.color")},getFont:function(){var e=this.ecModel,t=e&&e.getModel("textStyle");return[this.getShallow("fontStyle")||r(t,"fontStyle"),this.getShallow("fontWeight")||r(t,"fontWeight"),(this.getShallow("fontSize")||r(t,"fontSize")||12)+"px",this.getShallow("fontFamily")||r(t,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(e){return a.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("baseline"))},truncateText:function(e,t,n,r){return a.truncateText(e,t,this.getFont(),n,r)}}},function(e,t,n){var r=n(250)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);e.exports={getItemStyle:function(e,t){var n=r.call(this,e,t),a=this.getBorderLineDash();return a&&(n.lineDash=a),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}}},function(e,t,n){function r(e){var t=[];return i.each(c.getClassesByMainType(e),function(e){o.apply(t,e.prototype.dependencies||[])}),i.map(t,function(e){return l.parseClassType(e).main})}var a=n(247),i=n(239),o=Array.prototype.push,s=n(255),l=n(248),u=n(256),c=a.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,r){a.call(this,e,t,n,r),this.uid=s.getUID("componentModel")},init:function(e,t,n,r){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,r=n?u.getLayoutParams(e):{},a=t.getTheme();i.merge(e,a.get(this.mainType)),i.merge(e,this.getDefaultOption()),n&&u.mergeLayoutParam(e,r,n)},mergeOption:function(e,t){i.merge(this.option,e,!0);var n=this.layoutMode;n&&u.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){if(!l.hasOwn(this,"__defaultOption")){for(var e=[],t=this.constructor;t;){var n=t.prototype.defaultOption;n&&e.push(n),t=t.superClass}for(var r={},a=e.length-1;a>=0;a--)r=i.merge(r,e[a],!0);l.set(this,"__defaultOption",r)}return l.get(this,"__defaultOption")},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});l.enableClassManagement(c,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(c),s.enableTopologicalTravel(c,r),i.mixin(c,n(257)),e.exports=c},function(e,t,n){var r=n(239),a=n(248),i=a.parseClassType,o=0,s={},l="_";s.getUID=function(e){return[e||"",o++,Math.random()].join(l)},s.enableSubTypeDefaulter=function(e){var t={};return e.registerSubTypeDefaulter=function(e,n){e=i(e),t[e.main]=n},e.determineSubType=function(n,r){var a=r.type;if(!a){var o=i(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](r))}return a},e},s.enableTopologicalTravel=function(e,t){function n(e){var n={},o=[];return r.each(e,function(s){var l=a(n,s),u=l.originalDeps=t(s),c=i(u,e);l.entryCount=c.length,0===l.entryCount&&o.push(s),r.each(c,function(e){r.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=a(n,e);r.indexOf(t.successor,e)<0&&t.successor.push(s)})}),{graph:n,noEntryList:o}}function a(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return r.each(e,function(e){r.indexOf(t,e)>=0&&n.push(e)}),n}e.topologicalTravel=function(e,t,a,i){function o(e){u[e].entryCount--,0===u[e].entryCount&&c.push(e)}function s(e){h[e]=!0,o(e)}if(e.length){var l=n(t),u=l.graph,c=l.noEntryList,h={};for(r.each(e,function(e){h[e]=!0});c.length;){var d=c.pop(),p=u[d],f=!!h[d];f&&(a.call(i,d,p.originalDeps.slice()),delete h[d]),r.each(p.successor,f?s:o)}r.each(h,function(){throw new Error("Circle dependency may exists")})}}},e.exports=s},function(e,t,n){"use strict";function r(e,t,n,r,a){var i=0,o=0;null==r&&(r=1/0),null==a&&(a=1/0);var s=0;t.eachChild(function(l,u){var c,h,d=l.position,p=l.getBoundingRect(),f=t.childAt(u+1),g=f&&f.getBoundingRect();if("horizontal"===e){var m=p.width+(g?-g.x+p.x:0);c=i+m,c>r||l.newline?(i=0,c=m,o+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);h=o+v,h>a||l.newline?(i+=s+n,o=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=i,d[1]=o,"horizontal"===e?i=c+n:o=h+n)})}var a=n(239),i=n(244),o=n(242),s=n(241),l=o.parsePercent,u=a.each,c={},h=c.LOCATION_PARAMS=["left","right","top","bottom","width","height"],d=c.HV_NAMES=[["width","left","right"],["height","top","bottom"]];c.box=r,c.vbox=a.curry(r,"vertical"),c.hbox=a.curry(r,"horizontal"),c.getAvailableSize=function(e,t,n){var r=t.width,a=t.height,i=l(e.x,r),o=l(e.y,a),u=l(e.x2,r),c=l(e.y2,a);return(isNaN(i)||isNaN(parseFloat(e.x)))&&(i=0),(isNaN(u)||isNaN(parseFloat(e.x2)))&&(u=r),(isNaN(o)||isNaN(parseFloat(e.y)))&&(o=0),(isNaN(c)||isNaN(parseFloat(e.y2)))&&(c=a),n=s.normalizeCssArray(n||0),{width:Math.max(u-i-n[1]-n[3],0),height:Math.max(c-o-n[0]-n[2],0)}},c.getLayoutRect=function(e,t,n){n=s.normalizeCssArray(n||0);var r=t.width,a=t.height,o=l(e.left,r),u=l(e.top,a),c=l(e.right,r),h=l(e.bottom,a),d=l(e.width,r),p=l(e.height,a),f=n[2]+n[0],g=n[1]+n[3],m=e.aspect;switch(isNaN(d)&&(d=r-c-g-o),isNaN(p)&&(p=a-h-f-u),isNaN(d)&&isNaN(p)&&(m>r/a?d=.8*r:p=.8*a),null!=m&&(isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(o)&&(o=r-c-d-g),isNaN(u)&&(u=a-h-p-f),e.left||e.right){case"center":o=r/2-d/2-n[3];break;case"right":o=r-d-g}switch(e.top||e.bottom){case"middle":case"center":u=a/2-p/2-n[0];break;case"bottom":u=a-p-f}o=o||0,u=u||0,isNaN(d)&&(d=r-o-(c||0)),isNaN(p)&&(p=a-u-(h||0));var v=new i(o+n[3],u+n[0],d,p);return v.margin=n,v},c.positionElement=function(e,t,n,r,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===e.type?new i(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(h=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();h=h.clone(),h.applyTransform(d)}t=c.getLayoutRect(a.defaults({width:h.width,height:h.height},t),n,r);var p=e.position,f=s?t.x-h.x:0,g=l?t.y-h.y:0;e.attr("position","raw"===u?[f,g]:[p[0]+f,p[1]+g])}},c.sizeCalculable=function(e,t){return null!=e[d[t][0]]||null!=e[d[t][1]]&&null!=e[d[t][2]]},c.mergeLayoutParam=function(e,t,n){function r(n,r){var a={},s=0,c={},h=0,d=2;if(u(n,function(t){c[t]=e[t]}),u(n,function(e){i(t,e)&&(a[e]=c[e]=t[e]),o(a,e)&&s++,o(c,e)&&h++}),l[r])return o(t,n[1])?c[n[2]]=null:o(t,n[2])&&(c[n[1]]=null),c;if(h!==d&&s){if(s>=d)return a;for(var p=0;p<n.length;p++){var f=n[p];if(!i(a,f)&&i(e,f)){a[f]=e[f];break}}return a}return c}function i(e,t){return e.hasOwnProperty(t)}function o(e,t){return null!=e[t]&&"auto"!==e[t]}function s(e,t,n){u(e,function(e){t[e]=n[e]})}!a.isObject(n)&&(n={});var l=n.ignoreSize;!a.isArray(l)&&(l=[l,l]);var c=r(d[0],0),h=r(d[1],1);s(d[0],e,c),s(d[1],e,h)},c.getLayoutParams=function(e){return c.copyLayoutParams({},e)},c.copyLayoutParams=function(e,t){return t&&e&&u(h,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e},e.exports=c},function(e,t){e.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(e,t){var n="";"undefined"!=typeof navigator&&(n=navigator.platform||""),e.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},function(e,t,n){var r=n(248),a=r.set,i=r.get;e.exports={clearColorPalette:function(){a(this,"colorIdx",0),a(this,"colorNameMap",{})},getColorFromPalette:function(e,t){t=t||this;var n=i(t,"colorIdx")||0,r=i(t,"colorNameMap")||a(t,"colorNameMap",{});if(r[e])return r[e];var o=this.get("color",!0)||[];if(o.length){var s=o[n];return e&&(r[e]=s),a(t,"colorIdx",(n+1)%o.length),s}}}},function(e,t,n){"use strict";function r(e){a.each(i,function(t){this[t]=a.bind(e[t],e)},this)}var a=n(239),i=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];e.exports=r},function(e,t,n){"use strict";function r(){this._coordinateSystems=[]}var a=n(239),i={};r.prototype={constructor:r,create:function(e,t){var n=[];a.each(i,function(r,a){var i=r.create(e,t);n=n.concat(i||[])}),this._coordinateSystems=n},update:function(e,t){a.each(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},r.register=function(e,t){i[e]=t},r.get=function(e){return i[e]},e.exports=r},function(e,t,n){function r(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function a(e,t,n){var r,a,i=[],o=[],s=e.timeline;if(e.baseOption&&(a=e.baseOption),(s||e.options)&&(a=a||{},i=(e.options||[]).slice()),e.media){a=a||{};var l=e.media;d(l,function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))})}return a||(a=e),a.timeline||(a.timeline=s),d([a].concat(i).concat(u.map(o,function(e){return e.option})),function(e){d(t,function(t){t(e,n)})}),{baseOption:a,timelineOptions:i,mediaDefault:r,mediaList:o}}function i(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return u.each(e,function(e,t){var n=t.match(m);if(n&&n[1]&&n[2]){var i=n[1],s=n[2].toLowerCase();o(r[s],e,i)||(a=!1)}}),a}function o(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function s(e,t){return e.join(",")===t.join(",")}function l(e,t){t=t||{},d(t,function(t,n){if(null!=t){var r=e[n];if(h.hasClass(n)){t=c.normalizeToArray(t),r=c.normalizeToArray(r);var a=c.mappingToExists(r,t);e[n]=f(a,function(e){return e.option&&e.exist?g(e.exist,e.option,!0):e.exist||e.option})}else e[n]=g(r,t,!0)}})}var u=n(239),c=n(240),h=n(254),d=u.each,p=u.clone,f=u.map,g=u.merge,m=/^(min|max)?(.+)$/;r.prototype={constructor:r,setOption:function(e,t){e=p(e,!0);var n=this._optionBackup,r=a.call(this,e,t,!n);this._newBaseOption=r.baseOption,n?(l(n.baseOption,r.baseOption),r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=f(t.timelineOptions,p),this._mediaList=f(t.mediaList,p),this._mediaDefault=p(t.mediaDefault),this._currentMediaIndices=[],p(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=p(n[r.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,a=this._mediaDefault,o=[],l=[];if(!r.length&&!a)return l;for(var u=0,c=r.length;u<c;u++)i(r[u].query,t,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!s(o,this._currentMediaIndices)&&(l=f(o,function(e){return p(e===-1?a.option:r[e].option)})),this._currentMediaIndices=o,l}},e.exports=r},function(e,t,n){"use strict";var r=n(239),a=n(241),i=n(248),o=n(240),s=n(254),l=n(259),u=n(237),c=n(256),h=i.set,d=i.get,p=a.encodeHTML,f=a.addCommas,g=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(e,t,n,a){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(e,n);var i=this.getInitialData(e,n);__DEV__&&r.assert(i,"getInitialData returned invalid data."),h(this,"dataBeforeProcessed",i),this.restoreData()},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,a=n?c.getLayoutParams(e):{};r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),o.defaultEmphasis(e.label,o.LABEL_OPTIONS),this.fillDataTextStyle(e.data),n&&c.mergeLayoutParam(e,a,n)},mergeOption:function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&c.mergeLayoutParam(this.option,e,n);var a=this.getInitialData(e,t);a&&(h(this,"data",a),h(this,"dataBeforeProcessed",a.cloneShallow()))},fillDataTextStyle:function(e){if(e)for(var t=0;t<e.length;t++)e[t]&&e[t].label&&o.defaultEmphasis(e[t].label,o.LABEL_OPTIONS)},getInitialData:function(){},getData:function(e){var t=d(this,"data");return null==e?t:t.getLinkedData(e)},setData:function(e){h(this,"data",e)},getRawData:function(){return d(this,"dataBeforeProcessed")},coordDimToDataDim:function(e){return[e]},dataDimToCoordDim:function(e){return e},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n){function i(e){var n=[];return r.each(e,function(e,r){var i,s=o.getDimensionInfo(r),l=s&&s.type;i="ordinal"===l?e+"":"time"===l?t?"":a.formatTime("yyyy/MM/dd hh:mm:ss",e):f(e),i&&n.push(i)}),n.join(", ")}var o=d(this,"data"),s=this.getRawValue(e),l=p(r.isArray(s)?i(s):f(s)),u=o.getName(e),c=o.getItemVisual(e,"color");r.isObject(c)&&c.colorStops&&(c=(c.colorStops[0]||{}).color),c=c||"transparent";var h='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+p(c)+'"></span>',g=this.name;return"\0-"===g&&(g=""),t?h+p(this.name)+" : "+l:(g&&p(g)+"<br />")+h+(u?p(u)+" : "+l:l)},isAnimationEnabled:function(){if(u.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){h(this,"data",d(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(e,t){var n=this.ecModel,r=l.getColorFromPalette.call(this,e,t);return r||(r=n.getColorFromPalette(e,t)),r},getAxisTooltipData:null,getTooltipPosition:null});r.mixin(g,o.dataFormatMixin),r.mixin(g,l),e.exports=g},function(e,t,n){var r=n(265),a=n(255),i=n(248),o=function(){this.group=new r,this.uid=a.getUID("viewComponent")};o.prototype={constructor:o,init:function(e,t){},render:function(e,t,n,r){},dispose:function(){}};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,n,r){},i.enableClassExtend(o),i.enableClassManagement(o,{registerWhenExtend:!0}),e.exports=o},function(e,t,n){var r=n(239),a=n(266),i=n(244),o=function(e){e=e||{},a.call(this,e);for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof o&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,a=this._children,i=r.indexOf(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(n)),t&&t.refresh(),this)},removeAll:function(){var e,t,n=this._children,r=this.__storage;for(t=0;t<n.length;t++)e=n[t],r&&(r.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(r)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,r=0;r<n.length;r++){var a=n[r];e.call(t,a,r)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n];e.call(t,r),"group"===r.type&&r.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof o&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof o&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new i(0,0,0,0),r=e||this._children,a=[],o=0;o<r.length;o++){var s=r[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),t=t||n.clone(),t.union(n)):(t=t||l.clone(),t.union(l))}}return t||n}},r.inherits(o,a),e.exports=o},function(e,t,n){"use strict";var r=n(267),a=n(268),i=n(269),o=n(270),s=n(239),l=function(e){i.call(this,e),a.call(this,e),o.call(this,e),this.id=e.id||r()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(l,o),s.mixin(l,i),s.mixin(l,a),e.exports=l},function(e,t){var n=2311;e.exports=function(){return n++}},function(e,t){var n=Array.prototype.slice,r=function(){this._$handlers={}};r.prototype={constructor:r,one:function(e,t,n){var r=this._$handlers;if(!t||!e)return this;r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===t)return this;return r[e].push({h:t,one:!0,ctx:n||this}),this},on:function(e,t,n){var r=this._$handlers;if(!t||!e)return this;r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===t)return this;return r[e].push({h:t,one:!1,ctx:n||this}),this},isSilent:function(e){var t=this._$handlers;return t[e]&&t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],a=0,i=n[e].length;a<i;a++)n[e][a].h!=t&&r.push(n[e][a]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){if(this._$handlers[e]){var t=arguments,r=t.length;r>3&&(t=n.call(t,1));for(var a=this._$handlers[e],i=a.length,o=0;o<i;){switch(r){case 1:a[o].h.call(a[o].ctx);break;case 2:a[o].h.call(a[o].ctx,t[1]);break;case 3:a[o].h.call(a[o].ctx,t[1],t[2]);break;default:a[o].h.apply(a[o].ctx,t)}a[o].one?(a.splice(o,1),i--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var t=arguments,r=t.length;r>4&&(t=n.call(t,1,t.length-1));for(var a=t[t.length-1],i=this._$handlers[e],o=i.length,s=0;s<o;){switch(r){case 1:i[s].h.call(a);break;case 2:i[s].h.call(a,t[1]);break;case 3:i[s].h.call(a,t[1],t[2]);break;default:i[s].h.apply(a,t)}i[s].one?(i.splice(s,1),o--):s++}}return this}},e.exports=r},function(e,t,n){"use strict";function r(e){return e>s||e<-s}var a=n(246),i=n(245),o=a.identity,s=5e-5,l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return r(this.rotation)||r(this.position[0])||r(this.position[1])||r(this.scale[0]-1)||r(this.scale[1]-1)},u.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),r=this.transform;return n||t?(r=r||a.create(),n?this.getLocalTransform(r):o(r),t&&(n?a.mul(r,e.transform,r):a.copy(r,e.transform)),this.transform=r,this.invTransform=this.invTransform||a.create(),void a.invert(this.invTransform,r)):void(r&&o(r))},u.getLocalTransform=function(e){return l.getLocalTransform(this,e)},u.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var c=[];u.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(a.mul(c,e.invTransform,t),t=c);var n=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],o=this.position,s=this.scale;r(n-1)&&(n=Math.sqrt(n)),r(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(n=-n),t[3]<0&&(i=-i),o[0]=t[4],o[1]=t[5],s[0]=n,s[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/n)}},u.getGlobalScale=function(){var e=this.transform;if(!e)return[1,1];var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]),n=Math.sqrt(e[2]*e[2]+e[3]*e[3]);return e[0]<0&&(t=-t),e[3]<0&&(n=-n),[t,n]},u.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},u.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},l.getLocalTransform=function(e,t){t=t||[],o(t);var n=e.origin,r=e.scale||[1,1],i=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),a.scale(t,t,r),i&&a.rotate(t,t,i),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t},e.exports=l},function(e,t,n){"use strict";var r=n(271),a=n(239),i=a.isString,o=a.isFunction,s=a.isObject,l=n(276),u=function(){this.animators=[]};u.prototype={constructor:u,animate:function(e,t){var n,i=!1,o=this,s=this.__zr;if(e){var u=e.split("."),c=o;i="shape"===u[0];for(var h=0,d=u.length;h<d;h++)c&&(c=c[u[h]]);c&&(n=c)}else n=o;if(!n)return void l('Property "'+e+'" is not existed in element '+o.id);var p=o.animators,f=new r(n,t);return f.during(function(e){o.dirty(i)}).done(function(){p.splice(a.indexOf(p,f),1)}),p.push(f),s&&s.animation.addAnimator(f),f},stopAnimation:function(e){for(var t=this.animators,n=t.length,r=0;r<n;r++)t[r].stop(e);return t.length=0,this},animateTo:function(e,t,n,r,a){function s(){u--,u||a&&a()}i(n)?(a=r,r=n,n=0):o(r)?(a=r,r="linear",n=0):o(n)?(a=n,n=0):o(t)?(a=t,t=500):t||(t=500),this.stopAnimation(),this._animateToShallow("",this,e,t,n,r,a);var l=this.animators.slice(),u=l.length;u||a&&a();for(var c=0;c<l.length;c++)l[c].done(s).start(r)},_animateToShallow:function(e,t,n,r,i){var o={},l=0;for(var u in n)if(n.hasOwnProperty(u))if(null!=t[u])s(n[u])&&!a.isArrayLike(n[u])?this._animateToShallow(e?e+"."+u:u,t[u],n[u],r,i):(o[u]=n[u],l++);else if(null!=n[u])if(e){var c={};c[e]={},c[e][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(e,!1).when(null==r?500:r,o).delay(i||0),this}},e.exports=u},function(e,t,n){function r(e,t){return e[t]}function a(e,t,n){e[t]=n}function i(e,t,n){return(t-e)*n+e}function o(e,t,n){return n>.5?t:e}function s(e,t,n,r,a){var o=e.length;if(1==a)for(var s=0;s<o;s++)r[s]=i(e[s],t[s],n);else for(var l=e[0].length,s=0;s<o;s++)for(var u=0;u<l;u++)r[s][u]=i(e[s][u],t[s][u],n);
|
|
37
|
-
}function l(e,t,n){var r=e.length,a=t.length;if(r!==a){var i=r>a;if(i)e.length=a;else for(var o=r;o<a;o++)e.push(1===n?t[o]:x.call(t[o]))}for(var s=e[0]&&e[0].length,o=0;o<e.length;o++)if(1===n)isNaN(e[o])&&(e[o]=t[o]);else for(var l=0;l<s;l++)isNaN(e[o][l])&&(e[o][l]=t[o][l])}function u(e,t,n){if(e===t)return!0;var r=e.length;if(r!==t.length)return!1;if(1===n){for(var a=0;a<r;a++)if(e[a]!==t[a])return!1}else for(var i=e[0].length,a=0;a<r;a++)for(var o=0;o<i;o++)if(e[a][o]!==t[a][o])return!1;return!0}function c(e,t,n,r,a,i,o,s,l){var u=e.length;if(1==l)for(var c=0;c<u;c++)s[c]=h(e[c],t[c],n[c],r[c],a,i,o);else for(var d=e[0].length,c=0;c<u;c++)for(var p=0;p<d;p++)s[c][p]=h(e[c][p],t[c][p],n[c][p],r[c][p],a,i,o)}function h(e,t,n,r,a,i,o){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*i+s*a+t}function d(e){if(y(e)){var t=e.length;if(y(e[0])){for(var n=[],r=0;r<t;r++)n.push(x.call(e[r]));return n}return x.call(e)}return e}function p(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function f(e,t,n,r,a){var d=e._getter,f=e._setter,v="spline"===t,x=r.length;if(x){var _,b=r[0].value,w=y(b),S=!1,M=!1,C=w&&y(b[0])?2:1;r.sort(function(e,t){return e.time-t.time}),_=r[x-1].time;for(var T=[],A=[],I=r[0].value,E=!0,P=0;P<x;P++){T.push(r[P].time/_);var L=r[P].value;if(w&&u(L,I,C)||!w&&L===I||(E=!1),I=L,"string"==typeof L){var D=m.parse(L);D?(L=D,S=!0):M=!0}A.push(L)}if(!E){for(var k=A[x-1],P=0;P<x-1;P++)w?l(A[P],k,C):!isNaN(A[P])||isNaN(k)||M||S||(A[P]=k);w&&l(d(e._target,a),k,C);var O,R,N,V,z,B,F=0,G=0;if(S)var H=[0,0,0,0];var W=function(e,t){var n;if(t<0)n=0;else if(t<G){for(O=Math.min(F+1,x-1),n=O;n>=0&&!(T[n]<=t);n--);n=Math.min(n,x-2)}else{for(n=F;n<x&&!(T[n]>t);n++);n=Math.min(n-1,x-2)}F=n,G=t;var r=T[n+1]-T[n];if(0!==r)if(R=(t-T[n])/r,v)if(V=A[n],N=A[0===n?n:n-1],z=A[n>x-2?x-1:n+1],B=A[n>x-3?x-1:n+2],w)c(N,V,z,B,R,R*R,R*R*R,d(e,a),C);else{var l;if(S)l=c(N,V,z,B,R,R*R,R*R*R,H,1),l=p(H);else{if(M)return o(V,z,R);l=h(N,V,z,B,R,R*R,R*R*R)}f(e,a,l)}else if(w)s(A[n],A[n+1],R,d(e,a),C);else{var l;if(S)s(A[n],A[n+1],R,H,1),l=p(H);else{if(M)return o(A[n],A[n+1],R);l=i(A[n],A[n+1],R)}f(e,a,l)}},j=new g({target:e._target,life:_,loop:e._loop,delay:e._delay,onframe:W,ondestroy:n});return t&&"spline"!==t&&(j.easing=t),j}}}var g=n(272),m=n(274),v=n(239),y=v.isArrayLike,x=Array.prototype.slice,_=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||r,this._setter=i||a,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(e,t){var n=this._tracks;for(var r in t)if(t.hasOwnProperty(r)){if(!n[r]){n[r]=[];var a=this._getter(this._target,r);if(null==a)continue;0!==e&&n[r].push({time:0,value:d(a)})}n[r].push({time:e,value:t[r]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e){var t,n=this,r=0,a=function(){r--,r||n._doneCallback()};for(var i in this._tracks)if(this._tracks.hasOwnProperty(i)){var o=f(this,e,a,this._tracks[i],i);o&&(this._clipList.push(o),r++,this.animation&&this.animation.addClip(o),t=o)}if(t){var s=t.onframe;t.onframe=function(e,t){s(e,t);for(var r=0;r<n._onframeList.length;r++)n._onframeList[r](e,t)}}return r||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,r=0;r<t.length;r++){var a=t[r];e&&a.onframe(this._target,1),n&&n.removeClip(a)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}},e.exports=_},function(e,t,n){function r(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}var a=n(273);r.prototype={constructor:r,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=t);var n=(e-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var r=this.easing,i="string"==typeof r?a[r]:r,o="function"==typeof i?i(n):n;return this.fire("frame",o),1==n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},e.exports=r},function(e,t){var n={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-n.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*n.bounceIn(2*e):.5*n.bounceOut(2*e-1)+.5}};e.exports=n},function(e,t,n){function r(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function i(e){return e<0?0:e>1?1:e}function o(e){return r(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function s(e){return i(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function l(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function u(e,t,n){return e+(t-e)*n}function c(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function d(e,t){T&&h(T,t),T=C.put(e,T||t.slice())}function p(e,t){if(e){t=t||[];var n=C.get(e);if(n)return h(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in M)return h(t,M[r]),d(e,t),t;if("#"!==r.charAt(0)){var a=r.indexOf("("),i=r.indexOf(")");if(a!==-1&&i+1===r.length){var l=r.substr(0,a),u=r.substr(a+1,i-(a+1)).split(","),p=1;switch(l){case"rgba":if(4!==u.length)return void c(t,0,0,0,1);p=s(u.pop());case"rgb":return 3!==u.length?void c(t,0,0,0,1):(c(t,o(u[0]),o(u[1]),o(u[2]),p),d(e,t),t);case"hsla":return 4!==u.length?void c(t,0,0,0,1):(u[3]=s(u[3]),f(u,t),d(e,t),t);case"hsl":return 3!==u.length?void c(t,0,0,0,1):(f(u,t),d(e,t),t);default:return}}c(t,0,0,0,1)}else{if(4===r.length){var g=parseInt(r.substr(1),16);return g>=0&&g<=4095?(c(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(e,t),t):void c(t,0,0,0,1)}if(7===r.length){var g=parseInt(r.substr(1),16);return g>=0&&g<=16777215?(c(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(e,t),t):void c(t,0,0,0,1)}}}}function f(e,t){var n=(parseFloat(e[0])%360+360)%360/360,a=s(e[1]),i=s(e[2]),o=i<=.5?i*(a+1):i+a-i*a,u=2*i-o;return t=t||[],c(t,r(255*l(u,o,n+1/3)),r(255*l(u,o,n)),r(255*l(u,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function g(e){if(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(r,a,i),s=Math.max(r,a,i),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,h=((s-a)/6+l/2)/l,d=((s-i)/6+l/2)/l;r===s?t=d-h:a===s?t=1/3+c-d:i===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,u];return null!=e[3]&&p.push(e[3]),p}}function m(e,t){var n=p(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0;return w(n,4===n.length?"rgba":"rgb")}}function v(e,t){var n=p(e);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function y(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var a=e*(t.length-1),o=Math.floor(a),s=Math.ceil(a),l=t[o],c=t[s],h=a-o;return n[0]=r(u(l[0],c[0],h)),n[1]=r(u(l[1],c[1],h)),n[2]=r(u(l[2],c[2],h)),n[3]=i(u(l[3],c[3],h)),n}}function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){var a=e*(t.length-1),o=Math.floor(a),s=Math.ceil(a),l=p(t[o]),c=p(t[s]),h=a-o,d=w([r(u(l[0],c[0],h)),r(u(l[1],c[1],h)),r(u(l[2],c[2],h)),i(u(l[3],c[3],h))],"rgba");return n?{color:d,leftIndex:o,rightIndex:s,value:a}:d}}function _(e,t,n,r){if(e=p(e))return e=g(e),null!=t&&(e[0]=a(t)),null!=n&&(e[1]=s(n)),null!=r&&(e[2]=s(r)),w(f(e),"rgba")}function b(e,t){if(e=p(e),e&&null!=t)return e[3]=i(t),w(e,"rgba")}function w(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}var S=n(275),M={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]},C=new S(20),T=null;e.exports={parse:p,lift:m,toHex:v,fastMapToColor:y,mapToColor:x,modifyHSL:_,modifyAlpha:b,stringify:w}},function(e,t){var n=function(){this.head=null,this.tail=null,this._len=0},r=n.prototype;r.insert=function(e){var t=new a(e);return this.insertEntry(t),t},r.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.len=function(){return this._len},r.clear=function(){this.head=this.tail=null,this._len=0};var a=function(e){this.value=e,this.next,this.prev},i=function(e){this._list=new n,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},o=i.prototype;o.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new a(t),s.key=e,n.insertEntry(s),r[e]=s}return i},o.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},o.clear=function(){this._list.clear(),this._map={}},e.exports=i},function(e,t,n){var r=n(277);e.exports=function(){if(0!==r.debugMode)if(1==r.debugMode)for(var e in arguments)throw new Error(arguments[e]);else if(r.debugMode>1)for(var e in arguments)console.log(arguments[e])}},function(e,t){var n=1;"undefined"!=typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var r={debugMode:0,devicePixelRatio:n};e.exports=r},function(e,t,n){function r(){this.group=new o,this.uid=s.getUID("viewChart")}function a(e,t){if(e&&(e.trigger(t),"group"===e.type))for(var n=0;n<e.childCount();n++)a(e.childAt(n),t)}function i(e,t,n){var r=u.queryDataIndex(e,t);null!=r?c.each(u.normalizeToArray(r),function(t){a(e.getItemGraphicEl(t),n)}):e.eachItemGraphicEl(function(e){a(e,n)})}var o=n(265),s=n(255),l=n(248),u=n(240),c=n(239);r.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,r){},highlight:function(e,t,n,r){i(e.getData(),r,"emphasis")},downplay:function(e,t,n,r){i(e.getData(),r,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){}};var h=r.prototype;h.updateView=h.updateLayout=h.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},l.enableClassExtend(r,["dispose"]),l.enableClassManagement(r,{registerWhenExtend:!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return null!=e&&"none"!=e}function a(e){return"string"==typeof e?_.lift(e,-.1):e}function i(e){if(e.__hoverStlDirty){var t=e.style.stroke,n=e.style.fill,i=e.__hoverStl;i.fill=i.fill||(r(n)?a(n):null),i.stroke=i.stroke||(r(t)?a(t):null);var o={};for(var s in i)i.hasOwnProperty(s)&&(o[s]=e.style[s]);e.__normalStl=o,e.__hoverStlDirty=!1}}function o(e){e.__isHover||(i(e),e.useHoverLayer?e.__zr&&e.__zr.addHover(e,e.__hoverStl):(e.setStyle(e.__hoverStl),e.z2+=1),e.__isHover=!0)}function s(e){if(e.__isHover){var t=e.__normalStl;e.useHoverLayer?e.__zr&&e.__zr.removeHover(e):(t&&e.setStyle(t),e.z2-=1),e.__isHover=!1}}function l(e){"group"===e.type?e.traverse(function(e){"group"!==e.type&&o(e)}):o(e)}function u(e){"group"===e.type?e.traverse(function(e){"group"!==e.type&&s(e)}):s(e)}function c(e,t){e.__hoverStl=e.hoverStyle||t||{},e.__hoverStlDirty=!0,e.__isHover&&i(e)}function h(e){this.__hoverSilentOnTouch&&e.zrByTouch||!this.__isEmphasis&&l(this)}function d(e){this.__hoverSilentOnTouch&&e.zrByTouch||!this.__isEmphasis&&u(this)}function p(){this.__isEmphasis=!0,l(this)}function f(){this.__isEmphasis=!1,u(this)}function g(e,t,n,r,a,i){"function"==typeof a&&(i=a,a=null);var o=r&&r.isAnimationEnabled();if(o){var s=e?"Update":"",l=r.getShallow("animationDuration"+s),u=r.getShallow("animationEasing"+s),c=r.getShallow("animationDelay"+s);"function"==typeof c&&(c=c(a,r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null)),"function"==typeof l&&(l=l(a)),l>0?t.animateTo(n,l,c||0,u,i):(t.stopAnimation(),t.attr(n),i&&i())}else t.stopAnimation(),t.attr(n),i&&i()}var m=n(239),v=n(280),y=Math.round,x=n(281),_=n(274),b=n(246),w=n(245),S=n(269),M=n(244),C={};C.Group=n(265),C.Image=n(297),C.Text=n(298),C.Circle=n(299),C.Sector=n(300),C.Ring=n(301),C.Polygon=n(302),C.Polyline=n(306),C.Rect=n(307),C.Line=n(309),C.BezierCurve=n(310),C.Arc=n(311),C.CompoundPath=n(312),C.LinearGradient=n(313),C.RadialGradient=n(315),C.BoundingRect=M,C.extendShape=function(e){return x.extend(e)},C.extendPath=function(e,t){return v.extendFromString(e,t)},C.makePath=function(e,t,n,r){var a=v.createFromString(e,t),i=a.getBoundingRect();if(n){var o=i.width/i.height;if("center"===r){var s,l=n.height*o;l<=n.width?s=n.height:(l=n.width,s=l/o);var u=n.x+n.width/2,c=n.y+n.height/2;n.x=u-l/2,n.y=c-s/2,n.width=l,n.height=s}C.resizePath(a,n)}return a},C.mergePath=v.mergePath,C.resizePath=function(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}},C.subPixelOptimizeLine=function(e){var t=C.subPixelOptimize,n=e.shape,r=e.style.lineWidth;return y(2*n.x1)===y(2*n.x2)&&(n.x1=n.x2=t(n.x1,r,!0)),y(2*n.y1)===y(2*n.y2)&&(n.y1=n.y2=t(n.y1,r,!0)),e},C.subPixelOptimizeRect=function(e){var t=C.subPixelOptimize,n=e.shape,r=e.style.lineWidth,a=n.x,i=n.y,o=n.width,s=n.height;return n.x=t(n.x,r,!0),n.y=t(n.y,r,!0),n.width=Math.max(t(a+o,r,!1)-n.x,0===o?0:1),n.height=Math.max(t(i+s,r,!1)-n.y,0===s?0:1),e},C.subPixelOptimize=function(e,t,n){var r=y(2*e);return(r+y(t))%2===0?r/2:(r+(n?1:-1))/2},C.setHoverStyle=function(e,t,n){e.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===e.type?e.traverse(function(e){"group"!==e.type&&c(e,t)}):c(e,t),e.on("mouseover",h).on("mouseout",d),e.on("emphasis",p).on("normal",f)},C.setText=function(e,t,n){var r=t.getShallow("position")||"inside",a=t.getShallow("offset"),i=r.indexOf("inside")>=0?"white":n,o=t.getModel("textStyle");m.extend(e,{textDistance:t.getShallow("distance")||5,textFont:o.getFont(),textPosition:r,textOffset:a,textFill:o.getTextColor()||i})},C.updateProps=function(e,t,n,r,a){g(!0,e,t,n,r,a)},C.initProps=function(e,t,n,r,a){g(!1,e,t,n,r,a)},C.getTransform=function(e,t){for(var n=b.identity([]);e&&e!==t;)b.mul(n,e.getLocalTransform(),n),e=e.parent;return n},C.applyTransform=function(e,t,n){return t&&!m.isArrayLike(t)&&(t=S.getLocalTransform(t)),n&&(t=b.invert([],t)),w.applyTransform([],e,t)},C.transformDirection=function(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),a=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),i=["left"===e?-r:"right"===e?r:0,"top"===e?-a:"bottom"===e?a:0];return i=C.applyTransform(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"},C.groupTransition=function(e,t,n,r){function a(e){var t={};return e.traverse(function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={position:w.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=m.extend({},e.shape)),t}if(e&&t){var o=a(e);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=o[e.anid];if(t){var r=i(e);e.attr(i(t)),C.updateProps(e,r,n,e.dataIndex)}}})}},e.exports=C},function(e,t,n){function r(e,t,n,r,a,i,o,s,l,u,f){var v=l*(p/180),y=d(v)*(e-n)/2+h(v)*(t-r)/2,x=-1*h(v)*(e-n)/2+d(v)*(t-r)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=c(_),s*=c(_));var b=(a===i?-1:1)*c((o*o*(s*s)-o*o*(x*x)-s*s*(y*y))/(o*o*(x*x)+s*s*(y*y)))||0,w=b*o*x/s,S=b*-s*y/o,M=(e+n)/2+d(v)*w-h(v)*S,C=(t+r)/2+h(v)*w+d(v)*S,T=m([1,0],[(y-w)/o,(x-S)/s]),A=[(y-w)/o,(x-S)/s],I=[(-1*y-w)/o,(-1*x-S)/s],E=m(A,I);g(A,I)<=-1&&(E=p),g(A,I)>=1&&(E=0),0===i&&E>0&&(E-=2*p),1===i&&E<0&&(E+=2*p),f.addData(u,M,C,o,s,T,E,v,i)}function a(e){if(!e)return[];var t,n=e.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(t=0;t<u.length;t++)n=n.replace(new RegExp(u[t],"g"),"|"+u[t]);var a,i=n.split("|"),o=0,l=0,c=new s,h=s.CMD;for(t=1;t<i.length;t++){var d,p=i[t],f=p.charAt(0),g=0,m=p.slice(1).replace(/e,-/g,"e-").split(",");m.length>0&&""===m[0]&&m.shift();for(var v=0;v<m.length;v++)m[v]=parseFloat(m[v]);for(;g<m.length&&!isNaN(m[g])&&!isNaN(m[0]);){var y,x,_,b,w,S,M,C=o,T=l;switch(f){case"l":o+=m[g++],l+=m[g++],d=h.L,c.addData(d,o,l);break;case"L":o=m[g++],l=m[g++],d=h.L,c.addData(d,o,l);break;case"m":o+=m[g++],l+=m[g++],d=h.M,c.addData(d,o,l),f="l";break;case"M":o=m[g++],l=m[g++],d=h.M,c.addData(d,o,l),f="L";break;case"h":o+=m[g++],d=h.L,c.addData(d,o,l);break;case"H":o=m[g++],d=h.L,c.addData(d,o,l);break;case"v":l+=m[g++],d=h.L,c.addData(d,o,l);break;case"V":l=m[g++],d=h.L,c.addData(d,o,l);break;case"C":d=h.C,c.addData(d,m[g++],m[g++],m[g++],m[g++],m[g++],m[g++]),o=m[g-2],l=m[g-1];break;case"c":d=h.C,c.addData(d,m[g++]+o,m[g++]+l,m[g++]+o,m[g++]+l,m[g++]+o,m[g++]+l),o+=m[g-2],l+=m[g-1];break;case"S":y=o,x=l;var A=c.len(),I=c.data;a===h.C&&(y+=o-I[A-4],x+=l-I[A-3]),d=h.C,C=m[g++],T=m[g++],o=m[g++],l=m[g++],c.addData(d,y,x,C,T,o,l);break;case"s":y=o,x=l;var A=c.len(),I=c.data;a===h.C&&(y+=o-I[A-4],x+=l-I[A-3]),d=h.C,C=o+m[g++],T=l+m[g++],o+=m[g++],l+=m[g++],c.addData(d,y,x,C,T,o,l);break;case"Q":C=m[g++],T=m[g++],o=m[g++],l=m[g++],d=h.Q,c.addData(d,C,T,o,l);break;case"q":C=m[g++]+o,T=m[g++]+l,o+=m[g++],l+=m[g++],d=h.Q,c.addData(d,C,T,o,l);break;case"T":y=o,x=l;var A=c.len(),I=c.data;a===h.Q&&(y+=o-I[A-4],x+=l-I[A-3]),o=m[g++],l=m[g++],d=h.Q,c.addData(d,y,x,o,l);break;case"t":y=o,x=l;var A=c.len(),I=c.data;a===h.Q&&(y+=o-I[A-4],x+=l-I[A-3]),o+=m[g++],l+=m[g++],d=h.Q,c.addData(d,y,x,o,l);break;case"A":_=m[g++],b=m[g++],w=m[g++],S=m[g++],M=m[g++],C=o,T=l,o=m[g++],l=m[g++],d=h.A,r(C,T,o,l,S,M,_,b,w,d,c);break;case"a":_=m[g++],b=m[g++],w=m[g++],S=m[g++],M=m[g++],C=o,T=l,o+=m[g++],l+=m[g++],d=h.A,r(C,T,o,l,S,M,_,b,w,d,c)}}"z"!==f&&"Z"!==f||(d=h.Z,c.addData(d)),a=d}return c.toStatic(),c}function i(e,t){var n=a(e);return t=t||{},t.buildPath=function(e){if(e.setData){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t)}else{var t=e;n.rebuildPath(t)}},t.applyTransform=function(e){l(n,e),this.dirty(!0)},t}var o=n(281),s=n(285),l=n(296),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,d=Math.cos,p=Math.PI,f=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},g=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(f(e)*f(t))},m=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(g(e,t))};e.exports={createFromString:function(e,t){return new o(i(e,t))},extendFromString:function(e,t){return o.extend(i(e,t))},mergePath:function(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var i=e[a];i.path||i.createPathProxy(),i.__dirtyPath&&i.buildPath(i.path,i.shape,!0),n.push(i.path)}var s=new o(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},s}}},function(e,t,n){function r(e){a.call(this,e),this.path=null}var a=n(282),i=n(239),o=n(285),s=n(288),l=n(295),u=l.prototype.getCanvasPattern,c=Math.abs,h=new o(!0);r.prototype={constructor:r,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(e,t){var n=this.style,r=this.path||h,a=n.hasStroke(),i=n.hasFill(),o=n.fill,s=n.stroke,l=i&&!!o.colorStops,c=a&&!!s.colorStops,d=i&&!!o.image,p=a&&!!s.image;if(n.bind(e,this,t),this.setTransform(e),this.__dirty){var f;l&&(f=f||this.getBoundingRect(),this._fillGradient=n.getGradient(e,o,f)),c&&(f=f||this.getBoundingRect(),this._strokeGradient=n.getGradient(e,s,f))}l?e.fillStyle=this._fillGradient:d&&(e.fillStyle=u.call(o,e)),c?e.strokeStyle=this._strokeGradient:p&&(e.strokeStyle=u.call(s,e));var g=n.lineDash,m=n.lineDashOffset,v=!!e.setLineDash,y=this.getGlobalScale();r.setScale(y[0],y[1]),this.__dirtyPath||g&&!v&&a?(r.beginPath(e),g&&!v&&(r.setLineDash(g),r.setLineDashOffset(m)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),i&&r.fill(e),g&&v&&(e.setLineDash(g),e.lineDashOffset=m),a&&r.stroke(e),g&&v&&e.setLineDash([]),this.restoreTransform(e),null!=n.text&&this.drawRectText(e,this.getBoundingRect())},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new o},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var r=this.path;r||(r=this.path=new o),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),e=r.getBoundingRect()}if(this._rect=e,t.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){a.copy(e);var i=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(i=Math.max(i,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=i/s,a.height+=i/s,a.x-=i/s/2,a.y-=i/s/2)}return a}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),a=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var i=this.path.data;if(a.hasStroke()){var o=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(i,o/l,e,t)))return!0}if(a.hasFill())return s.contain(i,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):a.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(i.isObject(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1}},r.extend=function(e){var t=function(t){r.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var n=e.shape;if(n){this.shape=this.shape||{};var a=this.shape;for(var i in n)!a.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(a[i]=n[i])}e.init&&e.init.call(this,t)};i.inherits(t,r);for(var n in e)"style"!==n&&"shape"!==n&&(t.prototype[n]=e[n]);return t},i.inherits(r,a),e.exports=r},function(e,t,n){function r(e){e=e||{},o.call(this,e);for(var t in e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new i(e.style),this._rect=null,this.__clipPaths=[]}var a=n(239),i=n(283),o=n(266),s=n(284);r.prototype={constructor:r,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return r.contain(n[0],n[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?o.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new i(e),this.dirty(!1),this}},a.inherits(r,o),a.mixin(r,s),e.exports=r},function(e,t){function n(e,t,n){var r=null==t.x?0:t.x,a=null==t.x2?1:t.x2,i=null==t.y?0:t.y,o=null==t.y2?0:t.y2;t.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y);var s=e.createLinearGradient(r,i,a,o);return s}function r(e,t,n){var r=n.width,a=n.height,i=Math.min(r,a),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(o=o*r+n.x,s=s*a+n.y,l*=i);var u=e.createRadialGradient(o,s,0,o,s,l);return u}var a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],i=function(e){this.extendFrom(e)};i.prototype={constructor:i,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textOffset:null,textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(e,t,n){for(var r=this,i=n&&n.style,o=!i,s=0;s<a.length;s++){var l=a[s],u=l[0];(o||r[u]!==i[u])&&(e[u]=r[u]||l[1])}if((o||r.fill!==i.fill)&&(e.fillStyle=r.fill),(o||r.stroke!==i.stroke)&&(e.strokeStyle=r.stroke),(o||r.opacity!==i.opacity)&&(e.globalAlpha=null==r.opacity?1:r.opacity),(o||r.blend!==i.blend)&&(e.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var c=r.lineWidth;e.lineWidth=c/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e){var n=this;for(var r in e)!e.hasOwnProperty(r)||!t&&n.hasOwnProperty(r)||(n[r]=e[r])}},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,a){for(var i="radial"===t.type?r:n,o=i(e,t,a),s=t.colorStops,l=0;l<s.length;l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var o=i.prototype,s=0;s<a.length;s++){var l=a[s];l[0]in o||(o[l[0]]=l[1])}i.getGradient=o.getGradient,e.exports=i},function(e,t,n){function r(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}var a=n(243),i=n(244),o=new i,s=function(){};s.prototype={constructor:s,drawRectText:function(e,t,n){var i=this.style,s=i.text;if(null!=s&&(s+=""),s){e.save();var l,u,c=i.textPosition,h=i.textOffset,d=i.textDistance,p=i.textAlign,f=i.textFont||i.font,g=i.textBaseline,m=i.textVerticalAlign;n=n||a.getBoundingRect(s,f,p,g);var v=this.transform;if(i.textTransform?this.setTransform(e):v&&(o.copy(t),
|
|
38
|
-
o.applyTransform(v),t=o),c instanceof Array){if(l=t.x+r(c[0],t.width),u=t.y+r(c[1],t.height),p=p||"left",g=g||"top",m){switch(m){case"middle":u-=n.height/2-n.lineHeight/2;break;case"bottom":u-=n.height-n.lineHeight/2;break;default:u+=n.lineHeight/2}g="middle"}}else{var y=a.adjustTextPositionOnRect(c,t,n,d);l=y.x,u=y.y,p=p||y.textAlign,g=g||y.textBaseline}h&&(l+=h[0],u+=h[1]),e.textAlign=p||"left",e.textBaseline=g||"alphabetic";var x=i.textFill,_=i.textStroke;x&&(e.fillStyle=x),_&&(e.strokeStyle=_),e.font=f||"12px sans-serif",e.shadowBlur=i.textShadowBlur,e.shadowColor=i.textShadowColor||"transparent",e.shadowOffsetX=i.textShadowOffsetX,e.shadowOffsetY=i.textShadowOffsetY;var b=s.split("\n");i.textRotation&&(v&&e.translate(v[4],v[5]),e.rotate(i.textRotation),v&&e.translate(-v[4],-v[5]));for(var w=0;w<b.length;w++)_&&e.strokeText(b[w],l,u),x&&e.fillText(b[w],l,u),u+=n.lineHeight;e.restore()}}},e.exports=s},function(e,t,n){"use strict";var r=n(286),a=n(245),i=n(287),o=n(244),s=n(277).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],p=Math.min,f=Math.max,g=Math.cos,m=Math.sin,v=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,_=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t){this._ux=y(1/s/e)||0,this._uy=y(1/s/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=y(e-this._xi)>this._ux||y(t-this._yi)>this._uy||this._len<5;return this.addData(l.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,r,a,i){return this.addData(l.C,e,t,n,r,a,i),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,r,a,i):this._ctx.bezierCurveTo(e,t,n,r,a,i)),this._xi=a,this._yi=i,this},quadraticCurveTo:function(e,t,n,r){return this.addData(l.Q,e,t,n,r),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},arc:function(e,t,n,r,a,i){return this.addData(l.A,e,t,n,n,r,a-r,0,i?0:1),this._ctx&&this._ctx.arc(e,t,n,r,a,i),this._xi=g(a)*n+e,this._yi=m(a)*n+e,this},arcTo:function(e,t,n,r,a){return this._ctx&&this._ctx.arcTo(e,t,n,r,a),this},rect:function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},closePath:function(){this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length==t||!x||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,a=0;a<t;a++)n+=e[a].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var a=0;a<t;a++)for(var i=e[a].data,o=0;o<i.length;o++)this.data[r++]=i[o];this._len=r},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,r,a=this._dashSum,i=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=e-l,h=t-u,d=v(c*c+h*h),g=l,m=u,y=o.length;for(c/=d,h/=d,i<0&&(i=a+i),i%=a,g-=i*c,m-=i*h;c>0&&g<=e||c<0&&g>=e||0==c&&(h>0&&m<=t||h<0&&m>=t);)r=this._dashIdx,n=o[r],g+=c*n,m+=h*n,this._dashIdx=(r+1)%y,c>0&&g<l||c<0&&g>l||h>0&&m<u||h<0&&m>u||s[r%2?"moveTo":"lineTo"](c>=0?p(g,e):f(g,e),h>=0?p(m,t):f(m,t));c=g-e,h=m-t,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(e,t,n,a,i,o){var s,l,u,c,h,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,y=this._yi,x=r.cubicAt,_=0,b=this._dashIdx,w=f.length,S=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=x(m,e,n,i,s+.1)-x(m,e,n,i,s),u=x(y,t,a,o,s+.1)-x(y,t,a,o,s),_+=v(l*l+u*u);for(;b<w&&(S+=f[b],!(S>p));b++);for(s=(S-p)/_;s<=1;)c=x(m,e,n,i,s),h=x(y,t,a,o,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=f[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(i,o),l=i-c,u=o-h,this._dashOffset=-v(l*l+u*u)},_dashedQuadraticTo:function(e,t,n,r){var a=n,i=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,a,i)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,x&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,s=0,p=0;p<e.length;){var f=e[p++];switch(1==p&&(t=e[p],n=e[p+1],r=t,s=n),f){case l.M:r=e[p++],s=e[p++],t=r,n=s,h[0]=r,h[1]=s,d[0]=r,d[1]=s;break;case l.L:i.fromLine(t,n,e[p],e[p+1],h,d),t=e[p++],n=e[p++];break;case l.C:i.fromCubic(t,n,e[p++],e[p++],e[p++],e[p++],e[p],e[p+1],h,d),t=e[p++],n=e[p++];break;case l.Q:i.fromQuadratic(t,n,e[p++],e[p++],e[p],e[p+1],h,d),t=e[p++],n=e[p++];break;case l.A:var v=e[p++],y=e[p++],x=e[p++],_=e[p++],b=e[p++],w=e[p++]+b,S=(e[p++],1-e[p++]);1==p&&(r=g(b)*x+v,s=m(b)*_+y),i.fromArc(v,y,x,_,b,w,S,h,d),t=g(w)*x+v,n=m(w)*_+y;break;case l.R:r=t=e[p++],s=n=e[p++];var M=e[p++],C=e[p++];i.fromLine(r,s,r+M,s+C,h,d);break;case l.Z:t=r,n=s}a.min(u,u,h),a.max(c,c,d)}return 0===p&&(u[0]=u[1]=c[0]=c[1]=0),new o(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(e){for(var t,n,r,a,i,o,s=this.data,u=this._ux,c=this._uy,h=this._len,d=0;d<h;){var p=s[d++];switch(1==d&&(r=s[d],a=s[d+1],t=r,n=a),p){case l.M:t=r=s[d++],n=a=s[d++],e.moveTo(r,a);break;case l.L:i=s[d++],o=s[d++],(y(i-r)>u||y(o-a)>c||d===h-1)&&(e.lineTo(i,o),r=i,a=o);break;case l.C:e.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),r=s[d-2],a=s[d-1];break;case l.Q:e.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),r=s[d-2],a=s[d-1];break;case l.A:var f=s[d++],v=s[d++],x=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],C=x>_?x:_,T=x>_?1:x/_,A=x>_?_/x:1,I=Math.abs(x-_)>.001,E=b+w;I?(e.translate(f,v),e.rotate(S),e.scale(T,A),e.arc(0,0,C,b,E,1-M),e.scale(1/T,1/A),e.rotate(-S),e.translate(-f,-v)):e.arc(f,v,C,b,E,1-M),1==d&&(t=g(b)*x+f,n=m(b)*_+v),r=g(E)*x+f,a=m(E)*_+v;break;case l.R:t=r=s[d],n=a=s[d+1],e.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:e.closePath(),r=t,a=n}}}},_.CMD=l,e.exports=_},function(e,t,n){"use strict";function r(e){return e>-w&&e<w}function a(e){return e>w||e<-w}function i(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function o(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function s(e,t,n,a,i,o){var s=a+3*(t-n)-e,l=3*(n-2*t+e),u=3*(t-e),c=e-i,h=l*l-3*s*u,d=l*u-9*s*c,p=u*u-3*l*c,f=0;if(r(h)&&r(d))if(r(l))o[0]=0;else{var g=-u/l;g>=0&&g<=1&&(o[f++]=g)}else{var m=d*d-4*h*p;if(r(m)){var v=d/h,g=-l/s+v,y=-v/2;g>=0&&g<=1&&(o[f++]=g),y>=0&&y<=1&&(o[f++]=y)}else if(m>0){var x=b(m),w=h*l+1.5*s*(-d+x),S=h*l+1.5*s*(-d-x);w=w<0?-_(-w,C):_(w,C),S=S<0?-_(-S,C):_(S,C);var g=(-l-(w+S))/(3*s);g>=0&&g<=1&&(o[f++]=g)}else{var T=(2*h*l-3*s*d)/(2*b(h*h*h)),A=Math.acos(T)/3,I=b(h),E=Math.cos(A),g=(-l-2*I*E)/(3*s),y=(-l+I*(E+M*Math.sin(A)))/(3*s),P=(-l+I*(E-M*Math.sin(A)))/(3*s);g>=0&&g<=1&&(o[f++]=g),y>=0&&y<=1&&(o[f++]=y),P>=0&&P<=1&&(o[f++]=P)}}return f}function l(e,t,n,i,o){var s=6*n-12*t+6*e,l=9*t+3*i-3*e-9*n,u=3*t-3*e,c=0;if(r(l)){if(a(s)){var h=-u/s;h>=0&&h<=1&&(o[c++]=h)}}else{var d=s*s-4*l*u;if(r(d))o[0]=-s/(2*l);else if(d>0){var p=b(d),h=(-s+p)/(2*l),f=(-s-p)/(2*l);h>=0&&h<=1&&(o[c++]=h),f>=0&&f<=1&&(o[c++]=f)}}return c}function u(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,h=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=c,i[6]=l,i[7]=r}function c(e,t,n,r,a,o,s,l,u,c,h){var d,p,f,g,m,v=.005,y=1/0;T[0]=u,T[1]=c;for(var _=0;_<1;_+=.05)A[0]=i(e,n,a,s,_),A[1]=i(t,r,o,l,_),g=x(T,A),g<y&&(d=_,y=g);y=1/0;for(var w=0;w<32&&!(v<S);w++)p=d-v,f=d+v,A[0]=i(e,n,a,s,p),A[1]=i(t,r,o,l,p),g=x(A,T),p>=0&&g<y?(d=p,y=g):(I[0]=i(e,n,a,s,f),I[1]=i(t,r,o,l,f),m=x(I,T),f<=1&&m<y?(d=f,y=m):v*=.5);return h&&(h[0]=i(e,n,a,s,d),h[1]=i(t,r,o,l,d)),b(y)}function h(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function d(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function p(e,t,n,i,o){var s=e-2*t+n,l=2*(t-e),u=e-i,c=0;if(r(s)){if(a(l)){var h=-u/l;h>=0&&h<=1&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(r(d)){var h=-l/(2*s);h>=0&&h<=1&&(o[c++]=h)}else if(d>0){var p=b(d),h=(-l+p)/(2*s),f=(-l-p)/(2*s);h>=0&&h<=1&&(o[c++]=h),f>=0&&f<=1&&(o[c++]=f)}}return c}function f(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function g(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function m(e,t,n,r,a,i,o,s,l){var u,c=.005,d=1/0;T[0]=o,T[1]=s;for(var p=0;p<1;p+=.05){A[0]=h(e,n,a,p),A[1]=h(t,r,i,p);var f=x(T,A);f<d&&(u=p,d=f)}d=1/0;for(var g=0;g<32&&!(c<S);g++){var m=u-c,v=u+c;A[0]=h(e,n,a,m),A[1]=h(t,r,i,m);var f=x(A,T);if(m>=0&&f<d)u=m,d=f;else{I[0]=h(e,n,a,v),I[1]=h(t,r,i,v);var y=x(I,T);v<=1&&y<d?(u=v,d=y):c*=.5}}return l&&(l[0]=h(e,n,a,u),l[1]=h(t,r,i,u)),b(d)}var v=n(245),y=v.create,x=v.distSquare,_=Math.pow,b=Math.sqrt,w=1e-8,S=1e-4,M=b(3),C=1/3,T=y(),A=y(),I=y();e.exports={cubicAt:i,cubicDerivativeAt:o,cubicRootAt:s,cubicExtrema:l,cubicSubdivide:u,cubicProjectPoint:c,quadraticAt:h,quadraticDerivativeAt:d,quadraticRootAt:p,quadraticExtremum:f,quadraticSubdivide:g,quadraticProjectPoint:m}},function(e,t,n){var r=n(245),a=n(286),i={},o=Math.min,s=Math.max,l=Math.sin,u=Math.cos,c=r.create(),h=r.create(),d=r.create(),p=2*Math.PI;i.fromPoints=function(e,t,n){if(0!==e.length){var r,a=e[0],i=a[0],l=a[0],u=a[1],c=a[1];for(r=1;r<e.length;r++)a=e[r],i=o(i,a[0]),l=s(l,a[0]),u=o(u,a[1]),c=s(c,a[1]);t[0]=i,t[1]=u,n[0]=l,n[1]=c}},i.fromLine=function(e,t,n,r,a,i){a[0]=o(e,n),a[1]=o(t,r),i[0]=s(e,n),i[1]=s(t,r)};var f=[],g=[];i.fromCubic=function(e,t,n,r,i,l,u,c,h,d){var p,m=a.cubicExtrema,v=a.cubicAt,y=m(e,n,i,u,f);for(h[0]=1/0,h[1]=1/0,d[0]=-(1/0),d[1]=-(1/0),p=0;p<y;p++){var x=v(e,n,i,u,f[p]);h[0]=o(x,h[0]),d[0]=s(x,d[0])}for(y=m(t,r,l,c,g),p=0;p<y;p++){var _=v(t,r,l,c,g[p]);h[1]=o(_,h[1]),d[1]=s(_,d[1])}h[0]=o(e,h[0]),d[0]=s(e,d[0]),h[0]=o(u,h[0]),d[0]=s(u,d[0]),h[1]=o(t,h[1]),d[1]=s(t,d[1]),h[1]=o(c,h[1]),d[1]=s(c,d[1])},i.fromQuadratic=function(e,t,n,r,i,l,u,c){var h=a.quadraticExtremum,d=a.quadraticAt,p=s(o(h(e,n,i),1),0),f=s(o(h(t,r,l),1),0),g=d(e,n,i,p),m=d(t,r,l,f);u[0]=o(e,i,g),u[1]=o(t,l,m),c[0]=s(e,i,g),c[1]=s(t,l,m)},i.fromArc=function(e,t,n,a,i,o,s,f,g){var m=r.min,v=r.max,y=Math.abs(i-o);if(y%p<1e-4&&y>1e-4)return f[0]=e-n,f[1]=t-a,g[0]=e+n,void(g[1]=t+a);if(c[0]=u(i)*n+e,c[1]=l(i)*a+t,h[0]=u(o)*n+e,h[1]=l(o)*a+t,m(f,c,h),v(g,c,h),i%=p,i<0&&(i+=p),o%=p,o<0&&(o+=p),i>o&&!s?o+=p:i<o&&s&&(i+=p),s){var x=o;o=i,i=x}for(var _=0;_<o;_+=Math.PI/2)_>i&&(d[0]=u(_)*n+e,d[1]=l(_)*a+t,m(f,d,f),v(g,d,g))},e.exports=i},function(e,t,n){"use strict";function r(e,t){return Math.abs(e-t)<x}function a(){var e=b[0];b[0]=b[1],b[1]=e}function i(e,t,n,r,i,o,s,l,u,c){if(c>t&&c>r&&c>o&&c>l||c<t&&c<r&&c<o&&c<l)return 0;var h=g.cubicRootAt(t,r,o,l,c,_);if(0===h)return 0;for(var d,p,f=0,m=-1,v=0;v<h;v++){var y=_[v],x=0===y||1===y?.5:1,w=g.cubicAt(e,n,i,s,y);w<u||(m<0&&(m=g.cubicExtrema(t,r,o,l,b),b[1]<b[0]&&m>1&&a(),d=g.cubicAt(t,r,o,l,b[0]),m>1&&(p=g.cubicAt(t,r,o,l,b[1]))),f+=2==m?y<b[0]?d<t?x:-x:y<b[1]?p<d?x:-x:l<p?x:-x:y<b[0]?d<t?x:-x:l<d?x:-x)}return f}function o(e,t,n,r,a,i,o,s){if(s>t&&s>r&&s>i||s<t&&s<r&&s<i)return 0;var l=g.quadraticRootAt(t,r,i,s,_);if(0===l)return 0;var u=g.quadraticExtremum(t,r,i);if(u>=0&&u<=1){for(var c=0,h=g.quadraticAt(t,r,i,u),d=0;d<l;d++){var p=0===_[d]||1===_[d]?.5:1,f=g.quadraticAt(e,n,a,_[d]);f<o||(c+=_[d]<u?h<t?p:-p:i<h?p:-p)}return c}var p=0===_[0]||1===_[0]?.5:1,f=g.quadraticAt(e,n,a,_[0]);return f<o?0:i<t?p:-p}function s(e,t,n,r,a,i,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);_[0]=-l,_[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u%y<1e-4){r=0,a=y;var c=i?1:-1;return o>=_[0]+e&&o<=_[1]+e?c:0}if(i){var l=r;r=f(a),a=f(l)}else r=f(r),a=f(a);r>a&&(a+=y);for(var h=0,d=0;d<2;d++){var p=_[d];if(p+e>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=y+g),(g>=r&&g<=a||g+y>=r&&g+y<=a)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function l(e,t,n,a,l){for(var c=0,f=0,g=0,y=0,x=0,_=0;_<e.length;){var b=e[_++];switch(b===u.M&&_>1&&(n||(c+=m(f,g,y,x,a,l))),1==_&&(f=e[_],g=e[_+1],y=f,x=g),b){case u.M:y=e[_++],x=e[_++],f=y,g=x;break;case u.L:if(n){if(v(f,g,e[_],e[_+1],t,a,l))return!0}else c+=m(f,g,e[_],e[_+1],a,l)||0;f=e[_++],g=e[_++];break;case u.C:if(n){if(h.containStroke(f,g,e[_++],e[_++],e[_++],e[_++],e[_],e[_+1],t,a,l))return!0}else c+=i(f,g,e[_++],e[_++],e[_++],e[_++],e[_],e[_+1],a,l)||0;f=e[_++],g=e[_++];break;case u.Q:if(n){if(d.containStroke(f,g,e[_++],e[_++],e[_],e[_+1],t,a,l))return!0}else c+=o(f,g,e[_++],e[_++],e[_],e[_+1],a,l)||0;f=e[_++],g=e[_++];break;case u.A:var w=e[_++],S=e[_++],M=e[_++],C=e[_++],T=e[_++],A=e[_++],I=(e[_++],1-e[_++]),E=Math.cos(T)*M+w,P=Math.sin(T)*C+S;_>1?c+=m(f,g,E,P,a,l):(y=E,x=P);var L=(a-w)*C/M+w;if(n){if(p.containStroke(w,S,C,T,T+A,I,t,L,l))return!0}else c+=s(w,S,C,T,T+A,I,L,l);f=Math.cos(T+A)*M+w,g=Math.sin(T+A)*C+S;break;case u.R:y=f=e[_++],x=g=e[_++];var D=e[_++],k=e[_++],E=y+D,P=x+k;if(n){if(v(y,x,E,x,t,a,l)||v(E,x,E,P,t,a,l)||v(E,P,y,P,t,a,l)||v(y,P,y,x,t,a,l))return!0}else c+=m(E,x,E,P,a,l),c+=m(y,P,y,x,a,l);break;case u.Z:if(n){if(v(f,g,y,x,t,a,l))return!0}else c+=m(f,g,y,x,a,l);f=y,g=x}}return n||r(g,x)||(c+=m(f,g,y,x,a,l)||0),0!==c}var u=n(285).CMD,c=n(289),h=n(290),d=n(291),p=n(292),f=n(293).normalizeRadian,g=n(286),m=n(294),v=c.containStroke,y=2*Math.PI,x=1e-4,_=[-1,-1,-1],b=[-1,-1];e.exports={contain:function(e,t,n){return l(e,0,!1,t,n)},containStroke:function(e,t,n,r){return l(e,t,!0,n,r)}}},function(e,t){e.exports={containStroke:function(e,t,n,r,a,i,o){if(0===a)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||i>e+s&&i>n+s||i<e-s&&i<n-s)return!1;if(e===n)return Math.abs(i-e)<=s/2;l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);var c=l*i-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}}},function(e,t,n){var r=n(286);e.exports={containStroke:function(e,t,n,a,i,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>t+d&&h>a+d&&h>o+d&&h>l+d||h<t-d&&h<a-d&&h<o-d&&h<l-d||c>e+d&&c>n+d&&c>i+d&&c>s+d||c<e-d&&c<n-d&&c<i-d&&c<s-d)return!1;var p=r.cubicProjectPoint(e,t,n,a,i,o,s,l,c,h,null);return p<=d/2}}},function(e,t,n){var r=n(286);e.exports={containStroke:function(e,t,n,a,i,o,s,l,u){if(0===s)return!1;var c=s;if(u>t+c&&u>a+c&&u>o+c||u<t-c&&u<a-c&&u<o-c||l>e+c&&l>n+c&&l>i+c||l<e-c&&l<n-c&&l<i-c)return!1;var h=r.quadraticProjectPoint(e,t,n,a,i,o,l,u,null);return h<=c/2}}},function(e,t,n){var r=n(293).normalizeRadian,a=2*Math.PI;e.exports={containStroke:function(e,t,n,i,o,s,l,u,c){if(0===l)return!1;var h=l;u-=e,c-=t;var d=Math.sqrt(u*u+c*c);if(d-h>n||d+h<n)return!1;if(Math.abs(i-o)%a<1e-4)return!0;if(s){var p=i;i=r(o),o=r(p)}else i=r(i),o=r(o);i>o&&(o+=a);var f=Math.atan2(c,u);return f<0&&(f+=a),f>=i&&f<=o||f+a>=i&&f+a<=o}}},function(e,t){var n=2*Math.PI;e.exports={normalizeRadian:function(e){return e%=n,e<0&&(e+=n),e}}},function(e,t){e.exports=function(e,t,n,r,a,i){if(i>t&&i>r||i<t&&i<r)return 0;if(r===t)return 0;var o=r<t?1:-1,s=(i-t)/(r-t);1!==s&&0!==s||(o=r<t?.5:-.5);var l=s*(n-e)+e;return l>a?o:0}},function(e,t){var n=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};n.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")},e.exports=n},function(e,t,n){function r(e,t){var n,r,i,c,h,d,p=e.data,f=a.M,g=a.C,m=a.L,v=a.R,y=a.A,x=a.Q;for(i=0,c=0;i<p.length;){switch(n=p[i++],c=i,r=0,n){case f:r=1;break;case m:r=1;break;case g:r=3;break;case x:r=2;break;case y:var _=t[4],b=t[5],w=l(t[0]*t[0]+t[1]*t[1]),S=l(t[2]*t[2]+t[3]*t[3]),M=u(-t[1]/S,t[0]/w);p[i]*=w,p[i++]+=_,p[i]*=S,p[i++]+=b,p[i++]*=w,p[i++]*=S,p[i++]+=M,p[i++]+=M,i+=2,c=i;break;case v:d[0]=p[i++],d[1]=p[i++],o(d,d,t),p[c++]=d[0],p[c++]=d[1],d[0]+=p[i++],d[1]+=p[i++],o(d,d,t),p[c++]=d[0],p[c++]=d[1]}for(h=0;h<r;h++){var d=s[h];d[0]=p[i++],d[1]=p[i++],o(d,d,t),p[c++]=d[0],p[c++]=d[1]}}}var a=n(285).CMD,i=n(245),o=i.applyTransform,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;e.exports=r},function(e,t,n){function r(e){a.call(this,e)}var a=n(282),i=n(244),o=n(239),s=n(275),l=new s(50);r.prototype={constructor:r,type:"image",brush:function(e,t){var n,r=this.style,a=r.image;if(r.bind(e,this,t),n="string"==typeof a?this._image:a,!n&&a){var i=l.get(a);if(!i)return n=new Image,n.onload=function(){n.onload=null;for(var e=0;e<i.pending.length;e++)i.pending[e].dirty()},i={image:n,pending:[this]},n.src=a,l.put(a,i),void(this._image=n);if(n=i.image,this._image=n,!n.width||!n.height)return void i.pending.push(this)}if(n){var o=r.x||0,s=r.y||0;if(!n.width||!n.height)return;var u=r.width,c=r.height,h=n.width/n.height;if(null==u&&null!=c?u=c*h:null==c&&null!=u?c=u/h:null==u&&null==c&&(u=n.width,c=n.height),this.setTransform(e),r.sWidth&&r.sHeight){var d=r.sx||0,p=r.sy||0;e.drawImage(n,d,p,r.sWidth,r.sHeight,o,s,u,c)}else if(r.sx&&r.sy){var d=r.sx,p=r.sy,f=u-d,g=c-p;e.drawImage(n,d,p,f,g,o,s,u,c)}else e.drawImage(n,o,s,u,c);this.restoreTransform(e),null!=r.text&&this.drawRectText(e,this.getBoundingRect())}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new i(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(r,a),e.exports=r},function(e,t,n){var r=n(282),a=n(239),i=n(243),o=function(e){r.call(this,e)};o.prototype={constructor:o,type:"text",brush:function(e,t){var n=this.style,r=n.x||0,a=n.y||0,o=n.text;if(null!=o&&(o+=""),n.bind(e,this,t),o){this.setTransform(e);var s,l=n.textAlign,u=n.textFont||n.font;if(n.textVerticalAlign){var c=i.getBoundingRect(o,u,n.textAlign,"top");switch(s="middle",n.textVerticalAlign){case"middle":a-=c.height/2-c.lineHeight/2;break;case"bottom":a-=c.height-c.lineHeight/2;break;default:a+=c.lineHeight/2}}else s=n.textBaseline;e.font=u||"12px sans-serif",e.textAlign=l||"left",e.textAlign!==l&&(e.textAlign="left"),e.textBaseline=s||"alphabetic",e.textBaseline!==s&&(e.textBaseline="alphabetic");for(var h=i.measureText("国",e.font).width,d=o.split("\n"),p=0;p<d.length;p++)n.hasStroke()&&e.strokeText(d[p],r,a),n.hasFill()&&e.fillText(d[p],r,a),a+=h;this.restoreTransform(e)}},getBoundingRect:function(){var e=this.style;if(!this._rect){var t=e.textVerticalAlign,n=i.getBoundingRect(e.text+"",e.textFont||e.font,e.textAlign,t?"top":e.textBaseline);switch(t){case"middle":n.y-=n.height/2;break;case"bottom":n.y-=n.height}if(n.x+=e.x||0,n.y+=e.y||0,e.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect}},a.inherits(o,r),e.exports=o},function(e,t,n){"use strict";e.exports=n(281).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}})},function(e,t,n){var r=n(237),a=n(281),i=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];e.exports=a.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r.browser.ie&&r.browser.version>=11?function(){var e,t=this.__clipPaths,n=this.style;if(t)for(var r=0;r<t.length;r++){var o=t[r]&&t[r].shape;if(o&&o.startAngle===o.endAngle){for(var s=0;s<i.length;s++)i[s][2]=n[i[s][0]],n[i[s][0]]=i[s][1];e=!0;break}}if(a.prototype.brush.apply(this,arguments),e)for(var s=0;s<i.length;s++)n[i[s][0]]=i[s][2]}:a.prototype.brush,buildPath:function(e,t){var n=t.cx,r=t.cy,a=Math.max(t.r0||0,0),i=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,l=t.clockwise,u=Math.cos(o),c=Math.sin(o);e.moveTo(u*a+n,c*a+r),e.lineTo(u*i+n,c*i+r),e.arc(n,r,i,o,s,!l),e.lineTo(Math.cos(s)*a+n,Math.sin(s)*a+r),0!==a&&e.arc(n,r,a,s,o,l),e.closePath()}})},function(e,t,n){e.exports=n(281).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,a,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,a,!0)}})},function(e,t,n){var r=n(303);e.exports=n(281).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){r.buildPath(e,t,!0)}})},function(e,t,n){var r=n(304),a=n(305);e.exports={buildPath:function(e,t,n){var i=t.points,o=t.smooth;if(i&&i.length>=2){if(o&&"spline"!==o){var s=a(i,o,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var l=i.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=i[(u+1)%l];e.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(i=r(i,n)),e.moveTo(i[0][0],i[0][1]);for(var u=1,p=i.length;u<p;u++)e.lineTo(i[u][0],i[u][1])}n&&e.closePath()}}}},function(e,t,n){function r(e,t,n,r,a,i,o){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*i+s*a+t}var a=n(245);e.exports=function(e,t){for(var n=e.length,i=[],o=0,s=1;s<n;s++)o+=a.distance(e[s-1],e[s]);var l=o/2;l=l<n?n:l;for(var s=0;s<l;s++){var u,c,h,d=s/(l-1)*(t?n:n-1),p=Math.floor(d),f=d-p,g=e[p%n];t?(u=e[(p-1+n)%n],c=e[(p+1)%n],h=e[(p+2)%n]):(u=e[0===p?p:p-1],c=e[p>n-2?n-1:p+1],h=e[p>n-3?n-1:p+2]);var m=f*f,v=f*m;i.push([r(u[0],g[0],c[0],h[0],f,m,v),r(u[1],g[1],c[1],h[1],f,m,v)])}return i}},function(e,t,n){var r=n(245),a=r.min,i=r.max,o=r.scale,s=r.distance,l=r.add;e.exports=function(e,t,n,u){var c,h,d,p,f=[],g=[],m=[],v=[];if(u){d=[1/0,1/0],p=[-(1/0),-(1/0)];for(var y=0,x=e.length;y<x;y++)a(d,d,e[y]),i(p,p,e[y]);a(d,d,u[0]),i(p,p,u[1])}for(var y=0,x=e.length;y<x;y++){var _=e[y];if(n)c=e[y?y-1:x-1],h=e[(y+1)%x];else{if(0===y||y===x-1){f.push(r.clone(e[y]));continue}c=e[y-1],h=e[y+1]}r.sub(g,h,c),o(g,g,t);var b=s(_,c),w=s(_,h),S=b+w;0!==S&&(b/=S,w/=S),o(m,g,-b),o(v,g,w);var M=l([],_,m),C=l([],_,v);u&&(i(M,M,d),a(M,M,p),i(C,C,d),a(C,C,p)),f.push(M),f.push(C)}return n&&f.push(f.shift()),f}},function(e,t,n){var r=n(303);e.exports=n(281).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){r.buildPath(e,t,!1)}})},function(e,t,n){var r=n(308);e.exports=n(281).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,a=t.y,i=t.width,o=t.height;t.r?r.buildPath(e,t):e.rect(n,a,i,o),e.closePath()}})},function(e,t){e.exports={buildPath:function(e,t){var n,r,a,i,o=t.x,s=t.y,l=t.width,u=t.height,c=t.r;l<0&&(o+=l,l=-l),u<0&&(s+=u,u=-u),"number"==typeof c?n=r=a=i=c:c instanceof Array?1===c.length?n=r=a=i=c[0]:2===c.length?(n=a=c[0],r=i=c[1]):3===c.length?(n=c[0],r=i=c[1],a=c[2]):(n=c[0],r=c[1],a=c[2],i=c[3]):n=r=a=i=0;var h;n+r>l&&(h=n+r,n*=l/h,r*=l/h),a+i>l&&(h=a+i,a*=l/h,i*=l/h),r+a>u&&(h=r+a,r*=u/h,a*=u/h),n+i>u&&(h=n+i,n*=u/h,i*=u/h),e.moveTo(o+n,s),e.lineTo(o+l-r,s),0!==r&&e.quadraticCurveTo(o+l,s,o+l,s+r),e.lineTo(o+l,s+u-a),0!==a&&e.quadraticCurveTo(o+l,s+u,o+l-a,s+u),e.lineTo(o+i,s+u),0!==i&&e.quadraticCurveTo(o,s+u,o,s+u-i),e.lineTo(o,s+n),0!==n&&e.quadraticCurveTo(o,s,o+n,s)}}},function(e,t,n){e.exports=n(281).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2,o=t.percent;0!==o&&(e.moveTo(n,r),o<1&&(a=n*(1-o)+a*o,i=r*(1-o)+i*o),e.lineTo(a,i))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}})},function(e,t,n){"use strict";function r(e,t,n){var r=e.cpx2,a=e.cpy2;return null===r||null===a?[(n?h:u)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?h:u)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?c:l)(e.x1,e.cpx1,e.x2,t),(n?c:l)(e.y1,e.cpy1,e.y2,t)]}var a=n(286),i=n(245),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,u=a.cubicAt,c=a.quadraticDerivativeAt,h=a.cubicDerivativeAt,d=[];e.exports=n(281).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,h=t.cpy2,p=t.percent;0!==p&&(e.moveTo(n,r),null==c||null==h?(p<1&&(o(n,l,a,p,d),l=d[1],a=d[2],o(r,u,i,p,d),u=d[1],i=d[2]),e.quadraticCurveTo(l,u,a,i)):(p<1&&(s(n,l,c,a,p,d),l=d[1],c=d[2],a=d[3],s(r,u,h,i,p,d),u=d[1],h=d[2],i=d[3]),e.bezierCurveTo(l,u,c,h,a,i)))},pointAt:function(e){return r(this.shape,e,!1)},tangentAt:function(e){var t=r(this.shape,e,!0);return i.normalize(t,t)}})},function(e,t,n){e.exports=n(281).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,r=t.cy,a=Math.max(t.r,0),i=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(i),u=Math.sin(i);e.moveTo(l*a+n,u*a+r),e.arc(n,r,a,i,o,!s)}})},function(e,t,n){var r=n(281);e.exports=r.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1])},buildPath:function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},afterBrush:function(){for(var e=this.shape.paths,t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),r.prototype.getBoundingRect.call(this)}})},function(e,t,n){"use strict";var r=n(239),a=n(314),i=function(e,t,n,r,i,o){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,a.call(this,i)};i.prototype={constructor:i},r.inherits(i,a),e.exports=i},function(e,t){var n=function(e){this.colorStops=e||[]};n.prototype={constructor:n,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}},e.exports=n},function(e,t,n){"use strict";var r=n(239),a=n(314),i=function(e,t,n,r,i){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=i||!1,a.call(this,r)};i.prototype={constructor:i},r.inherits(i,a),e.exports=i},function(e,t){var n={},r="\0__throttleOriginMethod",a="\0__throttleRate",i="\0__throttleType";n.throttle=function(e,t,n){function r(){c=(new Date).getTime(),h=null,e.apply(o,s||[])}var a,i,o,s,l,u=0,c=0,h=null;t=t||0;var d=function(){a=(new Date).getTime(),o=this,s=arguments;var e=l||t,d=l||n;l=null,i=a-(d?u:c)-e,clearTimeout(h),d?h=setTimeout(r,e):i>=0?r():h=setTimeout(r,-i),u=a};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(e){l=e},d},n.createOrUpdate=function(e,t,o,s){var l=e[t];if(l){var u=l[r]||l,c=l[i],h=l[a];if(h!==o||c!==s){if(null==o||!s)return e[t]=u;l=e[t]=n.throttle(u,o,"debounce"===s),l[r]=u,l[i]=s,l[a]=o}return l}},n.clear=function(e,t){var n=e[t];n&&n[r]&&(e[t]=n[r])},e.exports=n},function(e,t,n){function r(e){delete p[e]}/*!
|
|
39
|
-
* ZRender, a high performance 2d drawing library.
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) 2013, Baidu Inc.
|
|
42
|
-
* All rights reserved.
|
|
43
|
-
*
|
|
44
|
-
* LICENSE
|
|
45
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
46
|
-
*/
|
|
47
|
-
var a=n(267),i=n(237),o=n(239),s=n(318),l=n(320),u=n(322),c=n(325),h=!i.canvasSupported,d={canvas:n(327)},p={},f={};f.version="3.4.4",f.init=function(e,t){var n=new g(a(),e,t);return p[n.id]=n,n},f.dispose=function(e){if(e)e.dispose();else{for(var t in p)p.hasOwnProperty(t)&&p[t].dispose();p={}}return f},f.getInstance=function(e){return p[e]},f.registerPainter=function(e,t){d[e]=t};var g=function(e,t,n){n=n||{},this.dom=t,this.id=e;var r=this,a=new l,p=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");p="vml"}else p&&d[p]||(p="canvas");var f=new d[p](t,a,n);this.storage=a,this.painter=f;var g=i.node?null:new c(f.getViewportRoot());this.handler=new s(a,f,g,f.root),this.animation=new u({stage:{update:o.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=a.delFromStorage,v=a.addToStorage;a.delFromStorage=function(e){m.call(a,e),e&&e.removeSelfFromZr(r)},a.addToStorage=function(e){v.call(a,e),e.addSelfToZr(r)}};g.prototype={constructor:g,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer(e,t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(e,t){this.painter.addHover&&(this.painter.addHover(e,t),this.refreshHover())},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,r(this.id)}},e.exports=f},function(e,t,n){"use strict";function r(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch}}function a(){}function i(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r,a=e;a;){if(a.clipPath&&!a.clipPath.contain(t,n))return!1;a.silent&&(r=!0),a=a.parent}return!r||u}return!1}var o=n(239),s=n(319),l=n(268),u="silent";a.prototype.dispose=function(){};var c=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(e,t,n,r){l.call(this),this.storage=e,this.painter=t,this.painterRoot=r,n=n||new a,this.proxy=n,n.handler=this,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,s.call(this),o.each(c,function(e){n.on&&n.on(e,this[e],this)},this)};h.prototype={constructor:h,mousemove:function(e){var t=e.zrX,n=e.zrY,r=this._hovered,a=this._hovered=this.findHover(t,n),i=a.target,o=r.target,s=this.proxy;s.setCursor&&s.setCursor(i?i.cursor:"default"),o&&i!==o&&o.__zr&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),i&&i!==o&&this.dispatchToElement(a,"mouseover",e)},mouseout:function(e){this.dispatchToElement(this._hovered,"mouseout",e);var t,n=e.toElement||e.relatedTarget;do n=n&&n.parentNode;while(n&&9!=n.nodeType&&!(t=n===this.painterRoot));!t&&this.trigger("globalout",{event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){e=e||{};for(var a="on"+t,i=r(t,e,n),o=e.target;o&&(o[a]&&(i.cancelBubble=o[a].call(o,i)),o.trigger(t,i),o=o.parent,!i.cancelBubble););i.cancelBubble||(this.trigger(t,i),this.painter&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,i),e.trigger&&e.trigger(t,i)}))},findHover:function(e,t,n){for(var r=this.storage.getDisplayList(),a={},o=r.length-1;o>=0;o--){var s;if(r[o]!==n&&!r[o].ignore&&(s=i(r[o],e,t))&&(!a.topTarget&&(a.topTarget=r[o]),s!==u)){a.target=r[o];break}}return a}},o.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){h.prototype[e]=function(t){var n=this.findHover(t.zrX,t.zrY),r=n.target;if("mousedown"===e)this._downel=r,this._upel=r;else if("mosueup"===e)this._upel=r;else if("click"===e&&this._downel!==this._upel)return;this.dispatchToElement(n,e,t)}}),o.mixin(h,l),o.mixin(h,s),e.exports=h},function(e,t){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function r(e,t){return{target:e,topTarget:t&&t.topTarget}}n.prototype={constructor:n,_dragStart:function(e){var t=e.target;t&&t.draggable&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(r(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.dispatchToElement(r(t,e),"drag",e.event);var s=this.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(r(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(r(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(r(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(r(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}},e.exports=n},function(e,t,n){"use strict";function r(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var a=n(239),i=n(237),o=n(265),s=n(321),l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,o=t.length;a<o;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,i.canvasSupported&&s(n,r)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var r=e.clipPath;if(r){t=t?t.slice():[];for(var a=r,i=e;a;)a.parent=i,a.updateTransform(),t.push(a),i=a,a=a.clipPath}if(e.isGroup){for(var o=e._children,s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof o&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof o&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array)for(var t=0,r=e.length;t<r;t++)this.delRoot(e[t]);else{var i=a.indexOf(this._roots,e);i>=0&&(this.delFromStorage(e),this._roots.splice(i,1),e instanceof o&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e.__storage=this,e.dirty(!1),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:r},e.exports=l},function(e,t){function n(e){for(var t=0;e>=c;)t|=1&e,e>>=1;return e+t}function r(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;a(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function a(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function i(e,t,n,r,a){for(r===t&&r++;r<n;r++){for(var i,o=e[r],s=t,l=r;s<l;)i=s+l>>>1,a(o,e[i])<0?l=i:s=i+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function o(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l<s&&i(e,t[n+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[n+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function s(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;l<s&&i(e,t[n+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l<s&&i(e,t[n+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function l(e,t){function n(e,t){c[y]=e,p[y]=t,y+=1}function r(){for(;y>1;){var e=y-2;if(e>=1&&p[e-1]<=p[e]+p[e+1]||e>=2&&p[e-2]<=p[e]+p[e-1])p[e-1]<p[e+1]&&e--;else if(p[e]>p[e+1])break;i(e)}}function a(){for(;y>1;){var e=y-2;e>0&&p[e-1]<p[e+1]&&e--,i(e)}}function i(n){var r=c[n],a=p[n],i=c[n+1],h=p[n+1];p[n]=a+h,n===y-3&&(c[n+1]=c[n+2],p[n+1]=p[n+2]),y--;var d=s(e[i],e,r,a,0,t);r+=d,a-=d,0!==a&&(h=o(e[r+a-1],e,i,h,h-1,t),0!==h&&(a<=h?l(r,a,i,h):u(r,a,i,h)))}function l(n,r,a,i){var l=0;for(l=0;l<r;l++)x[l]=e[n+l];var u=0,c=a,d=n;if(e[d++]=e[c++],0!==--i){if(1===r){for(l=0;l<i;l++)e[d+l]=e[c+l];return void(e[d+i]=x[u])}for(var p,g,m,v=f;;){p=0,g=0,m=!1;do if(t(e[c],x[u])<0){if(e[d++]=e[c++],g++,p=0,0===--i){m=!0;break}}else if(e[d++]=x[u++],p++,g=0,1===--r){m=!0;break}while((p|g)<v);if(m)break;do{if(p=s(e[c],x,u,r,0,t),0!==p){for(l=0;l<p;l++)e[d+l]=x[u+l];if(d+=p,u+=p,r-=p,r<=1){m=!0;break}}if(e[d++]=e[c++],0===--i){m=!0;break}if(g=o(x[u],e,c,i,0,t),0!==g){for(l=0;l<g;l++)e[d+l]=e[c+l];if(d+=g,c+=g,i-=g,0===i){m=!0;break}}if(e[d++]=x[u++],1===--r){m=!0;break}v--}while(p>=h||g>=h);if(m)break;v<0&&(v=0),v+=2}if(f=v,f<1&&(f=1),1===r){for(l=0;l<i;l++)e[d+l]=e[c+l];e[d+i]=x[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=x[u+l]}}else for(l=0;l<r;l++)e[d+l]=x[u+l]}function u(n,r,a,i){var l=0;for(l=0;l<i;l++)x[l]=e[a+l];var u=n+r-1,c=i-1,d=a+i-1,p=0,g=0;if(e[d--]=e[u--],0!==--r){if(1===i){for(d-=r,u-=r,g=d+1,p=u+1,l=r-1;l>=0;l--)e[g+l]=e[p+l];return void(e[d]=x[c])}for(var m=f;;){var v=0,y=0,_=!1;do if(t(x[c],e[u])<0){if(e[d--]=e[u--],v++,y=0,0===--r){_=!0;break}}else if(e[d--]=x[c--],y++,v=0,1===--i){_=!0;break}while((v|y)<m);if(_)break;do{if(v=r-s(x[c],e,n,r,r-1,t),0!==v){for(d-=v,u-=v,r-=v,g=d+1,p=u+1,l=v-1;l>=0;l--)e[g+l]=e[p+l];if(0===r){_=!0;break}}if(e[d--]=x[c--],1===--i){_=!0;break}if(y=i-o(e[u],x,0,i,i-1,t),0!==y){for(d-=y,c-=y,i-=y,g=d+1,p=c+1,l=0;l<y;l++)e[g+l]=x[p+l];if(i<=1){_=!0;break}}if(e[d--]=e[u--],0===--r){_=!0;break}m--}while(v>=h||y>=h);if(_)break;m<0&&(m=0),m+=2}if(f=m,f<1&&(f=1),1===i){for(d-=r,u-=r,g=d+1,p=u+1,l=r-1;l>=0;l--)e[g+l]=e[p+l];e[d]=x[c]}else{if(0===i)throw new Error;for(p=d-(i-1),l=0;l<i;l++)e[p+l]=x[l]}}else for(p=d-(i-1),l=0;l<i;l++)e[p+l]=x[l]}var c,p,f=h,g=0,m=d,v=0,y=0;g=e.length,g<2*d&&(m=g>>>1);var x=[];v=g<120?5:g<1542?10:g<119151?19:40,c=[],p=[],this.mergeRuns=r,this.forceMergeRuns=a,this.pushRun=n}function u(e,t,a,o){a||(a=0),o||(o=e.length);var s=o-a;if(!(s<2)){var u=0;if(s<c)return u=r(e,a,o,t),void i(e,a,o,a+u,t);var h=new l(e,t),d=n(s);do{if(u=r(e,a,o,t),u<d){var p=s;p>d&&(p=d),i(e,a,a+p,a+u,t),u=p}h.pushRun(a,u),h.mergeRuns(),s-=u,a+=u}while(0!==s);h.forceMergeRuns()}}var c=32,h=7,d=256;e.exports=u},function(e,t,n){"use strict";var r=n(239),a=n(323).Dispatcher,i=n(324),o=n(271),s=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};s.prototype={constructor:s,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=r.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,r=n.length,a=[],i=[],o=0;o<r;o++){var s=n[o],l=s.step(e,t);l&&(a.push(l),i.push(s))}for(var o=0;o<r;)n[o]._needsRemove?(n[o]=n[r-1],n.pop(),r--):o++;r=a.length;for(var o=0;o<r;o++)i[o].fire(a[o]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){function e(){t._running&&(i(e),!t._paused&&t._update())}var t=this;this._running=!0,i(e)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(e,t){t=t||{};var n=new o(e,t.loop,t.getter,t.setter);return this.addAnimator(n),n}},r.mixin(s,a),e.exports=s},function(e,t,n){"use strict";function r(e){return e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0}}function a(e,t,n,r){return n=n||{},r||!c.canvasSupported?i(e,t,n):c.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):i(e,t,n),n}function i(e,t,n){var a=r(e);n.zrX=t.clientX-a.left,n.zrY=t.clientY-a.top}function o(e,t,n){if(t=t||window.event,null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!=r?t.targetTouches[0]:t.changedTouches[0];o&&a(e,o,t,n)}else a(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;return t}function s(e,t,n){h?e.addEventListener(t,n):e.attachEvent("on"+t,n)}function l(e,t,n){h?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}var u=n(268),c=n(237),h="undefined"!=typeof window&&!!window.addEventListener,d=h?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};e.exports={clientToLocal:a,normalizeEvent:o,addEventListener:s,removeEventListener:l,stop:d,Dispatcher:u}},function(e,t){e.exports="undefined"!=typeof window&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)}},function(e,t,n){function r(e){return"mousewheel"===e&&d.browser.firefox?"DOMMouseScroll":e}function a(e,t,n){var r=e._gestureMgr;"start"===n&&r.clear();var a=r.recognize(t,e.handler.findHover(t.zrX,t.zrY,null).target,e.dom);if("end"===n&&r.clear(),a){var i=a.type;t.gestureEvent=i,e.handler.dispatchToElement({target:a.target},i,a.event)}}function i(e){e._touching=!0,clearTimeout(e._touchTimer),e._touchTimer=setTimeout(function(){e._touching=!1},700)}function o(e){var t=e.pointerType;return"pen"===t||"touch"===t}function s(e){function t(e,t){return function(){if(!t._touching)return e.apply(t,arguments)}}c.each(x,function(t){e._handlers[t]=c.bind(w[t],e)}),c.each(b,function(t){e._handlers[t]=c.bind(w[t],e)}),c.each(y,function(n){e._handlers[n]=t(w[n],e)})}function l(e){function t(t,n){c.each(t,function(t){f(e,r(t),n._handlers[t])},n)}h.call(this),this.dom=e,this._touching=!1,this._touchTimer,this._gestureMgr=new p,this._handlers={},s(this),d.pointerEventsSupported?t(b,this):(d.touchEventsSupported&&t(x,this),t(y,this))}var u=n(323),c=n(239),h=n(268),d=n(237),p=n(326),f=u.addEventListener,g=u.removeEventListener,m=u.normalizeEvent,v=300,y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=["touchstart","touchend","touchmove"],_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=c.map(y,function(e){var t=e.replace("mouse","pointer");return _[t]?t:e}),w={mousemove:function(e){e=m(this.dom,e),this.trigger("mousemove",e)},mouseout:function(e){e=m(this.dom,e);var t=e.toElement||e.relatedTarget;if(t!=this.dom)for(;t&&9!=t.nodeType;){if(t===this.dom)return;t=t.parentNode}this.trigger("mouseout",e)},touchstart:function(e){e=m(this.dom,e),e.zrByTouch=!0,this._lastTouchMoment=new Date,a(this,e,"start"),w.mousemove.call(this,e),w.mousedown.call(this,e),i(this)},touchmove:function(e){e=m(this.dom,e),e.zrByTouch=!0,a(this,e,"change"),w.mousemove.call(this,e),i(this)},touchend:function(e){e=m(this.dom,e),e.zrByTouch=!0,a(this,e,"end"),w.mouseup.call(this,e),+new Date-this._lastTouchMoment<v&&w.click.call(this,e),i(this)},pointerdown:function(e){w.mousedown.call(this,e)},pointermove:function(e){o(e)||w.mousemove.call(this,e)},pointerup:function(e){w.mouseup.call(this,e)},pointerout:function(e){o(e)||w.mouseout.call(this,e)}};c.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){w[e]=function(t){t=m(this.dom,t),this.trigger(e,t)}});var S=l.prototype;S.dispose=function(){for(var e=y.concat(x),t=0;t<e.length;t++){var n=e[t];g(this.dom,r(n),this._handlers[n])}},S.setCursor=function(e){this.dom.style.cursor=e||"default"},c.mixin(l,h),e.exports=l},function(e,t,n){"use strict";function r(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function a(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var i=n(323),o=function(){this._track=[]};o.prototype={constructor:o,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var r=e.touches;if(r){for(var a={points:[],touches:[],target:t,event:e},o=0,s=r.length;o<s;o++){var l=r[o],u=i.clientToLocal(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(e){for(var t in s)if(s.hasOwnProperty(t)){var n=s[t](this._track,e);if(n)return n}}};var s={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var s=r(i)/r(o);!isFinite(s)&&(s=1),t.pinchScale=s;var l=a(i);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}};e.exports=o},function(e,t,n){"use strict";function r(e){return parseInt(e,10)}function a(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}function i(e){e.__unusedCount++}function o(e){1==e.__unusedCount&&e.clear()}function s(e,t,n){return x.copy(e.getBoundingRect()),e.transform&&x.applyTransform(e.transform),_.width=t,_.height=n,!x.intersect(_)}function l(e,t){if(e==t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0}function u(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.setTransform(t),t.beginPath(),r.buildPath(t,r.shape),t.clip(),r.restoreTransform(t)}}function c(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","overflow:hidden","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var h=n(277),d=n(239),p=n(276),f=n(244),g=n(321),m=n(328),v=n(324),y=5,x=new f(0,0,0,0),_=new f(0,0,0,0),b=function(e,t,n){var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=d.extend({},n||{}),this.dpr=n.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=r,this.root=e;var a=e.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var i=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},r){null!=n.width&&(e.width=n.width),null!=n.height&&(e.height=n.height);var s=e.width,l=e.height;this._width=s,this._height=l;var u=new m(e,this,1);u.initContext(),o[0]=u,i.push(0),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=c(this._width,this._height);e.appendChild(p)}this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};b.prototype={constructor:b,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._paintList(t,e);for(var r=0;r<n.length;r++){var a=n[r],i=this._layers[a];!i.__builtin__&&i.refresh&&i.refresh()}return this.refreshHover(),this._progressiveLayers.length&&this._startProgessive(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape});n.__from=e,e.__hoverMir=n,n.setStyle(t),this._hoverElements.push(n)}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,r=d.indexOf(n,t);r>=0&&n.splice(r,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var r=t[n].__from;r&&(r.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){g(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(1e5));var r={};n.ctx.save();for(var a=0;a<t;){var i=e[a],o=i.__from;o&&o.__zr?(a++,o.invisible||(i.transform=o.transform,i.invTransform=o.invTransform,i.__clipPaths=o.__clipPaths,this._doPaintEl(i,n,!0,r))):(e.splice(a,1),o.__hoverMir=null,t--)}n.ctx.restore()}},_startProgessive:function(){function e(){n===t._progressiveToken&&t.storage&&(t._doPaintList(t.storage.getDisplayList()),t._furtherProgressive?(t._progress++,v(e)):t._progressiveToken=-1)}var t=this;if(t._furtherProgressive){var n=t._progressiveToken=+new Date;t._progress++,v(e)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,d.each(this._progressiveLayers,function(e){e.__dirty&&e.clear()})},_paintList:function(e,t){null==t&&(t=!1),this._updateLayerStatus(e),this._clearProgressive(),this.eachBuiltinLayer(i),this._doPaintList(e,t),this.eachBuiltinLayer(o)},_doPaintList:function(e,t){function n(e){var t=i.dpr||1;i.save(),i.globalAlpha=1,i.shadowBlur=0,r.__dirty=!0,i.setTransform(1,0,0,1,0,0),i.drawImage(e.dom,0,0,c*t,h*t),i.restore()}for(var r,a,i,o,s,l,u=0,c=this._width,h=this._height,f=this._progress,g=0,m=e.length;g<m;g++){var v=e[g],x=this._singleCanvas?0:v.zlevel,_=v.__frame;if(_<0&&s&&(n(s),s=null),a!==x&&(i&&i.restore(),o={},a=x,r=this.getLayer(a),r.__builtin__||p("ZLevel "+a+" has been used by unkown layer "+r.id),i=r.ctx,i.save(),r.__unusedCount=0,(r.__dirty||t)&&r.clear()),r.__dirty||t){if(_>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,y-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){g=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(f=l),s.__progress=f+1}_===f&&this._doPaintEl(v,s,!0,s.renderScope)}else this._doPaintEl(v,r,t,o);v.__dirty=!1}}s&&n(s),i&&i.restore(),this._furtherProgressive=!1,d.each(this._progressiveLayers,function(e){e.__maxProgress>=e.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(e,t,n,r){var a=t.ctx,i=e.transform;if((t.__dirty||n)&&!e.invisible&&0!==e.style.opacity&&(!i||i[0]||i[3])&&(!e.culling||!s(e,this._width,this._height))){var o=e.__clipPaths;(r.prevClipLayer!==t||l(o,r.prevElClipPaths))&&(r.prevElClipPaths&&(r.prevClipLayer.ctx.restore(),r.prevClipLayer=r.prevElClipPaths=null,r.prevEl=null),o&&(a.save(),u(o,a),r.prevClipLayer=t,r.prevElClipPaths=o)),e.beforeBrush&&e.beforeBrush(a),e.brush(a,r.prevEl||null),r.prevEl=e,e.afterBrush&&e.afterBrush(a)}},getLayer:function(e){if(this._singleCanvas)return this._layers[0];var t=this._layers[e];return t||(t=new m("zr_"+e,this,this.dpr),t.__builtin__=!0,this._layerConfig[e]&&d.merge(t,this._layerConfig[e],!0),this.insertLayer(e,t),t.initContext()),t},insertLayer:function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=null,s=-1,l=this._domRoot;if(n[e])return void p("ZLevel "+e+" has been used already");if(!a(t))return void p("Layer of zlevel "+e+" is not valid");if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var u=o.dom;u.nextSibling?l.insertBefore(t.dom,u.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)},eachLayer:function(e,t){var n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,r,a,i=this._zlevelList;for(a=0;a<i.length;a++)r=i[a],n=this._layers[r],n.__builtin__&&e.call(t,n,r)},eachOtherLayer:function(e,t){var n,r,a,i=this._zlevelList;for(a=0;a<i.length;a++)r=i[a],n=this._layers[r],n.__builtin__||e.call(t,n,r)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){var t=this._layers,n=this._progressiveLayers,r={},a={};this.eachBuiltinLayer(function(e,t){r[t]=e.elCount,e.elCount=0,e.__dirty=!1}),d.each(n,function(e,t){a[t]=e.elCount,e.elCount=0,e.__dirty=!1});for(var i,o,s=0,l=0,u=0,c=e.length;u<c;u++){var h=e[u],p=this._singleCanvas?0:h.zlevel,f=t[p],g=h.progressive;if(f&&(f.elCount++,f.__dirty=f.__dirty||h.__dirty),g>=0){o!==g&&(o=g,l++);var v=h.__frame=l-1;if(!i){var x=Math.min(s,y-1);i=n[x],i||(i=n[x]=new m("progressive",this,this.dpr),i.initContext()),i.__maxProgress=0}i.__dirty=i.__dirty||h.__dirty,i.elCount++,i.__maxProgress=Math.max(i.__maxProgress,v),i.__maxProgress>=i.__progress&&(f.__dirty=!0)}else h.__frame=-1,i&&(i.__nextIdxNotProg=u,s++,i=null)}i&&(s++,i.__nextIdxNotProg=u),this.eachBuiltinLayer(function(e,t){r[t]!==e.elCount&&(e.__dirty=!0)}),n.length=Math.min(s,y),d.each(n,function(e,t){a[t]!==e.elCount&&(h.__dirty=!0),e.__dirty&&(e.__progress=0)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?d.merge(n[e],t,!0):n[e]=t;var r=this._layers[e];r&&d.merge(r,n[e],!0)}},delLayer:function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(d.indexOf(n,e),1))},resize:function(e,t){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!=e||t!=this._height){n.style.width=e+"px",n.style.height=t+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);d.each(this._progressiveLayers,function(n){n.resize(e,t)}),this.refresh(!0)}return this._width=e,this._height=t,this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas)return this._layers[0].dom;var t=new m("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clearColor=e.backgroundColor,t.clear();for(var n=this.storage.getDisplayList(!0),r={},a=0;a<n.length;a++){var i=n[a];this._doPaintEl(i,t,!0,r)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[a]||r(l[n])||r(s.style[n]))-(r(l[i])||0)-(r(l[o])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var r=document.createElement("canvas"),a=r.getContext("2d"),i=e.getBoundingRect(),o=e.style,s=o.shadowBlur,l=o.shadowOffsetX,u=o.shadowOffsetY,c=o.hasStroke()?o.lineWidth:0,h=Math.max(c/2,-l+s),d=Math.max(c/2,l+s),p=Math.max(c/2,-u+s),f=Math.max(c/2,u+s),g=i.width+h+d,m=i.height+p+f;r.width=g*t,r.height=m*t,a.scale(t,t),a.clearRect(0,0,g,m),a.dpr=t;var v={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[h-i.x,p-i.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(a);var y=n(297),x=new y({style:{x:0,y:0,image:r}});return null!=v.position&&(x.position=e.position=v.position),null!=v.rotation&&(x.rotation=e.rotation=v.rotation),null!=v.scale&&(x.scale=e.scale=v.scale),x}},e.exports=b},function(e,t,n){function r(){return!1}function a(e,t,n,r){var a=document.createElement(t),i=n.getWidth(),o=n.getHeight(),s=a.style;return s.position="absolute",s.left=0,s.top=0,s.width=i+"px",s.height=o+"px",a.width=i*r,a.height=o*r,a.setAttribute("data-zr-dom-id",e),a}var i=n(239),o=n(277),s=n(283),l=n(295),u=function(e,t,n){var s;n=n||o.devicePixelRatio,"string"==typeof e?s=a(e,"canvas",t,n):i.isObject(e)&&(s=e,e=s.id),this.id=e,this.dom=s;var l=s.style;l&&(s.onselectstart=r,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=a("back-"+this.id,"canvas",this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!=e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,r=this.dom,a=r.style,i=this.domBack;a.width=e+"px",a.height=t+"px",r.width=e*n,r.height=t*n,i&&(i.width=e*n,i.height=t*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(e){var t=this.dom,n=this.ctx,r=t.width,a=t.height,i=this.clearColor,o=this.motionBlur&&!e,u=this.lastFrameAlpha,c=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(t,0,0,r/c,a/c)),n.clearRect(0,0,r,a),i){var h;i.colorStops?(h=i.__canvasGradient||s.getGradient(n,i,{x:0,y:0,width:r,height:a}),i.__canvasGradient=h):i.image&&(h=l.prototype.getCanvasPattern.call(i,n)),n.save(),n.fillStyle=h||i,n.fillRect(0,0,r,a),n.restore()}if(o){var d=this.domBack;n.save(),n.globalAlpha=u,n.drawImage(d,0,0,r,a),n.restore()}}},e.exports=u},function(e,t,n){var r=n(314);e.exports=function(e){function t(t){var n=(t.visualColorAccessPath||"itemStyle.normal.color").split("."),a=t.getData(),i=t.get(n)||t.getColorFromPalette(t.get("name"));a.setVisual("color",i),e.isSeriesFiltered(t)||("function"!=typeof i||i instanceof r||a.each(function(e){a.setItemVisual(e,"color",i(t.getDataParams(e)))}),a.each(function(e){var t=a.getItemModel(e),r=t.get(n,!0);null!=r&&a.setItemVisual(e,"color",r)}))}e.eachRawSeries(t)}},function(e,t,n){function r(e,t){t=t.split(",");for(var n=e,r=0;r<t.length&&(n=n&&n[t[r]],null!=n);r++);return n}function a(e,t,n,r){t=t.split(",");for(var a,i=e,o=0;o<t.length-1;o++)a=t[o],null==i[a]&&(i[a]={}),i=i[a];(r||null==i[t[o]])&&(i[t[o]]=n)}function i(e){h(l,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var o=n(239),s=n(331),l=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],h=o.each;e.exports=function(e){h(e.series,function(e){if(o.isObject(e)){var t=e.type;if(s(e),"pie"!==t&&"gauge"!==t||null!=e.clockWise&&(e.clockwise=e.clockWise),"gauge"===t){var n=r(e,"pointer.color");null!=n&&a(e,"itemStyle.normal.color",n)}for(var l=0;l<c.length;l++)if(c[l]===e.type){i(e);break}}}),e.dataRange&&(e.visualMap=e.dataRange),h(u,function(t){var n=e[t];n&&(o.isArray(n)||(n=[n]),
|
|
48
|
-
h(n,function(e){i(e)}))})}},function(e,t,n){function r(e){var t=e&&e.itemStyle;t&&a.each(i,function(n){var r=t.normal,i=t.emphasis;r&&r[n]&&(e[n]=e[n]||{},e[n].normal?a.merge(e[n].normal,r[n]):e[n].normal=r[n],r[n]=null),i&&i[n]&&(e[n]=e[n]||{},e[n].emphasis?a.merge(e[n].emphasis,i[n]):e[n].emphasis=i[n],i[n]=null)})}var a=n(239),i=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];e.exports=function(e){if(e){r(e),r(e.markPoint),r(e.markLine);var t=e.data;if(t){for(var n=0;n<t.length;n++)r(t[n]);var i=e.markPoint;if(i&&i.data)for(var o=i.data,n=0;n<o.length;n++)r(o[n]);var s=e.markLine;if(s&&s.data)for(var l=s.data,n=0;n<l.length;n++)a.isArray(l[n])?(r(l[n][0]),r(l[n][1])):r(l[n])}}}},function(e,t,n){var r=n(279),a=n(239),i=Math.PI;e.exports=function(e,t){t=t||{},a.defaults(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new r.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),o=new r.Arc({shape:{startAngle:-i/2,endAngle:-i/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),s=new r.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*i/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*i/2}).delay(300).start("circularInOut");var l=new r.Group;return l.add(o),l.add(s),l.add(n),l.resize=function(){var t=e.getWidth()/2,r=e.getHeight()/2;o.setShape({cx:t,cy:r});var a=o.shape.r;s.setShape({x:t-a,y:r-a,width:2*a,height:2*a}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},l.resize(),l}},function(e,t,n){(function(t){function r(e){return d.isArray(e)||(e=[e]),e}function a(e,t){var n=e.dimensions,r=new v(d.map(n,e.getDimensionInfo,e),e.hostModel);m(r,e);for(var a=r._storage={},i=e._storage,o=0;o<n.length;o++){var s=n[o],l=i[s];d.indexOf(t,s)>=0?a[s]=new l.constructor(i[s].length):a[s]=i[s]}return r}var i="undefined",o="undefined"==typeof window?t:window,s=typeof o.Float64Array===i?Array:o.Float64Array,l=typeof o.Int32Array===i?Array:o.Int32Array,u={float:s,int:l,ordinal:Array,number:Array,time:Array},c=n(247),h=n(334),d=n(239),p=n(240),f=d.isObject,g=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],m=function(e,t){d.each(g.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods},v=function(e,t){e=e||["x","y"];for(var n={},r=[],a=0;a<e.length;a++){var i,o={};"string"==typeof e[a]?(i=e[a],o={name:i,stackable:!1,type:"number"}):(o=e[a],i=o.name,o.type=o.type||"number"),r.push(i),n[i]=o}this.dimensions=r,this._dimensionInfos=n,this.hostModel=t,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},y=v.prototype;y.type="list",y.hasItemOption=!0,y.getDimension=function(e){return isNaN(e)||(e=this.dimensions[e]||e),e},y.getDimensionInfo=function(e){return d.clone(this._dimensionInfos[this.getDimension(e)])},y.initData=function(e,t,n){if(e=e||[],__DEV__&&!d.isArray(e))throw new Error("Invalid data.");this._rawData=e;var r=this._storage={},a=this.indices=[],i=this.dimensions,o=e.length,s=this._dimensionInfos,l=[],c={};t=t||[];for(var h=0;h<i.length;h++){var f=s[i[h]],g=u[f.type];r[i[h]]=new g(o)}var m=this;n||(m.hasItemOption=!1),n=n||function(e,t,n,r){var a=p.getDataItemValue(e);return p.isDataItemOption(e)&&(m.hasItemOption=!0),p.converDataValue(a instanceof Array?a[r]:a,s[t])};for(var v=0;v<e.length;v++){for(var y=e[v],x=0;x<i.length;x++){var _=i[x],b=r[_];b[v]=n(y,_,v,x)}a.push(v)}for(var h=0;h<e.length;h++){t[h]||e[h]&&null!=e[h].name&&(t[h]=e[h].name);var w=t[h]||"",S=e[h]&&e[h].id;!S&&w&&(c[w]=c[w]||0,S=w,c[w]>0&&(S+="__ec__"+c[w]),c[w]++),S&&(l[h]=S)}this._nameList=t,this._idList=l},y.count=function(){return this.indices.length},y.get=function(e,t,n){var r=this._storage,a=this.indices[t];if(null==a)return NaN;var i=r[e]&&r[e][a];if(n){var o=this._dimensionInfos[e];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(e,t);(i>=0&&l>0||i<=0&&l<0)&&(i+=l),s=s.stackedOn}}return i},y.getValues=function(e,t,n){var r=[];d.isArray(e)||(n=t,t=e,e=this.dimensions);for(var a=0,i=e.length;a<i;a++)r.push(this.get(e[a],t,n));return r},y.hasValue=function(e){for(var t=this.dimensions,n=this._dimensionInfos,r=0,a=t.length;r<a;r++)if("ordinal"!==n[t[r]].type&&isNaN(this.get(t[r],e)))return!1;return!0},y.getDataExtent=function(e,t,n){e=this.getDimension(e);var r=this._storage[e],a=this.getDimensionInfo(e);t=a&&a.stackable&&t;var i,o=(this._extent||(this._extent={}))[e+!!t];if(o)return o;if(r){for(var s=1/0,l=-(1/0),u=0,c=this.count();u<c;u++)i=this.get(e,u,t),n&&!n(i,e,u)||(i<s&&(s=i),i>l&&(l=i));return this._extent[e+!!t]=[s,l]}return[1/0,-(1/0)]},y.getSum=function(e,t){var n=this._storage[e],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a,t);isNaN(o)||(r+=o)}return r},y.indexOf=function(e,t){var n=this._storage,r=n[e],a=this.indices;if(r)for(var i=0,o=a.length;i<o;i++){var s=a[i];if(r[s]===t)return i}return-1},y.indexOfName=function(e){for(var t=this.indices,n=this._nameList,r=0,a=t.length;r<a;r++){var i=t[r];if(n[i]===e)return r}return-1},y.indexOfRawIndex=function(e){var t=this.indices,n=t[e];if(null!=n&&n===e)return e;for(var r=0,a=t.length-1;r<=a;){var i=(r+a)/2|0;if(t[i]<e)r=i+1;else{if(!(t[i]>e))return i;a=i-1}}return-1},y.indicesOfNearest=function(e,t,n,r){var a=this._storage,i=a[e],o=[];if(!i)return o;null==r&&(r=1/0);for(var s=Number.MAX_VALUE,l=-1,u=0,c=this.count();u<c;u++){var h=t-this.get(e,u,n),d=Math.abs(h);h<=r&&d<=s&&((d<s||h>=0&&l<0)&&(s=d,l=h,o.length=0),o.push(u))}return o},y.getRawIndex=function(e){var t=this.indices[e];return null==t?-1:t},y.getRawDataItem=function(e){return this._rawData[this.getRawIndex(e)]},y.getName=function(e){return this._nameList[this.indices[e]]||""},y.getId=function(e){return this._idList[this.indices[e]]||this.getRawIndex(e)+""},y.each=function(e,t,n,a){"function"==typeof e&&(a=n,n=t,t=e,e=[]),e=d.map(r(e),this.getDimension,this);var i=[],o=e.length,s=this.indices;a=a||this;for(var l=0;l<s.length;l++)switch(o){case 0:t.call(a,l);break;case 1:t.call(a,this.get(e[0],l,n),l);break;case 2:t.call(a,this.get(e[0],l,n),this.get(e[1],l,n),l);break;default:for(var u=0;u<o;u++)i[u]=this.get(e[u],l,n);i[u]=l,t.apply(a,i)}},y.filterSelf=function(e,t,n,a){"function"==typeof e&&(a=n,n=t,t=e,e=[]),e=d.map(r(e),this.getDimension,this);var i=[],o=[],s=e.length,l=this.indices;a=a||this;for(var u=0;u<l.length;u++){var c;if(1===s)c=t.call(a,this.get(e[0],u,n),u);else{for(var h=0;h<s;h++)o[h]=this.get(e[h],u,n);o[h]=u,c=t.apply(a,o)}c&&i.push(l[u])}return this.indices=i,this._extent={},this},y.mapArray=function(e,t,n,r){"function"==typeof e&&(r=n,n=t,t=e,e=[]);var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n,r),a},y.map=function(e,t,n,i){e=d.map(r(e),this.getDimension,this);var o=a(this,e),s=o.indices=this.indices,l=o._storage,u=[];return this.each(e,function(){var n=arguments[arguments.length-1],r=t&&t.apply(this,arguments);if(null!=r){"number"==typeof r&&(u[0]=r,r=u);for(var a=0;a<r.length;a++){var i=e[a],o=l[i],c=s[n];o&&(o[c]=r[a])}}},n,i),o},y.downSample=function(e,t,n,r){for(var i=a(this,[e]),o=this._storage,s=i._storage,l=this.indices,u=i.indices=[],c=[],h=[],d=Math.floor(1/t),p=s[e],f=this.count(),g=0;g<o[e].length;g++)s[e][g]=o[e][g];for(var g=0;g<f;g+=d){d>f-g&&(d=f-g,c.length=d);for(var m=0;m<d;m++){var v=l[g+m];c[m]=p[v],h[m]=v}var y=n(c),v=h[r(c,y)||0];p[v]=y,u.push(v)}return i},y.getItemModel=function(e){var t=this.hostModel;return e=this.indices[e],new c(this._rawData[e],t,t&&t.ecModel)},y.diff=function(e){var t,n=this._idList,r=e&&e._idList,a="e\0\0";return new h(e?e.indices:[],this.indices,function(e){return null!=(t=r[e])?t:a+e},function(e){return null!=(t=n[e])?t:a+e})},y.getVisual=function(e){var t=this._visual;return t&&t[e]},y.setVisual=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},y.setLayout=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},y.getLayout=function(e){return this._layout[e]},y.getItemLayout=function(e){return this._itemLayouts[e]},y.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?d.extend(this._itemLayouts[e]||{},t):t},y.clearItemLayouts=function(){this._itemLayouts.length=0},y.getItemVisual=function(e,t,n){var r=this._itemVisuals[e],a=r&&r[t];return null!=a||n?a:this.getVisual(t)},y.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};if(this._itemVisuals[e]=r,f(t))for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);else r[t]=n},y.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var x=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};y.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(x,t)),this._graphicEls[e]=t},y.getItemGraphicEl=function(e){return this._graphicEls[e]},y.eachItemGraphicEl=function(e,t){d.each(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},y.cloneShallow=function(){var e=d.map(this.dimensions,this.getDimensionInfo,this),t=new v(e,this.hostModel);return t._storage=this._storage,m(t,this),t.indices=this.indices.slice(),this._extent&&(t._extent=d.extend({},this._extent)),t},y.wrapMethod=function(e,t){var n=this[e];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(d.slice(arguments)))})},y.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],y.CHANGABLE_METHODS=["filterSelf"],e.exports=v}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){return e}function r(e,t,r,a){this._old=e,this._new=t,this._oldKeyGetter=r||n,this._newKeyGetter=a||n}function a(e,t,n,r){for(var a=0;a<e.length;a++){var i=r(e[a],a),o=t[i];null==o?(n.push(i),t[i]=a):(o.length||(t[i]=o=[o]),o.push(a))}}r.prototype={constructor:r,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e,t=this._old,n=this._new,r=this._oldKeyGetter,i=this._newKeyGetter,o={},s={},l=[],u=[];for(a(t,o,l,r),a(n,s,u,i),e=0;e<t.length;e++){var c=l[e],h=s[c];if(null!=h){var d=h.length;d?(1===d&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,e)}else this._remove&&this._remove(e)}for(var e=0;e<u.length;e++){var c=u[e];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h.length)for(var p=0,d=h.length;p<d;p++)this._add&&this._add(h[p]);else this._add&&this._add(h)}}}},e.exports=r},function(e,t,n){function r(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}var a=n(242),i=a.linearMap,o=n(239),s=[0,1],l=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};l.prototype={constructor:l,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},containData:function(e){return this.contain(this.dataToCoord(e))},getExtent:function(){var e=this._extent.slice();return e},getPixelPrecision:function(e){return a.getPixelPrecision(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&"ordinal"===a.type&&(n=n.slice(),r(n,a.count())),i(e,s,n,t)},coordToData:function(e,t){var n=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&(n=n.slice(),r(n,a.count()));var o=i(e,n,s,t);return this.scale.scale(o)},pointToData:function(e,t){},getTicksCoords:function(e){if(this.onBand&&!e){for(var t=this.getBands(),n=[],r=0;r<t.length;r++)n.push(t[r][0]);return t[r-1]&&n.push(t[r-1][1]),n}return o.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return o.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var e=this.getExtent(),t=[],n=this.scale.count(),r=e[0],a=e[1],i=a-r,o=0;o<n;o++)t.push([i*o/n+r,i*(o+1)/n+r]);return t},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n}},e.exports=l},function(e,t,n){var r=n(337),a=n(339),i=n(340),o=n(347),s=n(247),l=n(239);e.exports={createList:function(e){var t=e.get("data");return r(t,e,e.ecModel)},completeDimensions:n(338),createSymbol:a.createSymbol,createScale:function(e,t){var n=t;t instanceof s||(n=new s(t),l.mixin(n,o));var r=i.createScaleByModel(n);return r.setExtent(e[0],e[1]),i.niceScaleExtent(r,n),r},mixinAxisModelCommonMethods:function(e){l.mixin(e,o)}}},function(e,t,n){"use strict";function r(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}function a(e){var t=r(e);return null!=t&&!h.isArray(f(t))}function i(e,t,n){if(e=e||[],__DEV__&&!h.isArray(e))throw new Error("Invalid data.");var r=t.get("coordinateSystem"),i=m[r],o=p.get(r),s=i&&i(e,t,n),v=s&&s.dimensions;v||(v=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"],v=c(v,e,{defaultNames:v.concat(["value"])}));var y=s?s.categoryIndex:-1,x=new u(v,t),_=l(s,e),b={},w=y>=0&&a(e)?function(e,t,n,r){return d.isDataItemOption(e)&&(x.hasItemOption=!0),r===y?n:g(f(e),v[r])}:function(e,t,n,r){var a=f(e),i=g(a&&a[r],v[r]);d.isDataItemOption(e)&&(x.hasItemOption=!0);var o=s&&s.categoryAxesModels;return o&&o[t]&&"string"==typeof i&&(b[t]=b[t]||o[t].getCategories(),i=h.indexOf(b[t],i),i<0&&!isNaN(i)&&(i=+i)),i};return x.hasItemOption=!1,x.initData(e,_,w),x}function o(e){return"category"!==e&&"time"!==e}function s(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function l(e,t){var n,r=[],a=e&&e.dimensions[e.categoryIndex];if(a&&(n=e.categoryAxesModels[a.name]),n){var i=n.getCategories();if(i){var o=t.length;if(h.isArray(t[0])&&t[0].length>1){r=[];for(var s=0;s<o;s++)r[s]=i[t[s][e.categoryIndex||0]]}else r=i.slice(0)}}return r}var u=n(333),c=n(338),h=n(239),d=n(240),p=n(261),f=d.getDataItemValue,g=d.converDataValue,m={cartesian2d:function(e,t,n){var r=h.map(["xAxis","yAxis"],function(e){return n.queryComponents({mainType:e,index:t.get(e+"Index"),id:t.get(e+"Id")})[0]}),a=r[0],i=r[1];if(__DEV__){if(!a)throw new Error('xAxis "'+h.retrieve(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+h.retrieve(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}var l=a.get("type"),u=i.get("type"),d=[{name:"x",type:s(l),stackable:o(l)},{name:"y",type:s(u),stackable:o(u)}],p="category"===l,f="category"===u;c(d,e,{defaultNames:["x","y","z"]});var g={};return p&&(g.x=a),f&&(g.y=i),{dimensions:d,categoryIndex:p?0:f?1:-1,categoryAxesModels:g}},singleAxis:function(e,t,n){var r=n.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];if(__DEV__&&!r)throw new Error("singleAxis should be specified.");var a=r.get("type"),i="category"===a,l=[{name:"single",type:s(a),stackable:o(a)}];c(l,e);var u={};return i&&(u.single=r),{dimensions:l,categoryIndex:i?0:-1,categoryAxesModels:u}},polar:function(e,t,n){var r=n.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0],a=r.findAxisModel("angleAxis"),i=r.findAxisModel("radiusAxis");if(__DEV__){if(!a)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}var l=i.get("type"),u=a.get("type"),h=[{name:"radius",type:s(l),stackable:o(l)},{name:"angle",type:s(u),stackable:o(u)}],d="category"===u,p="category"===l;c(h,e,{defaultNames:["radius","angle","value"]});var f={};return p&&(f.radius=i),d&&(f.angle=a),{dimensions:h,categoryIndex:d?1:p?0:-1,categoryAxesModels:f}},geo:function(e,t,n){return{dimensions:c([{name:"lng"},{name:"lat"}],e,{defaultNames:["lng","lat","value"]})}}};e.exports=i},function(e,t,n){function r(e,t,n){if(!t)return e;n=n||{};var r=n.dimCount;if(null==r){var s=a(t[0]);r=i.isArray(s)&&s.length||1}for(var l=n.defaultNames||[],u=n.extraPrefix||"extra",c=0;c<r;c++)if(!e[c]){var h=l[c]||u+(c-l.length);e[c]=o(t,c)?{type:"ordinal",name:h}:h}return e}function a(e){return i.isArray(e)?e:i.isObject(e)?e.value:e}var i=n(239),o=r.guessOrdinal=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=a(e[n]);if(!i.isArray(o))return!1;var o=o[t];if(null!=o&&isFinite(o))return!1;if(i.isString(o)&&"-"!==o)return!0}return!1};e.exports=r},function(e,t,n){"use strict";var r=n(279),a=n(244),i=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r+i),e.lineTo(n-a,r+i),e.closePath()}}),o=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r),e.lineTo(n,r+i),e.lineTo(n-a,r),e.closePath()}}),s=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u);e.arc(n,l,o,Math.PI-u,2*Math.PI+u);var p=.6*o,f=.7*o;e.bezierCurveTo(n+c-h*p,l+s+d*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+h*p,l+s+d*p,n-c,l+s),e.closePath()}}),l=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,a=t.x,i=t.y,o=r/3*2;e.moveTo(a,i),e.lineTo(a+o,i+n),e.lineTo(a,i+n/4*3),e.lineTo(a-o,i+n),e.lineTo(a,i),e.closePath()}}),u={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:o,pin:s,arrow:l,triangle:i},c={line:function(e,t,n,r,a){a.x1=e,a.y1=t+r/2,a.x2=e+n,a.y2=t+r/2},rect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r},roundRect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(e,t,n,r,a){var i=Math.min(n,r);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.r=Math.min(n,r)/2},diamond:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r},pin:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},arrow:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},triangle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r}},h={};for(var d in u)u.hasOwnProperty(d)&&(h[d]=new u[d]);var p=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var e=this.style,t=this.shape;"pin"===t.symbolType&&"inside"===e.textPosition&&(e.textPosition=["50%","40%"],e.textAlign="center",e.textVerticalAlign="middle")},buildPath:function(e,t,n){var r=t.symbolType,a=h[r];"none"!==t.symbolType&&(a||(r="rect",a=h[r]),c[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n))}}),f=function(e){if("image"!==this.type){var t=this.style,n=this.shape;n&&"line"===n.symbolType?t.stroke=e:this.__isEmptyBrush?(t.stroke=e,t.fill="#fff"):(t.fill&&(t.fill=e),t.stroke&&(t.stroke=e)),this.dirty(!1)}},g={createSymbol:function(e,t,n,i,o,s){var l=0===e.indexOf("empty");l&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return u=0===e.indexOf("image://")?new r.Image({style:{image:e.slice(8),x:t,y:n,width:i,height:o}}):0===e.indexOf("path://")?r.makePath(e.slice(7),{},new a(t,n,i,o)):new p({shape:{symbolType:e,x:t,y:n,width:i,height:o}}),u.__isEmptyBrush=l,u.setColor=f,u.setColor(s),u}};e.exports=g},function(e,t,n){var r=n(341),a=n(343);n(345),n(346);var i=n(342),o=n(242),s=n(239),l=n(243),u={};u.getScaleExtent=function(e,t){var n,r,a,i=e.type,l=t.getMin(),u=t.getMax(),c=null!=l,h=null!=u,d=e.getExtent();return"ordinal"===i?n=(t.get("data")||[]).length:(r=t.get("boundaryGap"),s.isArray(r)||(r=[r||0,r||0]),"boolean"==typeof r[0]&&(__DEV__&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),r=[0,0]),r[0]=o.parsePercent(r[0],1),r[1]=o.parsePercent(r[1],1),a=d[1]-d[0]||Math.abs(d[0])),null==l&&(l="ordinal"===i?n?0:NaN:d[0]-r[0]*a),null==u&&(u="ordinal"===i?n?n-1:NaN:d[1]+r[1]*a),"dataMin"===l&&(l=d[0]),"dataMax"===u&&(u=d[1]),(null==l||!isFinite(l))&&(l=NaN),(null==u||!isFinite(u))&&(u=NaN),e.setBlank(s.eqNaN(l)||s.eqNaN(u)),t.getNeedCrossZero()&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!h&&(u=0)),[l,u]},u.niceScaleExtent=function(e,t){var n=u.getScaleExtent(e,t),r=null!=t.getMin(),a=null!=t.getMax(),i=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase")),e.setExtent(n[0],n[1]),e.niceExtent(i,r,a);var o=t.get("minInterval");if(isFinite(o)&&!r&&!a&&"interval"===e.type){var s=e.getInterval(),l=Math.max(Math.abs(s),o)/s;n=e.getExtent();var c=(n[1]+n[0])/2;e.setExtent(l*(n[0]-c)+c,l*(n[1]-c)+c),e.niceExtent(i)}var s=t.get("interval");null!=s&&e.setInterval&&e.setInterval(s)},u.createScaleByModel=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new r(e.getCategories(),[1/0,-(1/0)]);case"value":return new a;default:return(i.getClass(t)||a).create(e)}},u.ifAxisCrossZero=function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)},u.getAxisLabelInterval=function(e,t,n,r){var a,i=0,o=0,s=1;t.length>40&&(s=Math.floor(t.length/40));for(var u=0;u<e.length;u+=s){var c=e[u],h=l.getBoundingRect(t[u],n,"center","top");h[r?"x":"y"]+=c,h[r?"width":"height"]*=1.3,a?a.intersect(h)?(o++,i=Math.max(i,o)):(a.union(h),o=0):a=h.clone()}return 0===i&&s>1?s:(i+1)*s-1},u.getFormattedLabels=function(e,t){var n=e.scale,r=n.getTicksLabels(),a=n.getTicks();return"string"==typeof t?(t=function(e){return function(t){return e.replace("{value}",null!=t?t:"")}}(t),s.map(r,t)):"function"==typeof t?s.map(a,function(n,r){return t(u.getAxisRawValue(e,n),r)},this):r},u.getAxisRawValue=function(e,t){return"category"===e.type?e.scale.getLabel(t):t},e.exports=u},function(e,t,n){var r=n(239),a=n(342),i=a.prototype,o=a.extend({type:"ordinal",init:function(e,t){this._data=e,this._extent=t||[0,e.length-1]},parse:function(e){return"string"==typeof e?r.indexOf(this._data,e):Math.round(e)},contain:function(e){return e=this.parse(e),i.contain.call(this,e)&&null!=this._data[e]},normalize:function(e){return i.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(i.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push(n),n++;return e},getLabel:function(e){return this._data[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getDataExtent(t,!1))},niceTicks:r.noop,niceExtent:r.noop});o.create=function(){return new o},e.exports=o},function(e,t,n){function r(e){this._setting=e||{},this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var a=n(248),i=r.prototype;i.parse=function(e){return e},i.getSetting=function(e){return this._setting[e]},i.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},i.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},i.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},i.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},i.unionExtentFromData=function(e,t){this.unionExtent(e.getDataExtent(t,!0))},i.getExtent=function(){return this._extent.slice()},i.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},i.getTicksLabels=function(){for(var e=[],t=this.getTicks(),n=0;n<t.length;n++)e.push(this.getLabel(t[n]));return e},i.isBlank=function(){return this._isBlank},i.setBlank=function(e){this._isBlank=e},a.enableClassExtend(r),a.enableClassManagement(r,{registerWhenExtend:!0}),e.exports=r},function(e,t,n){var r=n(242),a=n(241),i=n(342),o=n(344),s=r.round,l=i.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice()},getTicks:function(){return this._interval||this.niceTicks(),o.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var e=[],t=this.getTicks(),n=0;n<t.length;n++)e.push(this.getLabel(t[n]));return e},getLabel:function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=r.getPrecisionSafe(e)||0:"auto"===n&&(n=this._intervalPrecision),e=s(e,n,!0),a.addCommas(e)},niceTicks:function(e){e=e||5;var t=this._extent,n=t[1]-t[0];if(isFinite(n)){n<0&&(n=-n,t.reverse());var r=o.intervalScaleNiceTicks(t,e);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(e,t,n){var r=this._extent;if(r[0]===r[1])if(0!==r[0]){var a=r[0];n?r[0]-=a/2:(r[1]+=a/2,r[0]-=a/2)}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.niceTicks(e);var o=this._interval;t||(r[0]=s(Math.floor(r[0]/o)*o)),n||(r[1]=s(Math.ceil(r[1]/o)*o))}});l.create=function(){return new l},e.exports=l},function(e,t,n){function r(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}var a=n(242),i=a.round,o={};o.intervalScaleNiceTicks=function(e,t){var n={},r=e[1]-e[0],s=n.interval=a.nice(r/t,!0),l=n.intervalPrecision=a.getPrecisionSafe(s)+2,u=n.niceTickExtent=[i(Math.ceil(e[0]/s)*s,l),i(Math.floor(e[1]/s)*s,l)];return o.fixExtent(u,e),n},o.fixExtent=function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),r(e,0,t),r(e,1,t),e[0]>e[1]&&(e[0]=e[1])},o.intervalScaleGetTicks=function(e,t,n,r){var a=[];if(!e)return a;var o=1e4;t[0]<n[0]&&a.push(t[0]);for(var s=n[0];s<=n[1]&&(a.push(s),s=i(s+e,r),s!==a[a.length-1]);)if(a.length>o)return[];return t[1]>(a.length?a[a.length-1]:n[1])&&a.push(t[1]),a},e.exports=o},function(e,t,n){var r=n(239),a=n(242),i=n(241),o=n(344),s=n(343),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=60*h,p=60*d,f=24*p,g=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][2]<t?n=a+1:r=a}return n},m=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);return i.formatTime(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e,t,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=f,r[1]+=f),r[1]===-(1/0)&&r[0]===1/0){var i=new Date;r[1]=new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-f}this.niceTicks(e);var o=this._interval;t||(r[0]=a.round(c(r[0]/o)*o)),n||(r[1]=a.round(u(r[1]/o)*o))},niceTicks:function(e){var t=this.getSetting("useUTC")?0:60*a.getTimezoneOffset()*1e3;e=e||10;var n=this._extent,r=n[1]-n[0],i=r/e,s=v.length,l=g(v,i,0,s),h=v[Math.min(l,s-1)],d=h[2];if("year"===h[0]){var p=r/d,f=a.nice(p/e,!0);d*=f}var m=[Math.round(u((n[0]-t)/d)*d+t),Math.round(c((n[1]-t)/d)*d+t)];o.fixExtent(m,n),this._stepLvl=h,this._interval=d,this._niceExtent=m},parse:function(e){return+a.parseDate(e)}});r.each(["contain","normalize"],function(e){m.prototype[e]=function(t){return l[e].call(this,this.parse(t))}});var v=[["hh:mm:ss",1,h],["hh:mm:ss",5,5*h],["hh:mm:ss",10,10*h],["hh:mm:ss",15,15*h],["hh:mm:ss",30,30*h],["hh:mm\nMM-dd",1,d],["hh:mm\nMM-dd",5,5*d],["hh:mm\nMM-dd",10,10*d],["hh:mm\nMM-dd",15,15*d],["hh:mm\nMM-dd",30,30*d],["hh:mm\nMM-dd",1,p],["hh:mm\nMM-dd",2,2*p],["hh:mm\nMM-dd",6,6*p],["hh:mm\nMM-dd",12,12*p],["MM-dd\nyyyy",1,f],["week",7,7*f],["month",1,31*f],["quarter",3,380*f/4],["half-year",6,380*f/2],["year",1,380*f]];m.create=function(e){return new m({useUTC:e.ecModel.get("useUTC")})},e.exports=m},function(e,t,n){function r(e,t){return h(e,c(t))}var a=n(239),i=n(342),o=n(242),s=n(343),l=i.prototype,u=s.prototype,c=o.getPrecisionSafe,h=o.round,d=Math.floor,p=Math.ceil,f=Math.pow,g=Math.log,m=i.extend({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new s},getTicks:function(){var e=this._originalScale,t=this._extent,n=e.getExtent();return a.map(u.getTicks.call(this),function(a){var i=o.round(f(this.base,a));return i=a===t[0]&&e.__fixMin?r(i,n[0]):i,i=a===t[1]&&e.__fixMax?r(i,n[1]):i},this)},getLabel:u.getLabel,scale:function(e){return e=l.scale.call(this,e),f(this.base,e)},setExtent:function(e,t){var n=this.base;e=g(e)/g(n),t=g(t)/g(n),u.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=l.getExtent.call(this);t[0]=f(e,t[0]),t[1]=f(e,t[1]);var n=this._originalScale,a=n.getExtent();return n.__fixMin&&(t[0]=r(t[0],a[0])),n.__fixMax&&(t[1]=r(t[1],a[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=g(e[0])/g(t),e[1]=g(e[1])/g(t),l.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getDataExtent(t,!0,function(e){return e>0}))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=o.quantity(n),a=e/n*r;for(a<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[o.round(p(t[0]/r)*r),o.round(d(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},niceExtent:function(e,t,n){u.niceExtent.call(this,e,t,n);var r=this._originalScale;r.__fixMin=t,r.__fixMax=n}});a.each(["contain","normalize"],function(e){m.prototype[e]=function(t){return t=g(t)/g(this.base),l[e].call(this,t)}}),m.create=function(){return new m},e.exports=m},function(e,t,n){function r(e){return a.isObject(e)&&null!=e.value?e.value:e}var a=n(239),i=n(340);e.exports={getFormattedLabels:function(){return i.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&a.map(this.get("data"),r)},getMin:function(e){var t=this.option,n=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&!a.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&!a.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:a.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}}},function(e,t,n){var r=n(239),a=n(236),i=a.PRIORITY;n(349),n(350),a.registerVisual(r.curry(n(355),"line","circle","line")),a.registerLayout(r.curry(n(356),"line")),a.registerProcessor(i.PROCESSOR.STATISTIC,r.curry(n(357),"line")),n(358)},function(e,t,n){"use strict";var r=n(337),a=n(263);e.exports=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){if(__DEV__){var n=e.coordinateSystem;if("polar"!==n&&"cartesian2d"!==n)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return r(e.data,this,t)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},function(e,t,n){"use strict";function r(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var r=e[n],a=t[n];if(r[0]!==a[0]||r[1]!==a[1])return}return!0}}function a(e){return"number"==typeof e?e:e?.3:0}function i(e){var t=e.getGlobalExtent();if(e.onBand){var n=e.getBandWidth()/2-1,r=t[1]>t[0]?1:-1;t[0]+=r*n,t[1]-=r*n}return t}function o(e){return e>=0?1:-1}function s(e,t){var n=e.getBaseAxis(),r=e.getOtherAxis(n),a=n.onZero?0:r.scale.getExtent()[0],i=r.dim,s="x"===i||"radius"===i?1:0;return t.mapArray([i],function(r,l){for(var u,c=t.stackedOn;c&&o(c.get(i,l))===o(r);){u=c;break}var h=[];return h[s]=t.get(n.dim,l),
|
|
49
|
-
h[1-s]=u?u.get(i,l,!0):a,e.dataToPoint(h)},!0)}function l(e,t,n){var r=i(e.getAxis("x")),a=i(e.getAxis("y")),o=e.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(a[0],a[1]),u=Math.max(r[0],r[1])-s,c=Math.max(a[0],a[1])-l,h=n.get("lineStyle.normal.width")||2,d=n.get("clipOverflow")?h/2:Math.max(u,c);o?(l-=d,c+=2*d):(s-=d,u+=2*d);var p=new v.Rect({shape:{x:s,y:l,width:u,height:c}});return t&&(p.shape[o?"width":"height"]=0,v.initProps(p,{shape:{width:u,height:c}},n)),p}function u(e,t,n){var r=e.getAngleAxis(),a=e.getRadiusAxis(),i=a.getExtent(),o=r.getExtent(),s=Math.PI/180,l=new v.Sector({shape:{cx:e.cx,cy:e.cy,r0:i[0],r:i[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:r.inverse}});return t&&(l.shape.endAngle=-o[0]*s,v.initProps(l,{shape:{endAngle:-o[1]*s}},n)),l}function c(e,t,n){return"polar"===e.type?u(e,t,n):l(e,t,n)}function h(e,t,n){for(var r=t.getBaseAxis(),a="x"===r.dim||"radius"===r.dim?0:1,i=[],o=0;o<e.length-1;o++){var s=e[o+1],l=e[o];i.push(l);var u=[];switch(n){case"end":u[a]=s[a],u[1-a]=l[1-a],i.push(u);break;case"middle":var c=(l[a]+s[a])/2,h=[];u[a]=h[a]=c,u[1-a]=l[1-a],h[1-a]=s[1-a],i.push(u),i.push(h);break;default:u[a]=l[a],u[1-a]=s[1-a],i.push(u)}}return e[o]&&i.push(e[o]),i}function d(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()){for(var r,a=n.length-1;a>=0;a--)if(n[a].dimension<2){r=n[a];break}if(!r||"cartesian2d"!==t.type)return void(__DEV__&&console.warn("Visual map on line style only support x or y dimension."));var i=r.dimension,o=e.dimensions[i],s=t.getAxis(o),l=p.map(r.stops,function(e){return{coord:s.toGlobalCoord(s.dataToCoord(e.value)),color:e.color}}),u=l.length,c=r.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=10,d=l[0].coord-h,f=l[u-1].coord+h,g=f-d;if(g<.001)return"transparent";p.each(l,function(e){e.offset=(e.coord-d)/g}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var m=new v.LinearGradient(0,0,0,0,l,!0);return m[o]=d,m[o+"2"]=f,m}}var p=n(239),f=n(351),g=n(352),m=n(353),v=n(279),y=n(240),x=n(354),_=n(278);e.exports=_.extend({type:"line",init:function(){var e=new v.Group,t=new f;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,o=this.group,l=e.getData(),u=e.getModel("lineStyle.normal"),f=e.getModel("areaStyle.normal"),g=l.mapArray(l.getItemLayout,!0),m="polar"===i.type,v=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=e.get("animation"),S=!f.isEmpty(),M=s(i,l),C=e.get("showSymbol"),T=C&&!m&&!e.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,i),A=this._data;A&&A.eachItemGraphicEl(function(e,t){e.__temp&&(o.remove(e),A.setItemGraphicEl(t,null))}),C||y.remove(),o.add(b);var I=!m&&e.get("step");x&&v.type===i.type&&I===this._step?(S&&!_?_=this._newPolygon(g,M,i,w):_&&!S&&(b.remove(_),_=this._polygon=null),b.setClipPath(c(i,!1,e)),C&&y.updateData(l,T),l.eachItemGraphicEl(function(e){e.stopAnimation(!0)}),r(this._stackedOnPoints,M)&&r(this._points,g)||(w?this._updateAnimation(l,M,i,n,I):(I&&(g=h(g,i,I),M=h(M,i,I)),x.setShape({points:g}),_&&_.setShape({points:g,stackedOnPoints:M})))):(C&&y.updateData(l,T),I&&(g=h(g,i,I),M=h(M,i,I)),x=this._newPolyline(g,i,w),S&&(_=this._newPolygon(g,M,i,w)),b.setClipPath(c(i,!0,e)));var E=d(l,i)||l.getVisual("color");x.useStyle(p.defaults(u.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"}));var P=e.get("smooth");if(P=a(e.get("smooth")),x.setShape({smooth:P,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),_){var L=l.stackedOn,D=0;if(_.useStyle(p.defaults(f.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel"})),L){var k=L.hostModel;D=a(k.get("smooth"))}_.setShape({smooth:P,stackedOnSmooth:D,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=l,this._coordSys=i,this._stackedOnPoints=M,this._points=g,this._step=I},dispose:function(){},highlight:function(e,t,n,r){var a=e.getData(),i=y.queryDataIndex(a,r);if(!(i instanceof Array)&&null!=i&&i>=0){var o=a.getItemGraphicEl(i);if(!o){var s=a.getItemLayout(i);if(!s)return;o=new g(a,i),o.position=s,o.setZ(e.get("zlevel"),e.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,a.setItemGraphicEl(i,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else _.prototype.highlight.call(this,e,t,n,r)},downplay:function(e,t,n,r){var a=e.getData(),i=y.queryDataIndex(a,r);if(null!=i&&i>=0){var o=a.getItemGraphicEl(i);o&&(o.__temp?(a.setItemGraphicEl(i,null),this.group.remove(o)):o.downplay())}else _.prototype.downplay.call(this,e,t,n,r)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new x.Polyline({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new x.Polygon({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(e,t){var n=t.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return p.bind(n.isLabelIgnored,n)},_updateAnimation:function(e,t,n,r,a){var i=this._polyline,o=this._polygon,s=e.hostModel,l=m(this._data,e,this._stackedOnPoints,t,this._coordSys,n),u=l.current,c=l.stackedOnCurrent,d=l.next,p=l.stackedOnNext;a&&(u=h(l.current,n,a),c=h(l.stackedOnCurrent,n,a),d=h(l.next,n,a),p=h(l.stackedOnNext,n,a)),i.shape.__points=l.current,i.shape.points=u,v.updateProps(i,{shape:{points:d}},s),o&&(o.setShape({points:u,stackedOnPoints:c}),v.updateProps(o,{shape:{points:d,stackedOnPoints:p}},s));for(var f=[],g=l.status,y=0;y<g.length;y++){var x=g[y].cmd;if("="===x){var _=e.getItemGraphicEl(g[y].idx1);_&&f.push({el:_,ptIdx:y})}}i.animators&&i.animators.length&&i.animators[0].during(function(){for(var e=0;e<f.length;e++){var t=f[e].el;t.attr("position",i.shape.__points[f[e].ptIdx])}})},remove:function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},function(e,t,n){function r(e){this.group=new i.Group,this._symbolCtor=e||o}function a(e,t,n){var r=e.getItemLayout(t);return r&&!isNaN(r[0])&&!isNaN(r[1])&&!(n&&n(t))&&"none"!==e.getItemVisual(t,"symbol")}var i=n(279),o=n(352),s=r.prototype;s.updateData=function(e,t){var n=this.group,r=e.hostModel,o=this._data,s=this._symbolCtor,l={itemStyle:r.getModel("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:r.getModel("itemStyle.emphasis").getItemStyle(),symbolRotate:r.get("symbolRotate"),symbolOffset:r.get("symbolOffset"),hoverAnimation:r.get("hoverAnimation"),labelModel:r.getModel("label.normal"),hoverLabelModel:r.getModel("label.emphasis")};e.diff(o).add(function(r){var i=e.getItemLayout(r);if(a(e,r,t)){var o=new s(e,r,l);o.attr("position",i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,c){var h=o.getItemGraphicEl(c),d=e.getItemLayout(u);return a(e,u,t)?(h?(h.updateData(e,u,l),i.updateProps(h,{position:d},r)):(h=new s(e,u),h.attr("position",d)),n.add(h),void e.setItemGraphicEl(u,h)):void n.remove(h)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)})}).execute(),this._data=e},s.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl(function(t,n){var r=e.getItemLayout(n);t.attr("position",r)})},s.remove=function(e){var t=this.group,n=this._data;n&&(e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)})}):t.removeAll())},e.exports=r},function(e,t,n){function r(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]}function a(e){return[e[0]/2,e[1]/2]}function i(e,t,n){u.Group.call(this),this.updateData(e,t,n)}function o(e,t){this.parent.drift(e,t)}var s=n(239),l=n(339),u=n(279),c=n(242),h=i.prototype;h._createSymbol=function(e,t,n,r){this.removeAll();var i=t.hostModel,s=t.getItemVisual(n,"color"),c=l.createSymbol(e,-1,-1,2,2,s);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=o,u.initProps(c,{scale:a(r)},i,n),this._symbolType=e,this.add(c)},h.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},h.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":"pointer"},h.updateData=function(e,t,n){this.silent=!1;var i=e.getItemVisual(t,"symbol")||"circle",o=e.hostModel,s=r(e,t);if(i!==this._symbolType)this._createSymbol(i,e,t,s);else{var l=this.childAt(0);l.silent=!1,u.updateProps(l,{scale:a(s)},o,t)}this._updateCommon(e,t,s,n),this._seriesModel=o};var d=["itemStyle","normal"],p=["itemStyle","emphasis"],f=["label","normal"],g=["label","emphasis"];h._updateCommon=function(e,t,n,r){var i=this.childAt(0),o=e.hostModel,l=e.getItemVisual(t,"color");"image"!==i.type&&i.useStyle({strokeNoScale:!0}),r=r||null;var h=r&&r.itemStyle,m=r&&r.hoverItemStyle,v=r&&r.symbolRotate,y=r&&r.symbolOffset,x=r&&r.labelModel,_=r&&r.hoverLabelModel,b=r&&r.hoverAnimation;if(!r||e.hasItemOption){var w=e.getItemModel(t);h=w.getModel(d).getItemStyle(["color"]),m=w.getModel(p).getItemStyle(),v=w.getShallow("symbolRotate"),y=w.getShallow("symbolOffset"),x=w.getModel(f),_=w.getModel(g),b=w.getShallow("hoverAnimation")}else m=s.extend({},m);var S=i.style;i.attr("rotation",(v||0)*Math.PI/180||0),y&&i.attr("position",[c.parsePercent(y[0],n[0]),c.parsePercent(y[1],n[1])]),i.setColor(l),i.setStyle(h);var M=e.getItemVisual(t,"opacity");null!=M&&(S.opacity=M);for(var C,T,A=e.dimensions.slice();A.length&&(C=A.pop(),T=e.getDimensionInfo(C).type,"ordinal"===T||"time"===T););null!=C&&x.getShallow("show")?(u.setText(S,x,l),S.text=s.retrieve(o.getFormattedLabel(t,"normal"),e.get(C,t))):S.text="",null!=C&&_.getShallow("show")?(u.setText(m,_,l),m.text=s.retrieve(o.getFormattedLabel(t,"emphasis"),e.get(C,t))):m.text="",i.off("mouseover").off("mouseout").off("emphasis").off("normal"),i.hoverStyle=m,u.setHoverStyle(i);var I=a(n);if(b&&o.isAnimationEnabled()){var E=function(){var e=I[1]/I[0];this.animateTo({scale:[Math.max(1.1*I[0],I[0]+3),Math.max(1.1*I[1],I[1]+3*e)]},400,"elasticOut")},P=function(){this.animateTo({scale:I},400,"elasticOut")};i.on("mouseover",E).on("mouseout",P).on("emphasis",E).on("normal",P)}},h.fadeOut=function(e){var t=this.childAt(0);this.silent=t.silent=!0,t.style.text="",u.updateProps(t,{scale:[0,0]},this._seriesModel,this.dataIndex,e)},s.inherits(i,u.Group),e.exports=i},function(e,t){function n(e){return e>=0?1:-1}function r(e,t,r){for(var a,i=e.getBaseAxis(),o=e.getOtherAxis(i),s=i.onZero?0:o.scale.getExtent()[0],l=o.dim,u="x"===l||"radius"===l?1:0,c=t.stackedOn,h=t.get(l,r);c&&n(c.get(l,r))===n(h);){a=c;break}var d=[];return d[u]=t.get(i.dim,r),d[1-u]=a?a.get(l,r,!0):s,e.dataToPoint(d)}function a(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}e.exports=function(e,t,n,i,o,s){for(var l=a(e,t),u=[],c=[],h=[],d=[],p=[],f=[],g=[],m=s.dimensions,v=0;v<l.length;v++){var y=l[v],x=!0;switch(y.cmd){case"=":var _=e.getItemLayout(y.idx),b=t.getItemLayout(y.idx1);(isNaN(_[0])||isNaN(_[1]))&&(_=b.slice()),u.push(_),c.push(b),h.push(n[y.idx]),d.push(i[y.idx1]),g.push(t.getRawIndex(y.idx1));break;case"+":var w=y.idx;u.push(o.dataToPoint([t.get(m[0],w,!0),t.get(m[1],w,!0)])),c.push(t.getItemLayout(w).slice()),h.push(r(o,t,w)),d.push(i[w]),g.push(t.getRawIndex(w));break;case"-":var w=y.idx,S=e.getRawIndex(w);S!==w?(u.push(e.getItemLayout(w)),c.push(s.dataToPoint([e.get(m[0],w,!0),e.get(m[1],w,!0)])),h.push(n[w]),d.push(r(s,e,w)),g.push(S)):x=!1}x&&(p.push(y),f.push(f.length))}f.sort(function(e,t){return g[e]-g[t]});for(var M=[],C=[],T=[],A=[],I=[],v=0;v<f.length;v++){var w=f[v];M[v]=u[w],C[v]=c[w],T[v]=h[w],A[v]=d[w],I[v]=p[w]}return{current:M,next:C,stackedOnCurrent:T,stackedOnNext:A,status:I}}},function(e,t,n){function r(e){return isNaN(e[0])||isNaN(e[1])}function a(e,t,n,a,i,o,g,m,v,y,x){for(var _=0,b=n,w=0;w<a;w++){var S=t[b];if(b>=i||b<0)break;if(r(S)){if(x){b+=o;continue}break}if(b===n)e[o>0?"moveTo":"lineTo"](S[0],S[1]),h(p,S);else if(v>0){var M=b+o,C=t[M];if(x)for(;C&&r(t[M]);)M+=o,C=t[M];var T=.5,A=t[_],C=t[M];if(!C||r(C))h(f,S);else{r(C)&&!x&&(C=S),s.sub(d,C,A);var I,E;if("x"===y||"y"===y){var P="x"===y?0:1;I=Math.abs(S[P]-A[P]),E=Math.abs(S[P]-C[P])}else I=s.dist(S,A),E=s.dist(S,C);T=E/(E+I),c(f,S,d,-v*(1-T))}l(p,p,m),u(p,p,g),l(f,f,m),u(f,f,g),e.bezierCurveTo(p[0],p[1],f[0],f[1],S[0],S[1]),c(p,S,d,v*T)}else e.lineTo(S[0],S[1]);_=b,b+=o}return w}function i(e,t){var n=[1/0,1/0],r=[-(1/0),-(1/0)];if(t)for(var a=0;a<e.length;a++){var i=e[a];i[0]<n[0]&&(n[0]=i[0]),i[1]<n[1]&&(n[1]=i[1]),i[0]>r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])}return{min:t?n:r,max:t?r:n}}var o=n(281),s=n(245),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,d=[],p=[],f=[];e.exports={Polyline:o.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(e,t){var n=t.points,o=0,s=n.length,l=i(n,t.smoothConstraint);if(t.connectNulls){for(;s>0&&r(n[s-1]);s--);for(;o<s&&r(n[o]);o++);}for(;o<s;)o+=a(e,n,o,s,s,1,l.min,l.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),Polygon:o.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(e,t){var n=t.points,o=t.stackedOnPoints,s=0,l=n.length,u=t.smoothMonotone,c=i(n,t.smoothConstraint),h=i(o,t.smoothConstraint);if(t.connectNulls){for(;l>0&&r(n[l-1]);l--);for(;s<l&&r(n[s]);s++);}for(;s<l;){var d=a(e,n,s,l,l,1,c.min,c.max,t.smooth,u,t.connectNulls);a(e,o,s+d-1,d,l,-1,h.min,h.max,t.stackedOnSmooth,u,t.connectNulls),s+=d+1,e.closePath()}}})}},function(e,t){e.exports=function(e,t,n,r,a){r.eachRawSeriesByType(e,function(e){var a=e.getData(),i=e.get("symbol")||t,o=e.get("symbolSize");a.setVisual({legendSymbol:n||i,symbol:i,symbolSize:o}),r.isSeriesFiltered(e)||("function"==typeof o&&a.each(function(t){var n=e.getRawValue(t),r=e.getDataParams(t);a.setItemVisual(t,"symbolSize",o(n,r))}),a.each(function(e){var t=a.getItemModel(e),n=t.getShallow("symbol",!0),r=t.getShallow("symbolSize",!0);null!=n&&a.setItemVisual(e,"symbol",n),null!=r&&a.setItemVisual(e,"symbolSize",r)}))})}},function(e,t){e.exports=function(e,t){t.eachSeriesByType(e,function(e){var t=e.getData(),n=e.coordinateSystem;if(n){var r=n.dimensions;1===r.length?t.each(r[0],function(e,r){t.setItemLayout(r,isNaN(e)?[NaN,NaN]:n.dataToPoint(e))}):2===r.length&&t.each(r,function(e,r,a){t.setItemLayout(a,isNaN(e)||isNaN(r)?[NaN,NaN]:n.dataToPoint([e,r]))},!0)}})}},function(e,t){var n={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-(1/0),n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return t},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return t},nearest:function(e){return e[0]}},r=function(e,t){return Math.round(e.length/2)};e.exports=function(e,t,a){t.eachSeriesByType(e,function(e){var t=e.getData(),a=e.get("sampling"),i=e.coordinateSystem;if("cartesian2d"===i.type&&a){var o=i.getBaseAxis(),s=i.getOtherAxis(o),l=o.getExtent(),u=l[1]-l[0],c=Math.round(t.count()/u);if(c>1){var h;"string"==typeof a?h=n[a]:"function"==typeof a&&(h=a),h&&(t=t.downSample(s.dim,1/c,h,r),e.setData(t))}}},this)}},function(e,t,n){"use strict";var r=n(279),a=n(239),i=n(236);n(359),n(368),i.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new r.Rect({shape:e.coordinateSystem.getRect(),style:a.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})},function(e,t,n){function r(e,t,n){return e.getCoordSysModel()===t}function a(e){var t,n=e.model,r=n.getFormattedLabels(),a=n.getModel("axisLabel.textStyle"),i=1,o=r.length;o>40&&(i=Math.ceil(o/40));for(var s=0;s<o;s+=i)if(!e.isLabelIgnored(s)){var l=a.getTextRect(r[s]);t?t.union(l):t=l}return t}function i(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}function o(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}function s(e,t){return h.map(y,function(t){var n=e.getReferringComponents(t)[0];if(__DEV__&&!n)throw new Error(t+' "'+h.retrieve(e.get(t+"Index"),e.get(t+"Id"),0)+'" not found');return n})}function l(e){return"cartesian2d"===e.get("coordinateSystem")}var u=n(256),c=n(340),h=n(239),d=n(360),p=n(362),f=h.each,g=c.ifAxisCrossZero,m=c.niceScaleExtent;n(364);var v=i.prototype;v.type="grid",v.axisPointerEnabled=!0,v.getRect=function(){return this._rect},v.update=function(e,t){function n(e){var t=r[e];for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a&&("category"===a.type||!g(a)))return!0}return!1}var r=this._axesMap;this._updateScale(e,this.model),f(r.x,function(e){m(e.scale,e.model)}),f(r.y,function(e){m(e.scale,e.model)}),f(r.x,function(e){n("y")&&(e.onZero=!1)}),f(r.y,function(e){n("x")&&(e.onZero=!1)}),this.resize(this.model,t)},v.resize=function(e,t){function n(){f(i,function(e){var t=e.isHorizontal(),n=t?[0,r.width]:[0,r.height],a=e.inverse?1:0;e.setExtent(n[a],n[1-a]),o(e,t?r.x:r.y)})}var r=u.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=r;var i=this._axesList;n(),e.get("containLabel")&&(f(i,function(e){if(!e.model.get("axisLabel.inside")){var t=a(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get("axisLabel.margin");r[n]-=t[n]+i,"top"===e.position?r.y+=t.height+i:"left"===e.position&&(r.x+=t.width+i)}}}),n())},v.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var r in n)if(n.hasOwnProperty(r))return n[r];return n[t]}},v.getAxes=function(){return this._axesList.slice()},v.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}h.isObject(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,a=this._coordsList;r<a.length;r++)if(a[r].getAxis("x").index===e||a[r].getAxis("y").index===t)return a[r]},v.getCartesians=function(){return this._coordsList.slice()},v.convertToPixel=function(e,t,n){var r=this._findConvertTarget(e,t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},v.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(e,t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},v._findConvertTarget=function(e,t){var n,r,a=t.seriesModel,i=t.xAxisModel||a&&a.getReferringComponents("xAxis")[0],o=t.yAxisModel||a&&a.getReferringComponents("yAxis")[0],s=t.gridModel,l=this._coordsList;if(a)n=a.coordinateSystem,h.indexOf(l,n)<0&&(n=null);else if(i&&o)n=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)r=this.getAxis("x",i.componentIndex);else if(o)r=this.getAxis("y",o.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(n=this._coordsList[0])}return{cartesian:n,axis:r}},v.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},v._initCartesian=function(e,t,n){function a(n){return function(a,l){if(r(a,e,t)){var u=a.get("position");"x"===n?"top"!==u&&"bottom"!==u&&(u="bottom",i[u]&&(u="top"===u?"bottom":"top")):"left"!==u&&"right"!==u&&(u="left",i[u]&&(u="left"===u?"right":"left")),i[u]=!0;var h=new p(n,c.createScaleByModel(a),[0,0],a.get("type"),u),d="category"===h.type;h.onBand=d&&a.get("boundaryGap"),h.inverse=a.get("inverse"),h.onZero=a.get("axisLine.onZero"),a.axis=h,h.model=a,h.grid=this,h.index=l,this._axesList.push(h),o[n][l]=h,s[n]++}}}var i={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};return t.eachComponent("xAxis",a("x"),this),t.eachComponent("yAxis",a("y"),this),s.x&&s.y?(this._axesMap=o,void f(o.x,function(t,n){f(o.y,function(r,a){var i="x"+n+"y"+a,o=new d(i);o.grid=this,o.model=e,this._coordsMap[i]=o,this._coordsList.push(o),o.addAxis(t),o.addAxis(r)},this)},this)):(this._axesMap={},void(this._axesList=[]))},v._updateScale=function(e,t){function n(e,t,n){f(n.coordDimToDataDim(t.dim),function(n){t.scale.unionExtentFromData(e,n)})}h.each(this._axesList,function(e){e.scale.setExtent(1/0,-(1/0))}),e.eachSeries(function(a){if(l(a)){var i=s(a,e),o=i[0],u=i[1];if(!r(o,t,e)||!r(u,t,e))return;var c=this.getCartesian(o.componentIndex,u.componentIndex),h=a.getData(),d=c.getAxis("x"),p=c.getAxis("y");"list"===h.type&&(n(h,d,a),n(h,p,a))}},this)},v.getTooltipAxes=function(e){var t=[],n=[];return f(this.getCartesians(),function(r){var a=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),i=r.getOtherAxis(a);h.indexOf(t,a)<0&&t.push(a),h.indexOf(n,i)<0&&n.push(i)}),{baseAxes:t,otherAxes:n}};var y=["xAxis","yAxis"];i.create=function(e,t){var n=[];return e.eachComponent("grid",function(r,a){var o=new i(r,e,t);o.name="grid_"+a,o.resize(r,t),r.coordinateSystem=o,n.push(o)}),e.eachSeries(function(t){if(l(t)){var n=s(t,e),r=n[0],a=n[1],i=r.getCoordSysModel();if(__DEV__){if(!i)throw new Error('Grid "'+h.retrieve(r.get("gridIndex"),r.get("gridId"),0)+'" not found');if(r.getCoordSysModel()!==a.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(r.componentIndex,a.componentIndex)}}),n},i.dimensions=i.prototype.dimensions=d.prototype.dimensions,n(261).register("cartesian2d",i),e.exports=i},function(e,t,n){"use strict";function r(e){i.call(this,e)}var a=n(239),i=n(361);r.prototype={constructor:r,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoints:function(e,t){return e.mapArray(["x","y"],function(e,t){return this.dataToPoint([e,t])},t,this)},dataToPoint:function(e,t){var n=this.getAxis("x"),r=this.getAxis("y");return[n.toGlobalCoord(n.dataToCoord(e[0],t)),r.toGlobalCoord(r.dataToCoord(e[1],t))]},pointToData:function(e,t){var n=this.getAxis("x"),r=this.getAxis("y");return[n.coordToData(n.toLocalCoord(e[0]),t),r.coordToData(r.toLocalCoord(e[1]),t)]},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")}},a.inherits(r,i),e.exports=r},function(e,t,n){"use strict";function r(e){return this._axes[e]}var a=n(239),i=function(e){this._axes={},this._dimList=[],this.name=e||""};i.prototype={constructor:i,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return a.map(this._dimList,r,this)},getAxesByScale:function(e){return e=e.toLowerCase(),a.filter(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,r=e instanceof Array?[]:{},a=0;a<n.length;a++){var i=n[a],o=this._axes[i];r[i]=o[t](e[i])}return r}},e.exports=i},function(e,t,n){var r=n(239),a=n(335),i=n(363),o=function(e,t,n,r,i){a.call(this,e,t,n),this.type=r||"value",this.position=i||"bottom"};o.prototype={constructor:o,index:0,onZero:!1,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},getLabelInterval:function(){var e=this._labelInterval;return e||(e=this._labelInterval=i(this)),e},isLabelIgnored:function(e){if("category"===this.type){var t=this.getLabelInterval();return"function"==typeof t&&!t(e,this.scale.getLabel(e))||e%(t+1)}},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},r.inherits(o,a),e.exports=o},function(e,t,n){"use strict";var r=n(239),a=n(340);e.exports=function(e){var t=e.model,n=t.getModel("axisLabel"),i=n.get("interval");return"category"!==e.type||"auto"!==i?"auto"===i?0:i:a.getAxisLabelInterval(r.map(e.scale.getTicks(),e.dataToCoord,e),t.getFormattedLabels(),n.getModel("textStyle").getFont(),e.isHorizontal())}},function(e,t,n){"use strict";n(365);var r=n(254);e.exports=r.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})},function(e,t,n){"use strict";function r(e,t){return t.type||(t.data?"category":"value")}var a=n(254),i=n(239),o=n(366),s=a.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});i.merge(s.prototype,n(347));var l={offset:0};o("x",s,r,l),o("y",s,r,l),e.exports=s},function(e,t,n){var r=n(367),a=n(239),i=n(254),o=n(256),s=["value","category","time","log"];e.exports=function(e,t,n,l){a.each(s,function(i){t.extend({type:e+"Axis."+i,mergeDefaultAndTheme:function(t,r){var s=this.layoutMode,l=s?o.getLayoutParams(t):{},u=r.getTheme();a.merge(t,u.get(i+"Axis")),a.merge(t,this.getDefaultOption()),t.type=n(e,t),s&&o.mergeLayoutParam(t,l,s)},defaultOption:a.mergeAll([{},r[i+"Axis"],l],!0)})}),i.registerSubTypeDefaulter(e+"Axis",a.curry(n,e))}},function(e,t,n){var r=n(239),a={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},i=r.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a),o=r.merge({boundaryGap:[0,0],splitNumber:5},a),s=r.defaults({scale:!0,min:"dataMin",max:"dataMax"},o),l=r.defaults({logBase:10},o);l.scale=!0,e.exports={categoryAxis:i,valueAxis:o,timeAxis:s,logAxis:l}},function(e,t,n){"use strict";n(365),n(369)},function(e,t,n){var r=n(239),a=n(279),i=n(370),o=n(371),s=n(373),l=i.ifIgnoreOnTick,u=i.getInterval,c=["axisLine","axisLabel","axisTick","axisName"],h=["splitArea","splitLine"],d=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new a.Group,this.group.add(this._axisGroup),e.get("show")){var u=e.getCoordSysModel(),p=s.layout(u,e),f=new i(e,p);r.each(c,f.add,f),this._axisGroup.add(f.getGroup()),r.each(h,function(t){e.get(t+".show")&&this["_"+t](e,u,p.labelInterval)},this),a.groupTransition(l,this._axisGroup,e),d.superCall(this,"render",e,t,n,o)}},_splitLine:function(e,t,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),c=s.get("color"),h=u(o,n);c=r.isArray(c)?c:[c];for(var d=t.coordinateSystem.getRect(),p=i.isHorizontal(),f=0,g=i.getTicksCoords(),m=i.scale.getTicks(),v=[],y=[],x=s.getLineStyle(),_=0;_<g.length;_++)if(!l(i,_,h)){var b=i.toGlobalCoord(g[_]);p?(v[0]=b,v[1]=d.y,y[0]=b,y[1]=d.y+d.height):(v[0]=d.x,v[1]=b,y[0]=d.x+d.width,y[1]=b);var w=f++%c.length;this._axisGroup.add(new a.Line(a.subPixelOptimizeLine({anid:"line_"+m[_],shape:{x1:v[0],y1:v[1],x2:y[0],y2:y[1]},style:r.defaults({stroke:c[w]},x),silent:!0})))}}},_splitArea:function(e,t,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),c=s.get("color"),h=t.coordinateSystem.getRect(),d=i.getTicksCoords(),p=i.scale.getTicks(),f=i.toGlobalCoord(d[0]),g=i.toGlobalCoord(d[0]),m=0,v=u(o,n),y=s.getAreaStyle();c=r.isArray(c)?c:[c];for(var x=1;x<d.length;x++)if(!l(i,x,v)){var _,b,w,S,M=i.toGlobalCoord(d[x]);i.isHorizontal()?(_=f,b=h.y,w=M-_,S=h.height):(_=h.x,b=g,w=h.width,S=M-b);var C=m++%c.length;this._axisGroup.add(new a.Rect({anid:"area_"+p[x],shape:{x:_,y:b,width:w,height:S},style:r.defaults({fill:c[C]},y),silent:!0})),f=_+w,g=b+S}}}});d.extend({type:"xAxis"}),d.extend({type:"yAxis"})},function(e,t,n){function r(e){var t={componentType:e.mainType};return t[e.mainType+"Index"]=e.componentIndex,t}function a(e,t,n,r){var a,i,o=p(n-e.rotation),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return f(o-x/2)?(i=l?"bottom":"top",a="center"):f(o-1.5*x)?(i=l?"top":"bottom",a="center"):(i="middle",a=o<1.5*x&&o>x/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:i}}function i(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)}function o(e,t){var n=e.get("axisLabel.showMinLabel"),r=e.get("axisLabel.showMaxLabel"),a=t[0],i=t[1],o=t[t.length-1],l=t[t.length-2];n===!1?a.ignore=!0:null!=e.getMin()&&s(a,i)&&(n?i.ignore=!0:a.ignore=!0),r===!1?o.ignore=!0:null!=e.getMax()&&s(l,o)&&(r?l.ignore=!0:o.ignore=!0)}function s(e,t,n){var r=e&&e.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(r&&a){var i=m.identity([]);return m.rotate(i,i,-e.rotation),r.applyTransform(m.mul([],i,e.getLocalTransform())),a.applyTransform(m.mul([],i,t.getLocalTransform())),r.intersect(a)}}var l=n(239),u=n(241),c=n(279),h=n(247),d=n(242),p=d.remRadian,f=d.isRadianAroundZero,g=n(245),m=n(246),v=g.applyTransform,y=l.retrieve,x=Math.PI,_=function(e,t){this.opt=t,this.axisModel=e,l.defaults(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var n=new c.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};_.prototype={constructor:_,hasBuilder:function(e){return!!b[e]},add:function(e){b[e].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),r=this._transform,a=[n[0],0],i=[n[1],0];r&&(v(a,a,r),v(i,i,r)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"line",shape:{x1:a[0],y1:a[1],x2:i[0],y2:i[1]},style:l.extend({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var e=this.axisModel,t=e.axis;if(e.get("axisTick.show")&&!t.scale.isBlank())for(var n=e.getModel("axisTick"),r=this.opt,a=n.getModel("lineStyle"),i=n.get("length"),o=M(n,r.labelInterval),s=t.getTicksCoords(n.get("alignWithLabel")),u=t.scale.getTicks(),h=[],d=[],p=this._transform,f=0;f<s.length;f++)if(!S(t,f,o)){var g=s[f];h[0]=g,h[1]=0,d[0]=g,d[1]=r.tickDirection*i,p&&(v(h,h,p),v(d,d,p)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"tick_"+u[f],shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:l.defaults(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")
|
|
50
|
-
}),z2:2,silent:!0})))}},axisLabel:function(){var e=this.opt,t=this.axisModel,n=t.axis,a=y(e.axisLabelShow,t.get("axisLabel.show"));if(a&&!n.scale.isBlank()){var s=t.getModel("axisLabel"),u=s.getModel("textStyle"),d=s.get("margin"),p=n.scale.getTicks(),f=t.getFormattedLabels(),g=(y(e.labelRotate,s.get("rotate"))||0)*x/180,m=w(e.rotation,g,e.labelDirection),v=t.get("data"),_=[],b=i(t),M=t.get("triggerEvent");l.each(p,function(a,i){if(!S(n,i,e.labelInterval)){var o=u;v&&v[a]&&v[a].textStyle&&(o=new h(v[a].textStyle,u,t.ecModel));var s=o.getTextColor()||t.get("axisLine.lineStyle.color"),l=n.dataToCoord(a),p=[l,e.labelOffset+e.labelDirection*d],g=n.scale.getLabel(a),y=new c.Text({anid:"label_"+a,style:{text:f[i],textAlign:o.get("align",!0)||m.textAlign,textVerticalAlign:o.get("baseline",!0)||m.textVerticalAlign,textFont:o.getFont(),fill:"function"==typeof s?s("category"===n.type?g:"value"===n.type?a+"":a,i):s},position:p,rotation:m.rotation,silent:b,z2:10});M&&(y.eventData=r(t),y.eventData.targetType="axisLabel",y.eventData.value=g),this._dumbGroup.add(y),y.updateTransform(),_.push(y),this.group.add(y),y.decomposeTransform()}},this),o(t,_)}},axisName:function(){var e=this.opt,t=this.axisModel,n=y(e.axisName,t.get("name"));if(n){var o,s=t.get("nameLocation"),h=e.nameDirection,d=t.getModel("nameTextStyle"),p=t.get("nameGap")||0,f=this.axisModel.axis.getExtent(),g=f[0]>f[1]?-1:1,m=["start"===s?f[0]-g*p:"end"===s?f[1]+g*p:(f[0]+f[1])/2,"middle"===s?e.labelOffset+h*p:0],v=t.get("nameRotate");null!=v&&(v=v*x/180);var _;"middle"===s?o=w(e.rotation,null!=v?v:e.rotation,h):(o=a(e,s,v||0,f),_=e.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(o.rotation)),!isFinite(_)&&(_=null)));var b=d.getFont(),S=t.get("nameTruncate",!0)||{},M=S.ellipsis,C=y(e.nameTruncateMaxWidth,S.maxWidth,_),T=null!=M&&null!=C?u.truncateText(n,C,b,M,{minChar:2,placeholder:S.placeholder}):n,A=t.get("tooltip",!0),I=t.mainType,E={componentType:I,name:n,$vars:["name"]};E[I+"Index"]=t.componentIndex;var P=new c.Text({anid:"name",__fullText:n,__truncatedText:T,style:{text:T,textFont:b,fill:d.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:o.textAlign,textVerticalAlign:o.textVerticalAlign},position:m,rotation:o.rotation,silent:i(t),z2:1,tooltip:A&&A.show?l.extend({content:n,formatter:function(){return n},formatterParams:E},A):null});t.get("triggerEvent")&&(P.eventData=r(t),P.eventData.targetType="axisName",P.eventData.name=n),this._dumbGroup.add(P),P.updateTransform(),this.group.add(P),P.decomposeTransform()}}},w=_.innerTextLayout=function(e,t,n){var r,a,i=p(t-e);return f(i)?(a=n>0?"top":"bottom",r="center"):f(i-x)?(a=n>0?"bottom":"top",r="center"):(a="middle",r=i>0&&i<x?n>0?"right":"left":n>0?"left":"right"),{rotation:i,textAlign:r,textVerticalAlign:a}},S=_.ifIgnoreOnTick=function(e,t,n){var r,a=e.scale;return"ordinal"===a.type&&("function"==typeof n?(r=a.getTicks()[t],!n(r,a.getLabel(r))):t%(n+1))},M=_.getInterval=function(e,t){var n=e.get("interval");return null!=n&&"auto"!=n||(n=t),n};e.exports=_},function(e,t,n){function r(e,t,n,r,s,l){var u=o.getAxisPointerClass(e.axisPointerClass);if(u){var c=i.getAxisPointerModel(t);c?(e._axisPointer||(e._axisPointer=new u)).render(t,c,r,l):a(e,r)}}function a(e,t,n){var r=e._axisPointer;r&&r.dispose(t,n),e._axisPointer=null}var i=n(372),o=n(236).extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,a){this.axisPointerClass&&i.fixValue(e),o.superApply(this,"render",arguments),r(this,e,t,n,a,!0)},updateAxisPointer:function(e,t,n,a,i){r(this,e,t,n,a,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),o.superApply(this,"remove",arguments)},dispose:function(e,t){a(this,t),o.superApply(this,"dispose",arguments)}}),s=[];o.registerAxisPointerClass=function(e,t){if(__DEV__&&s[e])throw new Error("axisPointer "+e+" exists");s[e]=t},o.getAxisPointerClass=function(e){return e&&s[e]},e.exports=o},function(e,t,n){function r(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),s=i.get("link",!0)||[],u=[];h(n.getCoordinateSystems(),function(n){function c(r,c,h){var d=h.model.getModel("axisPointer",i),p=d.get("show");if(p&&("auto"!==p||r||l(d))){null==c&&(c=d.get("triggerTooltip")),d=r?a(h,v,i,t,r,c):d;var m=d.get("snap"),y=f(h.model),x=c||m||"category"===h.type,_=e.axesInfo[y]={key:y,axis:h,coordSys:n,axisPointerModel:d,triggerTooltip:c,involveSeries:x,snap:m,useHandle:l(d),seriesModels:[]};g[y]=_,e.seriesInvolved|=x;var b=o(s,h);if(null!=b){var w=u[b]||(u[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}if(n.axisPointerEnabled){var p=f(n.model),g=e.coordSysAxesInfo[p]={};e.coordSysMap[p]=n;var m=n.model,v=m.getModel("tooltip",r);if(h(n.getAxes(),d(c,!1,null)),n.getTooltipAxes&&r&&v.get("show")){var y="axis"===v.get("trigger"),x="cross"===v.get("axisPointer.type"),_=n.getTooltipAxes(v.get("axisPointer.axis"));(y||x)&&h(_.baseAxes,d(c,!x||"cross",y)),x&&h(_.otherAxes,d(c,"cross",!1))}}})}function a(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s={};h(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=u.clone(o.get(e))}),s.snap="category"!==e.type&&!!i,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===a&&(l.show=!0,!i)){var d=s.lineStyle=o.get("crossStyle");d&&u.defaults(l.textStyle||(l.textStyle={}),d.textStyle)}return e.model.getModel("axisPointer",new c(s,n,r))}function i(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get("tooltip.trigger",!0);n&&"none"!==r&&r!==!1&&"item"!==r&&t.get("axisPointer.show",!0)!==!1&&h(e.coordSysAxesInfo[f(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})},this)}function o(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(s(i[r+"AxisId"],n.id)||s(i[r+"AxisIndex"],n.componentIndex)||s(i[r+"AxisName"],n.name))return a}}function s(e,t){return"all"===e||u.isArray(e)&&u.indexOf(e,t)>=0||e===t}function l(e){return!!e.get("handle.show")}var u=n(239),c=n(247),h=u.each,d=u.curry,p={};p.collect=function(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return r(n,e,t),n.seriesInvolved&&i(n,e),n},p.fixValue=function(e){var t=p.getAxisInfo(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=l(n);null==i&&(a.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==o||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}},p.getAxisInfo=function(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[f(e)]},p.getAxisPointerModel=function(e){var t=p.getAxisInfo(e);return t&&t.axisPointerModel};var f=p.makeKey=function(e){return e.type+"||"+e.id};e.exports=p},function(e,t,n){var r=n(239),a={};a.layout=function(e,t,n){function a(e,t){var n=i.getAxis(e);return n.toGlobalCoord(n.dataToCoord(0))}n=n||{};var i=e.coordinateSystem,o=t.axis,s={},l=o.position,u=o.onZero?"onZero":l,c=o.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p=t.get("offset")||0,f={x:{top:d[2]-p,bottom:d[3]+p},y:{left:d[0]-p,right:d[1]+p}};f.x.onZero=Math.max(Math.min(a("y"),f.x.bottom),f.x.top),f.y.onZero=Math.max(Math.min(a("x"),f.y.right),f.y.left),s.position=["y"===c?f.y[u]:d[0],"x"===c?f.x[u]:d[3]],s.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=g[l],s.labelOffset=o.onZero?f[c][l]-f[c].onZero:0,t.get("axisTick.inside")&&(s.tickDirection=-s.tickDirection),r.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(s.labelDirection=-s.labelDirection);var m=t.get("axisLabel.rotate");return s.labelRotate="top"===u?-m:m,s.labelInterval=o.getLabelInterval(),s.z2=1,s},e.exports=a},function(e,t,n){var r=n(239);n(359),n(375),n(377);var a=n(380),i=n(236);i.registerLayout(r.curry(a,"bar")),i.registerVisual(function(e){e.eachSeriesByType("bar",function(e){var t=e.getData();t.setVisual("legendSymbol","roundRect")})}),n(358)},function(e,t,n){e.exports=n(376).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect"})},function(e,t,n){"use strict";var r=n(263),a=n(337);e.exports=r.extend({type:"series.__base_bar__",getInitialData:function(e,t){if(__DEV__){var n=e.coordinateSystem;if("cartesian2d"!==n)throw new Error("Bar only support cartesian2d coordinateSystem")}return a(e.data,this,t)},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(e,!0),r=this.getData(),a=r.getLayout("offset"),i=r.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return n[o]+=a+i/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})},function(e,t,n){"use strict";function r(e,t,n,r,a,i,o){var s=new u.Rect({shape:l.extend({},r)});if(i){var c=s.shape,h=a?"height":"width",d={};c[h]=0,d[h]=r[h],u[o?"updateProps":"initProps"](s,{shape:d},i,t)}return s}function a(e,t,n){n.style.text="",u.updateProps(n,{shape:{width:0}},t,e,function(){n.parent&&n.parent.remove(n)})}function i(e,t,n){var r=e.getItemLayout(t),a=s(n,r),i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}}function o(e,t,n,r,a,i,o){var s=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),d=r.getModel("itemStyle.normal"),p=r.getModel("itemStyle.emphasis").getBarItemStyle();e.setShape("r",d.get("barBorderRadius")||0),e.useStyle(l.defaults({fill:s,opacity:h},d.getBarItemStyle()));var f=o?a.height>0?"bottom":"top":a.width>0?"left":"right";c.setLabel(e.style,p,r,s,i,n,f),u.setHoverStyle(e,p)}function s(e,t){var n=e.get(h)||0;return Math.min(n,Math.abs(t.width),Math.abs(t.height))}var l=n(239),u=n(279),c=n(378),h=["itemStyle","normal","barBorderWidth"];l.extend(n(247).prototype,n(379));var d=n(236).extendChartView({type:"bar",render:function(e,t,n){var r=e.get("coordinateSystem");return"cartesian2d"===r&&this._renderOnCartesian(e,t,n),this.group},dispose:l.noop,_renderOnCartesian:function(e,t,n){var s=this.group,l=e.getData(),c=this._data,h=e.coordinateSystem,d=h.getBaseAxis(),p=d.isHorizontal(),f=e.isAnimationEnabled()?e:null;l.diff(c).add(function(t){if(l.hasValue(t)){var n=l.getItemModel(t),a=i(l,t,n),u=r(l,t,n,a,p,f);l.setItemGraphicEl(t,u),s.add(u),o(u,l,t,n,a,e,p)}}).update(function(t,n){var a=c.getItemGraphicEl(n);if(!l.hasValue(t))return void s.remove(a);var h=l.getItemModel(t),d=i(l,t,h);a?u.updateProps(a,{shape:d},f,t):a=r(l,t,h,d,p,f,!0),l.setItemGraphicEl(t,a),s.add(a),o(a,l,t,h,d,e,p)}).remove(function(e){var t=c.getItemGraphicEl(e);t&&a(e,f,t)}).execute(),this._data=l},remove:function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl(function(t){a(t.dataIndex,e,t)}):n.removeAll()}});e.exports=d},function(e,t,n){function r(e,t,n,r,a){i.setText(e,t,n),e.text=r,"outside"===e.textPosition&&(e.textPosition=a)}var a=n(239),i=n(279),o={};o.setLabel=function(e,t,n,i,o,s,l){var u=n.getModel("label.normal"),c=n.getModel("label.emphasis");u.get("show")?r(e,u,i,a.retrieve(o.getFormattedLabel(s,"normal"),o.getRawValue(s)),l):e.text="",c.get("show")?r(t,c,i,a.retrieve(o.getFormattedLabel(s,"emphasis"),o.getRawValue(s)),l):t.text=""},e.exports=o},function(e,t,n){var r=n(250)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getBarItemStyle:function(e){var t=r.call(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}}},function(e,t,n){"use strict";function r(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function a(e){return e.dim+e.index}function i(e,t){var n={};s.each(e,function(e,t){var i=e.getData(),o=e.coordinateSystem,s=o.getBaseAxis(),l=s.getExtent(),c="category"===s.type?s.getBandWidth():Math.abs(l[1]-l[0])/i.count(),h=n[a(s)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[a(s)]=h;var p=r(e);d[p]||h.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=u(e.get("barWidth"),c),g=u(e.get("barMaxWidth"),c),m=e.get("barGap"),v=e.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(h.remainedWidth,f),d[p].width=f,h.remainedWidth-=f),g&&(d[p].maxWidth=g),null!=m&&(h.gap=m),null!=v&&(h.categoryGap=v)});var i={};return s.each(n,function(e,t){i[t]={};var n=e.stacks,r=e.bandWidth,a=u(e.categoryGap,r),o=u(e.gap,1),l=e.remainedWidth,c=e.autoWidthCount,h=(l-a)/(c+(c-1)*o);h=Math.max(h,0),s.each(n,function(e,t){var n=e.maxWidth;n&&n<h&&(n=Math.min(n,l),e.width&&(n=Math.min(n,e.width)),l-=n,e.width=n,c--)}),h=(l-a)/(c+(c-1)*o),h=Math.max(h,0);var d,p=0;s.each(n,function(e,t){e.width||(e.width=h),d=e,p+=e.width*(1+o)}),d&&(p-=d.width*o);var f=-p/2;s.each(n,function(e,n){i[t][n]=i[t][n]||{offset:f,width:e.width},f+=e.width*(1+o)})}),i}function o(e,t,n){var o=i(s.filter(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type})),l={},u={};t.eachSeriesByType(e,function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),s=r(e),c=o[a(i)][s],h=c.offset,d=c.width,p=n.getOtherAxis(i),f=e.get("barMinHeight")||0,g=i.onZero?p.toGlobalCoord(p.dataToCoord(0)):p.getGlobalExtent()[0],m=n.dataToPoints(t,!0);l[s]=l[s]||[],u[s]=u[s]||[],t.setLayout({offset:h,size:d}),t.each(p.dim,function(e,n){if(!isNaN(e)){l[s][n]||(l[s][n]={p:g,n:g},u[s][n]={p:g,n:g});var r,a,i,o,c=e>=0?"p":"n",v=m[n],y=l[s][n][c],x=u[s][n][c];p.isHorizontal()?(r=y,a=v[1]+h,i=v[0]-x,o=d,u[s][n][c]+=i,Math.abs(i)<f&&(i=(i<0?-1:1)*f),l[s][n][c]+=i):(r=v[0]+h,a=y,i=d,o=v[1]-x,u[s][n][c]+=o,Math.abs(o)<f&&(o=(o<=0?-1:1)*f),l[s][n][c]+=o),t.setItemLayout(n,{x:r,y:a,width:i,height:o})}},!0)},this)}var s=n(239),l=n(242),u=l.parsePercent;e.exports=o},function(e,t,n){var r=n(239),a=n(236);n(382),n(384),n(385)("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),a.registerVisual(r.curry(n(386),"pie")),a.registerLayout(r.curry(n(387),"pie")),a.registerProcessor(r.curry(n(389),"pie"))},function(e,t,n){"use strict";var r=n(333),a=n(239),i=n(240),o=n(338),s=n(383),l=n(236).extendSeriesModel({type:"series.pie",init:function(e){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(e.data),this._defaultLabelLine(e)},mergeOption:function(e){l.superCall(this,"mergeOption",e),this.updateSelectedMap(this.option.data)},getInitialData:function(e,t){var n=o(["value"],e.data),a=new r(n,this);return a.initData(e.data),a},getDataParams:function(e){var t=this.getData(),n=l.superCall(this,"getDataParams",e),r=t.getSum("value");return n.percent=r?+(t.get("value",e)/r*100).toFixed(2):0,n.$vars.push("percent"),n},_defaultLabelLine:function(e){i.defaultEmphasis(e.labelLine,["show"]);var t=e.labelLine.normal,n=e.labelLine.emphasis;t.show=t.show&&e.label.normal.show,n.show=n.show&&e.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,stillShowZeroSum:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationType:"expansion",animationEasing:"cubicOut",data:[]}});a.mixin(l,s),e.exports=l},function(e,t,n){var r=n(239);e.exports={updateSelectedMap:function(e){this._selectTargetMap=r.reduce(e||[],function(e,t){return e[t.name]=t,e},{})},select:function(e){var t=this._selectTargetMap,n=t[e],a=this.get("selectedMode");"single"===a&&r.each(t,function(e){e.selected=!1}),n&&(n.selected=!0)},unSelect:function(e){var t=this._selectTargetMap[e];t&&(t.selected=!1)},toggleSelected:function(e){var t=this._selectTargetMap[e];if(null!=t)return this[t.selected?"unSelect":"select"](e),t.selected},isSelected:function(e){var t=this._selectTargetMap[e];return t&&t.selected}}},function(e,t,n){function r(e,t,n,r){var i=t.getData(),o=this.dataIndex,s=i.getName(o),l=t.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:e,name:s,seriesId:t.id}),i.each(function(e){a(i.getItemGraphicEl(e),i.getItemLayout(e),t.isSelected(i.getName(e)),l,n)})}function a(e,t,n,r,a){var i=(t.startAngle+t.endAngle)/2,o=Math.cos(i),s=Math.sin(i),l=n?r:0,u=[o*l,s*l];a?e.animate().when(200,{position:u}).start("bounceOut"):e.attr("position",u)}function i(e,t){function n(){i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore}function r(){i.ignore=i.normalIgnore,o.ignore=o.normalIgnore}s.Group.call(this);var a=new s.Sector({z2:2}),i=new s.Polyline,o=new s.Text;this.add(a),this.add(i),this.add(o),this.updateData(e,t,!0),this.on("emphasis",n).on("normal",r).on("mouseover",n).on("mouseout",r)}function o(e,t,n,r,a){var i=r.getModel("textStyle"),o="inside"===a||"inner"===a;return{fill:i.getTextColor()||(o?"#fff":e.getItemVisual(t,"color")),opacity:e.getItemVisual(t,"opacity"),textFont:i.getFont(),text:l.retrieve(e.hostModel.getFormattedLabel(t,n),e.getName(t))}}var s=n(279),l=n(239),u=i.prototype;u.updateData=function(e,t,n){function r(){o.stopAnimation(!0),o.animateTo({shape:{r:h.r+10}},300,"elasticOut")}function i(){o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")}var o=this.childAt(0),u=e.hostModel,c=e.getItemModel(t),h=e.getItemLayout(t),d=l.extend({},h);if(d.label=null,n){o.setShape(d);var p=u.getShallow("animationType");"scale"===p?(o.shape.r=h.r0,s.initProps(o,{shape:{r:h.r}},u,t)):(o.shape.endAngle=h.startAngle,s.updateProps(o,{shape:{endAngle:h.endAngle}},u,t))}else s.updateProps(o,{shape:d},u,t);var f=c.getModel("itemStyle"),g=e.getItemVisual(t,"color");o.useStyle(l.defaults({lineJoin:"bevel",fill:g},f.getModel("normal").getItemStyle())),o.hoverStyle=f.getModel("emphasis").getItemStyle(),a(this,e.getItemLayout(t),c.get("selected"),u.get("selectedOffset"),u.get("animation")),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.get("hoverAnimation")&&u.isAnimationEnabled()&&o.on("mouseover",r).on("mouseout",i).on("emphasis",r).on("normal",i),this._updateLabel(e,t),s.setHoverStyle(this)},u._updateLabel=function(e,t){var n=this.childAt(1),r=this.childAt(2),a=e.hostModel,i=e.getItemModel(t),l=e.getItemLayout(t),u=l.label,c=e.getItemVisual(t,"color");s.updateProps(n,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},a,t),s.updateProps(r,{style:{x:u.x,y:u.y}},a,t),r.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u.textAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=i.getModel("label.normal"),d=i.getModel("label.emphasis"),p=i.getModel("labelLine.normal"),f=i.getModel("labelLine.emphasis"),g=h.get("position")||d.get("position");r.setStyle(o(e,t,"normal",h,g)),r.ignore=r.normalIgnore=!h.get("show"),r.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:c,opacity:e.getItemVisual(t,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),r.hoverStyle=o(e,t,"emphasis",d,g),n.hoverStyle=f.getModel("lineStyle").getLineStyle();var m=p.get("smooth");m&&m===!0&&(m=.4),n.setShape({smooth:m})},l.inherits(i,s.Group);var c=n(278).extend({type:"pie",init:function(){var e=new s.Group;this._sectorGroup=e},render:function(e,t,n,a){if(!a||a.from!==this.uid){var o=e.getData(),s=this._data,u=this.group,c=t.get("animation"),h=!s,d=e.get("animationType"),p=l.curry(r,this.uid,e,c,n),f=e.get("selectedMode");if(o.diff(s).add(function(e){var t=new i(o,e);h&&"scale"!==d&&t.eachChild(function(e){e.stopAnimation(!0)}),f&&t.on("click",p),o.setItemGraphicEl(e,t),u.add(t)}).update(function(e,t){var n=s.getItemGraphicEl(t);n.updateData(o,e),n.off("click"),f&&n.on("click",p),u.add(n),o.setItemGraphicEl(e,n)}).remove(function(e){var t=s.getItemGraphicEl(e);u.remove(t)}).execute(),c&&h&&o.count()>0&&"scale"!==d){var g=o.getItemLayout(0),m=Math.max(n.getWidth(),n.getHeight())/2,v=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,e))}this._data=o}},dispose:function(){},_createClipPath:function(e,t,n,r,a,i,o){var l=new s.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:r,endAngle:r,clockwise:a}});return s.initProps(l,{shape:{endAngle:r+(a?1:-1)*Math.PI*2}},o,i),l},containPoint:function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var a=e[0]-r.cx,i=e[1]-r.cy,o=Math.sqrt(a*a+i*i);return o<=r.r&&o>=r.r0}}});e.exports=c},function(e,t,n){var r=n(236),a=n(239);e.exports=function(e,t){a.each(t,function(t){t.update="updateView",r.registerAction(t,function(n,r){var a={};return r.eachComponent({mainType:"series",subType:e,query:n},function(e){e[t.method]&&e[t.method](n.name);var r=e.getData();r.each(function(t){var n=r.getName(t);a[n]=e.isSelected(n)||!1})}),{name:n.name,selected:a}})})}},function(e,t){e.exports=function(e,t){var n={};t.eachRawSeriesByType(e,function(e){var r=e.getRawData(),a={};if(!t.isSeriesFiltered(e)){var i=e.getData();i.each(function(e){var t=i.getRawIndex(e);a[t]=e}),r.each(function(t){var o=a[t],s=null!=o&&i.getItemVisual(o,"color",!0);if(s)r.setItemVisual(t,"color",s);else{var l=r.getItemModel(t),u=l.get("itemStyle.normal.color")||e.getColorFromPalette(r.getName(t),n);r.setItemVisual(t,"color",u),null!=o&&i.setItemVisual(o,"color",u)}})}})}},function(e,t,n){var r=n(242),a=r.parsePercent,i=n(388),o=n(239),s=2*Math.PI,l=Math.PI/180;e.exports=function(e,t,n,u){t.eachSeriesByType(e,function(e){var t=e.get("center"),u=e.get("radius");o.isArray(u)||(u=[0,u]),o.isArray(t)||(t=[t,t]);var c=n.getWidth(),h=n.getHeight(),d=Math.min(c,h),p=a(t[0],c),f=a(t[1],h),g=a(u[0],d/2),m=a(u[1],d/2),v=e.getData(),y=-e.get("startAngle")*l,x=e.get("minAngle")*l,_=v.getSum("value"),b=Math.PI/(_||v.count())*2,w=e.get("clockwise"),S=e.get("roseType"),M=e.get("stillShowZeroSum"),C=v.getDataExtent("value");C[0]=0;var T=s,A=0,I=y,E=w?1:-1;if(v.each("value",function(e,t){var n;if(isNaN(e))return void v.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:p,cy:f,r0:g,r:S?NaN:m});n="area"!==S?0===_&&M?b:e*b:s/(v.count()||1),n<x?(n=x,T-=x):A+=e;var a=I+E*n;v.setItemLayout(t,{angle:n,startAngle:I,endAngle:a,clockwise:w,cx:p,cy:f,r0:g,r:S?r.linearMap(e,C,[g,m]):m}),I=a},!0),T<s)if(T<=.001){var P=s/v.count();v.each(function(e){var t=v.getItemLayout(e);t.startAngle=y+E*e*P,t.endAngle=y+E*(e+1)*P})}else b=T/A,I=y,v.each("value",function(e,t){var n=v.getItemLayout(t),r=n.angle===x?x:e*b;n.startAngle=I,n.endAngle=I+E*r,I+=E*r});i(e,m,c,h)})}},function(e,t,n){"use strict";function r(e,t,n,r,a,i,o){function s(t,n,r,a){for(var i=t;i<n;i++)if(e[i].y+=r,i>t&&i+1<n&&e[i+1].y>e[i].y+e[i].height)return void l(i,r/2);l(n-1,r/2)}function l(t,n){for(var r=t;r>=0&&(e[r].y-=n,!(r>0&&e[r].y>e[r-1].y+e[r-1].height));r--);}function u(e,t,n,r,a,i){for(var o=i>0?t?Number.MAX_VALUE:0:t?Number.MAX_VALUE:0,s=0,l=e.length;s<l;s++)if("center"!==e[s].position){var u=Math.abs(e[s].y-r),c=e[s].len,h=e[s].len2,d=u<a+c?Math.sqrt((a+c+h)*(a+c+h)-u*u):Math.abs(e[s].x-n);t&&d>=o&&(d=o-10),!t&&d<=o&&(d=o+10),e[s].x=n+d*i,o=d}}e.sort(function(e,t){return e.y-t.y});for(var c,h=0,d=e.length,p=[],f=[],g=0;g<d;g++)c=e[g].y-h,c<0&&s(g,d,-c,a),h=e[g].y+e[g].height;o-h<0&&l(d-1,h-o);for(var g=0;g<d;g++)e[g].y>=n?f.push(e[g]):p.push(e[g]);u(p,!1,t,n,r,a),u(f,!0,t,n,r,a)}function a(e,t,n,a,i,o){for(var s=[],l=[],u=0;u<e.length;u++)e[u].x<t?s.push(e[u]):l.push(e[u]);r(l,t,n,a,1,i,o),r(s,t,n,a,-1,i,o);for(var u=0;u<e.length;u++){var c=e[u].linePoints;if(c){var h=c[1][0]-c[2][0];e[u].x<t?c[2][0]=e[u].x+3:c[2][0]=e[u].x-3,c[1][1]=c[2][1]=e[u].y,c[1][0]=c[2][0]+h}}}var i=n(243);e.exports=function(e,t,n,r){var o,s,l=e.getData(),u=[],c=!1;l.each(function(n){var r,a,h,d,p=l.getItemLayout(n),f=l.getItemModel(n),g=f.getModel("label.normal"),m=g.get("position")||f.get("label.emphasis.position"),v=f.getModel("labelLine.normal"),y=v.get("length"),x=v.get("length2"),_=(p.startAngle+p.endAngle)/2,b=Math.cos(_),w=Math.sin(_);o=p.cx,s=p.cy;var S="inside"===m||"inner"===m;if("center"===m)r=p.cx,a=p.cy,d="center";else{var M=(S?(p.r+p.r0)/2*b:p.r*b)+o,C=(S?(p.r+p.r0)/2*w:p.r*w)+s;if(r=M+3*b,a=C+3*w,!S){var T=M+b*(y+t-p.r),A=C+w*(y+t-p.r),I=T+(b<0?-1:1)*x,E=A;r=I+(b<0?-5:5),a=E,h=[[M,C],[T,A],[I,E]]}d=S?"center":b>0?"left":"right"}var P=g.getModel("textStyle").getFont(),L=g.get("rotate")?b<0?-_+Math.PI:-_:0,D=e.getFormattedLabel(n,"normal")||l.getName(n),k=i.getBoundingRect(D,P,d,"top");c=!!L,p.label={x:r,y:a,position:m,height:k.height,len:y,len2:x,linePoints:h,textAlign:d,verticalAlign:"middle",font:P,rotation:L},S||u.push(p.label)}),!c&&e.get("avoidLabelOverlap")&&a(u,o,s,t,n,r)}},function(e,t){e.exports=function(e,t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.eachSeriesByType(e,function(e){var t=e.getData();t.filterSelf(function(e){for(var r=t.getName(e),a=0;a<n.length;a++)if(!n[a].isSelected(r))return!1;return!0},this)},this)}},function(e,t,n){var r=n(239),a=n(236);n(391),n(392),a.registerVisual(r.curry(n(355),"scatter","circle",null)),a.registerLayout(r.curry(n(356),"scatter")),n(358)},function(e,t,n){"use strict";var r=n(337),a=n(263);e.exports=a.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis"],getInitialData:function(e,t){var n=r(e.data,this,t);return n},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(e,t,n){var r=n(351),a=n(393);n(236).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new r,this._largeSymbolDraw=new a},render:function(e,t,n){var r=e.getData(),a=this._largeSymbolDraw,i=this._normalSymbolDraw,o=this.group,s=e.get("large")&&r.count()>e.get("largeThreshold")?a:i;this._symbolDraw=s,s.updateData(r),o.add(s.group),o.remove(s===a?i.group:a.group)},updateLayout:function(e){this._symbolDraw.updateLayout(e)},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t,!0)},dispose:function(){}})},function(e,t,n){function r(){this.group=new a.Group,this._symbolEl=new o({})}var a=n(279),i=n(339),o=a.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(e,t){for(var n=t.points,r=t.sizes,a=this.symbolProxy,i=a.shape,o=0;o<n.length;o++){var s=n[o],l=r[o];l[0]<4?e.rect(s[0]-l[0]/2,s[1]-l[1]/2,l[0],l[1]):(i.x=s[0]-l[0]/2,i.y=s[1]-l[1]/2,i.width=l[0],i.height=l[1],a.buildPath(e,i,!0))}},findDataIndex:function(e,t){for(var n=this.shape,r=n.points,a=n.sizes,i=r.length-1;i>=0;i--){var o=r[i],s=a[i],l=o[0]-s[0]/2,u=o[1]-s[1]/2;if(e>=l&&t>=u&&e<=l+s[0]&&t<=u+s[1])return i}return-1}}),s=r.prototype;s.updateData=function(e){this.group.removeAll();var t=this._symbolEl,n=e.hostModel;t.setShape({points:e.mapArray(e.getItemLayout),sizes:e.mapArray(function(t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array||(n=[n,n]),n})}),t.symbolProxy=i.createSymbol(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor,t.useStyle(n.getModel("itemStyle.normal").getItemStyle(["color"]));var r=e.getVisual("color");r&&t.setColor(r),t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n)}),this.group.add(t)},s.updateLayout=function(e){var t=e.getData();this._symbolEl.setShape({points:t.mapArray(t.getItemLayout)})},s.remove=function(){this.group.removeAll()},e.exports=r},function(e,t,n){var r=n(239),a=n(236);n(395),n(400),n(401),a.registerVisual(r.curry(n(386),"radar")),a.registerVisual(r.curry(n(355),"radar","circle",null)),a.registerLayout(n(402)),a.registerProcessor(r.curry(n(389),"radar")),a.registerPreprocessor(n(403))},function(e,t,n){n(396),n(398),n(399)},function(e,t,n){function r(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=a.map(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,r=new i(n,new o);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n),this.cx,this.cy,this.r,this.startAngle}var a=n(239),i=n(397),o=n(343),s=n(242),l=n(340);r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,a=this.cx+e*Math.cos(r),i=this.cy-e*Math.sin(r);return[a,i]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var a,i=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(i-u.angle);c<o&&(a=u,s=l,o=c)}return[s,+(a&&a.coodToData(r))]},r.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i)/2;this.cx=s.parsePercent(n[0],r),this.cy=s.parsePercent(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180,this.r=s.parsePercent(e.get("radius"),o),a.each(this._indicatorAxes,function(e,t){e.setExtent(0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},r.prototype.update=function(e,t){function n(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}var r=this._indicatorAxes,i=this._model;a.each(r,function(e){e.scale.setExtent(1/0,-(1/0))}),e.eachSeriesByType("radar",function(t,n){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();a.each(r,function(e){e.scale.unionExtentFromData(o,e.dim)})}},this);var o=i.get("splitNumber");a.each(r,function(e,t){var r=l.getScaleExtent(e.scale,e.model);l.niceScaleExtent(e.scale,e.model);var a=e.model,i=e.scale,u=a.getMin(),c=a.getMax(),h=i.getInterval();if(null!=u&&null!=c)i.setInterval((c-u)/o);else if(null!=u){var d;do d=u+h*o,i.setExtent(+u,d),i.setInterval(h),h=n(h);while(d<r[1]&&isFinite(d)&&isFinite(r[1]))}else if(null!=c){var p;do p=c-h*o,i.setExtent(p,+c),i.setInterval(h),h=n(h);while(p>r[0]&&isFinite(p)&&isFinite(r[0]))}else{var f=i.getTicks().length-1;f>o&&(h=n(h));var g=Math.round((r[0]+r[1])/2/h)*h,m=Math.round(o/2);i.setExtent(s.round(g-m*h),s.round(g+(o-m)*h)),i.setInterval(h)}})},r.dimensions=[],r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])}),n},n(261).register("radar",r),e.exports=r},function(e,t,n){function r(e,t,n){i.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}var a=n(239),i=n(335);a.inherits(r,i),e.exports=r},function(e,t,n){function r(e,t){return s.defaults({show:t},e)}var a=n(367),i=a.valueAxis,o=n(247),s=n(239),l=n(347),u=n(236).extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),i=this.get("axisLabel"),u=this.get("name.textStyle"),c=this.get("name.show"),h=this.get("name.formatter"),d=this.get("nameGap"),p=this.get("triggerEvent"),f=s.map(this.get("indicator")||[],function(f){if(null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0),f=s.merge(s.clone(f),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:a,axisLabel:i,name:f.text,nameLocation:"end",nameGap:d,nameTextStyle:u,triggerEvent:p},!1),c||(f.name=""),"string"==typeof h){var g=f.name;f.name=h.replace("{value}",null!=g?g:"")}else"function"==typeof h&&(f.name=h(f.name,f));var m=s.extend(new o(f,null,this.ecModel),l);return m.mainType="radar",
|
|
51
|
-
m.componentIndex=this.componentIndex,m},this);this.getIndicatorModels=function(){return f}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:s.merge({lineStyle:{color:"#bbb"}},i.axisLine),axisLabel:r(i.axisLabel,!1),axisTick:r(i.axisTick,!1),splitLine:r(i.splitLine,!0),splitArea:r(i.splitArea,!0),indicator:[]}});e.exports=u},function(e,t,n){var r=n(370),a=n(239),i=n(279),o=["axisLine","axisLabel","axisTick","axisName"];e.exports=n(236).extendComponentView({type:"radar",render:function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=a.map(n,function(e){var n=new r(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n});a.each(i,function(e){a.each(o,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(e){function t(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}var n=e.coordinateSystem,r=n.getIndicatorAxes();if(r.length){var o=e.get("shape"),s=e.getModel("splitLine"),l=e.getModel("splitArea"),u=s.getModel("lineStyle"),c=l.getModel("areaStyle"),h=s.get("show"),d=l.get("show"),p=u.get("color"),f=c.get("color");p=a.isArray(p)?p:[p],f=a.isArray(f)?f:[f];var g=[],m=[];if("circle"===o)for(var v=r[0].getTicksCoords(),y=n.cx,x=n.cy,_=0;_<v.length;_++){if(h){var b=t(g,p,_);g[b].push(new i.Circle({shape:{cx:y,cy:x,r:v[_]}}))}if(d&&_<v.length-1){var b=t(m,f,_);m[b].push(new i.Ring({shape:{cx:y,cy:x,r0:v[_],r:v[_+1]}}))}}else for(var w=-1,S=a.map(r,function(e,t){var r=e.getTicksCoords();return w=Math.max(r.length-1,w),a.map(r,function(e){return n.coordToPoint(e,t)})}),M=[],_=0;_<=w;_++){for(var C=[],T=0;T<r.length;T++)C.push(S[T][_]);if(C[0]?C.push(C[0].slice()):__DEV__&&console.error("Can't draw value axis "+_),h){var b=t(g,p,_);g[b].push(new i.Polyline({shape:{points:C}}))}if(d&&M){var b=t(m,f,_-1);m[b].push(new i.Polygon({shape:{points:C.concat(M)}}))}M=C.slice().reverse()}var A=u.getLineStyle(),I=c.getAreaStyle();a.each(m,function(e,t){this.group.add(i.mergePath(e,{style:a.defaults({stroke:"none",fill:f[t%f.length]},I),silent:!0}))},this),a.each(g,function(e,t){this.group.add(i.mergePath(e,{style:a.defaults({fill:"none",stroke:p[t%p.length]},A),silent:!0}))},this)}}})},function(e,t,n){"use strict";var r=n(263),a=n(333),i=n(338),o=n(239),s=n(241).encodeHTML,l=r.extend({type:"series.radar",dependencies:["radar"],init:function(e){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(e,t){var n=e.data||[],r=i([],n,{extraPrefix:"indicator_"}),o=new a(r,this);return o.initData(n),o},formatTooltip:function(e){var t=this.getRawValue(e),n=this.coordinateSystem,r=n.getIndicatorAxes(),a=this.getData().getName(e);return s(""===a?this.name:a)+"<br/>"+o.map(r,function(e,n){return s(e.name+" : "+t[n])}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}});e.exports=l},function(e,t,n){function r(e){return i.isArray(e)||(e=[+e,+e]),e}var a=n(279),i=n(239),o=n(339);e.exports=n(236).extendChartView({type:"radar",render:function(e,t,n){function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle",a=e.getItemVisual(t,"color");if("none"!==n){var i=o.createSymbol(n,-.5,-.5,1,1,a);return i.attr({style:{strokeNoScale:!0},z2:100,scale:r(e.getItemVisual(t,"symbolSize"))}),i}}function l(t,n,r,i,o,l){r.removeAll();for(var u=0;u<n.length-1;u++){var c=s(i,o);c&&(c.__dimIdx=u,t[u]?(c.attr("position",t[u]),a[l?"initProps":"updateProps"](c,{position:n[u]},e,o)):c.attr("position",n[u]),r.add(c))}}function u(e){return i.map(e,function(e){return[c.cx,c.cy]})}var c=e.coordinateSystem,h=this.group,d=e.getData(),p=this._data;d.diff(p).add(function(t){var n=d.getItemLayout(t);if(n){var r=new a.Polygon,i=new a.Polyline,o={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),a.initProps(r,o,e,t),a.initProps(i,o,e,t);var s=new a.Group,c=new a.Group;s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,d,t,!0),d.setItemGraphicEl(t,s)}}).update(function(t,n){var r=p.getItemGraphicEl(n),i=r.childAt(0),o=r.childAt(1),s=r.childAt(2),u={shape:{points:d.getItemLayout(t)}};u.shape.points&&(l(i.shape.points,u.shape.points,s,d,t,!1),a.updateProps(i,u,e),a.updateProps(o,u,e),d.setItemGraphicEl(t,r))}).remove(function(e){h.remove(p.getItemGraphicEl(e))}).execute(),d.eachItemGraphicEl(function(t,n){function r(){u.attr("ignore",v)}function o(){u.attr("ignore",m)}var s=d.getItemModel(n),l=t.childAt(0),u=t.childAt(1),c=t.childAt(2),p=d.getItemVisual(n,"color");h.add(t),l.useStyle(i.defaults(s.getModel("lineStyle.normal").getLineStyle(),{fill:"none",stroke:p})),l.hoverStyle=s.getModel("lineStyle.emphasis").getLineStyle();var f=s.getModel("areaStyle.normal"),g=s.getModel("areaStyle.emphasis"),m=f.isEmpty()&&f.parentModel.isEmpty(),v=g.isEmpty()&&g.parentModel.isEmpty();v=v&&m,u.ignore=m,u.useStyle(i.defaults(f.getAreaStyle(),{fill:p,opacity:.7})),u.hoverStyle=g.getAreaStyle();var y=s.getModel("itemStyle.normal").getItemStyle(["color"]),x=s.getModel("itemStyle.emphasis").getItemStyle(),_=s.getModel("label.normal"),b=s.getModel("label.emphasis");c.eachChild(function(t){t.setStyle(y),t.hoverStyle=i.clone(x);var r=d.get(d.dimensions[t.__dimIdx],n);a.setText(t.style,_,p),t.setStyle({text:_.get("show")?i.retrieve(e.getFormattedLabel(n,"normal",null,t.__dimIdx),r):""}),a.setText(t.hoverStyle,b,p),t.hoverStyle.text=b.get("show")?i.retrieve(e.getFormattedLabel(n,"emphasis",null,t.__dimIdx),r):""}),t.off("mouseover").off("mouseout").off("normal").off("emphasis"),t.on("emphasis",r).on("mouseover",r).on("normal",o).on("mouseout",o),a.setHoverStyle(t)}),this._data=d},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},function(e,t){e.exports=function(e){e.eachSeriesByType("radar",function(e){function t(e,t){r[t]=r[t]||[],r[t][i]=a.dataToPoint(e,i)}var n=e.getData(),r=[],a=e.coordinateSystem;if(a){for(var i=0;i<a.getIndicatorAxes().length;i++){var o=n.dimensions[i];n.each(o,t)}n.each(function(e){r[e][0]&&r[e].push(r[e][0].slice()),n.setItemLayout(e,r[e])})}})}},function(e,t,n){var r=n(239);e.exports=function(e){var t=e.polar;if(t){r.isArray(t)||(t=[t]);var n=[];r.each(t,function(t,a){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],r.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}r.each(e.series,function(e){"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}},function(e,t,n){var r=n(236),a=r.PRIORITY;n(405),n(415),n(421),n(406),r.registerLayout(n(423)),r.registerVisual(n(424)),r.registerProcessor(a.PROCESSOR.STATISTIC,n(425)),r.registerPreprocessor(n(426)),n(385)("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(e,t,n){var r=n(333),a=n(263),i=n(239),o=n(338),s=n(241),l=s.encodeHTML,u=s.addCommas,c=n(383),h=n(406),d=a.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(e){e=this._fillOption(e,this.getMapType()),this.option=e,d.superApply(this,"init",arguments),this.updateSelectedMap(e.data)},getInitialData:function(e){var t=o(["value"],e.data||[]),n=new r(t,this);return n.initData(e.data),n},mergeOption:function(e){e.data&&(e=this._fillOption(e,this.getMapType())),d.superCall(this,"mergeOption",e),this.updateSelectedMap(this.option.data)},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(e,t){return e=i.extend({},e),e.data=h.getFilledRegions(e.data,t),e},getRawValue:function(e){return this.getData().get("value",e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e){for(var t=this.getData(),n=u(this.getRawValue(e)),r=t.getName(e),a=this.seriesGroup,i=[],o=0;o<a.length;o++){var s=a[o].originalData.indexOfName(r);isNaN(a[o].originalData.get("value",s))||i.push(l(a[o].name))}return i.join(", ")+"<br />"+l(r+" : "+n)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});i.mixin(d,c),e.exports=d},function(e,t,n){function r(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],a=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(a[0])||isNaN(a[1])?__DEV__&&console.error("Invalid boundingCoords"):this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}var i,s=this.getBoundingRect(),u=e.get("layoutCenter"),c=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),p=e.get("aspectScale")||.75,f=s.width/s.height*p,g=!1;u&&c&&(u=[l.parsePercent(u[0],h),l.parsePercent(u[1],d)],c=l.parsePercent(c,Math.min(h,d)),isNaN(u[0])||isNaN(u[1])||isNaN(c)?__DEV__&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):g=!0);var m;if(g){var m={};f>1?(m.width=c,m.height=c/f):(m.height=c,m.width=c*f),m.y=u[1]-m.height/2,m.x=u[0]-m.width/2}else i=e.getBoxLayoutParams(),i.aspect=f,m=o.getLayoutRect(i,{width:h,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function a(e,t){s.each(t.get("geoCoord"),function(t,n){e.addGeoCoord(n,t)})}var i=n(407),o=n(256),s=n(239),l=n(242),u={};if(__DEV__)var c=function(e){console.error("Map "+e+" not exists. You can download map file on http://echarts.baidu.com/download-map.html")};var h={dimensions:i.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",function(e,o){var s=e.get("map"),l=u[s];__DEV__&&(l||c(s));var h=new i(s+o,s,l&&l.geoJson,l&&l.specialAreas,e.get("nameMap"));h.zoomLimit=e.get("scaleLimit"),n.push(h),a(h,e),e.coordinateSystem=h,h.model=e,h.resize=r,h.resize(e,t)}),e.eachSeries(function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}});var o={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();o[t]=o[t]||[],o[t].push(e)}}),s.each(o,function(e,o){var l=u[o];__DEV__&&(l||c(e[0].get("map")));var h=s.map(e,function(e){return e.get("nameMap")}),d=new i(o,o,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));d.zoomLimit=s.retrieve.apply(null,s.map(e,function(e){return e.get("scaleLimit")})),n.push(d),d.resize=r,d.resize(e[0],t),s.each(e,function(e){e.coordinateSystem=d,a(d,e)})}),n},registerMap:function(e,t,n){t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),"string"==typeof t&&(t="undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")()),u[e]={geoJson:t,specialAreas:n}},getMap:function(e){return u[e]},getFilledRegions:function(e,t){var n=(e||[]).slice(),r=h.getMap(t),a=r&&r.geoJson;if(!a)return __DEV__&&c(t),e;for(var i={},o=a.features,s=0;s<n.length;s++)i[n[s].name]=n[s];for(var s=0;s<o.length;s++){var l=o[s].properties.name;i[l]||n.push({name:l})}return n}},d=n(236);d.registerMap=h.registerMap,d.getMap=h.getMap,d.parseGeoJSON=n(408),d.loadMap=function(){},d.registerCoordinateSystem("geo",h),e.exports=h},function(e,t,n){function r(e,t,n,r,a){l.call(this,e),this.map=t,this._nameCoordMap={},this.loadGeoJson(n,r,a)}function a(e,t,n,r){var a=n.geoModel,i=n.seriesModel,o=a?a.coordinateSystem:i?i.coordinateSystem||(i.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[e](r):null}var i=n(408),o=n(239),s=n(244),l=n(411),u=[n(412),n(413),n(414)];r.prototype={constructor:r,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},loadGeoJson:function(e,t,n){try{this.regions=e?i(e):[]}catch(e){throw"Invalid geoJson format\n"+e.message}t=t||{},n=n||{};for(var r=this.regions,a={},s=0;s<r.length;s++){var l=r[s].name;l=n[l]||l,r[s].name=l,a[l]=r[s],this.addGeoCoord(l,r[s].center);var c=t[l];c&&r[s].transformTo(c.left,c.top,c.width,c.height)}this._regionsMap=a,this._rect=null,o.each(u,function(e){e(this)},this)},transformTo:function(e,t,n,r){var a=this.getBoundingRect();a=a.clone(),a.y=-a.y-a.height;var i=this._viewTransform;i.transform=a.calculateTransform(new s(e,t,n,r)),i.decomposeTransform();var o=i.scale;o[1]=-o[1],i.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap[e]},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},addGeoCoord:function(e,t){this._nameCoordMap[e]=t},getGeoCoord:function(e){return this._nameCoordMap[e]},getBoundingRect:function(){if(this._rect)return this._rect;for(var e,t=this.regions,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return this._rect=e||new s(0,0,0,0)},dataToPoints:function(e){var t=[];return e.mapArray(["lng","lat"],function(e,n){return t[0]=e,t[1]=n,this.dataToPoint(t)},this)},dataToPoint:function(e){if("string"==typeof e&&(e=this.getGeoCoord(e)),e)return l.prototype.dataToPoint.call(this,e)},convertToPixel:o.curry(a,"dataToPoint"),convertFromPixel:o.curry(a,"pointToData")},o.mixin(r,l),e.exports=r},function(e,t,n){function r(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,r=0;r<n.length;r++)for(var i=n[r],o=i.geometry,s=o.coordinates,l=o.encodeOffsets,u=0;u<s.length;u++){var c=s[u];if("Polygon"===o.type)s[u]=a(c,l[u],t);else if("MultiPolygon"===o.type)for(var h=0;h<c.length;h++){var d=c[h];c[h]=a(d,l[u][h],t)}}return e.UTF8Encoding=!1,e}function a(e,t,n){for(var r=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}var i=n(239),o=n(409);e.exports=function(e){return r(e),i.map(i.filter(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var t=e.properties,n=e.geometry,r=n.coordinates,a=[];"Polygon"===n.type&&a.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),"MultiPolygon"===n.type&&i.each(r,function(e){e[0]&&a.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var s=new o(t.name,a,t.cp);return s.properties=t,s})}},function(e,t,n){function r(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var r=this.getBoundingRect();n=[r.x+r.width/2,r.y+r.height/2]}this.center=n}var a=n(410),i=n(244),o=n(287),s=n(245);r.prototype={constructor:r,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],r=[-t,-t],a=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;o.fromPoints(h,a,l),s.min(n,n,a),s.max(r,r,l)}return 0===c&&(n[0]=n[1]=r[0]=r[1]=0),this._rect=new i(n[0],n[1],r[0]-n[0],r[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++)if("polygon"===n[r].type){var o=n[r].exterior,s=n[r].interiors;if(a.contain(o,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(a.contain(s[l]))continue e;return!0}}return!1},transformTo:function(e,t,n,r){var a=this.getBoundingRect(),o=a.width/a.height;n?r||(r=n/o):n=o*r;for(var l=new i(e,t,n,r),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var d=c[h].exterior,p=c[h].interiors,f=0;f<d.length;f++)s.applyTransform(d[f],d[f],u);for(var g=0;g<(p?p.length:0);g++)for(var f=0;f<p[g].length;f++)s.applyTransform(p[g][f],p[g][f],u)}a=this._rect,a.copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]}},e.exports=r},function(e,t,n){function r(e,t){return Math.abs(e-t)<o}function a(e,t,n){var a=0,o=e[0];if(!o)return!1;for(var s=1;s<e.length;s++){var l=e[s];a+=i(o[0],o[1],l[0],l[1],t,n),o=l}var u=e[0];return r(o[0],u[0])&&r(o[1],u[1])||(a+=i(o[0],o[1],u[0],u[1],t,n)),0!==a}var i=n(294),o=1e-8;e.exports={contain:a}},function(e,t,n){function r(){l.call(this)}function a(e){this.name=e,this.zoomLimit,l.call(this),this._roamTransform=new r,this._viewTransform=new r,this._center,this._zoom}function i(e,t,n,r){var a=n.seriesModel,i=a?a.coordinateSystem:null;return i===this?i[e](r):null}var o=n(245),s=n(246),l=n(269),u=n(239),c=n(244),h=o.applyTransform;u.mixin(r,l),a.prototype={constructor:a,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,r){return this._rect=new c(e,t,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,r){this.transformTo(e,t,n,r),this._viewRect=new c(e,t,n,r)},transformTo:function(e,t,n,r){var a=this.getBoundingRect(),i=this._viewTransform;i.transform=a.calculateTransform(new c(e,t,n,r)),i.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var e=this._viewTransform.getLocalTransform(),t=this._roamTransform,n=this.getDefaultCenter(),r=this.getCenter(),a=this.getZoom();r=o.applyTransform([],r,e),n=o.applyTransform([],n,e),t.origin=r,t.position=[n[0]-r[0],n[1]-r[1]],t.scale=[a,a],this._updateTransform()},_updateTransform:function(){var e=this._roamTransform,t=this._viewTransform;t.parent=e,e.updateTransform(),t.updateTransform(),t.transform&&s.copy(this.transform||(this.transform=[]),t.transform),this.transform?(this.invTransform=this.invTransform||[],s.invert(this.invTransform,this.transform)):this.invTransform=null,this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e){var t=this.transform;return t?h([],e,t):[e[0],e[1]]},pointToData:function(e){var t=this.invTransform;return t?h([],e,t):[e[0],e[1]]},convertToPixel:u.curry(i,"dataToPoint"),convertFromPixel:u.curry(i,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},u.mixin(a,l),e.exports=a},function(e,t,n){for(var r=n(409),a=n(239),i=[126,25],o=[[[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]]],s=0;s<o.length;s++)for(var l=0;l<o[s].length;l++)o[s][l][0]/=10.5,o[s][l][1]/=-14,o[s][l][0]+=i[0],o[s][l][1]+=i[1];e.exports=function(e){"china"===e.map&&e.regions.push(new r("南海诸岛",a.map(o,function(e){return{type:"polygon",exterior:e}}),i))}},function(e,t,n){var r=n(239),a={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};e.exports=function(e){r.each(e.regions,function(e){var t=a[e.name];if(t){var n=e.center;n[0]+=t[0]/10.5,n[1]+=-t[1]/14}})}},function(e,t,n){var r=n(239),a={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};e.exports=function(e){r.each(e.regions,function(e){var t=a[e.name];if(t){var n=e.center;n[0]=t[0],n[1]=t[1]}})}},function(e,t,n){var r=n(279),a=n(416);n(236).extendChartView({type:"map",render:function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){var o=this._mapDraw;o&&i.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new a(n,!0);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,n){var a=e.originalData,i=this.group;a.each("value",function(t,n){if(!isNaN(t)){var o=a.getItemLayout(n);if(o&&o.point){var s=o.point,l=o.offset,u=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=e.mainSeries.getData(),h=a.getName(n),d=h,p=c.indexOfName(h),f=a.getItemModel(n),g=f.getModel("label.normal"),m=f.getModel("label.emphasis"),v=g.getModel("textStyle"),y=m.getModel("textStyle"),x=c.getItemGraphicEl(p);u.setStyle({textPosition:"bottom"});var _=function(){u.setStyle({text:m.get("show")?d:"",textFill:y.getTextColor(),textFont:y.getFont()})},b=function(){u.setStyle({text:g.get("show")?d:"",textFill:v.getTextColor(),textFont:v.getFont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}i.add(u)}}})}})},function(e,t,n){function r(e,t){var n=e.getItemStyle(),r=e.get("areaColor");return null!=r&&(n.fill=r),n}function a(e,t,n,r,a){n.off("click"),n.off("mousedown"),t.get("selectedMode")&&(n.on("mousedown",function(){e._mouseDownFlag=!0}),n.on("click",function(o){if(e._mouseDownFlag){e._mouseDownFlag=!1;for(var s=o.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:h.map(s.__regions,function(e){return{name:e.name,from:a.uid}})};l[t.mainType+"Id"]=t.id,r.dispatchAction(l),i(t,n)}}}))}function i(e,t){t.eachChild(function(t){h.each(t.__regions,function(n){t.trigger(e.isSelected(n.name)?"emphasis":"normal")})})}function o(e,t){var n=new c.Group;this._controller=new s(e.getZr()),this._controllerHost={target:t?n:null},this.group=n,this._updateGroup=t,this._mouseDownFlag}var s=n(417),l=n(419),u=n(420),c=n(279),h=n(239);o.prototype={constructor:o,draw:function(e,t,n,o,s){var l="geo"===e.mainType,u=e.getData&&e.getData();l&&t.eachComponent({mainType:"series",subType:"map"},function(t){u||t.getHostGeoModel()!==e||(u=t.getData())});var d=e.coordinateSystem,p=this.group,f=d.scale,g={position:d.position,scale:f};!p.childAt(0)||s?p.attr(g):c.updateProps(p,g,e),p.removeAll();var m=["itemStyle","normal"],v=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_={};h.each(d.regions,function(t){var n=_[t.name]||(_[t.name]=new c.Group),a=new c.CompoundPath({shape:{paths:[]}});n.add(a);var i,o=e.getRegionModel(t.name)||e,s=o.getModel(m),d=o.getModel(v),g=r(s,f),b=r(d,f),w=o.getModel(y),S=o.getModel(x);if(u){i=u.indexOfName(t.name);var M=u.getItemVisual(i,"color",!0);M&&(g.fill=M)}var C=w.getModel("textStyle"),T=S.getModel("textStyle");h.each(t.geometries,function(e){if("polygon"===e.type){a.shape.paths.push(new c.Polygon({shape:{points:e.exterior}}));for(var t=0;t<(e.interiors?e.interiors.length:0);t++)a.shape.paths.push(new c.Polygon({shape:{points:e.interiors[t]}}))}}),a.setStyle(g),a.style.strokeNoScale=!0,a.culling=!0;var A=w.get("show"),I=S.get("show"),E=u&&isNaN(u.get("value",i)),P=u&&u.getItemLayout(i);if(l||E&&(A||I)||P&&P.showLabel){var L=u?i:t.name,D=e.getFormattedLabel(L,"normal"),k=e.getFormattedLabel(L,"emphasis"),O=new c.Text({style:{text:A?D||t.name:"",fill:C.getTextColor(),textFont:C.getFont(),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:I?k||t.name:"",fill:T.getTextColor(),textFont:T.getFont()},position:t.center.slice(),scale:[1/f[0],1/f[1]],z2:10,silent:!0});n.add(O)}if(u)u.setItemGraphicEl(i,n);else{var o=e.getRegionModel(t.name);a.eventData={componentType:"geo",geoIndex:e.componentIndex,name:t.name,region:o&&o.option||{}}}var R=n.__regions||(n.__regions=[]);R.push(t),c.setHoverStyle(n,b,{hoverSilentOnTouch:!!e.get("selectedMode")}),p.add(n)}),this._updateController(e,t,n),a(this,e,p,n,o),i(e,p)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(e,t,n){function r(){var t={type:"geoRoam",componentType:s};return t[s+"Id"]=e.id,t}var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;i.off("pan").on("pan",function(e,t){this._mouseDownFlag=!1,l.updateViewOnPan(o,e,t),n.dispatchAction(h.extend(r(),{dx:e,dy:t}))},this),i.off("zoom").on("zoom",function(e,t,a){if(this._mouseDownFlag=!1,l.updateViewOnZoom(o,e,t,a),n.dispatchAction(h.extend(r(),{zoom:e,originX:t,originY:a})),this._updateGroup){var i=this.group,s=i.scale;i.traverse(function(e){"text"===e.type&&e.attr("scale",[1/s[0],1/s[1]])})}},this),i.setPointerChecker(function(t,r,i){return a.getViewRectAfterRoam().contain(r,i)&&!u.onIrrelevantElement(t,n,e)})}},e.exports=o},function(e,t,n){function r(e){this.pointerChecker,this._zr=e;var t=h.bind,n=t(a,this),r=t(i,this),u=t(o,this),d=t(s,this),p=t(l,this);c.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t){this.disable(),null==t&&(t=!0),t!==!0&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",r),e.on("mouseup",u)),t!==!0&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",d),e.on("pinch",p))},this.disable=function(){e.off("mousedown",n),e.off("mousemove",r),e.off("mouseup",u),e.off("mousewheel",d),e.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function a(e){if(!e.target||!e.target.draggable){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}}function i(e){if(this._dragging&&(d.stop(e.event),"pinch"!==e.gestureEvent)){if(p.isTaken(this._zr,"globalPan"))return;var t=e.offsetX,n=e.offsetY,r=this._x,a=this._y,i=t-r,o=n-a;this._x=t,this._y=n,d.stop(e.event),this.trigger("pan",i,o,r,a,t,n)}}function o(e){this._dragging=!1}function s(e){if(0!==e.wheelDelta){var t=e.wheelDelta>0?1.1:1/1.1;u.call(this,e,t,e.offsetX,e.offsetY)}}function l(e){if(!p.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;u.call(this,e,t,e.pinchX,e.pinchY)}}function u(e,t,n,r){this.pointerChecker&&this.pointerChecker(e,n,r)&&(d.stop(e.event),this.trigger("zoom",t,n,r))}var c=n(268),h=n(239),d=n(323),p=n(418);h.mixin(r,c),e.exports=r},function(e,t,n){function r(e){return e[a]||(e[a]={})}var a="\0_ec_interaction_mutex",i={take:function(e,t,n){var a=r(e);a[t]=n},release:function(e,t,n){var a=r(e),i=a[t];i===n&&(a[t]=null)},isTaken:function(e,t){return!!r(e)[t]}};n(236).registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),e.exports=i},function(e,t){var n={};n.updateViewOnPan=function(e,t,n){var r=e.target,a=r.position;a[0]+=t,a[1]+=n,r.dirty()},n.updateViewOnZoom=function(e,t,n,r){var a=e.target,i=e.zoomLimit,o=a.position,s=a.scale,l=e.zoom=e.zoom||1;if(l*=t,i){var u=i.min||0,c=i.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/e.zoom;e.zoom=l,o[0]-=(n-o[0])*(h-1),o[1]-=(r-o[1])*(h-1),s[0]*=h,s[1]*=h,a.dirty()},e.exports=n},function(e,t){var n={},r={axisPointer:1,tooltip:1,brush:1};n.onIrrelevantElement=function(e,t,n){var a=t.getComponentByElement(e.topTarget),i=a&&a.coordinateSystem;return a&&a!==n&&!r[a.mainType]&&i&&i.model!==n},e.exports=n},function(e,t,n){var r=n(239),a=n(422),i=n(236);i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){var i=t.coordinateSystem;if("geo"===i.type){var o=a.updateCenterAndZoom(i,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===n&&r.each(t.seriesGroup,function(e){e.setCenter(o.center),e.setZoom(o.zoom)})}})})},function(e,t){var n={};n.updateCenterAndZoom=function(e,t,n){var r=e.getZoom(),a=e.getCenter(),i=t.zoom,o=e.dataToPoint(a);if(null!=t.dx&&null!=t.dy){o[0]-=t.dx,o[1]-=t.dy;var a=e.pointToData(o);e.setCenter(a)}if(null!=i){if(n){var s=n.min||0,l=n.max||1/0;i=Math.max(Math.min(r*i,l),s)/r}e.scale[0]*=i,e.scale[1]*=i;var u=e.position,c=(t.originX-u[0])*(i-1),h=(t.originY-u[1])*(i-1);u[0]-=c,u[1]-=h,e.updateTransform();var a=e.pointToData(o);e.setCenter(a),e.setZoom(i*r)}return{center:e.getCenter(),zoom:e.getZoom()}},e.exports=n},function(e,t,n){var r=n(239);e.exports=function(e){var t={};e.eachSeriesByType("map",function(n){var a=n.getMapType();if(!n.getHostGeoModel()&&!t[a]){var i={};r.each(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each("value",function(e,t){var a=r.getName(t),o=n.getRegion(a);if(o&&!isNaN(e)){var s=i[a]||0,l=n.dataToPoint(o.center);i[a]=s+1,r.setItemLayout(t,{point:l,offset:s})}})});var o=n.getData();o.each(function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!i[t],o.setItemLayout(e,n)}),t[a]=!0}})}},function(e,t){e.exports=function(e){e.eachSeriesByType("map",function(e){var t=e.get("color"),n=e.getModel("itemStyle.normal"),r=n.get("areaColor"),a=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:r,color:a})})}},function(e,t,n){function r(e,t){var n={},r=["value"];return a.each(e,function(e){e.each(r,function(t,r){var a=e.getName(r);n[a]=n[a]||[],isNaN(t)||n[a].push(t)})}),e[0].map(r,function(r,a){for(var i=e[0].getName(a),o=0,s=1/0,l=-(1/0),u=n[i].length,c=0;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var h;return h="min"===t?s:"max"===t?l:"average"===t?o/u:o,0===u?NaN:h})}var a=n(239);e.exports=function(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),a.each(t,function(e,t){for(var n=r(a.map(e,function(e){return e.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}},function(e,t,n){var r=n(239);e.exports=function(e){var t=[];r.each(e.series,function(e){"map"===e.type&&t.push(e)}),r.each(t,function(e){e.map=e.map||e.mapType,r.defaults(e,e.mapLocation)})}},function(e,t,n){var r=n(236);n(428),n(432),n(435),r.registerVisual(n(436)),r.registerLayout(n(438))},function(e,t,n){function r(e){var t=0;s.each(e.children,function(e){r(e);var n=e.value;s.isArray(n)&&(n=n[0]),t+=n});var n=e.value;s.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s.isArray(e.value)?e.value[0]=n:e.value=n}function a(e,t){var n=t.get("color");if(n){e=e||[];var r;if(s.each(e,function(e){var t=new l(e),n=t.get("color");(t.get("itemStyle.normal.color")||n&&"none"!==n)&&(r=!0)}),!r){var a=e[0]||(e[0]={});a.color=n.slice()}return e}}var i=n(263),o=n(429),s=n(239),l=n(247),u=n(241),c=n(431),h=u.encodeHTML,d=u.addCommas;e.exports=i.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,
|
|
52
|
-
left:"center",top:"middle",right:null,bottom:null,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:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n=e.name;null==n&&(n=e.name);var i={name:n,children:e.data};r(i);var s=e.levels||[];return s=e.levels=a(s,t),o.createTree(i,this,s).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),r=d(s.isArray(n)?n[0]:n),a=t.getName(e);return h(a+": "+r)},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=c.wrapTreePathInfo(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap={},this._idIndexMapCount=0);var n=t[e];return null==n&&(t[e]=n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}})},function(e,t,n){function r(e,t){this.root,this.data,this._nodes=[],this.hostModel=e,this.levelModels=i.map(t||[],function(t){return new o(t,e,e.ecModel)})}function a(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var i=n(239),o=n(247),s=n(333),l=n(430),u=n(338),c=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null),e=e||{},i.isString(e)&&(e={order:e});var r,a=e.order||"preorder",o=this[e.attr||"children"];"preorder"===a&&(r=t.call(n,this));for(var s=0;!r&&s<o.length;s++)o[s].eachNode(e,t,n);"postorder"===a&&t.call(n,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var a=n[t].getNodeById(e);if(a)return a}},contains:function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var a=n[t].contains(e);if(a)return a}},getAncestors:function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex),r=this.getLevelModel();return n.getModel(e,(r||t.hostModel).getModel(e))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},r.prototype={constructor:r,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},r.createTree=function(e,t,n){function o(e,t){var n=e.value;p=Math.max(p,i.isArray(n)?n.length:1),d.push(e);var r=new c(e.name,h);t?a(r,t):h.root=r,h._nodes.push(r);var s=e.children;if(s)for(var l=0;l<s.length;l++)o(s[l],r)}var h=new r(t,n),d=[],p=1;o(e),h.root.updateDepthAndHeight(0);var f=u([{name:"value"}],d,{dimCount:p}),g=new s(f,t);return g.initData(d),l({mainData:g,struct:h,structAttr:"tree"}),h.update(),h},e.exports=r},function(e,t,n){function r(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,u(t,n,e),d(n,function(n){d(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,h.curry(a,e))})}),t.wrapMethod("cloneShallow",h.curry(o,e)),d(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,h.curry(i,e))}),h.assert(n[t.dataType]===t)}function a(e,t){if(l(this)){var n=h.extend({},this[p]);n[this.dataType]=t,u(t,n,e)}else c(t,this.dataType,this[f],e);return t}function i(e,t){return e.struct&&e.struct.update(this),t}function o(e,t){return d(t[p],function(n,r){n!==t&&c(n.cloneShallow(),r,t,e)}),t}function s(e){var t=this[f];return null==e||null==t?t:t[p][e]}function l(e){return e[f]===e}function u(e,t,n){e[p]={},d(t,function(t,r){c(t,r,e,n)})}function c(e,t,n,r){n[p][t]=e,e[f]=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=s}var h=n(239),d=h.each,p="\0__link_datas",f="\0__link_mainData";e.exports=r},function(e,t,n){var r=n(239),a={retrieveTargetInfo:function(e,t){if(e&&("treemapZoomToNode"===e.type||"treemapRootToNode"===e.type)){var n=t.getData().tree.root,r=e.targetNode;if(r&&n.contains(r))return{node:r};var a=e.targetNodeId;if(null!=a&&(r=n.getNodeById(a)))return{node:r}}},getPathToRoot:function(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()},aboveViewRoot:function(e,t){var n=a.getPathToRoot(e);return r.indexOf(n,t)>=0},wrapTreePathInfo:function(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}};e.exports=a},function(e,t,n){function r(){return{nodeGroup:[],background:[],content:[]}}function a(e,t,n,r,a,l,u,c,h,d){function p(t){R.dataIndex=u.dataIndex,R.seriesIndex=e.seriesIndex;var n=T.borderWidth,r=Math.max(A-2*n,0),a=Math.max(I-2*n,0);R.culling=!0,R.setShape({x:n,y:n,width:r,height:a});var i=u.getVisual("color",!0);f(R,function(){var e={fill:i},t=u.getModel("itemStyle.emphasis").getItemStyle();g(e,t,i,r,a),R.setStyle(e),s.setHoverStyle(R,t)}),t.add(R)}function f(e,t){E?!e.invisible&&l.push(e):(t(),e.__tmWillVisible||(e.invisible=!1))}function g(t,n,r,a,i){var o=u.getModel(),s=o.get("name");if(T.isLeafRoot){var l=e.get("drillDownIcon",!0);s=l?l+" "+s:s}y(s,t,o,_,r,a,i),y(s,n,o,b,r,a,i)}function y(e,t,n,r,a,i,o){var l=n.getModel(r),u=l.getModel("textStyle");s.setText(t,l,a),t.textAlign=u.get("align"),t.textVerticalAlign=u.get("baseline");var c=u.getTextRect(e);!l.getShallow("show")||c.height>o?t.text="":c.width>i?t.text=u.get("ellipsis")?u.truncateText(e,i,null,{minChar:2}):"":t.text=e}function x(e,r,o,s){var l=null!=L&&n[e][L],u=a[e];return l?(n[e][L]=null,w(u,l,e)):E||(l=new r({z:i(o,s)}),l.__tmDepth=o,l.__tmStorageName=e,C(u,l,e)),t[e][P]=l}function w(e,t,n){var r=e[P]={};r.old="nodeGroup"===n?t.position.slice():o.extend({},t.shape)}function C(e,t,n){var i=e[P]={},o=u.parentNode;if(o&&(!r||"drillDown"===r.direction)){var s=0,l=0,c=a.background[o.getRawIndex()];!r&&c&&c.old&&(s=c.old.width,l=c.old.height),i.old="nodeGroup"===n?[0,l]:{x:s,y:l,width:0,height:0}}i.fadein="nodeGroup"!==n}if(u){var T=u.getLayout();if(T&&T.isInView){var A=T.width,I=T.height,E=T.invisible,P=u.getRawIndex(),L=c&&c.getRawIndex(),D=x("nodeGroup",m);if(D){if(h.add(D),D.attr("position",[T.x||0,T.y||0]),D.__tmNodeWidth=A,D.__tmNodeHeight=I,T.isAboveViewRoot)return D;var k=x("background",v,d,S);k&&(k.setShape({x:0,y:0,width:A,height:I}),f(k,function(){k.setStyle("fill",u.getVisual("borderColor",!0))}),D.add(k));var O=u.viewChildren;if(!O||!O.length){var R=x("content",v,d,M);R&&p(D)}return D}}}}function i(e,t){var n=e*w+t;return(n-1)/n}var o=n(239),s=n(279),l=n(334),u=n(431),c=n(433),h=n(417),d=n(244),p=n(246),f=n(434),g=o.bind,m=s.Group,v=s.Rect,y=o.each,x=3,_=["label","normal"],b=["label","emphasis"],w=10,S=1,M=2;e.exports=n(236).extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=r(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(e,t,n,r){var a=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(o.indexOf(a,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=u.retrieveTargetInfo(r,e),s=r&&r.type,l=e.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===s&&i&&h?{rootNodeGroup:h.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,p=this._giveContainerGroup(l),f=this._doRender(p,e,d);c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(p,f,e,d),this._resetController(n),this._renderBreadcrumb(e,n,i)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new m,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){function i(e,t,n,r,a){function s(e){return e.getId()}function u(o,s){var l=null!=o?e[o]:null,u=null!=s?t[s]:null,c=m(l,u,n,a);c&&i(l&&l.viewChildren||[],u&&u.viewChildren||[],c,r,a+1)}r?(t=e,y(e,function(e,t){!e.isRemoved()&&u(t,t)})):new l(t,e,s,s).add(u).update(u).remove(o.curry(u,null)).execute()}function s(e){var t=r();return e&&y(e,function(e,n){var r=t[n];y(e,function(e){e&&(r.push(e),e.__tmWillDelete=1)})}),t}function u(){y(v,function(e){y(e,function(e){e.parent&&e.parent.remove(e)})}),y(g,function(e){e.invisible=!0,e.dirty()})}var c=t.getData().tree,h=this._oldTree,d=r(),p=r(),f=this._storage,g=[],m=o.curry(a,t,p,f,n,d,g);i(c.root?[c.root]:[],h&&h.root?[h.root]:[],e,c===h||!h,0);var v=s(f);return this._oldTree=c,this._storage=p,{lastsForAnimation:d,willDeleteEls:v,renderFinally:u}},_doAnimation:function(e,t,n,r){if(n.get("animation")){var a=n.get("animationDurationUpdate"),i=n.get("animationEasing"),s=f.createWrap();y(t.willDeleteEls,function(e,t){y(e,function(e,n){if(!e.invisible){var o,l=e.parent;if(r&&"drillDown"===r.direction)o=l===r.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),o="nodeGroup"===t?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}o&&s.add(e,o,a,i)}})}),y(this._storage,function(e,n){y(e,function(e,r){var l=t.lastsForAnimation[n][r],u={};l&&("nodeGroup"===n?l.old&&(u.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(u.shape=o.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),u.style={opacity:1}):1!==e.style.opacity&&(u.style={opacity:1})),s.add(e,u,a,i))})},this),this._state="animating",s.done(g(function(){this._state="ready",t.renderFinally()},this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new h(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",g(this._onPan,this)),t.on("zoom",g(this._onZoom,this)));var n=new d(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,r){return n.contain(t,r)})},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e,t){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(e)>x||Math.abs(t)>x)){var n=this.seriesModel.getData().tree.root;if(!n)return;var r=n.getLayout();if(!r)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x+e,y:r.y+t,width:r.width,height:r.height}})}},_onZoom:function(e,t,n){if(this._mayClick=!1,"animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;var i=new d(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=p.create();p.translate(s,s,[-t,-n]),p.scale(s,s,[e,e]),p.translate(s,s,[t,n]),i.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x,y:i.y,width:i.width,height:i.height}})}},_initEvents:function(e){function t(e){var t=this.seriesModel.get("nodeClick",!0);if(t){var n=this.findTarget(e.offsetX,e.offsetY);if(n){var r=n.node;if(r.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===t)this._zoomToNode(n);else if("link"===t){var a=r.hostTree.data.getItemModel(r.dataIndex),i=a.get("link",!0),o=a.get("target",!0)||"blank";i&&window.open(i,o)}}}}e.on("mousedown",function(e){"ready"===this._state&&(this._mayClick=!0)},this),e.on("mouseup",function(e){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&t.call(this,e))},this)},_renderBreadcrumb:function(e,t,n){function r(t){"animating"!==this._state&&(u.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(e,t,n.node,g(r,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=r(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},function(r){var a=this._storage.background[r.getRawIndex()];if(a){var i=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=i[0]&&i[0]<=o.x+o.width&&o.y<=i[1]&&i[1]<=o.y+o.height))return!1;n={node:r,offsetX:i[0],offsetY:i[1]}}},this),n}})},function(e,t,n){function r(e){this.group=new o.Group,e.add(this.group)}function a(e,t,n,r,a,i){var o=[[a?e:e-d,t],[e+n,t],[e+n,t+r],[a?e:e-d,t+r]];return!i&&o.splice(2,0,[e+n+d,t+r/2]),!a&&o.push([e,t+r/2]),o}function i(e,t,n){e.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&u.wrapTreePathInfo(n,t)}}var o=n(279),s=n(256),l=n(239),u=n(431),c=8,h=8,d=5;r.prototype={constructor:r,render:function(e,t,n,r){var a=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),a.get("show")&&n){var o=a.getModel("itemStyle.normal"),l=o.getModel("textStyle"),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,o,l,r),s.positionElement(i,u.pos,u.box)}},_prepare:function(e,t,n){for(var r=e;r;r=r.parentNode){var a=r.getModel().get("name"),i=n.getTextRect(a),o=Math.max(i.width+2*c,t.emptyItemWidth);t.totalWidth+=o+h,t.renderList.push({node:r,text:a,width:o})}},_renderContent:function(e,t,n,r,u){for(var c=0,d=t.emptyItemWidth,p=e.get("breadcrumb.height"),f=s.getAvailableSize(t.pos,t.box),g=t.totalWidth,m=t.renderList,v=m.length-1;v>=0;v--){var y=m[v],x=y.node,_=y.width,b=y.text;g>f.width&&(g-=_-d,_=d,b="");var w=new o.Polygon({shape:{points:a(c,0,_,p,v===m.length-1,0===v)},style:l.defaults(n.getItemStyle(),{lineJoin:"bevel",text:b,textFill:r.getTextColor(),textFont:r.getFont()}),z:10,onclick:l.curry(u,x)});this.group.add(w),i(w,e,x),c+=_+h}},remove:function(){this.group.removeAll()}},e.exports=r},function(e,t,n){function r(){var e,t=[],n={};return{add:function(e,r,i,o,s){return a.isString(o)&&(s=o,o=0),!n[e.id]&&(n[e.id]=1,t.push({el:e,target:r,time:i,delay:o,easing:s}),!0)},done:function(t){return e=t,this},start:function(){function r(){a--,a||(t.length=0,n={},e&&e())}for(var a=t.length,i=0,o=t.length;i<o;i++){var s=t[i];s.el.animateTo(s.target,s.time,s.delay,s.easing,r)}return this}}}var a=n(239);e.exports={createWrap:r}},function(e,t,n){for(var r=n(236),a=n(431),i=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<o.length;s++)r.registerAction({type:o[s],update:"updateView"},i);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){function n(t,n){var r=a.retrieveTargetInfo(e,t);if(r){var i=t.getViewRoot();i&&(e.direction=a.aboveViewRoot(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)})},function(e,t,n){function r(e,t,n,s,u,h){var d=e.getModel(),f=e.getLayout();if(f&&!f.invisible&&f.isInView){var m,v=e.getModel(g),y=n[e.depth],x=a(v,t,y,s),_=v.get("borderColor"),b=v.get("borderColorSaturation");null!=b&&(m=i(x,e),_=o(b,m)),e.setVisual("borderColor",_);var w=e.viewChildren;if(w&&w.length){var S=l(e,d,f,v,x,w);p.each(w,function(e,t){if(e.depth>=u.length||e===u[e.depth]){var a=c(d,x,e,t,S,h);r(e,a,n,s,u,h)}})}else m=i(x,e),e.setVisual("color",m)}}function a(e,t,n,r){var a=p.extend({},t);return p.each(["color","colorAlpha","colorSaturation"],function(i){var o=e.get(i,!0);null==o&&n&&(o=n[i]),null==o&&(o=t[i]),null==o&&(o=r.get(i)),null!=o&&(a[i]=o)}),a}function i(e){var t=s(e,"color");if(t){var n=s(e,"colorAlpha"),r=s(e,"colorSaturation");return r&&(t=d.modifyHSL(t,null,null,r)),n&&(t=d.modifyAlpha(t,n)),t}}function o(e,t){return null!=t?d.modifyHSL(t,null,null,e):null}function s(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function l(e,t,n,r,a,i){if(i&&i.length){var o=u(t,"color")||null!=a.color&&"none"!==a.color&&(u(t,"colorAlpha")||u(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var d=t.get("colorMappingBy"),p={type:o.name,dataExtent:c,visual:o.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new h(p);return f.__drColorMappingBy=d,f}}}function u(e,t){var n=e.get(t);return f(n)&&n.length?{name:t,range:n}:null}function c(e,t,n,r,a,i){var o=p.extend({},t);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,u="index"===l?r:"id"===l?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var h=n(437),d=n(274),p=n(239),f=p.isArray,g="itemStyle.normal";e.exports=function(e,t,n){var a={mainType:"series",subType:"treemap",query:n};e.eachComponent(a,function(e){var t=e.getData().tree,n=t.root,a=e.getModel(g);if(!n.isRemoved()){var i=p.map(t.levelModels,function(e){return e?e.get(g):null});r(n,{},i,a,e.getViewRoot().getAncestors(),e)}})}},function(e,t,n){function r(e){var t=e.pieceList;e.hasSpecialVisual=!1,g.each(t,function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)})}function a(e){var t=e.categories,n=e.visual,r=e.categoryMap={};if(y(t,function(e,t){r[e]=t}),!g.isArray(n)){var a=[];g.isObject(n)?y(n,function(e,t){var n=r[t];a[null!=n?n:_]=e}):a[_]=n,n=p(e,a)}for(var i=t.length-1;i>=0;i--)null==n[i]&&(delete r[t[i]],t.pop())}function i(e,t){var n=e.visual,r=[];g.isObject(n)?y(n,function(e){r.push(e)}):null!=n&&r.push(n);var a={color:1,symbol:1};t||1!==r.length||a.hasOwnProperty(e.type)||(r[1]=r[0]),p(e,r)}function o(e){return{applyVisual:function(t,n,r){t=this.mapValueToVisual(t),r("color",e(n("color"),t))},_doMap:h([0,1])}}function s(e){var t=this.option.visual;return t[Math.round(v(e,[0,1],[0,t.length-1],!0))]||{}}function l(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function u(e){var t=this.option.visual;return t[this.option.loop&&e!==_?e%t.length:e]}function c(){return this.option.visual[0]}function h(e){return{linear:function(t){return v(t,e,this.option.visual,!0)},category:u,piecewise:function(t,n){var r=d.call(this,n);return null==r&&(r=v(t,e,this.option.visual,!0)),r},fixed:c}}function d(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=b.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function p(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=g.map(t,function(e){return m.parse(e)})),t}function f(e,t,n){return e?t<=n:t<n}var g=n(239),m=n(274),v=n(242).linearMap,y=g.each,x=g.isObject,_=-1,b=function(e){var t=e.mappingMethod,n=e.type,o=this.option=g.clone(e);this.type=n,this.mappingMethod=t,this._normalizeData=S[t];var s=w[n];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._doMap=s._doMap[t],"piecewise"===t?(i(o),r(o)):"category"===t?o.categories?a(o):i(o,!0):(g.assert("linear"!==t||o.dataExtent),i(o))};b.prototype={constructor:b,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return g.bind(this._normalizeData,this)}};var w=b.visualHandlers={color:{applyVisual:l("color"),getColorMapper:function(){var e=this.option;return g.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),u.call(this,e)}:function(t,n,r){var a=!!r;return!n&&(t=this._normalizeData(t)),r=m.fastMapToColor(t,e.parsedVisual,r),a?r:m.stringify(r,"rgba")},this)},_doMap:{linear:function(e){return m.stringify(m.fastMapToColor(e,this.option.parsedVisual),"rgba")},category:u,piecewise:function(e,t){var n=d.call(this,t);return null==n&&(n=m.stringify(m.fastMapToColor(e,this.option.parsedVisual),"rgba")),n},fixed:c}},colorHue:o(function(e,t){return m.modifyHSL(e,t)}),colorSaturation:o(function(e,t){return m.modifyHSL(e,null,t)}),colorLightness:o(function(e,t){return m.modifyHSL(e,null,null,t)}),colorAlpha:o(function(e,t){return m.modifyAlpha(e,t)}),opacity:{applyVisual:l("opacity"),_doMap:h([0,1])},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);if(g.isString(r))n("symbol",r);else if(x(r))for(var a in r)r.hasOwnProperty(a)&&n(a,r[a])},_doMap:{linear:s,category:u,piecewise:function(e,t){var n=d.call(this,t);return null==n&&(n=s.call(this,e)),n},fixed:c}},symbolSize:{applyVisual:l("symbolSize"),_doMap:h([0,1])}},S={linear:function(e){return v(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=b.findPieceIndex(e,t,!0);if(null!=n)return v(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?_:t},fixed:g.noop};b.listVisualTypes=function(){var e=[];return g.each(w,function(t,n){e.push(n)}),e},b.addVisualHandler=function(e,t){w[e]=t},b.isValidType=function(e){return w.hasOwnProperty(e)},b.eachVisual=function(e,t,n){g.isObject(e)?g.each(e,t,n):t.call(n,e)},b.mapVisual=function(e,t,n){var r,a=g.isArray(e)?[]:g.isObject(e)?{}:(r=!0,null);return b.eachVisual(e,function(e,i){var o=t.call(n,e,i);r?a=o:a[i]=o}),a},b.retrieveVisuals=function(e){var t,n={};return e&&y(w,function(r,a){e.hasOwnProperty(a)&&(n[a]=e[a],t=!0)}),t?n:null},b.prepareVisualTypes=function(e){if(x(e)){var t=[];y(e,function(e,n){t.push(n)}),e=t}else{if(!g.isArray(e))return[];e=e.slice()}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},b.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},b.findPieceIndex=function(e,t,n){function r(t,n){var r=Math.abs(t-e);r<i&&(i=r,a=n)}for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(null!=l){if(l===e||"string"==typeof l&&l===e+"")return o;n&&r(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,h=u.close;if(c){if(c[0]===-(1/0)){if(f(h[1],e,c[1]))return o}else if(c[1]===1/0){if(f(h[0],c[0],e))return o}else if(f(h[0],c[0],e)&&f(h[1],e,c[1]))return o;n&&r(c[0],o),n&&r(c[1],o)}}if(n)return e===1/0?t.length-1:e===-(1/0)?0:a},e.exports=b},function(e,t,n){function r(e,t,n){var r={mainType:"series",subType:"treemap",query:n};e.eachComponent(r,function(e){var r=t.getWidth(),i=t.getHeight(),o=e.option,s=m.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=b(w(s.width,l[0]),r),c=b(w(s.height,l[1]),i),g=n&&n.type,x=v.retrieveTargetInfo(n,e),_="treemapRender"===g||"treemapMove"===g?n.rootRect:null,M=e.getViewRoot(),C=v.getPathToRoot(M);if("treemapMove"!==g){var T="treemapZoomToNode"===g?h(e,x,M,u,c):_?[_.width,_.height]:[u,c],A=o.sort;A&&"asc"!==A&&"desc"!==A&&(A="desc");var I={squareRatio:o.squareRatio,sort:A,leafDepth:o.leafDepth};M.hostTree.clearLayouts();var E={x:0,y:0,width:T[0],height:T[1],area:T[0]*T[1]};M.setLayout(E),a(M,I,!1,0);var E=M.getLayout();S(C,function(e,t){var n=(C[t+1]||M).getValue();e.setLayout(f.extend({dataExtent:[n,n],borderWidth:0},E))})}var P=e.getData().tree.root;P.setLayout(d(s,_,x),!0),e.setLayoutInfo(s),p(P,new y(-s.x,-s.y,r,i),C,M,0)})}function a(e,t,n,r){var o,s;if(!e.isRemoved()){var l=e.getLayout();o=l.width,s=l.height;var h=e.getModel("itemStyle.normal"),d=h.get("borderWidth"),p=h.get("gapWidth")/2,f=d-p,g=e.getModel();e.setLayout({borderWidth:d},!0),o=x(o-2*f,0),s=x(s-2*f,0);var m=o*s,v=i(e,g,m,t,n,r);if(v.length){var y={x:f,y:f,width:o,height:s},b=_(o,s),w=1/0,S=[];S.area=0;for(var M=0,C=v.length;M<C;){var T=v[M];S.push(T),S.area+=T.getLayout().area;var A=u(S,b,t.squareRatio);A<=w?(M++,w=A):(S.area-=S.pop().getLayout().area,c(S,b,y,p,!1),b=_(y.width,y.height),S.length=S.area=0,w=1/0)}if(S.length&&c(S,b,y,p,!0),!n){var I=g.get("childrenVisibleMin");null!=I&&m<I&&(n=!0)}for(var M=0,C=v.length;M<C;M++)a(v[M],t,n,r+1)}}}function i(e,t,n,r,a,i){var u=e.children||[],c=r.sort;"asc"!==c&&"desc"!==c&&(c=null);var h=null!=r.leafDepth&&r.leafDepth<=i;if(a&&!h)return e.viewChildren=[];u=f.filter(u,function(e){return!e.isRemoved()}),s(u,c);var d=l(t,u,c);if(0===d.sum)return e.viewChildren=[];if(d.sum=o(t,n,d.sum,c,u),0===d.sum)return e.viewChildren=[];for(var p=0,g=u.length;p<g;p++){var m=u[p].getValue()/d.sum*n;u[p].setLayout({area:m})}return h&&(u.length&&e.setLayout({isLeafRoot:!0},!0),u.length=0),e.viewChildren=u,e.setLayout({dataExtent:d.dataExtent},!0),u}function o(e,t,n,r,a){if(!r)return n;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a["asc"===r?o-l-1:l].getValue();u/n*t<i&&(s=l,n-=u)}return"asc"===r?a.splice(0,o-s):a.splice(s,o-s),n}function s(e,t){return t&&e.sort(function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function l(e,t,n){for(var r=0,a=0,i=t.length;a<i;a++)r+=t[a].getValue();var o,s=e.get("visualDimension");if(t&&t.length)if("value"===s&&n)o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse();else{var o=[1/0,-(1/0)];S(t,function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)})}else o=[NaN,NaN];return{sum:r,dataExtent:o}}function u(e,t,n){for(var r,a=0,i=1/0,o=0,s=e.length;o<s;o++)r=e[o].getLayout().area,r&&(r<i&&(i=r),r>a&&(a=r));var l=e.area*e.area,u=t*t*n;return l?x(u*a/l,l/(u*i)):1/0}function c(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var h=0,d=e.length;h<d;h++){var p=e[h],f={},g=c?p.getLayout().area/c:0,m=f[l[o]]=x(c-2*r,0),v=n[s[i]]+n[l[i]]-u,y=h===d-1||v<g?v:g,b=f[l[i]]=x(y-2*r,0);f[s[o]]=n[s[o]]+_(r,m/2),f[s[i]]=u+_(r,b/2),u+=y,p.setLayout(f,!0)}n[s[o]]+=c,n[l[o]]-=c}function h(e,t,n,r,a){var i=(t||{}).node,o=[r,a];if(!i||i===n)return o;for(var s,l=r*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,h=s.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=i.getValue();if(0===f)return o;u*=c/f;var m=s.getModel("itemStyle.normal").get("borderWidth");isFinite(m)&&(u+=4*m*m+4*m*Math.pow(u,.5)),u>g.MAX_SAFE_INTEGER&&(u=g.MAX_SAFE_INTEGER),i=s}u<l&&(u=l);var v=Math.pow(u/l,.5);return[r*v,a*v]}function d(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var a=n.node,i=a.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function p(e,t,n,r,a){var i=e.getLayout(),o=n[a],s=o&&o===e;if(!(o&&!s||a===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new y(t.x-i.x,t.y-i.y,t.width,t.height);S(e.viewChildren||[],function(e){p(e,l,n,r,a+1)})}}var f=n(239),g=n(242),m=n(256),v=n(431),y=n(244),v=n(431),x=Math.max,_=Math.min,b=g.parsePercent,w=f.retrieve,S=f.each;e.exports=r},function(e,t,n){var r=n(236),a=n(239);n(440),n(443),n(448),r.registerProcessor(n(449)),r.registerVisual(a.curry(n(355),"graph","circle",null)),r.registerVisual(n(450)),r.registerVisual(n(451)),r.registerLayout(n(452)),r.registerLayout(n(455)),r.registerLayout(n(457)),r.registerCoordinateSystem("graphView",{create:n(459)})},function(e,t,n){"use strict";var r=n(333),a=n(239),i=n(240),o=n(247),s=n(241),l=n(441),u=n(236).extendSeriesModel({type:"series.graph",init:function(e){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){u.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){u.superApply(this,"mergeDefaultAndTheme",arguments),i.defaultEmphasis(e.edgeLabel,i.LABEL_OPTIONS)},getInitialData:function(e,t){function n(e,n){function r(e){return e=this.parsePath(e),e&&"label"===e[0]?s:this.parentModel}e.wrapMethod("getItemModel",function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e});var a=i.getModel("edgeLabel"),s=new o({label:a.option},a.parentModel,t);n.wrapMethod("getItemModel",function(e){return e.customizeGetParent(r),e})}var r=e.edges||e.links||[],a=e.data||e.nodes||[],i=this;if(a&&r)return l(a,r,this,!0,n).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getData(),a=this.getDataParams(e,n),i=r.graph.getEdgeByIndex(e),o=r.getName(i.node1.dataIndex),l=r.getName(i.node2.dataIndex),c=[];return null!=o&&c.push(o),null!=l&&c.push(l),c=s.encodeHTML(c.join(" > ")),a.value&&(c+=" : "+s.encodeHTML(a.value)),c}return u.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=a.map(this.option.categories||[],function(e){return null!=e.value?e:a.extend({value:0},e)}),t=new r(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return u.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},
|
|
53
|
-
emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});e.exports=u},function(e,t,n){var r=n(333),a=n(442),i=n(430),o=n(338),s=n(261),l=n(239),u=n(337);e.exports=function(e,t,n,c,h){for(var d=new a(c),p=0;p<e.length;p++)d.addNode(l.retrieve(e[p].id,e[p].name,p),p);for(var f=[],g=[],m=0,p=0;p<t.length;p++){var v=t[p],y=v.source,x=v.target;d.addEdge(y,x,m)&&(g.push(v),f.push(l.retrieve(v.id,y+" > "+x)),m++)}var _,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(e,n,n.ecModel);else{var w=s.get(b),S=o((w&&"view"!==w.type?w.dimensions||[]:[]).concat(["value"]),e);_=new r(S,n),_.initData(e)}var M=new r(["value"],n);return M.initData(g,f),h&&h(_,M),i({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(e,t,n){"use strict";function r(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function a(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}var i=n(239),o=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=o.prototype;s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(e,t){e=e||""+t;var n=this._nodesMap;if(!n[e]){var a=new r(e,t);return a.hostGraph=this,this.nodes.push(a),n[e]=a,a}},s.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},s.getNodeById=function(e){return this._nodesMap[e]},s.addEdge=function(e,t,n){var i=this._nodesMap,o=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),e instanceof r||(e=i[e]),t instanceof r||(t=i[t]),e&&t){var s=e.id+"-"+t.id;if(!o[s]){var l=new a(e,t,n);return l.hostGraph=this,this._directed&&(e.outEdges.push(l),t.inEdges.push(l)),e.edges.push(l),e!==t&&t.edges.push(l),this.edges.push(l),o[s]=l,l}}},s.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},s.getEdge=function(e,t){e instanceof r&&(e=e.id),t instanceof r&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},s.eachNode=function(e,t){for(var n=this.nodes,r=n.length,a=0;a<r;a++)n[a].dataIndex>=0&&e.call(t,n[a],a)},s.eachEdge=function(e,t){for(var n=this.edges,r=n.length,a=0;a<r;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(t,n[a],a)},s.breadthFirstTraverse=function(e,t,n,a){if(t instanceof r||(t=this._nodesMap[t]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(h,h,l))return;s.push(h),h.__visited=!0}}}},s.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,a=0,i=n.length;a<i;a++)n[a].dataIndex=-1;for(var a=0,i=e.count();a<i;a++)n[e.getRawIndex(a)].dataIndex=a;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var a=0,i=r.length;a<i;a++)r[a].dataIndex=-1;for(var a=0,i=t.count();a<i;a++)r[t.getRawIndex(a)].dataIndex=a},s.clone=function(){for(var e=new o(this._directed),t=this.nodes,n=this.edges,r=0;r<t.length;r++)e.addNode(t[r].id,t[r].dataIndex);for(var r=0;r<n.length;r++){var a=n[r];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},r.prototype={constructor:r,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}}},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}};var l=function(e,t){return{getValue:function(n){var r=this[e][t];return r.get(r.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n,r){return this[e][t].getItemVisual(this.dataIndex,n,r)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};i.mixin(r,l("hostGraph","data")),i.mixin(a,l("hostGraph","edgeData")),o.Node=r,o.Edge=a,e.exports=o},function(e,t,n){function r(e,t){return e.getVisual("opacity")||e.getModel().get(t)}var a=n(351),i=n(444),o=n(417),s=n(419),l=n(420),u=n(279),c=n(447),h=n(239),d=["itemStyle","normal","opacity"],p=["lineStyle","normal","opacity"];n(236).extendChartView({type:"graph",init:function(e,t){var n=new a,r=new i,s=this.group;this._controller=new o(t.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},render:function(e,t,n){var r=e.coordinateSystem;this._model=e,this._nodeScaleRatio=e.get("nodeScaleRatio");var a=this._symbolDraw,i=this._lineDraw,o=this.group;if("view"===r.type){var s={position:r.position,scale:r.scale};this._firstRender?o.attr(s):u.updateProps(o,s,e)}c(e.getGraph(),this._getNodeGlobalScale(e));var l=e.getData();a.updateData(l);var h=e.getEdgeData();i.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get("force.layoutAnimation");d&&this._startForceLayoutIteration(d,p),l.eachItemGraphicEl(function(t,r){var a=l.getItemModel(r);t.off("drag").off("dragend");var i=l.getItemModel(r).get("draggable");i&&t.on("drag",function(){d&&(d.warmUp(),!this._layouting&&this._startForceLayoutIteration(d,p),d.setFixed(r),l.setItemLayout(r,t.position))},this).on("dragend",function(){d&&d.setUnfixed(r)},this),t.setDraggable(i&&d),t.off("mouseover",t.__focusNodeAdjacency),t.off("mouseout",t.__unfocusNodeAdjacency),a.get("focusNodeAdjacency")&&(t.on("mouseover",t.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))},this);var f="circular"===e.get("layout")&&e.get("circular.rotateLabel"),g=l.getLayout("cx"),m=l.getLayout("cy");l.eachItemGraphicEl(function(e,t){var n=e.getSymbolPath();if(f){var r=l.getItemLayout(t),a=Math.atan2(r[1]-m,r[0]-g);a<0&&(a=2*Math.PI+a);var i=r[0]<g;i&&(a-=Math.PI);var o=i?"left":"right";n.setStyle({textRotation:a,textPosition:o}),n.hoverStyle&&(n.hoverStyle.textPosition=o)}else n.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(e,t,n,a){function i(e,t){var n=r(e,t),a=e.getGraphicEl();null==n&&(n=1),a.traverse(function(e){e.trigger("normal"),"group"!==e.type&&e.setStyle("opacity",.1*n)})}function o(e,t){var n=r(e,t),a=e.getGraphicEl();a.traverse(function(e){e.trigger("emphasis"),"group"!==e.type&&e.setStyle("opacity",n)})}var s=this._model.getData(),l=a.dataIndex,u=s.getItemGraphicEl(l);if(u){var c=s.graph,f=u.dataType;if(null!==l&&"edge"!==f){c.eachNode(function(e){i(e,d)}),c.eachEdge(function(e){i(e,p)});var g=c.getNodeByIndex(l);o(g,d),h.each(g.edges,function(e){e.dataIndex<0||(o(e,p),o(e.node1,d),o(e.node2,d))})}}},unfocusNodeAdjacency:function(e,t,n,a){var i=this._model.getData().graph;i.eachNode(function(e){var t=r(e,d);e.getGraphicEl().traverse(function(e){e.trigger("normal"),"group"!==e.type&&e.setStyle("opacity",t)})}),i.eachEdge(function(e){var t=r(e,p);e.getGraphicEl().traverse(function(e){e.trigger("normal"),"group"!==e.type&&e.setStyle("opacity",t)})})},_startForceLayoutIteration:function(e,t){var n=this;!function r(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())})}()},_updateController:function(e,t,n){var r=this._controller,a=this._controllerHost,i=this.group;return r.setPointerChecker(function(t,r,a){var o=i.getBoundingRect();return o.applyTransform(i.transform),o.contain(r,a)&&!l.onIrrelevantElement(t,n,e)}),"view"!==e.coordinateSystem.type?void r.disable():(r.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),void r.off("pan").off("zoom").on("pan",function(t,r){s.updateViewOnPan(a,t,r),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t,dy:r})}).on("zoom",function(t,r,i){s.updateViewOnZoom(a,t,r,i),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t,originX:r,originY:i}),this._updateNodeAndLinkScale(),c(e.getGraph(),this._getNodeGlobalScale(e)),this._lineDraw.updateLayout()},this))},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),n=this._getNodeGlobalScale(e),r=[n,n];t.eachItemGraphicEl(function(e,t){e.attr("scale",r)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scale,a=r&&r[0]||1,i=t.getZoom(),o=(i-1)*n+1;return o/a},updateLayout:function(e){c(e.getGraph(),this._getNodeGlobalScale(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}})},function(e,t,n){function r(e){return isNaN(e[0])||isNaN(e[1])}function a(e){return!r(e[0])&&!r(e[1])}function i(e){this._ctor=e||s,this.group=new o.Group}var o=n(279),s=n(445),l=i.prototype;l.updateData=function(e){var t=this._lineData,n=this.group,r=this._ctor,i=e.hostModel,o={lineStyle:i.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:i.getModel("lineStyle.emphasis").getLineStyle(),labelModel:i.getModel("label.normal"),hoverLabelModel:i.getModel("label.emphasis")};e.diff(t).add(function(t){if(a(e.getItemLayout(t))){var i=new r(e,t,o);e.setItemGraphicEl(t,i),n.add(i)}}).update(function(i,s){var l=t.getItemGraphicEl(s);return a(e.getItemLayout(i))?(l?l.updateData(e,i,o):l=new r(e,i,o),e.setItemGraphicEl(i,l),void n.add(l)):void n.remove(l)}).remove(function(e){n.remove(t.getItemGraphicEl(e))}).execute(),this._lineData=e},l.updateLayout=function(){var e=this._lineData;e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},l.remove=function(){this.group.removeAll()},e.exports=i},function(e,t,n){function r(e){return"_"+e+"Type"}function a(e,t,n){var r=t.getItemVisual(n,"color"),a=t.getItemVisual(n,e),i=t.getItemVisual(n,e+"Size");if(a&&"none"!==a){p.isArray(i)||(i=[i,i]);var o=u.createSymbol(a,-i[0]/2,-i[1]/2,i[0],i[1],r);return o.name=e,o}}function i(e){var t=new h({name:"line"});return o(t.shape,e),t}function o(e,t){var n=t[0],r=t[1],a=t[2];e.x1=n[0],e.y1=n[1],e.x2=r[0],e.y2=r[1],e.percent=1,a?(e.cpx1=a[0],e.cpy1=a[1]):(e.cpx1=NaN,e.cpy1=NaN)}function s(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.childOfName("label");if(t||n||!r.ignore){for(var a=1,i=this.parent;i;)i.scale&&(a/=i.scale[0]),i=i.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),h=c.sub([],u,l);if(c.normalize(h,h),t){t.attr("position",l);var d=o.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),t.attr("scale",[a*s,a*s])}if(n){n.attr("position",u);var d=o.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),n.attr("scale",[a*s,a*s])}if(!r.ignore){r.attr("position",u);var p,f,g,m=5*a;if("end"===r.__position)p=[h[0]*m+u[0],h[1]*m+u[1]],f=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===r.__position){var v=s/2,d=o.tangentAt(v),y=[d[1],-d[0]],x=o.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),p=[x[0]+y[0]*m,x[1]+y[1]*m],f="center",g="bottom";var _=-Math.atan2(d[1],d[0]);u[0]<l[0]&&(_=Math.PI+_),r.attr("rotation",_)}else p=[-h[0]*m+l[0],-h[1]*m+l[1]],f=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";r.attr({style:{textVerticalAlign:r.__verticalAlign||g,textAlign:r.__textAlign||f},position:p,scale:[a,a]})}}}}function l(e,t,n){d.Group.call(this),this._createLine(e,t,n)}var u=n(339),c=n(245),h=n(446),d=n(279),p=n(239),f=n(242),g=["fromSymbol","toSymbol"],m=l.prototype;m.beforeUpdate=s,m._createLine=function(e,t,n){var o=e.hostModel,s=e.getItemLayout(t),l=i(s);l.shape.percent=0,d.initProps(l,{shape:{percent:1}},o,t),this.add(l);var u=new d.Text({name:"label"});this.add(u),p.each(g,function(n){var i=a(n,e,t);this.add(i),this[r(n)]=e.getItemVisual(t,n)},this),this._updateCommonStl(e,t,n)},m.updateData=function(e,t,n){var i=e.hostModel,s=this.childOfName("line"),l=e.getItemLayout(t),u={shape:{}};o(u.shape,l),d.updateProps(s,u,i,t),p.each(g,function(n){var i=e.getItemVisual(t,n),o=r(n);if(this[o]!==i){this.remove(this.childOfName(n));var s=a(n,e,t);this.add(s)}this[o]=i},this),this._updateCommonStl(e,t,n)},m._updateCommonStl=function(e,t,n){var r=e.hostModel,a=this.childOfName("line"),i=n&&n.lineStyle,o=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var u=e.getItemModel(t);i=u.getModel("lineStyle.normal").getLineStyle(),o=u.getModel("lineStyle.emphasis").getLineStyle(),s=u.getModel("label.normal"),l=u.getModel("label.emphasis")}var c=e.getItemVisual(t,"color"),h=p.retrieve(e.getItemVisual(t,"opacity"),i.opacity,1);a.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:c,opacity:h},i)),a.hoverStyle=o,p.each(g,function(e){var t=this.childOfName(e);t&&(t.setColor(c),t.setStyle({opacity:h}))},this);var m,v,y=s.getShallow("show"),x=l.getShallow("show"),_=this.childOfName("label");if(y||x){var b=r.getRawValue(t);v=null==b?v=e.getName(t):isFinite(b)?f.round(b):b,m=c||"#000"}if(y){var w=s.getModel("textStyle");_.setStyle({text:p.retrieve(r.getFormattedLabel(t,"normal",e.dataType),v),textFont:w.getFont(),fill:w.getTextColor()||m}),_.__textAlign=w.get("align"),_.__verticalAlign=w.get("baseline"),_.__position=s.get("position")}else _.setStyle("text","");if(x){var S=l.getModel("textStyle");_.hoverStyle={text:p.retrieve(r.getFormattedLabel(t,"emphasis",e.dataType),v),textFont:S.getFont(),fill:S.getTextColor()||m}}else _.hoverStyle={text:""};_.ignore=!y&&!x,d.setHoverStyle(this)},m.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},m.setLinePoints=function(e){var t=this.childOfName("line");o(t.shape,e),t.dirty()},p.inherits(l,d.Group),e.exports=l},function(e,t,n){function r(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var a=n(279),i=n(245),o=a.Line.prototype,s=a.BezierCurve.prototype;e.exports=a.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){(r(t)?o:s).buildPath(e,t)},pointAt:function(e){return r(this.shape)?o.pointAt.call(this,e):s.pointAt.call(this,e)},tangentAt:function(e){var t=this.shape,n=r(t)?[t.x2-t.x1,t.y2-t.y1]:s.tangentAt.call(this,e);return i.normalize(n,n)}})},function(e,t,n){function r(e,t,n){for(var r,a=e[0],i=e[1],d=e[2],p=1/0,f=n*n,g=.1,m=.1;m<=.9;m+=.1){o[0]=u(a[0],i[0],d[0],m),o[1]=u(a[1],i[1],d[1],m);var v=h(c(o,t)-f);v<p&&(p=v,r=m)}for(var y=0;y<32;y++){var x=r+g;s[0]=u(a[0],i[0],d[0],r),s[1]=u(a[1],i[1],d[1],r),l[0]=u(a[0],i[0],d[0],x),l[1]=u(a[1],i[1],d[1],x);var v=c(s,t)-f;if(h(v)<.01)break;var _=c(l,t)-f;g/=2,v<0?_>=0?r+=g:r-=g:_>=0?r-=g:r+=g}return r}var a=n(286),i=n(245),o=[],s=[],l=[],u=a.quadraticAt,c=i.distSquare,h=Math.abs;e.exports=function(e,t){function n(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),t}var o=[],s=a.quadraticSubdivide,l=[[],[],[]],u=[[],[]],c=[];t/=2,e.eachEdge(function(e,a){var h=e.getLayout(),d=e.getVisual("fromSymbol"),p=e.getVisual("toSymbol");h.__original||(h.__original=[i.clone(h[0]),i.clone(h[1])],h[2]&&h.__original.push(i.clone(h[2])));var f=h.__original;if(null!=h[2]){if(i.copy(l[0],f[0]),i.copy(l[1],f[2]),i.copy(l[2],f[1]),d&&"none"!=d){var g=n(e.node1),m=r(l,f[0],g*t);s(l[0][0],l[1][0],l[2][0],m,o),l[0][0]=o[3],l[1][0]=o[4],s(l[0][1],l[1][1],l[2][1],m,o),l[0][1]=o[3],l[1][1]=o[4]}if(p&&"none"!=p){var g=n(e.node2),m=r(l,f[1],g*t);s(l[0][0],l[1][0],l[2][0],m,o),l[1][0]=o[1],l[2][0]=o[2],s(l[0][1],l[1][1],l[2][1],m,o),l[1][1]=o[1],l[2][1]=o[2]}i.copy(h[0],l[0]),i.copy(h[1],l[2]),i.copy(h[2],l[1])}else{if(i.copy(u[0],f[0]),i.copy(u[1],f[1]),i.sub(c,u[1],u[0]),i.normalize(c,c),d&&"none"!=d){var g=n(e.node1);i.scaleAndAdd(u[0],u[0],c,g*t)}if(p&&"none"!=p){var g=n(e.node2);i.scaleAndAdd(u[1],u[1],c,-g*t)}i.copy(h[0],u[0]),i.copy(h[1],u[1])}})}},function(e,t,n){var r=n(236),a=n(422),i={type:"graphRoam",event:"graphRoam",update:"none"};r.registerAction(i,function(e,t){t.eachComponent({mainType:"series",query:e},function(t){var n=t.coordinateSystem,r=a.updateCenterAndZoom(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)})}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(e,t){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getGraph(),a=r.data,i=n.mapArray(n.getName);a.filterSelf(function(e){var n=a.getItemModel(e),r=n.getShallow("category");if(null!=r){"number"==typeof r&&(r=i[r]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(r))return!1}return!0})},this)}},function(e,t){e.exports=function(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getData(),a={};n.each(function(r){var i=n.getName(r);a[i]=r;var o=n.getItemModel(r),s=o.get("itemStyle.normal.color")||e.getColorFromPalette(i,t);n.setItemVisual(r,"color",s)}),n.count()&&r.each(function(e){var t=r.getItemModel(e),i=t.getShallow("category");null!=i&&("string"==typeof i&&(i=a[i]),r.getItemVisual(e,"color",!0)||r.setItemVisual(e,"color",n.getItemVisual(i,"color")))})})}},function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}e.exports=function(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),a=n(e.get("edgeSymbol")),i=n(e.get("edgeSymbolSize")),o="lineStyle.normal.color".split("."),s="lineStyle.normal.opacity".split(".");r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("color",e.get(o)),r.setVisual("opacity",e.get(s)),r.each(function(e){var a=r.getItemModel(e),i=t.getEdgeByIndex(e),l=n(a.getShallow("symbol",!0)),u=n(a.getShallow("symbolSize",!0)),c=a.get(o),h=a.get(s);switch(c){case"source":c=i.node1.getVisual("color");break;case"target":c=i.node2.getVisual("color")}l[0]&&i.setVisual("fromSymbol",l[0]),l[1]&&i.setVisual("toSymbol",l[1]),u[0]&&i.setVisual("fromSymbolSize",u[0]),u[1]&&i.setVisual("toSymbolSize",u[1]),i.setVisual("color",c),i.setVisual("opacity",h)})})}},function(e,t,n){var r=n(453),a=n(454);e.exports=function(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),o=n.dimensions;i.each(o,function(){for(var e,t=arguments,r=[],a=0;a<o.length;a++)isNaN(t[a])||(e=!0),r.push(t[a]);var s=t[t.length-1];e?i.setItemLayout(s,n.dataToPoint(r)):i.setItemLayout(s,[NaN,NaN])}),a(i.graph)}else t&&"none"!==t||r(e)})}},function(e,t,n){var r=n(454);e.exports=function(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),r(n)}}},function(e,t,n){var r=n(245);e.exports=function(e){e.eachEdge(function(e){var t=e.getModel().get("lineStyle.normal.curveness")||0,n=r.clone(e.node1.getLayout()),a=r.clone(e.node2.getLayout()),i=[n,a];+t&&i.push([(n[0]+a[0])/2-(n[1]-a[1])*t,(n[1]+a[1])/2-(a[0]-n[0])*t]),e.setLayout(i)})}},function(e,t,n){var r=n(456);e.exports=function(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&r(e)})}},function(e,t,n){var r=n(245);e.exports=function(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=t.getBoundingRect(),a=e.getData(),i=a.graph,o=0,s=a.getSum("value"),l=2*Math.PI/(s||a.count()),u=n.width/2+n.x,c=n.height/2+n.y,h=Math.min(n.width,n.height)/2;i.eachNode(function(e){var t=e.getValue("value");o+=l*(s?t:1)/2,e.setLayout([h*Math.cos(o)+u,h*Math.sin(o)+c]),o+=l*(s?t:1)/2}),a.setLayout({cx:u,cy:c}),i.eachEdge(function(e){var t,n=e.getModel().get("lineStyle.normal.curveness")||0,a=r.clone(e.node1.getLayout()),i=r.clone(e.node2.getLayout()),o=(a[0]+i[0])/2,s=(a[1]+i[1])/2;+n&&(n*=3,t=[u*n+o*(1-n),c*n+s*(1-n)]),e.setLayout([a,i,t])})}}},function(e,t,n){var r=n(458),a=n(242),i=n(453),o=n(456),s=n(245),l=n(239);e.exports=function(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},u=e.getGraph(),c=u.data,h=u.edgeData,d=e.getModel("force"),p=d.get("initLayout");e.preservedPoints?c.each(function(e){var t=c.getId(e);c.setItemLayout(e,n[t]||[NaN,NaN])}):p&&"none"!==p?"circular"===p&&o(e):i(e);var f=c.getDataExtent("value"),g=h.getDataExtent("value"),m=d.get("repulsion"),v=d.get("edgeLength");l.isArray(m)||(m=[m,m]),l.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=c.mapArray("value",function(e,t){var n=c.getItemLayout(t),r=a.linearMap(e,f,m);return isNaN(r)&&(r=(m[0]+m[1])/2),{w:r,rep:r,p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),x=h.mapArray("value",function(e,t){var n=u.getEdgeByIndex(t),r=a.linearMap(e,g,v);return isNaN(r)&&(r=(v[0]+v[1])/2),{n1:y[n.node1.dataIndex],n2:y[n.node2.dataIndex],d:r,curveness:n.getModel().get("lineStyle.normal.curveness")||0}}),t=e.coordinateSystem,_=t.getBoundingRect(),b=r(y,x,{rect:_,gravity:d.get("gravity")}),w=b.step;b.step=function(e){for(var t=0,r=y.length;t<r;t++)y[t].fixed&&s.copy(y[t].p,u.getNodeByIndex(t).getLayout());w(function(t,r,a){for(var i=0,o=t.length;i<o;i++)t[i].fixed||u.getNodeByIndex(i).setLayout(t[i].p),n[c.getId(i)]=t[i].p;for(var i=0,o=r.length;i<o;i++){var l=r[i],h=u.getEdgeByIndex(i),d=l.n1.p,p=l.n2.p,f=h.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],s.copy(f[0],d),s.copy(f[1],p),+l.curveness&&(f[2]=[(d[0]+p[0])/2-(d[1]-p[1])*l.curveness,(d[1]+p[1])/2-(p[0]-d[0])*l.curveness]),h.setLayout(f)}e&&e(a)})},e.forceLayout=b,e.preservedPoints=n,b.step()}else e.forceLayout=null})}},function(e,t,n){var r=n(245),a=r.scaleAndAdd;e.exports=function(e,t,n){for(var i=n.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<e.length;c++){var h=e[c];h.p||(h.p=r.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=r.clone(h.p),h.edges=null}var d=.6;return{warmUp:function(){d=.5},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(n){for(var i=[],o=e.length,s=0;s<t.length;s++){var c=t[s],h=c.n1,p=c.n2;r.sub(i,p.p,h.p);var f=r.len(i)-c.d,g=p.w/(h.w+p.w);r.normalize(i,i),!h.fixed&&a(h.p,h.p,i,g*f*d),!p.fixed&&a(p.p,p.p,i,-(1-g)*f*d)}for(var s=0;s<o;s++){var m=e[s];m.fixed||(r.sub(i,l,m.p),r.scaleAndAdd(m.p,m.p,i,u*d))}for(var s=0;s<o;s++)for(var h=e[s],v=s+1;v<o;v++){var p=e[v];r.sub(i,p.p,h.p);var f=r.len(i);0===f&&(r.set(i,Math.random()-.5,Math.random()-.5),f=1);var y=(h.rep+p.rep)/f/f;!h.fixed&&a(h.pp,h.pp,i,y),!p.fixed&&a(p.pp,p.pp,i,-y)}for(var x=[],s=0;s<o;s++){var m=e[s];m.fixed||(r.sub(x,m.p,m.pp),r.scaleAndAdd(m.p,m.p,x,d),r.copy(m.pp,m.p))}d*=.992,n&&n(e,t,d<.01)}}}},function(e,t,n){function r(e,t,n){var r=e.getBoxLayoutParams();return r.aspect=n,i.getLayoutRect(r,{width:t.getWidth(),height:t.getHeight()})}var a=n(411),i=n(256),o=n(287);e.exports=function(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var s=e.getData(),l=s.mapArray(function(e){var t=s.getItemModel(e);return[+t.get("x"),+t.get("y")]}),u=[],c=[];o.fromPoints(l,u,c),c[0]-u[0]===0&&(c[0]+=1,u[0]-=1),c[1]-u[1]===0&&(c[1]+=1,u[1]-=1);var h=(c[0]-u[0])/(c[1]-u[1]),d=r(e,t,h);isNaN(h)&&(u=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var p=c[0]-u[0],f=c[1]-u[1],g=d.width,m=d.height,v=e.coordinateSystem=new a;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(u[0],u[1],p,f),v.setViewRect(d.x,d.y,g,m),v.setCenter(e.get("center")),v.setZoom(e.get("zoom")),n.push(v)}}),n}},function(e,t,n){n(461),n(462)},function(e,t,n){var r=n(333),a=n(263),i=n(239),o=a.extend({type:"series.gauge",getInitialData:function(e,t){var n=new r(["value"],this),a=e.data||[];return i.isArray(a)||(a=[a]),n.initData(a),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});e.exports=o},function(e,t,n){function r(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=l(n[0],t.getWidth()),s=l(n[1],t.getHeight()),u=l(e.get("radius"),i/2);return{cx:o,cy:s,r:u}}function a(e,t){return t&&("string"==typeof t?e=t.replace("{value}",null!=e?e:""):"function"==typeof t&&(e=t(e))),e}var i=n(463),o=n(279),s=n(242),l=s.parsePercent,u=2*Math.PI,c=n(278).extend({type:"gauge",render:function(e,t,n){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),i=r(e,n);this._renderMain(e,t,n,a,i)},dispose:function(){},_renderMain:function(e,t,n,r,a){for(var i=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),c=e.get("clockwise"),h=-e.get("startAngle")/180*Math.PI,d=-e.get("endAngle")/180*Math.PI,p=(d-h)%u,f=h,g=l.get("width"),m=0;m<r.length;m++){var v=Math.min(Math.max(r[m][0],0),1),d=h+p*v,y=new o.Sector({shape:{startAngle:f,endAngle:d,cx:a.cx,cy:a.cy,clockwise:c,r0:a.r-g,r:a.r},silent:!0});y.setStyle({fill:r[m][1]}),y.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),i.add(y),f=d}var x=function(e){if(e<=0)return r[0][1];for(var t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};if(!c){var _=h;h=d,d=_}this._renderTicks(e,t,n,x,a,h,d,c),this._renderPointer(e,t,n,x,a,h,d,c),this._renderTitle(e,t,n,x,a),this._renderDetail(e,t,n,x,a)},_renderTicks:function(e,t,n,r,i,u,c,h){for(var d=this.group,p=i.cx,f=i.cy,g=i.r,m=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),x=e.getModel("axisTick"),_=e.getModel("axisLabel"),b=e.get("splitNumber"),w=x.get("splitNumber"),S=l(y.get("length"),g),M=l(x.get("length"),g),C=u,T=(c-u)/b,A=T/w,I=y.getModel("lineStyle").getLineStyle(),E=x.getModel("lineStyle").getLineStyle(),P=_.getModel("textStyle"),L=0;L<=b;L++){var D=Math.cos(C),k=Math.sin(C);if(y.get("show")){var O=new o.Line({shape:{x1:D*g+p,y1:k*g+f,x2:D*(g-S)+p,y2:k*(g-S)+f},style:I,silent:!0});"auto"===I.stroke&&O.setStyle({stroke:r(L/b)}),d.add(O)}if(_.get("show")){var R=a(s.round(L/b*(v-m)+m),_.get("formatter")),N=_.get("distance"),V=new o.Text({style:{text:R,x:D*(g-S-N)+p,y:k*(g-S-N)+f,fill:P.getTextColor(),textFont:P.getFont(),textVerticalAlign:k<-.4?"top":k>.4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},silent:!0});"auto"===V.style.fill&&V.setStyle({fill:r(L/b)}),d.add(V)}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){var D=Math.cos(C),k=Math.sin(C),B=new o.Line({shape:{x1:D*g+p,y1:k*g+f,x2:D*(g-M)+p,y2:k*(g-M)+f},silent:!0,style:E});"auto"===E.stroke&&B.setStyle({stroke:r((L+z/w)/b)}),d.add(B),C+=A}C-=A}else C+=T}},_renderPointer:function(e,t,n,r,a,u,c,h){var d=this.group,p=this._data;if(!e.get("pointer.show"))return void(p&&p.eachItemGraphicEl(function(e){d.remove(e)}));var f=[+e.get("min"),+e.get("max")],g=[u,c],m=e.getData();m.diff(p).add(function(t){var n=new i({shape:{angle:u}});o.initProps(n,{shape:{angle:s.linearMap(m.get("value",t),f,g,!0)}},e),d.add(n),m.setItemGraphicEl(t,n)}).update(function(t,n){var r=p.getItemGraphicEl(n);o.updateProps(r,{shape:{angle:s.linearMap(m.get("value",t),f,g,!0)}},e),d.add(r),m.setItemGraphicEl(t,r)}).remove(function(e){var t=p.getItemGraphicEl(e);d.remove(t)}).execute(),m.eachItemGraphicEl(function(e,t){var n=m.getItemModel(t),i=n.getModel("pointer");e.setShape({x:a.cx,y:a.cy,width:l(i.get("width"),a.r),r:l(i.get("length"),a.r)}),e.useStyle(n.getModel("itemStyle.normal").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(s.linearMap(m.get("value",t),f,[0,1],!0))),o.setHoverStyle(e,n.getModel("itemStyle.emphasis").getItemStyle())}),this._data=m},_renderTitle:function(e,t,n,r,a){var i=e.getModel("title");if(i.get("show")){var u=i.getModel("textStyle"),c=i.get("offsetCenter"),h=a.cx+l(c[0],a.r),d=a.cy+l(c[1],a.r),p=new o.Text({style:{x:h,y:d,text:e.getData().getName(0),fill:u.getTextColor(),textFont:u.getFont(),textAlign:"center",textVerticalAlign:"middle"}});if("auto"===p.style.fill){var f=+e.get("min"),g=+e.get("max"),m=e.getData().get("value",0);p.setStyle("fill",r(s.linearMap(m,[f,g],[0,1],!0)))}this.group.add(p)}},_renderDetail:function(e,t,n,r,i){var u=e.getModel("detail"),c=+e.get("min"),h=+e.get("max");if(u.get("show")){var d=u.getModel("textStyle"),p=u.get("offsetCenter"),f=i.cx+l(p[0],i.r),g=i.cy+l(p[1],i.r),m=l(u.get("width"),i.r),v=l(u.get("height"),i.r),y=e.getData().get("value",0),x=new o.Rect({shape:{x:f-m/2,y:g-v/2,width:m,height:v},style:{text:a(y,u.get("formatter")),fill:u.get("backgroundColor"),textFill:d.getTextColor(),textFont:d.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",r(s.linearMap(y,[c,h],[0,1],!0))),x.setStyle(u.getItemStyle(["color"])),this.group.add(x)}}});e.exports=c},function(e,t,n){e.exports=n(281).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,r=Math.sin,a=t.r,i=t.width,o=t.angle,s=t.x-n(o)*i*(i>=a/3?1:2),l=t.y-r(o)*i*(i>=a/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*i,t.y+r(o)*i),e.lineTo(t.x+n(t.angle)*a,t.y+r(t.angle)*a),e.lineTo(t.x-n(o)*i,t.y-r(o)*i),e.lineTo(s,l)}})},function(e,t,n){var r=n(239),a=n(236);n(465),n(466),a.registerVisual(r.curry(n(386),"funnel")),a.registerLayout(n(467)),a.registerProcessor(r.curry(n(389),"funnel"))},function(e,t,n){"use strict";var r=n(333),a=n(240),i=n(338),o=n(236).extendSeriesModel({type:"series.funnel",init:function(e){o.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(e)},getInitialData:function(e,t){var n=i(["value"],e.data),a=new r(n,this);return a.initData(e.data),a},_defaultLabelLine:function(e){a.defaultEmphasis(e.labelLine,["show"]);var t=e.labelLine.normal,n=e.labelLine.emphasis;t.show=t.show&&e.label.normal.show,n.show=n.show&&e.label.emphasis.show},getDataParams:function(e){var t=this.getData(),n=o.superCall(this,"getDataParams",e),r=t.getSum("value");return n.percent=r?+(t.get("value",e)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});e.exports=o},function(e,t,n){function r(e,t){function n(){o.ignore=o.hoverIgnore,s.ignore=s.hoverIgnore}function r(){o.ignore=o.normalIgnore,s.ignore=s.normalIgnore}i.Group.call(this);var a=new i.Polygon,o=new i.Polyline,s=new i.Text;this.add(a),this.add(o),this.add(s),this.updateData(e,t,!0),
|
|
54
|
-
this.on("emphasis",n).on("normal",r).on("mouseover",n).on("mouseout",r)}function a(e,t,n,r){var a=r.getModel("textStyle"),i=r.get("position"),s="inside"===i||"inner"===i||"center"===i;return{fill:a.getTextColor()||(s?"#fff":e.getItemVisual(t,"color")),textFont:a.getFont(),text:o.retrieve(e.hostModel.getFormattedLabel(t,n),e.getName(t))}}var i=n(279),o=n(239),s=r.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(e,t,n){var r=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),u=e.getItemLayout(t),c=e.getItemModel(t).get(l);c=null==c?1:c,r.useStyle({}),n?(r.setShape({points:u.points}),r.setStyle({opacity:0}),i.initProps(r,{style:{opacity:c}},a,t)):i.updateProps(r,{style:{opacity:c},shape:{points:u.points}},a,t);var h=s.getModel("itemStyle"),d=e.getItemVisual(t,"color");r.setStyle(o.defaults({lineJoin:"round",fill:d},h.getModel("normal").getItemStyle(["opacity"]))),r.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),i.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),r=this.childAt(2),o=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),u=l.label,c=e.getItemVisual(t,"color");i.updateProps(n,{shape:{points:u.linePoints||u.linePoints}},o,t),i.updateProps(r,{style:{x:u.x,y:u.y}},o,t),r.attr({style:{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getModel("label.normal"),d=s.getModel("label.emphasis"),p=s.getModel("labelLine.normal"),f=s.getModel("labelLine.emphasis");r.setStyle(a(e,t,"normal",h)),r.ignore=r.normalIgnore=!h.get("show"),r.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:c}),n.setStyle(p.getModel("lineStyle").getLineStyle()),r.hoverStyle=a(e,t,"emphasis",d),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},o.inherits(r,i.Group);var u=n(278).extend({type:"funnel",render:function(e,t,n){var a=e.getData(),i=this._data,o=this.group;a.diff(i).add(function(e){var t=new r(a,e);a.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(a,e),o.add(n),a.setItemGraphicEl(e,n)}).remove(function(e){var t=i.getItemGraphicEl(e);o.remove(t)}).execute(),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=u},function(e,t,n){function r(e,t){return o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function a(e,t){for(var n=e.mapArray("value",function(e){return e}),r=[],a="ascending"===t,i=0,o=e.count();i<o;i++)r[i]=i;return"function"==typeof t?r.sort(t):"none"!==t&&r.sort(function(e,t){return a?n[e]-n[t]:n[t]-n[e]}),r}function i(e){e.each(function(t){var n,r,a,i,o=e.getItemModel(t),s=o.getModel("label.normal"),l=s.get("position"),u=o.getModel("labelLine.normal"),c=e.getItemLayout(t),h=c.points,d="inner"===l||"inside"===l||"center"===l;if(d)r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center",i=[[r,a],[r,a]];else{var p,f,g,m=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,g=p-m,r=g-5,n="right"):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,g=p+m,r=g+5,n="left");var v=f;i=[[p,f],[g,v]],a=v}c.label={linePoints:i,x:r,y:a,verticalAlign:"middle",textAlign:n,inside:d}})}var o=n(256),s=n(242),l=s.parsePercent;e.exports=function(e,t,n){e.eachSeriesByType("funnel",function(e){var n=e.getData(),o=e.get("sort"),u=r(e,t),c=a(n,o),h=[l(e.get("minSize"),u.width),l(e.get("maxSize"),u.width)],d=n.getDataExtent("value"),p=e.get("min"),f=e.get("max");null==p&&(p=Math.min(d[0],0)),null==f&&(f=d[1]);var g=e.get("funnelAlign"),m=e.get("gap"),v=(u.height-m*(n.count()-1))/n.count(),y=u.y,x=function(e,t){var r,a=n.get("value",e)||0,i=s.linearMap(a,[p,f],h,!0);switch(g){case"left":r=u.x;break;case"center":r=u.x+(u.width-i)/2;break;case"right":r=u.x+u.width-i}return[[r,t],[r+i,t]]};"ascending"===o&&(v=-v,m=-m,y+=u.height,c=c.reverse());for(var _=0;_<c.length;_++){var b=c[_],w=c[_+1],S=x(b,y),M=x(w,y+v);y+=v+m,n.setItemLayout(b,{points:S.concat(M.slice().reverse())})}i(n)})}},function(e,t,n){var r=n(236);n(469),n(482),n(483),r.registerVisual(n(484))},function(e,t,n){function r(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}n(470),n(474),n(476);var a=n(236),i=n(239),o=n(316),s=5;a.extendComponentView({type:"parallel",render:function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},i.each(l,function(e,t){n.getZr().on(t,this._handlers[t]=i.bind(e,this))},this)),o.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){i.each(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(i.extend({type:"parallelAxisExpand"},e))}});var l={mousedown:function(e){r(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(r(this,"click")&&t){var n=[e.offsetX,e.offsetY],a=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(a>s)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&r(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),a=n.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===a&&null})}}};a.registerPreprocessor(n(481))},function(e,t,n){function r(e,t){var n=[];return e.eachComponent("parallel",function(r,i){var o=new a(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)}),e.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}}),n}var a=n(471);n(261).register("parallel",{create:r})},function(e,t,n){function r(e,t,n){this._axesMap={},this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function a(e,t){return m(v(e,t[0]),t[1])}function i(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function o(e,t){var n,r,a=t.layoutLength,i=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*i-t.axisExpandWindow[0],u=i,c=!0):(n=a-(o-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var s=n(256),l=n(340),u=n(239),c=n(472),h=n(279),d=n(246),p=n(242),f=n(473),g=u.each,m=Math.min,v=Math.max,y=Math.floor,x=Math.ceil,_=p.round,b=Math.PI;r.prototype={type:"parallel",constructor:r,_init:function(e,t,n){var r=e.dimensions,a=e.parallelAxisIndex;g(r,function(e,n){var r=a[n],i=t.getComponent("parallelAxis",r),o=this._axesMap[e]=new c(e,l.createScaleByModel(i),[0,0],i.get("type"),r),s="category"===o.type;o.onBand=s&&i.get("boundaryGap"),o.inverse=i.get("inverse"),i.axis=o,o.model=i,o.coordinateSystem=i.coordinateSystem=this},this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,a=t.pixelDimIndex,i=e[1-a],o=e[a];return i>=n&&i<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},_updateAxesFromSeries:function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();g(this.dimensions,function(e){var t=this._axesMap[e];t.scale.unionExtentFromData(r,e),l.niceScaleExtent(t.scale,t.model)},this)}},this)},resize:function(e,t){this._rect=s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),s="horizontal"===o?0:1,l=n[i[s]],u=[0,l],c=this.dimensions.length,h=a(t.get("axisExpandWidth"),u),d=a(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&h>0&&l>0,f=t.get("axisExpandWindow");if(f)e=a(f[1]-f[0],u),f[1]=f[0]+e;else{e=a(h*(d-1),u);var g=t.get("axisExpandCenter")||y(c/2);f=[h*g-e/2],f[1]=f[0]+e}var m=(l-e)/(c-d);m<3&&(m=0);var v=[y(_(f[0]/h,1))+1,x(_(f[1]/h,1))-1],b=m/h*f[0];return{layout:o,pixelDimIndex:s,layoutBase:n[r[s]],layoutLength:l,axisBase:n[r[1-s]],axisLength:n[i[1-s]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:v,axisExpandWindow0Pos:b}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),a=r.layout;g(t,function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),g(n,function(t,n){var s=(r.axisExpandable?o:i)(n,r),l={horizontal:{x:s.position,y:r.axisLength},vertical:{x:0,y:s.position}},u={horizontal:b/2,vertical:0},c=[l[a].x+e.x,l[a].y+e.y],h=u[a],p=d.create();d.rotate(p,p,h),d.translate(p,p,c),this._axesLayout[t]={position:c,rotation:h,transform:p,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(e){return this._axesMap[e]},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap[t].dataToCoord(e),t)},eachActiveState:function(e,t,n){for(var r=this.dimensions,a=this._axesMap,i=this.hasAxisBrushed(),o=0,s=e.count();o<s;o++){var l,u=e.getValues(r,o);if(i){l="active";for(var c=0,h=r.length;c<h;c++){var d=r[c],p=a[d].model.getActiveState(u[c],c);if("inactive"===p){l="inactive";break}}}else l="normal";t.call(n,l,o)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,a=e.length;r<a;r++)"normal"!==t[e[r]].model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){var n=this._axesLayout[t];return h.applyTransform([e,0],n.transform)},getAxisLayout:function(e){return u.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),a=r[1]-r[0],i=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<a*c[0]?(l="jump",o=s-a*c[2]):h&&u&&s>a*(1-c[0])?(l="jump",o=s-a*(1-c[2])):(o=s-a*c[1])>=0&&(o=s-a*(1-c[1]))<=0&&(o=0),o*=t.axisExpandWidth/u,o?f(o,r,i,"rigid"):l="none";else{var a=r[1]-r[0],d=i[1]*s/a;r=[v(0,d-a/2)],r[1]=m(i[1],r[0]+a),r[0]=r[1]-a}return{axisExpandWindow:r,behavior:l}}},e.exports=r},function(e,t,n){var r=n(239),a=n(335),i=function(e,t,n,r,i){a.call(this,e,t,n),this.type=r||"value",this.axisIndex=i};i.prototype={constructor:i,model:null},r.inherits(i,a),e.exports=i},function(e,t){e.exports=function(e,t,n,r,a){function i(e,t,n){var r=t.length?t.slice():[t,t];return t[0]>t[1]&&r.reverse(),e<0&&r[0]+e<n[0]&&(e=n[0]-r[0]),e>0&&r[1]+e>n[1]&&(e=n[1]-r[1]),e}return e?("rigid"===r?(e=i(e,t,n),t[0]+=e,t[1]+=e):(e=i(e,t[a],n),t[a]+=e,"push"===r&&t[0]>t[1]&&(t[1-a]=t[a])),t):t}},function(e,t,n){var r=n(239),a=n(254);n(475),a.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,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},init:function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&r.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){r.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=r.filter(this.dependentModels.parallelAxis,function(e){return e.get("parallelIndex")===this.componentIndex});r.each(n,function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})}})},function(e,t,n){function r(e,t){return t.type||(t.data?"category":"value")}var a=n(254),i=n(239),o=n(250),s=n(366),l=n(242),u=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]]).call(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=i.clone(e);if(t)for(var n=t.length-1;n>=0;n--)l.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e)return"inactive";for(var n=0,r=t.length;n<r;n++)if(t[n][0]<=e&&e<=t[n][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};i.merge(u.prototype,n(347)),s("parallel",u,r,c),e.exports=u},function(e,t,n){n(470),n(477),n(478)},function(e,t,n){var r=n(236),a={type:"axisAreaSelect",event:"axisAreaSelected",update:"updateVisual"};r.registerAction(a,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})},function(e,t,n){function r(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function a(e){var t=e.axis;return o.map(e.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function i(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var o=n(239),s=n(370),l=n(479),u=n(480),c=n(279),h=["axisLine","axisLabel","axisTick","axisName"],d=n(236).extendComponentView({type:"parallelAxis",init:function(e,t){d.superApply(this,"init",arguments),(this._brushController=new l(t.getZr())).on("brush",o.bind(this._onBrush,this))},render:function(e,t,n,a){if(!r(e,t,a)){this.axisModel=e,this.api=n,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new c.Group,this.group.add(this._axisGroup),e.get("show")){var u=i(e,t),d=u.coordinateSystem,p=e.getAreaSelectStyle(),f=p.width,g=e.axis.dim,m=d.getAxisLayout(g),v=o.extend({strokeContainThreshold:f},m),y=new s(e,v);o.each(h,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,p,e,u,f,n);var x=a&&a.animation===!1?null:e;c.groupTransition(l,this._axisGroup,x)}}},updateVisual:function(e,t,n,r){this._brushController&&this._brushController.updateCovers(a(e))},_refreshBrushController:function(e,t,n,r,i,o){var s=n.axis.getExtent(),l=s[1]-s[0],h=Math.min(30,.1*Math.abs(l)),d=c.BoundingRect.create({x:s[0],y:-i/2,width:l,height:i});d.x-=h,d.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:u.makeRectPanelClipPath(d),isTargetByCursor:u.makeRectIsTargetByCursor(d,o,r),getLinearBrushOtherExtent:u.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(a(n))},_onBrush:function(e,t){var n=this.axisModel,r=n.axis,a=o.map(e,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:a})},dispose:function(){this._brushController.dispose()}});e.exports=d},function(e,t,n){function r(e){__DEV__&&B.assert(e),z.call(this),this._zr=e,this.group=new F.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,__DEV__&&this._mounted,this._uid="brushController_"+ne++,this._handlers={},j(re,function(e,t){this._handlers[t]=B.bind(e,this)},this)}function a(e,t){var n=e._zr;e._enableGlobalPan||G.take(n,J,e._uid),j(e._handlers,function(e,t){n.on(t,e)}),e._brushType=t.brushType,e._brushOption=B.merge(B.clone(te),t,!0)}function i(e){var t=e._zr;G.release(t,J,e._uid),j(e._handlers,function(e,n){t.off(n,e)}),e._brushType=e._brushOption=null}function o(e,t){var n=ae[t.brushType].createCover(e,t);return n.__brushOption=t,u(n,t),e.group.add(n),n}function s(e,t){var n=h(t);return n.endCreating&&(n.endCreating(e,t),u(t,t.__brushOption)),t}function l(e,t){var n=t.__brushOption;h(t).updateCoverShape(e,t,n.range,n)}function u(e,t){var n=t.z;null==n&&(n=X),e.traverse(function(e){e.z=n,e.z2=n})}function c(e,t){h(t).updateCommon(e,t),l(e,t)}function h(e){return ae[e.__brushOption.brushType]}function d(e,t,n){var r=e._panels;if(!r)return!0;var a,i=e._transform;return j(r,function(e){e.isTargetByCursor(t,n,i)&&(a=e)}),a}function p(e,t){var n=e._panels;if(!n)return!0;var r=t.__brushOption.panelId;return null==r||n[r]}function f(e){var t=e._covers,n=t.length;return j(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function g(e,t){var n=U(e._covers,function(e){var t=e.__brushOption,n=B.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",n,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function m(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],a=n[0]-r[0],i=n[1]-r[1],o=Y(a*a+i*i,.5);return o>K}function v(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function y(e,t,n,r){var a=new F.Group;return a.add(new F.Rect({name:"main",style:w(n),silent:!0,draggable:!0,cursor:"move",drift:W(e,t,a,"nswe"),ondragend:W(g,t,{isEnd:!0})})),j(r,function(n){a.add(new F.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:W(e,t,a,n),ondragend:W(g,t,{isEnd:!0})}))}),a}function x(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=Z(a,Q),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],h=n[1][1],d=c-i+a/2,p=h-i+a/2,f=c-o,g=h-s,m=f+a,v=g+a;b(e,t,"main",o,s,f,g),r.transformable&&(b(e,t,"w",l,u,i,v),b(e,t,"e",d,u,i,v),b(e,t,"n",l,u,m,i),b(e,t,"s",l,p,m,i),b(e,t,"nw",l,u,i,i),b(e,t,"ne",d,u,i,i),b(e,t,"sw",l,p,i,i),b(e,t,"se",d,p,i,i))}function _(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(w(n)),a.attr({silent:!r,cursor:r?"move":"default"}),j(["w","e","n","s","se","sw","ne","nw"],function(n){var a=t.childOfName(n),i=C(e,n);a&&a.attr({silent:!r,invisible:!r,cursor:r?ee[i]+"-resize":null})})}function b(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(P(E(e,t,[[r,a],[r+i,a+o]])))}function w(e){return B.defaults({strokeNoScale:!0},e.brushStyle)}function S(e,t,n,r){var a=[q(e,n),q(t,r)],i=[Z(e,n),Z(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function M(e){return F.getTransform(e.group)}function C(e,t){if(t.length>1){t=t.split("");var n=[C(e,t[0]),C(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var r={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=F.transformDirection(r[t],M(e));return a[n]}function T(e,t,n,r,a,i,o,s){var l=r.__brushOption,u=e(l.range),h=I(n,i,o);j(a.split(""),function(e){var t=$[e];u[t[0]][t[1]]+=h[t[0]]}),l.range=t(S(u[0][0],u[1][0],u[0][1],u[1][1])),c(n,r),g(n,{isEnd:!1})}function A(e,t,n,r,a){var i=t.__brushOption.range,o=I(e,n,r);j(i,function(e){e[0]+=o[0],e[1]+=o[1]}),c(e,t),g(e,{isEnd:!1})}function I(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function E(e,t,n){var r=p(e,t);return r&&r!==!0?r.clipPath(n,e._transform):B.clone(n)}function P(e){var t=q(e[0][0],e[1][0]),n=q(e[0][1],e[1][1]),r=Z(e[0][0],e[1][0]),a=Z(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function L(e,t,n){if(e._brushType){var r=e._zr,a=e._covers,i=d(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===!0||s.panelId===i.panelId)&&ae[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function D(e){var t=e.event;t.preventDefault&&t.preventDefault()}function k(e,t,n){return e.childOfName("main").contain(t,n)}function O(e,t,n,r){var a,i=e._creatingCover,u=e._creatingPanel,c=e._brushOption;if(e._track.push(n.slice()),m(e)||i){if(u&&!i){"single"===c.brushMode&&f(e);var h=B.clone(c);h.brushType=R(h.brushType,u),h.panelId=u===!0?null:u.panelId,i=e._creatingCover=o(e,h),e._covers.push(i)}if(i){var p=ae[R(e._brushType,u)],g=i.__brushOption;g.range=p.getCreatingRange(E(e,i,e._track)),r&&(s(e,i),p.updateCommon(e,i)),l(e,i),a={isEnd:r}}}else r&&"single"===c.brushMode&&c.removeOnClick&&d(e,t,n)&&f(e)&&(a={isEnd:r,removeOnClick:!0});return a}function R(e,t){return"auto"===e?(__DEV__&&B.assert(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}function N(e){if(this._dragging){D(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY),n=O(this,e,t,!0);this._dragging=!1,this._track=[],this._creatingCover=null,n&&g(this,n)}}function V(e){return{createCover:function(t,n){return y(W(T,function(t){var n=[t,[0,100]];return e&&n.reverse(),n},function(t){return t[e]}),t,n,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var n=v(t),r=q(n[0][e],n[1][e]),a=Z(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=p(t,n);if(o!==!0&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),x(t,n,l,a)},updateCommon:_,contain:k}}var z=n(268),B=n(239),F=n(279),G=n(418),H=n(334),W=B.curry,j=B.each,U=B.map,q=Math.min,Z=Math.max,Y=Math.pow,X=1e4,K=6,Q=6,J="globalPan",$={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ee={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},te={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},ne=0;r.prototype={constructor:r,enableBrush:function(e){return __DEV__&&B.assert(this._mounted),this._brushType&&i(this),e.brushType&&a(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};B.each(e,function(e){t[e.panelId]=B.clone(e)})}else this._panels=null;return this},mount:function(e){e=e||{},__DEV__&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){j(this._covers,e,t)},updateCovers:function(e){function t(e,t){return(null!=e.id?e.id:i+t)+"-"+e.brushType}function n(e,n){return t(e.__brushOption,n)}function r(t,n){var r=e[t];if(null!=n&&l[n]===d)u[t]=l[n];else{var a=u[t]=null!=n?(l[n].__brushOption=r,l[n]):s(h,o(h,r));c(h,a)}}function a(e){l[e]!==d&&h.group.remove(l[e])}__DEV__&&B.assert(this._mounted),e=B.map(e,function(e){return B.merge(B.clone(te),e,!0)});var i="\0-brush-index-",l=this._covers,u=this._covers=[],h=this,d=this._creatingCover;return new H(l,e,n,t).add(r).update(r).remove(a).execute(),this},unmount:function(){if(!__DEV__||this._mounted)return this.enableBrush(!1),f(this),this._zr.remove(this.group),__DEV__&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},B.mixin(r,z);var re={mousedown:function(e){if(this._dragging)N.call(this,e);else if(!e.target||!e.target.draggable){D(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=d(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);if(L(this,e,t),this._dragging){D(e);var n=O(this,e,t,!1);n&&g(this,n)}},mouseup:N},ae={lineX:V(0),lineY:V(1),rect:{createCover:function(e,t){return y(W(T,function(e){return e},function(e){return e}),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=v(e);return S(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){x(e,t,n,r)},updateCommon:_,contain:k},polygon:{createCover:function(e,t){var n=new F.Group;return n.add(new F.Polyline({name:"main",style:w(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new F.Polygon({name:"main",draggable:!0,drift:W(A,e,t),ondragend:W(g,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:E(e,t,n)})},updateCommon:_,contain:k}};e.exports=r},function(e,t,n){function r(e){return o.create(e)}var a=n(239),i=n(420),o=n(244),s=Math.max,l=Math.min,u={};u.makeRectPanelClipPath=function(e){return e=r(e),function(t,n){return a.map(t,function(t){var n=t[0];n=s(n,e.x),n=l(n,e.x+e.width);var r=t[1];return r=s(r,e.y),r=l(r,e.y+e.height),[n,r]})}},u.makeLinearBrushOtherExtent=function(e,t){return e=r(e),function(n){var r=null!=t?t:n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}},u.makeRectIsTargetByCursor=function(e,t,n){return e=r(e),function(r,a,o){return e.contain(a[0],a[1])&&!i.onIrrelevantElement(r,t,n)}},e.exports=u},function(e,t,n){function r(e){if(!e.parallel){var t=!1;i.each(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}}function a(e){var t=o.normalizeToArray(e.parallelAxis);i.each(t,function(t){if(i.isObject(t)){var n=t.parallelIndex||0,r=o.normalizeToArray(e.parallel)[n];r&&r.parallelAxisDefault&&i.merge(t,r.parallelAxisDefault,!1)}})}var i=n(239),o=n(240);e.exports=function(e){r(e),a(e)}},function(e,t,n){function r(e,t,n){var r=e.get("data"),i=a(t);r&&r.length&&s.each(n,function(e){if(e){var t=s.indexOf(r,e[i]);e[i]=t>=0?t:NaN}})}function a(e){return+e.replace("dim","")}function i(e,t){var n=0;s.each(e,function(e){var t=a(e);t>n&&(n=t)});var r=t[0];r&&r.length-1>n&&(n=r.length-1);for(var i=[],o=0;o<=n;o++)i.push("dim"+o);return i}var o=n(333),s=n(239),l=n(263),u=n(338);e.exports=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(e,t){var n=t.getComponent("parallel",this.get("parallelIndex")),a=n.parallelAxisIndex,l=e.data,c=n.dimensions,h=i(c,l),d=s.map(h,function(e,n){var i=s.indexOf(c,e),o=i>=0&&t.getComponent("parallelAxis",a[i]);return o&&"category"===o.get("type")?(r(o,e,l),{name:e,type:"ordinal"}):i<0&&u.guessOrdinal(l,n)?{name:e,type:"ordinal"}:e}),p=new o(d,this);return p.initData(l),this.option.progressive&&(this.option.animation=!1),p},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,a){e===t&&r.push(n.getRawIndex(a))}),r},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(e,t,n){function r(e,t,n){var r=e.model,a=e.getRect(),i=new l.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o="horizontal"===r.get("layout")?"width":"height";return i.setShape(o,0),l.initProps(i,{shape:{width:a.width,height:a.height}},t,n),i}function a(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],l=e.get(o,t);s(l,r.getAxis(o).type)||a.push(r.dataToPoint(l,o))}return a}function i(e,t,n,r,i){var o=a(e,n,r,i),s=new l.Polyline({shape:{points:o},silent:!0,z2:10});t.add(s),e.setItemGraphicEl(n,s)}function o(e,t){var n=e.hostModel.getModel("lineStyle.normal"),r=n.getLineStyle();e.eachItemGraphicEl(function(a,i){if(e.hasItemOption){var o=e.getItemModel(i),s=o.getModel("lineStyle.normal",n);r=s.getLineStyle(["color","stroke"])}a.useStyle(u.extend(r,{fill:null,stroke:e.getItemVisual(i,"color"),opacity:e.getItemVisual(i,"opacity")})),a.shape.smooth=t})}function s(e,t){return"category"===t?null==e:null==e||isNaN(e)}var l=n(279),u=n(239),c=.3,h=n(278).extend({type:"parallel",init:function(){this._dataGroup=new l.Group,this.group.add(this._dataGroup),this._data},render:function(e,t,n,r){this._renderForNormal(e,r)},dispose:function(){},_renderForNormal:function(e,t){function n(e){i(d,h,e,g,f,null,v)}function s(n,r){var i=p.getItemGraphicEl(r),o=a(d,n,g,f);d.setItemGraphicEl(n,i);var s=t&&t.animation===!1?null:e;l.updateProps(i,{shape:{points:o}},s,n)}function u(e){var t=p.getItemGraphicEl(e);h.remove(t)}var h=this._dataGroup,d=e.getData(),p=this._data,f=e.coordinateSystem,g=f.dimensions,m=e.option,v=m.smooth?c:null;if(d.diff(p).add(n).update(s).remove(u).execute(),o(d,v),!this._data){var y=r(f,e,function(){setTimeout(function(){h.removeClipPath()})});h.setClipPath(y)}this._data=d},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});e.exports=h},function(e,t){var n=["lineStyle","normal","opacity"];e.exports=function(e){e.eachSeriesByType("parallel",function(t){var r=t.getModel("itemStyle.normal"),a=t.getModel("lineStyle.normal"),i=e.get("color"),o=a.get("color")||r.get("color")||i[t.seriesIndex%i.length],s=t.get("inactiveOpacity"),l=t.get("activeOpacity"),u=t.getModel("lineStyle.normal").getLineStyle(),c=t.coordinateSystem,h=t.getData(),d={normal:u.opacity,active:l,inactive:s};c.eachActiveState(h,function(e,t){var r=h.getItemModel(t),a=d[e];if("normal"===e){var i=r.get(n,!0);null!=i&&(a=i)}h.setItemVisual(t,"opacity",a)}),h.setVisual("color",o)})}},function(e,t,n){var r=n(236);n(486),n(487),r.registerLayout(n(488)),r.registerVisual(n(490))},function(e,t,n){var r=n(263),a=n(441),i=n(241).encodeHTML,o=r.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(e){var t=e.edges||e.links,n=e.data||e.nodes;if(n&&t){var r=a(n,t,this,!0);return r.data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getDataParams(e,n),a=r.data,s=a.source+" -- "+a.target;return r.value&&(s+=" : "+r.value),i(s)}return o.superCall(this,"formatTooltip",e,t)},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,layoutIterations:32,label:{normal:{show:!0,position:"right",textStyle:{color:"#000",fontSize:12}},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:1,borderColor:"#333"}},lineStyle:{normal:{color:"#314656",opacity:.2,curveness:.5},emphasis:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}});e.exports=o},function(e,t,n){function r(e,t,n){var r=new a.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return a.initProps(r,{shape:{width:e.width+20,height:e.height+20}},t,n),r}var a=n(279),i=n(239),o=a.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(e,t){var n=t.extent/2;e.moveTo(t.x1,t.y1-n),e.bezierCurveTo(t.cpx1,t.cpy1-n,t.cpx2,t.cpy2-n,t.x2,t.y2-n),e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n),e.closePath()}});e.exports=n(236).extendChartView({type:"sankey",_model:null,render:function(e,t,n){var s=e.getGraph(),l=this.group,u=e.layoutInfo,c=e.getData(),h=e.getData("edge");this._model=e,l.removeAll(),l.position=[u.x,u.y],s.eachEdge(function(t){var n=new o;n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var r=t.getModel("lineStyle.normal"),i=r.get("curveness"),s=t.node1.getLayout(),u=t.node2.getLayout(),c=t.getLayout();n.shape.extent=Math.max(1,c.dy);var d=s.x+s.dx,p=s.y+c.sy+c.dy/2,f=u.x,g=u.y+c.ty+c.dy/2,m=d*(1-i)+f*i,v=p,y=d*i+f*(1-i),x=g;switch(n.setShape({x1:d,y1:p,x2:f,y2:g,cpx1:m,cpy1:v,cpx2:y,cpy2:x}),n.setStyle(r.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color");break;case"target":n.style.fill=t.node2.getVisual("color")}a.setHoverStyle(n,t.getModel("lineStyle.emphasis").getItemStyle()),
|
|
55
|
-
l.add(n),h.setItemGraphicEl(t.dataIndex,n)}),s.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),o=r.getModel("label.normal"),s=o.getModel("textStyle"),u=r.getModel("label.emphasis"),h=u.getModel("textStyle"),d=new a.Rect({shape:{x:n.x,y:n.y,width:t.getLayout().dx,height:t.getLayout().dy},style:{text:o.get("show")?e.getFormattedLabel(t.dataIndex,"normal")||t.id:"",textFont:s.getFont(),textFill:s.getTextColor(),textPosition:o.get("position")}});d.setStyle(i.defaults({fill:t.getVisual("color")},r.getModel("itemStyle.normal").getItemStyle())),a.setHoverStyle(d,i.extend(t.getModel("itemStyle.emphasis"),{text:u.get("show")?e.getFormattedLabel(t.dataIndex,"emphasis")||t.id:"",textFont:h.getFont(),textFill:h.getTextColor(),textPosition:u.get("position")})),l.add(d),c.setItemGraphicEl(t.dataIndex,d),d.dataType="node"}),!this._data&&e.get("animation")&&l.setClipPath(r(l.getBoundingRect(),e,function(){l.removeClipPath()})),this._data=e.getData()},dispose:function(){}})},function(e,t,n){function r(e,t){return M.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function a(e,t,n,r,a,i,s){o(e,n,a),u(e,t,i,r,s),m(e)}function i(e){T.each(e,function(e){var t=x(e.outEdges,S),n=x(e.inEdges,S),r=Math.max(t,n);e.setLayout({value:r},!0)})}function o(e,t,n){for(var r=e,a=null,i=0,o=0;r.length;){a=[];for(var u=0,c=r.length;u<c;u++){var h=r[u];h.setLayout({x:i},!0),h.setLayout({dx:t},!0);for(var d=0,p=h.outEdges.length;d<p;d++)a.push(h.outEdges[d].node2)}r=a,++i}s(e,i),o=(n-t)/(i-1),l(e,o)}function s(e,t){T.each(e,function(e){e.outEdges.length||e.setLayout({x:t-1},!0)})}function l(e,t){T.each(e,function(e){var n=e.getLayout().x*t;e.setLayout({x:n},!0)})}function u(e,t,n,r,a){var i=C().key(function(e){return e.getLayout().x}).sortKeys(w).entries(e).map(function(e){return e.values});c(e,i,t,n,r),h(i,r,n);for(var o=1;a>0;a--)o*=.99,d(i,o),h(i,r,n),f(i,o),h(i,r,n)}function c(e,t,n,r,a){var i=[];T.each(t,function(e){var t=e.length,n=0;T.each(e,function(e){n+=e.getLayout().value});var o=(r-(t-1)*a)/n;i.push(o)}),i.sort(function(e,t){return e-t});var o=i[0];T.each(t,function(e){T.each(e,function(e,t){e.setLayout({y:t},!0);var n=e.getLayout().value*o;e.setLayout({dy:n},!0)})}),T.each(n,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function h(e,t,n){T.each(e,function(e){var r,a,i,o=0,s=e.length;for(e.sort(b),i=0;i<s;i++){if(r=e[i],a=o-r.getLayout().y,a>0){var l=r.getLayout().y+a;r.setLayout({y:l},!0)}o=r.getLayout().y+r.getLayout().dy+t}if(a=o-t-n,a>0){var l=r.getLayout().y-a;for(r.setLayout({y:l},!0),o=r.getLayout().y,i=s-2;i>=0;--i)r=e[i],a=r.getLayout().y+r.getLayout().dy+t-o,a>0&&(l=r.getLayout().y-a,r.setLayout({y:l},!0)),o=r.getLayout().y}})}function d(e,t){T.each(e.slice().reverse(),function(e){T.each(e,function(e){if(e.outEdges.length){var n=x(e.outEdges,p)/x(e.outEdges,S),r=e.getLayout().y+(n-_(e))*t;e.setLayout({y:r},!0)}})})}function p(e){return _(e.node2)*e.getValue()}function f(e,t){T.each(e,function(e){T.each(e,function(e){if(e.inEdges.length){var n=x(e.inEdges,g)/x(e.inEdges,S),r=e.getLayout().y+(n-_(e))*t;e.setLayout({y:r},!0)}})})}function g(e){return _(e.node1)*e.getValue()}function m(e){T.each(e,function(e){e.outEdges.sort(v),e.inEdges.sort(y)}),T.each(e,function(e){var t=0,n=0;T.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),T.each(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}function v(e,t){return e.node2.getLayout().y-t.node2.getLayout().y}function y(e,t){return e.node1.getLayout().y-t.node1.getLayout().y}function x(e,t){for(var n=0,r=e.length,a=-1;++a<r;){var i=+t.call(e,e[a],a);isNaN(i)||(n+=i)}return n}function _(e){return e.getLayout().y+e.getLayout().dy/2}function b(e,t){return e.getLayout().y-t.getLayout().y}function w(e,t){return e<t?-1:e>t?1:e===t?0:NaN}function S(e){return e.getValue()}var M=n(256),C=n(489),T=n(239);e.exports=function(e,t,n){e.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),o=e.get("nodeGap"),s=r(e,t);e.layoutInfo=s;var l=s.width,u=s.height,c=e.getGraph(),h=c.nodes,d=c.edges;i(h);var p=T.filter(h,function(e){return 0===e.getLayout().value}),f=0!==p.length?0:e.get("layoutIterations");a(h,d,n,o,l,u,f)})}},function(e,t,n){function r(){function e(t,r){if(r>=n.length)return t;for(var i=-1,o=t.length,s=n[r++],l={},u={};++i<o;){var c=s(t[i]),h=u[c];h?h.push(t[i]):u[c]=[t[i]]}return a.each(u,function(t,n){l[n]=e(t,r)}),l}function t(e,i){if(i>=n.length)return e;var o=[],s=r[i++];return a.each(e,function(e,n){o.push({key:n,values:t(e,i)})}),s?o.sort(function(e,t){return s(e.key,t.key)}):o}var n=[],r=[];return{key:function(e){return n.push(e),this},sortKeys:function(e){return r[n.length-1]=e,this},entries:function(n){return t(e(n,0),0)}}}var a=n(239);e.exports=r},function(e,t,n){var r=n(437),a=n(239);e.exports=function(e,t){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes;n.sort(function(e,t){return e.getLayout().value-t.getLayout().value});var i=n[0].getLayout().value,o=n[n.length-1].getLayout().value;a.each(n,function(t){var n=new r({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),a=n.mapValueToVisual(t.getLayout().value);t.setVisual("color",a);var s=t.getModel(),l=s.get("itemStyle.normal.color");null!=l&&t.setVisual("color",l)})})}},function(e,t,n){var r=n(236);n(492),n(495),r.registerVisual(n(496)),r.registerLayout(n(497))},function(e,t,n){"use strict";var r=n(239),a=n(263),i=n(493),o=a.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(o,i.seriesModelMixin,!0),e.exports=o},function(e,t,n){"use strict";function r(e){return null==e.value?e:e.value}var a=n(333),i=n(338),o=n(494),s=n(239),l={_baseAxisDim:null,getInitialData:function(e,t){var n,o,s=t.getComponent("xAxis",this.get("xAxisIndex")),l=t.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),c=l.get("type");"category"===u?(e.layout="horizontal",n=s.getCategories(),o=!0):"category"===c?(e.layout="vertical",n=l.getCategories(),o=!0):e.layout=e.layout||"horizontal",this._baseAxisDim="horizontal"===e.layout?"x":"y";var h=e.data,d=this.dimensions=["base"].concat(this.valueDimensions);i(d,h);var p=new a(d,this);return p.initData(h,n?n.slice():null,function(e,t,n,a){var i=r(e);return o?"base"===t?n:i[a-1]:i[a]}),p},coordDimToDataDim:function(e){var t=this.valueDimensions.slice(),n=["base"],r={horizontal:{x:n,y:t},vertical:{x:t,y:n}};return r[this.get("layout")][e]},dataDimToCoordDim:function(e){var t;return s.each(["x","y"],function(n,r){var a=this.coordDimToDataDim(n);s.indexOf(a,e)>=0&&(t=n)},this),t},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}},u={init:function(){var e=this._whiskerBoxDraw=new o(this.getStyleUpdater());this.group.add(e.group)},render:function(e,t,n){this._whiskerBoxDraw.updateData(e.getData())},remove:function(e){this._whiskerBoxDraw.remove()}};e.exports={seriesModelMixin:l,viewMixin:u}},function(e,t,n){function r(e,t,n,r){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(e,t,r),this.updateData(e,t,r),this._seriesModel}function a(e,t,n){return s.map(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function i(e){var t={};return s.each(e,function(e,n){t["ends"+n]=e}),t}function o(e){this.group=new l.Group,this.styleUpdater=e}var s=n(239),l=n(279),u=n(281),c=u.extend({type:"whiskerInBox",shape:{},buildPath:function(e,t){for(var n in t)if(t.hasOwnProperty(n)&&0===n.indexOf("ends")){var r=t[n];e.moveTo(r[0][0],r[0][1]),e.lineTo(r[1][0],r[1][1])}}}),h=r.prototype;h._createContent=function(e,t,n){var r=e.getItemLayout(t),o="horizontal"===r.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:n?a(r.bodyEnds,o,r):r.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=s.map(r.whiskerEnds,function(e){return n?a(e,o,r):e});this.add(new c({shape:i(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},h.updateData=function(e,t,n){var r=this._seriesModel=e.hostModel,a=e.getItemLayout(t),o=l[n?"initProps":"updateProps"];o(this.childAt(this.bodyIndex),{shape:{points:a.bodyEnds}},r,t),o(this.childAt(this.whiskerIndex),{shape:i(a.whiskerEnds)},r,t),this.styleUpdater.call(null,this,e,t)},s.inherits(r,l.Group);var d=o.prototype;d.updateData=function(e){var t=this.group,n=this._data,a=this.styleUpdater;e.diff(n).add(function(n){if(e.hasValue(n)){var i=new r(e,n,a,!0);e.setItemGraphicEl(n,i),t.add(i)}}).update(function(i,o){var s=n.getItemGraphicEl(o);return e.hasValue(i)?(s?s.updateData(e,i):s=new r(e,i,a),t.add(s),void e.setItemGraphicEl(i,s)):void t.remove(s)}).remove(function(e){var r=n.getItemGraphicEl(e);r&&t.remove(r)}).execute(),this._data=e},d.remove=function(){var e=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.exports=o},function(e,t,n){"use strict";function r(e,t,n){var r=t.getItemModel(n),a=r.getModel(u),i=t.getItemVisual(n,"color"),s=a.getItemStyle(["borderColor"]),l=e.childAt(e.whiskerIndex);l.style.set(s),l.style.stroke=i,l.dirty();var h=e.childAt(e.bodyIndex);h.style.set(s),h.style.stroke=i,h.dirty();var d=r.getModel(c).getItemStyle();o.setHoverStyle(e,d)}var a=n(239),i=n(278),o=n(279),s=n(493),l=i.extend({type:"boxplot",getStyleUpdater:function(){return r},dispose:a.noop});a.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];e.exports=l},function(e,t){var n=["itemStyle","normal","borderColor"];e.exports=function(e,t){var r=e.get("color");e.eachRawSeriesByType("boxplot",function(t){var a=r[t.seriesIndex%r.length],i=t.getData();i.setVisual({legendSymbol:"roundRect",color:t.get(n)||a}),e.isSeriesFiltered(t)||i.each(function(e){var t=i.getItemModel(e);i.setItemVisual(e,{color:t.get(n,!0)})})})}},function(e,t,n){function r(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var r=e.getBaseAxis(),a=o.indexOf(n,r);a<0&&(a=n.length,n[a]=r,t[a]={axis:r,seriesModels:[]}),t[a].seriesModels.push(e)}),t}function a(e){var t,n,r=e.axis,a=e.seriesModels,i=a.length,s=e.boxWidthList=[],c=e.boxOffsetList=[],h=[];if("category"===r.type)n=r.getBandWidth();else{var d=0;u(a,function(e){d=Math.max(d,e.getData().count())}),t=r.getExtent(),Math.abs(t[1]-t[0])/d}u(a,function(e){var t=e.get("boxWidth");o.isArray(t)||(t=[t,t]),h.push([l(t[0],n)||0,l(t[1],n)||0])});var p=.8*n-2,f=p/i*.3,g=(p-f*(i-1))/i,m=g/2-p/2;u(a,function(e,t){c.push(m),m+=f+g,s.push(Math.min(Math.max(g,h[t][0]),h[t][1]))})}function i(e,t,n){var r=e.coordinateSystem,a=e.getData(),i=e.dimensions,o=e.get("layout"),s=n/2;a.each(i,function(){function e(e){var n=[];n[p]=h,n[f]=e;var a;return isNaN(h)||isNaN(e)?a=[NaN,NaN]:(a=r.dataToPoint(n),a[p]+=t),a}function n(e,t){var n=e.slice(),r=e.slice();n[p]+=s,r[p]-=s,t?x.push(n,r):x.push(r,n)}function l(e){var t=[e.slice(),e.slice()];t[0][p]-=s,t[1][p]+=s,y.push(t)}var u=arguments,c=i.length,h=u[0],d=u[c],p="horizontal"===o?0:1,f=1-p,g=e(u[3]),m=e(u[1]),v=e(u[5]),y=[[m,e(u[2])],[v,e(u[4])]];l(m),l(v),l(g);var x=[];n(y[0][1],0),n(y[1][1],1),a.setItemLayout(d,{chartLayout:o,initBaseline:g[f],median:g,bodyEnds:x,whiskerEnds:y})})}var o=n(239),s=n(242),l=s.parsePercent,u=o.each;e.exports=function(e){var t=r(e);u(t,function(e){var t=e.seriesModels;t.length&&(a(e),u(t,function(t,n){i(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}},function(e,t,n){var r=n(236);n(499),n(500),r.registerPreprocessor(n(501)),r.registerVisual(n(502)),r.registerLayout(n(503))},function(e,t,n){"use strict";var r=n(239),a=n(263),i=n(493),o=n(241),s=o.encodeHTML,l=o.addCommas,u=a.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(e,t){var n=r.map(this.valueDimensions,function(t){return s(t+": "+l(this.getData().get(t,e)))},this).join("<br />"),a=[];return null!=this.name&&a.push(s(this.name)),null!=n&&a.push(n),a.join("<br />")},brushSelector:function(e,t,n){var r=t.getItemLayout(e);return n.rect(r.brushRect)}});r.mixin(u,i.seriesModelMixin,!0),e.exports=u},function(e,t,n){"use strict";function r(e,t,n){var r=t.getItemModel(n),a=r.getModel(u),i=t.getItemVisual(n,"color"),s=t.getItemVisual(n,"borderColor")||i,l=a.getItemStyle(["color","color0","borderColor","borderColor0"]),h=e.childAt(e.whiskerIndex);h.useStyle(l),h.style.stroke=s;var d=e.childAt(e.bodyIndex);d.useStyle(l),d.style.fill=i,d.style.stroke=s;var p=r.getModel(c).getItemStyle();o.setHoverStyle(e,p)}var a=n(239),i=n(278),o=n(279),s=n(493),l=i.extend({type:"candlestick",getStyleUpdater:function(){return r},dispose:a.noop});a.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];e.exports=l},function(e,t,n){var r=n(239);e.exports=function(e){e&&r.isArray(e.series)&&r.each(e.series,function(e){r.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}},function(e,t){var n=["itemStyle","normal","borderColor"],r=["itemStyle","normal","borderColor0"],a=["itemStyle","normal","color"],i=["itemStyle","normal","color0"];e.exports=function(e,t){e.eachRawSeriesByType("candlestick",function(t){var o=t.getData();o.setVisual({legendSymbol:"roundRect"}),e.isSeriesFiltered(t)||o.each(function(e){var t=o.getItemModel(e),s=o.getItemLayout(e).sign;o.setItemVisual(e,{color:t.get(s>0?a:i),borderColor:t.get(s>0?n:r)})})})}},function(e,t,n){function r(e,t){var n,r=e.getBaseAxis(),o="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),s=i(a(e.get("barMaxWidth"),o),o),l=i(a(e.get("barMinWidth"),1),o),u=e.get("barWidth");return null!=u?i(u,o):Math.max(Math.min(o/2,s),l)}var a=n(239).retrieve,i=n(242).parsePercent;e.exports=function(e){e.eachSeriesByType("candlestick",function(e){var t=e.coordinateSystem,n=e.getData(),a=e.dimensions,i=e.get("layout"),o=r(e,n);n.each(a,function(){function e(e){var n=[];return n[d]=c,n[p]=e,isNaN(c)||isNaN(e)?[NaN,NaN]:t.dataToPoint(n)}function r(e,t){var n=e.slice(),r=e.slice();n[d]+=o/2,r[d]-=o/2,t?C.push(n,r):C.push(r,n)}function s(){var t=e(Math.min(f,g,m,v)),n=e(Math.max(f,g,m,v));return t[d]-=o/2,n[d]-=o/2,{x:t[0],y:t[1],width:p?o:n[0]-t[0],height:p?n[1]-t[1]:o}}var l=arguments,u=a.length,c=l[0],h=l[u],d="horizontal"===i?0:1,p=1-d,f=l[1],g=l[2],m=l[3],v=l[4],y=Math.min(f,g),x=Math.max(f,g),_=e(y),b=e(x),w=e(m),S=e(v),M=[[S,b],[w,_]],C=[];r(b,0),r(_,1),n.setItemLayout(h,{chartLayout:i,sign:f>g?-1:f<g?1:0,initBaseline:f>g?b[p]:_[p],bodyEnds:C,whiskerEnds:M,brushRect:s()})},!0)})}},function(e,t,n){var r=n(239),a=n(236);n(505),n(506),a.registerVisual(r.curry(n(355),"effectScatter","circle",null)),a.registerLayout(r.curry(n(356),"effectScatter"))},function(e,t,n){"use strict";var r=n(337),a=n(263);e.exports=a.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){var n=r(e.data,this,t);return n},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(e,t,n){var r=n(351),a=n(507);n(236).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(a)},render:function(e,t,n){var r=e.getData(),a=this._symbolDraw;a.updateData(r),this.group.add(a.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}})},function(e,t,n){function r(e){return o.isArray(e)||(e=[+e,+e]),e}function a(e,t){e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?t.color:null,fill:"fill"===t.brushType?t.color:null}})})}function i(e,t){h.call(this);var n=new c(e,t),r=new h;this.add(n),this.add(r),r.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}var o=n(239),s=n(339),l=n(279),u=n(242),c=n(352),h=l.Group,d=3,p=i.prototype;p.stopEffectAnimation=function(){this.childAt(1).removeAll()},p.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=this.childAt(1),i=0;i<d;i++){var o=s.createSymbol(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-i/d*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(l).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),r.add(o)}a(r,e)},p.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}a(n,e)},p.highlight=function(){this.trigger("emphasis")},p.downplay=function(){this.trigger("normal")},p.updateData=function(e,t){var n=e.hostModel;this.childAt(0).updateData(e,t);var a=this.childAt(1),i=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=r(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"color");a.attr("scale",s),a.traverse(function(e){e.attr({fill:l})});var c=i.getShallow("symbolOffset");if(c){var h=a.position;h[0]=u.parsePercent(c[0],s[0]),h[1]=u.parsePercent(c[1],s[1])}a.rotation=(i.getShallow("symbolRotate")||0)*Math.PI/180||0;var d={};if(d.showEffectOn=n.get("showEffectOn"),d.rippleScale=i.get("rippleEffect.scale"),d.brushType=i.get("rippleEffect.brushType"),d.period=1e3*i.get("rippleEffect.period"),d.effectOffset=t/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=o,d.color=l,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn)this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),f=function(){p.trigger("emphasis"),"render"!==d.showEffectOn&&this.startEffectAnimation(d)},g=function(){p.trigger("normal"),"render"!==d.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",f,this).on("mouseout",g,this).on("emphasis",f,this).on("normal",g,this)}this._effectCfg=d},p.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},o.inherits(i,h),e.exports=i},function(e,t,n){n(509),n(510);var r=n(236);r.registerLayout(n(515)),r.registerVisual(n(516))},function(e,t,n){"use strict";function r(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(__DEV__&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),e.data=o.map(t,function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),o.mergeAll([n,e[0],e[1]])}))}var a=n(263),i=n(333),o=n(239),s=n(241),l=n(261),u=a.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.normal.color",init:function(e){r(e),u.superApply(this,"init",arguments)},mergeOption:function(e){r(e),u.superApply(this,"mergeOption",arguments)},getInitialData:function(e,t){if(__DEV__){var n=l.get(e.coordinateSystem);if(!n)throw new Error("Unkown coordinate system "+e.coordinateSystem)}var r=new i(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],function(e,t,n,a){if(e instanceof Array)return NaN;r.hasItemOption=!0;var i=e.value;return null!=i?i instanceof Array?i[a]:i:void 0}),r},formatTooltip:function(e){var t=this.getData(),n=t.getItemModel(e),r=n.get("name");if(r)return r;var a=n.get("fromName"),i=n.get("toName"),o=[];return null!=a&&o.push(a),null!=i&&o.push(i),s.encodeHTML(o.join(" > "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})},function(e,t,n){var r=n(444),a=n(511),i=n(445),o=n(512),s=n(513),l=n(514);n(236).extendChartView({type:"lines",init:function(){},render:function(e,t,n){var u=e.getData(),c=this._lineDraw,h=e.get("effect.show"),d=e.get("polyline"),p=e.get("large")&&u.count()>=e.get("largeThreshold");__DEV__&&h&&p&&console.warn("Large lines not support effect"),h===this._hasEffet&&d===this._isPolyline&&p===this._isLarge||(c&&c.remove(),c=this._lineDraw=p?new l:new r(d?h?s:o:h?a:i),this._hasEffet=h,this._isPolyline=d,this._isLarge=p);var f=e.get("zlevel"),g=e.get("effect.trailLength"),m=n.getZr();if(m.painter.getLayer(f).clear(!0),null!=this._lastZlevel&&m.configLayer(this._lastZlevel,{motionBlur:!1}),h&&g){if(__DEV__){var v=!1;t.eachSeries(function(t){t!==e&&t.get("zlevel")===f&&(v=!0)}),v&&console.warn("Lines with trail effect should have an individual zlevel")}m.configLayer(f,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updateData(u),this._lastZlevel=f},updateLayout:function(e,t,n){this._lineDraw.updateLayout(e);var r=n.getZr();r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(t,!0)},dispose:function(){}})},function(e,t,n){function r(e,t,n){a.Group.call(this),this.add(this.createLine(e,t,n)),this._updateEffectSymbol(e,t)}var a=n(279),i=n(445),o=n(239),s=n(339),l=n(245),u=n(286),c=r.prototype;c.createLine=function(e,t,n){return new i(e,t,n)},c._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),a=r.get("symbolSize"),i=r.get("symbol");o.isArray(a)||(a=[a,a]);var l=r.get("color")||e.getItemVisual(t,"color"),u=this.childAt(1);this._symbolType!==i&&(this.remove(u),u=s.createSymbol(i,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(r.getItemStyle(["color"])),u.attr("scale",a),u.setColor(l),u.attr("scale",a),this._symbolType=i,this._updateEffectAnimation(e,r,t))},c._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var a=this,i=e.getItemLayout(n),s=1e3*t.get("period"),l=t.get("loop"),u=t.get("constantSpeed"),c=o.retrieve(t.get("delay"),function(t){return t/e.count()*s/3}),h="function"==typeof c;if(r.ignore=!0,this.updateAnimationPoints(r,i),u>0&&(s=this.getLineLength(r)/u*1e3),s!==this._period||l!==this._loop){r.stopAnimation();var d=c;h&&(d=c(n)),r.__t>0&&(d=-s*r.__t),r.__t=0;var p=r.animate("",l).when(s,{__t:1}).delay(d).during(function(){a.updateSymbolPosition(r)});l||p.done(function(){a.remove(r)}),p.start()}this._period=s,this._loop=l}},c.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},c.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},c.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},c.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,a=e.__t,i=e.position,o=u.quadraticAt,s=u.quadraticDerivativeAt;i[0]=o(t[0],r[0],n[0],a),i[1]=o(t[1],r[1],n[1],a);var l=s(t[0],r[0],n[0],a),c=s(t[1],r[1],n[1],a);e.rotation=-Math.atan2(c,l)-Math.PI/2,e.ignore=!1},c.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},o.inherits(r,a.Group),e.exports=r},function(e,t,n){function r(e,t,n){a.Group.call(this),this._createPolyline(e,t,n)}var a=n(279),i=n(239),o=r.prototype;o._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new a.Polyline({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},o.updateData=function(e,t,n){var r=e.hostModel,i=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};a.updateProps(i,o,r,t),this._updateCommonStl(e,t,n)},o._updateCommonStl=function(e,t,n){var r=this.childAt(0),o=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!e.hasItemOption||(l=o.getModel("lineStyle.normal").getLineStyle(),u=o.getModel("lineStyle.emphasis").getLineStyle()),r.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),r.hoverStyle=u,a.setHoverStyle(this)},o.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},i.inherits(r,a.Group),e.exports=r},function(e,t,n){function r(e,t,n){o.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}var a=n(512),i=n(239),o=n(511),s=n(245),l=r.prototype;l.createLine=function(e,t,n){return new a(e,t,n)},l.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,a=1;a<t.length;a++){var i=t[a-1],o=t[a];r+=s.dist(i,o),n.push(r)}if(0!==r){for(var a=0;a<n.length;a++)n[a]/=r;this._offsets=n,this._length=r}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,a=n.length;if(r){var i,o=this._lastFrame;if(t<this._lastFramePercent){var l=Math.min(o+1,a-1);for(i=l;i>=0&&!(r[i]<=t);i--);i=Math.min(i,a-2)}else{for(var i=o;i<a&&!(r[i]>t);i++);i=Math.min(i-1,a-2)}s.lerp(e.position,n[i],n[i+1],(t-r[i])/(r[i+1]-r[i]));var u=n[i+1][0]-n[i][0],c=n[i+1][1]-n[i][1];e.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=i,this._lastFramePercent=t,e.ignore=!1}},i.inherits(r,o),e.exports=r},function(e,t,n){function r(){this.group=new a.Group,this._lineEl=new s}var a=n(279),i=n(291),o=n(289),s=a.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(e,t){for(var n=t.segs,r=t.polyline,a=0;a<n.length;a++){var i=n[a];if(r){e.moveTo(i[0][0],i[0][1]);for(var o=1;o<i.length;o++)e.lineTo(i[o][0],i[o][1])}else e.moveTo(i[0][0],i[0][1]),i.length>2?e.quadraticCurveTo(i[2][0],i[2][1],i[1][0],i[1][1]):e.lineTo(i[1][0],i[1][1])}},findDataIndex:function(e,t){for(var n=this.shape,r=n.segs,a=n.polyline,s=Math.max(this.style.lineWidth,1),l=0;l<r.length;l++){var u=r[l];if(a){for(var c=1;c<u.length;c++)if(o.containStroke(u[c-1][0],u[c-1][1],u[c][0],u[c][1],s,e,t))return l}else if(u.length>2){if(i.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,e,t))return l}else if(o.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,e,t))return l}return-1}}),l=r.prototype;l.updateData=function(e){this.group.removeAll();var t=this._lineEl,n=e.hostModel;t.setShape({segs:e.mapArray(e.getItemLayout),polyline:n.get("polyline")}),t.useStyle(n.getModel("lineStyle.normal").getLineStyle());var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n)}),this.group.add(t)},l.updateLayout=function(e){var t=e.getData();this._lineEl.setShape({segs:t.mapArray(t.getItemLayout)})},l.remove=function(){this.group.removeAll()},e.exports=r},function(e,t){e.exports=function(e){e.eachSeriesByType("lines",function(e){var t=e.coordinateSystem,n=e.getData();n.each(function(r){var a=n.getItemModel(r),i=a.option instanceof Array?a.option:a.get("coords");if(__DEV__&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");var o=[];if(e.get("polyline"))for(var s=0;s<i.length;s++)o.push(t.dataToPoint(i[s]));else{o[0]=t.dataToPoint(i[0]),o[1]=t.dataToPoint(i[1]);var l=a.get("lineStyle.normal.curveness");+l&&(o[2]=[(o[0][0]+o[1][0])/2-(o[0][1]-o[1][1])*l,(o[0][1]+o[1][1])/2-(o[1][0]-o[0][0])*l])}n.setItemLayout(r,o)})})}},function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}e.exports=function(e){e.eachSeriesByType("lines",function(e){var t=e.getData(),r=n(e.get("symbol")),a=n(e.get("symbolSize")),i="lineStyle.normal.opacity".split(".");t.setVisual("fromSymbol",r&&r[0]),t.setVisual("toSymbol",r&&r[1]),t.setVisual("fromSymbolSize",a&&a[0]),t.setVisual("toSymbolSize",a&&a[1]),t.setVisual("opacity",e.get(i)),t.each(function(e){var r=t.getItemModel(e),a=n(r.getShallow("symbol",!0)),o=n(r.getShallow("symbolSize",!0)),s=r.get(i);a[0]&&t.setItemVisual(e,"fromSymbol",a[0]),a[1]&&t.setItemVisual(e,"toSymbol",a[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1]),t.setItemVisual(e,"opacity",s)})})}},function(e,t,n){n(518),n(519)},function(e,t,n){var r=n(263),a=n(337);e.exports=r.extend({type:"series.heatmap",getInitialData:function(e,t){return a(e.data,this,t)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(e,t,n){function r(e,t,n){var r=e[1]-e[0];t=l.map(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(e){for(var r=i;r<a;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){i=r;break}}if(r===a)for(var r=i-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){i=r;break}}return r>=0&&r<a&&n[r]}}function a(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function i(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var o=n(279),s=n(520),l=n(239);e.exports=n(236).extendChartView({type:"heatmap",render:function(e,t,n){var r;if(t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),__DEV__&&!r)throw new Error("Heatmap must use with visualMap");this.group.removeAll();var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(a,e,n):i(a)&&this._renderOnGeo(a,e,r,n)},dispose:function(){},_renderOnCartesianAndCalendar:function(e,t,n){if("cartesian2d"===e.type){var r=e.getAxis("x"),a=e.getAxis("y");if(__DEV__){if("category"!==r.type||"category"!==a.type)throw new Error("Heatmap on cartesian must have two category axes");if(!r.onBand||!a.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}var i=r.getBandWidth(),s=a.getBandWidth()}var u=this.group,c=t.getData(),h="itemStyle.normal",d="itemStyle.emphasis",p="label.normal",f="label.emphasis",g=t.getModel(h).getItemStyle(["color"]),m=t.getModel(d).getItemStyle(),v=t.getModel("label.normal"),y=t.getModel("label.emphasis");c.each("cartesian2d"===e.type?["x","y","z"]:["time","value"],function(n,r,a,x){var _;if("cartesian2d"===e.type){if(isNaN(a))return;var b=e.dataToPoint([n,r]);_=new o.Rect({shape:{x:b[0]-i/2,y:b[1]-s/2,width:i,height:s},style:{fill:c.getItemVisual(x,"color"),opacity:c.getItemVisual(x,"opacity")}})}else{if(isNaN(r))return;x=a,_=new o.Rect({z2:1,shape:e.dataToRect([n,r]).contentShape,style:{fill:c.getItemVisual(x,"color"),opacity:c.getItemVisual(x,"opacity")}})}var w=c.getItemModel(x);c.hasItemOption&&(g=w.getModel(h).getItemStyle(["color"]),m=w.getModel(d).getItemStyle(),v=w.getModel(p),y=w.getModel(f));var S=t.getRawValue(x),M="-";S&&null!=S[2]&&(M=S[2]),v.getShallow("show")&&(o.setText(g,v),g.text=t.getFormattedLabel(x,"normal")||M),y.getShallow("show")&&(o.setText(m,y),m.text=t.getFormattedLabel(x,"emphasis")||M),_.setStyle(g),o.setHoverStyle(_,c.hasItemOption?m:l.extend({},m)),u.add(_),c.setItemGraphicEl(x,_)})},_renderOnGeo:function(e,t,n,i){var l=n.targetVisuals.inRange,u=n.targetVisuals.outOfRange,c=t.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=t.get("blurSize"),h.pointSize=t.get("pointSize"),h.minOpacity=t.get("minOpacity"),h.maxOpacity=t.get("maxOpacity");var d=e.getViewRect().clone(),p=e.getRoamTransform().transform;d.applyTransform(p);var f=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,i.getWidth()),v=Math.min(d.height+d.y,i.getHeight()),y=m-f,x=v-g,_=c.mapArray(["lng","lat","value"],function(t,n,r){var a=e.dataToPoint([t,n]);
|
|
56
|
-
return a[0]-=f,a[1]-=g,a.push(r),a}),b=n.getExtent(),w="visualMap.continuous"===n.type?a(b,n.option.range):r(b,n.getPieceList(),n.option.selected);h.update(_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},w);var S=new o.Image({style:{width:y,height:x,x:f,y:g,image:h.canvas},silent:!0});this.group.add(S)}})},function(e,t,n){function r(){var e=i.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}var a=256,i=n(239);r.prototype={update:function(e,t,n,r,i,o){var s=this._getBrush(),l=this._getGradient(e,i,"inRange"),u=this._getGradient(e,i,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),p=e.length;h.width=t,h.height=n;for(var f=0;f<p;++f){var g=e[f],m=g[0],v=g[1],y=g[2],x=r(y);d.globalAlpha=x,d.drawImage(s,m-c,v-c)}for(var _=d.getImageData(0,0,h.width,h.height),b=_.data,w=0,S=b.length,M=this.minOpacity,C=this.maxOpacity,T=C-M;w<S;){var x=b[w+3]/256,A=4*Math.floor(x*(a-1));if(x>0){var I=o(x)?l:u;x>0&&(x=x*T+M),b[w++]=I[A],b[w++]=I[A+1],b[w++]=I[A+2],b[w++]=I[A+3]*x*256}else w+=4}return d.putImageData(_,0,0),h},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=i.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},_getGradient:function(e,t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a}},e.exports=r},function(e,t,n){var r=n(239);n(359),n(522),n(523);var a=n(380),i=n(236);i.registerLayout(r.curry(a,"pictorialBar")),i.registerVisual(r.curry(n(355),"pictorialBar","roundRect",null)),n(358)},function(e,t,n){var r=n(376).extend({type:"series.pictorialBar",dependencies:["grid"],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%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,r.superApply(this,"getInitialData",arguments)}});e.exports=r},function(e,t,n){function r(e,t,n,r){var l=e.getItemLayout(t),u=n.get("symbolRepeat"),c=n.get("symbolClip"),h=n.get("symbolPosition")||"start",d=n.get("symbolRotate"),p=(d||0)*Math.PI/180||0,f=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),m={dataIndex:t,layout:l,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:p,animationModel:g?n:null,hoverAnimation:g&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};a(n,u,l,r,m),i(e,t,l,u,c,m.boundingLength,m.pxSign,f,r,m),o(n,m.symbolScale,p,r,m);var v=m.symbolSize,y=n.get("symbolOffset");return C.isArray(y)&&(y=[P(y[0],v[0]),P(y[1],v[1])]),s(n,v,l,u,c,y,h,m.valueLineWidth,m.boundingLength,m.repeatCutLength,r,m),m}function a(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=a.boundingLength=null!=o?s.toGlobalCoord(s.dataToCoord(s.scale.parse(o)))-l:t?r.coordSysExtent[i.index][1-+(n[i.wh]<=0)]-l:n[i.wh];t&&(a.repeatCutLength=n[i.wh]),a.pxSign=u>0?1:u<0?-1:0}function i(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(n[h.wh]),p=e.getItemVisual(t,"symbolSize");C.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]),p[h.index]=P(p[h.index],d),p[c.index]=P(p[c.index],r?d:Math.abs(i)),u.symbolSize=p;var f=u.symbolScale=[p[0]/s,p[1]/s];f[c.index]*=(l.isHorizontal?-1:1)*o}function o(e,t,n,r,a){var i=e.get(L)||0;i&&(k.attr({scale:t.slice(),rotation:n}),k.updateTransform(),i/=k.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i}function s(e,t,n,r,a,i,o,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(t[p.index]+s,0),m=g;if(r){var v=Math.abs(l),y=C.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=P(y,t[p.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=I.isNumeric(r),S=w?r:M((v+b)/_),T=v-S*g;y=T/2/(x?S:S-1),_=g+2*y,b=x?0:2*y,w||"fixed"===r||(S=u?M((Math.abs(u)+b)/_):0),m=S*_-b,h.repeatTimes=S,h.symbolMargin=y}var A=f*(m/2),E=h.pathPosition=[];E[d.index]=n[d.wh]/2,E[p.index]="start"===o?A:"end"===o?l-A:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var L=h.bundlePosition=[];L[d.index]=n[d.xy],L[p.index]=n[p.xy];var D=h.barRectShape=C.extend({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+A)),D[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function l(e){var t=e.symbolPatternSize,n=A.createSymbol(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function u(e,t,n,r){function a(e){var t=h.slice(),r=n.pxSign,a=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(a=p-1-e),t[d.index]=g*(a-p/2+.5)+h[d.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function i(){b(e,function(e){e.trigger("emphasis")})}function o(){b(e,function(e){e.trigger("normal")})}var s=e.__pictorialBundle,u=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,d=t.valueDim,p=n.repeatTimes||0,f=0,g=u[t.valueDim.index]+c+2*n.symbolMargin;for(b(e,function(e){e.__pictorialAnimationIndex=f,e.__pictorialRepeatTimes=p,f<p?w(e,null,a(f),n,r):w(e,null,{scale:[0,0]},n,r,function(){s.remove(e)}),m(e,n),f++});f<p;f++){var v=l(n);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=p,s.add(v);var y=a(f,!0);w(v,{position:y.position,scale:[0,0]},{scale:y.scale,rotation:y.rotation},n,r),v.on("mouseover",i).on("mouseout",o),m(v,n)}}function c(e,t,n,r){function a(){this.trigger("emphasis")}function i(){this.trigger("normal")}var o=e.__pictorialBundle,s=e.__pictorialMainPath;s?w(s,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,r):(s=e.__pictorialMainPath=l(n),o.add(s),w(s,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,r),s.on("mouseover",a).on("mouseout",i)),m(s,n)}function h(e,t,n){var r=C.extend({},t.barRectShape),a=e.__pictorialBarRect;a?w(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new T.Rect({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function d(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=C.extend({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)T.updateProps(a,{shape:i},s,l);else{i[o.wh]=0,a=new T.Rect({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],T[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function p(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=f,n.isAnimationEnabled=g,n}function f(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function g(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function m(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function v(e,t,n,r){var a=new T.Group,i=new T.Group;return a.add(i),a.__pictorialBundle=i,i.attr("position",n.bundlePosition.slice()),n.symbolRepeat?u(a,t,n):c(a,t,n),h(a,n,r),d(a,t,n,r),a.__pictorialShapeStr=_(e,n),a.__pictorialSymbolMeta=n,a}function y(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;T.updateProps(i,{position:n.bundlePosition.slice()},r,a),n.symbolRepeat?u(e,t,n,!0):c(e,t,n,!0),h(e,n,!0),d(e,t,n,!0)}function x(e,t,n,r){var a=r.__pictorialBarRect;a&&(a.style.text="");var i=[];b(r,function(e){i.push(e)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),C.each(i,function(e){T.updateProps(e,{scale:[0,0]},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function _(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function b(e,t,n){C.each(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function w(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&T[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function S(e,t,n){var r=n.color,a=n.dataIndex,i=n.itemModel,o=i.getModel("itemStyle.normal").getItemStyle(["color"]),s=i.getModel("itemStyle.emphasis").getItemStyle();b(e,function(e){e.setColor(r),e.setStyle(C.defaults({fill:r,opacity:n.opacity},o)),T.setHoverStyle(e,s),e.z2=n.z2});var l={},u=t.valueDim.posDesc[+(n.boundingLength>0)],c=e.__pictorialBarRect;E.setLabel(c.style,l,i,r,t.seriesModel,a,u),T.setHoverStyle(c,l)}function M(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var C=n(239),T=n(279),A=n(339),I=n(242),E=n(378),P=I.parsePercent,L=["itemStyle","normal","borderWidth"],D=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],k=new T.Circle,O=n(236).extendChartView({type:"pictorialBar",render:function(e,t,n){var a=this.group,i=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),c=s.grid.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:D[+u],categoryDim:D[1-u]};return i.diff(o).add(function(e){if(i.hasValue(e)){var t=p(i,e),n=r(i,e,t,h),o=v(i,h,n);i.setItemGraphicEl(e,o),a.add(o),S(o,h,n)}}).update(function(e,t){var n=o.getItemGraphicEl(t);if(!i.hasValue(e))return void a.remove(n);var s=p(i,e),l=r(i,e,s,h),u=_(i,l);n&&u!==n.__pictorialShapeStr&&(a.remove(n),i.setItemGraphicEl(e,null),n=null),n?y(n,h,l):n=v(i,h,l,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=l,a.add(n),S(n,h,l)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&x(o,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=i,this.group},dispose:C.noop,remove:function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl(function(t){x(r,t.dataIndex,e,t)}):n.removeAll()}});e.exports=O},function(e,t,n){var r=n(236),a=n(239);n(525),n(542),n(543),r.registerLayout(n(544)),r.registerVisual(n(545)),r.registerProcessor(a.curry(n(389),"themeRiver"))},function(e,t,n){n(526),n(529),n(531),n(532),n(541);var r=n(236);r.extendComponentView({type:"single"})},function(e,t,n){function r(e,t){var n=[];return e.eachComponent("singleAxis",function(r,i){var o=new a(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)}),e.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}}),n}var a=n(527);n(261).register("single",{create:r,dimensions:a.prototype.dimensions})},function(e,t,n){function r(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}var a=n(528),i=n(340),o=n(256);r.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:r,_init:function(e,t,n){var r=this.dimension,o=new a(r,i.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===o.type;o.onBand=s&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},update:function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData(),n=this.dimension;this._axis.scale.unionExtentFromData(t,e.coordDimToDataDim(n)),i.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(e,t){this._rect=o.getLayoutRect({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],a=t.reverse?1:0;t.setExtent(r[a],r[1-a]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),r=n[0]+n[1],a=e.isHorizontal();e.toGlobalCoord=a?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=a?function(e){return e-t}:function(e){return r-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),r=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[a]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-a]=0===a?n.y+n.height/2:n.x+n.width/2,r}},e.exports=r},function(e,t,n){var r=n(239),a=n(335),i=n(340),o=function(e,t,n,r,i){a.call(this,e,t,n),this.type=r||"value",this.position=i||"bottom",this.orient=null,this._labelInterval=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getLabelInterval:function(){var e=this._labelInterval;if(!e){var t=this.model,n=t.getModel("axisLabel"),a=n.get("interval");if("category"!==this.type||"auto"!==a)return e=this._labelInterval="auto"===a?0:a;e=this._labelInterval=i.getAxisLabelInterval(r.map(this.scale.getTicks(),this.dataToCoord,this),t.getFormattedLabels(),n.getModel("textStyle").getFont(),this.isHorizontal())}return e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(o,a),e.exports=o},function(e,t,n){var r=n(370),a=n(239),i=n(279),o=n(530),s=r.getInterval,l=r.ifIgnoreOnTick,u=["axisLine","axisLabel","axisTick","axisName"],c="splitLine",h=n(371).extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,n,i){var s=this.group;s.removeAll();var l=o.layout(e),d=new r(e,l);a.each(u,d.add,d),s.add(d.getGroup()),e.get(c+".show")&&this["_"+c](e,l.labelInterval),h.superCall(this,"render",e,t,n,i)},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var r=e.getModel("splitLine"),a=r.getModel("lineStyle"),o=a.get("width"),u=a.get("color"),c=s(r,t);u=u instanceof Array?u:[u];for(var h=e.coordinateSystem.getRect(),d=n.isHorizontal(),p=[],f=0,g=n.getTicksCoords(),m=[],v=[],y=0;y<g.length;++y)if(!l(n,y,c)){var x=n.toGlobalCoord(g[y]);d?(m[0]=x,m[1]=h.y,v[0]=x,v[1]=h.y+h.height):(m[0]=h.x,m[1]=x,v[0]=h.x+h.width,v[1]=x);var _=f++%u.length;p[_]=p[_]||[],p[_].push(new i.Line(i.subPixelOptimizeLine({shape:{x1:m[0],y1:m[1],x2:v[0],y2:v[1]},style:{lineWidth:o},silent:!0})))}for(var y=0;y<p.length;++y)this.group.add(i.mergePath(p[y],{style:{stroke:u[y%u.length],lineDash:a.getLineDash(o),lineWidth:o},silent:!0}))}}});e.exports=h},function(e,t,n){var r=n(239),a={};a.layout=function(e,t){t=t||{};var n=e.coordinateSystem,a=e.axis,i={},o=a.position,s=a.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=["vertical"===s?c.vertical[o]:u[0],"horizontal"===s?c.horizontal[o]:u[3]];var h={horizontal:0,vertical:1};i.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],e.get("axisTick.inside")&&(i.tickDirection=-i.tickDirection),r.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(i.labelDirection=-i.labelDirection);var p=t.rotate;return null==p&&(p=e.get("axisLabel.rotate")),i.labelRotation="top"===o?-p:p,i.labelInterval=a.getLabelInterval(),i.z2=1,i},e.exports=a},function(e,t,n){function r(e,t){return t.type||(t.data?"category":"value")}var a=n(254),i=n(366),o=n(239),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};o.merge(s.prototype,n(347)),i("single",s,r,l),e.exports=s},function(e,t,n){var r=n(236),a=n(372),i=n(533),o=n(239);n(535),n(536),n(538),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!o.isArray(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=a.collect(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(e,t,n){var r=i(t.getComponent("axisPointer").coordSysAxesInfo,e.currTrigger,[e.x,e.y],e,e.dispatchAction||o.bind(n.dispatchAction,n),t,n,e.tooltipOption,e.highDownKey);return r})},function(e,t,n){function r(e,t,n,r,i,g,m,v,b){r=r||{},n&&null!=n[0]&&null!=n[1]||(n=y({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},g).point);var w=e.axesInfo,S="leave"===t||f(n),M={},C={},T={list:[],map:{}},A=[],I={showPointer:_(o,C),showTooltip:_(s,T),highlight:_(l,A)};x(e.coordSysMap,function(t,i){var o=t.containPoint(n);x(e.coordSysAxesInfo[i],function(e,t){var i=e.axis;S||!o||d(r,i)||a(e,i.pointToData(n),I,!1,M)})});var E={};return x(w,function(e,t){var n=e.linkGroup;n&&!C[t]&&x(n.axesInfo,function(t,r){var a=C[r];if(t!==e&&a){var i=a.value;n.mapper&&(i=e.axis.scale.parse(n.mapper(i,p(t),p(e)))),E[e.key]=i}})}),x(E,function(e,t){a(w[t],e,I,!0,M)}),u(C,w),c(T,n,v,i),h(A,i,m,b),M}function a(e,t,n,r,a){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t)){if(!e.involveSeries)return void n.showPointer(e,t);var s=i(t,e),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==a.seriesIndex&&g.extend(a,l[0]),!r&&e.snap&&o.containData(u)&&null!=u&&(t=u),n.highlight("highlight",l),n.showPointer(e,t,l),n.showTooltip(e,s,u)}}function i(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return x(t.seriesModels,function(t,l){var u,c,h=t.coordDimToDataDim(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(c=t.getData().indicesOfNearest(h[0],e,!1,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=o&&((f<o||p>=0&&s<0)&&(o=f,s=p,a=u,i.length=0),x(c,function(e){i.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:i,snapToValue:a}}function o(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function s(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(t.triggerTooltip&&a.length){var l=t.coordSys.model,u=v.makeKey(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:a.slice()})}}function l(e,t,n){e.push.apply(e,n)}function u(e,t){x(t,function(t,n){var r=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide")})}function c(e,t,n,r){if(f(t)||!e.list.length)return void r({type:"hideTip"});var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function h(e,t,n,r){var a=n.getZr();r="lastHighlights"+(r||"");var i=b(a)[r]||{},o=b(a)[r]={};g.each(e,function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e});var s=[],l=[];g.each(i,function(e,t){!o[t]&&l.push(e)}),g.each(o,function(e,t){!i[t]&&s.push(e)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function d(e,t){var n=1;return x(e,function(e,t){n&=!/^.+(AxisId|AxisName|AxisIndex)$/.test(t)}),!n&&x([["AxisId","id"],["AxisIndex","componentIndex"],["AxisName","name"]],function(r){var a=m.normalizeToArray(e[t.dim+r[0]]);n|=g.indexOf(a,t.model[r[1]])>=0}),!n}function p(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function f(e){return null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}var g=n(239),m=n(240),v=n(372),y=n(534),x=g.each,_=g.curry,b=m.makeGetter();e.exports=r},function(e,t,n){var r=n(239),a=n(240);e.exports=function(e,t){var n,i=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var s=n.getData(),l=a.queryDataIndex(s,e);if(null==l||r.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)i=c.dataToPoint(s.getValues(r.map(c.dimensions,function(e){return n.coordDimToDataDim(e)[0]}),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),i=[h.x+h.width/2,h.y+h.height/2]}return{point:i,el:u}}},function(e,t,n){var r=n(236),a=r.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,textStyle:{color:"#fff"},padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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.exports=a},function(e,t,n){var r=n(537),a=n(236).extendComponentView({type:"axisPointer",render:function(e,t,n){var a=t.getComponent("tooltip"),i=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(e,t){r.disopse(t.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(e,t){r.unregister("axisPointer",t),a.superApply(this._model,"dispose",arguments)}})},function(e,t,n){function r(e,t){function n(n,r){e.on(n,function(n){var i=s(t);h(c(e).records,function(e){e&&r(e,n,i.dispatchAction)}),a(i.pendings,t)})}c(e).initialized||(c(e).initialized=!0,n("click",u.curry(o,"click")),n("mousemove",u.curry(o,"mousemove")),n("globalout",i))}function a(e,t){var n,r=e.showTip.length,a=e.hideTip.length;r?n=e.showTip[r-1]:a&&(n=e.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function i(e,t,n){e.handler("leave",null,n)}function o(e,t,n,r){t.handler(e,n,r)}function s(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}var l=n(237),u=n(239),c=n(240).makeGetter(),h=u.each,d={};d.register=function(e,t,n){if(!l.node){var a=t.getZr();c(a).records||(c(a).records={}),r(a,t);var i=c(a).records[e]||(c(a).records[e]={});i.handler=n}},d.unregister=function(e,t){if(!l.node){var n=t.getZr(),r=(c(n).records||{})[e];r&&(c(n).records[e]=null)}},e.exports=d},function(e,t,n){"use strict";function r(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}function a(e){return"x"===e.dim?0:1}var i=n(279),o=n(539),s=n(540),l=n(373),u=n(371),c=o.extend({makeElOption:function(e,t,n,a,i){var o=n.axis,u=o.grid,c=a.get("type"),d=r(u,o).getOtherAxis(o).getGlobalExtent(),p=o.toGlobalCoord(o.dataToCoord(t,!0));if(c&&"none"!==c){var f=s.buildElStyle(a),g=h[c](o,p,d,f);g.style=f,e.graphicKey=g.type,e.pointer=g}var m=l.layout(u.model,n);s.buildCartesianSingleLabelElOption(t,e,m,n,a,i)},getHandleTransform:function(e,t,n){var r=l.layout(t.axis.grid.model,t,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(t.axis,e,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,a){var i=n.axis,o=i.grid,s=i.getGlobalExtent(!0),l=r(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,c=e.position;c[u]+=t[u],c[u]=Math.min(s[1],c[u]),c[u]=Math.max(s[0],c[u]);var h=(l[1]+l[0])/2,d=[h,h];d[u]=c[u];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:e.rotation,cursorPoint:d,tooltipOption:p[u]}}}),h={line:function(e,t,n,r){var o=s.makeLineShape([t,n[0]],[t,n[1]],a(e));return i.subPixelOptimizeLine({shape:o,style:r}),{type:"Line",shape:o}},shadow:function(e,t,n,r){var i=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([t-i/2,n[0]],[i,o],a(e))}}};u.registerAxisPointerClass("CartesianAxisPointer",c),e.exports=c},function(e,t,n){"use strict";function r(){}function a(e,t,n,r){i(p(n).lastProp,r)||(p(n).lastProp=r,t?d.updateProps(n,r,e):(n.stopAnimation(),n.attr(r)))}function i(e,t){if(c.isObject(e)&&c.isObject(t)){var n=!0;return c.each(t,function(t,r){n&=i(e[r],t)}),!!n}return e===t}function o(e,t){e[t.get("label.show")?"show":"hide"]()}function s(e){return{position:e.position.slice(),rotation:e.rotation||0}}function l(e,t){var n=e.get("icon"),r={x:-1,y:-1,width:2,height:2},a=c.extend({style:{strokeNoScale:!0},rectHover:!0,cursor:"move",draggable:!0},t);return 0===n.indexOf("image://")?(r.image=n.slice(8),a.style=r,new d.Image(a)):d.makePath(n.replace("path://",""),a,r,"center")}function u(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=a&&(e.zlevel=a),e.silent=n)})}var c=n(239),h=n(248),d=n(279),p=n(240).makeGetter(),f=n(372),g=n(323),m=n(316),v=c.clone,y=c.bind;r.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var h={};this.makeElOption(h,i,e,t,n);var p=h.graphicKey;p!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=p;var f=this._moveAnimation=this.determineAnimation(e,t);if(s){var g=c.curry(a,t,f);this.updatePointerEl(s,h,g,t),this.updateLabelEl(s,h,g,t)}else s=this._group=new d.Group,this.createPointerEl(s,h,e,t),this.createLabelEl(s,h,e,t),n.getZr().add(s);u(s,t,!0),this._renderHandle(i)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),r=e.axis,a="category"===r.type,i=t.get("snap");if(!i&&!a)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(a&&r.getBandWidth()>o)return!0;if(i){var s=f.getAxisInfo(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},makeElOption:function(e,t,n,r,a){},createPointerEl:function(e,t,n,r){var a=t.pointer;if(a){var i=p(e).pointerEl=new d[a.type](v(t.pointer));e.add(i)}},createLabelEl:function(e,t,n,r){if(t.label){var a=p(e).labelEl=new d.Rect(v(t.label));e.add(a),o(a,r)}},updatePointerEl:function(e,t,n){var r=p(e).pointerEl;r&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,r){var a=p(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{shape:t.label.shape,position:t.label.position}),o(a,r))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,a=t.getModel("handle"),i=t.get("status");if(!a.get("show")||!i||"hide"===i)return r&&n.remove(r),void(this._handle=null);var o;this._handle||(o=!0,r=this._handle=l(a,{onmousemove:function(e){g.stop(e.event)},onmousedown:y(this._onHandleDragMove,this,0,0),drift:y(this._onHandleDragMove,this),ondragend:y(this._onHandleDragEnd,this)}),n.add(r)),u(r,t,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];r.setStyle(a.getItemStyle(null,s));var h=a.get("size");c.isArray(h)||(h=[h,h]),r.attr("scale",[h[0]/2,h[1]/2]),m.createOrUpdate(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,o)}},_moveHandleToValue:function(e,t){a(this._axisPointerModel,!t&&this._moveAnimation,this._handle,s(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(s(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(s(r)),p(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,n={type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,highDownKey:"axisPointerHandle"},r=this._axisModel.axis;n[r.dim+"AxisId"]=this._axisModel.id,this._api.dispatchAction(n)}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}},r.prototype.constructor=r,h.enableClassExtend(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}var a=n(239),i=n(279),o=n(243),s=n(241),l=n(246),u=n(340),c=n(370),h={};h.buildElStyle=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t},h.buildLabelElOption=function(e,t,n,a,i){var l=n.get("value"),u=h.getValueLabel(l,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n.getModel("label"),d=c.getModel("textStyle"),p=s.normalizeCssArray(c.get("padding")||0),f=d.getFont(),g=o.getBoundingRect(u,f,i.textAlign,i.textBaseline),m=i.position,v=g.width+p[1]+p[3],y=g.height+p[0]+p[2],x=i.align;"right"===x&&(m[0]-=v),"center"===x&&(m[0]-=v/2);var _=i.verticalAlign;"bottom"===_&&(m[1]-=y),"middle"===_&&(m[1]-=y/2),r(m,v,y,a);var b=c.get("backgroundColor");b&&"auto"!==b||(b=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:v,height:y,r:c.get("borderRadius")},position:m.slice(),style:{text:u,textFont:f,textFill:d.getTextColor(),textPosition:"inside",fill:b,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),
|
|
57
|
-
shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}},h.getValueLabel=function(e,t,n,r,i){var o=t.scale.getLabel(e,{precision:i.precision}),s=i.formatter;if(s){var l={value:u.getAxisRawValue(t,e),seriesData:[]};a.each(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,a=t&&t.getDataParams(r);a&&l.seriesData.push(a)}),a.isString(s)?o=s.replace("{value}",o):a.isFunction(s)&&(o=s(l))}return o},h.getTransformedPosition=function(e,t,n){var r=l.create();return l.rotate(r,r,n.rotation),l.translate(r,r,n.position),i.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)},h.buildCartesianSingleLabelElOption=function(e,t,n,r,a,i){var o=c.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get("label.margin"),h.buildLabelElOption(t,r,a,i,{position:h.getTransformedPosition(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})},h.makeLineShape=function(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}},h.makeRectShape=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},h.makeSectorShape=function(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r:r,startAngle:a,endAngle:i,clockwise:!0}},e.exports=h},function(e,t,n){"use strict";function r(e){return e.isHorizontal()?0:1}function a(e,t){var n=e.getRect();return[n[c[t]],n[c[t]]+n[h[t]]]}var i=n(279),o=n(539),s=n(540),l=n(530),u=n(371),c=["x","y"],h=["width","height"],d=o.extend({makeElOption:function(e,t,n,i,o){var u=n.axis,c=u.coordinateSystem,h=a(c,1-r(u)),d=c.dataToPoint(t)[0],f=i.get("type");if(f&&"none"!==f){var g=s.buildElStyle(i),m=p[f](u,d,h,g);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=l.layout(n);s.buildCartesianSingleLabelElOption(t,e,v,n,i,o)},getHandleTransform:function(e,t,n){var r=l.layout(t,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(t.axis,e,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var o=n.axis,s=o.coordinateSystem,l=r(o),u=a(s,l),c=e.position;c[l]+=t[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=a(s,1-l),d=(h[1]+h[0])/2,p=[d,d];return p[l]=c[l],{position:c,rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(e,t,n,a){var o=s.makeLineShape([t,n[0]],[t,n[1]],r(e));return i.subPixelOptimizeLine({shape:o,style:a}),{type:"Line",shape:o}},shadow:function(e,t,n,a){var i=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([t-i/2,n[0]],[i,o],r(e))}}};u.registerAxisPointerClass("SingleAxisPointer",d),e.exports=d},function(e,t,n){"use strict";var r=n(338),a=n(263),i=n(333),o=n(239),s=n(241),l=s.encodeHTML,u=n(489),c=2,h=a.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){h.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(e){for(var t=e.length,n=u().key(function(e){return e[2]}).entries(e),r=o.map(n,function(e){return{name:e.key,dataList:e.values}}),a=r.length,i=-1,s=-1,l=0;l<a;++l){var c=r[l].dataList.length;c>i&&(i=c,s=l)}for(var h=0;h<a;++h)if(h!==s)for(var d=r[h].name,p=0;p<i;++p){for(var f=r[s].dataList[p][0],g=r[h].dataList.length,m=-1,v=0;v<g;++v){var y=r[h].dataList[v][0];if(y===f){m=v;break}}m===-1&&(e[t]=[],e[t][0]=f,e[t][1]=0,e[t][2]=d,t++)}return e},getInitialData:function(e,t){var n=[],a=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],s=a.get("type");n=[{name:"time",type:"category"===s?"ordinal":"time"===s?"time":"float"},{name:"value",type:"float"},{name:"name",type:"ordinal"}];for(var l=o.filter(e.data,function(e){return void 0!==e[2]}),u=this.fixData(l||[]),h=[],d=this.nameMap={},p=0,f=0;f<u.length;++f)h.push(u[f][c]),d[u[f][c]]||(d[u[f][c]]=p++);r(n,u);var g=new i(n,this);return g.initData(u,h),g},coordDimToDataDim:function(e){return["time"]},getLayerSeries:function(){function e(e,n){return t.get("time",e)-t.get("time",n)}for(var t=this.getData(),n=t.count(),r=[],a=0;a<n;++a)r[a]=a;for(var i=u().key(function(e){return t.get("name",e)}).entries(r),s=o.map(i,function(e){return{name:e.key,indices:e.values}}),l=0;l<s.length;++l)s[l].indices.sort(e);return s},getAxisTooltipData:function(e,t,n){o.isArray(e)||(e=e?[e]:[]);for(var r,a=this.getData(),i=this.getLayerSeries(),s=[],l=i.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,d=i[u].indices.length,p=0;p<d;++p){var f=a.get(e[0],i[u].indices[p]),g=Math.abs(f-t);g<=c&&(r=f,c=g,h=i[u].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:r}},formatTooltip:function(e){var t=this.getData(),n=t.get("name",e),r=t.get("value",e);return(isNaN(r)||null==r)&&(r="-"),l(n+" : "+r)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{normal:{margin:4,textAlign:"right",show:!0,position:"left",textStyle:{color:"#000",fontSize:11}},emphasis:{show:!0}}}});e.exports=h},function(e,t,n){(function(t){function r(e,t,n){var r=new i.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return i.initProps(r,{shape:{width:e.width+20,height:e.height+20}},t,n),r}var a=n(354),i=n(279),o=n(239),s=n(334);e.exports=n(236).extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){function l(e){return e.name}function u(t,n,s){var l=this._layers;if("remove"===t)return void d.remove(l[n]);for(var u,f=[],g=[],m=p[n].indices,v=0;v<m.length;v++){var x=c.getItemLayout(m[v]),_=x.x,b=x.y0,w=x.y;f.push([_,b]),g.push([_,b+w]),u=h.getItemVisual(m[v],"color")}var S,M,C=c.getItemLayout(m[0]),T=c.getItemModel(m[v-1]),A=T.getModel("label.normal"),I=A.get("margin");if("add"===t){var E=y[n]=new i.Group;S=new a.Polygon({shape:{points:f,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M=new i.Text({style:{x:C.x-I,y:C.y0+C.y/2}}),E.add(S),E.add(M),d.add(E),S.setClipPath(r(S.getBoundingRect(),e,function(){S.removeClipPath()}))}else{var E=l[s];S=E.childAt(0),M=E.childAt(1),d.add(E),y[n]=E,i.updateProps(S,{shape:{points:f,stackedOnPoints:g}},e),i.updateProps(M,{style:{x:C.x-I,y:C.y0+C.y/2}},e)}var P=T.getModel("itemStyle.emphasis"),L=T.getModel("itemStyle.normal"),D=A.getModel("textStyle");M.setStyle({text:A.get("show")?e.getFormattedLabel(m[v-1],"normal")||c.getName(m[v-1]):"",textFont:D.getFont(),textAlign:A.get("textAlign"),textVerticalAlign:"middle"}),S.setStyle(o.extend({fill:u},L.getItemStyle(["color"]))),i.setHoverStyle(S,P.getItemStyle())}var c=e.getData(),h=e.getRawData();if(c.count()){var d=this.group,p=e.getLayerSeries(),f=c.getLayout("layoutInfo"),g=f.rect,m=f.boundaryGap;d.attr("position",[0,g.y+m[0]]);var v=new s(this._layersSeries||[],p,l,l),y={};v.add(o.bind(o.curry(u,"add"),this)).update(o.bind(o.curry(u,"update"),this)).remove(o.bind(o.curry(u,"remove"),this)).execute(),this._layersSeries=p,this._layers=y}},dispose:function(){}})}).call(t,n(112))},function(e,t,n){function r(e,t,n){if(e.count())for(var r,o=t.coordinateSystem,s=t.getLayerSeries(),l=i.map(s,function(t){return i.map(t.indices,function(t){var n=o.dataToPoint(e.get("time",t));return n[1]=e.get("value",t),n})}),u=a(l),c=u.y0,h=n/u.max,d=s.length,p=s[0].indices.length,f=0;f<p;++f){r=c[f]*h,e.setItemLayout(s[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*h});for(var g=1;g<d;++g)r+=l[g-1][f][1]*h,e.setItemLayout(s[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*h})}}function a(e){for(var t,n=e.length,r=e[0].length,a=[],i=[],o=0,s={},l=0;l<r;++l){for(var u=0,t=0;u<n;++u)t+=e[u][l][1];t>o&&(o=t),a.push(t)}for(var c=0;c<r;++c)i[c]=(o-a[c])/2;o=0;for(var h=0;h<r;++h){var d=a[h]+i[h];d>o&&(o=d)}return s.y0=i,s.max=o,s}var i=n(239),o=n(242);e.exports=function(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,a={},i=n.getRect();a.rect=i;var s=e.get("boundaryGap"),l=n.getAxis();if(a.boundaryGap=s,"horizontal"===l.orient){s[0]=o.parsePercent(s[0],i.height),s[1]=o.parsePercent(s[1],i.height);var u=i.height-s[0]-s[1];r(t,e,u)}else{s[0]=o.parsePercent(s[0],i.width),s[1]=o.parsePercent(s[1],i.width);var c=i.width-s[0]-s[1];r(t,e,c)}t.setLayout("layoutInfo",a)})}},function(e,t){e.exports=function(e){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.getRawData(),r=e.get("color");t.each(function(a){var i=t.getName(a),o=r[(e.nameMap[i]-1)%r.length];n.setItemVisual(a,"color",o)})})}},function(e,t,n){function r(e,t,n,r){var a=n.type;__DEV__&&h.assert(a,"graphic type MUST be set");var i=p[a.charAt(0).toUpperCase()+a.slice(1)];__DEV__&&h.assert(i,"graphic type can not be found");var o=new i(n);t.add(o),r[e]=o,o.__ecGraphicId=e}function a(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse(function(e){a(e,t)}),delete t[e.__ecGraphicId],n.remove(e))}function i(e){return e=h.extend({},e),h.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(t){delete e[t]}),e}function o(e,t){var n;return h.each(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}function s(e,t){var n=e.exist;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function l(e,t,n){var r=h.extend({},n),a=e[t],i=n.$action||"merge";if("merge"===i)if(a){if(__DEV__){var o=n.type;h.assert(!o||a.type===o,'Please set $action: "replace" to change `type`')}h.merge(a,r,!0),f.mergeLayoutParam(a,r,{ignoreSize:!0}),f.copyLayoutParams(n,a)}else e[t]=r;else"replace"===i?e[t]=r:"remove"===i&&a&&(e[t]=null)}function u(e,t){e&&(e.hv=t.hv=[o(t,["left","right"]),o(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}var c=n(236),h=n(239),d=n(240),p=n(279),f=n(256);c.registerPreprocessor(function(e){var t=e.graphic;h.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])});var g=c.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,g.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,r=(t?n:e).elements,a=n.elements=t?[]:n.elements,i=[];this._flatten(r,i);var o=d.mappingToExists(a,i);d.makeIdAndName(o);var c=this._elOptionsToUpdate=[];h.each(o,function(e,t){var n=e.option;__DEV__&&h.assert(h.isObject(n)||e.exist,"Empty graphic option definition"),n&&(c.push(n),s(e,n),l(a,t,n),u(a[t],n))},this);for(var p=a.length-1;p>=0;p--)null==a[p]?a.splice(p,1):delete a[p].$action},_flatten:function(e,t,n){h.each(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;"group"===e.type&&r&&this._flatten(r,t,e),delete e.children}},this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});c.extendComponentView({type:"graphic",init:function(e,t){this._elMap={},this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e,n),this._relocate(e,n)},_updateElements:function(e,t){var n=e.useElOptionsToUpdate();if(n){var o=this._elMap,s=this.group;h.each(n,function(e){var t=e.$action,n=e.id,l=o[n],u=e.parentId,c=null!=u?o[u]:s;e.hv&&e.hv[1]&&"text"===e.type&&(e.style=h.defaults({textBaseline:"middle"},e.style),e.style.textVerticalAlign=null);var d=i(e);__DEV__&&l&&h.assert(c===l.parent,"Changing parent is not supported."),t&&"merge"!==t?"replace"===t?(a(l,o),r(n,c,d,o)):"remove"===t&&a(l,o):l?l.attr(d):r(n,c,d,o),o[n]&&(o[n].__ecGraphicWidth=e.width,o[n].__ecGraphicHeight=e.height)})}},_relocate:function(e,t){for(var n=e.option.elements,r=this.group,a=this._elMap,i=n.length-1;i>=0;i--){var o=n[i],s=a[o.id];if(s){var l=s.parent,u=l===r?{width:t.getWidth(),height:t.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};f.positionElement(s,o,u,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var e=this._elMap;h.each(e,function(t){a(t,e)}),this._elMap={}},dispose:function(){this._clear()}})},function(e,t,n){n(358),n(538),n(532)},function(e,t,n){n(549),n(550),n(551);var r=n(236);r.registerProcessor(n(553))},function(e,t,n){"use strict";var r=n(239),a=n(247),i=n(236).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{}},mergeOption:function(e){i.superCall(this,"mergeOption",e)},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=r.map(this.get("data")||[],function(e){return"string"!=typeof e&&"number"!=typeof e||(e={name:e}),new a(e,this,this.ecModel)},this);this._data=t;var n=r.map(e.getSeries(),function(e){return e.name});e.eachSeries(function(e){if(e.legendDataProvider){var t=e.legendDataProvider();n=n.concat(t.mapArray(t.getName))}}),this._availableNames=n},getData:function(){return this._data},select:function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var a=this._data;r.each(a,function(e){t[e.get("name")]=!1})}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&r.indexOf(this._availableNames,e)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});e.exports=i},function(e,t,n){function r(e,t,n){var r,a={},o="toggleSelected"===e;return n.eachComponent("legend",function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):(n[e](t.name),r=n.isSelected(t.name));var s=n.getData();i.each(s,function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);t in a?a[t]=a[t]&&r:a[t]=r}})}),{name:t.name,selected:a}}var a=n(236),i=n(239);a.registerAction("legendToggleSelect","legendselectchanged",i.curry(r,"toggleSelected")),a.registerAction("legendSelect","legendselected",i.curry(r,"select")),a.registerAction("legendUnSelect","legendunselected",i.curry(r,"unSelect"))},function(e,t,n){function r(e,t){t.dispatchAction({type:"legendToggleSelect",name:e})}function a(e,t,n){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||e.get("legendHoverLink")&&n.dispatchAction({type:"highlight",seriesName:e.name,name:t})}function i(e,t,n){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||e.get("legendHoverLink")&&n.dispatchAction({type:"downplay",seriesName:e.name,name:t})}var o=n(239),s=n(339),l=n(279),u=n(552),c=o.curry;e.exports=n(236).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(e,t,n){var s=this.group;if(s.removeAll(),e.get("show")){var h=e.get("selectedMode"),d=e.get("align");"auto"===d&&(d="right"===e.get("left")&&"vertical"===e.get("orient")?"right":"left");var p={};o.each(e.getData(),function(o){var u=o.get("name");if(""===u||"\n"===u)return void s.add(new l.Group({newline:!0}));var f=t.getSeriesByName(u)[0];if(!p[u]){if(f){var g=f.getData(),m=g.getVisual("color");"function"==typeof m&&(m=m(f.getDataParams(0)));var v=g.getVisual("legendSymbol")||"roundRect",y=g.getVisual("symbol"),x=this._createItem(u,o,e,v,y,d,m,h);x.on("click",c(r,u,n)).on("mouseover",c(a,f,null,n)).on("mouseout",c(i,f,null,n)),p[u]=!0}else t.eachRawSeries(function(t){if(!p[u]&&t.legendDataProvider){var s=t.legendDataProvider(),l=s.indexOfName(u);if(l<0)return;var f=s.getItemVisual(l,"color"),g="roundRect",m=this._createItem(u,o,e,g,null,d,f,h);m.on("click",c(r,u,n)).on("mouseover",c(a,t,u,n)).on("mouseout",c(i,t,u,n)),p[u]=!0}},this);__DEV__&&(p[u]||console.warn(u+" series not exists. Legend data should be same with series name or data name."))}},this),u.layout(s,e,n),u.addBackground(s,e)}},_createItem:function(e,t,n,r,a,i,u,c){var h=n.get("itemWidth"),d=n.get("itemHeight"),p=n.get("inactiveColor"),f=n.isSelected(e),g=new l.Group,m=t.getModel("textStyle"),v=t.get("icon"),y=t.getModel("tooltip"),x=y.parentModel;if(r=v||r,g.add(s.createSymbol(r,0,0,h,d,f?u:p)),!v&&a&&(a!==r||"none"==a)){var _=.8*d;"none"===a&&(a="circle"),g.add(s.createSymbol(a,(h-_)/2,(d-_)/2,_,_,f?u:p))}var b="left"===i?h+5:-5,w=i,S=n.get("formatter"),M=e;"string"==typeof S&&S?M=S.replace("{name}",null!=e?e:""):"function"==typeof S&&(M=S(e));var C=new l.Text({style:{text:M,x:b,y:d/2,fill:f?m.getTextColor():p,textFont:m.getFont(),textAlign:w,textVerticalAlign:"middle"}});g.add(C);var T=new l.Rect({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?o.extend({content:e,formatter:x.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:e,$vars:["name"]}},y.option):null});return g.add(T),g.eachChild(function(e){e.silent=!0}),T.silent=!c,this.group.add(g),l.setHoverStyle(g),g}})},function(e,t,n){function r(e,t,n){a.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},t.get("padding"))}var a=n(256),i=n(241),o=n(279);e.exports={layout:function(e,t,n){var i=a.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a.box(t.get("orient"),e,t.get("itemGap"),i.width,i.height),r(e,t,n)},addBackground:function(e,t){var n=i.normalizeCssArray(t.get("padding")),r=e.getBoundingRect(),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var s=new o.Rect({shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[1]+n[3],height:r.height+n[0]+n[2]},style:a,silent:!0,z2:-1});o.subPixelOptimizeRect(s),e.add(s)}}},function(e,t){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}},function(e,t,n){n(532),n(555),n(556),n(236).registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),n(236).registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(e,t,n){n(236).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}})},function(e,t,n){function r(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(n instanceof v&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),t=new v(n,t,t.ecModel))}return t}function a(e,t){return e.dispatchAction||c.bind(t.dispatchAction,t)}function i(e,t,n,r,a,i,o){var s=n.clientWidth,l=n.clientHeight;return null!=i&&(e+s+i>r?e-=s+i:e+=i),null!=o&&(t+l+o>a?t-=l+o:t+=o),[e,t]}function o(e,t,n,r,a){var i=n.clientWidth,o=n.clientHeight;return e=Math.min(e+i,r)-i,t=Math.min(t+o,a)-o,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function s(e,t,n){var r=n[0],a=n[1],i=5,o=0,s=0,l=t.width,u=t.height;switch(e){case"inside":o=t.x+l/2-r/2,s=t.y+u/2-a/2;break;case"top":o=t.x+l/2-r/2,s=t.y-a-i;break;case"bottom":o=t.x+l/2-r/2,s=t.y+u+i;break;case"left":o=t.x-r-i,s=t.y+u/2-a/2;break;case"right":o=t.x+l+i,s=t.y+u/2-a/2}return[o,s]}function l(e){return"center"===e||"middle"===e}var u=n(557),c=n(239),h=n(241),d=n(242),p=n(279),f=n(534),g=n(256),m=n(237),v=n(247),y=n(537),x=n(340),_=n(540),b=c.bind,w=c.each,S=d.parsePercent,M=new p.Rect({shape:{x:-1,y:-1,width:2,height:2}});n(236).extendComponentView({type:"tooltip",init:function(e,t){if(!m.node){var n=new u(t.getDom(),t);this._tooltipContent=n}},render:function(e,t,n){if(!m.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");y.register("itemTooltip",this._api,b(function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))},this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY})})}},manuallyShowTip:function(e,t,n,r){if(r.from!==this.uid&&!m.node){var i=a(r,n);this._ticket="";var o=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=M;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,event:{},dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=f(r,t),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:r.position,target:l.el,event:{}},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,event:{}},i))}},manuallyHideTip:function(e,t,n,r){var i=this._tooltipContent;this._alwaysShowContent||i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,r.from!==this.uid&&this._hide(a(r,n))},_manuallyAxisShowTip:function(e,t,n,a){var i=a.seriesIndex,o=a.dataIndex,s=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=s){var l=t.getSeriesByIndex(i);if(l){var u=l.getData(),e=r([u.getItemModel(o),l,(l.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o}),!0}}},_tryShow:function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;a&&a.length?this._showAxisTooltip(a,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=c.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,a=this._tooltipModel,i=[t.offsetX,t.offsetY],o=[],s=[],l=r([t.tooltipOption,a]);w(e,function(e){w(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value,a=[];if(t&&null!=r){var i=_.getValueLabel(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);c.each(e.seriesDataIndices,function(o){var l=n.getSeriesByIndex(o.seriesIndex),u=o.dataIndexInside,c=l&&l.getDataParams(u);c.axisDim=e.axisDim,c.axisIndex=e.axisIndex,c.axisType=e.axisType,c.axisId=e.axisId,c.axisValue=x.getAxisRawValue(t.axis,r),c.axisValueLabel=i,c&&(s.push(c),a.push(l.formatTooltip(u,!0)))});var l=i;o.push((l?h.encodeHTML(l)+"<br />":"")+a.join("<br />"))}})},this),o.reverse(),o=o.join("<br /><br />");var u=t.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(l,u,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(l,o,s,Math.random(),i[0],i[1],u)})},_showSeriesItemTooltip:function(e,t,n){var a=this._ecModel,i=t.seriesIndex,o=a.getSeriesByIndex(i),s=t.dataModel||o,l=t.dataIndex,u=t.dataType,c=s.getData(),h=r([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var p=s.getDataParams(l,u),f=s.formatTooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,f,p,g,e.offsetX,e.offsetY,e.position,e.target)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:i,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var r=t.tooltip;if("string"==typeof r){var a=r;r={content:a,formatter:a}}var i=new v(r,this._tooltipModel,this._ecModel),o=i.get("content"),s=Math.random();this._showOrMove(i,function(){this._showTooltipContent(i,o,i.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,r,a,i,o,s){if(this._ticket="",e.get("showContent")&&e.get("show")){var l=this._tooltipContent,u=e.get("formatter");o=o||e.get("position");var c=t;if(u&&"string"==typeof u)c=h.formatTpl(u,n,!0);else if("function"==typeof u){var d=b(function(t,r){t===this._ticket&&(l.setContent(r),this._updatePosition(e,o,a,i,l,n,s))},this);this._ticket=r,c=u(n,r,d)}l.setContent(c),l.show(e),this._updatePosition(e,o,a,i,l,n,s)}},_updatePosition:function(e,t,n,r,a,u,h){var d=this._api.getWidth(),p=this._api.getHeight();t=t||e.get("position");var f=a.getSize(),m=e.get("align"),v=e.get("verticalAlign"),y=h&&h.getBoundingRect().clone();if(h&&y.applyTransform(h.transform),"function"==typeof t&&(t=t([n,r],u,a.el,y,{viewSize:[d,p],contentSize:f.slice()})),c.isArray(t))n=S(t[0],d),r=S(t[1],p);else if(c.isObject(t)){t.width=f[0],t.height=f[1];var x=g.getLayoutRect(t,{width:d,height:p});n=x.x,r=x.y,m=null,v=null}else if("string"==typeof t&&h){var _=s(t,y,f);n=_[0],r=_[1]}else{var _=i(n,r,a.el,d,p,m?null:20,v?null:20);n=_[0],r=_[1]}if(m&&(n-=l(m)?f[0]/2:"right"===m?f[0]:0),v&&(r-=l(v)?f[1]/2:"bottom"===v?f[1]:0),e.get("confine")){var _=o(n,r,a.el,d,p);n=_[0],r=_[1]}a.moveTo(n,r)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return w(t,function(t,r){var a=t.dataByAxis||{},i=e[r]||{},o=i.dataByAxis||[];n&=a.length===o.length,w(a,function(e,t){var r=o[t]||{},a=e.seriesDataIndices||[],i=r.seriesDataIndices||[];n&=e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&a.length===i.length,w(a,function(e,t){var r=i[t];n&=e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex})})}),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){m.node||(this._tooltipContent.hide(),y.unregister("itemTooltip",t))}})},function(e,t,n){function r(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+e+"s "+t+",top "+e+"s "+t;return s.map(f,function(e){return e+"transition:"+n}).join(";")}function a(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();return r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px"),h(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}function i(e){var t=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.getModel("textStyle"),s=e.get("padding");return n&&t.push(r(n)),i&&(p.canvasSupported?t.push("background-Color:"+i):(t.push("background-Color:#"+l.toHex(i)),t.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(n){var r="border-"+n,a=d(r),i=e.get(a);null!=i&&t.push(r+":"+i+("color"===n?"":"px"))}),t.push(a(o)),null!=s&&t.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),t.join(";")+";"}function o(e,t){var n=document.createElement("div"),r=this._zr=t.getZr();this.el=n,this._x=t.getWidth()/2,this._y=t.getHeight()/2,e.appendChild(n),this._container=e,this._show=!1,this._hideTimeout;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 n=r.handler;u.normalizeEvent(e,t,!0),n.dispatch("mousemove",t)}},n.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}var s=n(239),l=n(274),u=n(323),c=n(241),h=s.each,d=c.toCamelCase,p=n(237),f=["","-webkit-","-moz-","-o-"],g="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";o.prototype={constructor:o,_enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==t.position&&(n.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t=this.el;t.style.cssText=g+i(e)+";left:"+this._x+"px;top:"+this._y+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n,r=this._zr;r&&r.painter&&(n=r.painter.getViewportRoot())&&(e+=n.offsetLeft||0,t+=n.offsetTop||0);var a=this.el.style;a.left=e+"px",a.top=t+"px",this._x=e,this._y=t},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show}},e.exports=o},function(e,t,n){"use strict";n(559),n(565),n(567),n(532),n(569),n(236).extendComponentView({type:"polar"})},function(e,t,n){function r(e,t){var n=e.get("center"),r=e.get("radius"),a=t.getWidth(),i=t.getHeight(),o=s.parsePercent;this.cx=o(n[0],a),this.cy=o(n[1],i);var l=this.getRadiusAxis(),u=Math.min(a,i)/2;l.setExtent(0,o(r,u))}function a(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-(1/0)),a.scale.setExtent(1/0,-(1/0)),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();a.scale.unionExtentFromData(t,"radius"),r.scale.unionExtentFromData(t,"angle")}}),c(r.scale,r.model),c(a.scale,a.model),"category"===r.type&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function i(e,t){if(e.type=t.get("type"),e.scale=u.createScaleByModel(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,"angleAxis"===t.mainType){var n=t.get("startAngle");e.inverse=t.get("inverse")^t.get("clockwise"),e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var o=n(560),s=n(242),l=n(239),u=n(340),c=u.niceScaleExtent;n(563);var h={dimensions:o.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,s){var l=new o(s);l.resize=r,l.update=a;var u=l.getRadiusAxis(),c=l.getAngleAxis(),h=e.findAxisModel("radiusAxis"),d=e.findAxisModel("angleAxis");i(u,h),i(c,d),l.resize(e,t),n.push(l),e.coordinateSystem=l,l.model=e}),e.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];if(__DEV__&&!n)throw new Error('Polar "'+l.retrieve(t.get("polarIndex"),t.get("polarId"),0)+'" not found');t.coordinateSystem=n.coordinateSystem}}),n}};n(261).register("polar",h)},function(e,t,n){"use strict";var r=n(561),a=n(562),i=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new r,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this};i.prototype={type:"polar",axisPointerEnabled:!0,constructor:i,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis];
|
|
58
|
-
},getAxesByScale:function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoints:function(e){return e.mapArray(this.dimensions,function(e,t){return this.dataToPoint([e,t])},this)},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),a=r.getExtent(),i=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);r.inverse?i=o-360:o=i+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<i?1:-1;l<i||l>o;)l+=360*u;return[s,l]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[r,a]}},e.exports=i},function(e,t,n){"use strict";function r(e,t){i.call(this,"radius",e,t),this.type="category"}var a=n(239),i=n(335);r.prototype={constructor:r,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:i.prototype.dataToCoord,radiusToData:i.prototype.coordToData},a.inherits(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t){t=t||[0,360],i.call(this,"angle",e,t),this.type="category"}var a=n(239),i=n(335);r.prototype={constructor:r,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:i.prototype.dataToCoord,angleToData:i.prototype.coordToData},a.inherits(r,i),e.exports=r},function(e,t,n){"use strict";n(564),n(236).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,n=this.ecModel;return n.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(e,t,n){"use strict";function r(e,t){return t.type||(t.data?"category":"value")}var a=n(239),i=n(254),o=n(366),s=i.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});a.merge(s.prototype,n(347));var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};o("angle",s,r,l.angle),o("radius",s,r,l.radius)},function(e,t,n){"use strict";n(559),n(566)},function(e,t,n){"use strict";function r(e,t,n,r){var a=e.coordToPoint([t,r]),i=e.coordToPoint([n,r]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}var a=n(239),i=n(279),o=n(247),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];n(371).extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords();"category"!==n.type&&o.pop(),a.each(s,function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,o,i)},this)}},_axisLine:function(e,t,n,r){var a=e.getModel("axisLine.lineStyle"),o=new i.Circle({shape:{cx:t.cx,cy:t.cy,r:r[1]},style:a.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(e,t,n,o){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),u=a.map(n,function(e){return new i.Line({shape:r(t,o[1],o[1]+l,e)})});this.group.add(i.mergePath(u,{style:a.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_axisLabel:function(e,t,n,r){for(var a=e.axis,s=e.get("data"),l=e.getModel("axisLabel"),u=l.getModel("textStyle"),c=e.getFormattedLabels(),h=l.get("margin"),d=a.getLabelsCoords(),p=0;p<n.length;p++){var f=r[1],g=t.coordToPoint([f+h,d[p]]),m=t.cx,v=t.cy,y=Math.abs(g[0]-m)/f<.3?"center":g[0]>m?"left":"right",x=Math.abs(g[1]-v)/f<.3?"middle":g[1]>v?"top":"bottom",_=u;s&&s[p]&&s[p].textStyle&&(_=new o(s[p].textStyle,u)),this.group.add(new i.Text({style:{x:g[0],y:g[1],fill:_.getTextColor()||e.get("axisLine.lineStyle.color"),text:c[p],textAlign:y,textVerticalAlign:x,textFont:_.getFont()},silent:!0}))}},_splitLine:function(e,t,n,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<n.length;d++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new i.Line({shape:r(t,o[0],o[1],n[d])}))}for(var d=0;d<h.length;d++)this.group.add(i.mergePath(h[d],{style:a.defaults({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},_splitArea:function(e,t,n,r){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-n[0]*h,p=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),g=e.get("clockwise"),m=1;m<n.length;m++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new i.Sector({shape:{cx:t.cx,cy:t.cy,r0:p,r:f,startAngle:d,endAngle:-n[m]*h,clockwise:g},silent:!0})),d=-n[m]*h}for(var m=0;m<c.length;m++)this.group.add(i.mergePath(c[m],{style:a.defaults({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}})},function(e,t,n){n(559),n(568)},function(e,t,n){"use strict";function r(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var a=n(239),i=n(279),o=n(370),s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"];n(371).extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,u=i.getAngleAxis(),c=n.getTicksCoords(),h=u.getExtent()[0],d=n.getExtent(),p=r(i,e,h),f=new o(e,p);a.each(s,f.add,f),this.group.add(f.getGroup()),a.each(l,function(t){e.get(t+".show")&&!n.scale.isBlank()&&this["_"+t](e,i,h,d,c)},this)}},_splitLine:function(e,t,n,r,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<o.length;d++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new i.Circle({shape:{cx:t.cx,cy:t.cy,r:o[d]},silent:!0}))}for(var d=0;d<h.length;d++)this.group.add(i.mergePath(h[d],{style:a.defaults({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},_splitArea:function(e,t,n,r,o){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=o[0],p=1;p<o.length;p++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new i.Sector({shape:{cx:t.cx,cy:t.cy,r0:d,r:o[p],startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[p]}for(var p=0;p<h.length;p++)this.group.add(i.mergePath(h[p],{style:a.defaults({fill:u[p%u.length]},l.getAreaStyle()),silent:!0}))}})},function(e,t,n){"use strict";function r(e,t,n,r,a){var i=t.axis,s=i.dataToCoord(e),c=r.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,p,f=r.getRadiusAxis().getExtent();if("radius"===i.dim){var g=l.create();l.rotate(g,g,c),l.translate(g,g,[r.cx,r.cy]),h=o.applyTransform([s,-a],g);var m=t.getModel("axisLabel").get("rotate")||0,v=u.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];h=r.coordToPoint([y+a,s]);var x=r.cx,_=r.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",p=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:p}}var a=n(241),i=n(539),o=n(279),s=n(540),l=n(246),u=n(370),c=n(371),h=i.extend({makeElOption:function(e,t,n,i,o){var l=n.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var u,c=l.polar,h=c.getOtherAxis(l),p=h.getExtent();u=l["dataTo"+a.capitalFirst(l.dim)](t);var f=i.get("type");if(f&&"none"!==f){var g=s.buildElStyle(i),m=d[f](l,c,u,p,g);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=i.get("label.margin"),y=r(t,n,i,c,v);s.buildLabelElOption(e,n,i,o,y)}}),d={line:function(e,t,n,r,a){return"angle"===e.dim?{type:"Line",shape:s.makeLineShape(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,a){var i=e.getBandWidth(),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:s.makeSectorShape(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(-n+i/2)*o)}:{type:"Sector",shape:s.makeSectorShape(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",h),e.exports=h},function(e,t,n){function r(e,t){t.update="updateView",a.registerAction(t,function(t,n){var r={};return n.eachComponent({mainType:"geo",query:t},function(n){n[e](t.name);var a=n.coordinateSystem;i.each(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1})}),{selected:r,name:t.name}})}n(571),n(406),n(572),n(421);var a=n(236),i=n(239);r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(e,t,n){"use strict";var r=n(240),a=n(254),i=n(247),o=n(239),s=n(383),l=n(406),u=a.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){a.prototype.init.apply(this,arguments),r.defaultEmphasis(e.label,["position","show","textStyle","distance","formatter"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map),this._optionModelMap=o.reduce(e.regions||[],function(e,n){return n.name&&(e[n.name]=new i(n,t)),e},{}),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap[e]||new i(null,this,this.ecModel)},getFormattedLabel:function(e,t){var n=this.getRegionModel(e),r=n.get("label."+t+".formatter"),a={name:e};if("function"==typeof r)return a.status=t,r(a);if("string"==typeof r){var i=a.seriesName;return r.replace("{a}",null!=i?i:"")}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});o.mixin(u,s),e.exports=u},function(e,t,n){"use strict";var r=n(416);e.exports=n(236).extendComponentView({type:"geo",init:function(e,t){var n=new r(t,!0);this._mapDraw=n,this.group.add(n.group)},render:function(e,t,n,r){if(!r||"geoToggleSelect"!==r.type||r.from!==this.uid){var a=this._mapDraw;e.get("show")?a.draw(e,t,n,this,r):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}})},function(e,t,n){n(236).registerPreprocessor(n(574)),n(575),n(579),n(580),n(581),n(582)},function(e,t,n){function r(e){var t={};a.each(e,function(e){t[e]=1}),e.length=0,a.each(t,function(t,n){e.push(n)})}var a=n(239),i=["rect","polygon","keep","clear"];e.exports=function(e,t){var n=e&&e.brush;if(a.isArray(n)||(n=n?[n]:[]),n.length){var o=[];a.each(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(o=o.concat(t))});var s=e&&e.toolbox;a.isArray(s)&&(s=s[0]),s||(s={feature:{}},e.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,o),r(c),t&&!c.length&&c.push.apply(c,i)}}},function(e,t,n){function r(e,t,n,r,i){if(i){var o=e.getZr();if(!o[x]){o[y]||(o[y]=a);var s=g.createOrUpdate(o,y,n,t);s(e,r)}}}function a(e,t){if(!e.isDisposed()){var n=e.getZr();n[x]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[x]=!1}}function i(e,t,n,r){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e[o.brushType](r,n,o.selectors,o))return!0}}function o(e){var t=e.brushSelector;if(d.isString(t)){var n=[];return d.each(f,function(e,r){n[r]=function(n,r,a,i){var o=r.getItemLayout(n);return e[t](o,a,i)}}),n}if(d.isFunction(t)){var r={};return d.each(f,function(e,n){r[n]=t}),r}return t}function s(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(d.isArray(n)?d.indexOf(n,t)<0:t!==n)}function l(e){var t=e.selectors={};return d.each(f[e.brushType],function(n,r){t[r]=function(r){return n(r,t,e)}}),e}function u(e){return new p(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var c=n(236),h=n(576),d=n(239),p=n(244),f=n(577),g=n(316),m=n(578),v=["inBrush","outOfBrush"],y="__ecBrushSelect",x="__ecInBrushSelectEvent",_=c.PRIORITY.VISUAL.BRUSH;c.registerLayout(_,function(e,t,n){e.eachComponent({mainType:"brush"},function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1});var r=t.brushTargetManager=new m(t.option,e);r.setInputRanges(t.areas,e)})}),c.registerVisual(_,function(e,t,n){var a,u,c=[];e.eachComponent({mainType:"brush"},function(t,n){function r(e){return"all"===x||_[e]}function p(e){return!!e.length}function f(e,t){var n=e.coordinateSystem;M|=n.hasAxisBrushed(),r(t)&&n.eachActiveState(e.getData(),function(e,t){"active"===e&&(w[t]=1)})}function g(n,a,l){var u=o(n);if(u&&!s(t,a)&&(d.each(C,function(r){u[r.brushType]&&t.brushTargetManager.controlSeries(r,n,e)&&l.push(r),M|=p(l)}),r(a)&&p(l))){var c=n.getData();c.each(function(e){i(u,l,c,e)&&(w[e]=1)})}}var m={brushId:t.id,brushIndex:n,brushName:t.name,areas:d.clone(t.areas),selected:[]};c.push(m);var y=t.option,x=y.brushLink,_=[],w=[],S=[],M=0;n||(a=y.throttleType,u=y.throttleDelay);var C=d.map(t.areas,function(e){return l(d.defaults({boundingRect:b[e.brushType](e)},e))}),T=h.createVisualMappings(t.option,v,function(e){e.mappingMethod="fixed"});d.isArray(x)&&d.each(x,function(e){_[e]=1}),e.eachSeries(function(e,t){var n=S[t]=[];"parallel"===e.subType?f(e,t,n):g(e,t,n)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};m.selected.push(n);var a=o(e),s=S[t],l=e.getData(),u=r(t)?function(e){return w[e]?(n.dataIndex.push(l.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return i(a,s,l,e)?(n.dataIndex.push(l.getRawIndex(e)),"inBrush"):"outOfBrush"};(r(t)?M:p(s))&&h.applyVisual(v,T,l,u)})}),r(t,a,u,c,n)});var b={lineX:d.noop,lineY:d.noop,rect:function(e){return u(e.range)},polygon:function(e){for(var t,n=e.range,r=0,a=n.length;r<a;r++){t=t||[[1/0,-(1/0)],[1/0,-(1/0)]];var i=n[r];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&u(t)}}},function(e,t,n){function r(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}var a=n(239),i=n(437),o=a.each,s={createVisualMappings:function(e,t,n){function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}var s={};return o(t,function(t){var l=s[t]=r();o(e[t],function(e,r){if(i.isValidType(r)){var o={type:r,visual:e};n&&n(o,t),l[r]=new i(o),"opacity"===r&&(o=a.clone(o),o.type="colorAlpha",l.__hidden.__alphaForOpacity=new i(o))}})}),s},replaceVisualOption:function(e,t,n){var i;a.each(n,function(e){t.hasOwnProperty(e)&&r(t[e])&&(i=!0)}),i&&a.each(n,function(n){t.hasOwnProperty(n)&&r(t[n])?e[n]=a.clone(t[n]):delete e[n]})},applyVisual:function(e,t,n,r,o,s){function l(e){return n.getItemVisual(d,e)}function u(e,t){n.setItemVisual(d,e,t)}function c(e,a){d=null==s?e:a;var i=n.getRawDataItem(d);if(!i||i.visualMap!==!1)for(var c=r.call(o,e),p=t[c],f=h[c],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(e,l,u)}}var h={};a.each(e,function(e){var n=i.prepareVisualTypes(t[e]);h[e]=n});var d;null==s?n.each(c,!0):n.each([s],c,!0)}};e.exports=s},function(e,t,n){function r(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){var i=r.range,o=t[e];return a(o,i)},rect:function(r,i,o){var s=o.range,l=[r[t[e]],r[t[e]]+r[n[e]]];return l[1]<l[0]&&l.reverse(),a(l[0],s)||a(l[1],s)||a(s[0],l)||a(s[1],l)}}}function a(e,t){return t[0]<=e&&e<=t[1]}function i(e,t,n,r,a){for(var i=0,s=a[a.length-1];i<a.length;i++){var l=a[i];if(o(e,t,n,r,l[0],l[1],s[0],s[1]))return!0;s=l}}function o(e,t,n,r,a,i,o,u){var c=l(n-e,a-o,r-t,i-u);if(s(c))return!1;var h=l(a-e,a-o,i-t,i-u)/c;if(h<0||h>1)return!1;var d=l(n-e,a-e,r-t,i-t)/c;return!(d<0||d>1)}function s(e){return e<=1e-6&&e>=-1e-6}function l(e,t,n,r){return e*r-t*n}var u=n(410).contain,c=n(244),h={lineX:r(0),lineY:r(1),rect:{point:function(e,t,n){return n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return n.boundingRect.contain(e[0],e[1])&&u(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(r.length<=1)return!1;var a=e.x,o=e.y,s=e.width,l=e.height,h=r[0];return!!(u(r,a,o)||u(r,a+s,o)||u(r,a,o+l)||u(r,a+s,o+l)||c.create(e).contain(h[0],h[1])||i(a,o,a+s,o,r)||i(a,o,a,o+l,r)||i(a+s,o,a+s,o+l,r)||i(a,o+l,a+s,o+l,r))||void 0}}};e.exports=h},function(e,t,n){function r(e,t,n){var r=this._targetInfoList=[],a={},o=i(t,e);f(_,function(e,t){(!n||!n.include||g(n.include,t)>=0)&&e(o,r,a)})}function a(e){return e[0]>e[1]&&e.reverse(),e}function i(e,t){return d.parseFinder(e,t,{includeMainTypes:y})}function o(e,t,n,r){__DEV__&&c.assert("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][e]),o=a(c.map([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e])):i.toGlobalCoord(i.dataToCoord(r[e]))})),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}function s(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function l(e,t){var n=u(e),r=u(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function u(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var c=n(239),h=n(279),d=n(240),p=n(480),f=c.each,g=c.indexOf,m=c.curry,v=["dataToPoint","pointToData"],y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x=r.prototype;x.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=S[e.brushType](0,n,t);e.__rangeOffset={offset:M[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})},x.matchOutputRanges=function(e,t,n){f(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&c.each(r.coordSyses,function(r){var a=S[e.brushType](1,r,e.range);n(e,a.values,r,t)})},this)},x.setInputRanges=function(e,t){f(e,function(e){var n=this.findTargetInfo(e,t);if(__DEV__&&(c.assert(!n||n===!0||e.coordRange,"coordRange must be specified when coord index specified."),c.assert(!n||n!==!0||e.range,"range must be specified in global brush.")),e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=S[e.brushType](0,n.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?M[e.brushType](r.values,a.offset,l(r.xyMinMax,a.xyMinMax)):r.values}},this)},x.makePanelOpts=function(e,t){return c.map(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:p.makeRectPanelClipPath(r),isTargetByCursor:p.makeRectIsTargetByCursor(r,e,n.coordSysModel),getLinearBrushOtherExtent:p.makeLinearBrushOtherExtent(r)}})},x.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&g(r.coordSyses,t.coordinateSystem)>=0},x.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=i(t,e),a=0;a<n.length;a++){var o=n[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var a=0;a<b.length;a++)if(b[a](r,o))return o}return!0};var _={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i={},o={},s={};(n||r||a)&&(f(n,function(e){var t=e.axis.grid.model;i[t.id]=t,o[t.id]=!0}),f(r,function(e){var t=e.axis.grid.model;i[t.id]=t,s[t.id]=!0}),f(a,function(e){i[e.id]=e,o[e.id]=!0,s[e.id]=!0}),f(i,function(e){var a=e.coordinateSystem,i=[];f(a.getCartesians(),function(e,t){(g(n,e.getAxis("x").model)>=0||g(r,e.getAxis("y").model)>=0)&&i.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:i[0],coordSyses:i,getPanelRect:w.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){f(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:w.geo})})}},b=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],w={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(h.getTransform(e)),t}},S={lineX:m(o,0),lineY:m(o,1),rect:function(e,t,n){var r=t[v[e]]([n[0][0],n[1][0]]),i=t[v[e]]([n[0][1],n[1][1]]),o=[a([r[0],i[0]]),a([r[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n){var r=[[1/0,-(1/0)],[1/0,-(1/0)]],a=c.map(n,function(n){var a=t[v[e]](n);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a});return{values:a,xyMinMax:r}}},M={lineX:m(s,0),lineY:m(s,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return c.map(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};e.exports=r},function(e,t,n){function r(e,t){return i.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var a=n(236),i=n(239),o=n(576),s=n(247),l=["#ddd"],u=a.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&o.replaceVisualOption(n,e,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{},n.outOfBrush=n.outOfBrush||{color:l}},setAreas:function(e){__DEV__&&(i.assert(i.isArray(e)),i.each(e,function(e){i.assert(e.brushType,"Illegal areas")})),e&&(this.areas=i.map(e,function(e){return r(this.option,e)},this))},setBrushOption:function(e){this.brushOption=r(this.option,e),this.brushType=this.brushOption.brushType}});e.exports=u},function(e,t,n){function r(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}var a=n(239),i=n(479),o=n(236);e.exports=o.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new i(t.getZr())).on("brush",a.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,r.apply(this,arguments)},updateView:r,updateLayout:r,updateVisual:r,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:a.clone(e),$from:n})}})},function(e,t,n){var r=n(236);r.registerAction({type:"brush",event:"brush",update:"updateView"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},function(e,t,n){"use strict";function r(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}var a=n(583),i=n(239);r.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}};var o=r.prototype;o.render=o.updateView=o.updateLayout=function(e,t,n){var r,a,o;t.eachComponent({mainType:"brush"},function(e){r=e.brushType,a=e.brushOption.brushMode||"single",o|=e.areas.length}),this._brushType=r,this._brushMode=a,i.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?o:t===r)?"emphasis":"normal")})},o.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return i.each(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},o.onclick=function(e,t,n){var t=this.api,r=this._brushType,a=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===a?"single":"multiple":a}})},a.register("brush",r),e.exports=r},function(e,t){"use strict";var n={};e.exports={register:function(e,t){n[e]=t},get:function(e){return n[e]}}},function(e,t,n){"use strict";n(585),n(586),n(587)},function(e,t,n){"use strict";function r(e,t,n){this._model=e}function a(e,t,n,r){var a=n.calendarModel,i=n.seriesModel,o=a?a.coordinateSystem:i?i.coordinateSystem:null;return o===this?o[e](r):null}var i=n(256),o=n(242),s=n(239),l=864e5;r.prototype={constructor:r,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getHandledRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=o.parseDate(e);var t=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var r=e.getDate();r=r<10?"0"+r:r;var a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t,m:n,d:r,day:a,time:e.getTime(),formatedDate:t+"-"+n+"-"+r,date:e}},getNextNDay:function(e,t){if(t=t||0,0===t)return this.getDateInfo(e);var n=this.getDateInfo(e).time;return this.getDateInfo(n+l*t)},update:function(e,t){function n(e,t){return null!=e[t]&&"auto"!==e[t]}this._firstDayOfWeek=this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),u="horizontal"===this._orient?[r,7]:[7,r];s.each([0,1],function(e){n(o,e)&&(l[a[e]]=o[e]*u[e])});var c={width:t.getWidth(),height:t.getHeight()},h=this._rect=i.getLayoutRect(l,c);s.each([0,1],function(e){n(o,e)||(o[e]=h[a[e]]/u[e])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(e,t){var n=this.getDateInfo(e[0]),r=this._rangeInfo,a=n.formatedDate;if(!(t||n.time>=r.start.time&&n.time<=r.end.time))return[NaN,NaN];var i=n.day,o=this._getRangeInfo([r.start.time,a]).weeks;return"vertical"===this._orient?[this._rect.x+i*this._sw+this._sw/2,this._rect.y+(o-1)*this._sh+this._sh/2]:[this._rect.x+(o-1)*this._sw+this._sw/2,this._rect.y+i*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var n=this.dataToPoint(e,t);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]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},convertToPixel:s.curry(a,"dataToPoint"),convertFromPixel:s.curry(a,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(s.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var n=this.getDateInfo(t),r=n.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);e=[n.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var i=this._getRangeInfo(e);return i.start.time>i.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t=this.getDateInfo(e[0]),n=this.getDateInfo(e[1]),r=Math.floor(n.time/l)-Math.floor(t.time/l)+1,a=Math.floor((r+t.day+6)/7);return{range:[t.formatedDate,n.formatedDate],start:t,end:n,allDay:r,weeks:a,fweek:t.day,lweek:n.day}},_getDateByWeeksAndDay:function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return!1;var a=7*(e-1)-r.fweek+t,i=r.start.time+a*l;return this.getDateInfo(i)}},r.dimensions=r.prototype.dimensions,r.getDimensionsInfo=r.prototype.getDimensionsInfo,r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])}),n},n(261).register("calendar",r),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var r=i.map([0,1],function(e){return o.sizeCalculable(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});o.mergeLayoutParam(e,t,{type:"box",ignoreSize:r})}var a=n(254),i=n(239),o=n(256),s=a.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",textStyle:{color:"#000"}},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,textStyle:{color:"#000"}},yearLabel:{show:!0,position:null,margin:30,formatter:null,textStyle:{color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}}},init:function(e,t,n,a){var i=o.getLayoutParams(e);s.superApply(this,"init",arguments),r(e,i)},mergeOption:function(e,t){s.superApply(this,"mergeOption",arguments),r(this.option,e)}});e.exports=s},function(e,t,n){"use strict";var r=n(239),a=n(279),i=n(241),o=n(242),s={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
|
|
59
|
-
CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},l={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};e.exports=n(236).extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var r=this.group;r.removeAll();var a=e.coordinateSystem,i=a.getHandledRangeInfo(),o=a.getOrient();this._renderDayRect(e,i,r),this._renderLines(e,i,o,r),this._renderYearText(e,i,o,r),this._renderMonthText(e,o,r),this._renderWeekText(e,i,o,r)},_renderDayRect:function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle.normal").getItemStyle(),o=r.getCellWidth(),s=r.getCellHeight(),l=t.start.time;l<=t.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!0).tl,c=new a.Rect({shape:{x:u[0],y:u[1],width:o,height:s},style:i});n.add(c)}},_renderLines:function(e,t,n,r){function a(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!0).tl);var a=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(a[0]),i._blpoints.push(a[a.length-1]),l&&i._drawSplitline(a,s,r)}var i=this,o=e.coordinateSystem,s=e.getModel("splitLine.lineStyle").getLineStyle(),l=e.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,h=0;c.time<=t.end.time;h++){a(c.formatedDate),0===h&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=o.getDateInfo(d)}a(o.getNextNDay(t.end.time,1).formatedDate),l&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,u,n),s,r),l&&this._drawSplitline(i._getEdgesPoints(i._blpoints,u,n),s,r)},_getEdgesPoints:function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===n?0:1;return r[0][a]=r[0][a]-t/2,r[1][a]=r[1][a]+t/2,r},_drawSplitline:function(e,t,n){var r=new a.Polyline({z2:20,shape:{points:e},style:t});n.add(r)},_getLinePointsOfOneWeek:function(e,t,n){var r=e.coordinateSystem;t=r.getDateInfo(t);for(var a=[],i=0;i<7;i++){var o=r.getNextNDay(t.time,i),s=r.dataToRect([o.time],!0);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===n?"bl":"tr"]}return a},_formatterLabel:function(e,t){return"string"==typeof e&&e?i.formatTplSimple(e,t):"function"==typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,r){e=e.slice();var a=["center","bottom"];"top"===n&&(e[1]-=r),"bottom"===n&&(e[1]+=r,a=["center","top"]),"left"===n&&(e[0]-=r),"right"===n&&(e[0]+=r,a=["center","top"]);var i=0;return"left"!==n&&"right"!==n||(i=Math.PI/2),{rotation:i,origin:e,style:{x:e[0],y:e[1],textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(e,t,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=e.getModel("yearLabel.textStyle"),l=o.get("margin"),u=o.get("position");u||(u="horizontal"!==n?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,p="horizontal"===n?0:1,f={top:[h,c[p][1]],bottom:[h,c[1-p][1]],left:[c[1-p][0],d],right:[c[p][0],d]},g=t.start.y;+t.end.y>+t.start.y&&(g=g+"-"+t.end.y);var m=o.get("formatter"),v={start:t.start.y,end:t.end.y,nameMap:g},y=this._formatterLabel(m,v),x=new a.Text(r.merge({z2:30,style:{text:y,font:s.getFont(),fill:s.getTextColor()}},this._yearTextPositionControl(f[u],n,u,l)));i.add(x)}},_monthTextPositionControl:function(e,t,n,r,a){var i="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=a,t&&(i="center"),"start"===r&&(o="bottom")):(s+=a,t&&(o="middle"),"start"===r&&(i="right")),{x:s,y:l,textAlign:i,textVerticalAlign:o}},_renderMonthText:function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var o=e.getModel("monthLabel.textStyle"),l=i.get("nameMap"),u=i.get("margin"),c=i.get("position"),h=i.get("align"),d=[this._tlpoints,this._blpoints];r.isString(l)&&(l=s[l.toUpperCase()]||[]);var p="start"===c?0:1,f="horizontal"===t?0:1;u="start"===c?-u:u;for(var g="center"===h,m=0;m<d[p].length-1;m++){var v=d[p][m].slice(),y=this._firstDayOfMonth[m];if(g){var x=this._firstDayPoints[m];v[f]=(x[f]+d[0][m+1][f])/2}var _=i.get("formatter"),b=l[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},S=this._formatterLabel(_,w),M=new a.Text({z2:30,style:r.extend({text:S,font:o.getFont(),fill:o.getTextColor()},this._monthTextPositionControl(v,g,t,c,u))});n.add(M)}}},_weekTextPositionControl:function(e,t,n,r,a){var i="center",o="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*a[0]/2,i=u?"right":"left"):(l=l+r+(u?1:-1)*a[1]/2,o=u?"bottom":"top"),{x:s,y:l,textAlign:i,textVerticalAlign:o}},_renderWeekText:function(e,t,n,i){var s=e.getModel("dayLabel");if(s.get("show")){var u=e.coordinateSystem,c=e.getModel("dayLabel.textStyle"),h=s.get("position"),d=s.get("nameMap"),p=s.get("margin"),f=u.getFirstDayOfWeek();r.isString(d)&&(d=l[d.toUpperCase()]||[]);var g=u.getNextNDay(t.end.time,7-t.lweek).time,m=[u.getCellWidth(),u.getCellHeight()];p=o.parsePercent(p,m["horizontal"===n?0:1]),"start"===h&&(g=u.getNextNDay(t.start.time,-(7+t.fweek)).time,p=-p);for(var v=0;v<7;v++){var y=u.getNextNDay(g,v),x=u.dataToRect([y.time],!0).center,_=v;_=Math.abs((v+f)%7);var b=new a.Text({z2:30,style:r.extend({text:d[_],font:c.getFont(),fill:c.getTextColor()},this._weekTextPositionControl(x,n,h,p,m))});i.add(b)}}}})},function(e,t,n){"use strict";var r=n(236),a=n(279),i=n(256);r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=e.get("textBaseline"),c=new a.Text({style:{text:e.get("text"),textFont:o.getFont(),fill:o.getTextColor()},z2:10}),h=c.getBoundingRect(),d=e.get("subtext"),p=new a.Text({style:{text:d,textFont:s.getFont(),fill:s.getTextColor(),y:h.height+e.get("itemGap"),textBaseline:"top"},z2:10}),f=e.get("link"),g=e.get("sublink");c.silent=!f,p.silent=!g,f&&c.on("click",function(){window.open(f,"_"+e.get("target"))}),g&&p.on("click",function(){window.open(g,"_"+e.get("subtarget"))}),r.add(c),d&&r.add(p);var m=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=i.getLayoutRect(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=e.get("top")||e.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),r.attr("position",[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c.setStyle(x),p.setStyle(x),m=r.getBoundingRect();var _=y.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new a.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2]},style:b,silent:!0});a.subPixelOptimizeRect(w),r.add(w)}}})},function(e,t,n){n(590),n(591),n(594),n(595),n(596),n(597),n(598),n(600),n(601)},function(e,t,n){n(254).registerSubTypeDefaulter("dataZoom",function(e){return"slider"})},function(e,t,n){function r(e){var t={};return h(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function a(e,t){h([["start","startValue"],["end","endValue"]],function(n,r){var a=e._rangePropMode;null!=t[n[0]]?a[r]="percent":null!=t[n[1]]&&(a[r]="value")})}var i=n(239),o=n(237),s=n(236),l=n(240),u=n(592),c=n(593),h=i.each,d=u.eachAxisDim,p=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var a=r(e);this.mergeDefaultAndTheme(e,n),this.doInit(a)},mergeOption:function(e){var t=r(e);i.merge(this.option,e,!0),this.doInit(t)},doInit:function(e){var t=this.option;o.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),a(this,e),h([["start","startValue"],["end","endValue"]],function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(t,n,r,a){var i=this.dependentModels[t.axis][n],o=i.__dzAxisProxy||(i.__dzAxisProxy=new c(t.name,n,this,a));e[t.name+"_"+n]=o},this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d(function(t){var n=t.axisIndex;e[n]=l.normalizeToArray(e[n])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;d(function(n){null!=e[n.axisIndex]&&(t=!0)},this);var n=e.orient;return null==n&&t?"orient":t?void 0:(null==n&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),n=this.option,r=this.dependentModels;if(e){var a="vertical"===t?"y":"x";r[a+"Axis"].length?(n[a+"AxisIndex"]=[0],e=!1):h(r.singleAxis,function(r){e&&r.get("orient",!0)===t&&(n.singleAxisIndex=[r.componentIndex],e=!1)})}e&&d(function(t){if(e){var r=[],a=this.dependentModels[t.axis];if(a.length&&!r.length)for(var i=0,o=a.length;i<o;i++)"category"===a[i].get("type")&&r.push(i);n[t.axisIndex]=r,r.length&&(e=!1)}},this),e&&this.ecModel.eachSeries(function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&d(function(t){var r=n[t.axisIndex],a=e.get(t.axisIndex),o=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:a,id:o})[0];if(__DEV__&&!s)throw new Error(t.axis+' "'+i.retrieve(a,o,0)+'" not found');a=s.componentIndex,i.indexOf(r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){!e&&(e=t.name)},this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var n=!0;return d(function(r){var a=e.get(r.axisIndex),i=this.dependentModels[r.axis][a];i&&i.get("type")===t||(n=!1)},this),n},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return d(function(t){if(null==e){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}},this),e},eachTargetAxis:function(e,t){var n=this.ecModel;d(function(r){h(this.get(r.axisIndex),function(a){e.call(t,r,a,this,n)},this)},this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e,t){h(["start","end","startValue","endValue"],function(t){this.option[t]=e[t]},this),!t&&a(this,e)},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var e=this._axisProxies;for(var t in e)if(e.hasOwnProperty(t)&&e[t].hostedBy(this))return e[t];for(var t in e)if(e.hasOwnProperty(t)&&!e[t].hostedBy(this))return e[t]},getRangePropMode:function(){return this._rangePropMode.slice()}});e.exports=p},function(e,t,n){var r=n(241),a=n(239),i={},o=["x","y","z","radius","angle","single"],s=["cartesian2d","polar","singleAxis"];i.isCoordSupported=function(e){return a.indexOf(s,e)>=0},i.createNameEach=function(e,t){e=e.slice();var n=a.map(e,r.capitalFirst);t=(t||[]).slice();var i=a.map(t,r.capitalFirst);return function(r,o){a.each(e,function(e,a){for(var s={name:e,capital:n[a]},l=0;l<t.length;l++)s[t[l]]=e+i[l];r.call(o,s)})}},i.eachAxisDim=i.createNameEach(o,["axisIndex","axis","index","id"]),i.createLinkedNodesFinder=function(e,t,n){function r(e,t){return a.indexOf(t.nodes,e)>=0}function i(e,r){var i=!1;return t(function(t){a.each(n(e,t)||[],function(e){r.records[t.name][e]&&(i=!0)})}),i}function o(e,r){r.nodes.push(e),t(function(t){a.each(n(e,t)||[],function(e){r.records[t.name][e]=!0})})}return function(n){function a(e){!r(e,s)&&i(e,s)&&(o(e,s),l=!0)}var s={nodes:[],records:{}};if(t(function(e){s.records[e.name]={}}),!n)return s;o(n,s);var l;do l=!1,e(a);while(l);return s}},e.exports=i},function(e,t,n){function r(e,t,n){var r=[1/0,-(1/0)];return u(n,function(e){var n=e.getData();n&&u(e.coordDimToDataDim(t),function(e){var t=n.getDataExtent(e);t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])})}),r[1]<r[0]&&(r=[NaN,NaN]),a(e,r),r}function a(e,t){var n=e.getAxisModel(),r=n.getMin(!0),a="category"===n.get("type"),i=a&&(n.get("data")||[]).length;null!=r&&"dataMin"!==r?t[0]=r:a&&(t[0]=i>0?0:NaN);var o=n.getMax(!0);return null!=o&&"dataMax"!==o?t[1]=o:a&&(t[1]=i>0?i-1:NaN),n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function i(e,t){var n=e.getAxisModel(),r=e._percentWindow,a=e._valueWindow;if(r){var i=s.getPixelPrecision(a,[0,500]),o=t||0===r[0]&&100===r[1];n.setRange(o?null:+a[0].toFixed(i),o?null:+a[1].toFixed(i))}}var o=n(239),s=n(242),l=n(592),u=o.each,c=s.asc,h=function(e,t,n,r){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this.ecModel=r,this._dataZoomModel=n};h.prototype={constructor:h,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries(function(n){if(l.isCoordSupported(n.get("coordinateSystem"))){var r=this._dimName,a=t.queryComponents({mainType:r+"Axis",index:n.get(r+"AxisIndex"),id:n.get(r+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&e.push(n)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n=this._dimName,r=this.ecModel,a=this.getAxisModel(),i="x"===n||"y"===n;i?(t="gridIndex",e="x"===n?"y":"x"):(t="polarIndex",e="angle"===n?"radius":"angle");var o;return r.eachComponent(e+"Axis",function(e){(e.get(t)||0)===(a.get(t)||0)&&(o=e)}),o},calculateDataWindow:function(e){var t=this._dataExtent,n=this.getAxisModel(),r=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),i=[0,100],o=[e.start,e.end],l=[];return u(["startValue","endValue"],function(t){l.push(null!=e[t]?r.parse(e[t]):null)}),u([0,1],function(e){var n=l[e],u=o[e];"percent"===a[e]?(null==u&&(u=i[e]),n=r.parse(s.linearMap(u,i,t,!0))):u=s.linearMap(n,t,i,!0),l[e]=n,o[e]=u}),{valueWindow:c(l),percentWindow:c(o)}},reset:function(e){if(e===this._dataZoomModel){this._dataExtent=r(this,this._dimName,this.getTargetSeriesModels());var t=this.calculateDataWindow(e.option);this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,i(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,i(this,!0))},filterData:function(e){function t(e){return e>=i[0]&&e<=i[1]}if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),a=e.get("filterMode"),i=this._valueWindow,o=this.getOtherAxisModel();e.get("$fromToolbox")&&o&&"category"===o.get("type")&&(a="empty"),u(r,function(e){var r=e.getData();r&&u(e.coordDimToDataDim(n),function(n){"empty"===a?e.setData(r.map(n,function(e){return t(e)?e:NaN})):r.filterSelf(n,t)})})}}},e.exports=h},function(e,t,n){var r=n(264);e.exports=r.extend({type:"dataZoom",render:function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){function e(e,t,n,r){for(var a,i=0;i<n.length;i++)if(n[i].model===e){a=n[i];break}a||n.push(a={model:e,axisModels:[],coordIndex:r}),a.axisModels.push(t)}var t=this.dataZoomModel,n=this.ecModel,r={};return t.eachTargetAxis(function(t,a){var i=n.getComponent(t.axis,a);if(i){var o=i.getCoordSysModel();o&&e(o,i,r[o.mainType]||(r[o.mainType]=[]),o.componentIndex)}},this),r}})},function(e,t,n){var r=n(591),a=r.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});e.exports=a},function(e,t,n){function r(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}var a=n(239),i=n(279),o=n(316),s=n(594),l=i.Rect,u=n(242),c=u.linearMap,h=n(256),d=n(473),p=n(323),f=u.asc,g=a.bind,m=a.each,v=7,y=1,x=30,_="horizontal",b="vertical",w=5,S=["line","bar","candlestick","scatter"],M=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,r){return M.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),void this._updateView())},remove:function(){M.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){M.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new i.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},i=this._orient===_?{right:r.width-n.x-n.width,top:r.height-x-v,width:n.width,height:x}:{right:v,top:n.y,width:x,height:n.height},o=h.getLayoutParams(e.option);a.each(["right","top","width","height"],function(e){"ph"===o[e]&&(o[e]=i[e])});var s=h.getLayoutRect(o,r,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),i=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;i.attr(n!==_||a?n===_&&a?{scale:o?[-1,1]:[-1,-1]}:n!==b||a?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=e.getBoundingRect([i]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size;this._displayables.barGroup.add(new l({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,r=n.getRawData(),o=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=o){var s=r.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,h=[0,t[1]],d=[0,t[0]],p=[[t[0],0],[0,0]],f=[],g=d[1]/(r.count()-1),m=0,v=Math.round(r.count()/t[0]);r.each([o],function(e,t){if(v>0&&t%v)return void(m+=g);var n=null==e||isNaN(e)||""===e,r=n?0:c(e,s,h,!0);n&&!u&&t?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&u&&(p.push([m,0]),f.push([m,0])),p.push([m,r]),f.push([m,r]),m+=g,u=n});var y=this.dataZoomModel;this._displayables.barGroup.add(new i.Polygon({shape:{points:p},style:a.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new i.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(t!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o.name,s).getTargetSeriesModels();a.each(l,function(e){if(!(n||t!==!0&&a.indexOf(S,e.get("type"))<0)){var l,u=i.getComponent(o.axis,s).axis,c=r(o.name),h=e.coordinateSystem;null!=c&&h.getOtherAxis&&(l=h.getOtherAxis(u).inverse),n={thisAxis:u,series:e,thisDim:o.name,otherDim:c,otherAxisInverse:l}}},this)},this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],r=this._displayables.barGroup,a=this._size,o=this.dataZoomModel;r.add(e.filler=new l({draggable:!0,cursor:"move",drift:g(this._onDragMove,this,"all"),onmousemove:function(e){p.stop(e.event)},ondragstart:g(this._showDataInfo,this,!0),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),r.add(new l(i.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:y,fill:"rgba(0,0,0,0)"}})));var s=o.get("handleIcon");m([0,1],function(e){var a=i.makePath(s,{style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:g(this._onDragMove,this,e),onmousemove:function(e){p.stop(e.event)},ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)},{x:-.5,y:0,width:1,height:1},"center"),l=a.getBoundingRect();this._handleHeight=u.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(o.getModel("handleStyle").getItemStyle());var c=o.get("handleColor");null!=c&&(a.style.fill=c),r.add(t[e]=a);var h=o.textStyleModel;this.group.add(n[e]=new i.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:h.getTextColor(),textFont:h.getFont()},z2:10}))},this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[c(e[0],[0,100],t,!0),c(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this._handleEnds,r=this._getViewExtent();d(t,n,r,"all"===e||this.dataZoomModel.get("zoomLock")?"rigid":"cross",e),this._range=f([c(n[0],r,[0,100],!0),c(n[1],r,[0,100],!0)])},_updateView:function(e){var t=this._displayables,n=this._handleEnds,r=f(n.slice()),a=this._size;m([0,1],function(e){var r=t.handles[e],i=this._handleHeight;r.attr({scale:[i,i],position:[n[e],a[1]/2-i/2]})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){function t(e){var t=i.getTransform(r.handles[e].parent,this.group),n=i.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+w,u=i.applyTransform([d[e]+(0===e?-l:l),this._size[1]/2],t);a[e].setStyle({x:u[0],y:u[1],textVerticalAlign:o===_?"middle":n,textAlign:o===_?n:"center",text:s[e]})}var n=this.dataZoomModel,r=this._displayables,a=r.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var d=f(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(i,20));return a.isFunction(r)?r(e,o):a.isString(r)?r.replace("{value}",o):o},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n){this._dragging=!0;var r=this._applyBarTransform([t,n],!0);this._updateInterval(e,r[0]);var a=this.dataZoomModel.get("realtime");this._updateView(!a),a&&a&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_applyBarTransform:function(e,t){var n=this._displayables.barGroup.getLocalTransform();return i.applyTransform(e,n,t)},_findCoordRect:function(){var e;if(m(this.getTargetCoordInfo(),function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}}),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});e.exports=M},function(e,t,n){e.exports=n(591).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1}})},function(e,t,n){function r(e){var t=[0,100];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}var a=n(594),i=n(239),o=n(473),s=n(599),l=i.bind,u=a.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,r){u.superApply(this,"render",arguments),s.shouldRecordRange(r,e.id)&&(this._range=e.getPercentRange()),i.each(this.getTargetCoordInfo(),function(t,r){var a=i.map(t,function(e){return s.generateCoordId(e.model)});i.each(t,function(t){var i=t.model;s.register(n,{coordId:s.generateCoordId(i),allCoordIds:a,containsPoint:function(e,t,n){return i.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,throttleRate:e.get("throttle",!0),panGetRange:l(this._onPan,this,t,r),zoomGetRange:l(this._onZoom,this,t,r)})},this)},this)},dispose:function(){s.unregister(this.api,this.dataZoomModel.id),u.superApply(this,"dispose",arguments),this._range=null},_onPan:function(e,t,n,r,a,i,s,l,u){if(this.dataZoomModel.option.disabled)return this._range;var h=this._range.slice(),d=e.axisModels[0];if(d){var p=c[t]([i,s],[l,u],d,n,e),f=p.signal*(h[1]-h[0])*p.pixel/p.pixelLength;return o(f,h,[0,100],"rigid"),this._range=h}},_onZoom:function(e,t,n,a,i,o){var s=this.dataZoomModel.option;if(s.disabled||s.zoomLock)return this._range;var l=this._range.slice(),u=e.axisModels[0];if(u){var h=c[t](null,[i,o],u,n,e),d=(h.pixel-h.pixelStart)/h.pixelLength*(l[1]-l[0])+l[0];return a=Math.max(1/a,0),l[0]=(l[0]-d)*a+d,l[1]=(l[1]-d)*a+d,this._range=r(l)}}}),c={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],"x"===i.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===i.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};e.exports=u},function(e,t,n){function r(e){var t=e.getZr();return t[f]||(t[f]={})}function a(e,t,n){var r=new h(e.getZr());return r.enable(),r.on("pan",p(o,n)),r.on("zoom",p(s,n)),r}function i(e){c.each(e,function(t,n){t.count||(t.controller.dispose(),delete e[n])})}function o(e,t,n,r,a,i,o){l(e,function(s){return s.panGetRange(e.controller,t,n,r,a,i,o)})}function s(e,t,n,r){l(e,function(a){return a.zoomGetRange(e.controller,t,n,r)})}function l(e,t){var n=[];c.each(e.dataZoomInfos,function(e){var r=t(e);r&&n.push({dataZoomId:e.dataZoomId,start:r[0],end:r[1]})}),e.dispatchAction(n)}function u(e,t){e.dispatchAction({type:"dataZoom",batch:t})}var c=n(239),h=n(417),d=n(316),p=c.curry,f="\0_ec_dataZoom_roams",g={register:function(e,t){var n=r(e),o=t.dataZoomId,s=t.coordId;c.each(n,function(e,n){var r=e.dataZoomInfos;r[o]&&c.indexOf(t.allCoordIds,s)<0&&(delete r[o],e.count--)}),i(n);var l=n[s];l||(l=n[s]={coordId:s,dataZoomInfos:{},count:0},l.controller=a(e,t,l),l.dispatchAction=c.curry(u,e)),l.controller.setPointerChecker(t.containsPoint),d.createOrUpdate(l,"dispatchAction",t.throttleRate,"fixRate"),!l.dataZoomInfos[o]&&l.count++,l.dataZoomInfos[o]=t},unregister:function(e,t){var n=r(e);c.each(n,function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)}),i(n)},shouldRecordRange:function(e,t){if(e&&"dataZoom"===e.type&&e.batch)for(var n=0,r=e.batch.length;n<r;n++)if(e.batch[n].dataZoomId===t)return!1;return!0},generateCoordId:function(e){return e.type+"\0_"+e.id}};e.exports=g},function(e,t,n){function r(e,t,n){n.getAxisProxy(e.name,t).reset(n)}function a(e,t,n){n.getAxisProxy(e.name,t).filterData(n)}var i=n(236);i.registerProcessor(function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(r),e.eachTargetAxis(a)}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy(),n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setRawRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]},!0)})})},function(e,t,n){var r=n(239),a=n(592),i=n(236);i.registerAction("dataZoom",function(e,t){var n=a.createLinkedNodesFinder(r.bind(t.eachComponent,t,"dataZoom"),a.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),i=[];t.eachComponent({mainType:"dataZoom",query:e},function(e,t){i.push.apply(i,n(e).nodes)}),r.each(i,function(t,n){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},function(e,t,n){n(603),n(614)},function(e,t,n){n(236).registerPreprocessor(n(604)),n(605),n(606),n(607),n(610),n(613)},function(e,t,n){function r(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var a=n(239),i=a.each;e.exports=function(e){var t=e&&e.visualMap;a.isArray(t)||(t=t?[t]:[]),i(t,function(e){if(e){r(e,"splitList")&&!r(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&a.isArray(t)&&i(t,function(e){a.isObject(e)&&(r(e,"start")&&!r(e,"min")&&(e.min=e.start),r(e,"end")&&!r(e,"max")&&(e.max=e.end))})}})}},function(e,t,n){n(254).registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})},function(e,t,n){function r(e,t){e.eachTargetSeries(function(t){var n=t.getData();s.applyVisual(e.stateList,e.targetVisuals,n,e.getValueState,e,e.getDataDimension(n))})}function a(e){e.eachSeries(function(t){var n=t.getData(),r=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var a=e.getVisualMeta(u.bind(i,null,t,e))||{stops:[],outerColors:[]};a.dimension=e.getDataDimension(n),r.push(a)}}),t.getData().setVisual("visualMeta",r)})}function i(e,t,n,r){function a(e){return u[e]}function i(e,t){u[e]=t}for(var o=t.targetVisuals[r],s=l.prepareVisualTypes(o),u={color:e.getData().getVisual("color")},c=0,h=s.length;c<h;c++){var d=s[c],p=o["opacity"===d?"__alphaForOpacity":d];p&&p.applyVisual(n,a,i)}return u.color}var o=n(236),s=n(576),l=n(437),u=n(239);o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,function(e){e.eachComponent("visualMap",function(t){r(t,e)}),a(e)})},function(e,t,n){function r(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,i=n[0],o=[],s=0;s<=r&&i<n[1];s++)o.push(i),
|
|
60
|
-
i+=a;return o.push(n[1]),o}var a=n(608),i=n(239),o=n(242),s=[20,140],l=a.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:!0},optionUpdated:function(e,t){l.superApply(this,"optionUpdated",arguments),this.resetTargetSeries(),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){l.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=s[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=s[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):i.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=o.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],a=n.getData();a.each(this.getDataDimension(a),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},!0,this),t.push({seriesId:n.id,dataIndex:r})},this),t},getVisualMeta:function(e){function t(t,n){i.push({value:t,color:e(t,n)})}for(var n=r(this,"outOfRange",this.getExtent()),a=r(this,"inRange",this.option.range.slice()),i=[],o=0,s=0,l=a.length,u=n.length;s<u&&(!a.length||n[s]<=a[0]);s++)n[s]<a[o]&&t(n[s],"outOfRange");for(var c=1;o<l;o++,c=0)c&&i.length&&t(a[o],"outOfRange"),t(a[o],"inRange");for(var c=1;s<u;s++)(!a.length||a[a.length-1]<n[s])&&(c&&(i.length&&t(i[i.length-1].value,"outOfRange"),c=0),t(n[s],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}}});e.exports=l},function(e,t,n){var r=n(236),a=n(239),i=n(237),o=n(609),s=n(437),l=n(576),u=s.mapVisual,c=n(240),h=s.eachVisual,d=n(242),p=a.isArray,f=a.each,g=d.asc,m=d.linearMap,v=a.noop,y=["#f6efa6","#d88273","#bf444c"],x=r.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-(1/0),1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:null,min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,n)},optionUpdated:function(e,t){var n=this.option;i.canvasSupported||(n.realtime=!1),!t&&l.replaceVisualOption(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=a.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},resetTargetSeries:function(){var e=this.option,t=null==e.seriesIndex;e.seriesIndex=t?[]:c.normalizeToArray(e.seriesIndex),t&&this.ecModel.eachSeries(function(t,n){e.seriesIndex.push(n)})},eachTargetSeries:function(e,t){a.each(this.option.seriesIndex,function(n){e.call(t,this.ecModel.getSeriesByIndex(n))},this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},formatValueText:function(e,t,n){function r(e){return e===u[0]?"min":e===u[1]?"max":(+e).toFixed(l)}var i,o,s=this.option,l=s.precision,u=this.dataBound,c=s.formatter;return n=n||["<",">"],a.isArray(e)&&(e=e.slice(),i=!0),o=t?e:i?[r(e[0]),r(e[1])]:r(e),a.isString(c)?c.replace("{value}",i?o[0]:o).replace("{value2}",i?o[1]:o):a.isFunction(c)?i?c(e[0],e[1]):c(e):i?e[0]===u[0]?n[0]+" "+o[1]:e[1]===u[1]?n[1]+" "+o[0]:o[0]+" - "+o[1]:o},resetExtent:function(){var e=this.option,t=g([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension;return null!=t?t:e.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function e(e){p(r.color)&&!e.inRange&&(e.inRange={color:r.color.slice().reverse()}),e.inRange=e.inRange||{color:y},f(this.stateList,function(t){var n=e[t];if(a.isString(n)){var r=o.get(n,"active",d);r?(e[t]={},e[t][n]=r):delete e[t]}},this)}function t(e,t,n){var r=e[t],a=e[n];r&&!a&&(a=e[n]={},f(r,function(e,t){if(s.isValidType(t)){var n=o.get(t,"inactive",d);null!=n&&(a[t]=n,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}}))}function n(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor");f(this.stateList,function(i){var o=this.itemSize,s=e[i];s||(s=e[i]={color:d?r:[r]}),null==s.symbol&&(s.symbol=t&&a.clone(t)||(d?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&a.clone(n)||(d?o[0]:[o[0],o[0]])),s.symbol=u(s.symbol,function(e){return"none"===e||"square"===e?"roundRect":e});var l=s.symbolSize;if(null!=l){var c=-(1/0);h(l,function(e){e>c&&(c=e)}),s.symbolSize=u(l,function(e){return m(e,[0,c],[0,o[0]],!0)})}},this)}var r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},l=r.target||(r.target={}),c=r.controller||(r.controller={});a.merge(l,i),a.merge(c,i);var d=this.isCategory();e.call(this,l),e.call(this,c),t.call(this,l,"inRange","outOfRange"),n.call(this,c)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v});e.exports=x},function(e,t,n){var r=n(239),a={get:function(e,t,n){var a=r.clone((i[e]||{})[t]);return n&&r.isArray(a)?a[a.length-1]:a}},i={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]}};e.exports=a},function(e,t,n){function r(e,t,n,r){return new u.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){m.stop(e.event)},ondragend:r})}function a(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function i(e,t,n,r){return e?[[0,-x(t,_(n,0))],[w,0],[0,x(t,_(r-n,0))]]:[[0,0],[5,-5],[5,5]]}function o(e,t,n){var r=b/2,a=e.get("hoverLinkDataSize");return a&&(r=v(a,t,n,!0)/2),r}function s(e){return!e.get("realtime")&&e.get("hoverLinkOnHandle")}var l=n(611),u=n(279),c=n(239),h=n(242),d=n(473),p=n(313),f=n(612),g=n(240),m=n(323),v=h.linearMap,y=c.each,x=Math.min,_=Math.max,b=12,w=6,S=l.extend({type:"visualMap.continuous",init:function(){S.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var a=this.visualMapModel,i=a.get("textGap"),o=a.itemSize,s=this._shapes.barGroup,l=this._applyTransform([o[0]/2,0===n?-i:o[1]+i],s),c=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new u.Text({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:r,textFont:d.getFont(),fill:d.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,a=t.itemSize,i=this._orient,o=this._useHandle,s=f.getItemAlign(t,this.api,a),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=r()),l.add(n.inRange=r(null,o?"move":null,c.bind(this._dragHandle,this,"all",!1),c.bind(this._dragHandle,this,"all",!0)));var u=t.textStyleModel.getTextRect("国"),h=_(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,a,h,i,s),this._createHandle(l,1,a,h,i,s)),this._createIndicator(l,a,h,i),e.add(l)},_createHandle:function(e,t,n,i,o){var s=c.bind(this._dragHandle,this,t,!1),l=c.bind(this._dragHandle,this,t,!0),h=r(a(t,i),"move",s,l);h.position[0]=n[0],e.add(h);var d=this.visualMapModel.textStyleModel,p=new u.Text({draggable:!0,drift:s,onmousemove:function(e){m.stop(e.event)},ondragend:l,style:{x:0,y:0,text:"",textFont:d.getFont(),fill:d.getTextColor()}});this.group.add(p);var f=["horizontal"===o?i/2:1.5*i,"horizontal"===o?0===t?-(1.5*i):1.5*i:0===t?-i/2:i/2],g=this._shapes;g.handleThumbs[t]=h,g.handleLabelPoints[t]=f,g.handleLabels[t]=p},_createIndicator:function(e,t,n,a){var i=r([[0,0]],"move");i.position[0]=t[0],i.attr({invisible:!0,silent:!0}),e.add(i);var o=this.visualMapModel.textStyleModel,s=new u.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),fill:o.getTextColor()}});this.group.add(s);var l=["horizontal"===a?n/2:w+3,0],c=this._shapes;c.indicator=i,c.indicatorLabel=s,c.indicatorLabelPoint=l},_dragHandle:function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var a=this._applyTransform([n,r],this._shapes.barGroup,!0);this._updateInterval(e,a[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():s(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[v(t[0],n,r,!0),v(t[1],n,r,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds;d(t,r,[0,n.itemSize[1]],"all"===e?"rigid":"push",e);var a=n.getExtent(),i=[0,n.itemSize[1]];this._dataInterval=[v(r[0],i,a,!0),v(r[1],i,a,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,a=[0,t.itemSize[1]],i=e?a:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,i,"inRange"),s=this._createBarVisual(n,n,a,"outOfRange");r.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(i,o)},_createBarVisual:function(e,t,n,r){var a={forceState:r,convertOpacityToAlpha:!0},i=this._makeColorGradient(e,a),o=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],s=this._createBarPoints(n,o);return{barColor:new p(0,0,0,1,i),barPoints:s,handlesColor:[i[0].color,i[i.length-1].color]}},_makeColorGradient:function(e,t){var n=100,r=[],a=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<n;i++){var o=e[0]+a*i;if(o>e[1])break;r.push({color:this.getControllerVisual(o,"color",t),offset:i/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new u.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,a=n.handleThumbs,i=n.handleLabels;y([0,1],function(o){var s=a[o];s.setStyle("fill",t.handlesColor[o]),s.position[1]=e[o];var l=u.applyTransform(n.handleLabelPoints[o],u.getTransform(s,this.group));i[o].setStyle({x:l[0],y:l[1],text:r.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",n.barGroup)})},this)}},_showIndicator:function(e,t,n,r){var a=this.visualMapModel,o=a.getExtent(),s=a.itemSize,l=[0,s[1]],c=v(e,o,l,!0),h=this._shapes,d=h.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",i(!!n,r,c,s[1]));var p={convertOpacityToAlpha:!0},f=this.getControllerVisual(e,"color",p);d.setStyle("fill",f);var g=u.applyTransform(h.indicatorLabelPoint,u.getTransform(d,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",h.barGroup),x=this._orient;m.setStyle({text:(n?n:"")+a.formatValueText(t),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);r[1]=x(_(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var a=[0,r[1]],i=n.getExtent();e=x(_(a[0],e),a[1]);var l=o(n,i,a),u=[e-l,e+l],c=v(e,a,i,!0),h=[v(u[0],a,i,!0),v(u[1],a,i,!0)];u[0]<a[0]&&(h[0]=-(1/0)),u[1]>a[1]&&(h[1]=1/0),t&&(h[0]===-(1/0)?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(t||s(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var m=g.compressBatches(d,p);this._dispatchHighDown("downplay",f.convertDataIndex(m[0])),this._dispatchHighDown("highlight",f.convertDataIndex(m[1]))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var r=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(r)){var a=r.getData(t.dataType),i=a.getDimension(n.getDataDimension(a)),o=a.get(i,t.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",f.convertDataIndex(e)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,r){var a=u.getTransform(t,r?null:this.group);return u[c.isArray(e)?"applyTransform":"transformDirection"](e,a,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});e.exports=S},function(e,t,n){var r=n(239),a=n(279),i=n(241),o=n(256),s=n(236),l=n(437);e.exports=s.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,n,r){return this.visualMapModel=e,e.get("show")===!1?void this.group.removeAll():void this.doRender.apply(this,arguments)},renderBackground:function(e){var t=this.visualMapModel,n=i.normalizeCssArray(t.get("padding")||0),r=e.getBoundingRect();e.add(new a.Rect({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:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,n){function a(e){return u[e]}function i(e,t){u[e]=t}n=n||{};var o=n.forceState,s=this.visualMapModel,u={};if("symbol"===t&&(u.symbol=s.get("itemSymbol")),"color"===t){var c=s.get("contentColor");u.color=c}var h=s.controllerVisuals[o||s.getValueState(e)],d=l.prepareVisualTypes(h);return r.each(d,function(r){var o=h[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",o=h.__alphaForOpacity),l.dependsOn(r,t)&&o&&o.applyVisual(e,a,i)}),u[t]},positionGroup:function(e){var t=this.visualMapModel,n=this.api;o.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:r.noop})},function(e,t,n){var r=n(239),a=n(256),i={getItemAlign:function(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},s="horizontal"===r.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?n[0]:r[u[d]];var p=[["x","width",3],["y","height",0]][s],f=a.getLayoutRect(h,o,r.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*o[p[1]]?0:1]},convertDataIndex:function(e){return r.each(e||[],function(t){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null)}),e}};e.exports=i},function(e,t,n){var r=n(236),a={type:"selectDataRange",event:"dataRangeSelected",update:"update"};r.registerAction(a,function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})})},function(e,t,n){n(236).registerPreprocessor(n(604)),n(605),n(606),n(615),n(616),n(613)},function(e,t,n){function r(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var a=n(608),i=n(239),o=n(437),s=n(609),l=n(242).reformIntervals,u=a.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetTargetSeries(),this.resetExtent();var n=this._mode=this._determineMode();c[this._mode].call(this),this._resetSelected(e,t);var r=this.option.categories;this.resetVisual(function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=i.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=i.map(this._pieceList,function(e){var e=i.clone(e);return"inRange"!==t&&(e.visual=null),e}))})},completeVisualOption:function(){function e(e,t,n){return e&&e[t]&&(i.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}var t=this.option,n={},r=o.listVisualTypes(),l=this.isCategory();i.each(t.pieces,function(e){i.each(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),i.each(n,function(n,r){var a=0;i.each(this.stateList,function(n){a|=e(t,n,r)||e(t.target,n,r)},this),!a&&i.each(this.stateList,function(e){(t[e]||(t[e]={}))[r]=s.get(r,"inRange"===e?"active":"inactive",l)})},this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n=this.option,r=this._pieceList,a=(t?n:e).selected||{};if(n.selected=a,i.each(r,function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)},this),"single"===n.selectedMode){var o=!1;i.each(r,function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(o?a[n]=!1:o=!0)},this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=i.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],a=n.getData();a.each(this.getDataDimension(a),function(t,n){var a=o.findPieceIndex(t,this._pieceList);a===e&&r.push(n)},!0,this),t.push({seriesId:n.id,dataIndex:r})},this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-(1/0)&&n[1]===1/0?0:(n[0]+n[1])/2}return t},getVisualMeta:function(e){function t(t,i){var o=a.getRepresentValue({interval:t});i||(i=a.getValueState(o));var s=e(o,i);t[0]===-(1/0)?r[0]=s:t[1]===1/0?r[1]=s:n.push({value:t[0],color:s},{value:t[1],color:s})}if(!this.isCategory()){var n=[],r=[],a=this,o=this._pieceList.slice();if(o.length){var s=o[0].interval[0];s!==-(1/0)&&o.unshift({interval:[-(1/0),s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}else o.push({interval:[-(1/0),1/0]});var l=-(1/0);return i.each(o,function(e){var n=e.interval;n&&(n[0]>l&&t([l,n[0]],"outOfRange"),t(n.slice()),l=n[1])},this),{stops:n,outerColors:r}}}}),c={splitNumber:function(){var e=this.option,t=this._pieceList,n=e.precision,r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var o=(r[1]-r[0])/a;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n);var s=0;e.minOpen&&t.push({index:s++,interval:[-(1/0),r[0]],close:[0,0]});for(var u=r[0],c=s+a;s<c;u+=o){var h=s===a-1?r[1]:u+o;t.push({index:s++,interval:[u,h],close:[1,1]})}e.maxOpen&&t.push({index:s++,interval:[r[1],1/0],close:[0,0]}),l(t),i.each(t,function(e){e.text=this.formatValueText(e.interval)},this)},categories:function(){var e=this.option;i.each(e.categories,function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})},this),r(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;i.each(e.pieces,function(e,n){i.isObject(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var a=r.value=e.value;r.interval=[a,a],r.close=[1,1]}else{for(var s=r.interval=[],l=r.close=[0,0],u=[1,0,1],c=[-(1/0),1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==s[d];f++)s[d]=e[p[f]],l[d]=u[f],h[d]=2===f;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-(1/0)&&(l[1]=0),__DEV__&&s[0]>s[1]&&console.warn("Piece "+n+"is illegal: "+s+" lower bound should not greater then uppper bound."),s[0]===s[1]&&l[0]&&l[1]&&(r.value=s[0])}r.visual=o.retrieveVisuals(e),t.push(r)},this),r(e,t),l(t),i.each(t,function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)},this)}};e.exports=u},function(e,t,n){var r=n(611),a=n(239),i=n(279),o=n(339),s=n(256),l=n(612),u=r.extend({type:"visualMap.piecewise",doRender:function(){function e(e){var o=e.piece,s=new i.Group;s.onclick=a.bind(this._onItemClick,this,o),this._enableHoverLink(s,e.indexInModelPieceList);var d=n.getRepresentValue(o);if(this._createItemSymbol(s,d,[0,0,h[0],h[1]]),f){var p=this.visualMapModel.getValueState(d);s.add(new i.Text({style:{x:"right"===c?-r:h[0]+r,y:h[1]/2,text:o.text,textVerticalAlign:"middle",textAlign:c,textFont:l,fill:u,opacity:"outOfRange"===p?.5:1}}))}t.add(s)}var t=this.group;t.removeAll();var n=this.visualMapModel,r=n.get("textGap"),o=n.textStyleModel,l=o.getFont(),u=o.getTextColor(),c=this._getItemAlign(),h=n.itemSize,d=this._getViewData(),p=d.endsText,f=a.retrieve(n.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],h,f,c),a.each(d.viewPieceList,e,this),p&&this._renderEndsText(t,p[1],h,f,c),s.box(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:l.convertDataIndex(n.findTargetDataIndices(t))})}e.on("mouseover",a.bind(n,this,"highlight")).on("mouseout",a.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return l.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,r,a){if(t){var o=new i.Group,s=this.visualMapModel.textStyleModel;o.add(new i.Text({style:{x:r?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:r?a:"center",text:t,textFont:s.getFont(),fill:s.getTextColor()}})),e.add(o)}},_getViewData:function(){var e=this.visualMapModel,t=a.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(o.createSymbol(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,r=a.clone(n.selected),i=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[i]=!0,a.each(r,function(e,t){r[t]=t===i})):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});e.exports=u},function(e,t,n){n(618),n(620),n(236).registerPreprocessor(function(e){e.markPoint=e.markPoint||{}})},function(e,t,n){e.exports=n(619).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}})},function(e,t,n){function r(e){a.defaultEmphasis(e.label,a.LABEL_OPTIONS)}var a=n(240),i=n(239),o=n(237),s=n(241),l=s.addCommas,u=s.encodeHTML,c=n(236).extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n,r){if(__DEV__&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(e,n),this.mergeOption(e,n,r.createdBySelf,!0)},isAnimationEnabled:function(){if(o.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t,n,a){var o=this.constructor,s=this.mainType+"Model";n||t.eachSeries(function(e){var n=e.get(this.mainType),l=e[s];return n&&n.data?(l?l.mergeOption(n,t,!0):(a&&r(n),i.each(n.data,function(e){e instanceof Array?(r(e[0]),r(e[1])):r(e)}),l=new o(n,this,t),i.extend(l,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),l.__hostSeries=e),void(e[s]=l)):void(e[s]=null)},this)},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),r=i.isArray(n)?i.map(n,l).join(", "):l(n),a=t.getName(e),o=u(this.name);return(null!=n||a)&&(o+="<br />"),a&&(o+=u(a),null!=n&&(o+=" : ")),null!=n&&(o+=u(r)),o},getData:function(){return this._data},setData:function(e){this._data=e}});i.mixin(c,a.dataFormatMixin),e.exports=c},function(e,t,n){function r(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i,o=e.getItemModel(a),l=s.parsePercent(o.get("x"),n.getWidth()),u=s.parsePercent(o.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(t.getMarkerPosition)i=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var c=e.get(r.dimensions[0],a),h=e.get(r.dimensions[1],a);i=r.dataToPoint([c,h])}}else i=[l,u];isNaN(l)||(i[0]=l),isNaN(u)||(i[1]=u),e.setItemLayout(a,i)})}function a(e,t,n){var r;r=e?o.map(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.coordDimToDataDim(e)[0])||{};return n.name=e,n}):[{name:"value",type:"float"}];var a=new l(r,n),i=o.map(n.get("data"),o.curry(u.dataTransform,t));return e&&(i=o.filter(i,o.curry(u.dataFilter,e))),a.initData(i,null,e?u.dimValueGetter:function(e){return e.value}),a}var i=n(351),o=n(239),s=n(242),l=n(333),u=n(621);n(622).extend({type:"markPoint",updateLayout:function(e,t,n){t.eachSeries(function(e){var t=e.markPointModel;t&&(r(t.getData(),e,n),this.markerGroupMap[e.name].updateLayout(t))},this)},renderSeries:function(e,t,n,o){var s=e.coordinateSystem,l=e.name,u=e.getData(),c=this.markerGroupMap,h=c[l];h||(h=c[l]=new i);var d=a(s,e,t);t.setData(d),r(t.getData(),e,o),d.each(function(e){var n=d.getItemModel(e),r=n.getShallow("symbolSize");"function"==typeof r&&(r=r(t.getRawValue(e),t.getDataParams(e))),d.setItemVisual(e,{symbolSize:r,color:n.get("itemStyle.normal.color")||u.getVisual("color"),symbol:n.getShallow("symbol")})}),h.updateData(d),this.group.add(h.group),d.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||e.get("silent")}})},function(e,t,n){function r(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function a(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function i(e,t,n){var r=-1;do r=Math.max(l.getPrecision(e.get(t,n)),r),e=e.stackedOn;while(e);return r}function o(e,t,n,r,a,o){var s=[],l=m(t,r,e),u=t.indicesOfNearest(r,l,!0)[0];s[a]=t.get(n,u,!0),s[o]=t.get(r,u,!0);var c=i(t,r,u);return c>=0&&(s[o]=+s[o].toFixed(c)),s}var s=n(239),l=n(242),u=s.indexOf,c=s.curry,h={min:c(o,"min"),max:c(o,"max"),average:c(o,"average")},d=function(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!a(t)&&!s.isArray(t.coord)&&r){var i=r.dimensions,o=p(t,n,r,e);if(t=s.clone(t),t.type&&h[t.type]&&o.baseAxis&&o.valueAxis){var l=u(i,o.baseAxis.dim),c=u(i,o.valueAxis.dim);t.coord=h[t.type](n,o.baseDataDim,o.valueDataDim,l,c),t.value=t.coord[c]}else{for(var d=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],f=0;f<2;f++)if(h[d[f]]){var g=e.coordDimToDataDim(i[f])[0];d[f]=m(n,g,d[f])}t.coord=d}}return t},p=function(e,t,n,r){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(r.dataDimToCoordDim(a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=r.coordDimToDataDim(a.baseAxis.dim)[0]):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=r.coordDimToDataDim(a.baseAxis.dim)[0],a.valueDataDim=r.coordDimToDataDim(a.valueAxis.dim)[0]),a},f=function(e,t){return!(e&&e.containData&&t.coord&&!r(t))||e.containData(t.coord)},g=function(e,t,n,r){return r<2?e.coord&&e.coord[r]:e.value},m=function(e,t,n){if("average"===n){var r=0,a=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,a++)},!0),r/a}return e.getDataExtent(t,!0)["max"===n?1:0]};e.exports={dataTransform:d,dataFilter:f,dimValueGetter:g,getAxisInfo:p,numCalculate:m}},function(e,t,n){e.exports=n(236).extendComponentView({type:"marker",init:function(){this.markerGroupMap={}},render:function(e,t,n){var r=this.markerGroupMap;for(var a in r)r.hasOwnProperty(a)&&(r[a].__keep=!1);var i=this.type+"Model";t.eachSeries(function(e){var r=e[i];r&&this.renderSeries(e,r,t,n)},this);for(var a in r)r.hasOwnProperty(a)&&!r[a].__keep&&this.group.remove(r[a].group)},renderSeries:function(){}})},function(e,t,n){n(624),n(625),n(236).registerPreprocessor(function(e){e.markLine=e.markLine||{}})},function(e,t,n){e.exports=n(619).extend({type:"markLine",defaultOption:{
|
|
61
|
-
zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}})},function(e,t,n){function r(e){return!isNaN(e)&&!isFinite(e)}function a(e,t,n,a){var i=1-e,o=a.dimensions[e];return r(t[i])&&r(n[i])&&t[e]===n[e]&&a.getAxis(o).containData(t[e])}function i(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(a(1,n,r,e)||a(0,n,r,e)))return!0}return h.dataFilter(e,t[0])&&h.dataFilter(e,t[1])}function o(e,t,n,a,i){var o,s=a.coordinateSystem,l=e.getItemModel(t),u=c.parsePercent(l.get("x"),i.getWidth()),h=c.parsePercent(l.get("y"),i.getHeight());if(isNaN(u)||isNaN(h)){if(a.getMarkerPosition)o=a.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,p=e.get(d[0],t),f=e.get(d[1],t);o=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y"),d=s.dimensions;r(e.get(d[0],t))?o[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):r(e.get(d[1],t))&&(o[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(u)||(o[0]=u),isNaN(h)||(o[1]=h)}else o=[u,h];e.setItemLayout(t,o)}function s(e,t,n){var r;r=e?l.map(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.coordDimToDataDim(e)[0])||{};return n.name=e,n}):[{name:"value",type:"float"}];var a=new u(r,n),o=new u(r,n),s=new u([],n),c=l.map(n.get("data"),l.curry(p,t,e,n));e&&(c=l.filter(c,l.curry(i,e)));var d=e?h.dimValueGetter:function(e){return e.value};return a.initData(l.map(c,function(e){return e[0]}),null,d),o.initData(l.map(c,function(e){return e[1]}),null,d),s.initData(l.map(c,function(e){return e[2]})),s.hasItemOption=!0,{from:a,to:o,line:s}}var l=n(239),u=n(333),c=n(242),h=n(621),d=n(444),p=function(e,t,n,r){var a=e.getData(),i=r.type;if(!l.isArray(r)&&("min"===i||"max"===i||"average"===i||null!=r.xAxis||null!=r.yAxis)){var o,s,u;if(null!=r.yAxis||null!=r.xAxis)s=null!=r.yAxis?"y":"x",o=t.getAxis(s),u=l.retrieve(r.yAxis,r.xAxis);else{var c=h.getAxisInfo(r,a,t,e);s=c.valueDataDim,o=c.valueAxis,u=h.numCalculate(a,s,i)}var d="x"===s?0:1,p=1-d,f=l.clone(r),g={};f.type=null,f.coord=[],g.coord=[],f.coord[p]=-(1/0),g.coord[p]=1/0;var m=n.get("precision");m>=0&&"number"==typeof u&&(u=+u.toFixed(m)),f.coord[d]=g.coord[d]=u,r=[f,g,{type:i,valueIndex:r.valueIndex,value:u}]}return r=[h.dataTransform(e,r[0]),h.dataTransform(e,r[1]),l.extend({},r[2])],r[2].type=r[2].type||"",l.merge(r[2],r[0]),l.merge(r[2],r[1]),r};n(622).extend({type:"markLine",updateLayout:function(e,t,n){t.eachSeries(function(e){var t=e.markLineModel;if(t){var r=t.getData(),a=t.__from,i=t.__to;a.each(function(t){o(a,t,!0,e,n),o(i,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[a.getItemLayout(e),i.getItemLayout(e)])}),this.markerGroupMap[e.name].updateLayout()}},this)},renderSeries:function(e,t,n,r){function a(t,n,a){var i=t.getItemModel(n);o(t,n,a,e,r),t.setItemVisual(n,{symbolSize:i.get("symbolSize")||x[a?0:1],symbol:i.get("symbol",!0)||y[a?0:1],color:i.get("itemStyle.normal.color")||c.getVisual("color")})}var i=e.coordinateSystem,u=e.name,c=e.getData(),h=this.markerGroupMap,p=h[u];p||(p=h[u]=new d),this.group.add(p.group);var f=s(i,e,t),g=f.from,m=f.to,v=f.line;t.__from=g,t.__to=m,t.setData(v);var y=t.get("symbol"),x=t.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"==typeof x&&(x=[x,x]),f.from.each(function(e){a(g,e,!0),a(m,e,!1)}),v.each(function(e){var t=v.getItemModel(e).get("lineStyle.normal.color");v.setItemVisual(e,{color:t||g.getItemVisual(e,"color")}),v.setItemLayout(e,[g.getItemLayout(e),m.getItemLayout(e)]),v.setItemVisual(e,{fromSymbolSize:g.getItemVisual(e,"symbolSize"),fromSymbol:g.getItemVisual(e,"symbol"),toSymbolSize:m.getItemVisual(e,"symbolSize"),toSymbol:m.getItemVisual(e,"symbol")})}),p.updateData(v),f.line.eachItemGraphicEl(function(e,n){e.traverse(function(e){e.dataModel=t})}),p.__keep=!0,p.group.silent=t.get("silent")||e.get("silent")}})},function(e,t,n){n(627),n(628),n(236).registerPreprocessor(function(e){e.markArea=e.markArea||{}})},function(e,t,n){e.exports=n(619).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemStyle:{normal:{borderWidth:0}}}})},function(e,t,n){function r(e){return!isNaN(e)&&!isFinite(e)}function a(e,t,n,a){var i=1-e;return r(t[i])&&r(n[i])}function i(e,t){var n=t.coord[0],r=t.coord[1];return!("cartesian2d"!==e.type||!n||!r||!a(1,n,r,e)&&!a(0,n,r,e))||(p.dataFilter(e,{coord:n,x:t.x0,y:t.y0})||p.dataFilter(e,{coord:r,x:t.x1,y:t.y1}))}function o(e,t,n,a,i){var o,s=a.coordinateSystem,l=e.getItemModel(t),u=c.parsePercent(l.get(n[0]),i.getWidth()),h=c.parsePercent(l.get(n[1]),i.getHeight());if(isNaN(u)||isNaN(h)){if(a.getMarkerPosition)o=a.getMarkerPosition(e.getValues(n,t));else{var d=e.get(n[0],t),p=e.get(n[1],t);o=s.dataToPoint([d,p],!0)}if("cartesian2d"===s.type){var f=s.getAxis("x"),g=s.getAxis("y"),d=e.get(n[0],t),p=e.get(n[1],t);r(d)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):r(p)&&(o[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(h)||(o[1]=h)}else o=[u,h];return o}function s(e,t,n){var r,a,o=["x0","y0","x1","y1"];e?(r=l.map(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.coordDimToDataDim(e)[0])||{};return n.name=e,n}),a=new u(l.map(o,function(e,t){return{name:e,type:r[t%2].type}}),n)):(r=[{name:"value",type:"float"}],a=new u(r,n));var s=l.map(n.get("data"),l.curry(f,t,e,n));e&&(s=l.filter(s,l.curry(i,e)));var c=e?function(e,t,n,r){return e.coord[Math.floor(r/2)][r%2]}:function(e){return e.value};return a.initData(s,null,c),a.hasItemOption=!0,a}var l=n(239),u=n(333),c=n(242),h=n(279),d=n(274),p=n(621),f=function(e,t,n,r){var a=p.dataTransform(e,r[0]),i=p.dataTransform(e,r[1]),o=l.retrieve,s=a.coord,u=i.coord;s[0]=o(s[0],-(1/0)),s[1]=o(s[1],-(1/0)),u[0]=o(u[0],1/0),u[1]=o(u[1],1/0);var c=l.mergeAll([{},a,i]);return c.coord=[a.coord,i.coord],c.x0=a.x,c.y0=a.y,c.x1=i.x,c.y1=i.y,c},g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];n(622).extend({type:"markArea",updateLayout:function(e,t,n){t.eachSeries(function(e){var t=e.markAreaModel;if(t){var r=t.getData();r.each(function(t){var a=l.map(g,function(a){return o(r,t,a,e,n)});r.setItemLayout(t,a);var i=r.getItemGraphicEl(t);i.setShape("points",a)})}},this)},renderSeries:function(e,t,n,r){var a=e.coordinateSystem,i=e.name,u=e.getData(),c=this.markerGroupMap,p=c[i];p||(p=c[i]={group:new h.Group}),this.group.add(p.group),p.__keep=!0;var f=s(a,e,t);t.setData(f),f.each(function(t){f.setItemLayout(t,l.map(g,function(n){return o(f,t,n,e,r)})),f.setItemVisual(t,{color:u.getVisual("color")})}),f.diff(p.__data).add(function(e){var t=new h.Polygon({shape:{points:f.getItemLayout(e)}});f.setItemGraphicEl(e,t),p.group.add(t)}).update(function(e,n){var r=p.__data.getItemGraphicEl(n);h.updateProps(r,{shape:{points:f.getItemLayout(e)}},t,e),p.group.add(r),f.setItemGraphicEl(e,r)}).remove(function(e){var t=p.__data.getItemGraphicEl(e);p.group.remove(t)}).execute(),f.eachItemGraphicEl(function(e,n){var r=f.getItemModel(n),a=r.getModel("label.normal"),i=r.getModel("label.emphasis"),o=f.getItemVisual(n,"color");e.useStyle(l.defaults(r.getModel("itemStyle.normal").getItemStyle(),{fill:d.modifyAlpha(o,.4),stroke:o})),e.hoverStyle=r.getModel("itemStyle.normal").getItemStyle();var s=f.getName(n)||"",u=o||e.style.fill;a.getShallow("show")?(h.setText(e.style,a,u),e.style.text=l.retrieve(t.getFormattedLabel(n,"normal"),s)):e.style.text="",i.getShallow("show")?(h.setText(e.hoverStyle,i,u),e.hoverStyle.text=l.retrieve(t.getFormattedLabel(n,"emphasis"),s)):e.hoverStyle.text="",h.setHoverStyle(e,{}),e.dataModel=t}),p.__data=f,p.group.silent=t.get("silent")||e.get("silent")}})},function(e,t,n){var r=n(236);r.registerPreprocessor(n(630)),n(631),n(632),n(633),n(635)},function(e,t,n){function r(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),a(e),i(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});i(r,"position")||(r.position=e.controlPosition),"none"!==r.position||i(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}o.each(e.data||[],function(e){o.isObject(e)&&!o.isArray(e)&&(!i(e,"value")&&i(e,"name")&&(e.value=e.name),a(e))})}function a(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),s={normal:1,emphasis:1};o.each(r,function(e,t){s[t]||i(a,t)||(a[t]=e)}),n.label&&!i(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function i(e,t){return e.hasOwnProperty(t)}var o=n(239);e.exports=function(e){var t=e&&e.timeline;o.isArray(t)||(t=t?[t]:[]),o.each(t,function(e){e&&r(e)})}},function(e,t,n){n(254).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(e,t,n){var r=n(236),a=n(239);r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),a.defaults({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)})},function(e,t,n){var r=n(634),a=n(239),i=n(240),o=r.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});a.mixin(o,i.dataFormatMixin),e.exports=o},function(e,t,n){var r=n(254),a=n(333),i=n(239),o=n(240),s=r.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,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:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[];if("category"===n){var s=[];i.each(t,function(e,t){var n,a=o.getDataItemValue(e);i.isObject(e)?(n=i.clone(e),n.value=t):n=t,s.push(n),i.isString(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")}),t=s}var l={category:"ordinal",time:"time"}[n]||"number",u=this._data=new a([{name:"value",type:l}],this);u.initData(t,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});e.exports=s},function(e,t,n){function r(e,t){return u.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function a(e,t,n,r){var a=l.makePath(e.get(t).replace(/^path:\/\//,""),s.clone(r||{}),new f(n[0],n[1],n[2],n[3]),"center");return a}function i(e,t,n,r,a,i){var o=t.get("color");if(a)a.setColor(o),n.add(a),i&&i.onUpdate(a);else{var l=e.get("symbol");a=d.createSymbol(l,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),i&&i.onCreate(a)}var u=t.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(u),r=s.merge({rectHover:!0,z2:100},r,!0);var c=e.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,r.scale=c;var h=e.get("symbolOffset");if(h){var p=r.position=r.position||[0,0];p[0]+=m.parsePercent(h[0],c[0]),p[1]+=m.parsePercent(h[1],c[1])}var f=e.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function o(e,t,n,r,a){if(!e.dragging){var i=r.getModel("checkpointStyle"),o=n.dataToCoord(r.getData().get(["value"],t));a||!i.get("animation",!0)?e.attr({position:[o,0]}):(e.stopAnimation(!0),e.animateTo({position:[o,0]},i.get("animationDuration",!0),i.get("animationEasing",!0)))}}var s=n(239),l=n(279),u=n(256),c=n(636),h=n(637),d=n(339),p=n(340),f=n(244),g=n(246),m=n(242),v=n(241),y=v.encodeHTML,x=s.bind,_=s.each,b=Math.PI;e.exports=c.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,r){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,n),i=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,e);e.formatTooltip=function(e){return y(s.scale.getLabel(e))},_(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](a,i,s,e)},this),this._renderAxisLabel(a,o,s,e),this._position(a,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.normal.position"),a=e.get("orient"),i=r(e,t);null==n||"auto"===n?n="horizontal"===a?i.y+i.height/2<t.getHeight()/2?"-":"+":i.x+i.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][n]);var o={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:b/2},u="vertical"===a?i.height:i.width,c=e.getModel("controlStyle"),h=c.get("show"),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,f=d+p,g=e.get("label.normal.rotate")||0;g=g*b/180;var m,v,y,x,_=c.get("position",!0),h=c.get("show",!0),w=h&&c.get("showPlayBtn",!0),S=h&&c.get("showPrevBtn",!0),M=h&&c.get("showNextBtn",!0),C=0,T=u;return"left"===_||"bottom"===_?(w&&(m=[0,0],C+=f),S&&(v=[C,0],C+=f),M&&(y=[T-d,0],T-=f)):(w&&(m=[T-d,0],T-=f),S&&(v=[0,0],C+=f),M&&(y=[T-d,0],T-=f)),x=[C,T],e.get("inverse")&&x.reverse(),{viewRect:i,mainLength:u,orient:a,rotation:l[a],labelRotation:g,labelPosOpt:n,labelAlign:o[a],labelBaseline:s[a],playPosition:m,prevBtnPosition:v,nextBtnPosition:y,axisExtent:x,controlSize:d,controlGap:p}},_position:function(e,t){function n(e){var t=e.position;e.origin=[h[0][0]-t[0],h[1][0]-t[1]]}function r(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function a(e,t,n,r,a){e[r]+=n[r][a]-t[r][a]}var i=this._mainGroup,o=this._labelGroup,s=e.viewRect;if("vertical"===e.orient){var l=g.create(),u=s.x,c=s.y+s.height;g.translate(l,l,[-u,-c]),g.rotate(l,l,-b/2),g.translate(l,l,[u,c]),s=s.clone(),s.applyTransform(l)}var h=r(s),d=r(i.getBoundingRect()),p=r(o.getBoundingRect()),f=i.position,m=o.position;m[0]=f[0]=h[0][0];var v=e.labelPosOpt;if(isNaN(v)){var y="+"===v?0:1;a(f,d,h,1,y),a(m,p,h,1,1-y)}else{var y=v>=0?0:1;a(f,d,h,1,y),m[1]=f[1]+v}i.attr("position",f),o.attr("position",m),i.rotation=o.rotation=e.rotation,n(i),n(o)},_createAxis:function(e,t){var n=t.getData(),r=t.get("axisType"),a=p.createScaleByModel(t,r),i=n.getDataExtent("value");a.setExtent(i[0],i[1]),this._customizeScale(a,n),a.niceTicks();var o=new h("value",a,e.axisExtent,r);return o.model=t,o},_customizeScale:function(e,t){e.getTicks=function(){return t.mapArray(["value"],function(e){return e})},e.getTicksLabels=function(){return s.map(this.getTicks(),e.getLabel,e)}},_createGroup:function(e){var t=this["_"+e]=new l.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,r){var a=n.getExtent();r.get("lineStyle.show")&&t.add(new l.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:s.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,r){var a=r.getData(),o=n.scale.getTicks();_(o,function(e,o){var s=n.dataToCoord(e),u=a.getItemModel(o),c=u.getModel("itemStyle.normal"),h=u.getModel("itemStyle.emphasis"),d={position:[s,0],onclick:x(this._changeTimeline,this,o)},p=i(u,c,t,d);l.setHoverStyle(p,h.getItemStyle()),u.get("tooltip")?(p.dataIndex=o,p.dataModel=r):p.dataIndex=p.dataModel=null},this)},_renderAxisLabel:function(e,t,n,r){var a=r.getModel("label.normal");if(a.get("show")){var i=r.getData(),o=n.scale.getTicks(),s=p.getFormattedLabels(n,a.get("formatter")),u=n.getLabelInterval();_(o,function(r,a){if(!n.isLabelIgnored(a,u)){var o=i.getItemModel(a),c=o.getModel("label.normal.textStyle"),h=o.getModel("label.emphasis.textStyle"),d=n.dataToCoord(r),p=new l.Text({style:{text:s[a],textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline,textFont:c.getFont(),fill:c.getTextColor()},position:[d,0],rotation:e.labelRotation-e.rotation,onclick:x(this._changeTimeline,this,a),silent:!1});t.add(p),l.setHoverStyle(p,h.getItemStyle())}},this)}},_renderControl:function(e,t,n,r){function i(e,n,i,d){if(e){var p={position:e,origin:[o/2,0],rotation:d?-s:0,rectHover:!0,style:u,onclick:i},f=a(r,n,h,p);t.add(f),l.setHoverStyle(f,c)}}var o=e.controlSize,s=e.rotation,u=r.getModel("controlStyle.normal").getItemStyle(),c=r.getModel("controlStyle.emphasis").getItemStyle(),h=[0,-o/2,o,o],d=r.getPlayState(),p=r.get("inverse",!0);i(e.nextBtnPosition,"controlStyle.nextIcon",x(this._changeTimeline,this,p?"-":"+")),i(e.prevBtnPosition,"controlStyle.prevIcon",x(this._changeTimeline,this,p?"+":"-")),i(e.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),x(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(e,t,n,r){var a=r.getData(),s=r.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(e){e.draggable=!0,e.drift=x(u._handlePointerDrag,u),e.ondragend=x(u._handlePointerDragend,u),o(e,s,n,r,!0)},onUpdate:function(e){o(e,s,n,r)}};this._currentPointer=i(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,a=m.asc(r.getExtent().slice());n>a[1]&&(n=a[1]),n<a[0]&&(n=a[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var i=this._findNearestTick(n),o=this.model;(t||i!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(i)},_doPlayStop:function(){function e(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(x(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return l.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,n=this.model.getData(),r=1/0,a=this._axis;return n.each(["value"],function(n,i){var o=a.dataToCoord(n),s=Math.abs(o-e);s<r&&(r=s,t=i)}),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}})},function(e,t,n){var r=n(264);e.exports=r.extend({type:"timeline"})},function(e,t,n){var r=n(239),a=n(335),i=n(340),o=function(e,t,n,r){a.call(this,e,t,n),this.type=r||"value",this._autoLabelInterval,this.model=null};o.prototype={constructor:o,getLabelInterval:function(){var e=this.model,t=e.getModel("label.normal"),n=t.get("interval");if(null!=n&&"auto"!=n)return n;var n=this._autoLabelInterval;return n||(n=this._autoLabelInterval=i.getAxisLabelInterval(r.map(this.scale.getTicks(),this.dataToCoord,this),i.getFormattedLabels(this,t.get("formatter")),t.getModel("textStyle").getFont(),"horizontal"===e.get("orient"))),n},isLabelIgnored:function(e){if("category"===this.type){var t=this.getLabelInterval();return"function"==typeof t&&!t(e,this.scale.getLabel(e))||e%(t+1)}}},r.inherits(o,a),e.exports=o},function(e,t,n){n(639),n(640),n(641),n(642),n(643),n(644),n(649)},function(e,t,n){var r=n(583),a=n(239),i=n(236).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(e){i.superApply(this,"mergeDefaultAndTheme",arguments),a.each(this.option.feature,function(e,t){var n=r.get(t);n&&a.merge(e,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});e.exports=i},function(e,t,n){(function(t){function r(e){return 0===e.indexOf("my")}var a=n(583),i=n(239),o=n(279),s=n(247),l=n(334),u=n(552),c=n(243);e.exports=n(236).extendComponentView({type:"toolbox",render:function(e,t,n,h){function d(i,o){var l,u=y[i],c=y[o],d=m[u],f=new s(d,e,e.ecModel);if(u&&!c){if(r(u))l={model:f,onclick:f.option.onclick,featureName:u};else{var g=a.get(u);if(!g)return;l=new g(f,t,n)}v[u]=l}else{if(l=v[c],!l)return;l.model=f,l.ecModel=t,l.api=n}return!u&&c?void(l.dispose&&l.dispose(t,n)):!f.get("show")||l.unusable?void(l.remove&&l.remove(t,n)):(p(f,l,u),f.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&r[e].trigger(t)},void(l.render&&l.render(f,t,n,h)))}function p(r,a,s){var l=r.getModel("iconStyle"),u=a.getIcons?a.getIcons():r.get("icon"),c=r.get("title")||{};if("string"==typeof u){var h=u,d=c;u={},c={},u[s]=h,c[s]=d}var p=r.iconPaths={};i.each(u,function(s,u){var h=l.getModel("normal").getItemStyle(),d=l.getModel("emphasis").getItemStyle(),m={x:-g/2,y:-g/2,width:g,height:g},v=0===s.indexOf("image://")?(m.image=s.slice(8),new o.Image({style:m})):o.makePath(s.replace("path://",""),{style:h,hoverStyle:d,rectHover:!0},m,"center");o.setHoverStyle(v),e.get("showTitle")&&(v.__title=c[u],v.on("mouseover",function(){var e=l.getModel("emphasis").getItemStyle();v.setStyle({text:c[u],textPosition:e.textPosition||"bottom",textFill:e.fill||e.stroke||"#000",textAlign:e.textAlign||"center"})}).on("mouseout",function(){v.setStyle({textFill:null})})),v.trigger(r.get("iconStatus."+u)||"normal"),f.add(v),v.on("click",i.bind(a.onclick,a,t,n,u)),p[u]=v})}var f=this.group;if(f.removeAll(),e.get("show")){var g=+e.get("itemSize"),m=e.get("feature")||{},v=this._features||(this._features={}),y=[];i.each(m,function(e,t){y.push(t)}),new l(this._featureNames||[],y).add(d).update(d).remove(i.curry(d,null)).execute(),this._featureNames=y,u.layout(f,e,n),u.addBackground(f,e),f.eachChild(function(e){var t=e.__title,r=e.hoverStyle;if(r&&t){var a=c.getBoundingRect(t,r.font),i=e.position[0]+f.position[0],o=e.position[1]+f.position[1]+g,s=!1;o+a.height>n.getHeight()&&(r.textPosition="top",s=!0);var l=s?-5-a.height:g+8;i+a.width/2>n.getWidth()?(r.textPosition=["100%",l],r.textAlign="right"):i-a.width/2<0&&(r.textPosition=[0,l],r.textAlign="left")}})}},updateView:function(e,t,n,r){i.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,n,r)})},updateLayout:function(e,t,n,r){i.each(this._features,function(e){e.updateLayout&&e.updateLayout(e.model,t,n,r)})},remove:function(e,t){i.each(this._features,function(n){n.remove&&n.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){i.each(this._features,function(n){n.dispose&&n.dispose(e,t)})}})}).call(t,n(112))},function(e,t,n){function r(e){this.model=e}var a=n(237);r.defaultOption={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:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},r.prototype.unusable=!a.canvasSupported;var i=r.prototype;i.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i=document.createElement("a"),o=n.get("type",!0)||"png";i.download=r+"."+o,i.target="_blank";var s=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(i.href=s,"function"!=typeof MouseEvent||a.browser.ie||a.browser.edge){var l=n.get("lang"),u='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',c=window.open();c.document.write(u)}else{var h=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});i.dispatchEvent(h)}},n(583).register("saveAsImage",r),e.exports=r},function(e,t,n){"use strict";function r(e){this.model=e}var a=n(239);r.defaultOption={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",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var i=r.prototype;i.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return a.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n};var o={line:function(e,t,n,r){if("bar"===e)return a.merge({id:t,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(e,t,n,r){if("line"===e)return a.merge({id:t,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(e,t,n,r){if("line"===e||"bar"===e)return a.merge({id:t,stack:"__ec_magicType_stack__"},r.get("option.stack")||{},!0)},tiled:function(e,t,n,r){if("line"===e||"bar"===e)return a.merge({id:t,stack:""},r.get("option.tiled")||{},!0)}},s=[["line","bar"],["stack","tiled"]];i.onclick=function(e,t,n){var r=this.model,i=r.get("seriesIndex."+n);if(o[n]){var l={series:[]},u=function(t){var i=t.subType,s=t.id,u=o[n](i,s,t,r);u&&(a.defaults(u,t.option),l.series.push(u));var c=t.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var h=c.getAxesByScale("ordinal")[0];if(h){var d=h.dim,p=d+"Axis",f=e.queryComponents({mainType:p,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],g=f.componentIndex;l[p]=l[p]||[];for(var m=0;m<=g;m++)l[p][g]=l[p][g]||{};l[p][g].boundaryGap="bar"===n}}};a.each(s,function(e){a.indexOf(e,n)>=0&&a.each(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},u),t.dispatchAction({type:"changeMagicType",currentType:n,newOption:l})}};var l=n(236);l.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),n(583).register("magicType",r),e.exports=r},function(e,t,n){function r(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)n.push(e);else{var i=a.getBaseAxis();if("category"===i.type){var o=i.dim+"_"+i.index;t[o]||(t[o]={categoryAxis:i,valueAxis:a.getOtherAxis(i),series:[]},r.push({axisDim:i.dim,axisIndex:i.index})),t[o].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function a(e){var t=[];return f.each(e,function(e,n){var r=e.categoryAxis,a=e.valueAxis,i=a.dim,o=[" "].concat(f.map(e.series,function(e){return e.name})),s=[r.model.getCategories()];f.each(e.series,function(e){s.push(e.getRawData().mapArray(i,function(e){return e}))});for(var l=[o.join(v)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(v))}t.push(l.join("\n"))}),t.join("\n\n"+m+"\n\n")}function i(e){return f.map(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,a=arguments[e-1],i=t.getName(a),o=0;o<e-1;o++)r[o]=arguments[o];n.push((i?i+v:"")+r.join(v))}),n.join("\n")}).join("\n\n"+m+"\n\n")}function o(e){var t=r(e);return{value:f.filter([a(t.seriesGroupByCategoryAxis),i(t.other)],function(e){return e.replace(/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:t.meta}}function s(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(v)>=0)return!0}function u(e){for(var t=e.split(/\n+/g),n=s(t.shift()).split(y),r=[],a=f.map(n,function(e){return{name:e,data:[]}}),i=0;i<t.length;i++){var o=s(t[i]).split(y);r.push(o.shift());for(var l=0;l<o.length;l++)a[l]&&(a[l].data[i]=o[l])}return{series:a,categories:r}}function c(e){for(var t=e.split(/\n+/g),n=s(t.shift()),r=[],a=0;a<t.length;a++){var i,o=s(t[a]).split(y),l="",u=!1;isNaN(o[0])?(u=!0,l=o[0],o=o.slice(1),r[a]={name:l,value:[]},i=r[a].value):i=r[a]=[];for(var c=0;c<o.length;c++)i.push(+o[c]);1===i.length&&(u?r[a].value=i[0]:r[a]=i[0])}return{name:n,data:r}}function h(e,t){var n=e.split(new RegExp("\n*"+m+"\n*","g")),r={series:[]};return f.each(n,function(e,n){if(l(e)){var a=u(e),i=t[n],o=i.axisDim+"Axis";i&&(r[o]=r[o]||[],r[o][i.axisIndex]={data:a.categories},r.series=r.series.concat(a.series))}else{var a=c(e);r.series.push(a)}}),r}function d(e){this._dom=null,this.model=e}function p(e,t){return f.map(e,function(e,n){var r=t&&t[n];return f.isObject(r)&&!f.isArray(r)?(f.isObject(e)&&!f.isArray(e)&&(e=e.value),f.defaults({value:e},r)):e})}var f=n(239),g=n(323),m=new Array(60).join("-"),v="\t",y=new RegExp("["+v+"]+","g");
|
|
62
|
-
d.defaultOption={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:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d.prototype.onclick=function(e,t){function n(){r.removeChild(i),M._dom=null}var r=t.getDom(),a=this.model;this._dom&&r.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",i.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var d=a.get("optionToContent"),p=a.get("contentToOption"),m=o(e);if("function"==typeof d){var y=d(t.getOption());"string"==typeof y?u.innerHTML=y:f.isDom(y)&&u.appendChild(y)}else u.appendChild(c),c.readOnly=a.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=a.get("textColor"),c.style.borderColor=a.get("textareaBorderColor"),c.style.backgroundColor=a.get("textareaColor"),c.value=m.value;var x=m.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),S=document.createElement("div");b+=";background-color:"+a.get("buttonColor"),b+=";color:"+a.get("buttonTextColor");var M=this;g.addEventListener(w,"click",n),g.addEventListener(S,"click",function(){var e;try{e="function"==typeof p?p(u,t.getOption()):h(c.value,x)}catch(e){throw n(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),n()}),w.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=b,w.style.cssText=b,!a.get("readOnly")&&_.appendChild(S),_.appendChild(w),g.addEventListener(c,"keydown",function(e){if(9===(e.keyCode||e.which)){var t=this.value,n=this.selectionStart,r=this.selectionEnd;this.value=t.substring(0,n)+v+t.substring(r),this.selectionStart=this.selectionEnd=n+1,g.stop(e)}}),i.appendChild(s),i.appendChild(u),i.appendChild(_),u.style.height=r.clientHeight-80+"px",r.appendChild(i),this._dom=i},d.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},d.prototype.dispose=function(e,t){this.remove(e,t)},n(583).register("dataView",d),n(236).registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];f.each(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(r){var a=r.get("data");n.push({name:e.name,data:p(e.data,a)})}else n.push(f.extend({type:"scatter"},e))}),t.mergeOption(f.defaults({series:n},e.newOption))}),e.exports=d},function(e,t,n){"use strict";function r(e,t,n){(this._brushController=new l(n.getZr())).on("brush",s.bind(this._onBrush,this)).mount(),this._isZoomActive}function a(e){var t={};return s.each(["xAxisIndex","yAxisIndex"],function(n){t[n]=e[n],null==t[n]&&(t[n]="all"),(t[n]===!1||"none"===t[n])&&(t[n]=[])}),t}function i(e,t){e.setIconStatus("back",c.count(t)>1?"emphasis":"normal")}function o(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var s=new u(a(e.option),t,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"})).enableBrush(!!o&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var s=n(239),l=n(479),u=n(578),c=n(645),h=s.each;n(646);var d="\0_ec_\0toolbox-dataZoom_";r.defaultOption={show:!0,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:{zoom:"区域缩放",back:"区域缩放还原"}};var p=r.prototype;p.render=function(e,t,n,r){this.model=e,this.ecModel=t,this.api=n,o(e,t,this,r,n),i(e,t)},p.onclick=function(e,t,n){f[n].call(this)},p.remove=function(e,t){this._brushController.unmount()},p.dispose=function(e,t){this._brushController.dispose()};var f={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}};p._onBrush=function(e,t){function n(e,t,n){var a=r(e,t.getAxis(e).model,o);a&&(i[a.id]={dataZoomId:a.id,startValue:n[0],endValue:n[1]})}function r(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){var a=n.getAxisModel(e,t.componentIndex);a&&(r=n)}),r}if(t.isEnd&&e.length){var i={},o=this.ecModel;this._brushController.updateCovers([]);var s=new u(a(this.model.option),o,{include:["grid"]});s.matchOutputRanges(e,o,function(e,t,r){if("cartesian2d"===r.type){var a=e.brushType;"rect"===a?(n("x",r,t[0]),n("y",r,t[1])):n({lineX:"x",lineY:"y"}[a],r,t)}}),c.push(o,i),this._dispatchZoomAction(i)}},p._dispatchZoomAction=function(e){var t=[];h(e,function(e,n){t.push(s.clone(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},n(583).register("dataZoom",r),n(236).registerPreprocessor(function(e){function t(e,t){if(t){var a=e+"Index",i=t[a];null==i||"all"==i||s.isArray(i)||(i=i===!1||"none"===i?[]:[i]),n(e,function(t,n){if(null==i||"all"==i||s.indexOf(i,n)!==-1){var o={type:"select",$fromToolbox:!0,id:d+e+n};o[a]=n,r.push(o)}})}}function n(t,n){var r=e[t];s.isArray(r)||(r=r?[r]:[]),h(r,n)}if(e){var r=e.dataZoom||(e.dataZoom=[]);s.isArray(r)||(e.dataZoom=r=[r]);var a=e.toolbox;if(a&&(s.isArray(a)&&(a=a[0]),a&&a.feature)){var i=a.feature.dataZoom;t("xAxis",i),t("yAxis",i)}}}),e.exports=r},function(e,t,n){function r(e){var t=e[o];return t||(t=e[o]=[{}]),t}var a=n(239),i=a.each,o="\0_ec_hist_store",s={push:function(e,t){var n=r(e);i(t,function(t,r){for(var a=n.length-1;a>=0;a--){var i=n[a];if(i[r])break}if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var s=o.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}}),n.push(t)},pop:function(e){var t=r(e),n=t[t.length-1];t.length>1&&t.pop();var a={};return i(n,function(e,n){for(var r=t.length-1;r>=0;r--){var e=t[r][n];if(e){a[n]=e;break}}}),a},clear:function(e){e[o]=null},count:function(e){return r(e).length}};e.exports=s},function(e,t,n){n(590),n(591),n(594),n(647),n(648),n(600),n(601)},function(e,t,n){var r=n(591);e.exports=r.extend({type:"dataZoom.select"})},function(e,t,n){e.exports=n(594).extend({type:"dataZoom.select"})},function(e,t,n){"use strict";function r(e){this.model=e}var a=n(645);r.defaultOption={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:"还原"};var i=r.prototype;i.onclick=function(e,t,n){a.clear(e),t.dispatchAction({type:"restore",from:this.uid})},n(583).register("restore",r),n(236).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")}),e.exports=r},function(e,t,n){n(651),n(317).registerPainter("vml",n(653))},function(e,t,n){if(!n(237).canvasSupported){var r=n(245),a=n(244),i=n(285).CMD,o=n(274),s=n(243),l=n(284),u=n(282),c=n(297),h=n(298),d=n(281),p=n(285),f=n(314),g=n(652),m=Math.round,v=Math.sqrt,y=Math.abs,x=Math.cos,_=Math.sin,b=Math.max,w=r.applyTransform,S=",",M="progid:DXImageTransform.Microsoft",C=21600,T=C/2,A=1e5,I=1e3,E=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=C+","+C,e.coordorigin="0,0"},P=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},L=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},D=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},k=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},O=function(e,t,n){return(parseFloat(e)||0)*A+(parseFloat(t)||0)*I+n},R=function(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e},N=function(e,t,n){var r=o.parse(t);n=+n,isNaN(n)&&(n=1),r&&(e.color=L(r[0],r[1],r[2]),e.opacity=n*r[3])},V=function(e){var t=o.parse(e);return[L(t[0],t[1],t[2]),t[3]]},z=function(e,t,n){var r=t.fill;if(null!=r)if(r instanceof f){var a,i=0,o=[0,0],s=0,l=1,u=n.getBoundingRect(),c=u.width,h=u.height;if("linear"===r.type){a="gradient";var d=n.transform,p=[r.x*c,r.y*h],g=[r.x2*c,r.y2*h];d&&(w(p,p,d),w(g,g,d));var m=g[0]-p[0],v=g[1]-p[1];i=180*Math.atan2(m,v)/Math.PI,i<0&&(i+=360),i<1e-6&&(i=0)}else{a="gradientradial";var p=[r.x*c,r.y*h],d=n.transform,y=n.scale,x=c,_=h;o=[(p[0]-u.x)/x,(p[1]-u.y)/_],d&&w(p,p,d),x/=y[0]*C,_/=y[1]*C;var S=b(x,_);s=0/S,l=2*r.r/S-s}var M=r.colorStops.slice();M.sort(function(e,t){return e.offset-t.offset});for(var T=M.length,A=[],I=[],E=0;E<T;E++){var P=M[E],L=V(P.color);I.push(P.offset*l+s+" "+L[0]),0!==E&&E!==T-1||A.push(L)}if(T>=2){var D=A[0][0],k=A[1][0],O=A[0][1]*t.opacity,R=A[1][1]*t.opacity;e.type=a,e.method="none",e.focus="100%",e.angle=i,e.color=D,e.color2=k,e.colors=I.join(","),e.opacity=R,e.opacity2=O}"radial"===a&&(e.focusposition=o.join(","))}else N(e,r,t.opacity)},B=function(e,t){null!=t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof f||N(e,t.stroke,t.opacity)},F=function(e,t,n,r){var a="fill"==t,i=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(a||!a&&n.lineWidth)?(e[a?"filled":"stroked"]="true",n[t]instanceof f&&k(e,i),i||(i=g.createNode(t)),a?z(i,n,r):B(i,n),D(e,i)):(e[a?"filled":"stroked"]="false",k(e,i))},G=[[],[],[]],H=function(e,t){var n,r,a,o,s,l,u=i.M,c=i.C,h=i.L,d=i.A,p=i.Q,f=[];for(o=0;o<e.length;){switch(a=e[o++],r="",n=0,a){case u:r=" m ",n=1,s=e[o++],l=e[o++],G[0][0]=s,G[0][1]=l;break;case h:r=" l ",n=1,s=e[o++],l=e[o++],G[0][0]=s,G[0][1]=l;break;case p:case c:r=" c ",n=3;var g,y,b=e[o++],M=e[o++],A=e[o++],I=e[o++];a===p?(g=A,y=I,A=(A+2*b)/3,I=(I+2*M)/3,b=(s+2*b)/3,M=(l+2*M)/3):(g=e[o++],y=e[o++]),G[0][0]=b,G[0][1]=M,G[1][0]=A,G[1][1]=I,G[2][0]=g,G[2][1]=y,s=g,l=y;break;case d:var E=0,P=0,L=1,D=1,k=0;t&&(E=t[4],P=t[5],L=v(t[0]*t[0]+t[1]*t[1]),D=v(t[2]*t[2]+t[3]*t[3]),k=Math.atan2(-t[1]/D,t[0]/L));var O=e[o++],R=e[o++],N=e[o++],V=e[o++],z=e[o++]+k,B=e[o++]+z+k;o++;var F=e[o++],H=O+x(z)*N,W=R+_(z)*V,b=O+x(B)*N,M=R+_(B)*V,j=F?" wa ":" at ";Math.abs(H-b)<1e-4&&(Math.abs(B-z)>.01?F&&(H+=270/C):Math.abs(W-R)<1e-4?F&&H<O||!F&&H>O?M-=270/C:M+=270/C:F&&W<R||!F&&W>R?b+=270/C:b-=270/C),f.push(j,m(((O-N)*L+E)*C-T),S,m(((R-V)*D+P)*C-T),S,m(((O+N)*L+E)*C-T),S,m(((R+V)*D+P)*C-T),S,m((H*L+E)*C-T),S,m((W*D+P)*C-T),S,m((b*L+E)*C-T),S,m((M*D+P)*C-T)),s=b,l=M;break;case i.R:var U=G[0],q=G[1];U[0]=e[o++],U[1]=e[o++],q[0]=U[0]+e[o++],q[1]=U[1]+e[o++],t&&(w(U,U,t),w(q,q,t)),U[0]=m(U[0]*C-T),q[0]=m(q[0]*C-T),U[1]=m(U[1]*C-T),q[1]=m(q[1]*C-T),f.push(" m ",U[0],S,U[1]," l ",q[0],S,U[1]," l ",q[0],S,q[1]," l ",U[0],S,q[1]);break;case i.Z:f.push(" x ")}if(n>0){f.push(r);for(var Z=0;Z<n;Z++){var Y=G[Z];t&&w(Y,Y,t),f.push(m(Y[0]*C-T),S,m(Y[1]*C-T),Z<n-1?S:"")}}}return f.join("")};d.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=g.createNode("shape"),E(n),this._vmlEl=n),F(n,"fill",t,this),F(n,"stroke",t,this);var r=this.transform,a=null!=r,i=n.getElementsByTagName("stroke")[0];if(i){var o=t.lineWidth;if(a&&!t.strokeNoScale){var s=r[0]*r[3]-r[1]*r[2];o*=v(y(s))}i.weight=o+"px"}var l=this.path||(this.path=new p);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=H(l.data,this.transform),n.style.zIndex=O(this.zlevel,this.z,this.z2),D(e,n),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},d.prototype.onRemove=function(e){k(e,this._vmlEl),this.removeRectText(e)},d.prototype.onAdd=function(e){D(e,this._vmlEl),this.appendRectText(e)};var W=function(e){return"object"==typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};c.prototype.brushVML=function(e){var t,n,r=this.style,a=r.image;if(W(a)){var i=a.src;if(i===this._imageSrc)t=this._imageWidth,n=this._imageHeight;else{var o=a.runtimeStyle,s=o.width,l=o.height;o.width="auto",o.height="auto",t=a.width,n=a.height,o.width=s,o.height=l,this._imageSrc=i,this._imageWidth=t,this._imageHeight=n}a=i}else a===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight);if(a){var u=r.x||0,c=r.y||0,h=r.width,d=r.height,p=r.sWidth,f=r.sHeight,y=r.sx||0,x=r.sy||0,_=p&&f,C=this._vmlEl;C||(C=g.doc.createElement("div"),E(C),this._vmlEl=C);var T,A=C.style,I=!1,P=1,L=1;if(this.transform&&(T=this.transform,P=v(T[0]*T[0]+T[1]*T[1]),L=v(T[2]*T[2]+T[3]*T[3]),I=T[1]||T[2]),I){var k=[u,c],R=[u+h,c],N=[u,c+d],V=[u+h,c+d];w(k,k,T),w(R,R,T),w(N,N,T),w(V,V,T);var z=b(k[0],R[0],N[0],V[0]),B=b(k[1],R[1],N[1],V[1]),F=[];F.push("M11=",T[0]/P,S,"M12=",T[2]/L,S,"M21=",T[1]/P,S,"M22=",T[3]/L,S,"Dx=",m(u*P+T[4]),S,"Dy=",m(c*L+T[5])),A.padding="0 "+m(z)+"px "+m(B)+"px 0",A.filter=M+".Matrix("+F.join("")+", SizingMethod=clip)"}else T&&(u=u*P+T[4],c=c*L+T[5]),A.filter="",A.left=m(u)+"px",A.top=m(c)+"px";var G=this._imageEl,H=this._cropEl;G||(G=g.doc.createElement("div"),this._imageEl=G);var j=G.style;if(_){if(t&&n)j.width=m(P*t*h/p)+"px",j.height=m(L*n*d/f)+"px";else{var U=new Image,q=this;U.onload=function(){U.onload=null,t=U.width,n=U.height,j.width=m(P*t*h/p)+"px",j.height=m(L*n*d/f)+"px",q._imageWidth=t,q._imageHeight=n,q._imageSrc=a},U.src=a}H||(H=g.doc.createElement("div"),H.style.overflow="hidden",this._cropEl=H);var Z=H.style;Z.width=m((h+y*h/p)*P),Z.height=m((d+x*d/f)*L),Z.filter=M+".Matrix(Dx="+-y*h/p*P+",Dy="+-x*d/f*L+")",H.parentNode||C.appendChild(H),G.parentNode!=H&&H.appendChild(G)}else j.width=m(P*h)+"px",j.height=m(L*d)+"px",C.appendChild(G),H&&H.parentNode&&(C.removeChild(H),this._cropEl=null);var Y="",X=r.opacity;X<1&&(Y+=".Alpha(opacity="+m(100*X)+") "),Y+=M+".AlphaImageLoader(src="+a+", SizingMethod=scale)",j.filter=Y,C.style.zIndex=O(this.zlevel,this.z,this.z2),D(e,C),null!=r.text&&this.drawRectText(e,this.getBoundingRect())}},c.prototype.onRemove=function(e){k(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},c.prototype.onAdd=function(e){D(e,this._vmlEl),this.appendRectText(e)};var j,U="normal",q={},Z=0,Y=100,X=document.createElement("div"),K=function(e){var t=q[e];if(!t){Z>Y&&(Z=0,q={});var n,r=X.style;try{r.font=e,n=r.fontFamily.split(",")[0]}catch(e){}t={style:r.fontStyle||U,variant:r.fontVariant||U,weight:r.fontWeight||U,size:0|parseFloat(r.fontSize||12),family:n||"Microsoft YaHei"},q[e]=t,Z++}return t};s.measureText=function(e,t){var n=g.doc;j||(j=n.createElement("div"),j.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendChild(j));try{j.style.font=t}catch(e){}return j.innerHTML="",j.appendChild(n.createTextNode(e)),{width:j.offsetWidth}};for(var Q=new a,J=function(e,t,n,r){var a=this.style,i=a.text;if(null!=i&&(i+=""),i){var o,l,u=a.textAlign,c=K(a.textFont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',d=a.textBaseline,p=a.textVerticalAlign;n=n||s.getBoundingRect(i,h,u,d);var f=this.transform;if(f&&!r&&(Q.copy(t),Q.applyTransform(f),t=Q),r)o=t.x,l=t.y;else{var v=a.textPosition,y=a.textDistance;if(v instanceof Array)o=t.x+R(v[0],t.width),l=t.y+R(v[1],t.height),u=u||"left",d=d||"top";else{var x=s.adjustTextPositionOnRect(v,t,n,y);o=x.x,l=x.y,u=u||x.textAlign,d=d||x.textBaseline}}if(p){switch(p){case"middle":l-=n.height/2;break;case"bottom":l-=n.height}d="top"}var _=c.size;switch(d){case"hanging":case"top":l+=_/1.75;break;case"middle":break;default:l-=_/2.25}switch(u){case"left":break;case"center":o-=n.width/2;break;case"right":o-=n.width}var b,M,C,T=g.createNode,A=this._textVmlEl;A?(C=A.firstChild,b=C.nextSibling,M=b.nextSibling):(A=T("line"),b=T("path"),M=T("textpath"),C=T("skew"),M.style["v-text-align"]="left",E(A),b.textpathok=!0,M.on=!0,A.from="0 0",A.to="1000 0.05",D(A,C),D(A,b),D(A,M),this._textVmlEl=A);var I=[o,l],L=A.style;f&&r?(w(I,I,f),C.on=!0,C.matrix=f[0].toFixed(3)+S+f[2].toFixed(3)+S+f[1].toFixed(3)+S+f[3].toFixed(3)+",0,0",C.offset=(m(I[0])||0)+","+(m(I[1])||0),C.origin="0 0",L.left="0px",L.top="0px"):(C.on=!1,L.left=m(o)+"px",L.top=m(l)+"px"),M.string=P(i);try{M.style.font=h}catch(e){}F(A,"fill",{fill:r?a.fill:a.textFill,opacity:a.opacity},this),F(A,"stroke",{stroke:r?a.stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash},this),A.style.zIndex=O(this.zlevel,this.z,this.z2),D(e,A)}},$=function(e){k(e,this._textVmlEl),this._textVmlEl=null},ee=function(e){D(e,this._textVmlEl)},te=[l,u,c,d,h],ne=0;ne<te.length;ne++){var re=te[ne].prototype;re.drawRectText=J,re.removeRectText=$,re.appendRectText=ee}h.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},h.prototype.onRemove=function(e){this.removeRectText(e)},h.prototype.onAdd=function(e){this.appendRectText(e)}}},function(e,t,n){if(!n(237).canvasSupported){var r,a="urn:schemas-microsoft-com:vml",i=window,o=i.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",a),r=function(e){return o.createElement("<zrvml:"+e+' class="zrvml">')}}catch(e){r=function(e){return o.createElement("<"+e+' xmlns="'+a+'" class="zrvml">')}}var l=function(){if(!s){s=!0;var e=o.styleSheets;e.length<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}};e.exports={doc:o,initVML:l,createNode:r}}},function(e,t,n){function r(e){return parseInt(e,10)}function a(e,t){s.initVML(),this.root=e,this.storage=t;var n=document.createElement("div"),r=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",r.style.cssText="position:absolute;left:0;top:0;",e.appendChild(n),this._vmlRoot=r,this._vmlViewport=n,this.resize();var a=t.delFromStorage,i=t.addToStorage;t.delFromStorage=function(e){a.call(t,e),e&&e.onRemove&&e.onRemove(r)},t.addToStorage=function(e){e.onAdd&&e.onAdd(r),i.call(t,e)},this._firstPaint=!0}function i(e){return function(){o('In IE8.0 VML mode painter not support method "'+e+'"')}}var o=n(276),s=n(652);a.prototype={constructor:a,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var r=e[n];r.invisible||r.ignore?(r.__alreadyNotVisible||r.onRemove(t),r.__alreadyNotVisible=!0):(r.__alreadyNotVisible&&r.onAdd(t),r.__alreadyNotVisible=!1,r.__dirty&&(r.beforeBrush&&r.beforeBrush(),(r.brushVML||r.brush).call(r,t),r.afterBrush&&r.afterBrush())),r.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){var e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!=e||this._height!=t){this._width=e,this._height=t;var n=this._vmlViewport.style;n.width=e+"px",n.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||r(t.width))-r(t.paddingLeft)-r(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||r(t.height))-r(t.paddingTop)-r(t.paddingBottom)|0}};for(var l=["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],u=0;u<l.length;u++){var c=l[u];a.prototype[c]=i(c)}e.exports=a},function(e,t,n){e.exports=n(655)()},function(e,t,n){"use strict";var r=n(11),a=n(7);e.exports=function(){function e(){a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){var t=function(e,t){function n(e){var t=e.target||e.srcElement;t.__resizeRAF__&&u(t.__resizeRAF__),t.__resizeRAF__=i(function(){var n=t.__resizeTrigger__;void 0!==n&&n.__resizeListeners__.forEach(function(t){t.call(n,e)})})}function r(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)}var a,i,o=this,s=o.document,l=s.attachEvent;"undefined"!=typeof navigator&&(a=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),i=function(){var e=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(e){return o.setTimeout(e,20)};return function(t){return e(t)}}();var u=function(){var e=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.clearTimeout;return function(t){return e(t)}}();if(!e.__resizeListeners__)if(e.__resizeListeners__=[],l)e.__resizeTrigger__=e,e.attachEvent("onresize",n);else{"static"===getComputedStyle(e).position&&(e.style.position="relative");var c=e.__resizeTrigger__=s.createElement("object");c.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"),c.setAttribute("class","resize-sensor"),c.__resizeElement__=e,c.onload=r,c.type="text/html",a&&e.appendChild(c),c.data="about:blank",a||e.appendChild(c)}e.__resizeListeners__.push(t)};t.unbind=function(e,t){var n=document.attachEvent;e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(n?e.detachEvent("onresize",resizeListener):(e.__resizeTrigger__.contentDocument.defaultView.removeEventListener("resize",resizeListener),e.__resizeTrigger__=!e.removeChild(e.__resizeTrigger__)))},e.exports="undefined"==typeof window?t:t.bind(window)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(658),i=r(a),o=n(659),s=r(o),l={};l.Google=i.default,l.Baidu=s.default,t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(1),i=r(a),o=i.default.createClass({displayName:"Google",propTypes:{style:i.default.PropTypes.object,client:i.default.PropTypes.string.isRequired,slot:i.default.PropTypes.string.isRequired,format:i.default.PropTypes.string},componentDidMount:function(){window&&(window.adsbygoogle=window.adsbygoogle||[]).push({})},getDefaultProps:function(){return{style:{display:"block"},format:"auto"}},render:function(){return i.default.createElement("ins",{className:"adsbygoogle",style:this.props.style,"data-ad-client":this.props.client,"data-ad-slot":this.props.slot,"data-ad-format":this.props.format})}});e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(1),i=r(a),o=i.default.createClass({displayName:"Baidu",render:function(){return i.default.createElement("p",null," TODO !")}});e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(661),s=r(o),l=n(662),u=r(l),c=n(664),h=r(c),d=n(665),p=r(d),f=n(666),g=r(f),m=n(233),v=r(m),y=n(667),x=r(y),_=n(669),b=r(_),w=n(670),S=r(w),M=n(671),C=r(M),T=n(672),A=r(T),I=n(673),E=r(I),P=n(674),L=r(P),D=n(675),k=r(D),O=n(676),R=r(O),N=(n(169),i.default.createClass({displayName:"EchartsComponent",propTypes:{},render:function(){return"simple"==this.props.params.type?i.default.createElement(s.default,null):"loading"==this.props.params.type?i.default.createElement(p.default,null):"api"==this.props.params.type?i.default.createElement(g.default,null):"events"==this.props.params.type?i.default.createElement(u.default,null):"theme"==this.props.params.type?i.default.createElement(h.default,null):"dynamic"==this.props.params.type?i.default.createElement(v.default,null):"map"==this.props.params.type?i.default.createElement(x.default,null):"airport"==this.props.params.type?i.default.createElement(b.default,null):"graph"==this.props.params.type?i.default.createElement(E.default,null):"calendar"==this.props.params.type?i.default.createElement(S.default,null):"treemap"==this.props.params.type?i.default.createElement(k.default,null):"gauge"==this.props.params.type?i.default.createElement(C.default,null):"gcalendar"==this.props.params.type?i.default.createElement(A.default,null):"lunar"==this.props.params.type?i.default.createElement(L.default,null):"liquid"==this.props.params.type?i.default.createElement(R.default,null):i.default.createElement(v.default,null)}}));t.default=N},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=i.default.createClass({displayName:"SimpleChartComponent",propTypes:{},getOtion:function(){var e={title:{text:"堆叠区域图"},tooltip:{trigger:"axis"},legend:{data:["邮件营销","联盟广告","视频广告"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["周一","周二","周三","周四","周五","周六","周日"]}],yAxis:[{type:"value"}],series:[{name:"邮件营销",type:"line",stack:"总量",areaStyle:{normal:{}},data:[120,132,101,134,90,230,210]},{name:"联盟广告",type:"line",stack:"总量",areaStyle:{normal:{}},data:[220,182,191,234,290,330,310]},{name:"视频广告",type:"line",stack:"总量",areaStyle:{normal:{}},data:[150,232,201,154,190,330,410]}]};return e},render:function(){var e="<ReactEcharts \n option={this.getOtion()} \n style={{height: '350px', width: '100%'}} \n className='react_for_echarts' />";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a Simple echart With ",i.default.createElement("strong",null,"option and height"),": "),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"350px",width:"100%"},className:"react_for_echarts"}),i.default.createElement("label",null," code below: "),i.default.createElement("pre",null,i.default.createElement("code",null,e))))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(663),s=r(o),l=i.default.createClass({displayName:"ChartWithEventComponent",propTypes:{},getOtion:function(){var e={title:{text:"某站点用户访问来源",subtext:"纯属虚构",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};return e},onChartClick:function(e,t){console.log(e,t),alert("chart click")},onChartLegendselectchanged:function(e,t){console.log(e,t),alert("chart legendselectchanged")},onChartReady:function(e){console.log("echart is ready",e)},render:function(){var e={click:this.onChartClick,legendselectchanged:this.onChartLegendselectchanged},t="let onEvents = {\n 'click': this.onChartClick,\n 'legendselectchanged': this.onChartLegendselectchanged\n}\n\n<ReactEcharts \n option={this.getOtion()} \n style={{height: 300}} \n onChartReady={this.onChartReady} \n onEvents={onEvents} />";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," Chart With event ",i.default.createElement("strong",null," onEvents "),": (Click the chart, and watch the console)"),i.default.createElement(s.default,{option:this.getOtion(),style:{height:300},onChartReady:this.onChartReady,onEvents:e}),i.default.createElement("label",null," code below: "),i.default.createElement("pre",null,i.default.createElement("code",null,t))))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(235),u=r(l),c=n(654),h=r(c),d=n(1),p=r(d),f=n(656),g=r(f),m=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getEchartsInstance=function(){return u.default.getInstanceByDom(n.echartsElement)||u.default.init(n.echartsElement,n.props.theme)},n.bindEvents=function(e,t){var n=function(n){"string"==typeof n&&"function"==typeof t[n]&&(e.off(n),e.on(n,function(r){t[n](r,e)}))};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r)},n.renderEchartDom=function(){var e=n.getEchartsInstance();return e.setOption(n.props.option,n.props.notMerge||!1,n.props.lazyUpdate||!1),n.props.showLoading?e.showLoading(n.props.loadingOption||null):e.hideLoading(),e},n.echartsElement=null,n}return o(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this.renderEchartDom(),t=this.props.onEvents||{};this.bindEvents(e,t),"function"==typeof this.props.onChartReady&&this.props.onChartReady(e),(0,g.default)(this.echartsElement,function(){e.resize()})}},{key:"componentDidUpdate",value:function(){this.renderEchartDom(),this.bindEvents(this.getEchartsInstance(),this.props.onEvents||[])}},{key:"componentWillUnmount",value:function(){this.echartsElement&&("function"==typeof g.default.unbind&&g.default.unbind(this.echartsElement),u.default.dispose(this.echartsElement))}},{key:"render",value:function(){var e=this,t=this.props.style||{height:"300px"};return p.default.createElement("div",{ref:function(t){e.echartsElement=t},style:t,className:this.props.className})}}]),t}(p.default.Component);t.default=m,m.propTypes={option:h.default.object.isRequired,notMerge:h.default.bool,lazyUpdate:h.default.bool,style:h.default.object,className:h.default.string,theme:h.default.string,onChartReady:h.default.func,showLoading:h.default.bool,loadingOption:h.default.object,onEvents:h.default.object},m.defaultProps={notMerge:!1,lazyUpdate:!1,style:{height:"300px"},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=n(235),u=r(l),c=i.default.createClass({displayName:"ThemeChartComponent",propTypes:{},getOtion:function(){var e={title:{text:"阶梯瀑布图",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/Aj1J2x5a5"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["支出","收入"]
|
|
63
|
-
},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",splitLine:{show:!1},data:["11月1日","11月2日","11月3日","11月4日","11月5日","11月6日","11月7日","11月8日","11月9日","11月10日","11月11日"]},yAxis:{type:"value"},series:[{name:"辅助",type:"bar",stack:"总量",itemStyle:{normal:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"},emphasis:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}},data:[0,900,1245,1530,1376,1376,1511,1689,1856,1495,1292]},{name:"收入",type:"bar",stack:"总量",label:{normal:{show:!0,position:"top"}},data:[900,345,393,"-","-",135,178,286,"-","-","-"]},{name:"支出",type:"bar",stack:"总量",label:{normal:{show:!0,position:"bottom"}},data:["-","-","-",108,154,"-","-","-",119,361,203]}]};return e},registerTheme:function(){u.default.registerTheme("my_theme",{backgroundColor:"#f4cccc"})},render:function(){this.registerTheme();var e="echarts.registerTheme('my_theme', {\n backgroundColor: '#f4cccc'\n});\n\n<ReactEcharts \n option={this.getOtion()} \n theme='my_theme' />";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a echart With ",i.default.createElement("strong",null,"theme"),", should ",i.default.createElement("strong",null,"echarts.registerTheme(themeName, themeObj)")," before use."),i.default.createElement(s.default,{option:this.getOtion(),theme:"my_theme"}),i.default.createElement("label",null," the theme object format: https://github.com/ecomfe/echarts/blob/master/theme/dark.js"),i.default.createElement("pre",null,i.default.createElement("code",null,e))))}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=i.default.createClass({displayName:"ChartShowLoadingComponent",propTypes:{},_t:null,getOtion:function(){var e={title:{text:"基础雷达图"},tooltip:{},legend:{data:["预算分配(Allocated Budget)","实际开销(Actual Spending)"]},radar:{indicator:[{name:"销售(sales)",max:6500},{name:"管理(Administration)",max:16e3},{name:"信息技术(Information Techology)",max:3e4},{name:"客服(Customer Support)",max:38e3},{name:"研发(Development)",max:52e3},{name:"市场(Marketing)",max:25e3}]},series:[{name:"预算 vs 开销(Budget vs spending)",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"预算分配(Allocated Budget)"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"实际开销(Actual Spending)"}]}]};return e},onChartReady:function(e){this._t=setTimeout(function(){e.hideLoading()},3e3)},getLoadingOption:function(){var e={text:"加载中...",color:"#4413c2",textColor:"#270240",maskColor:"rgba(194, 88, 86, 0.3)",zlevel:0};return e},componentWillUnmount:function(){clearTimeout(this._t)},render:function(){var e="onChartReady: function(chart) {\n 'chart.hideLoading();\n}\n\n<ReactEcharts \n option={this.getOtion()} \n onChartReady={this.onChartReady} \n loadingOption={this.getLoadingOption()} \n showLoading={true} />";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," Chart loading With ",i.default.createElement("strong",null," showLoading "),": (when chart ready, hide the loading mask.)"),i.default.createElement(s.default,{option:this.getOtion(),onChartReady:this.onChartReady,loadingOption:this.getLoadingOption(),showLoading:!0}),i.default.createElement("label",null," code below: "),i.default.createElement("pre",null,i.default.createElement("code",null,e))))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=i.default.createClass({displayName:"ChartAPIComponent",propTypes:{},getOtion:function(){var e={title:{text:"漏斗图",subtext:"纯属虚构"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}%"},toolbox:{feature:{dataView:{readOnly:!1},restore:{},saveAsImage:{}}},legend:{data:["展现","点击","访问","咨询","订单"]},series:[{name:"预期",type:"funnel",left:"10%",width:"80%",label:{normal:{formatter:"{b}预期"},emphasis:{position:"inside",formatter:"{b}预期: {c}%"}},labelLine:{normal:{show:!1}},itemStyle:{normal:{opacity:.7}},data:[{value:60,name:"访问"},{value:40,name:"咨询"},{value:20,name:"订单"},{value:80,name:"点击"},{value:100,name:"展现"}]},{name:"实际",type:"funnel",left:"10%",width:"80%",maxSize:"80%",label:{normal:{position:"inside",formatter:"{c}%",textStyle:{color:"#fff"}},emphasis:{position:"inside",formatter:"{b}实际: {c}%"}},itemStyle:{normal:{opacity:.5,borderColor:"#fff",borderWidth:2}},data:[{value:30,name:"访问"},{value:10,name:"咨询"},{value:5,name:"订单"},{value:50,name:"点击"},{value:80,name:"展现"}]}]};return e},clickBtn:function(){window.open(this.refs.echarts_react.getEchartsInstance().getDataURL(),"_blank")},render:function(){var e="<ReactEcharts ref='echartsInstance' \n option={this.getOtion()} /> \n\n// use echarts API: http://echarts.baidu.com/api.html#echartsInstancethis.refs.echarts_react.getEchartsInstance().getDataURL();";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," use echarts API With ",i.default.createElement("strong",null," getEchartsInstance() "),": (the API will return the echarts instance, then you can use any API of echarts.)"),i.default.createElement(s.default,{ref:"echarts_react",option:this.getOtion()}),i.default.createElement("div",null,i.default.createElement("button",{className:"a_line",onClick:this.clickBtn},"click here to get the DataURL of chart.")),i.default.createElement("label",null," code below: (echarts API list see: http://echarts.baidu.com/api.html#echartsInstance)"),i.default.createElement("pre",null,i.default.createElement("code",null,e))))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o);n(668);var l=i.default.createClass({displayName:"MapChartComponent",propTypes:{},timeTicket:null,getInitialState:function(){return{option:this.getOtion()}},componentDidMount:function(){var e=this;this.timeTicket&&clearInterval(this.timeTicket),this.timeTicket=setInterval(function(){var t=e.state.option,n=(new Date).getSeconds();t.title.text="iphone销量"+n,t.series[0].name="iphone销量"+n,t.legend.data[0]="iphone销量"+n,e.setState({option:t})},1e3)},componentWillUnmount:function(){this.timeTicket&&clearInterval(this.timeTicket)},randomData:function(){return Math.round(1e3*Math.random())},getOtion:function(){var e={title:{text:"iphone销量",subtext:"纯属虚构",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left",data:["iphone3","iphone4","iphone5"]},visualMap:{min:0,max:2500,left:"left",top:"bottom",text:["高","低"],calculable:!0},toolbox:{show:!0,orient:"vertical",left:"right",top:"center",feature:{dataView:{readOnly:!1},restore:{},saveAsImage:{}}},series:[{name:"iphone3",type:"map",mapType:"china",roam:!1,label:{normal:{show:!0},emphasis:{show:!0}},data:[{name:"北京",value:this.randomData()},{name:"天津",value:this.randomData()},{name:"上海",value:this.randomData()},{name:"重庆",value:this.randomData()},{name:"河北",value:this.randomData()},{name:"河南",value:this.randomData()},{name:"云南",value:this.randomData()},{name:"辽宁",value:this.randomData()},{name:"黑龙江",value:this.randomData()},{name:"湖南",value:this.randomData()},{name:"安徽",value:this.randomData()},{name:"山东",value:this.randomData()},{name:"新疆",value:this.randomData()},{name:"江苏",value:this.randomData()},{name:"浙江",value:this.randomData()},{name:"江西",value:this.randomData()},{name:"湖北",value:this.randomData()},{name:"广西",value:this.randomData()},{name:"甘肃",value:this.randomData()},{name:"山西",value:this.randomData()},{name:"内蒙古",value:this.randomData()},{name:"陕西",value:this.randomData()},{name:"吉林",value:this.randomData()},{name:"福建",value:this.randomData()},{name:"贵州",value:this.randomData()},{name:"广东",value:this.randomData()},{name:"青海",value:this.randomData()},{name:"西藏",value:this.randomData()},{name:"四川",value:this.randomData()},{name:"宁夏",value:this.randomData()},{name:"海南",value:this.randomData()},{name:"台湾",value:this.randomData()},{name:"香港",value:this.randomData()},{name:"澳门",value:this.randomData()}]},{name:"iphone4",type:"map",mapType:"china",label:{normal:{show:!0},emphasis:{show:!0}},data:[{name:"北京",value:this.randomData()},{name:"天津",value:this.randomData()},{name:"上海",value:this.randomData()},{name:"重庆",value:this.randomData()},{name:"河北",value:this.randomData()},{name:"安徽",value:this.randomData()},{name:"新疆",value:this.randomData()},{name:"浙江",value:this.randomData()},{name:"江西",value:this.randomData()},{name:"山西",value:this.randomData()},{name:"内蒙古",value:this.randomData()},{name:"吉林",value:this.randomData()},{name:"福建",value:this.randomData()},{name:"广东",value:this.randomData()},{name:"西藏",value:this.randomData()},{name:"四川",value:this.randomData()},{name:"宁夏",value:this.randomData()},{name:"香港",value:this.randomData()},{name:"澳门",value:this.randomData()}]},{name:"iphone5",type:"map",mapType:"china",label:{normal:{show:!0},emphasis:{show:!0}},data:[{name:"北京",value:this.randomData()},{name:"天津",value:this.randomData()},{name:"上海",value:this.randomData()},{name:"广东",value:this.randomData()},{name:"台湾",value:this.randomData()},{name:"香港",value:this.randomData()},{name:"澳门",value:this.randomData()}]}]};return e},render:function(){var e="require('echarts/map/js/china.js'); \n<ReactEcharts \n option={this.state.option || {}} \n style={{height: '350px', width: '100%'}} \n className='react_for_echarts' />";return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a china map. ",i.default.createElement("strong",null,"MAP charts"),": "),i.default.createElement(s.default,{option:this.state.option,style:{height:"500px",width:"100%"},className:"react_for_echarts"}),i.default.createElement("label",null," code below: "),i.default.createElement("pre",null,i.default.createElement("code",null,e))))}});t.default=l},function(e,t,n){var r,a,i;!function(o,s){a=[t,n(235)],r=s,i="function"==typeof r?r.apply(t,a):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t){var n=function(e){"undefined"!=typeof console&&console&&console.error&&console.error(e)};return t?t.registerMap?void t.registerMap("china",{type:"FeatureCollection",features:[{id:"710000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@°Ü¯Û"],["@@ƛĴÕƊÉɼģºðʀ\\ƎsÆNŌÔĚänÜƤɊĂǀĆĴĤNJŨxĚĮǂƺòƌâÔ®ĮXŦţƸZûÐƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ¿@ăƑ¥ĘWǬÏĶŁâ"],["@@\\p|WoYG¿¥Ij@¢"],["@@
¡@V^RqBbAnTXeRz¤L«³I"],["@@ÆEEkWqë @"],["@@fced"]],encodeOffsets:[[[122886,24033]],[[123335,22980]],[[122375,24193]],[[122518,24117]],[[124427,22618]],[[124862,26043]]]},properties:{cp:[121.509062,25.044332],name:"台湾",childNum:6}},{id:"130000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@o~Z]ªrºc_ħ²G¼s`jΟnüsÂłNX_M`ǽÓnUK
Ĝēs¤©yrý§uģcJe"],["@@U`Ts¿mÂ"],["@@oºƋÄdeVDJj£J|ÅdzÂFt~KŨ¸IÆv|¢r}èonb}`RÎÄn°ÒdÞ²^®lnÐèĄlðÓ×]ªÆ}LiñÖ`^°Ç¶p®đDcŋ`ZÔ¶êqvFÆN®ĆTH®¦O¾IbÐã´BĐɢŴÆíȦpĐÞXR·nndO¤OÀĈƒQgµFo|gȒęSWb©osx|hYhgŃfmÖĩnºTÌSp¢dYĤ¶UĈjlǐpäìë|³kÛfw²Xjz~ÂqbTÑěŨ@|oMzv¢ZrÃVw¬ŧˏf°ÐTªqs{S¯r æÝlNd®²Ğ džiGĘJ¼lr}~K¨ŸƐÌWöÆzR¤lêmĞLÎ@¡|q]SvKÑcwpÏÏĿćènĪWlĄkT}J¤~ÈTdpddʾĬBVtEÀ¢ôPĎƗè@~kü\\rÊĔÖæW_§¼F´©òDòjYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkvGpuARhÞÆǶgĘTǼƹS£¨¡ù³ŘÍ]¿ÂyôEP xX¶¹ÜO¡gÚ¡IwÃé¦ÅBÏ|ǰ
N«úmH¯âDùyŜŲIÄuШD¸dɂFOhđ©OiÃ`ww^ÌkÑH«ƇǤŗĺtFu
{Z}Ö@U´
ʚLg®¯Oı°Ãw ^VbÉsmA
ê]]w§RRl£ȭµu¯b{ÍDěïÿȧuT£ġěŗƃĝQ¨fVƋƅna@³@ďyýIĹÊKŭfċŰóxV@tƯJ]eR¾fe|rHA|h~Ėƍl§ÏlTíb ØoÅbbx³^zÃͶSj®AyÂhðk`«P˵EFÛ¬Y¨Ļrõqi¼Wi°§Ð±´°^[À|ĠO@ÆxO\\ta\\tĕtû{ġȧXýĪÓjùÎRb^ÎfK[ÝděYfíÙTyuUSyŌŏů@Oi½éŅaVcř§ax¹XŻácWU£ôãºQ¨÷Ñws¥qEHÙ|šYQoŕÇyáĂ£MðoťÊP¡mWO¡v{ôvîēÜISpÌhp¨ jdeŔQÖjX³àĈ[n`Yp@UcM`RKhEbpŞlNut®EtqnsÁgAiúoHqCXhfgu~ÏWP½¢G^}¯ÅīGCÑ^ãziMáļMTÃƘrMc|O_¯Ŏ´|morDkO\\mĆJfl@c̬¢aĦtRıÒ¾ùƀ^juųœKUFyƝ
īÛ÷ąV×qƥV¿aȉd³BqPBmaËđŻģmÅ®V¹d^KKonYg¯XhqaLdu¥ÍpDž¡KąÅkĝęěhq}HyÃ]¹ǧ£
Í÷¿qáµ§g¤o^á¾ZE¤i`ij{nOl»WÝĔįhgF[¿¡ßkOüš_ūiDZàUtėGyl}ÓM}jpEC~¡FtoQiHkk{Ãmï"]],encodeOffsets:[[[119712,40641]],[[121616,39981]],[[116462,37237]]]},properties:{cp:[114.502461,38.045474],name:"河北",childNum:3}},{id:"140000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ÞĩÒSra}ÁyWix±Üe´lèßÓǏokćiµVZģ¡coTS˹ĪmnÕńehZg{gtwªpXaĚThȑp{¶Eh®RćƑP¿£Pmc¸mQÝWďȥoÅîɡųAďä³aÏJ½¥PGąSM
EÅruµéYÓŌ_dĒCoȵ]¯_²ÕjāK~©ÅØ^ÔkïçămÏk]±cݯÑÃmQÍ~_apm
~ç¡qu{JÅŧ·Ls}EyÁÆcI{¤IiCfUcƌÃp§]ě«vD@¡SÀµMÅwuYY¡DbÑc¡h×]nkoQdaMç~eDÛtT©±@¥ù@É¡ZcW|WqOJmĩl«ħşvOÓ«IqăV¥D[mI~Ó¢cehiÍ]Ɠ~ĥqX·eƷn±}v[ěďŕ]_œ`¹§ÕōIo©bs^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs×¥ŅxÊdÒ{ºvĴÎêÌɊ²¶ü¨|ÞƸµȲLLúÉƎ¤ϊęĔV`_bªS^|dzY|dz¥pZbÆ£¶ÒK}tĦÔņƠPYznÍvX¶Ěn ĠÔzý¦ª÷ÑĸÙUȌ¸dòÜJð´ìúNM¬XZ´¤ŊǸ_tldI{¦ƀðĠȤ¥NehXnYGR° ƬDj¬¸|CĞKqºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBÊTŸʂōĖĴŞȀÆÿȄlŤĒötνî¼ĨXh|ªM¤Ðz"],encodeOffsets:[[116874,41716]]},properties:{cp:[112.549248,37.857014],name:"山西",childNum:1}},{id:"150000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@Č^â£ĂhĖMÈÄw\\fŦ°W ¢¾luŸDw\\̀ʉÌÛM
Ā[bÓEn}¶Vc
ês¯PqFB
|S³C|kñHdiÄ¥sʼnÅ
PóÑÑE^ÅPpy_YtShQ·aHwsOnʼnÃs©iqjUSiº]ïW«gW¡ARëśijĘ
ů`çõh]y»ǃǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧżĠu¦ö"],["@@sKC
GS|úþXgp{ÁX¿ć{ƱȏñZáĔyoÁhA}ŅĆfdʼn_¹Y°ėǩÑ¡H¯¶oMQqð¡Ë|Ñ`ƭŁX½·óÛxğįÅcQs«tȋDžFù^it«Č¯[hAi©á¥ÇĚ×l|¹y¯YȵƓñǙµïċĻ|Düȭ¶¡oŽäÕG\\ÄT¿Òõr¯LguÏYęRƩɷŌO\\İТæ^Ŋ IJȶȆbÜGĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľ]ėl¥ËĭûÁėéV©±ćn©ȇÍq¯½YÃÔʼnÉNÑÅÝy¹NqáʅDǡËñƁYÅy̱os§ȋµʽǘǏƬɱàưN¢ƔÊuľýľώȪƺɂļxZĈ}ÌʼnŪĺœĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~ǼȳÐUfdIxÿ\\G zâɏÙOº·pqy£@qþ@Ǟ˽IBäƣzsÂZÁàĻdñ°ŕzéØűzșCìDȐĴĺf®Àľưø@ɜÖÞKĊŇƄ§͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФÔ¤ƌĞ̪Qʤ´¼mȠJˀƲÀɠmǐnǔĎȆÞǠN~ʢĜ¶ƌĆĘźʆȬ˪ĚǏĞGȖƴƀj`ĢçĶāàŃºēĢĖćYÀŎüôQÐÂŎŞdžŞêƖoˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^ªƂ`ªt¾äƚêĦ¼ÐĔǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDÄ|ø˂˜ƮЬɚwɲFjĔ²Äw°dždÀÉ_ĸdîàŎjÊêTЪŌŜWÈ|tqĢUB~´°ÎFCU¼pĀēƄN¦¾O¶łKĊOjĚj´ĜYp{¦SĚÍ\\TתV÷Ší¨ÅDK°ßtŇĔK¨ǵÂcḷ̌ĚǣȄĽFlġUĵŇȣFʉɁMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFxúQEr´Wrh¤Ɛ \\talĈDJÜ|[Pll̚¸ƎGú´P¬W¦^¦H]prRn|or¾wLVnÇIujkmon£cX^Bh`¥V¦U¤¸}xRj[^xN[~ªxQ[`ªHÆÂExx^wN¶Ê|¨ìMrdYpoRzNyÀDs~bcfÌ`L¾n|¾T°c¨È¢ar¤`[|òDŞĔöxElÖdHÀI`Ď\\Àì~ÆR¼tf¦^¢ķ¶eÐÚMptgjɡČÅyġLûŇV®ÄÈƀϰP|ªVVªj¬ĚÒêp¬E|ŬÂc|ÀtƐK f{ĘFĒƌXƲąo½Ę\\¥o}Ûu£çkX{uĩ«āíÓUŅßŢqŤ¥lyň[oi{¦LńðFȪȖĒL¿Ìf£K£ʺoqNwğc`uetOj×°KJ±qÆġmĚŗos¬
qehqsuH{¸kH¡
ÊRǪÇƌbȆ¢´äÜ¢NìÉʖ¦â©Ż؛Ç@Vu»Aylßí¹ĵê
ÝlISò³C¹Ìâ²i¶Ìoú^H²CǜңDŽ z¼g^èöŰ_IJĕê}gÁnUI«m
]jvV¼euhwqAaW_µj
»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáGOUÛOB±XkŹ£k|e]olkVͼÕqtaÏõjgÁ£§U^RLËnX°ÇBz^~wfvypV ¯ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyxþp]ÉvïèvƀnÂĴÖ@V~Ĉ³MEĸÅĖtējyÄDXÄxGQuv_i¦aBçw˛wD©{tāmQ{EJ§KPśƘƿ¥@sCTÉ}ɃwƇy±gÑ}T[÷kÐ禫
SÒ¥¸ëBX½HáŵÀğtSÝÂa[ƣ°¯¦Pï¡]£ġÒk®G²èQ°óMq}EóƐÇ\\@áügQÍu¥FTÕ¿Jû]|mvāÎYua^WoÀa·ząÒot×¶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶¿A[¡{d×uQAMxVvMOmăl«ct[wº_ÇÊjb£ĦS_éQZ_lwgOiýe`YYLq§IÁdz£ÙË[ÕªuƏ³ÍTs·bÁĽäė[b[ŗfãcn¥îC¿÷µ[ŏÀQōĉm¿Á^£mJVmL[{Ï_£F¥Ö{ŹA}
×Wu©ÅaųijƳhB{·TQqÙIķËZđ©Yc|M¡
LeVUóK_QWk_ĥ¿ãZ»X\\ĴuUèlG®ěłTĠğDŃOrÍdÆÍz]±
ŭ©Å]ÅÐ}UË¥©TċïxgckfWgi\\ÏĒ¥HkµEë{»ÏetcG±ahUiñiWsɁ·cCÕk]wȑ|ća}w
VaĚá G°ùnM¬¯{ÈÐÆA¥ÄêJxÙ¢hP¢ÛºµwWOóFÁz^ÀŗÎú´§¢T¤ǻƺSėǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇqZñiñC³ª
»E`¨åXēÕqÉû[l}ç@čƘóO¿¡FUsAʽīccocÇS}£IS~ălkĩXçmĈ
ŀÐoÐdxÒuL^T{r@¢ÍĝKén£kQyÅõËXŷƏL§~}kq»IHėDžjĝ»ÑÞoå°qTt|r©ÏS¯·eŨĕx«È[eM¿yupN~¹ÏyN£{©għWí»Í¾səšDž_ÃĀɗ±ąijĉʍŌŷSÉA±åǥɋ@ë£R©ąP©}ĹªƏj¹erLDĝ·{i«ƫC£µ"]],encodeOffsets:[[[127444,52594]],[[113793,40312]]]},properties:{cp:[111.670801,40.818311],name:"内蒙古",childNum:2}},{id:"210000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@L@@sa"],["@@MnNm"],["@@dc"],["@@eÀC@b"],["@@f
XwkbrÄ`qg"],["@@^jtWQ"],["@@~ Y]c"],["@@G`ĔN^_¿ZÃM"],["@@iX¶BY"],["@@YZ"],["@@L_{Epf"],["@@^WqCT\\"],["@@\\[§t|¤_"],["@@m`n_"],["@@Ïxnj{q_×^Giip"],["@@@é^BntaÊU]x ¯ÄPIJ°hʙK³VÕ@Y~|EvĹsǦL^pòŸÒG Ël]xxÄ_fT¤Ď¤cPC¨¸TVjbgH²sdÎdHt`B²¬GJję¶[ÐhjeXdlwhðSȦªVÊÏÆZÆŶ®²^ÎyÅÎcPqńĚDMħĜŁHkçvV[ij¼WYÀäĦ`XlR`ôLUVfK¢{NZdĒªYĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~źB|¦ÕE¤Ð`\\|KUnnI]¤ÀÂĊnŎR®Ő¿¶\\ÀøíDm¦ÎbŨabaĘ\\ľã¸atÎSƐ´©v\\ÖÚÌǴ¤Â¨JKrZ_ZfjþhPkx`YRIjJcVf~sCN¤ EhæmsHy¨SðÑÌ\\\\ĐRZk°IS§fqŒßýáĞÙÉÖ[^¯ǤŲê´\\¦¬ĆPM¯£»uïpùzExanµyoluqe¦W^£ÊL}ñrkqWňûPUP¡ôJoo·U}£[·¨@XĸDXmÛݺGUCÁª½{íĂ^cjk¶Ã[q¤LÉö³cux«zZf²BWÇ®Yß½ve±ÃCý£W{Ú^q^sÑ·¨ÍOt¹·C¥GDrí@wÕKţëV·i}xËÍ÷i©ĝɝǡ]{c±OW³Ya±_ç©HĕoƫŇqr³Lys[ñ³¯OSďOMisZ±ÅFC¥Pq{Ã[Pg}\\¿ghćO
k^ģÁFıĉĥMoEqqZûěʼn³F¦oĵhÕP{¯~TÍlªNßYÐ{Ps{ÃVUeĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀffdF~ĀeĖd`sx² ®EżĀdQÂd^~ăÔH¦\\LKpĄVez¤NP ǹÓRÆąJSha[¦´ÂghwmBШźhI|VV|p] ¼èNä¶ÜBÖ¼L`¼bØæKVpoúNZÞÒKxpw|ÊEMnzEQIZZNBčÚFÜçmĩWĪñtÞĵÇñZ«uD±|Əlij¥ãn·±PmÍada CLǑkùó¡³Ï«QaċÏOÃ¥ÕđQȥċƭy³ÃA"]],encodeOffsets:[[[123686,41445]],[[126019,40435]],[[124393,40128]],[[126117,39963]],[[125322,40140]],[[126686,40700]],[[126041,40374]],[[125584,40168]],[[125453,40165]],[[125362,40214]],[[125280,40291]],[[125774,39997]],[[125976,40496]],[[125822,39993]],[[125509,40217]],[[122731,40949]]]},properties:{cp:[123.429096,41.796767],name:"辽宁",childNum:16}},{id:"220000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@pä³PClFbbÍzwBGĭZÅi»lYċ²SgkÇ£^Sqd¯R
©é£¯S\\cZ¹iűƏCuƍÓXoR}M^o£
R}oªUF
uuXHlEÅÏ©¤ÛmTþ¤D²ÄufàÀXXȱAeyYw¬dvõ´KÊ£\\rµÄlidā]|DÂVH¹Þ®ÜWnCķ W§@\\¸~¤Vp¸póIO¢VOŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúv𼤠N°ąO¥«³[éǡű_°Õ\\ÚÊĝþâőàerR¨JYlďQ[ ÏYëЧTGztnß¡gFkMāGÁ¤ia Éȹ`\\xs¬dĆkNnuNUuP@vRY¾\\¢
GªóĄ~RãÖÎĢùđŴÕhQxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp]vbÍZuĂ{n^IüÀSÖ¦EvRÎûh@â[ƏÈô~FNr¯ôçR±HÑlĢ^¤¢OðævxsŒ]ÞÁTĠs¶¿âÆGW¾ìA¦·TѬè¥ÏÐJ¨¼ÒÖ¼ƦɄxÊ~StD@Ă¼Ŵ¡jlºWvÐzƦZвCH AxiukdGgetqmcÛ£Ozy¥cE}|
¾cZ
k¿uŐã[oxGikfeäT@
SUwpiÚFM©£è^Ú`@v¶eňf heP¶täOlÃUgÞzŸU`l}ÔÆUvØ_Ō¬Öi^ĉi§²ÃB~¡ĈÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYxƘDVÇĺĿg¿cwÅ\\¹¥Yĭl¤OvLjM_a W`zļMž·\\swqÝSAqŚij¯°kRē°wx^ĐkǂÒ\\]nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°G³¼XÀ¤¹i´o¤ŃÈ`ÌDzÄUĞd\\iÖmÈBĤÜɲDEh LG¾ƀľ{WaYÍÈĢĘÔRîĐj}ÇccjoUb½{h§Ǿ{KƖµÎ÷GĀÖŠåưÎslyiē«`å§H¥Ae^§GK}iã\\c]v©ģZmÃ|[M}ģTɟĵÂÂ`ÀçmFK¥ÚíÁbX³ÌQÒHof{]ept·GŋĜYünĎųVY^ydõkÅZW«WUa~U·SbwGçǑiW^qFuNĝ·EwUtW·Ýďæ©PuqEzwAVXRãQ`©GMehccďÏd©ÑW_ÏYƅ»
é\\ɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ýL¡ýqT^rme\\PpZZbyuybQefµ]UhĿDCmûvaÙNSkCwncćfv~
YÇG"],encodeOffsets:[[130196,42528]]},properties:{cp:[125.3245,43.886841],name:"吉林",childNum:1}},{id:"230000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@ƨĶTLÇyqpÇÛqe{~oyen}s`qiXGù]Ëp½©lÉÁp]Þñ´FĂ^fäîºkàz¼BUvÈ@"],["@@UµNÿ¥īèçHÍøƕ¶Lǽ|g¨|a¾pVidd~ÈiíďÓQġėÇZÎXb½|ſÃH½KFgɱCģÛÇAnjÕc[VĝDZÃËÇ_ £ń³pj£º¿»WH´¯U¸đĢmtĜyzzNN|g¸÷äűѱĉā~mq^[ǁÑďlw]¯xQĔ¯l°řĴrBÞTxr[tޏĻN_yX`biNKu
P£kZĮ¦[ºxÆÀdhĹŀUÈƗCwáZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFć}¢A±Äj¨]ĊÕjŋ«×`VuÓÅ~_kŷVÝyhVkÄãPsOµfgeŇ
µf@u_Ù ÙcªNªÙEojVxT@ãSefjlwH\\pŏäÀvlY½d{F~¦dyz¤PÜndsrhfHcvlwjF£G±DÏƥYyÏu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|C˜zxAè¥bfudTrFWÁ¹Am|ĔĕsķÆF´N}ć
UÕ@Áijſmuçuð^ÊýowFzØÎĕNőǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°Uzouxe]}
AyÈW¯ÌmKQ]Īºif¸ÄX|sZt|½ÚUÎ lk^p{f¤lºlÆW A²PVÜPHÊâ]ÎĈÌÜk´\\@qàsĔÄQºpRij¼èi`¶bXrBgxfv»uUi^v~J¬mVp´£´VWrnP½ì¢BX¬hðX¹^TjVriªjtŊÄmtPGx¸bgRsT`ZozÆO]ÒFôÒOÆŊvÅpcGêsx´DR{AEOr°x|íb³Wm~DVjºéNNËܲɶGxŷCSt}]ûōSmtuÇÃĕNāg»íT«u}ç½BĵÞʣ¥ëÊ¡MÛ³ãȅ¡ƋaǩÈÉQG¢·lG|tvgrrf«ptęŘnÅĢrI²¯LiØsPf_vĠdxM prʹL¤¤eËÀđKïÙVY§]Ióáĥ]ķK¥j|pŇ\\kzţ¦šnņäÔVĂîά|vW®l¤èØrxm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄĄ»ƢjȦOǺ¨ìSŖÆƬyQv`cwZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨSfm ĊƀP̎ēz©ĊÄÕÊmgÇsJ¥ƔŊśæÎÑqv¿íUOµªÂnĦÁ_½ä@êí
£P}Ġ[@gġ}gɊ×ûÏWXá¢užƻÌsNͽƎÁ§čŐAēeL³àydl¦ĘVçŁpśdžĽĺſÊQíÜçÛġÔsĕ¬Ǹ¯YßċġHµ ¡eå`ļrĉŘóƢFìĎWøxÊkƈdƬv|I|·©NqńRŀ¤éeŊŀàŀU²ŕƀBQ£Ď}L¹Îk@©ĈuǰųǨÚ§ƈnTËÇéƟÊcfčŤ^XmHĊĕË«W·ċëx³ǔķÐċJāwİ_ĸȀ^ôWr°oú¬Ħ
ŨK~ȰCĐ´Ƕ£fNÎèâw¢XnŮeÂÆĶ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®ØCÔ ŬGƠƦYĜĘÜƬDJg_ͥœ@čŅĻA¶¯@wÎqC½Ĉ»NăëKďÍQÙƫ[«ÃígßÔÇOÝáWñuZ¯ĥŕā¡ÑķJu¤E 寰WKɱ_d_}}vyõu¬ï¹ÓU±½@gÏ¿rýDg
Cdµ°MFYxw¿CG£Rƛ½Õ{]L§{qqą¿BÇƻğëܭNJË|c²}Fµ}ÙRsÓpg±QNqǫŋRwŕnéÑÉK«SeYR
ŋ@{¤SJ}D Ûǖ֍]gr¡µŷjqWÛham³~S«Þ]"]],encodeOffsets:[[[127123,51780]],[[134456,44547]]]},properties:{cp:[126.642464,45.756967],name:"黑龙江",childNum:2}},{id:"320000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@cþÅPi`ZRu¥É\\]~°Y`µÓ^phÁbnÀşúòaĬºTÖŒbe¦¦{¸ZâćNp©Hr|^mjhSEb\\afv`sz^lkljÄtg¤D¾X¿À|ĐiZȀåB·î}GL¢õcßjayBFµÏC^ĭcÙt¿sğH]j{s©HM¢QnDÀ©DaÜÞ·jgàiDbPufjDk`dPOîhw¡ĥ¥GP²ĐobºrYî¶aHŢ´ ]´rılw³r_{£DB_Ûdåuk|Ũ¯F Cºyr{XFye³Þċ¿ÂkĭB¿MvÛpm`rÚã@ƹhågËÖƿxnlč¶Åì½Ot¾dJlVJĂǀŞqvnO^JZż·Q}êÍÅmµÒ]ƍ¦Dq}¬R^èĂ´ŀĻĊIÔtIJyQŐĠMNtR®òLhĚs©»}OÓGZz¶A\\jĨFäOĤHYJvÞHNiÜaĎÉnFQlNM¤B´ĄNöɂtpŬdfå
qm¿QûùŞÚb¤uŃJŴu»¹ĄlȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Yxcitğ®jű¢KOķCoy`å®VTa_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋÄÄÍīçÛɈǥ£ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ¡RLčiXyÅNïă¡¸iĔÏNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCtOPrE^ÒogĉIµÛÅʹK
¤½phMü`oæŀ"],encodeOffsets:[[121740,32276]]},properties:{cp:[118.767413,32.041544],name:"江苏",childNum:1}},{id:"330000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@E^dQ]K"],["@@jX^j"],["@@sfbU"],["@@qP\\xz[ck"],["@@R¢FX}°[s_"],["@@Cb\\}"],["@@e|v\\la{u"],["@@v~u}"],["@@QxÂF¯}"],["@@¹nvÞs¯o"],["@@rSkUEj"],["@@biZP"],["@@p[}INf"],["@@À¿"],["@@¹dnb
"],["@@rSBnR"],["@@g~h}"],["@@FlEk"],["@@OdPc"],["@@v[u\\"],["@@FjâL~wyoo~sµL\\"],["@@¬e¹aN"],["@@\\nÔ¡q]L³ë\\ÿ®QÖ"],["@@ÊA©[¬"],["@@Kxv"],["@@@hlIk]"],["@@pW{o||j"],["@@Md|_mC"],["@@¢
X£ÏylD¼XtH"],["@@hlÜ[LykAvyfw^E¤"],["@@fp¤MusR"],["@@®_ma~LÁ¬Z"],["@@iMxZ"],["@@ZcYd"],["@@Z~dOSo|A¿qZv"],["@@@`EN¡v"],["@@|TY{"],["@@@n@m"],["@@XWkCT\\"],["@@ºwZRkĕWO¢"],["@@X®±Grƪ\\ÔáXq{"],["@@ůTG°ĄLHm°UC"],["@@¤aÜx~}dtüGæţŎíĔcŖpMËÐj碷ðĄÆMzjWKĎ¢Q¶À_ê_Bıi«pZgf¤Nrq]§ĂN®«H±yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªÁŖHŗʼnåqûõi¨hÜ·ñt»¹ýv_[«¸mYL¯Qª
mĉÅdMgÇjcº«ę¬K´B«Âącoċ\\xKd¡gěŧ«®á[~ıxu·ÅKsËÉc¢Ù\\ĭƛëbf¹ģSĜkáƉÔĈZB{aMµfzʼnfåÂŧįƋǝÊĕġć£g³neą»@¦S®\\ßðChiqªĭiAuAµ_W¥ƣO\\lċĢttC¨£t`PZäuXßBsĻyekOđġĵHuXBµ]×\\°®¬F¢¾pµ¼kŘó¬Wät¸|@L¨¸µrºù³Ù~§WIZW®±Ð¨ÒÉx`²pĜrOògtÁZ}þÙ]¡FKwsPlU[}¦Rvn`hq¬\\nQ´ĘRWb_ rtČFIÖkĦPJ¶ÖÀÖJĈĄTĚòC ²@Pú
Øz©PCÈÚDZhŖl¬â~nm¨f©iļ«mntuÖZÜÄjL®EÌFª²iÊxبIÈhhst"],["@@o\\VzRZ}y"],["@@@°¡mÛGĕ¨§Ianá[ýƤjfæØLäGr"]],encodeOffsets:[[[125592,31553]],[[125785,31436]],[[125729,31431]],[[125513,31380]],[[125223,30438]],[[125115,30114]],[[124815,29155]],[[124419,28746]],[[124095,28635]],[[124005,28609]],[[125e3,30713]],[[125111,30698]],[[125078,30682]],[[125150,30684]],[[124014,28103]],[[125008,31331]],[[125411,31468]],[[125329,31479]],[[125626,30916]],[[125417,30956]],[[125254,30976]],[[125199,30997]],[[125095,31058]],[[125083,30915]],[[124885,31015]],[[125218,30798]],[[124867,30838]],[[124755,30788]],[[124802,30809]],[[125267,30657]],[[125218,30578]],[[125200,30562]],[[124968,30474]],[[125167,30396]],[[124955,29879]],[[124714,29781]],[[124762,29462]],[[124325,28754]],[[123990,28459]],[[125366,31477]],[[125115,30363]],[[125369,31139]],[[122495,31878]],[[125329,30690]],[[125192,30787]]]},properties:{cp:[120.153576,30.287459],name:"浙江",childNum:45}},{id:"340000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@^iuLX^"],["@@e©Ehl"],["@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊzÖgņtÀÁĂÆáhEz|WzqD¹°Eŧl{ævÜcA`¤C`|´qxIJkq^³³GšµbíZ
¹qpa±ď OH¦Ħx¢gPícOl_iCveaOjCh߸iÝbÛªCC¿mRV§¢A|t^iĠGÀtÚsd]ĮÐDE¶zAb àiödK¡~H¸íæAǿYj{ď¿À½W®£ChÃsikkly]_teu[bFaTign{]GqªoĈMYá|·¥f¥őaSÕėNµñĞ«Im_m¿Âa]uĜp
Z_§{Cäg¤°r[_YjÆOdý[I[á·¥Q_nùgL¾mvˊBÜÆ¶ĊJhpc¹O]iŠ]¥ jtsggJǧw×jÉ©±EFËKiÛÃÕYv
sm¬njĻª§emná}k«ŕgđ²ÙDÇ¤í¡ªOy×Où±@DñSęćăÕIÕ¿IµĥOjNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆßF¶X®¿mw
RIÞfßoG³¾©uyHį{Ɓħ¯AFnuP
ÍÔzVdàôº^Ðæd´oG¤{S¬ćxã}ŧ×Kǥĩ«ÕOEзÖdÖsƘѨ[Û^Xr¢¼§xvÄÆµ`K§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē
ßúLÃÃ_ÈÏ|]ÂÏFlg`ben¾¢pUh~ƴ˶_r sĄ~cƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³
]u}f
ïQl{skloNdjäËzDvčoQďHI¦rbtHĔ~BmlRV_ħTLnñH±DL¼Lªl§Ťa¸ĚlK²\\RòvDcÎJbt[¤D@®hh~kt°ǾzÖ@¾ªdbYhüóZ ň¶vHrľ\\ÊJuxAT|dmÀO[ÃÔG·ĚąĐlŪÚpSJ¨ĸLvÞcPæķŨ®mÐálwKhïgA¢ųƩޤOÈm°K´"]],encodeOffsets:[[[121722,32278]],[[119475,30423]],[[119168,35472]]]},properties:{cp:[117.283042,31.86119],name:"安徽",childNum:3}},{id:"350000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@zht´]"],["@@aj^~ĆG©O"],["@@ed¨C}}i"],["@@@vPGsQ"],["@@sBzddW]Q"],["@@S¨Q{"],["@@NVucW"],["@@qptBAq"],["@@¸[mu"],["@@Q\\pD]_"],["@@jSwUadpF"],["@@eXª~"],["@@AjvFso"],["@@fT_Çí\\v|ba¦jZÆy°"],["@@IjJi"],["@@wJIx«¼AoNe{M"],["@@K±¡ÓČäeZ"],["@@k¡¹Eh~c®wBkUplÀ¡I~Māe£bN¨gZý¡a±Öcp©PhI¢Qq
ÇGj|¥U g[Ky¬ŏv@OptÉEF\\@ åA¬V{XģĐBy
cpě
¼³Ăp·¤¥ohqqÚ¡ŅLs^á§qlÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ßėuĕeûÒiÁŧSW¥Qûŗ½ùěcݧSùĩąSWó«íęACµeRåǃRCÒÇZÍ¢ź±^dlstjD¸ZpuÔâÃH¾oLUêÃÔjjēò´ĄWƛ
^Ñ¥Ħ@ÇòmOw¡õyJyD}¢ďÑÈġfZda©º²z£NjD°Ötj¶¬ZSÎ~¾c°¶ÐmxO¸¢Pl´SL|¥AȪĖMņIJg®áIJČĒü` QF¬h|ĂJ@zµ |ê³È ¸UÖŬŬÀEttĸr]ðM¤ĶIJHtÏ AĬkvsq^aÎbvdfÊòSD´Z^xPsĂrvƞŀjJd×ŘÉ ®AΦĤdxĆqAZRÀMźnĊ»İÐZ YXæJyĊ²·¶q§·K@·{sXãô«lŗ¶»o½E¡«¢±¨Y®Ø¶^AvWĶGĒĢPlzfļtàAvWYãO_¤sD§ssČġ[kƤPX¦`¶®BBvĪjv©jx[L¥àï[F
¼ÍË»ğV`«Ip}ccÅĥZEãoP
´B@D¸m±z«Ƴ¿å³BRضWlâþäą`]Z£Tc ĹGµ¶Hm@_©k¾xĨôȉðX«½đCIbćqK³ÁÄš¬OAwã»aLʼnËĥW[ÂGIÂNxij¤D¢îĎÎB§°_JGs¥E@
¤uć
PåcuMuw¢BI¿]zG¹guĮck\\_"]],encodeOffsets:[[[123250,27563]],[[122541,27268]],[[123020,27189]],[[122916,27125]],[[122887,26845]],[[122808,26762]],[[122568,25912]],[[122778,26197]],[[122515,26757]],[[122816,26587]],[[123388,27005]],[[122450,26243]],[[122578,25962]],[[121255,25103]],[[120987,24903]],[[122339,25802]],[[121042,25093]],[[122439,26024]]]},properties:{cp:[119.306239,26.075302],name:"福建",childNum:18}},{id:"360000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ĢĨƐgļ¼ÂMD~ņªe^\\^§ý©j×cZبzdÒa¶lÒJìõ`oz÷@¤u޸´ôęöY¼HČƶajlÞƩ¥éZ[|h}^U ¥pĄžƦO lt¸Æ Q\\aÆ|CnÂOjtĚĤdÈF`¶@Ðë ¦ōÒ¨SêvHĢûXD®
QgÄWiØPÞìºr¤džNĠ¢lĄtZoCƞÔºCxrpĠV®Ê{f_Y`_eq®Aot`@oDXfkp¨|s¬\\DÄSfè©Hn¬
^DhÆyøJhØxĢĀLÊƠPżċĄwȠ̦G®ǒĤäTŠÆ~Ħw«|TF¡nc³Ïå¹]ĉđxe{ÎÓvOEm°BƂĨİ|Gvz½ª´HàpeJÝQxnÀWEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[r«_gmQu~¥V\\OkxtL E¢Ú^~ýêPóqoě±_Êw§ÑªåƗā¼mĉŹ¿NQ
YBąrwģcÍ¥BŗÊcØiIƝĿuqtāwO]³YCñTeÉcaubÍ]trluī
BÐGsĵıN£ï^ķqss¿FūūVÕ·´Ç{éĈýÿOER_đûIċâJhŅıNȩĕB
¦K{Tk³¡OP·wnµÏd¯}½TÍ«YiµÕsC¯iM¤¦¯P|ÿUHvhe¥oFTuõ\\OSsMòđƇiaºćXĊĵà·çhƃ÷Ç{ígu^đgm[×zkKN¶Õ»lčÓ{XSÆv©_ÈëJbVkĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B±ÌKyáV¼Ã~
`gsÙfIƋlę¹e|~udjuTlXµf`¿Jd[\\L²"],encodeOffsets:[[116689,26234]]},properties:{cp:[115.892151,28.676493],name:"江西",childNum:1}},{id:"370000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@Xjd]{K"],["@@itbFHy"],["@@HlGk"],["@@TGy"],["@@K¬U"],["@@WdXc"],["@@PtOs"],["@@LnXhc"],["@@ppVu]Or"],["@@cdzAUa"],["@@udRhnCI"],["@@oIpR"],["@@Ľč{fzƤîKÎMĮ]ZF½Y]â£ph¶¨râøÀÎǨ¤^ºÄGz~grĚĜlĞÆLĆdž¢Îo¦cvKbgr°WhmZp L]LºcUÆnżĤÌĒbAnrOA´ȊcÀbƦUØrĆUÜøĬƞEzVL®öØBkŖÝĐ˹ŧ̄±ÀbÎÉnb²ĦhņBĖįĦåXćì@L¯´ywƕCéõė ƿ¸lµ¾Z|ZWyFY¨Mf~C¿`à_RÇzwƌfQnny´INoƬèôº|sTJULîVjǎ¾ĒØDz²XPn±ŴPè¸ŔLƔÜƺ_TüÃĤBBċÈöA´faM¨{«M`¶d¡ôÖ°mȰBÔjj´PM|c^d¤u¤Û´ä«ƢfPk¶Môl]Lb}su^ke{lC
MrDÇ]NÑFsmoõľHyGă{{çrnÓEƕZGª¹Fj¢ïW
uøCǷë¡ąuhÛ¡^KxC`C\\bÅxì²ĝÝ¿_NīCȽĿåB¥¢·IŖÕy\\¹kxãČ×GDyäÁçFQ¡KtŵƋ]CgÏAùSedcÚźuYfyMmhUWpSyGwMPqŀÁ¼zK¶GY§Ë@´śÇµƕBm@IogZ¯uTMx}CVKï{éƵP_K«pÛÙqċtkkù]gTğwoɁsMõ³ăAN£MRkmEÊčÛbMjÝGu
IZGPģãħE[iµBEuDPÔ~ª¼ęt]ûG§¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~ݏYI] PumŝrƿIā[xedzL¯v¯s¬ÁY
~}
ťuŁgƋpÝĄ_ņī¶ÏSR´ÁP~¿Cyċßdwk´SsX|t`Ä ÈðAªìÎT°¦Dda^lĎDĶÚY°`ĪŴǒàŠv\\ebZHŖR¬ŢƱùęOÑM³FÛWp["]],encodeOffsets:[[[123806,39303]],[[123821,39266]],[[123742,39256]],[[123702,39203]],[[123649,39066]],[[123847,38933]],[[123580,38839]],[[123894,37288]],[[123043,36624]],[[123344,38676]],[[123522,38857]],[[123628,38858]],[[118260,36742]]]},properties:{cp:[117.000923,36.675807],name:"山东",childNum:13}},{id:"410000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ýLùµP³swIÓxcŢĞð´E®ÚPtĴXØx¶@«ŕŕQGYfa[şußǩđš_X³ijÕčC]kbc¥CS¯ëÍB©÷³Si_}mYTt³xlàcČzÀD}ÂOQ³ÐTĨ¯ƗòËŖ[hłŦv~}ÂZ«¤lPÇ£ªÝŴÅR§ØnhctâknÏľŹUÓÝdKuķI§oTũÙďkęĆH¸Ó\\Ä¿PcnS{wBIvÉĽ[GqµuŇôYgûZca©@½Õǽys¯}lgg@C\\£asIdÍuCQñ[L±ęk·ţb¨©kK»KC²òGKmĨS`UQnk}AGēsqaJ¥ĐGRĎpCuÌy ã iMcplk|tRkðev~^´¦ÜSí¿_iyjI|ȑ|¿_»d}q^{Ƈdă}tqµ`Ƴĕg}V¡om½faÇo³TTj¥tĠRyK{ùÓjuµ{t}uËRivGçJFjµÍyqÎàQÂFewixGw½Yŷpµú³XU½ġyłåkÚwZX·l¢Á¢KzOÎÎjc¼htoDHr
|J½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ
Ť]MÛfaQpě±ǽ¾]uFu÷nčįADp}AjmcEÇaª³o³ÆÍSƇĈÙDIzËčľ^KLiÞñ[aA²zzÌ÷D|[íijgfÕÞd®|`Ć~oĠƑô³ŊD×°¯CsøÀ«ìUMhTº¨¸ǡîSÔDruÂÇZÖEvPZW~ØÐtĄE¢¦Ðy¸bô´oŬ¬²Ês~]®tªapŎJ¨Öº_Ŕ`Ŗ^Đ\\Ĝu~m²Ƹ¸fWĦrƔ}Î^gjdfÔ¡J}\\n C¦þWxªJRÔŠu¬ĨĨmFdM{\\d\\YÊ¢ú@@¦ª²SÜsC}fNècbpRmlØ^gd¢aÒ¢CZZxvƶN¿¢T@uC¬^ĊðÄn|lGlRjsp¢ED}Fio~ÔN~zkĘHVsDzßjŬŢ`Pûàl¢\\ÀEhİgÞē X¼Pk|m"],encodeOffsets:[[118256,37017]]},properties:{cp:[113.665412,34.757975],name:"河南",childNum:1}},{id:"420000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@AB"],["@@lskt"],["@@¾«}{ra®pîÃ\\{øCËyyB±b\\òÝjKL ]ĎĽÌJyÚCƈćÎT´Å´pb©ÈdFin~BCo°BĎÃømv®E^vǾ½Ĝ²RobÜeN^ĺ£R¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I¾®I{GqpCgyl{£ÍÍyPL¡¡¸kWxYlÙæŁĢz¾V´W¶ùŸo¾ZHxjwfxGNÁ³Xéæl¶EièIH ujÌQ~v|sv¶Ôi|ú¢FhQsğ¦SiŠBgÐE^ÁÐ{čnOÂÈUÎóĔÊēIJ}Z³½Mŧïeyp·uk³DsѨL¶_Åuèw»¡WqÜ]\\Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟOKÉġÿ×wg÷IÅzCg]m«ªGeçÃTC«[t§{loWeC@ps_Bprf_``Z|ei¡oċMqow¹DƝÓDYpûsYkıǃ}s¥ç³[§cY§HK«Qy]¢wwö¸ïx¼ņ¾Xv®ÇÀµRĠÐHM±cÏdƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\}pĭÉI±Ñy
¿³x¯No|¹HÏÛmjúË~TuęjCöAwě¬Rđl¯ ÑbŇTĿ_[IčĄʿnM¦ğ\\É[T·k¹©oĕ@A¾wya¥Y\\¥Âaz¯ãÁ¡k¥ne£ÛwE©Êō¶˓uoj_U¡cF¹[WvP©whuÕyBF`RqJUw\\i¡{jEPïÿ½fć
QÑÀQ{°fLÔ~wXgītêݾĺHd³fJd]HJ²
EoU¥HhwQsƐ»Xmg±çve]DmÍPoCc¾_hhøYrŊU¶eD°Č_N~øĹĚ·`z]Äþp¼
äÌQv\\rCé¾TnkžŐÚÜa¼ÝƆ̶Ûo
d
ĔňТJqPb ¾|J¾fXƐîĨ_Z¯À}úƲN_ĒÄ^ĈaŐyp»CÇÄKñL³ġM²wrIÒŭxjb[n«øæà ^²h¯ÚŐªÞ¸Y²ĒVø}Ā^İ´LÚm¥ÀJÞ{JVųÞŃx×sxxƈē ģMřÚðòIfĊŒ\\Ʈ±ŒdʧĘDvČ_Àæ~Dċ´A®µ¨ØLV¦êHÒ¤"]],encodeOffsets:[[[113712,34e3]],[[115612,30507]],[[113649,34054]]]},properties:{cp:[114.298572,30.584355],name:"湖北",childNum:3}},{id:"430000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@nFTs"],["@@ßÅÆá½ÔXrCO
ËRïÿĩTooQyÓ[ŅBE¬ÎÓXaį§Ã¸G °ITxpúxÚij¥Ï̾edÄ©ĸG
àGhM¤Â_U}Ċ}¢pczfþg¤ÇòAVM"],["@@©KA·³CQ±Á«³BUƑ¹AtćOwD]JiØSm¯b£ylX
HËѱH«C^õľAŧ¤É¥ïyuǙuA¢^{ÌC´¦ŷJ£^[ª¿ĕ~Ƈ
N
skóā¹¿ï]ă~÷O§@Vm¡Qđ¦¢Ĥ{ºjÔª¥nf´~Õo×ÛąMąıuZmZcÒ IJβSÊDŽŶ¨ƚCÖŎªQؼrŭ«}NÏürʬmjr@ĘrTW SsdHzƓ^ÇÂyUi¯DÅYlŹu{hT}mĉ¹¥ěDÿë©ıÓ[Oº£¥ótł¹MÕƪ`P
DiÛU¾ÅâìUñBÈ£ýhedy¡oċ`pfmjP~kZa
ZsÐd°wj§@Ĵ®w~^kÀÅKvNmX\\¨aŃqvíó¿F¤¡@ũÑVw}S@j}¾«pĂrªg àÀ²NJ¶¶Dô
K|^ª°LX¾ŴäPα£EXd^¶IJÞÜ~u¸ǔMRhsR
e`ÄofIÔ\\Ø ićymnú¨cj ¢»GČìƊÿШXeĈ¾Oð Fi ¢|[jVxrIQ_EzAN¦zLU`cªxOTu RLÄ¢dVi`p˔vŎµªÉF~Ød¢ºgİàw¸Áb[¦Zb¦z½xBĖ@ªpºlS¸Ö\\Ĕ[N¥ˀmĎăJ\\ŀ`
ňSÚĖÁĐiOĜ«BxDõĚivSÌ}iùÜnкG{p°M´wÀÒzJ²ò¨ oTçüöoÛÿñőФùTz²CȆȸǎŪƑÐc°dPÎğ˶[Ƚu¯½WM¡ÉB·rínZÒ `¨GA¾\\pēXhÃRCüWGġu
Té§ŎÑ©ò³I±³}_EÃħg®ęisÁPDmÅ{b[RÅs·kPŽƥóRoOV~]{g\\êYƪ¦kÝbiċƵGZ»Ěõ
ó·³vŝ£ø@pyö_ëIkѵbcѧy
×dYتiþ¨[]f]Ņ©C}ÁN»hĻħƏĩ"]],encodeOffsets:[[[115640,30489]],[[112543,27312]],[[116690,26230]]]},
|
|
64
|
-
properties:{cp:[112.982279,28.19409],name:"湖南",childNum:3}},{id:"440000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@QdAua"],["@@lxDLo"],["@@sbhNLo"],["@@Ă ā"],["@@WltO[["],["@@Kr]S"],["@@eI]y"],["@@I|Mym"],["@@Û³LS¼Y"],["@@nvºBëui©`¾"],["@@zdÛJw®"],["@@°
¯"],["@@a yAª¸ËJIxØ@ĀHAmÃV¡ofuo"],["@@sŗÃÔėAƁZÄ ~°ČPäh"],["@@¶ÝÌvmĞhıQ"],["@@HdSjĒ¢D}war
u«ZqadYM"],["@@el\\LqqU"],["@@~rMo\\"],["@@f^C"],["@@øPªoj÷ÍÝħXČx°Q¨ıXNv"],["@@gÇƳo[~tly"],["@@EÆC¿"],["@@OP"],["@@wđógĝ[³¡VÙæÅöM̳¹pÁaËýý©D©ÜJŹƕģGą¤{Ùū
ÇO²«BƱéAÒĥ¡«BhlmtÃPµyU¯ucd·w_bŝcīímGO|KPȏŹãŝIŕŭŕ@Óoo¿ē±ß}
ŭIJWÈCőâUâǙIğʼn©IijE×
Á³AówXJþ±ÌÜÓĨ£L]ĈÙƺZǾĆĖMĸĤfÎĵlŨnÈĐtFFĤêk¶^k°f¶g}®Faf`vXŲxl¦ÔÁ²¬Ð¦pqÊ̲iXØRDÎ}Ä@ZĠsx®AR~®ETtĄZƈfŠŠHâÒÐAµ\\S¸^wĖkRzalŜ|E¨ÈNĀňZTpBh£\\ĎƀuXĖtKL¶G|»ĺEļĞ~ÜĢÛĊrOÙîvd]n¬VÊĜ°RÖpMƂªFbwEÀ©\\
¤]ŸI®¥D³|Ë]CöAŤ¦
æ´¥¸Lv¼¢ĽBaôF~®²GÌÒEYzk¤°ahlVÕI^CxĈPsBƒºV¸@¾ªR²ĨN]´_eavSivc}p}Đ¼ƌkJÚe th_¸ ºx±ò_xN˲@ă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIǪ`uTÅxYĒÖ¼kÖµMjJÚwn\\hĒv]îh|ÈƄøèg¸Ķß ĉĈWb¹ƀdéĘNTtP[öSvrCZaGubo´ŖÒÇĐ~¡zCI
özx¢PnÈñ @ĥÒ¦]ƞV}³ăĔñiiÄÓVépKG½ÄÓávYoC·sitiaÀyŧΡÈYDÑům}ý|m[węõĉZÅxUO}÷N¹³ĉo_qtăqwµŁYÙǝŕ¹tïÛUïmRCº
ĭ|µÕÊK½Rē ó]GªęAx»HO£|ām¡diď×YïYWªʼnOeÚtĐ«zđ¹T
āúEá²\\ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃOj YÇ÷Qěi"]],encodeOffsets:[[[117381,22988]],[[116552,22934]],[[116790,22617]],[[116973,22545]],[[116444,22536]],[[116931,22515]],[[116496,22490]],[[116453,22449]],[[113301,21439]],[[118726,21604]],[[118709,21486]],[[113210,20816]],[[115482,22082]],[[113171,21585]],[[113199,21590]],[[115232,22102]],[[115739,22373]],[[115134,22184]],[[113056,21175]],[[119573,21271]],[[119957,24020]],[[115859,22356]],[[116561,22649]],[[116285,22746]]]},properties:{cp:[113.280637,23.125178],name:"广东",childNum:24}},{id:"450000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@H TQ§A"],["@@ĨʪLƊDÎĹĐCǦė¸zÚGn£¾rªŀÜt¬@ÖÚSx~øOŒŶÐÂæȠ\\ÈÜObĖw^oÞLf¬°bI lTØBÌF£Ć¹gñĤaYt¿¤VSñK¸¤nM¼JE±½¸ñoÜCƆæĪ^ĚQÖ¦^f´QüÜÊz¯lzUĺš@ìp¶n]sxtx¶@~ÒĂJb©gk{°~c°`Ô¬rV\\la¼¤ôá`¯¹LCÆbxEræOv[H[~|aB£ÖsºdAĐzNÂðsÞÆ
Ĥªbab`ho¡³F«èVlo¤ÔRzpp®SĪº¨ÖºN
ijd`a¦¤F³ºDÎńĀìCĜº¦Ċ~nS|gźvZkCÆj°zVÈÁƔ]LÊFZg
čPkini«qÇczÍY®¬Ů»qR×ō©DÕ§ƙǃŵTÉĩ±ıdÑnYYIJvNĆĆØÜ Öp}e³¦m©iÓ|¹ħņ|ª¦QF¢Â¬ʖovg¿em^ucà÷gÕuíÙćĝ}FϼĹ{µHKsLSđƃrč¤[AgoSŇYMÿ§Ç{FśbkylQxĕ]T·¶[B
ÑÏGáşşƇe
ăYSsFQ}BwtYğÃ@~
CÍQ ×Wj˱rÉ¥oÏ ±«ÓÂ¥kwWűmcih³K~µh¯e]lµélEģEďsmÇŧē`ãògK_ÛsUʝćğ¶höO¤Ǜn³c`¡y¦CezYwa[ďĵűMę§]XÎ_íÛ]éÛUćİÕBƣ±
dy¹T^dûÅÑŦ·PĻþÙ`K¦
¢ÍeĥR¿³£[~äu¼dltW¸oRM¢ď\\z}Æzdvň{ÎXF¶°Â_ÒÂÏL©ÖTmu¼ãlīkiqéfA·Êµ\\őDc¥ÝFyÔćcűH_hLÜêĺШc}rn`½Ì@¸¶ªVLhŒ\\Ţĺk~Ġið°|gtTĭĸ^xvKVGréAébUuMJVÃO¡
qĂXËSģãlýà_juYÛÒBG^éÖ¶§EGÅzěƯ¤EkN[kdåucé¬dnYpAyČ{`]þ¯TbÜÈk¡ĠvàhÂƄ¢Jî¶²"]],encodeOffsets:[[[111707,21520]],[[107619,25527]]]},properties:{cp:[108.320004,22.82402],name:"广西",childNum:2}},{id:"460000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@¦Ŝil¢XƦƞòïè§ŞCêɕrŧůÇąĻõ·ĉ³œ̅kÇm@ċȧŧĥĽʉƅſȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\Ɔ¸ĠĎvʄȀоjNðĀÒRZdžzÐŘΰH¨Ƣb²_Ġ "],encodeOffsets:[[112750,20508]]},properties:{cp:[110.33119,20.031971],name:"海南",childNum:1}},{id:"510000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@LqKr"],["@@[ĻéV£_ţġñpG réÏ·~ąSfy×Í·ºſƽiÍıƣıĻmHH}siaX@iǰÁÃ×t«T¤JJJyJÈ`Ohߦ¡uËhIyCjmÿw
ZG
TiSsOB²fNmsPa{M{õE^Hj}gYpaeu¯oáwHjÁ½M¡pMuåmni{fk\\oÎqCwEZ¼KĝAy{m÷LwO×SimRI¯rKõBS«sFe]fµ¢óY_ÆPRcue°Cbo×bd£ŌIHgtrnyPt¦foaXďxlBowz_{ÊéWiêEGhܸºuFĈIxf®Y½ĀǙ]¤EyF²ċw¸¿@g¢§RGv»áW`ÃĵJwi]t¥wO½a[×]`ÃiüL¦LabbTÀåc}ÍhÆh®BHî|îºÉk¤Sy£ia©taį·Ɖ`ō¥UhO
ĝLk}©Fos´JmµlŁu
ønÑJWΪYÀïAetTŅÓGË«bo{ıwodƟ½OġܵxàNÖ¾P²§HKv¾]|BÆåoZ`¡Ø`ÀmºĠ~ÌЧnÇ
¿¤]wğ@srğu~Io[é±¹ ¿ſđÓ@qg¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@áťsZÏÅĭƋěpwDóÖáŻneQËq·GCœýS]x·ýq³OÕ¶Qzßti{řáÍÇWŝŭñzÇWpç¿JXĩè½cFÂLiVjx}\\NŇĖ¥GeJA¼ÄHfÈu~¸Æ«dE³ÉMA|bÒ
ćhG¬CMõƤąAvüVéŀ_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»ÕZ³ġqDoy`L¬gdp°şp¦ėìÅĮZ°Iähzĵf²å ĚÑKpIN|Ñz]ń
·FU×é»R³MÉ»GM«kiér}Ã`¹ăÞmÈnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ
þTº·àUȞÏʦ¶I«dĽĢdĬ¿»Ĕ×h\\c¬ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvwxBèĻĒ©ĈtCĢɽŠȣ¦āæ·HĽîôNÔ~^¤Ɗu^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ®Z´ğ~Sn|ªWÚ©òzPOȸbð¢|øĞŒQìÛÐ@ĞǎRS¤Á§d
i´ezÝúØã]HqkIþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwnÆƄmÀêErĒtD®ċæcQE®³^ĭ¥©l}äQtoŖÜqÆkµªÔĻĴ¡@Ċ°B²Èw^^RsºT£ڿQPJvÄz^Đ¹Æ¯fLà´GC²dtĀRt¼¤ĦOðğfÔðDŨŁĞƘïPÈ®âbMüÀXZ ¸£@Å»»QÉ]dsÖ×_Í_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|YÔZśÎs´xº±Uñt|OĩĠºNbgþJy^dÂY Į]Řz¦gC³R`Āz¢Aj¸CL¤RÆ»@Ŏk\\Ç´£YW}z@Z}öoû¶]´^NÒ}èNªPÍy¹`S°´ATeVamdUĐwʄvĮÕ\\uÆŗ¨Yp¹àZÂmWh{á}WØǍÉüwga§áCNęÎ[ĀÕĪgÖɪXøx¬½Ů¦¦[NÎLÜUÖ´òrÙŠxR^JkijnDX{U~ET{ļº¦PZcjF²Ė@pg¨B{u¨ŦyhoÚD®¯¢ WòàFΤ¨GDäz¦kŮPġqË¥À]eâÚ´ªKxīPÖ|æ[xäJÞĥsNÖ½I¬nĨY´®ÐƐmDŝuäđđEb
ee_v¡}ìęNJē}qÉåT¯µRs¡M@}ůaa¯wvƉåZw\\Z{åû^"]],encodeOffsets:[[[108815,30935]],[[110617,31811]]]},properties:{cp:[104.065735,30.659462],name:"四川",childNum:2}},{id:"520000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@G\\lY£in"],["@@q|mc¯tÏVSÎ"],["@@hÑ£IsNgßHHªķÃh_¹¡ĝħń¦uÙùgS¯JH|sÝÅtÁïyMDč»eÕtA¤{b\\}G®u\\åPFqwÅaD
K°ºâ_£ùbµmÁÛĹM[q|hlaªāI}ѵ@swtwm^oµD鼊yVky°ÉûÛR
³e¥]RÕěħ[ƅåÛDpJiVÂF²I
»mN·£LbÒYbWsÀbpkiTZĄă¶Hq`
ĥ_J¯ae«KpÝx]aĕÛPÇȟ[ÁåŵÏő÷Pw}TÙ@Õs«ĿÛq©½m¤ÙH·yǥĘĉBµĨÕnđ]K©œáGçş§ÕßgǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊw¶øV¤w²Ĉ]ÊKx|`ź¦ÂÈdrcÈbe¸`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pĐ`oÒh¶pa^ÓĔ}D»^Xy`d[Kv
JPhèhCrĂĚÂ^Êƌ wZLĠ£ÁbrzOIlMMĪŐžËr×ÎeŦtw|¢mKjSǘňĂStÎŦEtqFT¾E쬬ôxÌO¢ K³ŀºäYPVgŎ¦Ŋm޼VZwVlz¤
£Tl®ctĽÚó{GAÇge~Îd¿æaSba¥KKûj®_Ä^\\ؾbP®¦x^sxjĶI_Ä Xâ¼Hu¨Qh¡À@Ëô}±GNìĎlT¸
`V~R°tbÕĊ`¸úÛtÏFDu[MfqGH·¥yAztMFe|R_GkChZeÚ°tov`xbDnÐ{E}ZèxNEÞREn[Pv@{~rĆAB§EO¿|UZ~ìUf¨J²ĂÝÆsªB`s¶fvö¦Õ~dÔq¨¸º»uù[[§´sb¤¢zþF¢Æ
ÀhÂW\\ıËIÝo±ĭŠ£þÊs}¡R]ěDg´VG¢j±®èºÃmpU[Á뺰rÜbNu¸}º¼`niºÔXĄ¤¼ÔdaµÁ_Ã
ftQQgR·Ǔv}Ý×ĵ]µWc¤F²OĩųãW½¯K©
]{LóµCIµ±Mß¿h©āq¬o½~@i~TUxŪÒ¢@£ÀEîôruńb[§nWuMÆLl¿]x}ij½"]],encodeOffsets:[[[112158,27383]],[[112105,27474]],[[112095,27476]]]},properties:{cp:[106.713478,26.578343],name:"贵州",childNum:3}},{id:"530000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@[ùx½}ÑRHYīĺûsÍniEoã½Ya²ė{c¬ĝgĂsAØÅwďõzFjw}«Dx¿}Uũlê@HÅF¨ÇoJ´Ónũuą¡Ã¢pÒÅØ TF²xa²ËXcÊlHîAßËŁkŻƑŷÉ©hWæßUËs¡¦}teèÆ¶StÇÇ}Fd£jĈZĆÆ¤Tč\\D}O÷£U§~ŃGåŃDĝ¸Tsd¶¶Bª¤u¢ŌĎo~t¾ÍŶÒtD¦ÚiôözØX²ghįh½Û±¯ÿm·zR¦Ɵ`ªŊÃh¢rOÔ´£Ym¼èêf¯ŪĽncÚbw\\zlvWªâ ¦gmĿBĹ£¢ƹřbĥkǫßeeZkÙIKueT»sVesbaĕ ¶®dNĄÄpªy¼³BE®lGŭCǶwêżĔÂepÍÀQƞpC¼ŲÈAÎô¶RäQ^Øu¬°_Èôc´¹ò¨P΢hlϦ´ĦÆ´sâÇŲPnÊD^¯°Upv}®BP̪jǬxSöwlfòªvqĸ|`HviļndĜĆhňem·FyÞqóSᝳX_ĞçêtryvL¤§z¦c¦¥jnŞklD¤øz½ĜàĂŧMÅ|áƆàÊcðÂFÜáŢ¥\\\\ºİøÒÐJĴîD¦zK²ǏÎEh~CDhMn^ÌöÄ©ČZÀaüfɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~ÄqêljN¬¼HÊNQ´ê¼VظE^ŃÒyM{JLoÒęæe±Ķygã¯JYÆĭĘëo¥Šo¯hcK«z_prC´ĢÖY¼ v¸¢RÅW³Â§fǸYi³xR´ďUË`êĿUûuĆBƣöNDH«ĈgÑaB{ÊNF´¬c·Åv}eÇÃGB»If¦HňĕM
~[iwjUÁKE¾dĪçWIèÀoÈXòyŞŮÈXâÎŚj|àsRyµÖPr´þ ¸^wþTDŔHr¸RÌmfżÕâCôoxĜƌÆĮÐYtâŦÔ@]ÈǮƒ\\μģUsȯLbîƲŚºyhr@ĒÔƀÀ²º\\êpJ}ĠvqtĠ@^xÀ£È¨mËÏğ}n¹_¿¢×Y_æpÅA^{½Lu¨GO±Õ½ßM¶wÁĢÛPƢ¼pcIJx|ap̬HÐŊSfsðBZ¿©XÏÒKk÷Eû¿S
rEFsÕūkóVǥʼniTL¡n{uxţÏhôŝ¬ğōNNJkyPaqÂğ¤K®YxÉƋÁ]āęDqçgOgILu\\_gz]W¼~CÔē]bµogpÑ_oď`´³Țkl`IªºÎȄqÔþ»E³ĎSJ»_f·adÇqÇc¥Á_Źw{L^ɱćxU£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣGË÷k°_^ý|_zċBZocmø¯hhcæ\\lMFlư£ĜÆyHF¨µêÕ]HA
àÓ^it `þßäkĤÎT~Wlÿ¨ÔPzUCNVv [jâôDôď[}z¿msSh¯{jïğl}šĹ[őgK©U·µË@¾m_~q¡f¹
ÅË^»f³ø}Q¡Ö˳gͱ^Ç
\\ëÃA_¿bWÏ[¶ƛé£F{īZgm@|kHǭƁć¦UĔť×ë}ǝeďºȡȘÏíBÉ£āĘPªij¶ʼnÿy©nď£G¹¡I±LÉĺÑdĉÜW¥}gÁ{aqÃ¥aıęÏZï`"],encodeOffsets:[[104636,22969]]},properties:{cp:[102.712251,25.040609],name:"云南",childNum:1}},{id:"540000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ÂhľxŖxÒVºÅâAĪÝȆµę¯Ňa±r_w~uSÕňqOj]ɄQ
£Z
UDûoY»©M[L¼qãË{VÍçWVi]ë©Ä÷àyƛhÚU°adcQ~Mx¥cc¡ÙaSyFÖkuRýq¿ÔµQĽ³aG{¿FµëªéĜÿª@¬·K·àariĕĀ«V»ŶĴūgèLǴŇƶaftèBŚ£^âǐÝ®M¦ÁǞÿ¬LhJ¾óƾƺcxwf]Y
´¦|QLn°adĊ
\\¨oǀÍŎ´ĩĀd`tÊQŞŕ|¨C^©Ĉ¦¦ÎJĊ{ëĎjª²rÐl`¼Ą[t|¦Stè¾PÜK¸dƄı]s¤î_v¹ÎVòŦj£Əsc¬_Ğ´|٦Av¦w`ăaÝaa¢e¤ı²©ªSªÈMĄwÉØŔì@T¤Ę\\õª@þo´xA sÂtŎKzó´ÇĊµ¢r^nĊƬ×üG¢³ {âĊ]G~bÀgVjzlhǶfOfdªB]pjTOtĊn¤}®¦Č¥d¢¼»ddY¼t¢eȤJ¤}Ǿ¡°§¤AÐlc@ĝsªćļđAçwxUuzEÖġ~AN¹ÄÅȀݦ¿ģŁéì±H
ãd«g[ؼēÀcīľġ¬cJµ
ÐʥVȝ¸ßS¹ý±ğkƁ¼ą^ɛ¤Ûÿb[}¬ōõÃ]ËNm®g@Bg}ÍF±ǐyL¥íCIijÏ÷Ñį[¹¦[âšEÛïÁÉdƅß{âNÆāŨß¾ě÷yC£k´ÓH@¹TZ¥¢į·ÌAЧ®Zc
v½Z¹|ÅWZqgW|ieZÅYVÓqdqbc²R@c¥Rã»GeeƃīQ}J[ÒK
¬Ə|oėjġĠÑN¡ð¯EBčnwôɍėª²CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛęgſ¶ҍć`ĘąŌJÞä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷f±iMÝ@ĥ°G¬ÃM¥n£Øąğ¯ß§aëbéüÑOčk£{\\eµª×MÉfm«Ƒ{Å×Gŏǩãy³©WÑăû··Qòı}¯ãIéÕÂZ¨īès¶ZÈsæĔTŘvgÌsN@îá¾ó@ÙwU±ÉT廣TđWxq¹Zobs[ׯcĩvėŧ³BM|¹kªħ¥TzNYnÝßpęrñĠĉRS~½ěVVµõ«M££µBĉ¥áºae~³AuĐh`ܳç@BÛïĿa©|z²Ý¼D£àč²ŸIûI āóK¥}rÝ_Á´éMaň¨~ªSĈ½½KÙóĿeƃÆB·¬ën×W|Uº}LJrƳlŒµ`bÔ`QÐÓ@s¬ñIÍ@ûws¡åQÑßÁ`ŋĴ{ĪTÚÅTSijYo|Ç[ǾµMW¢ĭiÕØ¿@Mh
pÕ]jéò¿OƇĆƇpêĉâlØwěsǩĵ¸c
bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB\\qTGªÇĜçPoÿfñòą¦óQīÈáPābß{ZŗĸIæÅhnszÁCËìñÏ·ąĚÝUm®óL·ăUÈíoù´Êj°ŁŤ_uµ^°ìÇ@tĶĒ¡ÆM³Ģ«İĨÅ®ğRāðggheÆ¢zÊ©Ô\\°ÝĎz~ź¤PnMĪÖB£kné§żćĆKǰ¼L¶èâz¨u¦¥LDĘz¬ýÎmĘd¾ßFzhg²Fy¦ĝ¤ċņbÎ@yĄæm°NĮZRÖíJ²öLĸÒ¨Y®ƌÐVàtt_ÚÂyĠz]ŢhzĎ{ÂĢXc|ÐqfO¢¤ögÌHNPKŖUú´xx[xvĐCûĀìÖT¬¸^}Ìsòd´_KgžLĴ
ÀBon|H@Êx¦BpŰŌ¿fµƌA¾zLjRx¶FkĄźRzŀ~¶[´HnªVƞuĒȨƎcƽÌm¸ÁÈM¦x͊ëÀxdžBú^´W£dkɾĬpw˂ØɦļĬIŚÊnŔa¸~J°îlɌxĤÊÈðhÌ®gT´øàCÀ^ªerrƘd¢İP|Ė ŸWªĦ^¶´ÂLaT±üWƜǀRÂŶUńĖ[QhlLüAÜ\\qRĄ©"],encodeOffsets:[[90849,37210]]},properties:{cp:[91.132212,29.660361],name:"西藏",childNum:1}},{id:"610000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@p¢ȮµûGĦ}Ħðǚ¶òƄjɂz°{ºØkÈęâ¦jªBg\\ċ°s¬]jú EȌdž¬stRÆdĠİwܸôW¾ƮłÒ_{Ìû¼jº¹¢GǪÒ¯ĘZ`ºŊecņą~BÂgzpâēòYǠȰÌTΨÂW|fcă§uF@N¢XLRMº[ğȣſï|¥Jkc`sʼnǷY¹W@µ÷K
ãï³ÛIcñ·VȋÚÒķø©þ¥yÓğęmWµÎumZyOŅƟĥÓ~sÑL¤µaÅ
Y¦ocyZ{y c]{Ta©`U_Ěē£ωÊƍKùK¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑdìUYOuFÕÈYvÁCqÓTǢí§·S¹NgV¬ë÷Át°DدC´ʼnƒópģ}ċcEË
FéGU¥×K
§¶³BČ}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO
ÿEËߌĤNĔwƇÄńwĪo[_KÓª³ÙnKÇěÿ]ďă_d©·©Ýŏ°Ù®g]±ßå¬÷m\\iaǑkěX{¢|ZKlçhLtŇîŵœè[É@ƉĄEtƇϳħZ«mJ
×¾MtÝĦ£IwÄå\\Õ{OwĬ©LÙ³ÙgBƕŀrÌĢŭO¥lãyC§HÍ£ßEñX¡°ÙCgpťzb`wIvA|§hoĕ@E±iYd¥OϹS|}F@¾oAO²{tfÜ¢FǂÒW²°BĤh^Wx{@¬F¸¡ķn£P|ªĴ@^ĠĈæbÔc¶lYi
^MicϰÂ[ävï¶gv@ÀĬ·lJ¸sn|¼u~a]ÆÈtŌºJpþ£KKf~¦UbyäIĺãnÔ¿^ŵMThĠܤko¼Ŏìąǜh`[tRd²IJ_XPrɲlXiL§à¹H°Ȧqº®QCbAŌJ¸ĕÚ³ĺ§ `d¨YjiZvRĺ±öVKkjGȊÄePĞZmļKÀ[`ösìhïÎoĬdtKÞ{¬èÒÒBÔpIJÇĬJŊ¦±J«Y§@·pHµàåVKepWftsAÅqC·¬ko«pHÆuK@oHĆÛķhxenS³àǍrqƶRbzy¸ËÐl¼EºpĤ¼x¼½~Ğà@ÚüdK^mÌSj"],encodeOffsets:[[110234,38774]]},properties:{cp:[108.948024,34.263161],name:"陕西",childNum:1}},{id:"620000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@VuUv"],["@@ũEĠtt~nkh`Q¦ÅÄÜdwAb×ĠąJ¤DüègĺqBqj°lI¡ĨÒ¤úSHbjÎB°aZ¢KJO[|A£Dx}NìHUnrk kp¼Y kMJn[aGáÚÏ[½rc}aQxOgsPMnUsncZ
sKúvAtÞġ£®ĀYKdnFw¢JE°Latf`¼h¬we|Æbj}GA·~W`¢MC¤tL©IJ°qdfObÞĬ¹ttu`^ZúE`[@Æsîz®¡CƳƜG²R¢RmfwĸgÜą G@pzJM½mhVy¸uÈÔO±¨{LfæU¶ßGĂq\\ª¬²I¥IʼnÈīoıÓÑAçÑ|«LÝcspīðÍg
të_õ\\ĉñLYnĝgRǡÁiHLlõUĹ²uQjYi§Z_c¨´ĹĖÙ·ŋI
aBDR¹ȥr¯GºßK¨jWkɱOqWij\\aQ\\sg_ĆǛōëp»£lğÛgSŶN®À]ÓämĹãJaz¥V}Le¤Lýo¹IsŋÅÇ^bz
³tmEÁ´a¹cčecÇNĊãÁ\\č¯dNj]jZµkÓdaćå]ğij@ ©O{¤ĸm¢E·®«|@Xwg]A챝XǁÑdzªcwQÚŝñsÕ³ÛV_ý¥\\ů¥©¾÷w©WÕÊĩhÿÖÁRo¸V¬âDb¨hûxÊ×nj~Zâg|XÁnßYoº§ZÅŘv[ĭÖʃuďxcVbnUSf
B¯³_TzºÎO©çMÑ~M³]µ^püµÄY~y@X~¤Z³[Èōl@®Å¼£QK·Di¡ByÿQ_´D¥hŗy^ĭÁZ]cIzýah¹MĪğPs{ò²Vw¹t³ŜË[Ñ}X\\gsF£sPAgěp×ëfYHāďÖqēŭOÏëdLü\\it^c®Rʺ¶¢H°mrY£B¹čIoľu¶uI]vģSQ{UŻÅ}QÂ|̰ƅ¤ĩŪU ęĄÌZÒ\\v²PĔ»ƢNHĂyAmƂwVm`]ÈbH`Ì¢²ILvĜH®¤Dlt_¢JJÄämèÔDëþgºƫaʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b
ð÷®üszMzÖĖQdȨýv§Tè|ªHþa¸|Ð ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\h¹¶v·À|\\ƁĚN´ĜçèÁz]ġ¤²¨QÒŨTIlªťØ}¼˗ƦvÄùØE«FïËIqōTvāÜŏíÛßÛVj³âwGăÂíNOPìyV³ʼnĖýZso§HÑiYw[ß\\X¦¥c]ÔƩÜ·«jÐqvÁ¦m^ċ±R¦ƈťĚgÀ»IïĨʗƮ°ƝĻþÍAƉſ±tÍEÕÞāNUÍ¡\\ſčåÒʻĘm ƭÌŹöʥëQ¤µÇcƕªoIýIÉ_mkl³ăƓ¦j¡YzŇi}Msßõīʋ }ÁVm_[n}eıUĥ¼ªI{ΧDÓƻėojqYhĹT©oūĶ£]ďxĩǑMĝq`B´ƃ˺Чç~²ņj@¥@đ´ί}ĥtPńǾV¬ufÓÉCtÓ̻
¹£G³]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼĤŊɲĖÂKq´ï¦ºĒDzņɾªǀÞĈĂD½ĄĎÌŗĞrôñnN¼â¾ʄľԆ|DŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿ĽĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY
tÁƤyAã˾J@ǝrý@¤
rz¸oP¹ɐÚyáHĀ[Jw
cVeȴÏ»ÈĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔĹŊũ~ËUă{ĻƹɁύȩþĽvĽƓÉ@ēĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶¨c~c¼īeXǚ\\đ¾JwÀďksãAfÕ¦L}waoZD½Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LFLzĈôe]gx}|KK}xklL]c¦£fRtív¦PĤoH{tK"]],encodeOffsets:[[[108619,36299]],[[108589,36341]]]},properties:{cp:[103.823557,36.058039],name:"甘肃",childNum:2}},{id:"630000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@InJm"],["@@CƽOŃĦsΰ~dz¦@@Ņi±è}ШƄ˹A³r_ĞǒNĪĐw¤^ŬĵªpĺSZgrpiƼĘÔ¨C|ÍJ©Ħ»®VIJ~f\\m `UnÂ~ʌĬàöNt~ňjy¢ZiƔ¥Ąk´nl`JÊJþ©pdƖ®È£¶ìRʦźõƮËnʼėæÑƀĎ[¢VÎĂMÖÝÎF²sƊƀÎBļýƞ¯ʘƭðħ¼Jh¿ŦęΌƇ¥²Q]Č¥nuÂÏri¸¬ƪÛ^Ó¦d¥[Wà
x\\ZjÒ¨GtpþYŊĕ´zUOëPîMĄÁxH´áiÜUàîÜŐĂÛSuŎrJð̬EFÁú×uÃÎkrĒ{V}İ«O_ÌËĬ©ÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u
ºµ[gt£¸OƤĿéYõ·kĀq]juw¥DĩƍõÇPéĽG©ã¤G
uȧþRcÕĕNyyûtøï»a½ē¿BMoį£Íj}éZËqbʍƬh¹ìÿÓAçãnIáI`ks£CGěUy×Cy
@¶ʡÊBnāzGơMē¼±O÷õJËĚăVĪũƆ£¯{ËL½ÌzżVR|ĠTbuvJvµhĻĖHAëáa
OÇðñęNw
œľ·LmI±íĠĩPÉ×®ÿscB³±JKßĊ«`
ađ»·QAmOVţéÿ¤¹SQt]]Çx±¯A@ĉij¢Óļ©l¶ÅÛrŕspãRk~¦ª]Į´FRådČsCqđéFn¿ÅƃmÉx{W©ºƝºįkÕƂƑ¸wWūЩÈF£\\tÈ¥ÄRÈýÌJ lGr^×äùyÞ³fjc¨£ÂZ|ǓMĝÏ@ëÜőRĝ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³ÞIňµç½©C¡į÷¯B»|St»]vųs»}MÓ ÿʪƟǭA¡fs»PY¼c¡»¦cċ¥£~msĉPSi^o©AecPeǵkgyUi¿h}aHĉ^|á´¡HØûÅ«ĉ®]m¡qĉ¶³ÈyôōLÁstB®wn±ă¥HSòė£Së@לÊăxÇN©©T±ª£IJ¡fb®Þbb_Ą¥xu¥B{łĝ³«`dƐt¤ťiñÍUuºí`£^tƃIJc·ÛLO½sç¥Ts{ă\\_»kϱq©čiìĉ|ÍI¥ć¥]ª§D{ŝŖÉR_sÿc³ĪōƿΧp[ĉc¯bKmR¥{³Ze^wx¹dƽŽôIg §Mĕ ƹĴ¿ǣÜÍ]Ý]snåA{eƭ`ǻŊĿ\\ijŬűYÂÿ¬jĖqßb¸L«¸©@ěĀ©ê¶ìÀEH|´bRľÓ¶rÀQþvl®ÕETzÜdb hw¤{LRdcb¯ÙVgƜßzÃôì®^jUèXÎ|UäÌ»rK\\ªN¼pZCüVY¤ɃRi^rPŇTÖ}|br°qňb̰ªiƶGQ¾²x¦PmlŜ[Ĥ¡ΞsĦÔÏâ\\ªÚŒU\\f
¢N²§x|¤§xĔsZPòʛ²SÐqF`ªVÞŜĶƨVZÌL`¢dŐIqr\\oäõF礻Ŷ×h¹]ClÙ\\¦ďÌį¬řtTӺƙgQÇÓHţĒ´ÃbEÄlbʔC|CŮkƮ[ʼ¬ň´KŮÈΰÌζƶlðļATUvdTGº̼ÔsÊDÔveOg"]],encodeOffsets:[[[105308,37219]],[[95370,40081]]]},properties:{cp:[101.778916,36.623178],name:"青海",childNum:2}},{id:"640000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@KëÀęĞ«Oęȿȕı]ʼn¡åįÕÔ«ǴõƪĚQÐZhv K°öqÀÑS[ÃÖHƖčËnL]ûc
Ùß@ĝ¾}w»»oģF¹»kÌÏ·{zP§B¢íyÅt@@á]Yv_ssģ¼ißĻL¾ġsKD£¡N_
X¸}B~HaiÅf{«x»ge_bsKF¯¡IxmELcÿZ¤ĢÝsuBLùtYdmVtNmtOPhRw~bd
¾qÐ\\âÙH\\bImlNZ»loqlVmGā§~QCw¤{A\\PKNY¯bFkC¥sks_Ã\\ă«¢ħkJi¯rrAhĹûç£CUĕĊ_ÔBixÅÙĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~hw^ófćKyEKzuÔ¡qQ¤xZÑ¢^ļöܾEp±âbÊÑÆ^fk¬
NC¾YpxbK~¥eÖäBlt¿Đx½I[ĒǙWf»Ĭ}d§dµùEuj¨IÆ¢¥dXªƅx¿]mtÏwßRĶX¢͎vÆzƂZò®ǢÌʆCrâºMÞzÆMÒÊÓŊZľr°Î®Ȉmª²ĈUªĚîøºĮ¦ÌĘk^FłĬhĚiĀ˾iİbjÕ"],["@@mfwěwMrŢªv@G"]],encodeOffsets:[[[109366,40242]],[[108600,36303]]]},properties:{cp:[106.278179,38.46637],name:"宁夏",childNum:2}},{id:"650000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@QØĔ²X¨~ǘBºjʐߨvKƔX¨vĊO÷¢i@~cĝe_«E}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX
êÎf`C¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥OéÈ¿ÖğǤǷÂFÒzÉx[]Ĥĝœ¦EP}ûƥé¿İƷTėƫœŕƅƱB»Đ±ēO
¦E}`cȺrĦáŖuÒª«IJπdƺÏØZƴwʄ¤ĖGĐǂZĶèH¶}ÚZצʥĪï|ÇĦMŔ»İĝLjì¥Βba¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»òmqóŘĝč˾ăC
ćāƿÝɽ©DZҹđ¥³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕUv£ƁQïƵkŏ½ΉÃŭdzLŇʻ«ƭ\\lŭD{ʓDkaFÃÄa³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍöůʼnT¡c_ËKYƧUśĵÝU_©rETÏʜ±OñtYwē¨{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\śnkOw¥±T»ƷFɯàĩÞáB¹Æ
ÑUwŕĽw[mG½Èå~Æ÷QyěCFmĭZīŵVÁƿQƛûXS²b½KϽĉS©ŷXĕ{ĕK·¥Ɨcqq©f¿]ßDõU³hgËÇïģÉɋwk¯í}I·œbmÉřīJɥĻˁ×xoɹīlc
¤³Xù]DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®ƝvUm©³G\\}µĿQyŹlăµEwLJQ½yƋBe¶ŋÀůo¥AÉw@{Gpm¿AijŽKLh³`ñcËtW±»ÕSëüÿďDu\\wwwù³VLŕOMËGh£õP¡erÏd{ġWÁ
č|yšg^ğyÁzÙs`s|ÉåªÇ}m¢Ń¨`x¥ù^}Ì¥H«YªƅAйn~ź¯f¤áÀzgÇDIÔ´AňĀÒ¶ûEYospõD[{ù°]uJqU|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw ÞkrťË¿XGÉbřaDü·Ē÷Aê[ÄäI®BÕĐÞ_¢āĠpÛÄȉĖġDKwbmÄNôfƫVÉvidzHQµâFùœ³¦{YGd¢ĚÜO {Ö¦ÞÍÀP^bƾl[vt×ĈÍE˨¡Đ~´î¸ùÎhuè`¸HÕŔVºwĠââWò@{ÙNÝ´ə²ȕn{¿¥{l÷eé^eďXj©î\\ªÑòÜìc\\üqÕ[Č¡xoÂċªbØø|¶ȴZdÆÂońéG\\¼C°ÌÆn´nxÊOĨŪƴĸ¢¸òTxÊǪMīĞÖŲÃɎOvʦƢ~FRěò¿ġ~åŊúN¸qĘ[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾ĄYÒ©ÊfºmÔĘcDoĬMŬS¤s²ʘÚžȂVŦ èW°ªB|IJXŔþÈJĦÆæFĚêYĂªĂ]øªŖNÞüAfɨJ¯ÎrDDĤ`mz\\§~D¬{vJ«lµĂb¤pŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMTòP÷fØĶK¢ȝ˔Sô¹òEð`Ɩ½ǒÂň×äı§ĤƝ§C~¡hlåǺŦŞkâ~}FøàIJaĞfƠ¥Ŕd®U¸źXv¢aƆúŪtŠųƠjdƺƺÅìnrh\\ĺ¯äɝĦ]èpĄ¦´LƞĬ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹\\ĜÑŚ¶ZƄ³àjĨoâȴLÊȮĐĚăÀêZǚŐ¤qȂ\\L¢ŌİfÆs|zºeªÙæ§{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTiƢ¾ªì°`öøu®Ê¾ãØ"],encodeOffsets:[[88824,50096]]},properties:{cp:[87.617733,43.792818],name:"新疆",childNum:1}},{id:"110000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ĽOÁûtŷmiÍt_H»Ĩ±d`¹{bw
Yr³S]§§o¹qGtm_SŧoaFLgQN_dV@Zom_ć\\ßc±x¯oœRcfe
£o§ËgToÛJíĔóu
|wP¤XnO¢ÉŦ¯rNÄā¤zâŖÈRpŢZÚ{GrFt¦Òx§ø¹RóäV¤XdżâºWbwڍUd®bêņ¾jnŎGŃŶnzÚSeîĜZczî¾i]ÍQaúÍÔiþĩȨWĢü|Ėu[qb[swP@ÅğP¿{\\¥A¨ÏѨj¯X\\¯MKpA³[H
īu}}"],encodeOffsets:[[120023,41045]]},properties:{cp:[116.405285,39.904989],name:"北京",childNum:1}},{id:"120000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@ŬgX§Ü«E
¶F̬O_ïlÁgz±AXeµÄĵ{¶]gitgIj·¥îakS¨ÐƎk}ĕ{gBqGf{¿aU^fIư³õ{YıëNĿk©ïËZŏR§òoY×Ógc
ĥs¡bġ«@dekąI[nlPqCnp{ō³°`{PNdƗqSÄĻNNâyj]äÒD ĬH°Æ]~¡HO¾X}ÐxgpgWrDGpù^LrzWxZ^¨´T\\|~@IzbĤjeĊªz£®ĔvěLmV¾Ô_ÈNW~zbĬvG²ZmDM~~"],encodeOffsets:[[120237,41215]]},properties:{cp:[117.190182,39.125596],name:"天津",childNum:1}},{id:"310000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@ɧư¬EpƸÁxc"],["@@©ª"],["@@MA"],["@@QpİE§ÉC¾"],["@@bŝÕÕEȣÚƥêImɇǦèÜĠÚÃƌÃ͎ó"],["@@ǜûȬɋŭ×^sYɍDŋŽąñCG²«ªč@h_p¯A{oloY¬j@IJ`gQÚhr|ǀ^MIJvtbe´R¯Ô¬¨Yô¤r]ìƬį"]],encodeOffsets:[[[124702,32062]],[[124547,32200]],[[124808,31991]],[[124726,32110]],[[124903,32376]],[[124438,32149]]]},properties:{cp:[121.472644,31.231706],name:"上海",childNum:6}},{id:"500000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êÐqHðqĖä¥^CÆIj²p
\\_ æüY|[YxƊæu°xb®
Űb@~¢NQt°¶Sæ Ê~rljĔëĚ¢~uf`faĔJåĊnÖ]jƎćÊ@£¾a®£Ű{ŶĕFègLk{Y|¡ĜWƔtƬJÑxq±ĢN´òKLÈüD|s`ŋć]Ã`đMûƱ½~Y°ħ`ƏíW½eI½{aOIrÏ¡ĕŇapµÜƅġ^ÖÛbÙŽŏml½SêqDu[RãË»ÿw`»y¸_ĺę}÷`M¯ċfCVµqʼn÷Zgg`d½pDOÎCn^uf²ènh¼WtƏxRGg¦
pVFI±G^Ic´ecGĹÞ½sëĬhxW}KÓeXsbkF¦LØgTkïƵNï¶}Gyw\\oñ¡nmĈzj@Óc£»Wă¹Ój_m»¹·~MvÛaq»ê\\ÂoVnÓØÍ²«bq¿efE Ĝ^Q~ Évýş¤²ĮpEİ}zcĺL½¿gÅ¡ýE¡ya£³t\\¨\\vú»¼§·Ñr_oÒý¥u_n»_At©Þűā§IVeëY}{VPÀFA¨ąB}q@|Ou\\FmQFÝ
Mwå}]|FmÏCawu_p¯sfÙgY
DHl`{QEfNysB¦zG¸rHeN\\CvEsÐùÜ_·ÖĉsaQ¯}_UxÃđqNH¬Äd^ÝŰR¬ã°wećJE·vÝ·HgéFXjÉê`|ypxkAwWĐpb¥eOsmzwqChóUQl¥F^lafanòsrEvfQdÁUVfÎvÜ^eftET¬ôA\\¢sJnQTjPØxøK|nBzĞ»LY
FDxÓvr[ehľvN¢o¾NiÂxGpâ¬zbfZo~hGi]öF||NbtOMn eA±tPTLjpYQ|SHYĀxinzDJÌg¢và¥Pg_ÇzIIII£®S¬Øsμ£N"],["@@ifjN@s"]],encodeOffsets:[[[109628,30765]],[[111725,31320]]]},properties:{cp:[106.504962,29.533155],name:"重庆",childNum:2}},{id:"810000",type:"Feature",geometry:{type:"MultiPolygon",coordinates:[["@@AlBk"],["@@mn"],["@@EpFo"],["@@ea¢pl¸Eõ¹hj[]ÔCÎ@lj¡uBX
´AI¹
[yDU]W`çwZkmc
MpÅv}IoJlcafŃK°ä¬XJmÐ đhI®æÔtSHnEÒrÈc"],["@@rMUwAS®e"]],encodeOffsets:[[[117111,23002]],[[117072,22876]],[[117045,22887]],[[116975,23082]],[[116882,22747]]]},properties:{cp:[114.173355,22.320048],name:"香港",childNum:5}},{id:"820000",type:"Feature",geometry:{type:"Polygon",coordinates:["@@kÊd°å§s"],encodeOffsets:[[116279,22639]]},properties:{cp:[113.54909,22.198951],name:"澳门",childNum:1}}],UTF8Encoding:!0}):void n("ECharts Map is not loaded"):void n("ECharts is not Loaded")})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=n(235);r(l);n(668);var u=i.default.createClass({displayName:"AirportCoordComponent",getOtion:function(){var e={"上海":[121.4648,31.2891],"东莞":[113.8953,22.901],"东营":[118.7073,37.5513],"中山":[113.4229,22.478],"临汾":[111.4783,36.1615],"临沂":[118.3118,35.2936],"丹东":[124.541,40.4242],"丽水":[119.5642,28.1854],"乌鲁木齐":[87.9236,43.5883],"佛山":[112.8955,23.1097],"保定":[115.0488,39.0948],"兰州":[103.5901,36.3043],"包头":[110.3467,41.4899],"北京":[116.4551,40.2539],"北海":[109.314,21.6211],"南京":[118.8062,31.9208],"南宁":[108.479,23.1152],"南昌":[116.0046,28.6633],"南通":[121.1023,32.1625],"厦门":[118.1689,24.6478],"台州":[121.1353,28.6688],"合肥":[117.29,32.0581],"呼和浩特":[111.4124,40.4901],"咸阳":[108.4131,34.8706],"哈尔滨":[127.9688,45.368],"唐山":[118.4766,39.6826],"嘉兴":[120.9155,30.6354],"大同":[113.7854,39.8035],"大连":[122.2229,39.4409],"天津":[117.4219,39.4189],"太原":[112.3352,37.9413],"威海":[121.9482,37.1393],"宁波":[121.5967,29.6466],"宝鸡":[107.1826,34.3433],"宿迁":[118.5535,33.7775],"常州":[119.4543,31.5582],"广州":[113.5107,23.2196],"廊坊":[116.521,39.0509],"延安":[109.1052,36.4252],"张家口":[115.1477,40.8527],"徐州":[117.5208,34.3268],"德州":[116.6858,37.2107],"惠州":[114.6204,23.1647],"成都":[103.9526,30.7617],"扬州":[119.4653,32.8162],"承德":[117.5757,41.4075],"拉萨":[91.1865,30.1465],"无锡":[120.3442,31.5527],"日照":[119.2786,35.5023],"昆明":[102.9199,25.4663],"杭州":[119.5313,29.8773],"枣庄":[117.323,34.8926],"柳州":[109.3799,24.9774],"株洲":[113.5327,27.0319],"武汉":[114.3896,30.6628],"汕头":[117.1692,23.3405],"江门":[112.6318,22.1484],"沈阳":[123.1238,42.1216],"沧州":[116.8286,38.2104],"河源":[114.917,23.9722],"泉州":[118.3228,25.1147],"泰安":[117.0264,36.0516],"泰州":[120.0586,32.5525],"济南":[117.1582,36.8701],"济宁":[116.8286,35.3375],"海口":[110.3893,19.8516],"淄博":[118.0371,36.6064],"淮安":[118.927,33.4039],"深圳":[114.5435,22.5439],"清远":[112.9175,24.3292],"温州":[120.498,27.8119],"渭南":[109.7864,35.0299],"湖州":[119.8608,30.7782],"湘潭":[112.5439,27.7075],"滨州":[117.8174,37.4963],"潍坊":[119.0918,36.524],"烟台":[120.7397,37.5128],"玉溪":[101.9312,23.8898],"珠海":[113.7305,22.1155],"盐城":[120.2234,33.5577],"盘锦":[121.9482,41.0449],"石家庄":[114.4995,38.1006],"福州":[119.4543,25.9222],"秦皇岛":[119.2126,40.0232],"绍兴":[120.564,29.7565],"聊城":[115.9167,36.4032],"肇庆":[112.1265,23.5822],"舟山":[122.2559,30.2234],"苏州":[120.6519,31.3989],"莱芜":[117.6526,36.2714],"菏泽":[115.6201,35.2057],"营口":[122.4316,40.4297],"葫芦岛":[120.1575,40.578],"衡水":[115.8838,37.7161],"衢州":[118.6853,28.8666],"西宁":[101.4038,36.8207],"西安":[109.1162,34.2004],"贵阳":[106.6992,26.7682],"连云港":[119.1248,34.552],"邢台":[114.8071,37.2821],"邯郸":[114.4775,36.535],"郑州":[113.4668,34.6234],"鄂尔多斯":[108.9734,39.2487],"重庆":[107.7539,30.1904],"金华":[120.0037,29.1028],"铜川":[109.0393,35.1947],"银川":[106.3586,38.1775],"镇江":[119.4763,31.9702],"长春":[125.8154,44.2584],"长沙":[113.0823,28.2568],"长治":[112.8625,36.4746],"阳泉":[113.4778,38.0951],"青岛":[120.4651,36.3373],"韶关":[113.7964,24.7028]},t=[[{name:"北京"},{name:"上海",value:95}],[{name:"北京"},{name:"广州",value:90}],[{name:"北京"},{name:"大连",value:80}],[{name:"北京"},{name:"南宁",value:70}],[{name:"北京"},{name:"南昌",value:60}],[{name:"北京"},{name:"拉萨",value:50}],[{name:"北京"},{name:"长春",value:40}],[{name:"北京"},{name:"包头",value:30}],[{name:"北京"},{name:"重庆",value:20}],[{name:"北京"},{name:"常州",value:10}]],n=[[{name:"上海"},{name:"包头",value:95}],[{name:"上海"},{name:"昆明",value:90}],[{name:"上海"},{name:"广州",value:80}],[{name:"上海"},{name:"郑州",value:70}],[{name:"上海"},{name:"长春",value:60}],[{name:"上海"},{name:"重庆",value:50}],[{name:"上海"},{name:"长沙",value:40}],[{name:"上海"},{name:"北京",value:30}],[{name:"上海"},{name:"丹东",value:20}],[{name:"上海"},{name:"大连",value:10}]],r=[[{name:"广州"},{name:"福州",value:95}],[{name:"广州"},{name:"太原",value:90}],[{name:"广州"},{name:"长春",value:80}],[{name:"广州"},{name:"重庆",value:70}],[{name:"广州"},{name:"西安",value:60}],[{name:"广州"},{name:"成都",value:50}],[{name:"广州"},{name:"常州",value:40}],[{name:"广州"},{name:"北京",value:30}],[{name:"广州"},{name:"北海",value:20}],[{name:"广州"},{name:"海口",value:10}]],a="path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z",i=function(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],i=e[a[0].name],o=e[a[1].name];i&&o&&n.push({fromName:a[0].name,toName:a[1].name,coords:[i,o]})}return n},o=["#a6c84c","#ffa022","#46bee9"],s=[];[["北京",t],["上海",n],["广州",r]].forEach(function(t,n){s.push({name:t[0]+" Top10",type:"lines",zlevel:1,effect:{show:!0,period:6,trailLength:.7,color:"#fff",symbolSize:3},lineStyle:{normal:{color:o[n],width:0,curveness:.2}},data:i(t[1])},{name:t[0]+" Top10",type:"lines",zlevel:2,symbol:["none","arrow"],symbolSize:10,effect:{show:!0,period:6,trailLength:0,symbol:a,symbolSize:15},lineStyle:{normal:{color:o[n],width:1,opacity:.6,curveness:.2}},data:i(t[1])},{name:t[0]+" Top10",type:"effectScatter",coordinateSystem:"geo",zlevel:2,rippleEffect:{brushType:"stroke"},label:{normal:{show:!0,position:"right",formatter:"{b}"}},symbolSize:function(e){return e[2]/8},itemStyle:{normal:{color:o[n]}},data:t[1].map(function(t){return{name:t[1].name,value:e[t[1].name].concat([t[1].value])}})})});var l={backgroundColor:"#404a59",title:{text:"模拟迁徙",subtext:"数据纯属虚构",left:"center",textStyle:{color:"#fff"}},tooltip:{trigger:"item"},legend:{orient:"vertical",top:"bottom",left:"right",data:["北京 Top10","上海 Top10","广州 Top10"],textStyle:{color:"#fff"},selectedMode:"single"},geo:{map:"china",label:{emphasis:{show:!1}},roam:!0,itemStyle:{normal:{areaColor:"#323c48",borderColor:"#404a59"},emphasis:{areaColor:"#2a333d"}}},series:s};return l},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a airport chart. "),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"700px",width:"100%"},className:"react_for_echarts"})))}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=n(235),u=r(l),c=i.default.createClass({displayName:"CalendarComponent",getVirtulData:function(e){e=e||"2017";for(var t=+u.default.number.parseDate(e+"-01-01"),n=+u.default.number.parseDate(+e+1+"-01-01"),r=864e5,a=[],i=t;i<n;i+=r)a.push([u.default.format.formatTime("yyyy-MM-dd",i),Math.floor(1e3*Math.random())]);return a},getOtion:function(){var e=[[14858784e5,260],[14861376e5,200],[14865696e5,279],[14869152e5,847],[14873472e5,241],[14877792e5,411],[14881248e5,985]],t=e.map(function(e,t){return{source:t,target:t+1}});t.pop();var n={tooltip:{position:"top"},visualMap:[{min:0,max:1e3,calculable:!0,seriesIndex:[2,3,4],orient:"horizontal",left:"55%",bottom:20},{min:0,max:1e3,inRange:{color:["grey"],opacity:[0,.3]},controller:{inRange:{opacity:[.3,.6]},outOfRange:{color:"#ccc"}},calculable:!0,seriesIndex:[1],orient:"horizontal",left:"10%",bottom:20}],calendar:[{orient:"vertical",yearLabel:{margin:40},monthLabel:{nameMap:"cn",margin:20},dayLabel:{firstDay:1,nameMap:"cn"},cellSize:40,range:"2017-02"},{orient:"vertical",yearLabel:{margin:40},monthLabel:{margin:20},cellSize:40,left:460,range:"2017-01"},{orient:"vertical",yearLabel:{margin:40},monthLabel:{margin:20},cellSize:40,top:350,range:"2017-03"},{orient:"vertical",yearLabel:{margin:40},dayLabel:{firstDay:1,nameMap:["周日","周一","周二","周三","周四","周五","周六"]},monthLabel:{nameMap:"cn",margin:20},cellSize:40,top:350,left:460,range:"2017-04"}],series:[{type:"graph",edgeSymbol:["none","arrow"],coordinateSystem:"calendar",links:t,symbolSize:10,calendarIndex:0,data:e},{type:"heatmap",coordinateSystem:"calendar",data:this.getVirtulData(2017)},{type:"effectScatter",coordinateSystem:"calendar",calendarIndex:1,symbolSize:function(e){return e[1]/40},data:this.getVirtulData(2017)},{type:"scatter",coordinateSystem:"calendar",calendarIndex:2,symbolSize:function(e){return e[1]/60},data:this.getVirtulData(2017)},{type:"heatmap",coordinateSystem:"calendar",calendarIndex:3,data:this.getVirtulData(2017)}]};return n},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a calendar-charts "),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"700px",width:"100%"},className:"react_for_echarts"})))}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=i.default.createClass({displayName:"GaugeComponent",getOtion:function(){var e={backgroundColor:"#1b1b1b",tooltip:{formatter:"{a} <br/>{c} {b}"},toolbox:{show:!0,feature:{mark:{show:!0},restore:{show:!0},saveAsImage:{show:!0}}},series:[{name:"速度",type:"gauge",min:0,max:220,splitNumber:11,radius:"50%",axisLine:{lineStyle:{color:[[.09,"lime"],[.82,"#1e90ff"],[1,"#ff4500"]],width:3,shadowColor:"#fff",shadowBlur:10}},axisLabel:{textStyle:{fontWeight:"bolder",color:"#fff",shadowColor:"#fff",shadowBlur:10}},axisTick:{length:15,lineStyle:{color:"auto",shadowColor:"#fff",shadowBlur:10}},splitLine:{length:25,lineStyle:{width:3,color:"#fff",shadowColor:"#fff",shadowBlur:10}},pointer:{shadowColor:"#fff",shadowBlur:5},title:{textStyle:{fontWeight:"bolder",fontSize:20,fontStyle:"italic",color:"#fff",shadowColor:"#fff",shadowBlur:10}},detail:{backgroundColor:"rgba(30,144,255,0.8)",borderWidth:1,borderColor:"#fff",shadowColor:"#fff",shadowBlur:5,offsetCenter:[0,"50%"],textStyle:{fontWeight:"bolder",color:"#fff"}},data:[{value:40,name:"km/h"}]},{name:"转速",type:"gauge",center:["25%","55%"],radius:"30%",min:0,max:7,endAngle:45,splitNumber:7,axisLine:{lineStyle:{color:[[.29,"lime"],[.86,"#1e90ff"],[1,"#ff4500"]],width:2,shadowColor:"#fff",shadowBlur:10}},axisLabel:{textStyle:{fontWeight:"bolder",color:"#fff",shadowColor:"#fff",shadowBlur:10}},axisTick:{length:12,lineStyle:{color:"auto",shadowColor:"#fff",shadowBlur:10}},splitLine:{length:20,lineStyle:{width:3,color:"#fff",shadowColor:"#fff",shadowBlur:10}},pointer:{width:5,shadowColor:"#fff",shadowBlur:5},title:{offsetCenter:[0,"-30%"],textStyle:{fontWeight:"bolder",fontStyle:"italic",color:"#fff",shadowColor:"#fff",shadowBlur:10}},detail:{borderColor:"#fff",shadowColor:"#fff",shadowBlur:5,width:80,height:30,offsetCenter:[25,"20%"],textStyle:{fontWeight:"bolder",color:"#fff"}},data:[{value:1.5,name:"x1000 r/min"}]},{name:"油表",type:"gauge",center:["75%","50%"],radius:"30%",min:0,max:2,startAngle:135,endAngle:45,splitNumber:2,axisLine:{lineStyle:{color:[[.2,"lime"],[.8,"#1e90ff"],[1,"#ff4500"]],width:2,shadowColor:"#fff",shadowBlur:10}},axisTick:{length:12,lineStyle:{color:"auto",shadowColor:"#fff",shadowBlur:10}},axisLabel:{textStyle:{fontWeight:"bolder",color:"#fff",shadowColor:"#fff",shadowBlur:10},formatter:function(e){switch(e+""){case"0":return"E";case"1":return"Gas";case"2":return"F"}}},splitLine:{length:15,lineStyle:{width:3,color:"#fff",shadowColor:"#fff",shadowBlur:10}},pointer:{width:2,shadowColor:"#fff",shadowBlur:5},title:{show:!1},detail:{show:!1},data:[{value:.5,name:"gas"}]},{name:"水表",type:"gauge",center:["75%","50%"],radius:"30%",min:0,max:2,startAngle:315,endAngle:225,splitNumber:2,axisLine:{lineStyle:{color:[[.2,"lime"],[.8,"#1e90ff"],[1,"#ff4500"]],width:2,shadowColor:"#fff",shadowBlur:10}},axisTick:{show:!1},axisLabel:{textStyle:{fontWeight:"bolder",color:"#fff",shadowColor:"#fff",shadowBlur:10},formatter:function(e){switch(e+""){case"0":return"H";case"1":return"Water";case"2":return"C"}}},splitLine:{length:15,lineStyle:{width:3,color:"#fff",shadowColor:"#fff",shadowBlur:10}},pointer:{
|
|
65
|
-
width:2,shadowColor:"#fff",shadowBlur:5},title:{show:!1},detail:{show:!1},data:[{value:.5,name:"gas"}]}]};return e},timeTicket:null,getInitialState:function(){return{option:this.getOtion()}},componentDidMount:function(){var e=this;this.timeTicket&&clearInterval(this.timeTicket),this.timeTicket=setInterval(function(){var t=e.state.option;t.series[0].data[0].value=(100*Math.random()).toFixed(2)-0,t.series[1].data[0].value=(7*Math.random()).toFixed(2)-0,t.series[2].data[0].value=(2*Math.random()).toFixed(2)-0,t.series[3].data[0].value=(2*Math.random()).toFixed(2)-0,e.setState({option:t})},1e3)},componentWillUnmount:function(){this.timeTicket&&clearInterval(this.timeTicket)},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a car gauge chart. "),i.default.createElement(s.default,{option:this.state.option,style:{height:"500px",width:"100%"},className:"react_for_echarts"})))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=n(235),u=r(l),c=i.default.createClass({displayName:"GCalendarComponent",getVirtulData:function(e){e=e||"2017";for(var t=+u.default.number.parseDate(e+"-01-01"),n=+u.default.number.parseDate(+e+1+"-01-01"),r=864e5,a=[],i=t;i<n;i+=r)a.push([u.default.format.formatTime("yyyy-MM-dd",i),Math.floor(1e3*Math.random())]);return a},getOtion:function(){var e={tooltip:{position:"top"},visualMap:{min:0,max:1e3,calculable:!0,orient:"horizontal",left:"center",top:"top"},calendar:[{range:"2017",cellSize:["auto",20]},{top:260,range:"2016",cellSize:["auto",20]}],series:[{type:"heatmap",coordinateSystem:"calendar",calendarIndex:0,data:this.getVirtulData(2017)},{type:"heatmap",coordinateSystem:"calendar",calendarIndex:1,data:this.getVirtulData(2016)}]};return e},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a calendar like github commit history. "),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"500px",width:"100%"},className:"react_for_echarts"})))}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=i.default.createClass({displayName:"GraphComponent",getOtion:function(){var e={type:"force",categories:[{name:"HTMLElement",keyword:{},base:"HTMLElement"},{name:"WebGL",keyword:{},base:"WebGLRenderingContext"},{name:"SVG",keyword:{},base:"SVGElement"},{name:"CSS",keyword:{},base:"CSSRule"},{name:"Other",keyword:{}}],nodes:[{name:"AnalyserNode",value:1,category:4},{name:"AudioNode",value:1,category:4},{name:"Uint8Array",value:1,category:4},{name:"Float32Array",value:1,category:4},{name:"ArrayBuffer",value:1,category:4},{name:"ArrayBufferView",value:1,category:4},{name:"Attr",value:1,category:4},{name:"Node",value:1,category:4},{name:"Element",value:1,category:4},{name:"AudioBuffer",value:1,category:4},{name:"AudioBufferCallback",value:1,category:4},{name:"AudioBufferSourceNode",value:1,category:4},{name:"AudioSourceNode",value:1,category:4},{name:"AudioGain",value:1,category:4},{name:"AudioParam",value:1,category:4},{name:"AudioContext",value:1,category:4},{name:"AudioDestinationNode",value:1,category:4},{name:"AudioListener",value:1,category:4},{name:"BiquadFilterNode",value:1,category:4},{name:"ChannelMergerNode",value:1,category:4},{name:"ChannelSplitterNode",value:1,category:4},{name:"ConvolverNode",value:1,category:4},{name:"DelayNode",value:1,category:4},{name:"DynamicsCompressorNode",value:1,category:4},{name:"GainNode",value:1,category:4},{name:"MediaElementAudioSourceNode",value:1,category:4},{name:"MediaStreamAudioDestinationNode",value:1,category:4},{name:"MediaStreamAudioSourceNode",value:1,category:4},{name:"OscillatorNode",value:1,category:4},{name:"PannerNode",value:1,category:4},{name:"ScriptProcessorNode",value:1,category:4},{name:"WaveShaperNode",value:1,category:4},{name:"WaveTable",value:1,category:4},{name:"CanvasRenderingContext",value:1,category:4},{name:"HTMLCanvasElement",value:1,category:0},{name:"CanvasRenderingContext2D",value:1,category:4},{name:"ImageData",value:1,category:4},{name:"CanvasGradient",value:1,category:4},{name:"CanvasPattern",value:1,category:4},{name:"HTMLImageElement",value:1,category:0},{name:"HTMLVideoElement",value:1,category:0},{name:"TextMetrics",value:1,category:4},{name:"CDATASection",value:1,category:4},{name:"Text",value:1,category:4},{name:"CharacterData",value:1,category:4},{name:"ClientRectList",value:1,category:4},{name:"ClientRect",value:1,category:4},{name:"Clipboard",value:1,category:4},{name:"FileList",value:1,category:4},{name:"DataTransferItemList",value:1,category:4},{name:"Comment",value:1,category:4},{name:"Console",value:1,category:4},{name:"MemoryInfo",value:1,category:4},{name:"Crypto",value:1,category:4},{name:"CSSCharsetRule",value:1,category:3},{name:"CSSRule",value:3,category:3},{name:"CSSFontFaceRule",value:1,category:3},{name:"CSSStyleDeclaration",value:1,category:3},{name:"CSSImportRule",value:1,category:3},{name:"MediaList",value:1,category:4},{name:"CSSStyleSheet",value:1,category:3},{name:"CSSMediaRule",value:1,category:3},{name:"CSSRuleList",value:1,category:3},{name:"CSSPageRule",value:1,category:3},{name:"CSSPrimitiveValue",value:1,category:3},{name:"CSSValue",value:1,category:3},{name:"Counter",value:1,category:4},{name:"RGBColor",value:1,category:4},{name:"Rect",value:1,category:4},{name:"CSSStyleRule",value:1,category:3},{name:"StyleSheet",value:1,category:4},{name:"CSSUnknownRule",value:1,category:3},{name:"CSSValueList",value:1,category:3},{name:"Database",value:1,category:4},{name:"SQLTransactionCallback",value:1,category:4},{name:"DatabaseCallback",value:1,category:4},{name:"DatabaseSync",value:1,category:4},{name:"SQLTransactionSyncCallback",value:1,category:4},{name:"DataTransferItem",value:1,category:4},{name:"StringCallback",value:1,category:4},{name:"Entry",value:1,category:4},{name:"File",value:1,category:4},{name:"DataView",value:1,category:4},{name:"DedicatedWorkerContext",value:1,category:4},{name:"WorkerContext",value:1,category:4},{name:"DirectoryEntry",value:1,category:4},{name:"DirectoryReader",value:1,category:4},{name:"VoidCallback",value:1,category:4},{name:"DirectoryEntrySync",value:1,category:4},{name:"EntrySync",value:1,category:4},{name:"DirectoryReaderSync",value:1,category:4},{name:"FileEntrySync",value:1,category:4},{name:"EntriesCallback",value:1,category:4},{name:"EntryArraySync",value:1,category:4},{name:"DocumentFragment",value:1,category:4},{name:"NodeList",value:1,category:4},{name:"DocumentType",value:1,category:4},{name:"NamedNodeMap",value:1,category:4},{name:"DOMFileSystem",value:1,category:4},{name:"DOMFileSystemSync",value:1,category:4},{name:"DOMImplementation",value:1,category:4},{name:"HTMLDocument",value:1,category:0},{name:"DOMMimeType",value:1,category:4},{name:"DOMPlugin",value:1,category:4},{name:"DOMMimeTypeArray",value:1,category:4},{name:"DOMPluginArray",value:1,category:4},{name:"DOMSelection",value:1,category:4},{name:"Range",value:1,category:4},{name:"DOMSettableTokenList",value:1,category:4},{name:"DOMTokenList",value:1,category:4},{name:"DOMStringMap",value:1,category:4},{name:"ShadowRoot",value:1,category:4},{name:"Entity",value:1,category:4},{name:"EntityReference",value:1,category:4},{name:"EntryArray",value:1,category:4},{name:"MetadataCallback",value:1,category:4},{name:"EntryCallback",value:1,category:4},{name:"Metadata",value:1,category:4},{name:"ErrorCallback",value:1,category:4},{name:"FileError",value:1,category:4},{name:"FileCallback",value:1,category:4},{name:"FileEntry",value:1,category:4},{name:"FileWriterCallback",value:1,category:4},{name:"FileWriterSync",value:1,category:4},{name:"FileReader",value:1,category:4},{name:"FileReaderSync",value:1,category:4},{name:"FileSystemCallback",value:1,category:4},{name:"FileWriter",value:1,category:4},{name:"Float64Array",value:1,category:4},{name:"GamepadList",value:1,category:4},{name:"Gamepad",value:1,category:4},{name:"Geolocation",value:1,category:4},{name:"PositionCallback",value:1,category:4},{name:"Geoposition",value:1,category:4},{name:"Coordinates",value:1,category:4},{name:"HTMLAllCollection",value:1,category:0},{name:"HTMLAnchorElement",value:1,category:0},{name:"HTMLElement",value:3,category:0},{name:"HTMLAppletElement",value:1,category:0},{name:"HTMLAreaElement",value:1,category:0},{name:"HTMLAudioElement",value:1,category:0},{name:"HTMLMediaElement",value:1,category:0},{name:"HTMLBaseElement",value:1,category:0},{name:"HTMLBaseFontElement",value:1,category:0},{name:"HTMLBodyElement",value:1,category:0},{name:"HTMLBRElement",value:1,category:0},{name:"HTMLButtonElement",value:1,category:0},{name:"HTMLFormElement",value:1,category:0},{name:"ValidityState",value:1,category:4},{name:"HTMLCollection",value:1,category:0},{name:"HTMLContentElement",value:1,category:0},{name:"HTMLDataListElement",value:1,category:0},{name:"HTMLDetailsElement",value:1,category:0},{name:"HTMLDirectoryElement",value:1,category:0},{name:"HTMLDivElement",value:1,category:0},{name:"HTMLDListElement",value:1,category:0},{name:"HTMLEmbedElement",value:1,category:0},{name:"SVGDocument",value:1,category:2},{name:"HTMLFieldSetElement",value:1,category:0},{name:"HTMLFontElement",value:1,category:0},{name:"HTMLFormControlsCollection",value:1,category:0},{name:"HTMLFrameElement",value:1,category:0},{name:"HTMLFrameSetElement",value:1,category:0},{name:"HTMLHeadElement",value:1,category:0},{name:"HTMLHeadingElement",value:1,category:0},{name:"HTMLHRElement",value:1,category:0},{name:"HTMLHtmlElement",value:1,category:0},{name:"HTMLIFrameElement",value:1,category:0},{name:"HTMLInputElement",value:1,category:0},{name:"HTMLKeygenElement",value:1,category:0},{name:"HTMLLabelElement",value:1,category:0},{name:"HTMLLegendElement",value:1,category:0},{name:"HTMLLIElement",value:1,category:0},{name:"HTMLLinkElement",value:1,category:0},{name:"HTMLMapElement",value:1,category:0},{name:"HTMLMarqueeElement",value:1,category:0},{name:"TimeRanges",value:1,category:4},{name:"MediaController",value:1,category:4},{name:"MediaError",value:1,category:4},{name:"TextTrackList",value:1,category:4},{name:"TextTrack",value:1,category:4},{name:"HTMLMenuElement",value:1,category:0},{name:"HTMLMetaElement",value:1,category:0},{name:"HTMLMeterElement",value:1,category:0},{name:"HTMLModElement",value:1,category:0},{name:"HTMLObjectElement",value:1,category:0},{name:"HTMLOListElement",value:1,category:0},{name:"HTMLOptGroupElement",value:1,category:0},{name:"HTMLOptionElement",value:1,category:0},{name:"HTMLOptionsCollection",value:1,category:0},{name:"HTMLOutputElement",value:1,category:0},{name:"HTMLParagraphElement",value:1,category:0},{name:"HTMLParamElement",value:1,category:0},{name:"HTMLPreElement",value:1,category:0},{name:"HTMLProgressElement",value:1,category:0},{name:"HTMLQuoteElement",value:1,category:0},{name:"HTMLScriptElement",value:1,category:0},{name:"HTMLSelectElement",value:1,category:0},{name:"HTMLShadowElement",value:1,category:0},{name:"HTMLSourceElement",value:1,category:0},{name:"HTMLSpanElement",value:1,category:0},{name:"HTMLStyleElement",value:1,category:0},{name:"HTMLTableCaptionElement",value:1,category:0},{name:"HTMLTableCellElement",value:1,category:0},{name:"HTMLTableColElement",value:1,category:0},{name:"HTMLTableElement",value:1,category:0},{name:"HTMLTableSectionElement",value:1,category:0},{name:"HTMLTableRowElement",value:1,category:0},{name:"HTMLTextAreaElement",value:1,category:0},{name:"HTMLTitleElement",value:1,category:0},{name:"HTMLTrackElement",value:1,category:0},{name:"HTMLUListElement",value:1,category:0},{name:"HTMLUnknownElement",value:1,category:0},{name:"IDBCursor",value:1,category:4},{name:"IDBAny",value:1,category:4},{name:"IDBKey",value:1,category:4},{name:"IDBRequest",value:1,category:4},{name:"IDBCursorWithValue",value:1,category:4},{name:"IDBDatabase",value:1,category:4},{name:"DOMStringList",value:1,category:4},{name:"IDBObjectStore",value:1,category:4},{name:"IDBTransaction",value:1,category:4},{name:"IDBFactory",value:1,category:4},{name:"IDBVersionChangeRequest",value:1,category:4},{name:"IDBOpenDBRequest",value:1,category:4},{name:"IDBIndex",value:1,category:4},{name:"IDBKeyRange",value:1,category:4},{name:"DOMError",value:1,category:4},{name:"Int16Array",value:1,category:4},{name:"Int32Array",value:1,category:4},{name:"Int8Array",value:1,category:4},{name:"JavaScriptCallFrame",value:1,category:4},{name:"LocalMediaStream",value:1,category:4},{name:"MediaStream",value:1,category:4},{name:"Location",value:1,category:4},{name:"MediaQueryList",value:1,category:4},{name:"MediaQueryListListener",value:1,category:4},{name:"MediaSource",value:1,category:4},{name:"SourceBufferList",value:1,category:4},{name:"SourceBuffer",value:1,category:4},{name:"MediaStreamTrackList",value:1,category:4},{name:"MediaStreamList",value:1,category:4},{name:"MediaStreamTrack",value:1,category:4},{name:"MessageChannel",value:1,category:4},{name:"MessagePort",value:1,category:4},{name:"MutationObserver",value:1,category:4},{name:"MutationRecord",value:1,category:4},{name:"Navigator",value:1,category:4},{name:"BatteryManager",value:1,category:4},{name:"NavigatorUserMediaErrorCallback",value:1,category:4},{name:"NavigatorUserMediaError",value:1,category:4},{name:"NavigatorUserMediaSuccessCallback",value:1,category:4},{name:"NodeFilter",value:1,category:4},{name:"NodeIterator",value:1,category:4},{name:"Notation",value:1,category:4},{name:"Notification",value:1,category:4},{name:"NotificationPermissionCallback",value:1,category:4},{name:"NotificationCenter",value:1,category:4},{name:"OESVertexArrayObject",value:1,category:4},{name:"WebGLVertexArrayObjectOES",value:1,category:1},{name:"Performance",value:1,category:4},{name:"PerformanceNavigation",value:1,category:4},{name:"PerformanceTiming",value:1,category:4},{name:"PositionErrorCallback",value:1,category:4},{name:"PositionError",value:1,category:4},{name:"ProcessingInstruction",value:1,category:4},{name:"RadioNodeList",value:1,category:4},{name:"RTCDataChannel",value:1,category:4},{name:"RTCPeerConnection",value:1,category:4},{name:"RTCSessionDescription",value:1,category:4},{name:"RTCIceCandidate",value:1,category:4},{name:"RTCSessionDescriptionCallback",value:1,category:4},{name:"RTCStatsCallback",value:1,category:4},{name:"RTCStatsResponse",value:1,category:4},{name:"RTCStatsReport",value:1,category:4},{name:"RTCStatsElement",value:1,category:4},{name:"ScriptProfile",value:1,category:4},{name:"ScriptProfileNode",value:1,category:4},{name:"SharedWorker",value:1,category:4},{name:"AbstractWorker",value:1,category:4},{name:"SharedWorkerContext",value:1,category:4},{name:"SpeechGrammarList",value:1,category:4},{name:"SpeechGrammar",value:1,category:4},{name:"SpeechInputResultList",value:1,category:4},{name:"SpeechInputResult",value:1,category:4},{name:"SpeechRecognition",value:1,category:4},{name:"SpeechRecognitionResult",value:1,category:4},{name:"SpeechRecognitionAlternative",value:1,category:4},{name:"SpeechRecognitionResultList",value:1,category:4},{name:"SQLResultSet",value:1,category:4},{name:"SQLResultSetRowList",value:1,category:4},{name:"SQLStatementCallback",value:1,category:4},{name:"SQLTransaction",value:1,category:4},{name:"SQLStatementErrorCallback",value:1,category:4},{name:"SQLTransactionErrorCallback",value:1,category:4},{name:"SQLError",value:1,category:4},{name:"SQLTransactionSync",value:1,category:4},{name:"StorageInfo",value:1,category:4},{name:"StorageInfoUsageCallback",value:1,category:4},{name:"StorageInfoQuotaCallback",value:1,category:4},{name:"StorageInfoErrorCallback",value:1,category:4},{name:"DOMCoreException",value:1,category:4},{name:"StyleSheetList",value:1,category:4},{name:"SVGAElement",value:1,category:2},{name:"SVGTransformable",value:1,category:2},{name:"SVGAnimatedString",value:1,category:2},{name:"SVGAltGlyphDefElement",value:1,category:2},{name:"SVGElement",value:3,category:2},{name:"SVGAltGlyphElement",value:1,category:2},{name:"SVGURIReference",value:1,category:2},{name:"SVGAltGlyphItemElement",value:1,category:2},{name:"SVGAnimateColorElement",value:1,category:2},{name:"SVGAnimationElement",value:1,category:2},{name:"SVGAnimatedAngle",value:1,category:2},{name:"SVGAngle",value:1,category:2},{name:"SVGAnimatedLength",value:1,category:2},{name:"SVGLength",value:1,category:2},{name:"SVGAnimatedLengthList",value:1,category:2},{name:"SVGLengthList",value:1,category:2},{name:"SVGAnimatedNumberList",value:1,category:2},{name:"SVGNumberList",value:1,category:2},{name:"SVGAnimatedPreserveAspectRatio",value:1,category:2},{name:"SVGPreserveAspectRatio",value:1,category:2},{name:"SVGAnimatedRect",value:1,category:2},{name:"SVGRect",value:1,category:2},{name:"SVGAnimatedTransformList",value:1,category:2},{name:"SVGTransformList",value:1,category:2},{name:"SVGAnimateElement",value:1,category:2},{name:"SVGAnimateMotionElement",value:1,category:2},{name:"SVGAnimateTransformElement",value:1,category:2},{name:"ElementTimeControl",value:1,category:4},{name:"SVGCircleElement",value:1,category:2},{name:"SVGClipPathElement",value:1,category:2},{name:"SVGAnimatedEnumeration",value:1,category:2},{name:"SVGColor",value:1,category:2},{name:"SVGComponentTransferFunctionElement",value:1,category:2},{name:"SVGAnimatedNumber",value:1,category:2},{name:"SVGCursorElement",value:1,category:2},{name:"SVGExternalResourcesRequired",value:1,category:2},{name:"SVGDefsElement",value:1,category:2},{name:"SVGDescElement",value:1,category:2},{name:"SVGStylable",value:1,category:2},{name:"SVGSVGElement",value:1,category:2},{name:"SVGElementInstance",value:1,category:2},{name:"EventTarget",value:1,category:4},{name:"SVGElementInstanceList",value:1,category:2},{name:"SVGUseElement",value:1,category:2},{name:"SVGEllipseElement",value:1,category:2},{name:"SVGAnimatedBoolean",value:1,category:2},{name:"SVGFEBlendElement",value:1,category:2},{name:"SVGFilterPrimitiveStandardAttributes",value:1,category:2},{name:"SVGFEColorMatrixElement",value:1,category:2},{name:"SVGFEComponentTransferElement",value:1,category:2},{name:"SVGFECompositeElement",value:1,category:2},{name:"SVGFEConvolveMatrixElement",value:1,category:2},{name:"SVGAnimatedInteger",value:1,category:2},{name:"SVGFEDiffuseLightingElement",value:1,category:2},{name:"SVGFEDisplacementMapElement",value:1,category:2},{name:"SVGFEDistantLightElement",value:1,category:2},{name:"SVGFEDropShadowElement",value:1,category:2},{name:"SVGFEFloodElement",value:1,category:2},{name:"SVGFEFuncAElement",value:1,category:2},{name:"SVGFEFuncBElement",value:1,category:2},{name:"SVGFEFuncGElement",value:1,category:2},{name:"SVGFEFuncRElement",value:1,category:2},{name:"SVGFEGaussianBlurElement",value:1,category:2},{name:"SVGFEImageElement",value:1,category:2},{name:"SVGFEMergeElement",value:1,category:2},{name:"SVGFEMergeNodeElement",value:1,category:2},{name:"SVGFEMorphologyElement",value:1,category:2},{name:"SVGFEOffsetElement",value:1,category:2},{name:"SVGFEPointLightElement",value:1,category:2},{name:"SVGFESpecularLightingElement",value:1,category:2},{name:"SVGFESpotLightElement",value:1,category:2},{name:"SVGFETileElement",value:1,category:2},{name:"SVGFETurbulenceElement",value:1,category:2},{name:"SVGFilterElement",value:1,category:2},{name:"SVGFitToViewBox",value:1,category:2},{name:"SVGFontElement",value:1,category:2},{name:"SVGFontFaceElement",value:1,category:2},{name:"SVGFontFaceFormatElement",value:1,category:2},{name:"SVGFontFaceNameElement",value:1,category:2},{name:"SVGFontFaceSrcElement",value:1,category:2},{name:"SVGFontFaceUriElement",value:1,category:2},{name:"SVGForeignObjectElement",value:1,category:2},{name:"SVGGElement",value:1,category:2},{name:"SVGGlyphElement",value:1,category:2},{name:"SVGGlyphRefElement",value:1,category:2},{name:"SVGGradientElement",value:1,category:2},{name:"SVGHKernElement",value:1,category:2},{name:"SVGImageElement",value:1,category:2},{name:"SVGLinearGradientElement",value:1,category:2},{name:"SVGLineElement",value:1,category:2},{name:"SVGLocatable",value:1,category:2},{name:"SVGMatrix",value:1,category:2},{name:"SVGMarkerElement",value:1,category:2},{name:"SVGMaskElement",value:1,category:2},{name:"SVGMetadataElement",value:1,category:2},{name:"SVGMissingGlyphElement",value:1,category:2},{name:"SVGMPathElement",value:1,category:2},{name:"SVGNumber",value:1,category:2},{name:"SVGPaint",value:1,category:2},{name:"SVGPathElement",value:1,category:2},{name:"SVGPathSegList",value:1,category:2},{name:"SVGPathSegArcAbs",value:1,category:2},{name:"SVGPathSegArcRel",value:1,category:2},{name:"SVGPathSegClosePath",value:1,category:2},{name:"SVGPathSegCurvetoCubicAbs",value:1,category:2},{name:"SVGPathSegCurvetoCubicRel",value:1,category:2},{name:"SVGPathSegCurvetoCubicSmoothAbs",value:1,category:2},{name:"SVGPathSegCurvetoCubicSmoothRel",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticAbs",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticRel",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticSmoothAbs",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticSmoothRel",value:1,category:2},{name:"SVGPathSegLinetoAbs",value:1,category:2},{name:"SVGPathSegLinetoHorizontalAbs",value:1,category:2},{name:"SVGPathSegLinetoHorizontalRel",value:1,category:2},{name:"SVGPathSegLinetoRel",value:1,category:2},{name:"SVGPathSegLinetoVerticalAbs",value:1,category:2},{name:"SVGPathSegLinetoVerticalRel",value:1,category:2},{name:"SVGPathSegMovetoAbs",value:1,category:2},{name:"SVGPathSegMovetoRel",value:1,category:2},{name:"SVGPoint",value:1,category:2},{name:"SVGPathSeg",value:1,category:2},{name:"SVGPatternElement",value:1,category:2},{name:"SVGPointList",value:1,category:2},{name:"SVGPolygonElement",value:1,category:2},{name:"SVGPolylineElement",value:1,category:2},{name:"SVGRadialGradientElement",value:1,category:2},{name:"SVGRectElement",value:1,category:2},{name:"SVGScriptElement",value:1,category:2},{name:"SVGSetElement",value:1,category:2},{name:"SVGStopElement",value:1,category:2},{name:"SVGStyleElement",value:1,category:2},{name:"SVGLangSpace",value:1,category:2},{name:"SVGZoomAndPan",value:1,category:2},{name:"SVGViewSpec",value:1,category:2},{name:"SVGTransform",value:1,category:2},{name:"SVGSwitchElement",value:1,category:2},{name:"SVGSymbolElement",value:1,category:2},{name:"SVGTests",value:1,category:2},{name:"SVGStringList",value:1,category:2},{name:"SVGTextContentElement",value:1,category:2},{name:"SVGTextElement",value:1,category:2},{name:"SVGTextPathElement",value:1,category:2},{name:"SVGTextPositioningElement",value:1,category:2},{name:"SVGTitleElement",value:1,category:2},{name:"SVGTRefElement",value:1,category:2},{name:"SVGTSpanElement",value:1,category:2},{name:"SVGViewElement",value:1,category:2},{name:"SVGVKernElement",value:1,category:2},{name:"TextTrackCueList",value:1,category:4},{name:"TextTrackCue",value:1,category:4},{name:"Touch",value:1,category:4},{name:"TouchList",value:1,category:4},{name:"TreeWalker",value:1,category:4},{name:"Uint16Array",value:1,category:4},{name:"Uint32Array",value:1,category:4},{name:"Uint8ClampedArray",value:1,category:4},{name:"WebGLRenderingContext",value:3,category:1},{name:"WebGLProgram",value:1,category:1},{name:"WebGLBuffer",value:1,category:1},{name:"WebGLFramebuffer",value:1,category:1},{name:"WebGLRenderbuffer",value:1,category:1},{name:"WebGLTexture",value:1,category:1},{name:"WebGLShader",value:1,category:1},{name:"WebGLActiveInfo",value:1,category:1},{name:"WebGLContextAttributes",value:1,category:1},{name:"WebGLShaderPrecisionFormat",value:1,category:1},{name:"WebGLUniformLocation",value:1,category:1},{name:"WebKitAnimationList",value:1,category:4},{name:"WebKitAnimation",value:1,category:4},{name:"WebKitCSSFilterValue",value:1,category:4},{name:"WebKitCSSKeyframeRule",value:1,category:4},{name:"WebKitCSSKeyframesRule",value:1,category:4},{name:"WebKitCSSMatrix",value:1,category:4},{name:"WebKitCSSMixFunctionValue",value:1,category:4},{name:"WebKitCSSTransformValue",value:1,category:4},{name:"WebKitNamedFlow",value:1,category:4},{name:"WebSocket",value:1,category:4},{name:"Worker",value:1,category:4},{name:"WorkerLocation",value:1,category:4},{name:"WorkerNavigator",value:1,category:4},{name:"XMLHttpRequest",value:1,category:4},{name:"XMLHttpRequestUpload",value:1,category:4},{name:"DOMFormData",value:1,category:4},{name:"XPathEvaluator",value:1,category:4},{name:"XPathExpression",value:1,category:4},{name:"XPathNSResolver",value:1,category:4},{name:"XPathResult",value:1,category:4},{name:"XSLTProcessor",value:1,category:4}],links:[{source:0,target:1},{source:0,target:2},{source:0,target:3},{source:4,target:4},{source:5,target:4},{source:6,target:7},{source:6,target:8},{source:9,target:3},{source:10,target:9},{source:11,target:12},{source:11,target:9},{source:11,target:13},{source:11,target:14},{source:15,target:16},{source:15,target:17},{source:15,target:0},{source:15,target:18},{source:15,target:9},{source:15,target:11},{source:15,target:19},{source:15,target:20},{source:15,target:21},{source:15,target:22},{source:15,target:23},{source:15,target:24},{source:15,target:25},{source:15,target:26},{source:15,target:27},{source:15,target:28},{source:15,target:29},{source:15,target:30},{source:15,target:31},{source:15,target:32},{source:15,target:4},{source:16,target:1},{source:13,target:14},{source:1,target:15},{source:1,target:1},{source:1,target:14},{source:14,target:3},{source:12,target:1},{source:18,target:1},{source:18,target:14},{source:18,target:3},{source:33,target:34},{source:35,target:33},{source:35,target:36},{source:35,target:37},{source:35,target:38},{source:35,target:39},{source:35,target:34},{source:35,target:40},{source:35,target:41},{source:42,target:43},{source:19,target:1},{source:20,target:1},{source:44,target:7},{source:45,target:46},{source:47,target:48},{source:47,target:49},{source:47,target:39},{source:50,target:44},{source:51,target:52},{source:21,target:1},{source:21,target:9},{source:53,target:5},{source:54,target:55},{source:56,target:55},{source:56,target:57},{source:58,target:55},{source:58,target:59},{source:58,target:60},{source:61,target:55},{source:61,target:62},{source:61,target:59},{source:63,target:55},{source:63,target:57},{source:64,target:65},{source:64,target:66},{source:64,target:67},{source:64,target:68},{source:55,target:55},{source:55,target:60},{source:62,target:55},{source:57,target:55},{source:57,target:65},{source:69,target:55},{source:69,target:57},{source:60,target:70},{source:60,target:62},{source:60,target:55},{source:71,target:55},{source:72,target:65},{source:73,target:74},{source:75,target:73},{source:75,target:76},{source:76,target:77},{source:78,target:79},{source:78,target:80},{source:49,target:81},{source:49,target:78},{source:82,target:5},{source:83,target:84},{source:22,target:1},{source:22,target:14},{source:85,target:80},{source:85,target:86},{source:85,target:87},{source:88,target:89},{source:88,target:90},{source:88,target:88},{source:88,target:91},{source:86,target:92},{source:90,target:93},{source:94,target:7},{source:94,target:8},{source:94,target:95},{source:96,target:7},{source:96,target:97},{source:98,target:85},{source:99,target:88},{source:100,target:60},{source:100,target:96},{source:100,target:101},{source:102,target:103},{source:104,target:102},{source:103,target:102},{source:105,target:103},{source:106,target:7},{source:106,target:107},{source:108,target:109},{source:23,target:1},{source:23,target:14},{source:8,target:7},{source:8,target:109},{source:8,target:110},{source:8,target:8},{source:8,target:57},{source:8,target:6},{source:8,target:46},{source:8,target:45},{source:8,target:95},{source:8,target:111},{source:112,target:7},{source:113,target:7},{source:92,target:114},{source:80,target:98},{source:80,target:85},{source:80,target:115},{source:80,target:116},{source:80,target:87},{source:114,target:80},{source:93,target:89},{source:116,target:80},{source:89,target:99},{source:89,target:89},{source:89,target:117},{source:89,target:88},{source:118,target:119},{source:120,target:81},{source:121,target:80},{source:121,target:122},{source:121,target:120},{source:91,target:89},{source:91,target:123},{source:91,target:81},{source:48,target:81},{source:124,target:119},{source:125,target:4},{source:126,target:98},{source:127,target:119},{source:122,target:127},{source:3,target:5},{source:3,target:3},{source:128,target:5},{source:128,target:128},{source:24,target:1},{source:24,target:13},{source:129,target:130},{source:131,target:132},{source:133,target:134},{source:135,target:7},{source:135,target:95},{source:136,target:137},{source:138,target:137},{source:139,target:137},{source:140,target:141},{source:142,target:137},{source:143,target:137},{source:144,target:137},{source:145,target:137},{source:146,target:137},{source:146,target:147},{source:146,target:95},{source:146,target:148},{source:34,target:137},{source:149,target:7},{source:150,target:137},{source:150,target:95},{source:151,target:137},{source:151,target:149},{source:152,target:137},{source:153,target:137},{source:154,target:137},{source:155,target:137},{source:101,target:8},{source:101,target:135},{source:101,target:149},{source:137,target:8},{source:137,target:149},{source:156,target:137},{source:156,target:157},{source:158,target:137},{source:158,target:149},{source:158,target:147},{source:158,target:148},{source:159,target:137},{source:160,target:149},{source:160,target:7},{source:147,target:137},{source:147,target:149},{source:161,target:137},{source:161,target:157},{source:162,target:137},{source:163,target:137},{source:164,target:137},{source:165,target:137},{source:166,target:137},{source:167,target:137},{source:167,target:157},{source:39,target:137},{source:168,target:137},{source:168,target:48},{source:168,target:147},{source:168,target:95},{source:168,target:148},{source:168,target:114},{source:169,target:137},{source:169,target:147},{source:169,target:95},{source:169,target:148},{source:170,target:137},{source:170,target:147},{source:171,target:137},{source:171,target:147},{source:172,target:137},{source:173,target:137},{source:173,target:70},{source:173,target:108},{source:174,target:137},{source:174,target:149},{source:175,target:137},{source:141,target:137},{source:141,target:176},{source:141,target:177},{source:141,target:178},{source:141,target:179},{source:141,target:180},{source:181,target:137},{source:182,target:137},{source:183,target:137},{source:183,target:95},{source:184,target:137},{source:185,target:137},{source:185,target:147},{source:185,target:148},{source:185,target:157},{source:186,target:137},{source:187,target:137},{source:188,target:137},{source:188,target:147},{source:189,target:149},{source:189,target:188},{source:189,target:7},{source:190,target:137},{source:190,target:147},{source:190,target:108},{source:190,target:95},{source:190,target:148},{source:191,target:137},{source:192,target:137},{source:193,target:137},{source:194,target:137},{source:194,target:95},{source:195,target:137},{source:196,target:137},{source:197,target:137},{source:197,target:147},{source:197,target:95},{source:197,target:189},{source:197,target:149},{source:197,target:148},{source:197,target:7},{source:198,target:137},{source:199,target:137},{source:200,target:137},{source:201,target:137},{source:201,target:70},{source:202,target:137},{source:203,target:137},{source:204,target:137},{source:205,target:137},{source:205,target:202},{source:205,target:149},{source:205,target:206},{source:207,target:137},{source:207,target:149},{source:206,target:137},{source:206,target:149},{source:208,target:137},{source:208,target:147},{source:208,target:95},{source:208,target:148},{
|
|
66
|
-
source:209,target:137},{source:210,target:137},{source:210,target:180},{source:211,target:137},{source:212,target:137},{source:40,target:141},{source:213,target:214},{source:213,target:215},{source:213,target:216},{source:217,target:213},{source:218,target:219},{source:218,target:214},{source:218,target:220},{source:218,target:221},{source:222,target:215},{source:222,target:223},{source:222,target:224},{source:222,target:216},{source:225,target:214},{source:225,target:220},{source:225,target:216},{source:226,target:215},{source:226,target:226},{source:220,target:219},{source:220,target:214},{source:220,target:221},{source:220,target:216},{source:220,target:225},{source:224,target:216},{source:216,target:227},{source:216,target:214},{source:216,target:221},{source:221,target:218},{source:221,target:227},{source:221,target:220},{source:223,target:216},{source:228,target:5},{source:228,target:228},{source:229,target:5},{source:229,target:229},{source:230,target:5},{source:230,target:230},{source:231,target:231},{source:232,target:233},{source:234,target:219},{source:177,target:176},{source:25,target:12},{source:25,target:141},{source:235,target:236},{source:236,target:235},{source:237,target:238},{source:237,target:239},{source:233,target:240},{source:26,target:12},{source:26,target:233},{source:27,target:12},{source:27,target:233},{source:241,target:233},{source:240,target:242},{source:243,target:244},{source:115,target:117},{source:245,target:7},{source:246,target:95},{source:246,target:7},{source:97,target:7},{source:247,target:131},{source:247,target:104},{source:247,target:105},{source:247,target:248},{source:247,target:129},{source:249,target:250},{source:251,target:232},{source:7,target:97},{source:7,target:95},{source:7,target:7},{source:7,target:8},{source:252,target:7},{source:253,target:252},{source:253,target:7},{source:95,target:7},{source:254,target:7},{source:255,target:256},{source:257,target:255},{source:257,target:87},{source:258,target:259},{source:28,target:12},{source:28,target:14},{source:28,target:32},{source:29,target:1},{source:260,target:52},{source:260,target:261},{source:260,target:262},{source:132,target:133},{source:263,target:264},{source:265,target:7},{source:265,target:70},{source:266,target:95},{source:107,target:7},{source:107,target:94},{source:107,target:107},{source:107,target:46},{source:107,target:45},{source:68,target:64},{source:67,target:64},{source:267,target:4},{source:267,target:5},{source:268,target:269},{source:268,target:241},{source:268,target:270},{source:268,target:233},{source:268,target:271},{source:268,target:267},{source:268,target:272},{source:271,target:269},{source:272,target:273},{source:274,target:275},{source:30,target:1},{source:276,target:277},{source:111,target:94},{source:111,target:8},{source:111,target:7},{source:111,target:95},{source:111,target:106},{source:278,target:279},{source:278,target:244},{source:280,target:84},{source:239,target:176},{source:239,target:2},{source:238,target:239},{source:281,target:282},{source:283,target:284},{source:285,target:281},{source:286,target:287},{source:288,target:286},{source:289,target:290},{source:291,target:292},{source:293,target:292},{source:74,target:292},{source:294,target:295},{source:296,target:289},{source:77,target:296},{source:297,target:298},{source:297,target:299},{source:300,target:301},{source:70,target:59},{source:70,target:7},{source:70,target:70},{source:302,target:70},{source:303,target:304},{source:303,target:305},{source:306,target:307},{source:308,target:309},{source:310,target:307},{source:311,target:312},{source:313,target:314},{source:315,target:316},{source:317,target:318},{source:319,target:320},{source:321,target:322},{source:323,target:324},{source:325,target:326},{source:327,target:312},{source:328,target:312},{source:329,target:312},{source:312,target:330},{source:312,target:307},{source:331,target:304},{source:331,target:315},{source:332,target:304},{source:332,target:333},{source:334,target:65},{source:334,target:67},{source:335,target:307},{source:335,target:336},{source:335,target:319},{source:335,target:333},{source:337,target:338},{source:337,target:315},{source:339,target:304},{source:340,target:341},{source:157,target:342},{source:307,target:8},{source:307,target:342},{source:307,target:307},{source:343,target:344},{source:343,target:345},{source:343,target:307},{source:343,target:346},{source:343,target:343},{source:345,target:343},{source:347,target:304},{source:347,target:315},{source:338,target:348},{source:349,target:350},{source:349,target:305},{source:349,target:333},{source:351,target:350},{source:351,target:305},{source:351,target:333},{source:351,target:319},{source:352,target:350},{source:352,target:305},{source:353,target:350},{source:353,target:305},{source:353,target:336},{source:353,target:333},{source:354,target:350},{source:354,target:336},{source:354,target:333},{source:354,target:305},{source:354,target:319},{source:354,target:355},{source:354,target:348},{source:356,target:350},{source:356,target:336},{source:356,target:305},{source:357,target:350},{source:357,target:305},{source:357,target:336},{source:357,target:333},{source:358,target:307},{source:358,target:336},{source:359,target:350},{source:359,target:336},{source:359,target:305},{source:360,target:350},{source:361,target:335},{source:362,target:335},{source:363,target:335},{source:364,target:335},{source:365,target:350},{source:365,target:305},{source:365,target:336},{source:366,target:350},{source:366,target:321},{source:367,target:350},{source:368,target:307},{source:368,target:305},{source:369,target:350},{source:369,target:305},{source:369,target:333},{source:369,target:336},{source:370,target:350},{source:370,target:336},{source:370,target:305},{source:371,target:307},{source:371,target:336},{source:372,target:350},{source:372,target:305},{source:372,target:336},{source:373,target:307},{source:373,target:336},{source:374,target:350},{source:374,target:305},{source:375,target:350},{source:375,target:336},{source:375,target:355},{source:375,target:333},{source:376,target:341},{source:376,target:355},{source:376,target:333},{source:376,target:315},{source:350,target:341},{source:350,target:315},{source:350,target:305},{source:377,target:321},{source:377,target:323},{source:378,target:307},{source:379,target:307},{source:380,target:307},{source:381,target:307},{source:382,target:307},{source:383,target:307},{source:384,target:304},{source:384,target:315},{source:385,target:304},{source:386,target:307},{source:387,target:341},{source:388,target:341},{source:388,target:325},{source:388,target:333},{source:389,target:307},{source:390,target:304},{source:390,target:315},{source:390,target:321},{source:318,target:316},{source:391,target:388},{source:391,target:315},{source:392,target:304},{source:392,target:315},{source:393,target:307},{source:393,target:324},{source:393,target:394},{source:395,target:377},{source:395,target:315},{source:395,target:333},{source:395,target:313},{source:395,target:314},{source:396,target:341},{source:396,target:315},{source:396,target:333},{source:394,target:394},{source:397,target:307},{source:398,target:307},{source:399,target:338},{source:320,target:400},{source:401,target:334},{source:402,target:304},{source:402,target:403},{source:402,target:336},{source:402,target:404},{source:402,target:405},{source:402,target:406},{source:402,target:407},{source:402,target:408},{source:402,target:409},{source:402,target:410},{source:402,target:411},{source:402,target:412},{source:402,target:413},{source:402,target:414},{source:402,target:415},{source:402,target:416},{source:402,target:417},{source:402,target:418},{source:402,target:419},{source:402,target:420},{source:402,target:421},{source:402,target:422},{source:402,target:423},{source:404,target:424},{source:405,target:424},{source:406,target:424},{source:407,target:424},{source:408,target:424},{source:409,target:424},{source:410,target:424},{source:411,target:424},{source:412,target:424},{source:413,target:424},{source:414,target:424},{source:415,target:424},{source:416,target:424},{source:417,target:424},{source:418,target:424},{source:419,target:424},{source:420,target:424},{source:403,target:424},{source:421,target:424},{source:422,target:424},{source:425,target:377},{source:425,target:315},{source:425,target:333},{source:425,target:325},{source:423,target:423},{source:426,target:423},{source:427,target:304},{source:427,target:426},{source:428,target:304},{source:428,target:426},{source:429,target:388},{source:429,target:315},{source:430,target:304},{source:430,target:315},{source:431,target:338},{source:432,target:312},{source:433,target:341},{source:433,target:336},{source:341,target:305},{source:341,target:57},{source:341,target:65},{source:434,target:435},{source:342,target:436},{source:342,target:423},{source:342,target:437},{source:342,target:315},{source:342,target:324},{source:342,target:307},{source:342,target:314},{source:342,target:316},{source:342,target:394},{source:342,target:400},{source:342,target:438},{source:342,target:8},{source:342,target:95},{source:439,target:304},{source:440,target:377},{source:441,target:442},{source:443,target:341},{source:443,target:333},{source:443,target:315},{source:443,target:423},{source:443,target:324},{source:444,target:304},{source:445,target:309},{source:445,target:333},{source:445,target:315},{source:446,target:443},{source:446,target:317},{source:446,target:319},{source:447,target:341},{source:438,target:394},{source:304,target:393},{source:304,target:325},{source:326,target:438},{source:448,target:309},{source:449,target:446},{source:309,target:305},{source:346,target:304},{source:346,target:343},{source:346,target:315},{source:450,target:436},{source:450,target:442},{source:437,target:321},{source:437,target:326},{source:437,target:323},{source:437,target:307},{source:451,target:307},{source:43,target:44},{source:43,target:43},{source:180,target:452},{source:180,target:453},{source:453,target:180},{source:453,target:94},{source:452,target:453},{source:179,target:180},{source:454,target:344},{source:455,target:454},{source:456,target:7},{source:456,target:252},{source:457,target:5},{source:457,target:457},{source:458,target:5},{source:458,target:458},{source:2,target:5},{source:2,target:2},{source:459,target:2},{source:459,target:459},{source:31,target:1},{source:31,target:3},{source:460,target:33},{source:460,target:461},{source:460,target:462},{source:460,target:463},{source:460,target:464},{source:460,target:465},{source:460,target:4},{source:460,target:5},{source:460,target:466},{source:460,target:467},{source:460,target:468},{source:460,target:469},{source:460,target:470},{source:460,target:36},{source:460,target:39},{source:460,target:34},{source:460,target:40},{source:460,target:3},{source:471,target:472},{source:473,target:72},{source:474,target:55},{source:474,target:57},{source:475,target:55},{source:475,target:62},{source:475,target:474},{source:476,target:476},{source:477,target:72},{source:478,target:72},{source:479,target:95},{source:480,target:4},{source:480,target:5},{source:481,target:279},{source:84,target:222},{source:84,target:482},{source:84,target:483},{source:84,target:84},{source:84,target:257},{source:84,target:73},{source:84,target:76},{source:84,target:126},{source:84,target:99},{source:84,target:89},{source:484,target:485},{source:484,target:4},{source:484,target:5},{source:484,target:486},{source:487,target:488},{source:487,target:489},{source:487,target:490},{source:488,target:490},{source:490,target:7},{source:491,target:7},{source:491,target:94}]},t={legend:{data:["HTMLElement","WebGL","SVG","CSS","Other"]},series:[{type:"graph",layout:"force",animation:!1,label:{normal:{position:"right",formatter:"{b}"}},draggable:!0,data:e.nodes.map(function(e,t){return e.id=t,e}),categories:e.categories,force:{edgeLength:5,repulsion:20,gravity:.2},edges:e.links}]};return t},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a graph-webkit-dep."),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"700px",width:"100%"},className:"react_for_echarts"})))}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=n(235),u=r(l),c=i.default.createClass({displayName:"LunarCalendarComponent",getOtion:function(){for(var e=[["2017-1-1","初四"],["2017-1-2","初五"],["2017-1-3","初六"],["2017-1-4","初七"],["2017-1-5","初八","小寒"],["2017-1-6","初九"],["2017-1-7","初十"],["2017-1-8","十一"],["2017-1-9","十二"],["2017-1-10","十三"],["2017-1-11","十四"],["2017-1-12","十五"],["2017-1-13","十六"],["2017-1-14","十七"],["2017-1-15","十八"],["2017-1-16","十九"],["2017-1-17","二十"],["2017-1-18","廿一"],["2017-1-19","廿二"],["2017-1-20","廿三","大寒"],["2017-1-21","廿四"],["2017-1-22","廿五"],["2017-1-23","廿六"],["2017-1-24","廿七"],["2017-1-25","廿八"],["2017-1-26","廿九"],["2017-1-27","三十"],["2017-1-28","正月"],["2017-1-29","初二"],["2017-1-30","初三"],["2017-1-31","初四"],["2017-2-1","初五"],["2017-2-2","初六"],["2017-2-3","初七","立春"],["2017-2-4","初八"],["2017-2-5","初九"],["2017-2-6","初十"],["2017-2-7","十一"],["2017-2-8","十二"],["2017-2-9","十三"],["2017-2-10","十四"],["2017-2-11","十五"],["2017-2-12","十六"],["2017-2-13","十七"],["2017-2-14","十八"],["2017-2-15","十九"],["2017-2-16","二十"],["2017-2-17","廿一"],["2017-2-18","廿二","雨水"],["2017-2-19","廿三"],["2017-2-20","廿四"],["2017-2-21","廿五"],["2017-2-22","廿六"],["2017-2-23","廿七"],["2017-2-24","廿八"],["2017-2-25","廿九"],["2017-2-26","二月"],["2017-2-27","初二"],["2017-2-28","初三"],["2017-3-1","初四"],["2017-3-2","初五"],["2017-3-3","初六"],["2017-3-4","初七"],["2017-3-5","初八","驚蟄"],["2017-3-6","初九"],["2017-3-7","初十"],["2017-3-8","十一"],["2017-3-9","十二"],["2017-3-10","十三"],["2017-3-11","十四"],["2017-3-12","十五"],["2017-3-13","十六"],["2017-3-14","十七"],["2017-3-15","十八"],["2017-3-16","十九"],["2017-3-17","二十"],["2017-3-18","廿一"],["2017-3-19","廿二"],["2017-3-20","廿三","春分"],["2017-3-21","廿四"],["2017-3-22","廿五"],["2017-3-23","廿六"],["2017-3-24","廿七"],["2017-3-25","廿八"],["2017-3-26","廿九"],["2017-3-27","三十"],["2017-3-28","三月"],["2017-3-29","初二"],["2017-3-30","初三"],["2017-3-31","初四"],["2017-4-1","初五"],["2017-4-2","初六"],["2017-4-3","初七"],["2017-4-4","初八","清明"],["2017-4-5","初九"],["2017-4-6","初十"],["2017-4-7","十一"],["2017-4-8","十二"],["2017-4-9","十三"],["2017-4-10","十四"],["2017-4-11","十五"],["2017-4-12","十六"],["2017-4-13","十七"],["2017-4-14","十八"],["2017-4-15","十九"],["2017-4-16","二十"],["2017-4-17","廿一"],["2017-4-18","廿二"],["2017-4-19","廿三"],["2017-4-20","廿四","穀雨"],["2017-4-21","廿五"],["2017-4-22","廿六"],["2017-4-23","廿七"],["2017-4-24","廿八"],["2017-4-25","廿九"],["2017-4-26","四月"],["2017-4-27","初二"],["2017-4-28","初三"],["2017-4-29","初四"],["2017-4-30","初五"],["2017-5-1","初六"],["2017-5-2","初七"],["2017-5-3","初八"],["2017-5-4","初九"],["2017-5-5","初十","立夏"],["2017-5-6","十一"],["2017-5-7","十二"],["2017-5-8","十三"],["2017-5-9","十四"],["2017-5-10","十五"],["2017-5-11","十六"],["2017-5-12","十七"],["2017-5-13","十八"],["2017-5-14","十九"],["2017-5-15","二十"],["2017-5-16","廿一"],["2017-5-17","廿二"],["2017-5-18","廿三"],["2017-5-19","廿四"],["2017-5-20","廿五"],["2017-5-21","廿六","小滿"],["2017-5-22","廿七"],["2017-5-23","廿八"],["2017-5-24","廿九"],["2017-5-25","三十"],["2017-5-26","五月"],["2017-5-27","初二"],["2017-5-28","初三"],["2017-5-29","初四"],["2017-5-30","初五"],["2017-5-31","初六"],["2017-6-1","初七"],["2017-6-2","初八"],["2017-6-3","初九"],["2017-6-4","初十"],["2017-6-5","十一","芒種"],["2017-6-6","十二"],["2017-6-7","十三"],["2017-6-8","十四"],["2017-6-9","十五"],["2017-6-10","十六"],["2017-6-11","十七"],["2017-6-12","十八"],["2017-6-13","十九"],["2017-6-14","二十"],["2017-6-15","廿一"],["2017-6-16","廿二"],["2017-6-17","廿三"],["2017-6-18","廿四"],["2017-6-19","廿五"],["2017-6-20","廿六"],["2017-6-21","廿七","夏至"],["2017-6-22","廿八"],["2017-6-23","廿九"],["2017-6-24","六月"],["2017-6-25","初二"],["2017-6-26","初三"],["2017-6-27","初四"],["2017-6-28","初五"],["2017-6-29","初六"],["2017-6-30","初七"],["2017-7-1","初八"],["2017-7-2","初九"],["2017-7-3","初十"],["2017-7-4","十一"],["2017-7-5","十二"],["2017-7-6","十三"],["2017-7-7","十四","小暑"],["2017-7-8","十五"],["2017-7-9","十六"],["2017-7-10","十七"],["2017-7-11","十八"],["2017-7-12","十九"],["2017-7-13","二十"],["2017-7-14","廿一"],["2017-7-15","廿二"],["2017-7-16","廿三"],["2017-7-17","廿四"],["2017-7-18","廿五"],["2017-7-19","廿六"],["2017-7-20","廿七"],["2017-7-21","廿八"],["2017-7-22","廿九","大暑"],["2017-7-23","閏六"],["2017-7-24","初二"],["2017-7-25","初三"],["2017-7-26","初四"],["2017-7-27","初五"],["2017-7-28","初六"],["2017-7-29","初七"],["2017-7-30","初八"],["2017-7-31","初九"],["2017-8-1","初十"],["2017-8-2","十一"],["2017-8-3","十二"],["2017-8-4","十三"],["2017-8-5","十四"],["2017-8-6","十五"],["2017-8-7","十六","立秋"],["2017-8-8","十七"],["2017-8-9","十八"],["2017-8-10","十九"],["2017-8-11","二十"],["2017-8-12","廿一"],["2017-8-13","廿二"],["2017-8-14","廿三"],["2017-8-15","廿四"],["2017-8-16","廿五"],["2017-8-17","廿六"],["2017-8-18","廿七"],["2017-8-19","廿八"],["2017-8-20","廿九"],["2017-8-21","三十"],["2017-8-22","七月"],["2017-8-23","初二","處暑"],["2017-8-24","初三"],["2017-8-25","初四"],["2017-8-26","初五"],["2017-8-27","初六"],["2017-8-28","初七"],["2017-8-29","初八"],["2017-8-30","初九"],["2017-8-31","初十"],["2017-9-1","十一"],["2017-9-2","十二"],["2017-9-3","十三"],["2017-9-4","十四"],["2017-9-5","十五"],["2017-9-6","十六"],["2017-9-7","十七","白露"],["2017-9-8","十八"],["2017-9-9","十九"],["2017-9-10","二十"],["2017-9-11","廿一"],["2017-9-12","廿二"],["2017-9-13","廿三"],["2017-9-14","廿四"],["2017-9-15","廿五"],["2017-9-16","廿六"],["2017-9-17","廿七"],["2017-9-18","廿八"],["2017-9-19","廿九"],["2017-9-20","八月"],["2017-9-21","初二"],["2017-9-22","初三"],["2017-9-23","初四","秋分"],["2017-9-24","初五"],["2017-9-25","初六"],["2017-9-26","初七"],["2017-9-27","初八"],["2017-9-28","初九"],["2017-9-29","初十"],["2017-9-30","十一"],["2017-10-1","十二"],["2017-10-2","十三"],["2017-10-3","十四"],["2017-10-4","十五"],["2017-10-5","十六"],["2017-10-6","十七"],["2017-10-7","十八"],["2017-10-8","十九","寒露"],["2017-10-9","二十"],["2017-10-10","廿一"],["2017-10-11","廿二"],["2017-10-12","廿三"],["2017-10-13","廿四"],["2017-10-14","廿五"],["2017-10-15","廿六"],["2017-10-16","廿七"],["2017-10-17","廿八"],["2017-10-18","廿九"],["2017-10-19","三十"],["2017-10-20","九月"],["2017-10-21","初二"],["2017-10-22","初三"],["2017-10-23","初四","霜降"],["2017-10-24","初五"],["2017-10-25","初六"],["2017-10-26","初七"],["2017-10-27","初八"],["2017-10-28","初九"],["2017-10-29","初十"],["2017-10-30","十一"],["2017-10-31","十二"],["2017-11-1","十三"],["2017-11-2","十四"],["2017-11-3","十五"],["2017-11-4","十六"],["2017-11-5","十七"],["2017-11-6","十八"],["2017-11-7","十九","立冬"],["2017-11-8","二十"],["2017-11-9","廿一"],["2017-11-10","廿二"],["2017-11-11","廿三"],["2017-11-12","廿四"],["2017-11-13","廿五"],["2017-11-14","廿六"],["2017-11-15","廿七"],["2017-11-16","廿八"],["2017-11-17","廿九"],["2017-11-18","十月"],["2017-11-19","初二"],["2017-11-20","初三"],["2017-11-21","初四"],["2017-11-22","初五","小雪"],["2017-11-23","初六"],["2017-11-24","初七"],["2017-11-25","初八"],["2017-11-26","初九"],["2017-11-27","初十"],["2017-11-28","十一"],["2017-11-29","十二"],["2017-11-30","十三"],["2017-12-1","十四"],["2017-12-2","十五"],["2017-12-3","十六"],["2017-12-4","十七"],["2017-12-5","十八"],["2017-12-6","十九"],["2017-12-7","二十","大雪"],["2017-12-8","廿一"],["2017-12-9","廿二"],["2017-12-10","廿三"],["2017-12-11","廿四"],["2017-12-12","廿五"],["2017-12-13","廿六"],["2017-12-14","廿七"],["2017-12-15","廿八"],["2017-12-16","廿九"],["2017-12-17","三十"],["2017-12-18","十一月"],["2017-12-19","初二"],["2017-12-20","初三"],["2017-12-21","初四"],["2017-12-22","初五","冬至"],["2017-12-23","初六"],["2017-12-24","初七"],["2017-12-25","初八"],["2017-12-26","初九"],["2017-12-27","初十"],["2017-12-28","十一"],["2017-12-29","十二"],["2017-12-30","十三"],["2017-12-31","十四"]],t=[],n=[],r=0;r<e.length;r++)t.push([e[r][0],300*Math.random()]),n.push([e[r][0],1,e[r][1],e[r][2]]);var a={tooltip:{formatter:function(e){return"降雨量: "+e.value[1].toFixed(2)}},visualMap:{show:!1,min:0,max:300,calculable:!0,seriesIndex:[2],orient:"horizontal",left:"center",bottom:20,inRange:{color:["#e0ffff","#006edd"],opacity:.3},controller:{inRange:{opacity:.5}}},calendar:[{left:"center",top:"middle",cellSize:[70,70],yearLabel:{show:!1},orient:"vertical",dayLabel:{firstDay:1,nameMap:"cn"},monthLabel:{show:!1},range:"2017-03"}],series:[{type:"scatter",coordinateSystem:"calendar",symbolSize:1,label:{normal:{show:!0,formatter:function(e){var t=u.default.number.parseDate(e.value[0]);return t.getDate()+"\n\n"+e.value[2]+"\n\n"},textStyle:{color:"#000"}}},data:n},{type:"scatter",coordinateSystem:"calendar",symbolSize:1,label:{normal:{show:!0,formatter:function(e){return"\n\n\n"+(e.value[3]||"")},textStyle:{fontSize:14,fontWeight:700,color:"#a00"}}},data:n},{name:"降雨量",type:"heatmap",coordinateSystem:"calendar",data:t}]};return a},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a lunar calendar chart. "),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"500px",width:"100%"},className:"react_for_echarts"})))}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o),l=n(235),u=r(l),c=i.default.createClass({displayName:"TreemapComponent",getOtion:function(){function e(){return[{itemStyle:{normal:{borderWidth:0,gapWidth:5}}},{itemStyle:{normal:{gapWidth:1}}},{colorSaturation:[.35,.5],itemStyle:{normal:{gapWidth:1,borderColorSaturation:.6}}}]}var t=[{value:180,name:"Accounts",path:"Accounts",children:[{value:76,name:"Access",path:"Accounts/Access",children:[{value:12,name:"DefaultAccessPlugin.bundle",path:"Accounts/Access/DefaultAccessPlugin.bundle"},{value:28,name:"FacebookAccessPlugin.bundle",path:"Accounts/Access/FacebookAccessPlugin.bundle"},{value:20,name:"LinkedInAccessPlugin.bundle",path:"Accounts/Access/LinkedInAccessPlugin.bundle"},{value:16,name:"TencentWeiboAccessPlugin.bundle",path:"Accounts/Access/TencentWeiboAccessPlugin.bundle"}]},{value:92,name:"Authentication",path:"Accounts/Authentication",children:[{value:24,name:"FacebookAuthenticationPlugin.bundle",path:"Accounts/Authentication/FacebookAuthenticationPlugin.bundle"},{value:16,name:"LinkedInAuthenticationPlugin.bundle",path:"Accounts/Authentication/LinkedInAuthenticationPlugin.bundle"},{value:20,name:"TencentWeiboAuthenticationPlugin.bundle",path:"Accounts/Authentication/TencentWeiboAuthenticationPlugin.bundle"},{value:16,name:"TwitterAuthenticationPlugin.bundle",path:"Accounts/Authentication/TwitterAuthenticationPlugin.bundle"},{value:16,name:"WeiboAuthenticationPlugin.bundle",path:"Accounts/Authentication/WeiboAuthenticationPlugin.bundle"}]},{value:12,name:"Notification",path:"Accounts/Notification",children:[{value:12,name:"SPAAccountsNotificationPlugin.bundle",path:"Accounts/Notification/SPAAccountsNotificationPlugin.bundle"}]}]},{value:1904,name:"AddressBook Plug-Ins",path:"AddressBook Plug-Ins",children:[{value:744,name:"CardDAVPlugin.sourcebundle",path:"AddressBook Plug-Ins/CardDAVPlugin.sourcebundle",children:[{value:744,name:"Contents",path:"AddressBook Plug-Ins/CardDAVPlugin.sourcebundle/Contents"}]},{value:28,name:"DirectoryServices.sourcebundle",path:"AddressBook Plug-Ins/DirectoryServices.sourcebundle",children:[{value:28,name:"Contents",path:"AddressBook Plug-Ins/DirectoryServices.sourcebundle/Contents"}]},{value:680,name:"Exchange.sourcebundle",path:"AddressBook Plug-Ins/Exchange.sourcebundle",children:[{value:680,name:"Contents",path:"AddressBook Plug-Ins/Exchange.sourcebundle/Contents"}]},{value:432,name:"LDAP.sourcebundle",path:"AddressBook Plug-Ins/LDAP.sourcebundle",children:[{value:432,name:"Contents",path:"AddressBook Plug-Ins/LDAP.sourcebundle/Contents"}]},{value:20,name:"LocalSource.sourcebundle",path:"AddressBook Plug-Ins/LocalSource.sourcebundle",children:[{value:20,name:"Contents",path:"AddressBook Plug-Ins/LocalSource.sourcebundle/Contents"}]}]},{value:36,name:"Assistant",path:"Assistant",children:[{value:36,name:"Plugins",path:"Assistant/Plugins",children:[{value:36,name:"AddressBook.assistantBundle",path:"Assistant/Plugins/AddressBook.assistantBundle"},{value:8,name:"GenericAddressHandler.addresshandler",path:"Recents/Plugins/GenericAddressHandler.addresshandler"},{value:12,name:"MapsRecents.addresshandler",path:"Recents/Plugins/MapsRecents.addresshandler"}]}]}],n=u.default.format,r={title:{text:"Disk Usage",left:"center"},tooltip:{formatter:function(e){for(var t=e.value,r=e.treePathInfo,a=[],i=1;i<r.length;i++)a.push(r[i].name);return['<div class="tooltip-title">'+n.encodeHTML(a.join("/"))+"</div>","Disk Usage: "+n.addCommas(t)+" KB"].join("")}},series:[{name:"Disk Usage",type:"treemap",visibleMin:300,label:{show:!0,formatter:"{b}"},itemStyle:{normal:{borderColor:"#fff"}},levels:e(),data:t}]};return r},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a disk usage treemap. "),i.default.createElement(s.default,{option:this.getOtion(),style:{height:"500px",width:"100%"},className:"react_for_echarts"})))}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),i=r(a),o=n(234),s=r(o);n(677);var l=i.default.createClass({displayName:"LiquidfillComponent",propTypes:{},getOption:function(){var e={series:[{type:"liquidFill",data:[.6]}]};return e},render:function(){return i.default.createElement("div",{className:"examples"},i.default.createElement("div",{className:"parent"},i.default.createElement("label",null," render a Liquidfill chart: "),i.default.createElement(s.default,{option:this.getOption(),style:{height:"400px",width:"100%"},className:"react_for_echarts"})))}});t.default=l},function(e,t,n){e.exports=n(678)},function(e,t,n){var r=n(236);n(679),n(680),r.registerVisual(r.util.curry(n(386),"liquidFill"))},function(e,t,n){var r=n(338),a=n(236);a.extendSeriesModel({type:"series.liquidFill",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=r(["value"],e.data),i=new a.List(n,this);return i.initData(e.data),i},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{normal:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},emphasis:{opacity:.8}},label:{normal:{show:!0,textStyle:{color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle"},position:"inside"}}}})},function(e,t,n){var r=n(236),a=r.number,i=n(339),o=a.parsePercent,s=n(681);r.extendChartView({type:"liquidFill",render:function(e,t,n){function a(t,n){var a=e.get("shape");if(a){if(0===a.indexOf("path://")){var o=r.graphic.makePath(a.slice(7),{}),s=o.getBoundingRect(),l=s.width,u=s.height;l>u?(u*=2*t/l,l=2*t):(l*=2*t/u,u=2*t);var c=n?0:M-l/2,h=n?0:C-u/2;return o=r.graphic.makePath(a.slice(7),{},new r.graphic.BoundingRect(c,h,l,u)),n&&(o.position=[-l/2,-u/2]),o}var d=n?-t:M-t,p=n?-t:C-t;return"pin"===a?p+=t:"arrow"===a&&(p-=t),i.createSymbol(a,d,p,2*t,2*t)}return new r.graphic.Circle({shape:{cx:n?0:M,cy:n?0:C,r:t}})}function l(){var t=a(T);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function u(){var t=a(v);t.setStyle(e.getModel("backgroundStyle").getItemStyle()),t.style.fill=null,t.z2=5;var n=a(v);n.setStyle(e.getModel("backgroundStyle").getItemStyle()),n.style.stroke=null;var i=new r.graphic.Group;return i.add(t),i.add(n),i}function c(e,t,n){var i=f.getItemModel(e),l=i.getModel("itemStyle"),u=i.get("phase"),c=o(i.get("amplitude"),2*v),h=o(i.get("waveLength"),2*v),d=f.get("value",e),p=v-d*v*2;u=n?n.shape.phase:"auto"===u?e*Math.PI/4:u;var g=l.getModel("normal").getItemStyle();g.fill=f.getItemVisual(e,"color");var m=2*v,y=new s({shape:{waveLength:h,radius:v,cx:m,cy:0,waterLevel:p,amplitude:c,phase:u,inverse:t},style:g,position:[M,C]});y.shape._waterLevel=p;var x=l.getModel("emphasis").getItemStyle();x.lineWidth=0,r.graphic.setHoverStyle(y,x);var _=a(v,!0);return _.setStyle({fill:"white"}),y.setClipPath(_),y}function h(e,t,n){var r=f.getItemModel(e),a=r.get("period"),i=r.get("direction"),o=f.get("value",e),s=(f.get("value",0),r.get("phase"));s=n?n.shape.phase:"auto"===s?e*Math.PI/4:s;var l=function(t){var n=f.count();return 0===n?t:t*(.2+(n-e)/n*.8)},u=0;u="auto"===a?l(5e3):"function"==typeof a?a(o,e):a;var c=0;"right"===i||null==i?c=Math.PI:"left"===i?c=-Math.PI:"none"===i?c=0:console.error("Illegal direction value for liquid fill."),"none"!==i&&r.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:s}).when(u/2,{phase:c+s}).when(u,{phase:2*c+s}).during(function(){E&&E.dirty(!0)}).start()}function d(t){function n(){var t=e.getFormattedLabel(0,"normal"),n=100*f.get("value",0),r=f.getName(0)||e.name;return isNaN(n)||(r=n.toFixed(0)+"%"),null==t?r:t}var i=g.getModel("label.normal"),o=i.getModel("textStyle"),s={z2:10,shape:{x:L,y:D,width:2*v,height:2*v},style:{fill:"transparent",text:n(),textAlign:o.get("align"),textVerticalAlign:o.get("baseline")},silent:!0},l=new r.graphic.Rect(s),u=o.get("color");r.graphic.setText(l.style,i,u);var c=new r.graphic.Rect(s),h=o.get("insideColor");r.graphic.setText(c.style,i,h),c.style.textFill=h;var d=new r.graphic.Group;d.add(l),d.add(c);var p=a(v,!0);return E=new r.graphic.CompoundPath({shape:{paths:t},position:[M,C]}),E.setClipPath(p),c.setClipPath(E),d}var p=this.group;p.removeAll();var f=e.getData(),g=f.getItemModel(0),m=g.get("center"),v=g.get("radius"),y=n.getWidth(),x=n.getHeight(),_=Math.min(y,x),b=0,w=0,S=e.get("outline.show");S&&(b=e.get("outline.borderDistance"),w=o(e.get("outline.itemStyle.borderWidth"),_));var M=o(m[0],y),C=o(m[1],x),T=o(v,_)/2,A=T-w/2,I=o(b,_),E=null;if(S){var P=l();P.style.lineWidth=w,p.add(l())}v=A-I;var L=M-v,D=C-v;p.add(u());var k=this._data,O=[];f.diff(k).add(function(t){var n=c(t,!1),a=n.shape.waterLevel;n.shape.waterLevel=v,r.graphic.initProps(n,{shape:{waterLevel:a}},e),n.z2=2,h(t,n,null),p.add(n),f.setItemGraphicEl(t,n),O.push(n)}).update(function(t,n){var a=k.getItemGraphicEl(n),i=c(t,!1,a);r.graphic.updateProps(a,{shape:i.shape,style:i.style},e),a.position=i.position,a.setClipPath(i.clipPath),h(t,a,a),p.add(a),f.setItemGraphicEl(t,a),O.push(a)}).remove(function(e){var t=k.getItemGraphicEl(e);p.remove(t)}).execute(),p.add(d(O)),this._data=f},dispose:function(){}})},function(e,t,n){function r(e,t,n,r){return 0===t?[[e+.5*n/Math.PI/2,r/2],[e+.5*n/Math.PI,r],[e+n/4,r]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),r],[e+.5*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-r/2],[e+.5*n/Math.PI,-r],[e+n/4,-r]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-r],[e+.5*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}var a=n(236);e.exports=a.graphic.extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},style:{fill:"#0f0"},buildPath:function(e,t){for(var n=2*Math.ceil(2*t.radius/t.waveLength*4);t.phase<2*-Math.PI;)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var a=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+a-2*t.radius;e.moveTo(i,t.waterLevel);for(var o=0,s=0;s<n;++s){var l=s%4,u=r(s*t.waveLength/4,l,t.waveLength,t.amplitude);e.bezierCurveTo(u[0][0]+i,-u[0][1]+t.waterLevel,u[1][0]+i,-u[1][1]+t.waterLevel,u[2][0]+i,-u[2][1]+t.waterLevel),s===n-1&&(o=u[2][0])}t.inverse?(e.lineTo(o+i,t.cy-t.radius),e.lineTo(i,t.cy-t.radius),e.lineTo(i,t.waterLevel)):(e.lineTo(o+i,t.cy+t.radius),e.lineTo(i,t.cy+t.radius),e.lineTo(i,t.waterLevel)),e.closePath()}})},function(e,t,n){
|
|
67
|
-
var r=n(683);"string"==typeof r&&(r=[[e.id,r,""]]);n(685)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(684)(),t.push([e.id,"body{background-color:#f3f4fa;margin:0 auto;max-width:750pt}body,html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}body,button,input,textarea{font-family:Georgia,Helvetica;font-size:17px;color:#005064}h1{margin-top:20px}h1,h3{text-align:center}h3{background-color:rgba(0,0,0,.2);padding:20px}h4{padding:5px 20px;text-align:center;margin:5px 0}h4,h4 a{color:#000}h4 a:hover{color:blue}a,a:hover{color:#ecf0f1}pre{background-color:#ead9d9}pre code{color:#111;font-size:18px}pre{overflow-x:auto}label,sub{display:block;margin-bottom:15px}sub{margin-top:-10px;font-size:11px;font-style:italic}ul{margin:0;padding:0}.parent{background-color:hsla(0,0%,100%,.2);margin:20px 0;padding:20px}input{border:none;padding:10px;border:0;margin:5px 0;display:block;width:100%}button,input{outline:0;background-color:#ecf0f1;color:#14204f}button{border:0;padding:18px 9pt;margin-left:6px;cursor:pointer}button:hover{background-color:#e74c3c;color:#ecf0f1}.a_line{display:block;width:100%}.nsg-tag{border-color:#14204f}.inline{display:inline-block}.gh-fork{position:fixed;top:0;right:0;border:0}.autofruit{width:1pc;margin-right:3px}#ddl{cursor:pointer;padding:10px}#ddl,.examples{background-color:rgba(0,0,0,.1)}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=h[r.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(s(r.parts[i],t))}else{for(var o=[],i=0;i<r.parts.length;i++)o.push(s(r.parts[i],t));h[r.id]={id:r.id,refs:1,parts:o}}}}function a(e){for(var t=[],n={},r=0;r<e.length;r++){var a=e[r],i=a[0],o=a[1],s=a[2],l=a[3],u={css:o,media:s,sourceMap:l};n[i]?n[i].parts.push(u):t.push(n[i]={id:i,parts:[u]})}return t}function i(){var e=document.createElement("style"),t=f();return e.type="text/css",t.appendChild(e),e}function o(){var e=document.createElement("link"),t=f();return e.rel="stylesheet",t.appendChild(e),e}function s(e,t){var n,r,a;if(t.singleton){var s=m++;n=g||(g=i()),r=l.bind(null,n,s,!1),a=l.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=o(),r=c.bind(null,n),a=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=i(),r=u.bind(null,n),a=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function l(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function u(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(a),i&&URL.revokeObjectURL(i)}var h={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=d(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,m=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=p());var n=a(e);return r(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=h[s.id];l.refs--,i.push(l)}if(e){var u=a(e);r(u,t)}for(var o=0;o<i.length;o++){var l=i[o];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete h[l.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()}]);
|