NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/viser/umd/viser.min.js
2023-09-14 14:47:11 +08:00

7 lines
651 KiB
Java
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Viser=e():t.Viser=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=75)}([function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(50),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},function(t,e,n){var r=n(9),i=n(77),a=n(78),o="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:o:u&&u in Object(t)?i(t):a(t)}},function(t,e,n){var r=n(54),i=1,a=4;t.exports=function(t){return r(t,i|a)}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(52),i=n(12),a=n(20),o=n(0),s=n(10),u=n(21),l=n(19),c=n(37),h="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||c(t)||a(t)))return!t.length;var e=i(t);if(e==h||e==f)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},function(t,e,n){var r=n(81),i=n(84);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(2).Symbol;t.exports=r},function(t,e,n){var r=n(13),i=n(35);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setSEvent=function(t,e,n,r){if((0,i.default)(n))return;var o=a.exec(n);if(!o||o.length<=2)return;var s=o[1].toLowerCase(),u=o[2].toLowerCase(),l=e+"-"+s;t.on(l+":"+u,(function(e){r&&r(e,t)}))},e.setEvent=function(t,e,n){if((0,i.default)(n))return;var r=Object.keys(n).filter((function(t){return/^on/.test(t)}));if((0,i.default)(r))return;r.forEach((function(r){var i=r.slice(2,r.length).toLowerCase(),a=n[r];if(n.gemo&&i.indexOf("label")>=0){var o=i.replace("label","");t.on("label:"+o,(function(e){a&&a(e,t)}))}else e?t.on(e+":"+i,(function(e){a&&a(e,t)})):t.on(i,(function(e){a&&a(e,t)}))}))};var r,i=(r=n(6))&&r.__esModule?r:{default:r};var a=/on(.+)(MouseEnter|MouseMove|MouseLeave|Click|DdlClick|MouseDown|MouseUp|TouchStart|TouchMove|TouchEnd)/},function(t,e,n){var r=n(80),i=n(34),a=n(85),o=n(86),s=n(87),u=n(3),l=n(53),c=l(r),h=l(i),f=l(a),p=l(o),g=l(s),d=u;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=d(new i)||a&&"[object Promise]"!=d(a.resolve())||o&&"[object Set]"!=d(new o)||s&&"[object WeakMap]"!=d(new s))&&(d=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case h:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case g:return"[object WeakMap]"}return e}),t.exports=d},function(t,e,n){var r=n(3),i=n(8),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==o||e==s||e==a||e==u}},function(t,e,n){var r=n(39);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(24),i=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e,n){var r=n(42),i=n(54),a=n(142),o=n(23),s=n(17),u=n(146),l=n(147),c=n(64),h=l((function(t,e){var n={};if(null==t)return n;var l=!1;e=r(e,(function(e){return e=o(e,t),l||(l=e.length>1),e})),s(t,c(t),n),l&&(n=i(n,7,u));for(var h=e.length;h--;)a(n,e[h]);return n}));t.exports=h},function(t,e,n){var r=n(55),i=n(56);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var l=e[s],c=a?a(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),o?i(n,l,c):r(n,l,c)}return n}},function(t,e,n){var r=n(58),i=n(52),a=n(10);t.exports=function(t){return a(t)?r(t):i(t)}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(88),i=n(1),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(t){var r=n(2),i=n(89),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(36)(t))},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(0),i=n(40),a=n(92),o=n(112);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:a(o(t))}},function(t,e,n){var r=n(3),i=n(1),a="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==a}},function(t,e,n){var r=n(7)(Object,"create");t.exports=r},function(t,e,n){var r=n(102),i=n(103),a=n(104),o=n(105),s=n(106);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(28);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(108);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=402)}([function(t,e,n){var r=n(126),i=n(16),a=r.mix({},r,{assign:r.mix,merge:r.deepMix,cloneDeep:r.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:r.isNumberEqual,remove:r.pull,inArray:r.contains,toAllPadding:function(t){var e=0,n=0,r=0,i=0;return a.isNumber(t)||a.isString(t)?e=n=r=i=t:a.isArray(t)?(e=t[0],r=a.isNil(t[1])?t[0]:t[1],i=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?r:t[3]):a.isObject(t)&&(e=t.top||0,r=t.right||0,i=t.bottom||0,n=t.left||0),[e,r,i,n]},getClipByRange:function(t){var e=t.tl,n=t.br;return new i.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}})}});a.Array={groupToMap:r.groupToMap,group:r.group,merge:r.merge,values:r.valuesOfKey,getRange:r.getRange,firstValue:r.firstValue,remove:r.pull},t.exports=a},function(t,e,n){var r=n(81),i={};r.merge(i,r,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,(function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)})),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(25),i=n(4);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var r=n(20),i=n(126),a=i.mix({assign:i.mix,isFinite:isFinite,isNaN:isNaN,Group:r.Group,Event:r.Event},i);t.exports=a},function(t,e,n){var r=n(12),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(1),i=n(190),a=n(102),o=n(55),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},r.extend(s,a);var u={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};r.augment(s,i,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var i=e.fillOpacity;r.isNil(i)||1===i?t.fill():(t.globalAlpha=i,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&this._attrs.lineWidth>0){var a=e.strokeOpacity;r.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!o.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this._attrs.clip;return i?(i.invert(n,this.get("canvas")),!!i.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=null,e=this._attrs,n={};return r.each(e,(function(t,i){u[i]&&r.isArray(e[i])?n[i]=function(t){for(var e=[],n=0;n<t.length;n++)r.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[i]):n[i]=e[i]})),t=new this.constructor({attrs:n}),t._cfg.zIndex=this._cfg.zIndex,t}}),t.exports=s},function(t,e,n){var r=n(0),i=n(150),a={version:"3.5.8",renderer:"canvas",trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){i[t]=e},setTheme:function(t){var e={};e=r.isObject(t)?t:-1!==r.indexOf(Object.keys(i),t)?i[t]:i.default,r.deepMix(a,e)}};a.setTheme("default"),t.exports=a},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Number")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"String")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Function")}},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e){t.exports={FONT_FAMILY:'"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"'}},function(t,e,n){var r=n(3),i=n(155),a=n(32),o=["min","max","median","start","end"],s=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{xScales:null,yScales:null,el:null})},s.render=function(){},s.clear=function(){var t=this.get("el");t&&t.remove(),this.set("el",null)},s.destroy=function(){this.clear(),t.prototype.destroy.call(this)},s.changeVisible=function(t){this.set("visible",t);var e=this.get("el");e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},s.parsePoint=function(t,e){var n,a,o=this.get("xScales"),s=this.get("yScales");if(r.isFunction(e)&&(e=e(o,s)),r.isArray(e)&&r.isString(e[0])&&-1!==e[0].indexOf("%"))return this._parsePercentPoint(t,e);if(r.isArray(e))n=this._getNormalizedValue(e[0],i.getFirstScale(o)),a=this._getNormalizedValue(e[1],i.getFirstScale(s));else for(var u in e){var l=e[u];o[u]&&(n=this._getNormalizedValue(l,o[u])),s[u]&&(a=this._getNormalizedValue(l,s[u],"y"))}return r.isNil(n)||r.isNil(a)||isNaN(n)||isNaN(a)?null:t.convert({x:n,y:a})},s._getNormalizedValue=function(t,e){var n,i;return-1!==r.indexOf(o,t)?"start"===t?n=0:"end"===t?n=1:"median"===t?(i=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(i)):(i=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(i)):n=e.scale(t),n},s._parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,r=parseFloat(e[1])/100,i=t.start,a=t.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:t.width*n+o,y:t.height*r+s}},a}(a);t.exports=s},function(t,e,n){var r=n(20);t.exports=r},function(t,e,n){"use strict";var r=n(61);n.d(e,"a",(function(){return r.e})),n.d(e,"f",(function(){return r.g})),n.d(e,"d",(function(){return r.f}));var i=n(205);n.d(e,"e",(function(){return i.a})),n.d(e,"c",(function(){return i.b}));var a=n(206);n.d(e,"b",(function(){return a.a}))},function(t,e,n){var r=n(8),i=n(2),a=n(25),o=n(5),s=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),r(this,t),this.init()}return t._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},t.init=function(){},t.getTicks=function(){var t=this,e=t.ticks,n=[];return i(e,(function(e){var r;r=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(r)})),n},t.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),t.toString()},t.rangeMin=function(){return this.range[0]},t.rangeMax=function(){var t=this.range;return t[t.length-1]},t.invert=function(t){return t},t.translate=function(t){return t},t.scale=function(t){return t},t.clone=function(){var t=this,e=t.constructor,n={};return i(t,(function(e,r){n[r]=t[r]})),new e(n)},t.change=function(t){return this.ticks=null,r(this,t),this.init(),this},e}();t.exports=s},function(t,e,n){var r=n(0),i=n(23),a=r.PathUtil,o={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=a.parsePathString(t),t=n.isPolar&&!1!==e?i.convertPolarPath(n,t):i.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return r.each(t,(function(t){n.push(e.convertPoint(t))})),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){r.isArray(t)&&(t=t[0]);var e=this[t]||this[this.defaultShapeType];return e._coord=this._coord,e},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var r=this.defaultShapeType;n=this.getShape(r)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t).draw(e,n);return r&&(r.setSilent("origin",e.origin),r._id=e.yIndex?e._id+e.yIndex:e._id,r.name=this.name),r}};o.registerFactory=function(t,e){var n=r.upperFirst(t),i=r.assign({},u,e);return o[n]=i,i.name=t,i},o.registerShape=function(t,e,n){var i=r.upperFirst(t),a=o[i],u=r.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){return t=t||"point",this[r.upperFirst(t)]},t.exports=o},function(t,e,n){t.exports={Canvas:n(182),Group:n(101),Shape:n(6),Arc:n(105),Circle:n(106),Dom:n(107),Ellipse:n(108),Fan:n(109),Image:n(110),Line:n(111),Marker:n(57),Path:n(112),Polygon:n(113),Polyline:n(114),Rect:n(115),Text:n(116),PathSegment:n(39),PathUtil:n(58),Event:n(100),version:"3.3.6"}},function(t,e,n){var r=n(73),i=n(299),a=n(147),o=n(0),s=n(7),u=n(307),l=n(19),c=n(339),h=n(340),f=n(341),p=n(342),g=["color","shape","size"];function d(t){return(o.isString(t)||o.isPlainObject(t))&&(t=[t]),o.each(t,(function(e,n){o.isObject(e)||(t[n]={type:e})})),t}var v=function(t){var e,n;n=t,(e=v).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=v.prototype;function v(e){var n;return(n=t.call(this,e)||this).viewTheme=n.get("viewTheme"),o.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),c,h,f),n.get("container")&&n._initContainer(),n._initOptions(),n}return a.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},a._initOptions=function(){var t=this.get("adjusts");t&&(t=d(t),this.set("adjusts",t))},a._createScale=function(t,e){var n=this.get("scales"),r=n[t];return r||(r=this.get("view").createScale(t,e),n[t]=r),r},a._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},a._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?o.isFunction(n)?i.callback=n:i.values=n:"color"!==t&&(i.values=r),this._setAttrOptions(t,i)},a.position=function(t){return this._setAttrOptions("position",{field:t}),this},a.color=function(t,e){var n=this.viewTheme||s;return this._createAttrOption("color",t,e,n.colors),this},a.size=function(t,e){var n=this.viewTheme||s;return this._createAttrOption("size",t,e,n.sizes),this},a.shape=function(t,e){var n=this.viewTheme||s,r=this.get("type"),i=n.shapes[r]||[];return this._createAttrOption("shape",t,e,i),this},a.opacity=function(t,e){var n=this.viewTheme||s;return this._createAttrOption("opacity",t,e,n.opacities),this},a.style=function(t,e){var n,r=this.get("styleOptions");return r||(r={},this.set("styleOptions",r)),o.isObject(t)&&(e=t,t=null),t&&(n=p(t)),r.fields=n,r.style=e,this},a.label=function(t,e,n){var r,i=this.get("labelCfg");return i||(i={},this.set("labelCfg",i)),t&&(r=p(t)),i.fields=r,o.isFunction(e)?(n||(n={}),i.callback=e):o.isObject(e)&&(n=e),i.globalCfg=n,this},a.tooltip=function(t,e){var n,r=this.get("tooltipCfg");return r||(r={}),!1===t?this.set("tooltipCfg",!1):(t&&(n=p(t)),r.fields=n,r.cfg=e),this.set("tooltipCfg",r),this},a.animate=function(t){return this.set("animateCfg",t),this},a.active=function(t,e){return!1===t?this.set("allowActive",!1):o.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},a.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=d(t)),this.set("adjusts",t)),this},a.select=function(t,e){return!1===t?this.set("allowSelect",!1):o.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},a.hasAdjust=function(t){var e=this.get("adjusts");if(!t)return!1;var n=!1;return o.each(e,(function(e){if(e.type===t)return n=!0,!1})),n},a.hasStack=function(){var t=this.get("isStacked");return o.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},a.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},a._initContainer=function(){var t=this.get("shapeContainer");if(!t){var e=this.get("container"),n=this.get("view"),r=n&&n.get("_id");t=e.addGroup({viewId:r,visible:this.get("visible")}),this.set("shapeContainer",t)}},a.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;o.each(e,(function(e){t._createScale(e)}))}var n=t._processData();t.get("adjusts")&&t._adjust(n),t.set("dataArray",n)},a._initAttrs=function(){var t=this.get("attrs"),e=this.get("attrOptions"),n=this.get("coord"),i=this.viewTheme||s,a=!1;for(var u in e)if(e.hasOwnProperty(u)){var l=e[u],c=o.upperFirst(u),h=p(l.field);"position"===u&&(l.coord=n,1===h.length&&"theta"===n.type&&(h.unshift("1"),a=!0));for(var f=[],g=0;g<h.length;g++){var d=h[g],v=this._createScale(d);"color"===u&&o.isNil(l.values)&&(v.values.length<=8?l.values=a?i.colors_pie:i.colors:v.values.length<=16?l.values=a?i.colors_pie_16:i.colors_16:l.values=i.colors_24,o.isNil(l.values)&&(l.values=i.colors)),f.push(v)}if("theta"===n.type&&"position"===u&&f.length>1){var y=f[1],x=Math.max.apply(null,y.values);isFinite(x)||(x=1),y.change({nice:!1,min:0,max:x})}l.scales=f;var m=new r[c](l);t[u]=m}},a._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),r=0;r<n.length;r++){var i=n[r],a=this._saveOrigin(i);e.push(this._numberic(a))}return e},a._groupData=function(t){var e=this._getGroupScales().map((function(t){return t.field}));return o.Array.group(t,e)},a._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i={};for(var a in r)i[a]=r[a];i._origin=r,e.push(i)}return e},a._numberic=function(t){for(var e=this.getAttr("position").scales,n=[],r=0;r<t.length;r++){for(var i=t[r],a=!0,o=0;o<Math.min(2,e.length);o++){var s=e[o];if(s.isCategory){var u=s.field;i[u]=s.translate(i[u]),Number.isNaN(i[u])&&(a=!1)}}a&&n.push(i)}return n},a._getGroupScales=function(){var t=this.get("groupScales");if(!t){t=[];var e=this.get("attrs");o.each(e,(function(e){if(g.includes(e.type)){var n=e.scales;o.each(n,(function(e){e.isCategory&&-1===o.indexOf(t,e)&&t.push(e)}))}})),this.set("groupScales",t)}return t},a._updateStackRange=function(t,e,n){for(var r=o.Array.merge(n),i=e.min,a=e.max,s=0;s<r.length;s++){var u=r[s];if(o.isArray(u[t])){var l=Math.min.apply(null,u[t]),c=Math.max.apply(null,u[t]);l<i&&(i=l),c>a&&(a=c)}}(i<e.min||a>e.max)&&e.change({min:i,max:a})},a._adjust=function(t){if(t&&t.length){var e=this,n=e.get("adjusts"),r=this.viewTheme||s,a=e.getYScale(),u=e.getXScale(),l=u.field,c=a?a.field:null;o.each(n,(function(n){var s=o.mix({xField:l,yField:c},n),h=o.upperFirst(n.type);if("Dodge"===h){var f=[];if(u.isCategory||u.isIdentity)f.push("x");else{if(a)throw new Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}s.adjustNames=f,s.dodgeRatio=s.dodgeRatio||r.widthRatio.column}else if("Stack"===h){var p=e.get("coord");if(!a){s.height=p.getHeight();var g=e.getDefaultValue("size")||3;s.size=g}!p.isTransposed&&o.isNil(s.reverseOrder)&&(s.reverseOrder=!0)}new i[h](s).processAdjust(t),"Stack"===h&&a&&e._updateStackRange(c,a,t)}))}},a.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},a.paint=function(){var t=this.get("dataArray"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this.set("shapeFactory",n);var r=this.get("shapeContainer");this._beforeMapping(t);for(var i=0;i<t.length;i++){var a=t[i],s=i;a=this._mapping(a),e.push(a),this.draw(a,r,n,s)}this.get("labelCfg")&&this._addLabels(o.union.apply(null,e),r.get("children")),this.get("sortable")?this.set("dataArray",e):this._sort(e)},a._sort=function(t){var e=this.getXScale(),n=e.field;o.each(t,(function(t){t.sort((function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])}))})),this.set("dataArray",t)},a._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),r=n.field;o.each(t,(function(t){t.sort((function(t,e){return n.translate(t[r])-n.translate(e[r])}))}))}e.get("generatePoints")&&(o.each(t,(function(t){e._generatePoints(t)})),o.each(t,(function(e,n){var r=t[n+1];r&&(e[0].nextPoints=r[0].points)})))},a._addLabels=function(t,e){var n=this,r=n.get("type"),i=n.get("viewTheme")||s,a=n.get("coord"),l=u.getLabelsClass(a.type,r),c=n.get("container"),h=o.map(n.get("labelCfg").fields,(function(t){return n._createScale(t)})),f=c.addGroup(l,{_id:this.get("_id"),labelCfg:o.mix({scales:h},n.get("labelCfg")),coord:a,geom:n,geomType:r,yScale:n.getYScale(),viewTheme:i,visible:n.get("visible")});f.showLabels(t,e),n.set("labelContainer",f)},a.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=l.getShapeFactory(e),this.set("shapeFactory",t)}return t},a._generatePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttr("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this._getAttrValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},a.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this._normalizeValues(t[e.field],e),y:n?this._normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},a.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},a._normalizeValues=function(t,e){var n=[];if(o.isArray(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},a._mapping=function(t){for(var e=this.get("attrs"),n=[],r=0;r<t.length;r++){var i=t[r],a={};for(var s in a._origin=i._origin,a.points=i.points,a.nextPoints=i.nextPoints,e)if(e.hasOwnProperty(s)){var u=e[s],l=u.names,c=this._getAttrValues(u,i);if(l.length>1)for(var h=0;h<c.length;h++){var f=c[h];a[l[h]]=o.isArray(f)&&1===f.length?f[0]:f}else a[l[0]]=1===c.length?c[0]:c}n.push(a)}return n},a._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0;i<n.length;i++){var a=n[i],o=a.field;"identity"===a.type?r.push(a.value):r.push(e[o])}return t.mapping.apply(t,r)},a.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;return n&&(r=this._getAttrValues(n,e)[0]),r},a.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var r=n.getScale(t);"identity"===r.type&&(e=r.value)}return e},a.draw=function(t,e,n,r){for(var i=0;i<t.length;i++){var a=t[i];this.drawPoint(a,e,n,r+i)}},a.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map((function(t){return n[t]}));return o.each(e,(function(t,e){o.isFunction(t)?r[e]=t.apply(null,i):r[e]=t})),r},a._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)o.each(n,(function(n){e+="-"+t[n]}));else{var r,i=this.get("type"),a=this.getXScale(),s=this.getYScale(),u=a.field||"x",l=s.field||"y",c=t[l];r=a.isIdentity?a.value:t[u],e+="interval"===i||"schema"===i?"-"+r:"line"===i||"area"===i||"path"===i?"-"+i:"-"+r+"-"+c;var h=this._getGroupScales();o.isEmpty(h)||o.each(h,(function(n){var r=n.field;"identity"!==n.type&&(e+="-"+t[r])}))}return e},a.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t._origin)),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t._origin)),e},a.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},a._applyViewThemeShapeStyle=function(t,e,n){var r=this.viewTheme||s,i=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(i="hollow"+o.upperFirst(i)):n.defaultShapeType.indexOf("hollow")>-1&&(i="hollow"+o.upperFirst(i));var a=r.shape[i]||{};t.style=o.mix({},a,t.style)},a.drawPoint=function(t,e,n,r){var i=t.shape,a=this.getDrawCfg(t);this._applyViewThemeShapeStyle(a,i,n);var o=n.drawShape(i,a,e);this.appendShapeInfo(o,r)},a.getAttr=function(t){return this.get("attrs")[t]},a.getXScale=function(){return this.getAttr("position").scales[0]},a.getYScale=function(){return this.getAttr("position").scales[1]},a.getShapes=function(){var t=[],e=this.get("shapeContainer").get("children");return o.each(e,(function(e){e.get("origin")&&t.push(e)})),t},a.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return o.each(t,(function(t){g.includes(t.type)&&e.push(t)})),e},a.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return o.each(g,(function(n){var r=e[n];r&&r.field&&o.isString(r.field)&&(t=t.concat(r.field.split("*")))})),o.uniq(t)},a.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var r=this.get("labelContainer");r&&r.set("visible",t),!e&&n&&n.get("canvas").draw()},a.reset=function(){this.set("attrOptions",{}),this.clearInner()},a.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},a.clear=function(){this.clearInner(),this.set("scales",{})},a.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},a.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},a.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},v}(a);t.exports=v},function(t,e,n){t.exports={Axis:n(308),Component:n(67),Guide:n(316),Label:n(325),Legend:n(326),Tooltip:n(332)}},function(t,e,n){var r=n(0),i=n(336);function a(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function o(t,e){for(var n=t.length,r=[t[0]],i=1;i<n;i+=2){var a=e.convertPoint({x:t[i],y:t[i+1]});r.push(a.x,a.y)}return r}var s={getLinePath:function(t,e){return function(t,e){if(!t.length)return[];for(var n=[],r=0,i=t.length;r<i;r++){var a=t[r];0===r?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}return e&&n.push(["Z"]),n}(t,e)},getSplinePath:function(t,e,n){var a=[],o=t[0],u=null;if(t.length<=2)return s.getLinePath(t,e);r.each(t,(function(t){u&&u.x===t.x&&u.y===t.y||(a.push(t.x),a.push(t.y),u=t)})),n=n||[[0,0],[1,1]];var l=i.catmullRom2bezier(a,e,n);return l.unshift(["M",o.x,o.y]),l},getPointRadius:function(t,e){return a(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(t,e){var n=[];return r.each(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(o(e,t));break;case"z":default:n.push(e)}})),n},convertPolarPath:function(t,e){var n,i,s=[];return r.each(e,(function(r,u){switch(r[0].toLowerCase()){case"m":case"c":case"q":s.push(o(r,t));break;case"l":n=e[u-1],i=r,(t.isTransposed?n[n.length-2]===i[1]:n[n.length-1]===i[2])?s=s.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,s={x:t[1],y:t[2]},u={x:e[1],y:e[2]},l=[],c=r?"y":"x",h=Math.abs(u[c]-s[c])*(o-i),f=u[c]>=s[c]?1:0,p=h>Math.PI?1:0,g=n.convertPoint(u),d=a(n,g);if(d>=.5)if(h===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},y=n.convertPoint(v);l.push(["A",d,d,0,p,f,y.x,y.y]),l.push(["A",d,d,0,p,f,g.x,g.y])}else l.push(["A",d,d,0,p,f,g.x,g.y]);return l}(n,i,t)):s.push(o(r,t));break;case"z":default:s.push(r)}})),function(t){r.each(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(s),s}};t.exports=s},function(t,e,n){var r=n(5);t.exports=function(t){return r(t)?"":t.toString()}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){var r=n(49),i=n(12);t.exports=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){"use strict";e.c=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}},e.a=a;var r=n(120);function i(t,e){return function(n){return t+n*e}}function a(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},function(t,e,n){var r=n(10),i=n(4),a=n(5),o=n(8),s=n(2);function u(t,e){return r(e)?e:t.invert(t.scale(e))}var l=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,r=this.callback;if(t.callback){var i=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var s=i.apply(void 0,n);return a(s)&&(s=r.apply(e,n)),s}}o(this,t),n&&o(this,{callback:n})}var e=t.prototype;return e._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear)return n[t.translate(e)%n.length];var r=t.scale(e);return this.getLinearValue(r)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=n*t-r,a=e[r];return a+((r===n?a:e[r+1])-a)*i},e.callback=function(t){var e=this.scales[0];return"identity"===e.type?e.value:this._getAttrValue(e,t)},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i++)r.push(e[i]);return r},e.getFields=function(){var t=this.scales,e=[];return s(t,(function(t){e.push(t.field)})),e},e.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.mapping=function(){for(var t=this.scales,e=this.callback,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r;if(e){for(var o=0,s=r.length;o<s;o++)r[o]=this._toOriginParam(r[o],t[o]);a=e.apply(this,r)}return a=[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(i(t)){n=[];for(var r=0,a=t.length;r<a;r++)n.push(u(e,t[r]))}else n=u(e,t);return n},t}();t.exports=l},function(t,e,n){var r=n(8),i=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),r(this,t)}return t._initDefaultCfg=function(){this.adjustNames=["x","y"]},t.processAdjust=function(){},e}();t.exports=i},function(t,e,n){var r=n(32),i=n(3),a=n(152),o=n(153),s=n(14).FONT_FAMILY,u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{offset:0,offsetX:0,offsetY:0,textStyle:{},autoRotate:!0,autoHide:!1,formatter:null},labelItems:[],title:{autoRotate:!0,textStyle:{}},autoPaint:!0})},u.beforeRender=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid");t&&this.set("title",i.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:s,textAlign:"center"},offset:48},t)),e&&this.set("label",i.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:s},offset:10},e)),n&&this.set("grid",i.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},u.render=function(){this.beforeRender(),this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),i.isNil(this.get("title"))||this.renderTitle(),this.get("group").sort()},u.renderLabels=function(){var t=this.get("group"),e=this.get("label"),n=new o({name:"axis-label"});this.set("labelRenderer",n),n.set("labelCfg",e),i.each(["formatter","htmlTemplate","labelLine","textStyle","useHtml"],(function(t){e[t]&&n.set(t,e[t])})),n.set("coord",this.get("coord")),n.set("group",t.addGroup()),n.set("canvas",this.get("canvas"))},u._parseTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var r=t[n];i.isObject(r)||(t[n]=this.parseTick(r,n,e))}return this.set("ticks",t),t},u._addTickItem=function(t,e,n,r){void 0===r&&(r="");var i=this.get("tickItems"),a=this.get("subTickItems"),o=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:o.x,y2:o.y};i||(i=[]),a||(a=[]),"sub"===r?a.push(s):i.push(s),this.set("tickItems",i),this.set("subTickItems",a)},u._renderLine=function(){var t,e=this.get("line");if(e){t=this.getLinePath(),e=i.mix({path:t},e);var n=this.get("group").addShape("path",{attrs:e});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},u._processCatTicks=function(){var t=this.get("label"),e=this.get("tickLine"),n=this.get("ticks");n=this._parseTicks(n);for(var r=this._getNormalizedTicks(n),i=0;i<r.length;i+=3){var a=this.getTickPoint(r[i]),o=this.getTickPoint(r[i+1]),s=this.getTickPoint(r[i+2]),u=Math.floor(i/3),l=n[u];e&&(0===u&&this._addTickItem(u,o,e.length),this._addTickItem(u,s,e.length)),t&&this.addLabel(l,a,u)}},u._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],r=0;r<t.length;r++){var a=t[r],o=a.value,s=a.value-e,u=a.value+e;n.push(o,s,u)}var l=i.arrayUtil.getRange(n);return n.map((function(t){return(t-l.min)/(l.max-l.min)}))},u.addLabel=function(t,e,n){var r=this.get("labelItems"),a=this.get("labelRenderer"),o=i.deepMix({},this.get("label"));if(a){var s=this.get("_labelOffset");i.isNil(this.get("label").offset)||(s=this.get("label").offset);var u=this.getSideVector(s,e,n);e={x:e.x+u[0]+o.offsetX,y:e.y+u[1]+o.offsetY},o.text=t.text,o.x=e.x,o.y=e.y,o.point=e,o.textAlign=this.getTextAnchor(u),e.rotate&&(o.rotate=e.rotate),r.push(o)}},u._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),r=t.get("tickLine"),a=t.get("ticks");if(a=t._parseTicks(a),i.each(a,(function(n,i){var a=t.getTickPoint(n.value,i);r&&t._addTickItem(i,a,r.length),e&&t.addLabel(n,a,i)})),n){var o=t.get("subTickLine");i.each(a,(function(e,i){if(i>0){var s=e.value-a[i-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var l={text:"",value:i?a[i-1].value+u*s:u*s},c=t.getTickPoint(l.value),h=void 0;h=o&&o.length?o.length:parseInt(.6*r.length,10),t._addTickItem(u-1,c,h,"sub")}}}))}},u._addTickLine=function(t,e){var n=i.mix({},e),r=[];i.each(t,(function(t){r.push(["M",t.x1,t.y1]),r.push(["L",t.x2,t.y2])})),delete n.length,n.path=r;var a=this.get("group").addShape("path",{attrs:n});a.name="axis-ticks",a._id=this.get("_id")+"-ticks",a.set("coord",this.get("coord")),this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},u._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!i.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!i.isEmpty(e)){var r=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,r)}},u._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");var e=this.get("group");this.set("gridGroup",e.addGroup(a,t))}},u._renderLabels=function(){var t=this.get("labelRenderer"),e=this.get("labelItems");t&&(t.set("items",e),t._dryDraw())},u.paint=function(){var t=this.get("tickLine"),e=!0;t&&t.hasOwnProperty("alignWithLabel")&&(e=t.alignWithLabel),this._renderLine();var n=this.get("type");"cat"!==n&&"timeCat"!==n||!1!==e?this._processTicks():this._processCatTicks(),this._renderTicks(),this._renderGrid(),this._renderLabels();var r=this.get("label");r&&r.autoRotate&&this.autoRotateLabels(),r&&r.autoHide&&this.autoHideLabels()},u.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},u.getTextAnchor=function(t){return Math.abs(t[1]/t[0])>=1?"center":t[0]>0?"start":"end"},u.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return i.each(e,(function(t){var e=t.getBBox().width;n<e&&(n=e)})),n},u.getMaxLabelHeight=function(t){var e=t.getLabels(),n=0;return i.each(e,(function(t){var e=t.getBBox().height;n<e&&(n=e)})),n},u.destroy=function(){if(!this.destroyed){var e=this.get("gridGroup");e&&e.remove();var n=this.get("labelRenderer");n&&n.destroy(),this.get("group").destroy(),t.prototype.destroy.call(this)}},u.clear=function(){var t=this.get("group");if(!t.get("destroyed")&&t.get("children").length){var e=this.get("gridGroup");e&&e.clear();var n=this.get("labelRenderer");n&&n.clear(),this.get("group").clear()}},u.autoRotateLabels=function(){},u.autoHideLabels=function(){},u.renderTitle=function(){},u.getLinePath=function(){},u.getTickPoint=function(){},u.getTickEnd=function(){},u.getSideVector=function(){},r}(r);t.exports=u},function(t,e,n){var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getDefaultCfg=function(){return{_id:null,canvas:null,container:null,group:null,capture:!1,coord:null,offset:[0,0],plotRange:null,position:[0,0],visible:!0,zIndex:1}},i._init=function(){},i.clear=function(){},i.destroy=function(){t.prototype.destroy.call(this)},i.beforeRender=function(){},i.render=function(){},i.afterRender=function(){},i.beforeDraw=function(){},i.draw=function(){},i.afterDraw=function(){},i.show=function(){},i.hide=function(){},i.setOffset=function(){},i.setPosition=function(){},i.setVisible=function(){},i.setZIndex=function(){},r}(n(67));t.exports=r},function(t,e,n){var r=n(5),i=n(2),a=n(18),o=n(175),s=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="linear",this.isLinear=!0,this.nice=!1,this.min=null,this.minLimit=null,this.max=null,this.maxLimit=null,this.tickCount=null,this.tickInterval=null,this.minTickInterval=null,this.snapArray=null},s.init=function(){if(this.ticks){var t=this.ticks,e=this.translate(t[0]),n=this.translate(t[t.length-1]);(r(this.min)||this.min>e)&&(this.min=e),(r(this.max)||this.max<n)&&(this.max=n)}else this.min=this.translate(this.min),this.max=this.translate(this.max),this.initTicks()},s.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,a=this.tickInterval,s=this.minTickInterval,u=this.snapArray;if(1===i)throw new Error("linear scale'tickCount should not be 1");if(e<t)throw new Error("max: "+e+" should not be less than min: "+t);return o({min:t,max:e,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:a,minTickInterval:s,snapArray:u}).ticks},s.initTicks=function(){var t=this,e=t.calculateTicks();if(t.nice)t.ticks=e,t.min=e[0],t.max=e[e.length-1];else{var n=[];i(e,(function(e){e>=t.min&&e<=t.max&&n.push(e)})),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},s.scale=function(t){if(r(t))return NaN;var e=this.max,n=this.min;if(e===n)return 0;var i=(t-n)/(e-n),a=this.rangeMin();return a+i*(this.rangeMax()-a)},s.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},a}(a);a.Linear=s,t.exports=s},function(t,e,n){var r=n(13);t.exports=function(t){return r(t)?Array.prototype.slice.call(t):[]}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)<n}},function(t,e,n){var r=n(1).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var l=[a-t,o-e];return Math.abs(r.dot(l,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,r)-a,maxX:s+a,maxY:Math.max(e,r)+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){var r=n(1);function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function a(t,e,n,r){var i,a;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function o(t,e,n,i){var o=0;return n-e>=2*Math.PI&&(o=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+o,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:a(t,n,e,!0):t<e||t>n?t:a(t,e,n):e<=n?e<t&&t<n?t:a(t,e,n,!0):t>e||t<n?t:a(t,n,e)}function s(t,e,n,i,a,s,u,l,c){var h=[u,l],f=[t,e],p=r.vec2.subtract([],h,f),g=r.vec2.angleTo([1,0],p);g=o(g,i,a,s);var d=[n*Math.cos(g)+t,n*Math.sin(g)+e];return c&&(c.x=d[0],c.y=d[1]),r.vec2.distance(d,h)}t.exports={nearAngle:o,projectPoint:function(t,e,n,r,i,a,o,u){var l={};return s(t,e,n,r,i,a,o,u,l),l},pointDistance:s,box:function(t,e,n,a,s,u){var l=Math.PI/2,c=Math.PI,h=3*Math.PI/2,f=[],p=o(0,a,s,u);0===p&&f.push(i(t,e,n,0)),(p=o(l,a,s,u))===l&&f.push(i(t,e,n,l)),(p=o(c,a,s,u))===c&&f.push(i(t,e,n,c)),(p=o(h,a,s,u))===h&&f.push(i(t,e,n,h)),f.push(i(t,e,n,a)),f.push(i(t,e,n,s));var g=1/0,d=-1/0,v=1/0,y=-1/0;return r.each(f,(function(t){g>t.x&&(g=t.x),d<t.x&&(d=t.x),v>t.y&&(v=t.y),y<t.y&&(y=t.y)})),{minX:g,minY:v,maxX:d,maxY:y}}}},function(t,e,n){var r=n(27),i=n(39),a=Math.PI,o=Math.sin,s=Math.cos,u=Math.atan2,l=10,c=a/3;function h(t,e,n,r,i,h,f){var p,g,d,v,y,x,m;if(!e.fill){var b=e.arrowLength||l,_=e.arrowAngle?e.arrowAngle*a/180:c;m=u(r-h,n-i),y=Math.abs(e.lineWidth*s(m))/2,x=Math.abs(e.lineWidth*o(m))/2,f&&(y=-y,x=-x),p=i+b*s(m+_/2),g=h+b*o(m+_/2),d=i+b*s(m-_/2),v=h+b*o(m-_/2),t.beginPath(),t.moveTo(p-y,g-x),t.lineTo(i-y,h-x),t.lineTo(d-y,v-x),t.moveTo(i-y,h-x),t.lineTo(i+y,h+x),t.moveTo(i,h),t.stroke()}}function f(t,e,n,a,o,s,u){var l=u?e.startArrow:e.endArrow,c=l.d,h=0,f=o-n,p=s-a,g=Math.atan(f/p);0===p&&f<0?h=Math.PI:f>0&&p>0?h=Math.PI/2-g:f<0&&p<0?h=-Math.PI/2-g:f>=0&&p<0?h=-g-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-g);var d=function(t){var e,n=[],a=r.parsePath(t.path);if(!Array.isArray(a)||0===a.length||"M"!==a[0][0]&&"m"!==a[0][0])return!1;for(var o=a.length,s=0;s<a.length;s++){var u=a[s];e=new i(u,e,s===o-1),n.push(e)}return n}(l);if(d){c&&(u?(o+=Math.sin(Math.abs(g))*c,s=s+Math.cos(Math.abs(g))*c-.5*t.lineWidth):(o-=Math.sin(Math.abs(g))*c,s=s-Math.cos(Math.abs(g))*c+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(o,s),t.rotate(h);for(var v=0;v<d.length;v++)d[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}t.exports={addStartArrow:function(t,e,n,r,i,a){"object"==typeof e.startArrow?f(t,e,n,r,i,a,!0):e.startArrow&&h(t,e,n,r,i,a,!0)},addEndArrow:function(t,e,n,r,i,a){"object"==typeof e.endArrow?f(t,e,n,r,i,a,!1):e.endArrow&&h(t,e,n,r,i,a,!1)}}},function(t,e,n){var r=n(1),i=n(55),a=n(56),o=n(103),s=n(104),u=r.vec3,l=r.mat3,c=["m","l","c","a","q","h","v","t","s","z"];function h(t,e,n){return{x:n.x+t,y:n.y+e}}function f(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function p(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function g(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))}function d(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))}var v=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(v,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=c.indexOf(n)>=0,l=u?n.toUpperCase():n,p=t,v=e.endPoint,y=p[1],x=p[2];switch(l){default:break;case"M":s=u?h(y,x,v):{x:y,y:x},this.command="M",this.params=[v,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?h(y,x,v):{x:y,y:x},this.command="L",this.params=[v,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-v.x,s.y-v.y]},this.startTangent=function(){return[v.x-s.x,v.y-s.y]};break;case"H":s=u?h(y,0,v):{x:y,y:v.y},this.command="L",this.params=[v,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-v.x,s.y-v.y]},this.startTangent=function(){return[v.x-s.x,v.y-s.y]};break;case"V":s=u?h(0,y,v):{x:v.x,y:y},this.command="L",this.params=[v,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-v.x,s.y-v.y]},this.startTangent=function(){return[v.x-s.x,v.y-s.y]};break;case"Q":u?(i=h(y,x,v),a=h(p[3],p[4],v)):(i={x:y,y:x},a={x:p[3],y:p[4]}),this.command="Q",this.params=[v,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]};break;case"T":a=u?h(y,x,v):{x:y,y:x},"Q"===e.command?(i=f(e.params[1],v),this.command="Q",this.params=[v,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]}):(this.command="TL",this.params=[v,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-v.x,a.y-v.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]});break;case"C":u?(i=h(y,x,v),a=h(p[3],p[4],v),o=h(p[5],p[6],v)):(i={x:y,y:x},a={x:p[3],y:p[4]},o={x:p[5],y:p[6]}),this.command="C",this.params=[v,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]};break;case"S":u?(a=h(y,x,v),o=h(p[3],p[4],v)):(a={x:y,y:x},o={x:p[3],y:p[4]}),"C"===e.command?(i=f(e.params[2],v),this.command="C",this.params=[v,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]}):(this.command="SQ",this.params=[v,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]});break;case"A":var m=y,b=x,_=p[3],w=p[4],S=p[5];s=u?h(p[6],p[7],v):{x:p[6],y:p[7]},this.command="A";var M=function(t,e,n,i,a,o,s){var u=r.mod(r.toRadian(s),2*Math.PI),l=t.x,c=t.y,h=e.x,f=e.y,p=Math.cos(u)*(l-h)/2+Math.sin(u)*(c-f)/2,v=-1*Math.sin(u)*(l-h)/2+Math.cos(u)*(c-f)/2,y=p*p/(a*a)+v*v/(o*o);y>1&&(a*=Math.sqrt(y),o*=Math.sqrt(y));var x=a*a*(v*v)+o*o*(p*p),m=Math.sqrt((a*a*(o*o)-x)/x);n===i&&(m*=-1),isNaN(m)&&(m=0);var b=m*a*v/o,_=m*-o*p/a,w=(l+h)/2+Math.cos(u)*b-Math.sin(u)*_,S=(c+f)/2+Math.sin(u)*b+Math.cos(u)*_,M=d([1,0],[(p-b)/a,(v-_)/o]),C=[(p-b)/a,(v-_)/o],A=[(-1*p-b)/a,(-1*v-_)/o],k=d(C,A);return g(C,A)<=-1&&(k=Math.PI),g(C,A)>=1&&(k=0),0===i&&k>0&&(k-=2*Math.PI),1===i&&k<0&&(k+=2*Math.PI),[t,w,S,a,o,M,k,u,i]}(v,s,w,S,m,b,_);this.params=M;var C=e.subStart;this.subStart=C,this.endPoint=s;var A=M[5]%(2*Math.PI);r.isNumberEqual(A,2*Math.PI)&&(A=0);var k=M[6]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var P=.001;this.startTangent=function(){0===S&&(P*=-1);var t=M[3]*Math.cos(A-P)+M[1],e=M[4]*Math.sin(A-P)+M[2];return[t-C.x,e-C.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(A+t+P)+M[1],n=M[4]*Math.sin(A+t-P)+M[2];return[v.x-e,v.y-n]};break;case"Z":this.command="Z",this.params=[v,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this.command,a=this.params,o=this.box;if(o&&!i.box(o.minX,o.maxX,o.minY,o.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(a[0].x,a[0].y,a[1].x,a[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,n,t,e);case"C":return i.cubicline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y,n,t,e);case"A":var s=a,c=s[1],h=s[2],f=s[3],p=s[4],g=s[5],d=s[6],v=s[7],y=s[8],x=f>p?f:p,m=f>p?1:f/p,b=f>p?p/f:1;s=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return l.translate(_,_,[-c,-h]),l.rotate(_,_,-v),l.scale(_,_,[1/m,1/b]),u.transformMat3(s,s,_),i.arcline(0,0,x,g,g+d,1-y,n,s[0],s[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],l=o[3],c=o[4],h=o[5],f=o[6],p=o[7],g=o[8],d=l>c?l:c,v=l>c?1:l/c,y=l>c?c/l:1;t.translate(s,u),t.rotate(p),t.scale(v,y),t.arc(0,0,d,h,h+f,1-g),t.scale(1/v,1/y),t.rotate(-p),t.translate(-s,-u);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,r,i,u=t/2,l=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(l[0].x,l[1].x)-u,maxX:Math.max(l[0].x,l[1].x)+u,minY:Math.min(l[0].y,l[1].y)-u,maxY:Math.max(l[0].y,l[1].y)+u};break;case"SQ":case"Q":for(r=0,i=(n=o.extrema(l[0].x,l[1].x,l[2].x)).length;r<i;r++)n[r]=o.at(l[0].x,l[1].x,l[2].x,n[r]);for(n.push(l[0].x,l[2].x),r=0,i=(e=o.extrema(l[0].y,l[1].y,l[2].y)).length;r<i;r++)e[r]=o.at(l[0].y,l[1].y,l[2].y,e);e.push(l[0].y,l[2].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"C":for(r=0,i=(n=a.extrema(l[0].x,l[1].x,l[2].x,l[3].x)).length;r<i;r++)n[r]=a.at(l[0].x,l[1].x,l[2].x,l[3].x,n[r]);for(r=0,i=(e=a.extrema(l[0].y,l[1].y,l[2].y,l[3].y)).length;r<i;r++)e[r]=a.at(l[0].y,l[1].y,l[2].y,l[3].y,e[r]);n.push(l[0].x,l[3].x),e.push(l[0].y,l[3].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"A":var c=l,h=c[1],f=c[2],p=c[3],g=c[4],d=c[5],v=c[6],y=c[7],x=c[8],m=d,b=d+v,_=s.xExtrema(y,p,g),w=1/0,S=-1/0,M=[m,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var C=_+r;1===x?m<C&&C<b&&M.push(C):b<C&&C<m&&M.push(C)}for(r=0,i=M.length;r<i;r++){var A=s.xAt(y,p,g,h,M[r]);A<w&&(w=A),A>S&&(S=A)}var k=s.yExtrema(y,p,g),P=1/0,O=-1/0,T=[m,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var I=k+r;1===x?m<I&&I<b&&T.push(I):b<I&&I<m&&T.push(I)}for(r=0,i=T.length;r<i;r++){var L=s.yAt(y,p,g,f,T[r]);L<P&&(P=L),L>O&&(O=L)}this.box={minX:w-u,maxX:S+u,minY:P-u,maxY:O+u}}}}),t.exports=v},function(t,e,n){"use strict";e.a=function(t,e){return e-=t=+t,function(n){return t+e*n}}},function(t,e,n){var r=n(13),i=Array.prototype.indexOf;t.exports=function(t,e){return!!r(t)&&i.call(t,e)>-1}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){t.exports={mat3:n(52),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var a=n(43),o=n(8),s=a.mat3,u=a.vec3,l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();o(this,n,e),this.init()}return i(t,[{key:"getDefaultCfg",value:function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}}}]),i(t,[{key:"init",value:function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)}},{key:"_swapDim",value:function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}}},{key:"getCenter",value:function(){return this.center}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"convertDim",value:function(t,e){var n=this[e],r=n.start;return r+t*(n.end-r)}},{key:"invertDim",value:function(t,e){var n=this[e],r=n.start;return(t-r)/(n.end-r)}},{key:"convertPoint",value:function(t){return t}},{key:"invertPoint",value:function(t){return t}},{key:"applyMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=[t,e,n];return u.transformMat3(i,i,r),i}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=s.invert([],r),a=[t,e,n];return u.transformMat3(a,a,i),a}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}}},{key:"invert",value:function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})}},{key:"rotate",value:function(t){var e=this.matrix,n=this.center;return s.translate(e,e,[-n.x,-n.y]),s.rotate(e,e,t),s.translate(e,e,[n.x,n.y]),this}},{key:"reflect",value:function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this}},{key:"scale",value:function(t,e){var n=this.matrix,r=this.center;return s.translate(n,n,[-r.x,-r.y]),s.scale(n,n,[t,e]),s.translate(n,n,[r.x,r.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return s.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}();t.exports=l},function(t,e,n){var r=n(0),i={splitPoints:function(t){var e=[],n=t.x,i=t.y;return i=r.isArray(i)?i:[i],r.each(i,(function(t,i){var a={x:r.isArray(n)?n[i]:n,y:t};e.push(a)})),e},addFillAttrs:function(t,e){e.color&&(t.fill=e.color),r.isNumber(e.opacity)&&(t.opacity=t.fillOpacity=e.opacity)},addStrokeAttrs:function(t,e){e.color&&(t.stroke=e.color),r.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity)}};t.exports=i},function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p})),e.g=function(t,e){var n=g(t,e);if(n.state>s)throw new Error("too late; already scheduled");return n},e.h=function(t,e){var n=g(t,e);if(n.state>c)throw new Error("too late; already running");return n},e.f=g;var r=n(452),i=n(170),a=Object(r.a)("start","end","cancel","interrupt"),o=[],s=0,u=1,l=2,c=3,h=4,f=5,p=6;function g(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}e.e=function(t,e,n,r,g,d){var v=t.__transition;if(v){if(n in v)return}else t.__transition={};!function(t,e,n){var r,a=t.__transition;function o(f){var d,v,y,x;if(n.state!==u)return g();for(d in a)if((x=a[d]).name===n.name){if(x.state===c)return Object(i.timeout)(o);x.state===h?(x.state=p,x.timer.stop(),x.on.call("interrupt",t,t.__data__,x.index,x.group),delete a[d]):+d<e&&(x.state=p,x.timer.stop(),x.on.call("cancel",t,t.__data__,x.index,x.group),delete a[d])}if(Object(i.timeout)((function(){n.state===c&&(n.state=h,n.timer.restart(s,n.delay,n.time),s(f))})),n.state=l,n.on.call("start",t,t.__data__,n.index,n.group),n.state===l){for(n.state=c,r=new Array(y=n.tween.length),d=0,v=-1;d<y;++d)(x=n.tween[d].value.call(t,t.__data__,n.index,n.group))&&(r[++v]=x);r.length=v+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(g),n.state=f,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);n.state===f&&(n.on.call("end",t,t.__data__,n.index,n.group),g())}function g(){for(var r in n.state=p,n.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=n,n.timer=Object(i.timer)((function(t){n.state=u,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:g,on:a,tween:o,time:d.time,delay:d.delay,duration:d.duration,ease:d.ease,timer:null,state:s})}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(4);t.exports=function t(e){if("object"!==(void 0===e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){var r=n(26),i=n(4),a=5;function o(t,e,n,s){for(var u in n=n||0,s=s||a,e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&r(l)?(r(t[u])||(t[u]={}),n<s?o(t[u],l,n+1,s):t[u]=e[u]):i(l)?(t[u]=[],t[u]=t[u].concat(l)):void 0!==l&&(t[u]=l)}}t.exports=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],i=1;i<e;i++)o(r,t[i]);return r}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":n(t))&&null!==t}},function(t,e,n){var r=n(49),i=n(13),a=n(10);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length&&(o=t(e[s],n[s]));s++);return o}if(r(e)||r(n)){var u=Object.keys(e),l=Object.keys(n);if(u.length!==l.length)return!1;for(var c=!0,h=0;h<u.length&&(c=t(e[u[h]],n[u[h]]));h++);return c}return!1}},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){var r=n(183);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*i},e.equals=function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))};var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;var i=Math.PI/180},function(t,e,n){var r;
/*!
* EventEmitter v5.1.0 - git.io/ee
* Unlicense - http://unlicense.org/
* Oliver Caldwell - http://oli.me.uk/
* @preserve
*/!function(e){"use strict";function i(){}var a=i.prototype,o=e.EventEmitter;function s(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}a.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},a.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},a.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},a.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},a.on=u("addListener"),a.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},a.once=u("addOnceListener"),a.defineEvent=function(t){return this.getListeners(t),this},a.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},a.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=s(i[r],e))&&i[r].splice(n,1);return this},a.off=u("removeListener"),a.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},a.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},a.manipulateListeners=function(t,e,n){var r,i,a=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)a.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?a.call(this,r,i):o.call(this,r,i));return this},a.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},a.removeAllListeners=u("removeEvent"),a.emitEvent=function(t,e){var n,r,i,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},a.trigger=u("emitEvent"),a.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},a.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},a._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},a._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=o,i},void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}(this||{})},function(t,e,n){var r=n(36),i=n(103),a=n(56),o=n(37);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var l=r.pointDistance(t,e,n,i,o,s);return!isNaN(l)&&l<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],l=t[a+1][1];if(this.line(o,s,u,l,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,l,c,h){return a.pointDistance(t,e,n,r,i,o,s,u,c,h)<=l/2},quadraticline:function(t,e,n,r,a,o,s,u,l){return i.pointDistance(t,e,n,r,a,o,u,l)<=s/2},arcline:function(t,e,n,r,i,a,s,u,l){return o.pointDistance(t,e,n,r,i,a,u,l)<=s/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},function(t,e,n){var r=n(1),i=r.vec2;function a(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function o(t,e,n,r,o,s,u,l,c,h,f){var p,g,d,v,y,x,m,b,_=.005,w=1/0,S=[c,h];for(g=0;g<1;g+=.05)d=[a(t,n,o,u,g),a(e,r,s,l,g)],(v=i.squaredDistance(S,d))<w&&(p=g,w=v);w=1/0;for(var M=0;M<32&&!(_<1e-4);M++)b=p+_,d=[a(t,n,o,u,m=p-_),a(e,r,s,l,m)],v=i.squaredDistance(S,d),m>=0&&v<w?(p=m,w=v):(x=[a(t,n,o,u,b),a(e,r,s,l,b)],y=i.squaredDistance(S,x),b<=1&&y<w?(p=b,w=y):_*=.5);return f&&(f.x=a(t,n,o,u,p),f.y=a(e,r,s,l,p)),Math.sqrt(w)}function s(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}t.exports={at:a,derivativeAt:function(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)},projectPoint:function(t,e,n,r,i,a,s,u,l,c){var h={};return o(t,e,n,r,i,a,s,u,l,c,h),h},pointDistance:o,extrema:function(t,e,n,i){var a,o,s,u=3*t-9*e+9*n-3*i,l=6*e-12*n+6*i,c=3*n-3*i,h=[];if(r.isNumberEqual(u,0))r.isNumberEqual(l,0)||(a=-c/l)>=0&&a<=1&&h.push(a);else{var f=l*l-4*u*c;r.isNumberEqual(f,0)?h.push(-l/(2*u)):f>0&&(o=(-l-(s=Math.sqrt(f)))/(2*u),(a=(-l+s)/(2*u))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h},len:function(t,e,n,i,a,o,u,l,c){r.isNil(c)&&(c=1);for(var h=(c=c>1?1:c<0?0:c)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,d=0;d<12;d++){var v=h*f[d]+h,y=s(v,t,n,a,u),x=s(v,e,i,o,l),m=y*y+x*x;g+=p[d]*Math.sqrt(m)}return h*g}}},function(t,e,n){var r=n(1),i=n(6),a=n(27),o=n(39),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return(t=r.isFunction(o)?o:s.Symbols[o])?t(n,i,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i<r.length;i++){var s=r[i];n=new o(s,n,i===r.length-1),e.push(n),n.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){var r=n(81),i="\t\n\v\f\r    \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(typeof t==typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f,p,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=h,v=t.length;d<v;d++){if(r.push(f=[]),(e=(p=t[d])[0])!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+i,f[7]=+p[7]+a;break;case"V":f[1]=+p[1]+a;break;case"H":f[1]=+p[1]+i;break;case"R":for(var y=2,x=(n=[i,a].concat(p.slice(1))).length;y<x;y++)n[y]=+n[y]+i,n[++y]=+n[y]+a;r.pop(),r=r.concat(u(n,g));break;case"O":r.pop(),(n=l(i,a,p[1],p[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(l(i,a,p[1],p[2],p[3])),f=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+p[1]+i,c=+p[2]+a;break;default:for(var m=1,b=p.length;m<b;m++)f[m]=+p[m]+(m%2?i:a)}else if("R"===e)n=[i,a].concat(p.slice(1)),r.pop(),r=r.concat(u(n,g)),f=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),(n=l(i,a,p[1],p[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(l(i,a,p[1],p[2],p[3])),f=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,w=p.length;_<w;_++)f[_]=p[_];if("O"!==(e=e.toUpperCase()))switch(f[0]){case"Z":i=+o,a=+c;break;case"H":i=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],c=f[f.length-1];break;default:i=f[f.length-2],a=f[f.length-1]}}return r},h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,g,d,v=120*Math.PI/180,y=Math.PI/180*(+a||0),x=[],m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],p=c[1],g=c[2],d=c[3];else{e=(h=m(e,n,-y)).x,n=h.y,u=(h=m(u,l,-y)).x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var b=(e-u)/2,_=(n-l)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(r*=w=Math.sqrt(w),i*=w);var S=r*r,M=i*i,C=(o===s?-1:1)*Math.sqrt(Math.abs((S*M-S*_*_-M*b*b)/(S*_*_+M*b*b)));g=C*r*_/i+(e+u)/2,d=C*-i*b/r+(n+l)/2,f=Math.asin(((n-d)/i).toFixed(9)),p=Math.asin(((l-d)/i).toFixed(9)),f=e<g?Math.PI-f:f,p=u<g?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var A=p-f;if(Math.abs(A)>v){var k=p,P=u,O=l;p=f+v*(s&&p>f?1:-1),x=t(u=g+r*Math.cos(p),l=d+i*Math.sin(p),r,i,a,0,s,P,O,[p,k,g,d])}A=p-f;var T=Math.cos(f),I=Math.sin(f),L=Math.cos(p),j=Math.sin(p),E=Math.tan(A/4),D=4/3*r*E,F=4/3*i*E,B=[e,n],R=[e+D*I,n-F*T],z=[u+D*j,l-F*L],N=[u,l];if(R[0]=2*B[0]-R[0],R[1]=2*B[1]-R[1],c)return[R,z,N].concat(x);for(var Y=[],V=0,X=(x=[R,z,N].concat(x).join().split(",")).length;V<X;V++)Y[V]=V%2?m(x[V-1],x[V],y).y:m(x[V],x[V+1],y).x;return Y},g=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],l="",g="",d=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var x=0;x<n;x++){r[x]&&(l=r[x][0]),"C"!==l&&(s[x]=l,x&&(g=s[x-1])),r[x]=d(r[x],a,g),"A"!==s[x]&&"C"===l&&(s[x]="C"),v(r,x),i&&(i[x]&&(l=i[x][0]),"C"!==l&&(u[x]=l,x&&(g=u[x-1])),i[x]=d(i[x],o,g),"A"!==u[x]&&"C"===l&&(u[x]="C"),v(i,x)),y(r,i,a,o,x),y(i,r,o,a,x);var m=r[x],b=i&&i[x],_=m.length,w=i&&b.length;a.x=m[_-2],a.y=m[_-1],a.bx=parseFloat(m[_-4])||a.x,a.by=parseFloat(m[_-3])||a.y,o.bx=i&&(parseFloat(b[w-4])||o.x),o.by=i&&(parseFloat(b[w-3])||o.y),o.x=i&&b[w-2],o.y=i&&b[w-1]}return i?[r,i]:r},d=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(d,"$1")},y=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},x=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var l=(u=u>1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var g=l*c[p]+l,d=y(g,t,n,i,o),v=y(g,e,r,a,s),x=d*d+v*v;f+=h[p]*Math.sqrt(x)}return l*f},m=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],g=0;g<2;++g)if(0===g?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var d=l*l-4*c*u,v=Math.sqrt(d);if(!(d<0)){var y=(-l+v)/(2*u);y>0&&y<1&&f.push(y);var x=(-l-v)/(2*u);x>0&&x<1&&f.push(x)}}for(var m,b=f.length,_=b;b--;)m=1-(h=f[b]),p[0][b]=m*m*m*t+3*m*m*h*n+3*m*h*h*i+h*h*h*o,p[1][b]=m*m*m*e+3*m*m*h*r+3*m*h*h*a+h*h*h*s;return p[0][_]=t,p[1][_]=e,p[0][_+1]=o,p[1][_+1]=s,p[0].length=p[1].length=_+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},_=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},w=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},S=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:w(t,e,n,r),vb:[t,e,n,r].join(" ")}},M=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var l=m.apply(null,t);return S(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},C=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,g=t+2*u*(n-t)+f*(i-2*n+t),d=e+2*u*(r-e)+f*(a-2*r+e),v=n+2*u*(i-n)+f*(o-2*i+n),y=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},A=function(t,e,n){if(!function(t,e){return t=S(t),e=S(e),_(e,t.x,t.y)||_(e,t.x2,t.y)||_(e,t.x,t.y2)||_(e,t.x2,t.y2)||_(t,e.x,e.y)||_(t,e.x2,e.y)||_(t,e.x,e.y2)||_(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(M(t),M(e)))return n?0:[];for(var r=~~(x.apply(0,t)/8),i=~~(x.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],l=0;l<r+1;l++){var c=C.apply(0,t.concat(l/r));a.push({x:c.x,y:c.y,t:l/r})}for(var h=0;h<i+1;h++){var f=C.apply(0,e.concat(h/i));o.push({x:f.x,y:f.y,t:h/i})}for(var p=0;p<r;p++)for(var g=0;g<i;g++){var d=a[p],v=a[p+1],y=o[g],m=o[g+1],w=Math.abs(v.x-d.x)<.001?"y":"x",A=Math.abs(m.x-y.x)<.001?"y":"x",k=b(d.x,d.y,v.x,v.y,y.x,y.y,m.x,m.y);if(k){if(s[k.x.toFixed(4)]===k.y.toFixed(4))continue;s[k.x.toFixed(4)]=k.y.toFixed(4);var P=d.t+Math.abs((k[w]-d[w])/(v[w]-d[w]))*(v.t-d.t),O=y.t+Math.abs((k[A]-y[A])/(m[A]-y[A]))*(m.t-y.t);P>=0&&P<=1&&O>=0&&O<=1&&(n?u++:u.push({x:k.x,y:k.y,t1:P,t2:O}))}}return u};function k(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}var P=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=k(a,o/(1-o*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},O=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function T(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}t.exports={parsePathString:s,parsePathArray:v,pathTocurve:g,pathToAbsolute:c,catmullRomToBezier:u,rectPath:w,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(var s=0;s<r;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var l=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(P(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},fillPathByDiff:function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var l=0;l<=a;l++)s[0][l]={min:l};for(var c=1;c<=i;c++){n=t[c-1];for(var h=1;h<=a;h++){r=e[h-1],o=O(n,r)?0:1;var f=s[c-1][h].min+1,p=s[c][h-1].min+1,g=s[c-1][h-1].min+o;s[c][h]=T(f,p,g)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var l=n[u][u].min;s=u;for(var c=o;c<=i;c++)n[u][c].min<l&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(var h=a.length-1;h>=0;h--)o=a[h].index,"add"===a[h].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r<i)for(var p=0;p<f;p++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t},formatPath:function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t},intersection:function(t,e){return function(t,e,n){var r,i,a,o,s,u,l,c,h,f;t=g(t),e=g(e);for(var p=n?0:[],d=0,v=t.length;d<v;d++){var y=t[d];if("M"===y[0])r=s=y[1],i=u=y[2];else{"C"===y[0]?(h=[r,i].concat(y.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var x=0,m=e.length;x<m;x++){var b=e[x];if("M"===b[0])a=l=b[1],o=c=b[2];else{"C"===b[0]?(f=[a,o].concat(b.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var _=A(h,f,n);if(n)p+=_;else{for(var w=0,S=_.length;w<S;w++)_[w].segment1=d,_[w].segment2=x,_[w].bez1=h,_[w].bez2=f;p=p.concat(_)}}}}}return p}(t,e)}}},function(t,e,n){"use strict";e.b=g,e.a=v,e.c=y,e.d=x;var r,i,a=0,o=0,s=0,u=1e3,l=0,c=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(d),c=f.now()+h)}function d(){c=0}function v(){this._call=this._time=this._next=null}function y(t,e,n){var r=new v;return r.restart(t,e,n),r}function x(){g(),++a;for(var t,e=r;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--a}function m(){c=(l=f.now())+h,a=o=0;try{x()}finally{a=0,function(){for(var t,e,n=r,a=1/0;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(a)}(),c=0}}function b(){var t=f.now(),e=t-l;e>u&&(h-=e,l=t)}function _(t){a||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(m,t-f.now()-h)),s&&(s=clearInterval(s))):(s||(l=f.now(),s=setInterval(b,u)),a=1,p(m)))}v.prototype=y.prototype={constructor:v,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?g():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},function(t,e,n){"use strict";var r=n(17),i=n(118),a=n(121),o=n(122),s=n(40),u=n(123),l=n(124),c=n(120);e.a=function(t,e){var n,h=typeof e;return null==e||"boolean"===h?Object(c.a)(e):("number"===h?s.a:"string"===h?(n=Object(r.a)(e))?(e=n,i.a):l.a:e instanceof r.a?i.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";e.a=i,n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),e.e=b,e.h=S,e.g=M,e.b=C,e.f=I;var r=n(62);function i(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),d=new RegExp("^hsl\\("+[u,l,l]+"\\)$"),v=new RegExp("^hsla\\("+[u,l,l,u]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function x(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function b(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new C(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new C(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new C(e[1],e[2],e[3],1):(e=f.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?w(e[1],e[2],e[3],e[4]):(e=g.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?_(y[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function _(t){return new C(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function S(t){return t instanceof i||(t=b(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function M(t,e,n,r){return 1===arguments.length?S(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function A(){return"#"+P(this.r)+P(this.g)+P(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function P(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function O(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new L(t,e,n,r)}function T(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=b(t)),!t)return new L;if(t instanceof L)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-a,l=(o+a)/2;return u?(s=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=l<.5?o+a:2-o-a,s*=60):u=l>0&&l<1?0:s,new L(s,u,l,t.opacity)}function I(t,e,n,r){return 1===arguments.length?T(t):new L(t,e,n,null==r?1:r)}function L(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function j(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,b,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHsl:function(){return T(this).formatHsl()},formatRgb:m,toString:m}),Object(r.a)(C,M,Object(r.b)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatRgb:k,toString:k})),Object(r.a)(L,I,Object(r.b)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(j(t>=240?t-240:t+120,i,r),j(t,i,r),j(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,u)}}},function(t,e,n){var r=n(2),i=n(13);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){e(t,r)&&n.push(t)})),n}},function(t,e,n){var r=n(5),i=n(4),a=n(2);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];r(u)||(i(u)||(u=[u]),a(u,(function(t){o[t]||(n.push(t),o[t]=!0)})))}return n}},function(t,e,n){var r=n(16).Group,i=n(22).Label,a=n(7),o=n(0),s=["line","point","path"],u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u.getDefaultCfg=function(){return{label:a.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},u._renderUI=function(){t.prototype._renderUI.call(this),this.initLabelsCfg();var e=this.addGroup(),n=this.addGroup({elCls:"x-line-group"}),r=this.get("labelRenderer");this.set("labelsGroup",e),this.set("lineGroup",n),this.get("labelRenderer").set("group",e),r.set("group",e),r.set("lineGroup",n)},u.initLabelsCfg=function(){var t=new i,e=this.getDefaultLabelCfg(),n=this.get("labelCfg");o.deepMix(e,n.globalCfg||n.cfg),t.set("config",!1),e.labelLine&&t.set("labelLine",e.labelLine),t.set("coord",this.get("coord")),this.set("labelRenderer",t),this.set("label",e)},u.getDefaultLabelCfg=function(){var t=this.get("labelCfg").cfg||this.get("labelCfg").globalCfg,e=this.get("geomType"),n=this.get("viewTheme")||a;return"polygon"===e||t&&t.offset<0&&-1===o.indexOf(s,e)?o.deepMix({},this.get("label"),n.innerLabels,t):o.deepMix({},this.get("label"),n.label,t)},u.getLabelsItems=function(t,e){var n=this,r=[],i=n.get("geom"),a=n.get("coord");n._getLabelCfgs(t,e);var s=n.get("labelItemCfgs");return o.each(t,(function(t,e){var u=t._origin,l=s[e];if(l){o.isArray(l.text)||(l.text=[l.text]);var c=l.text.length;o.each(l.text,(function(e,s){if(o.isNil(e)||""===e)r.push(null);else{var h=n.getLabelPoint(l,t,s);(h=o.mix({},l,h)).textAlign||(h.textAlign=n.getLabelAlign(h,s,c)),i&&(h._id=i._getShapeId(u)+"-glabel-"+s+"-"+h.text),h.coord=a,r.push(h)}}))}else r.push(null)})),r},u.adjustItems=function(t){return o.each(t,(function(t){t&&(t.offsetX&&(t.x+=t.offsetX),t.offsetY&&(t.y+=t.offsetY))})),t},u.drawLines=function(t){var e=this;o.each(t,(function(t){t&&t.offset>0&&e.lineToLabel(t)}))},u.lineToLabel=function(){},u.getLabelPoint=function(t,e,n){var r=this.get("coord"),i=t.text.length;function a(e,n){var r,i;return o.isArray(e)&&(1===t.text.length?e.length<=2?e=e[e.length-1]:(r=e,i=0,o.each(r,(function(t){i+=t})),e=i/r.length):e=e[n]),e}var s={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var u=function(t,e){if(o.isNumber(t)&&o.isNumber(e))return[t,e];for(var n,r,i=-1,a=0,s=0,u=t.length-1,l=0;++i<t.length;)n=u,u=i,l+=r=t[n]*e[u]-t[u]*e[n],a+=(t[n]+t[u])*r,s+=(e[n]+e[u])*r;return[a/(l*=3),s/l]}(e.x,e.y);s.x=u[0],s.y=u[1]}else s.x=a(e.x,n),s.y=a(e.y,n);if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var l=-1/0;e.nextPoints.forEach((function(t){(t=r.convert(t)).x>l&&(l=t.x)})),s.x=(s.x+l)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach((function(t){t=r.convert(t),(o.isArray(t.x)&&!e.x.includes(t.x)||o.isNumber(t.x)&&e.x!==t.x)&&(s.x=(s.x+t.x)/2)})),t.position&&this.setLabelPosition(s,e,n,t.position);var c=this.getLabelOffset(t,n,i);return t.offsetX&&(c.x+=t.offsetX),t.offsetY&&(c.y+=t.offsetY),this.transLabelPoint(s),s.start={x:s.x,y:s.y},s.x+=c.x,s.y+=c.y,s.color=e.color,s},u.setLabelPosition=function(){},u.transLabelPoint=function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},u.getOffsetVector=function(t){var e=t.offset||0,n=this.get("coord");return n.isTransposed?n.applyMatrix(e,0):n.applyMatrix(0,e)},u.getDefaultOffset=function(t){var e=0,n=this.get("coord"),r=this.getOffsetVector(t);e=n.isTransposed?r[0]:r[1];var i=this.get("yScale");return i&&t.point&&t.point[i.field]<0&&(e*=-1),e},u.getLabelOffset=function(t,e,n){var r=this.getDefaultOffset(t),i=this.get("coord").isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},u.getLabelAlign=function(t,e,n){var r="center";if(this.get("coord").isTransposed){var i=this.getDefaultOffset(t);r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},u._getLabelValue=function(t,e){o.isArray(e)||(e=[e]);var n=[];return o.each(e,(function(e){var r=t[e.field];if(o.isArray(r)){var i=[];o.each(r,(function(t){i.push(e.getText(t))})),r=i}else r=e.getText(r);(o.isNil(r)||""===r)&&n.push(null),n.push(r)})),n},u._getLabelCfgs=function(t){var e=this,n=this.get("labelCfg"),r=n.scales,i=this.get("label"),s=e.get("viewTheme")||a,u=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),o.each(t,(function(t,a){var l={},c=t._origin,h=e._getLabelValue(c,r);if(n.callback){var f=r.map((function(t){return c[t.field]}));l=n.callback.apply(null,[].concat(f,[t,a]))}if(l||0===l){if(o.isString(l)||o.isNumber(l)?l={text:l}:(l.text=l.content||h[0],delete l.content),l=o.mix({},i,n.globalCfg||{},l),t.point=c,l.point=c,l.htmlTemplate&&(l.useHtml=!0,l.text=l.htmlTemplate.call(null,l.text,t,a),delete l.htmlTemplate),l.formatter&&(l.text=l.formatter.call(null,l.text,t,a),delete l.formatter),l.label){var p=l.label;delete l.label,l=o.mix(l,p)}if(l.textStyle){delete l.textStyle.offset;var g=l.textStyle;o.isFunction(g)&&(l.textStyle=g.call(null,l.text,t,a))}l.labelLine&&(l.labelLine=o.mix({},i.labelLine,l.labelLine)),l.textStyle=o.mix({},i.textStyle,s.label.textStyle,l.textStyle),delete l.items,u.push(l)}else u.push(null)})),this.set("labelItemCfgs",u)},u.showLabels=function(t,e){var n=this.get("labelRenderer"),r=this.getLabelsItems(t,e);e=[].concat(e);var i=this.get("type");r=this.adjustItems(r,e),this.drawLines(r),n.set("items",r.filter((function(t,n){return!!t||(e.splice(n,1),!1)}))),i&&(n.set("shapes",e),n.set("type",i),n.set("points",t)),n.set("canvas",this.get("canvas")),n.draw()},u.destroy=function(){this.get("labelRenderer").destroy(),t.prototype.destroy.call(this)},r}(r);t.exports=u},function(t,e,n){var r=n(54),i=n(3),a=function(t){var e,n;n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=a.prototype;function a(e){var n,r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n=t.call(this)||this),a={visible:!0},o=r.getDefaultCfg();return r._attrs=a,i.deepMix(a,o,e),n}return r.getDefaultCfg=function(){return{}},r.get=function(t){return this._attrs[t]},r.set=function(t,e){this._attrs[t]=e},r.changeVisible=function(){},r.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},a}(r);t.exports=a},function(t,e,n){var r=n(3),i=n(157),a=n(329),o=n(14).FONT_FAMILY,s=r.Event,u=r.Group,l=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=i.prototype;return l.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:20,height:156,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:o},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},slidable:!0,triggerAttr:{fill:"#fff",shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},_range:[0,100],middleBackgroundStyle:{fill:"#D9D9D9"},textOffset:4,lineStyle:{lineWidth:1,stroke:"#fff"},pointerStyle:{fill:"rgb(230, 230, 230)"}})},l._calStartPoint=function(){var t={x:10,y:this.get("titleGap")-8},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},l.beforeRender=function(){var e=this.get("items");r.isArray(e)&&!r.isEmpty(e)&&(t.prototype.beforeRender.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},l._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},l.render=function(){t.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},l._renderSlider=function(){var t=new u,e=new u,n=new u,r=this._calStartPoint(),i=this.get("group").addGroup(a,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});i.translate(r.x,r.y),this.set("slider",i),this._renderSliderShape().attr("clip",i.get("middleHandleElement")),this._renderTrigger()},l._addMiddleBar=function(t,e,n){return t.addShape(e,{attrs:r.mix({},n,this.get("middleBackgroundStyle"))}),t.addShape(e,{attrs:n})},l._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),a=this.get("triggerAttr"),o=r.mix({},a),s=r.mix({},a),u=r.mix({text:this._formatItemValue(t.value)+""},i),l=r.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",s,l)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",s,l))},l._addVerticalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),a=this.get("width"),o=i.addShape("rect",{attrs:r.mix({x:a/2-8-2,y:"min"===t?0:-8,width:18,height:8},e)}),s=i.addShape("text",{attrs:r.mix(n,{x:a+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},l._addHorizontalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),a=i.addShape("rect",{attrs:r.mix({x:"min"===t?-8:0,y:-8-this.get("height")/2,width:8,height:16},e)}),o=i.addShape("text",{attrs:r.mix(n,{x:"min"===t?-12:12,y:4+this.get("textOffset")+10,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";a.attr("cursor",s),o.attr("cursor",s),this.set(t+"ButtonElement",a),this.set(t+"TextElement",o)},l._bindEvents=function(){var t=this;this.get("slidable")&&this.get("slider").on("sliderchange",(function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);t._updateElement(a,o);var u=new s("itemfilter",e,!0,!0);u.range=[a,o],t.emit("itemfilter",u)})),this.get("hoverable")&&(this.get("group").on("mousemove",r.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",r.wrapBehavior(this,"_onMouseLeave")))},l._updateElement=function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.attr("text",this._formatItemValue(e)+"")},l._onMouseLeave=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},l._onMouseMove=function(t){var e,n=this.get("height"),r=this.get("width"),i=this.get("items"),a=this.get("canvas").get("el").getBoundingClientRect(),o=this.get("group").getBBox();if("vertical"===this.get("layout")){var s=5;"color-legend"===this.get("type")&&(s=30);var u=this.get("titleGap"),l=this.get("titleShape");l&&(u+=l.getBBox().maxY-l.getBBox().minY);var c=t.clientY||t.event.clientY;c=c-a.y-this.get("group").attr("matrix")[7]+o.y-s+u,e=i[0].value+(1-c/n)*(i[i.length-1].value-i[0].value)}else{var h=t.clientX||t.event.clientX;h=h-a.x-this.get("group").attr("matrix")[6],e=i[0].value+h/r*(i[i.length-1].value-i[0].value)}e=e.toFixed(2),this.activate(e),this.emit("mousehover",{value:e})},l.activate=function(t){if(t){var e=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),i=this.get("items");if(!(t<i[0].value||t>i[i.length-1].value)){var a,o=this.get("height"),s=this.get("width"),u=this.get("titleShape"),l=this.get("titleGap"),c=[],h=(t-i[0].value)/(i[i.length-1].value-i[0].value);if("vertical"===this.get("layout")){var f=0,p=0;"color-legend"===this.get("type")&&(f=l,u&&(f+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?f-=13:(f=l-15,u&&(f+=u.getBBox().height)),p+=10),c=[[p,(h=(1-h)*o)+f],[p-10,h+f-5],[p-10,h+f+5]],a=r.mix({},{x:s+this.get("textOffset")/2+p,y:h+f,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var g=0,d=0;"color-legend"===this.get("type")&&(g=l,u&&(g+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?g-=7:(g=l,u||(g-=7)),d+=10),c=[[(h*=s)+d,g],[h+d-5,g-10],[h+d+5,g-10]],a=r.mix({},{x:h-5,y:o+this.get("textOffset")+g,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=r.mix(a,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v})).set("id","hoverText"),e?e.attr(r.mix({points:c},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:r.mix({points:c},this.get("pointerStyle"))})).set("id","hoverPointer"),this.get("canvas").draw()}}},l.deactivate=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},i}(i);t.exports=l},function(t,e,n){var r=n(67),i=n(3),a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{x:0,y:0,items:null,titleContent:null,showTitle:!0,plotRange:null,offset:10,timeStamp:0,inPlot:!0,crosshairs:null})},a.isContentChange=function(t,e){var n=this.get("titleContent"),r=this.get("items"),a=!(t===n&&r.length===e.length);return a||i.each(e,(function(t,e){var n=r[e];for(var o in t)if(t.hasOwnProperty(o)&&!i.isObject(t[o])&&t[o]!==n[o]){a=!0;break}if(a)return!1})),a},a.setContent=function(t,e){var n=(new Date).valueOf();return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this.render(),this},a.setPosition=function(t,e){this.set("x",t),this.set("y",e)},a.render=function(){},a.clear=function(){},a.show=function(){this.set("visible",!0)},a.hide=function(){this.set("visible",!1)},r}(r);t.exports=a},function(t,e,n){"use strict";n.d(e,"c",(function(){return E})),e.a=D;var r=n(415),i=n(416),a=n(417),o=n(418),s=n(388),u=n(420),l=n(421),c=n(422),h=n(423),f=n(424),p=n(425),g=n(426),d=n(427),v=n(428),y=n(429),x=n(430),m=n(431),b=n(390),_=n(432),w=n(433),S=n(434),M=n(435),C=n(436),A=n(437),k=n(438),P=n(439),O=n(440),T=n(441),I=n(442),L=n(377),j=n(443),E=[null];function D(t,e){this._groups=t,this._parents=e}function F(){return new D([[document.documentElement]],E)}D.prototype=F.prototype={constructor:D,select:r.a,selectAll:i.a,filter:a.a,data:o.a,enter:s.b,exit:u.a,join:l.a,merge:c.a,order:h.a,sort:f.a,call:p.a,nodes:g.a,node:d.a,size:v.a,empty:y.a,each:x.a,attr:m.a,style:b.a,property:_.a,classed:w.a,text:S.a,html:M.a,raise:C.a,lower:A.a,append:k.a,insert:P.a,remove:O.a,clone:T.a,datum:I.a,on:L.b,dispatch:j.a},e.b=F},function(t,e,n){var r=n(10),i=n(80);t.exports={toTimeStamp:function(t){return r(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),i(t)&&(t=t.getTime()),t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(414);n.d(e,"create",(function(){return r.a}));var i=n(362);n.d(e,"creator",(function(){return i.a}));var a=n(444);n.d(e,"local",(function(){return a.a}));var o=n(387);n.d(e,"matcher",(function(){return o.a}));var s=n(445);n.d(e,"mouse",(function(){return s.a}));var u=n(373);n.d(e,"namespace",(function(){return u.a}));var l=n(374);n.d(e,"namespaces",(function(){return l.a}));var c=n(363);n.d(e,"clientPoint",(function(){return c.a}));var h=n(385);n.d(e,"select",(function(){return h.a}));var f=n(446);n.d(e,"selectAll",(function(){return f.a}));var p=n(70);n.d(e,"selection",(function(){return p.b}));var g=n(375);n.d(e,"selector",(function(){return g.a}));var d=n(386);n.d(e,"selectorAll",(function(){return d.a}));var v=n(390);n.d(e,"style",(function(){return v.b}));var y=n(447);n.d(e,"touch",(function(){return y.a}));var x=n(448);n.d(e,"touches",(function(){return x.a}));var m=n(376);n.d(e,"window",(function(){return m.a}));var b=n(377);n.d(e,"event",(function(){return b.c})),n.d(e,"customEvent",(function(){return b.a}))},function(t,e,n){t.exports={Position:n(294),Color:n(295),Shape:n(296),Size:n(297),Opacity:n(298),ColorUtil:n(148)}},function(t,e,n){var r=n(75),i=n(18);i.Linear=n(33),i.Identity=n(176),i.Cat=n(77),i.Time=n(177),i.TimeCat=n(179),i.Log=n(180),i.Pow=n(181);var a=function(t){if(i.hasOwnProperty(t)){var e=r(t);i[e]=function(e){return new i[t](e)}}};for(var o in i)a(o);var s=["cat","timeCat"];i.isCategory=function(t){return s.indexOf(t)>=0},t.exports=i},function(t,e,n){var r=n(24);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){var n=12;function r(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length&&!(e<t[i]);i++)r=t[i];return r}function i(t,e){var n,r=t.length;if(0===r)return NaN;if(e>t[r-1])return NaN;if(e<t[0])return t[0];for(var i=1;i<t.length;i++)if(e<=t[i]){n=t[i];break}return n}var a={snapFactorTo:function(t,e,r){if(isNaN(t))return NaN;var i=1;if(0!==t){t<0&&(i=-1);var o=function(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var r=0;t<1;)e/=10,t*=10,r++;e.toString().length>n&&(e=parseFloat(e.toFixed(r)))}else for(;t>10;)e*=10,t/=10;return e}(t*=i);i*=o,t/=o}t="floor"===r?a.snapFloor(e,t):"ceil"===r?a.snapCeiling(e,t):a.snapTo(e,t);var s=parseFloat((t*i).toPrecision(n));return Math.abs(i)<1&&s.toString().length>n&&(s=t/parseInt(1/i)*(i>0?1:-1)),s},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var n=r(t,e),a=i(t,e);if(isNaN(n)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-n)<Math.abs(a-e)?n:a},snapFloor:function(t,e){return r(t,e)},snapCeiling:function(t,e){return i(t,e)},fixedBase:function(t,e){var n=e.toString(),r=n.indexOf("."),i=n.indexOf("e-");if(r<0&&i<0)return Math.round(t);var a=i>=0?parseInt(n.substr(i+2),10):n.substr(r+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))}};t.exports=a},function(t,e,n){var r=n(18),i=n(78),a=n(2),o=n(9),s=n(10),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},u.init=function(){var t=this.values,e=this.tickCount;if(a(t,(function(e,n){t[n]=e.toString()})),!this.ticks){var n=t;e&&(n=i({maxCount:e,data:t,isRounding:this.isRounding}).ticks),this.ticks=n}},u.getText=function(e){return-1===this.values.indexOf(e)&&o(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},u.translate=function(t){var e=this.values.indexOf(t);return-1===e&&o(t)?e=t:-1===e&&(e=NaN),e},u.scale=function(t){var e=this.rangeMin(),n=this.rangeMax();return(s(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e+(this.values.length>1?t/(this.values.length-1):t)*(n-e)},u.invert=function(t){if(s(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var r=(t-e)/(n-e),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},r}(r);r.Cat=u,t.exports=u},function(t,e,n){var r=n(2);t.exports=function(t){var e,n,i,a={},o=[],s=t.isRounding,u=(e=t.data,n=[],r(e,(function(t){n=n.concat(t)})),n),l=u.length,c=t.maxCount||8;if(s?2===(i=function(t,e){var n;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}(l-1,c-1)+1)?i=c:i<c-4&&(i=c-4):i=c,!s&&l<=i+i/2)o=[].concat(u);else{for(var h=parseInt(l/(i-1),10),f=u.map((function(t,e){return e%h==0?u.slice(e,e+h):null})).filter((function(t){return t})),p=1,g=f.length;p<g&&(s?p*h<l-h:p<i-1);p++)o.push(f[p][0]);if(u.length){o.unshift(u[0]);var d=u[l-1];-1===o.indexOf(d)&&o.push(d)}}return a.categories=u,a.ticks=o,a}},function(t,e,n){var r;!function(i){"use strict";var a={},o=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s=/\d\d?/,u=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,l=/\[([^]*?)\]/gm,c=function(){};function h(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function f(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function p(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],v=h(d,3),y=h(g,3);a.i18n={dayNamesShort:y,dayNames:g,monthNamesShort:v,monthNames:d,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return p(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return p(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return p(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return p(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return p(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return p(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return p(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return p(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return p(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return p(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+p(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},m={D:[s,function(t,e){t.day=e}],Do:[new RegExp(s.source+u.source),function(t,e){t.day=parseInt(e,10)}],M:[s,function(t,e){t.month=e-1}],YY:[s,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[s,function(t,e){t.hour=e}],m:[s,function(t,e){t.minute=e}],s:[s,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[s,c],ddd:[u,c],MMM:[u,f("monthNamesShort")],MMMM:[u,f("monthNames")],a:[u,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};m.dd=m.d,m.dddd=m.ddd,m.DD=m.D,m.mm=m.m,m.hh=m.H=m.HH=m.h,m.MM=m.M,m.ss=m.s,m.A=m.a,a.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},a.format=function(t,e,n){var r=n||a.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=a.masks[e]||e||a.masks.default;var i=[];return(e=(e=e.replace(l,(function(t,e){return i.push(e),"??"}))).replace(o,(function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)}))).replace(/\?\?/g,(function(){return i.shift()}))},a.parse=function(t,e,n){var r=n||a.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=a.masks[e]||e,t.length>1e3)return!1;var i=!0,s={};if(e.replace(o,(function(e){if(m[e]){var n=m[e],a=t.search(n[0]);~a?t.replace(n[0],(function(e){return n[1](s,e,r),t=t.substr(a+e.length),e})):i=!1}return m[e]?"":e.slice(1,e.length-1)})),!i)return!1;var u,l=new Date;return!0===s.isPm&&null!=s.hour&&12!=+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12==+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,u=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):u=new Date(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),u},void 0!==t&&t.exports?t.exports=a:void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Date")}},function(t,e,n){t.exports={isFunction:n(11),isObject:n(25),isBoolean:n(82),isNil:n(5),isString:n(10),isArray:n(4),isNumber:n(9),isEmpty:n(83),uniqueId:n(86),clone:n(47),deepMix:n(48),assign:n(8),merge:n(48),upperFirst:n(87),each:n(2),isEqual:n(50),toArray:n(34),extend:n(88),augment:n(89),remove:n(90),isNumberEqual:n(35),toRadian:n(91),toDegree:n(92),mod:n(93),clamp:n(51),createDom:n(94),modifyCSS:n(95),requestAnimationFrame:n(96),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(52),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Boolean")}},function(t,e,n){var r=n(5),i=n(13),a=n(84),o=n(85),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n,r=(n={},function(t){return n[t=t||"g"]?n[t]+=1:n[t]=1,t+n[t]});t.exports=r},function(t,e,n){var r=n(24);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(11),i=n(8);t.exports=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t}},function(t,e,n){var r=n(11),i=n(34),a=n(8);t.exports=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=i.call(t,o))>-1;)r.call(t,s,1);return t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){var r=n(184),i=n(51);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},function(t,e,n){var r=n(185);t.exports=r},function(t,e,n){var r=n(47),i=n(2),a=n(52);t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}})),t}},function(t,e,n){var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(1),i=n(102),a=n(189),o={},s="_INDEX";function u(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}var l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};r.extend(l,i),r.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function t(e){if(!e._cfg&&e!==l){var n=e.superclass.constructor;n&&!n._cfg&&t(n),e._cfg={},r.merge(e._cfg,n._cfg),r.merge(e._cfg,e.CFG)}}(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=o[t];if(i||(i=r.upperFirst(t),o[t]=i),e.attrs&&n){var s=e.attrs;if("text"===t){var u=n.get("fontFamily");u&&(s.fontFamily=s.fontFamily?s.fontFamily:u)}}e.canvas=n,e.type=t;var l=new a[i](e);return this.add(l),l},addGroup:function(t,e){var n,i=this.get("canvas");if(e=r.merge({},e),r.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(r.isObject(t))t.canvas=i,n=new l(t),this.add(n);else{if(void 0!==t)return!1;n=new l,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return r.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,a=i.get("parent");a&&a.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,a=this.get("children");a.length>0?r.each(a,(function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var a=r.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],l=[a.maxX,a.maxY,1];r.apply(o),r.apply(s),r.apply(u),r.apply(l);var c=Math.min(o[0],s[0],u[0],l[0]),h=Math.max(o[0],s[0],u[0],l[0]),f=Math.min(o[1],s[1],u[1],l[1]),p=Math.max(o[1],s[1],u[1],l[1]);c<t&&(t=c),h>e&&(e=h),f<n&&(n=f),p>i&&(i=p)}})):(t=0,e=0,n=0,i=0);var o={minX:t,minY:n,maxX:e,maxY:i};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t,e=this.get("children");return r.each(e,(function(t,e){return t[s]=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r})),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this._attrs.clip,i=this._cfg.children;if(r){var a=[t,e,1];r.invert(a,this.get("canvas")),r.isPointInPath(a[0],a[1])&&(n=u(i,t,e))}else n=u(i,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++)t[e].clearTotalMatrix()}},clear:function(t){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this._cfg.children,e=new l;return r.each(t,(function(t){e.add(t.clone())})),e}}),t.exports=l},function(t,e,n){var r=n(1),i=n(186),a=n(187),o=n(188),s=n(54),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){var r=n(1),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,l,c){var h,f,p,g,d,v,y,x=.005,m=1/0,b=[u,l];for(d=0;d<1;d+=.05)p=[a(t,n,o,d),a(e,r,s,d)],(f=i.squaredDistance(b,p))<m&&(h=d,m=f);for(m=1/0,y=0;y<32&&!(x<1e-4);y++){var _=h-x,w=h+x;p=[a(t,n,o,_),a(e,r,s,_)],f=i.squaredDistance(b,p),_>=0&&f<m?(h=_,m=f):(g=[a(t,n,o,w),a(e,r,s,w)],v=i.squaredDistance(b,g),w<=1&&v<m?(h=w,m=v):x*=.5)}return c&&(c.x=a(t,n,o,h),c.y=a(e,r,s,h)),Math.sqrt(m)}t.exports={at:a,projectPoint:function(t,e,n,r,i,a,s,u){var l={};return o(t,e,n,r,i,a,s,u,l),l},pointDistance:o,extrema:function(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var a=(t-e)/i;return a<=1&&a>=0?[a]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){var r=n(1),i=n(6),a=n(37),o=n(38);function s(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,u=this.getHitLineWidth()/2,l=a.box(e,n,r,i,o,s);return l.minX-=u,l.minY-=u,l.maxX+=u,l.maxY+=u,l},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var l=[],c=s(e,i,r+o),h=u(n,i,r+o),f=s(e,i,r),p=u(n,i,r);return l.push([c,h]),l.push([f,p]),l},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,l=[];a&&(o*=-1);var c=s(e,i,r+o),h=u(n,i,r+o),f=s(e,i,r),p=u(n,i,r);return l.push([f,p]),l.push([c,h]),l},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,l=a>o?o/a:1,c=[1,0,0,0,1,0,0,0,1];r.mat3.scale(c,c,[u,l]),r.mat3.translate(c,c,[n,i]),t.beginPath(),t.save(),t.transform(c[0],c[1],c[3],c[4],c[6],c[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=n(37),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rs,i=t.re,o=t.startAngle,s=t.endAngle,u=t.clockwise,l=this.getHitLineWidth(),c=a.box(e,n,r,o,s,u),h=a.box(e,n,i,o,s,u),f=l/2;return{minX:Math.min(c.minX,h.minX)-f,minY:Math.min(c.minY,h.minY)-f,maxX:Math.max(c.maxX,h.maxX)+f,maxY:Math.max(c.maxY,h.maxY)+f}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,l={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},c={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(t=t||self.get("context")).beginPath(),t.moveTo(l.x,l.y),t.lineTo(c.x,c.y),t.arc(n,r,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,l=e.sy,c=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(h))return void t.drawImage(f,n,i,o,s);if(!(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(h)))return void t.drawImage(f,u,l,c,h,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,r),t.lineTo(i,a)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(6),a=n(39),o=n(27),s=n(38),u=n(58),l=n(56),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(r.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=o.parsePath(t),i=[];if(r.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var s=n.length,u=0;u<n.length;u++){var l=n[u];e=new a(l,e,u===s-1),i.push(e)}this.setSilent("segments",i),this.setSilent("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,i=-1/0,a=1/0,o=-1/0;return r.each(t,(function(t){t.getBBox(e);var r=t.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<a&&(a=r.minY),r.maxY>o&&(o=r.maxY))})),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:i,maxY:o}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(a+=l.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),r.each(u,(function(r,c){n=u[c+1],i=r.length,n&&((t=[])[0]=o/a,e=l.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this._cfg.tCache=s)},_calculateCurve:function(){var t=this._attrs.path;this._cfg.curve=u.pathTocurve(t)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:l.at(o[s-2],u[1],u[3],u[5],1-e),y:l.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this.get("segments");if(r.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,i=0;i<n;i++)e[i].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),i=e.path;if(t=t||this.get("context"),r.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==i[i.length-1]&&"Z"!==i[i.length-1]&&!e.fill){var a=this.getStartTangent();s.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();s.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,i=1/0,a=-1/0,o=-1/0;r.each(t,(function(t){var e=t[0],r=t[1];e<n&&(n=e),e>a&&(a=e),r<i&&(i=r),r>o&&(o=r)}));var s=e/2;return{minX:n-s,minY:i-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),r.each(e,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var i=1/0,a=1/0,o=-1/0,s=-1/0;r.each(n,(function(t){var e=t[0],n=t[1];e<i&&(i=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)}));var u=e/2;return{minX:i-u,minY:a-u,maxX:o+u,maxY:s+u}},_setTcache:function(){var t,e,n=this._attrs.points,i=0,a=0,s=[];n&&0!==n.length&&(r.each(n,(function(t,e){n[e+1]&&(i+=o.len(t[0],t[1],n[e+1][0],n[e+1][1]))})),i<=0||(r.each(n,(function(r,u){n[u+1]&&((t=[])[0]=a/i,e=o.len(r[0],r[1],n[u+1][0],n[u+1][1]),a+=e,t[1]=a/i,s.push(t))})),this.tCache=s))},createPath:function(t){var e,n,r=this._attrs.points;if(!(r.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(r[0][0],r[0][1]),n=1,e=r.length-1;n<e;n++)t.lineTo(r[n][0],r[n][1]);t.lineTo(r[e][0],r[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this._attrs,n=e.points,r=n.length-1;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&a.addEndArrow(t,e,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(t){var e,n,i=this._attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),r.each(a,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(i[n][0],i[n+1][0],e),y:o.at(i[n][1],i[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(27).parseRadius,a=n(6),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,a),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,r,a,o);else{var u=i(s);t.moveTo(n+u.r1,r),t.lineTo(n+a-u.r2,r),0!==u.r2&&t.arc(n+a-u.r2,r+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+a,r+o-u.r3),0!==u.r3&&t.arc(n+a-u.r3,r+o-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,r+o),0!==u.r4&&t.arc(n+u.r4,r+o-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,r+u.r1),0!==u.r1&&t.arc(n+u.r1,r+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=o},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e)&&-1!==e.indexOf("\n")){var i=(n=e.split("\n")).length;t.lineCount=i}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,r=t.y,i=this.measureText();if(!i)return{minX:n,minY:r,maxX:n,maxY:r};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,u=this.getHitLineWidth(),l={x:n,y:r-a};o&&("end"===o||"right"===o?l.x-=i:"center"===o&&(l.x-=i/2)),s&&("top"===s?l.y+=a:"middle"===s&&(l.y+=a/2)),this.set("startPoint",l);var c=u/2;return{minX:l.x-c,minY:l.y-c,maxX:l.x+i+c,maxY:l.y+a+c}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var i=e.text;if(i){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;r.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!1):t.strokeText(i,o,s),t.globalAlpha=1}if(this.hasFill()){var l=e.fillOpacity;r.isNil(l)||1===l||(t.globalAlpha=l),a?this._drawTextArr(t,!0):t.fillText(i,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,l=this._attrs.y,c=this.getBBox(),h=c.maxY-c.minY;r.each(i,(function(r,i){n=l+i*(s+o)-h+o,"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this._attrs,n=e.text,i=e.font,a=e.textArr,o=0;if(!r.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=i,a?r.each(a,(function(e){t=s.measureText(e).width,o<t&&(o=t),s.restore()})):(o=s.measureText(n).width,s.restore()),o}}}),t.exports=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return l}));var r=n(17),i=n(63),a=n(119),o=n(28);function s(t){return function(e){var n,i,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(e[n]),o[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return o=t(o),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=u(t),i+""}}}e.a=function t(e){var n=Object(o.b)(e);function i(t,e){var i=n((t=Object(r.f)(t)).r,(e=Object(r.f)(e)).r),a=n(t.g,e.g),s=n(t.b,e.b),u=Object(o.a)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=s(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);var u=s(i.b),l=s(a.a)},function(t,e,n){"use strict";var r=n(63);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r.a)((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(60);e.a=function(t,e){var n,i=e?e.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(60);e.a=function(t,e){var n,i={},a={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Object(r.a)(t[n],e[n]):a[n]=e[n];return function(t){for(n in i)a[n]=i[n](t);return a}}},function(t,e,n){"use strict";var r=n(40),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.a=function(t,e){var n,o,s,u=i.lastIndex=a.lastIndex=0,l=-1,c=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(n=n[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,h.push({i:l,x:Object(r.a)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)c[(n=h[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){var r=n(0),i=n(292),a={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},o={line:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},path:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},area:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},edge:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}},interval:{appear:function(t){var e;return t.isPolar?(e=i.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=i.appear.fanIn)):e=t.isRect?t.isTransposed?i.appear.scaleInX:i.appear.scaleInY:i.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?i.enter.fadeIn:i.enter.zoomIn},leave:function(){return i.leave.fadeOut},update:function(t){if("theta"===t.type)return i.update.fanIn}},point:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},schema:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return i.appear.fadeIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-ticks":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid-rect":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(){return i.leave.fadeIn}},labelLine:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}}};o.Action=i,o.defaultCfg=a,o.getAnimation=function(t,e,n){var i=this[t];if(i){var a=i[n];if(r.isFunction(a))return a(e)}return!1},o.getAnimateCfg=function(t,e){var n=a[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?r.deepMix({},n,this[t].cfg[e]):n},o.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},t.exports=o},function(t,e,n){var r=n(2),i=n(8),a=n(230),o=n(239),s=n(250),u=n(253),l=n(257),c=n(43),h=n(266),f=n(270),p=n(276),g=n(280),d={DOMUtil:a,DomUtil:a,MatrixUtil:c,PathUtil:f,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:u,mathUtil:l,matrixUtil:c,objectUtil:h,stringUtil:p,pathUtil:f,typeUtil:g,augment:n(89),clone:n(47),debounce:n(286),deepMix:n(48),each:r,extend:n(88),filter:n(64),group:n(143),groupBy:n(145),groupToMap:n(144),indexOf:n(287),isEmpty:n(83),isEqual:n(50),isEqualWith:n(288),map:n(289),mix:i,pick:n(290),throttle:n(291),toArray:n(34),toString:n(24),uniqueId:n(86)};r([a,o,s,u,l,c,h,f,p,g],(function(t){i(d,t)})),t.exports=d},function(t,e,n){var r=n(128),i=n(5);t.exports=function(t,e){var n=r(e),a=n.length;if(i(t))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){var r=n(2),i=n(11),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(r)})),e};t.exports=a},function(t,e,n){var r=n(13),i=Array.prototype.splice;t.exports=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){var r=n(2),i=n(41);t.exports=function(t){var e=[];return r(t,(function(t){i(e,t)||e.push(t)})),e}},function(t,e,n){var r=n(4),i=n(11),a=n(2);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,(function(t){(s=i(e)?e(t):t[e])>o&&(n=t,o=s)})),n}}},function(t,e){t.exports=parseInt},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var r=n(2),i=n(11),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(n)})),e};t.exports=a},function(t,e,n){var r=n(136);t.exports=function(t,e,n,i,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,i-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-i],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=r,o}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var r=n(138),i=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],g=void 0,d=void 0,v=void 0,y=void 0,x=void 0,m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)d=c[0],v=c[1],y=c[2],x=c[3];else{e=(g=m(e,n,-f)).x,n=g.y,u=(g=m(u,l,-f)).x,l=g.y,e===u&&n===l&&(u+=1,l+=1);var b=(e-u)/2,_=(n-l)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(r*=w=Math.sqrt(w),i*=w);var S=r*r,M=i*i,C=(o===s?-1:1)*Math.sqrt(Math.abs((S*M-S*_*_-M*b*b)/(S*_*_+M*b*b)));y=C*r*_/i+(e+u)/2,x=C*-i*b/r+(n+l)/2,d=Math.asin(((n-x)/i).toFixed(9)),v=Math.asin(((l-x)/i).toFixed(9)),d=e<y?Math.PI-d:d,v=u<y?Math.PI-v:v,d<0&&(d=2*Math.PI+d),v<0&&(v=2*Math.PI+v),s&&d>v&&(d-=2*Math.PI),!s&&v>d&&(v-=2*Math.PI)}var A=v-d;if(Math.abs(A)>h){var k=v,P=u,O=l;v=d+h*(s&&v>d?1:-1),p=t(u=y+r*Math.cos(v),l=x+i*Math.sin(v),r,i,a,0,s,P,O,[v,k,y,x])}A=v-d;var T=Math.cos(d),I=Math.sin(d),L=Math.cos(v),j=Math.sin(v),E=Math.tan(A/4),D=4/3*r*E,F=4/3*i*E,B=[e,n],R=[e+D*I,n-F*T],z=[u+D*j,l-F*L],N=[u,l];if(R[0]=2*B[0]-R[0],R[1]=2*B[1]-R[1],c)return[R,z,N].concat(p);for(var Y=[],V=0,X=(p=[R,z,N].concat(p).join().split(",")).length;V<X;V++)Y[V]=V%2?m(p[V-1],p[V],f).y:m(p[V],p[V+1],f).x;return Y},a=function(t,e,n,r){return[t,e,n,r,n,r]},o=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]};t.exports=function(t,e){var n=r(t),s=e&&r(e),u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],h=[],f="",p="",g=void 0,d=function(t,e,n){var r=void 0,s=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(i.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,s=2*e.y-e.by):(r=e.x,s=e.y),t=["C",r,s].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(o(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(o(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(a(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(a(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(a(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(a(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)c[e]="A",s&&(h[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),g=Math.max(n.length,s&&s.length||0)}},y=function(t,e,r,i,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],g=Math.max(n.length,s&&s.length||0))};g=Math.max(n.length,s&&s.length||0);for(var x=0;x<g;x++){n[x]&&(f=n[x][0]),"C"!==f&&(c[x]=f,x&&(p=c[x-1])),n[x]=d(n[x],u,p),"A"!==c[x]&&"C"===f&&(c[x]="C"),v(n,x),s&&(s[x]&&(f=s[x][0]),"C"!==f&&(h[x]=f,x&&(p=h[x-1])),s[x]=d(s[x],l,p),"A"!==h[x]&&"C"===f&&(h[x]="C"),v(s,x)),y(n,s,u,l,x),y(s,n,l,u,x);var m=n[x],b=s&&s[x],_=m.length,w=s&&b.length;u.x=m[_-2],u.y=m[_-1],u.bx=parseFloat(m[_-4])||u.x,u.by=parseFloat(m[_-3])||u.y,l.bx=s&&(parseFloat(b[w-4])||l.x),l.by=s&&(parseFloat(b[w-3])||l.y),l.x=s&&b[w-2],l.y=s&&b[w-1]}return s?[n,s]:n}},function(t,e,n){var r=n(139),i=n(140);function a(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a}t.exports=function(t){if(!(t=r(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,l=0,c=void 0,h=void 0;"M"===t[0][0]&&(s=n=+t[0][1],u=o=+t[0][2],l++,e[0]=["M",n,o]);for(var f,p,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=l,v=t.length;d<v;d++){if(e.push(f=[]),(c=(p=t[d])[0])!==c.toUpperCase())switch(f[0]=c.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+n,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[1]=+p[1]+n;break;case"R":for(var y=2,x=(h=[n,o].concat(p.slice(1))).length;y<x;y++)h[y]=+h[y]+n,h[++y]=+h[y]+o;e.pop(),e=e.concat(i(h,g));break;case"O":e.pop(),(h=a(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(a(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));break;case"M":s=+p[1]+n,u=+p[2]+o;break;default:for(var m=1,b=p.length;m<b;m++)f[m]=+p[m]+(m%2?n:o)}else if("R"===c)h=[n,o].concat(p.slice(1)),e.pop(),e=e.concat(i(h,g)),f=["R"].concat(p.slice(-2));else if("O"===c)e.pop(),(h=a(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);else if("U"===c)e.pop(),e=e.concat(a(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));else for(var _=0,w=p.length;_<w;_++)f[_]=p[_];if("O"!==(c=c.toUpperCase()))switch(f[0]){case"Z":n=+s,o=+u;break;case"H":n=f[1];break;case"V":o=f[1];break;case"M":s=f[f.length-2],u=f[f.length-1];break;default:n=f[f.length-2],o=f[f.length-1]}}return e}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="\t\n\v\f\r    \u2028\u2029",i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");t.exports=function(t){if(!t)return null;if((void 0===t?"undefined":n(t))===n([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(t).replace(i,(function(t,n,i){var o=[],s=n.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(r.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&r.push([n,o[0]]),"r"===s)r.push([n].concat(o));else for(;o.length>=e[s]&&(r.push([n].concat(o.splice(0,e[s]))),e[s]););})),r}},function(t,e){t.exports=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){var r=n(24);t.exports=function(t){return r(t).toLowerCase()}},function(t,e,n){var r=n(24);t.exports=function(t){return r(t).toUpperCase()}},function(t,e,n){var r=n(144);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){var r=n(11),i=n(4),a=n(145);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return a(t,e)}},function(t,e,n){var r=n(2),i=n(4),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,(function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]})),n}},function(t,e,n){var r=n(0),i=n(293),a=n(16).Canvas,o=r.DomUtil,s=n(7),u=n(358),l=n(165),c=n(167),h=n(166),f=n(168);function p(t,e){return r.isEqualWith(t,e,(function(t,e){return t===e}))}var g=function(t){var e,n;function g(){return t.apply(this,arguments)||this}n=t,(e=g).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var d=g.prototype;return d.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:s.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:s.renderer,views:[]})},d.init=function(){var e=this.get("viewTheme");this._initCanvas(),this._initPlot(),this._initEvents(),t.prototype.init.call(this);var n=new l.Tooltip({chart:this,viewTheme:e,options:{}});this.set("tooltipController",n);var r=new l.Legend({chart:this,viewTheme:e});this.set("legendController",r),this.set("_id","chart"),this.emit("afterinit")},d._isAutoPadding=function(){var t=this.get("padding");return r.isArray(t)?t.includes("auto"):"auto"===t},d._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot").getBBox(),n=this.get("backPlot"),i=h(n,f(this.get("plotRange"))),a=c(e,i),o=[0-a.minY,a.maxX-this.get("width"),a.maxY-this.get("height"),0-a.minX],s=r.toAllPadding(t),u=0;u<s.length;u++)if("auto"===s[u]){var l=Math.max(0,o[u]);s[u]=l+this.get("autoPaddingAppend")}return s},d._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),i=this.get("height");if(r.isString(t)){if(!(t=document.getElementById(t)))throw new Error("Please specify the container for the chart!");this.set("container",t)}var s=o.createDom('<div style="position:relative;"></div>');t.appendChild(s),this.set("wrapperEl",s),this.get("forceFit")&&(n=o.getWidth(t,n),this.set("width",n));var u=this.get("renderer"),l=new a({containerDOM:s,width:n,height:i,pixelRatio:"svg"===u?1:this.get("pixelRatio"),renderer:u});this.set("canvas",l)},d._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:0}),r=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",r)},d._initPlotBack=function(){var t=this.get("canvas"),e=this.get("viewTheme"),n=t.addGroup(u,{padding:this.get("padding"),plotBackground:r.mix({},e.plotBackground,this.get("plotBackground")),background:r.mix({},e.background,this.get("background"))});this.set("plot",n),this.set("plotRange",n.get("plotRange"))},d._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",r.wrapBehavior(this,"_initForceFitEvent"))},d._initForceFitEvent=function(){var t=setTimeout(r.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},d._renderLegends=function(){var t=this.get("options").legends;if(r.isNil(t)||!1!==t){var e=this.get("legendController");if(e.options=t||{},e.plotRange=this.get("plotRange"),t&&t.custom)e.addCustomLegend();else{var n=this.getAllGeoms(),i=[];r.each(n,(function(t){var n=t.get("view"),a=t.getAttrsForLegend();r.each(a,(function(a){var o=a.type,s=a.getScale(o);if(s.field&&"identity"!==s.type&&!function(t,e){var n=!1;return r.each(t,(function(t){var r=[].concat(t.values),i=[].concat(e.values);t.type!==e.type||t.field!==e.field||r.sort().toString()!==i.sort().toString()||(n=!0)})),n}(i,s)){i.push(s);var u=n.getFilteredOutValues(s.field);e.addLegend(s,a,t,u)}}))}));var a=this.getYScales();0===i.length&&a.length>1&&e.addMixedLegend(a,n)}e.alignLegends()}},d._renderTooltips=function(){var t=this.get("options");if(r.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},d.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return r.each(e,(function(e){t=t.concat(e.get("geoms"))})),t},d.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=o.getWidth(t,e);if(0!==n&&n!==e){var r=this.get("height");this.changeSize(n,r)}return this}},d.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");p(e,t.get("padding"))||(t.set("padding",e),t.repaint())},d.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},d.changeWidth=function(t){return this.changeSize(t,this.get("height"))},d.changeHeight=function(t){return this.changeSize(this.get("width"),t)},d.view=function(t){(t=t||{}).theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),r.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=r.mix({},this._getSharedOptions(),t.options);var e=new i(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},d.removeView=function(t){var e=this.get("views");r.Array.remove(e,t),t.destroy()},d._getSharedOptions=function(){var t=this.get("options"),e={};return r.each(["scales","coord","axes"],(function(n){e[n]=r.cloneDeep(t[n])})),e},d.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},d.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var i={};return!1===t?n.legends=!1:r.isObject(t)?i=t:r.isString(t)?i[t]=e:i=e,r.mix(n.legends,i),this},d.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:r.isObject(t)?r.mix(n.tooltip,t):r.mix(n.tooltip,e),this},d.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;)e.shift().destroy();t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},d.clearInner=function(){var e=this.get("views");r.each(e,(function(t){t.clearInner()}));var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var i=this.get("legendController");i&&i.clear()}t.prototype.clearInner.call(this)},d.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},d.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");p(n.get("padding"),e)||(n.set("padding",e),n.repaint())}var i=this.get("middlePlot");if(this.get("limitInPlot")&&!i.attr("clip")){var a=r.getClipByRange(this.get("plotRange"));i.attr("clip",a)}t.prototype.render.call(this),this._renderTooltips()},d.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},d.changeVisible=function(t){var e=t?"":"none";this.get("wrapperEl").style.display=e},d.toDataURL=function(){var t=this.get("canvas"),e=this.get("renderer"),n=t.get("el"),r="";if("svg"===e){var i=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(i,o.documentElement);var s=(new XMLSerializer).serializeToString(o);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===e&&(r=n.toDataURL("image/png"));return r},d.downloadImage=function(t){var e=this,n=document.createElement("a"),r=e.get("renderer"),i=(t||"chart")+("svg"===r?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout((function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,l=new Uint8Array(u);u--;)l[u]=s.charCodeAt(u);var c=new Blob([l],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,i):n.addEventListener("click",(function(){n.download=i,n.href=window.URL.createObjectURL(c)}))}else n.addEventListener("click",(function(){n.download=i,n.href=t}));var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),n.dispatchEvent(h)}),16)},d.showTooltip=function(t){var e=this.getViewsByPoint(t);return e.length&&this.get("tooltipController").showTooltip(t,e),this},d.lockTooltip=function(){return this.get("tooltipController").lockTooltip(),this},d.unlockTooltip=function(){return this.get("tooltipController").unlockTooltip(),this},d.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},d.getTooltipItems=function(t){var e=this.getViewsByPoint(t),n=[];return r.each(e,(function(e){var i=e.get("geoms");r.each(i,(function(e){var i=e.get("dataArray"),a=[];r.each(i,(function(n){var r=e.findPoint(t,n);if(r){var i=e.getTipItems(r);a=a.concat(i)}})),n=n.concat(a)}))})),n},d.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",r.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},g}(i);t.exports=g},function(t,e,n){var r=n(54),i=n(0),a=function(t){var e,n;n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=a.prototype;function a(e){var n,r={visible:!0},a=(n=t.call(this)||this).getDefaultCfg();return n._attrs=r,i.assign(r,a,e),n}return r.getDefaultCfg=function(){return{}},r.get=function(t){return this._attrs[t]},r.set=function(t,e){this._attrs[t]=e},r.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},r.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},r.changeVisible=function(){},r.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},a}(r);t.exports=a},function(t,e,n){var r=n(9),i=n(10),a=n(2),o=/rgba?\(([\s.,0-9]+)\)/;function s(t,e,n,r){return t[r]+(e[r]-t[r])*n}function u(t){return"#"+l(t[0])+l(t[1])+l(t[2])}function l(t){return 1===(t=(t=Math.round(t)).toString(16)).length&&(t="0"+t),t}function c(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var h={},f=null,p={toRGB:function(t){return"#"===t[0]&&7===t.length?t:(f||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),f=e),h[t]?n=h[t]:(f.style.color=t,n=document.defaultView.getComputedStyle(f,"").getPropertyValue("color"),n=u(o.exec(n)[1].split(/\s*,\s*/)),h[t]=n),n);var e,n},rgb2arr:c,gradient:function(t){var e=[];return i(t)&&(t=t.split("-")),a(t,(function(t){-1===t.indexOf("#")&&(t=p.toRGB(t)),e.push(c(t))})),function(t){return function(t,e){(isNaN(e)||!r(e)||e<0)&&(e=0),e>1&&(e=1);var n=t.length-1,i=Math.floor(n*e),a=n*e-i,o=t[i],l=i===n?o:t[i+1];return u([s(o,l,a,0),s(o,l,a,1),s(o,l,a,2)])}(e,t)}}};t.exports=p},function(t,e,n){var r=n(2),i={values:n(65)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e={},n=[];if(this.xField&&this.isAdjust("x")&&n.push(this.xField),this.yField&&this.isAdjust("y")&&n.push(this.yField),r(n,(function(n){var r=i.values(t,n);r.sort((function(t,e){return t-e})),e[n]=r})),!this.yField&&this.isAdjust("y")){var a=[0,1];e.y=a}return e},adjustData:function(t,e){var n=this,i=n._getDimValues(e);r(t,(function(e,a){r(i,(function(r,i){n.adjustDim(i,r,e,t.length,a)}))}))},getAdjustRange:function(t,e,n){var r,i,a=n.indexOf(e),o=n.length;return!this.yField&&this.isAdjust("y")?(r=0,i=1):o>1?(r=0===a?n[0]:n[a-1],i=a===o-1?n[o-1]:n[a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==o-1?i-=(i-e)/2:i+=(e-n[o-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},groupData:function(t,e){var n={};return r(t,(function(t){var r=t[e];void 0===r&&(r=t[e]=0),n[r]||(n[r]=[]),n[r].push(t)})),n}}},function(t,e,n){var r={default:n(151),dark:n(306)};t.exports=r},function(t,e){var n,r,i='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:i,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:i}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:i}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:i}},thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:i},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:i,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:i},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(r={useHtml:!0,crosshairs:!1,offset:15},r["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r),tooltipMarker:{symbol:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:"#1890FF",radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:"#1890FF",radius:3},interval:{lineWidth:0,fill:"#1890FF",fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:"#1890FF",fillOpacity:.6},polygon:{lineWidth:0,fill:"#1890FF",fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},line:{stroke:"#1890FF",lineWidth:2,fill:null},edge:{stroke:"#1890FF",lineWidth:1,fill:null},schema:{stroke:"#1890FF",lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:i,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:i}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};t.exports=a},function(t,e,n){var r=n(20).Group,i=n(3),a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getDefaultCfg=function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!1,zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},a._renderUI=function(){t.prototype._renderUI.call(this),this._drawLines()},a._drawLines=function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},a._precessItems=function(t){var e,n=this;i.each(t,(function(t,r){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,r),e=t}))},a._drawGridLines=function(t,e){var n,r,a,o,s=this,u=this.get("type"),l=t.length;"line"===u||"polygon"===u?i.each(t,(function(t,c){s.get("hideFirstLine")&&0===c||s.get("hideLastLine")&&c===l-1||(o=t.points,r=[],"line"===u?(r.push(["M",o[0].x,o[0].y]),r.push(["L",o[o.length-1].x,o[o.length-1].y])):i.each(o,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])})),a=s._drawZeroLine(u,c)?i.mix({},s.get("zeroLineStyle"),{path:r}):i.mix({},e,{path:r}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})):i.each(t,(function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===l-1||(o=t.points,r=[],i.each(o,(function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])})),a=i.mix({},e,{path:r}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}))},a._drawZeroLine=function(t,e){var n=this.get("tickValues");return!("line"!==t||!n||0!==n[e]||!this.get("hightLightZero"))},a._drawAlternativeBg=function(t,e,n){var r,a,o,s=this.get("alternateColor");i.isString(s)?a=s:i.isArray(s)&&(a=s[0],o=s[1]),n%2==0?o&&(r=this._getBackItem(e.points,t.points,o)):a&&(r=this._getBackItem(e.points,t.points,a));var u=this.addShape("Path",{attrs:r});u.name="axis-grid-rect",u._id=t._id&&t._id.replace("grid","grid-rect"),u.set("coord",this.get("coord")),this.get("appendInfo")&&u.setSilent("appendInfo",this.get("appendInfo"))},a._getBackItem=function(t,e,n){var r=[],a=this.get("type");if("line"===a)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===a){i.each(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}));for(var o=e.length-1;o>=0;o--)r.push(["L",e[o].x,e[o].y]);r.push(["Z"])}else{var s=t[0].flag;i.each(t,(function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])}));for(var u=e.length-1;u>=0;u--){var l=e[u],c=l.radius;u===e.length-1?r.push(["M",l.x,l.y]):r.push(["A",c,c,0,0,1===s?0:1,l.x,l.y])}}return{fill:n,path:r}},r}(r);t.exports=a},function(t,e,n){var r=n(3),i=r.DomUtil,a=n(32),o={scatter:n(309),map:n(310),treemap:n(311)},s=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',labelLine:!1,lineGroup:null,shapes:null,config:!0,capture:!0})},s.clear=function(){var e=this.get("group"),n=this.get("container");e&&!e.get("destroyed")&&e.clear(),n&&(n.innerHTML=""),t.prototype.clear.call(this)},s.destroy=function(){var e=this.get("group"),n=this.get("container");e.destroy||e.destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),t.prototype.destroy.call(this)},s.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},s._dryDraw=function(){var t=this,e=t.get("items"),n=t.getLabels(),i=n.length;r.each(e,(function(e,r){if(r<i){var a=n[r];t.changeLabel(a,e)}else{var o=t._addLabel(e,r);o&&(o._id=e._id,o.set("coord",e.coord))}}));for(var a=i-1;a>=e.length;a--)n[a].remove();t._adjustLabels(),!t.get("labelLine")&&t.get("config")||t.drawLines()},s.draw=function(){this._dryDraw(),this.get("canvas").draw()},s.changeLabel=function(t,e){if(t)if(t.tagName){var n=this._createDom(e);t.innerHTML=n.innerHTML,this._setCustomPosition(e,t)}else t._id=e._id,t.attr("text",e.text),t.attr("x")===e.x&&t.attr("y")===e.y||(t.resetMatrix(),e.textStyle.rotate&&(t.rotateAtStart(e.textStyle.rotate),delete e.textStyle.rotate),t.attr(e))},s.show=function(){var t=this.get("group"),e=this.get("container");t&&t.show(),e&&(e.style.opacity=1)},s.hide=function(){var t=this.get("group"),e=this.get("container");t&&t.hide(),e&&(e.style.opacity=0)},s.drawLines=function(){var t=this;"boolean"==typeof t.get("labelLine")&&t.set("labelLine",{});var e=t.get("lineGroup");!e||e.get("destroyed")?(e=t.get("group").addGroup({elCls:"x-line-group"}),t.set("lineGroup",e)):e.clear(),r.each(t.get("items"),(function(n){t.lineToLabel(n,e)}))},s.lineToLabel=function(t,e){if(this.get("config")||t.labelLine){var n=t.labelLine||this.get("labelLine"),i=void 0===t.capture?this.get("capture"):t.capture,a=n.path;if(a&&r.isFunction(n.path)&&(a=n.path(t)),!a){var o=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};a=[["M",o.x,o.y],["L",t.x,t.y]]}var s=t.color;s||(s=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var u=e.addShape("path",{attrs:r.mix({path:a,fill:null,stroke:s},n),capture:i});u.name=this.get("name"),u._id=t._id&&t._id.replace("glabel","glabelline"),u.set("coord",this.get("coord"))}},s._adjustLabels=function(){var t=this.get("type"),e=this.getLabels(),n=this.get("shapes"),r=o[t];"default"!==t&&r&&r(e,n)},s.getLabels=function(){var t=this.get("container");return t?r.toArray(t.childNodes):this.get("group").get("children")},s._addLabel=function(t,e){var n=t;return this.get("config")&&(n=this._getLabelCfg(t,e)),this._createText(n)},s._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},i=this.get("formatter"),a=this.get("htmlTemplate");if(!r.isObject(t)){var o=t;(t={}).text=o}return r.isFunction(n)&&(n=n(t.text,t,e)),i&&(t.text=i(t.text,t,e)),a&&(t.useHtml=!0,r.isFunction(a)&&(t.text=a(t.text,t,e))),r.isNil(t.text)&&(t.text=""),t.text=t.text+"",r.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0})},s._init=function(){if(!this.get("group")){var t=this.get("canvas").addGroup({id:"label-group"});this.set("group",t)}},s.initHtmlContainer=function(){var t=this.get("container");if(t)r.isString(t)&&(t=document.getElementById(t))&&this.set("container",t);else{var e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;t=i.createDom(e),n.style.position="relative",n.appendChild(t),this.set("container",t)}return t},s._createText=function(t){var e,n=r.deepMix({},t),i=this.get("container"),a=void 0===n.capture?this.get("capture"):n.capture;if(!n.useHtml&&!n.htmlTemplate){var o=this.get("name"),s=n.point,u=this.get("group");delete n.point;var l=n.rotate;return n.textStyle&&(n.textStyle.rotate&&(l=n.textStyle.rotate,delete n.textStyle.rotate),n=r.mix({x:n.x,y:n.y,textAlign:n.textAlign,text:n.text},n.textStyle)),e=u.addShape("text",{attrs:n,capture:a}),l&&(Math.abs(l)>2*Math.PI&&(l=l/180*Math.PI),e.transform([["t",-n.x,-n.y],["r",l],["t",n.x,n.y]])),e.setSilent("origin",s||n),e.name=o,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}i||(i=this.initHtmlContainer());var c=this._createDom(n);i.appendChild(c),this._setCustomPosition(n,c)},s._createDom=function(t){var e=this.get("itemTpl"),n=r.substitute(e,{text:t.text});return i.createDom(n)},s._setCustomPosition=function(t,e){var n=t.textAlign||"left",r=t.y,a=t.x,o=i.getOuterWidth(e);r-=i.getOuterHeight(e)/2,"center"===n?a-=o/2:"right"===n&&(a-=o),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(a,10)+"px"},a}(a);t.exports=s},function(t,e){var n=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.floor(t.minX),i=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=r;s<i;s++)if(n[s]){if(s===r||s===i-1){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]=[];return e},e.fillGap=function(t){for(var e=this.bitmap,n=Math.floor(t.minX),r=Math.ceil(t.maxX)-1,i=Math.floor(t.minY),a=Math.ceil(t.maxY)-1,o=n;o<=r;o++){for(var s=i;s<a;s+=8)e[o]||(e[o]=[]),e[o][s]=!0;e[o][a]=!0}for(var u=i;u<=a;u++)e[n][u]=!0,e[r][u]=!0},t}();t.exports=n},function(t,e,n){var r=n(3);t.exports={getFirstScale:function(t){var e;return r.each(t,(function(t){if(t)return e=t,!1})),e}}},function(t,e,n){var r=n(3),i=n(157),a=n(14).FONT_FAMILY,o=r.Event,s=r.Group;function u(t,e){var n=null,i=e instanceof s||"legendGroup"===e.name?e.get("value"):e;return r.each(t,(function(t){if(t.value===i)return n=t,!1})),n}function l(t,e){return t.findBy((function(t){return t.name===e}))}var c=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"category-legend",items:null,itemGap:5,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:a},_wordSpaceing:8,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0,highlight:!1,activeOpacity:.7,inactiveOpacity:1})},s.render=function(){t.prototype.render.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems()},s._bindEvents=function(){this.get("hoverable")&&(this.get("group").on("mousemove",r.wrapBehavior(this,"_onMousemove")),this.get("group").on("mouseleave",r.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.get("group").on("click",r.wrapBehavior(this,"_onClick"))},s._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},s.activate=function(t){var e=this,n=this,r=n.get("itemsGroup").get("children"),i=void 0;r.forEach((function(r){if(i=l(r,"legend-marker")){var a=r.get("checked");e.get("highlight")?r.get("value")===t&&a?i.attr("stroke","#333"):i.attr("stroke",null):r.get("value")===t&&i.attr("fillOpacity",n.get("activeOpacity"))}})),this.get("canvas").draw()},s.deactivate=function(){var t=this,e=this,n=e.get("itemsGroup").get("children"),r=void 0,i=this.get("unCheckColor");n.forEach((function(n){if(r=l(n,"legend-marker"))if(t.get("highlight")){var a=r.get("oriStroke"),o=n.get("checked");a=a&&!o?i:"",r.attr("stroke",a)}else r.attr("fillOpacity",e.get("inactiveOpacity"))})),this.get("canvas").draw()},s._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),r=new o("itemhover",t,!0,!0);r.item=u(n,e),r.checked=e.get("checked"),r.currentTarget=t.currentTarget,this.deactivate(),this.activate(e.get("value")),this.emit("itemhover",r)}else this.deactivate(),this.emit("itemunhover",t);this.get("canvas").draw()},s._onMouseleave=function(t){this.deactivate(),this.get("canvas").draw(),this.emit("itemunhover",t)},s._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var i=e.get("checked"),a=this.get("selectedMode"),s=u(n,e),c=new o("itemclick",t,!0,!0);if(c.item=s,c.currentTarget=e,c.appendInfo=t.currentTarget.get("appendInfo"),c.checked="single"===a||!i,!this.get("allowAllCanceled")&&i&&1===this.getCheckedCount())return void this.emit("clicklastitem",c);var h=this.get("unCheckColor"),f=this.get("textStyle").fill,p=void 0,g=void 0,d=void 0;if("single"===a){var v=this.get("itemsGroup").get("children");r.each(v,(function(t){p=l(t,"legend-marker"),g=l(t,"legend-text"),d=l(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",h),p.attr("stroke")&&p.attr("stroke",h),g.attr("fill",h),p.setSilent("checked",!1),g.setSilent("checked",!1),d.setSilent("checked",!1),t.setSilent("checked",!1)):(p.attr("fill")&&s&&s.marker&&p.attr("fill",s.marker.fill),p.attr("stroke")&&s&&s.marker&&p.attr("stroke",s.marker.stroke),g.attr("fill",f),p.setSilent("checked",!0),g.setSilent("checked",!0),d.setSilent("checked",!0),t.setSilent("checked",!0))}))}else p=l(e,"legend-marker"),g=l(e,"legend-text"),d=l(e,"legend-item"),p.attr("fill")&&s&&s.marker&&p.attr("fill",i?h:s.marker.fill),p.attr("stroke")&&s&&s.marker&&p.attr("stroke",i?h:s.marker.stroke),g.attr("fill",i?h:f),e.setSilent("checked",!i),p.setSilent("checked",!i),g.setSilent("checked",!i),d.setSilent("checked",!i);this.emit("itemclick",c)}this.get("canvas").draw()},s._renderItems=function(){var t=this,e=this.get("items");if(this.get("reversed")&&e.reverse(),r.each(e,(function(e,n){t._addItem(e,n)})),this.get("highlight")){var n=this.get("itemsGroup").get("children"),i=void 0;n.forEach((function(t){(i=l(t,"legend-marker")).get("oriStroke")||(i.attr("stroke")?i.set("oriStroke",i.attr("stroke")):i.set("oriStroke",""))}))}},s._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},s._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),i=this.get("itemWidth"),a=n.get("children"),o=0;return"horizontal"===t&&r.each(a,(function(t){o+=(i||t.getBBox().width)+e})),o},s._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),i=this.get("itemsGroup"),a=this.get("titleShape"),o=i.get("children"),s=e;return a&&(s+=a.getBBox().height),"vertical"===n&&r.each(o,(function(e){s+=e.getBBox().height+t})),s},s._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this._getNextY(),o=this.get("unCheckColor"),s=e.addGroup({x:n,y:i,value:t.value,checked:t.checked});s.set("viewId",this.get("viewId"));var u=this.get("textStyle"),l=this.get("_wordSpaceing"),c=0;if(t.marker){var h=r.mix({},t.marker,{x:t.marker.radius+n,y:i});t.checked||(h.fill&&(h.fill=o),h.stroke&&(h.stroke=o));var f=s.addShape("marker",{type:"marker",attrs:h});f.attr("cursor","pointer"),f.name="legend-marker",c+=f.getBBox().width+l}var p=r.mix({},{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:a},u,{x:c+n,y:i,text:this._formatItemValue(t.value)});t.checked||r.mix(p,{fill:o});var g=s.addShape("text",{attrs:p});g.attr("cursor","pointer"),g.name="legend-text",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"));var d=s.getBBox(),v=this.get("itemWidth"),y=s.addShape("rect",{attrs:{x:n,y:i-d.height/2,fill:"#fff",fillOpacity:0,width:v||d.width,height:d.height}});return y.attr("cursor","pointer"),y.setSilent("origin",t),y.name="legend-item",this.get("appendInfo")&&y.setSilent("appendInfo",this.get("appendInfo")),s.name="legendGroup",s},s._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),i=this.get("itemGap"),a=this.get("itemMarginBottom"),o=this.get("titleShape")?this.get("titleGap"):0,s=0,u=0,l=void 0,c=void 0,h=void 0,f=this.get("itemWidth");t.getBBox().width>n&&r.each(e,(function(t){h=t.getBBox(),l=f||h.width,c=h.height+a,n-u<l&&(s++,u=0),t.move(u,s*c+o),u+=l+i}))},s._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),i=this.get("maxLength"),a=this.get("itemGap"),o=this.get("itemMarginBottom"),s=this.get("titleGap"),u=e?e.getBBox().height+s:0,l=this.get("itemWidth"),c=u,h=void 0,f=void 0,p=void 0,g=0,d=0;t.getBBox().height>i&&r.each(n,(function(t){p=t.getBBox(),h=p.width,f=p.height,l?g=l+a:h>g&&(g=h+a),i-c<f?(c=u,d+=g,t.move(d,u)):t.move(d,c),c+=f+o}))},s._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},s.getWidth=function(){return t.prototype.getWidth.call(this)},s.getHeight=function(){return t.prototype.getHeight.call(this)},s.move=function(e,n){t.prototype.move.call(this,e,n)},i}(i);t.exports=c},function(t,e,n){var r=n(3),i=n(32),a=n(14).FONT_FAMILY,o=function(t){var e,n;n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=o.prototype;function o(e){var n;return(n=t.call(this,e)||this)._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}return i.getDefaultCfg=function(){return{container:null,title:null,formatter:null,hoverable:!0,titleGap:15,position:[0,0],offset:[0,0],offsetX:null,offsetY:null}},i._init=function(){var t=this.get("group"),e=this.get("container");this.set("canvas",e.get("canvas"));var n=this.get("position");t||(t=e.addGroup({x:0-n[0],y:0-n[1]})),this.set("group",t)},i._adjustPositionOffset=function(){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");r.isArray(e)||(e="vertical"===this.get("layout")?[e,0]:[0,e]),n&&(e[0]=n),i&&(e[1]=i);var a=this.get("group").getBBox();this.move(-a.minX+t[0]+e[0],-a.minY+t[1]+e[1])},i.beforeRender=function(){var t=this.get("group").addGroup();this.set("itemsGroup",t)},i.render=function(){this._renderTitle()},i._renderTitle=function(){var t=this.get("title"),e=this.get("titleGap");if(e=e||0,t&&t.text){var n=this.get("group").addShape("text",{attrs:r.mix({x:0,y:0-e,fill:"#333",textBaseline:"middle",fontFamily:a},t)});n.name="legend-title",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",n)}},i.getCheckedCount=function(){var t=this.get("itemsGroup").get("children");return r.filter(t,(function(t){return t.get("checked")})).length},i.setItems=function(t){this.set("items",t),this.clear(),this.render()},i.addItem=function(t){this.get("items").push(t),this.clear(),this.render()},i.clear=function(){this.get("itemsGroup").clear(),this.get("group").clear(),this.beforeRender()},i.destroy=function(){var e=this.get("group");e&&e.destroy(),this._attrs={},this.removeAllListeners(),t.prototype.destroy.call(this)},i.getWidth=function(){return this.get("group").getBBox().width},i.getHeight=function(){return this.get("group").getBBox().height},i.move=function(t,e){this.get("group").move(t,e)},i.draw=function(){this.get("canvas").draw()},o}(i);t.exports=o},function(t,e,n){var r=n(3),i=n(156),a=n(14).FONT_FAMILY,o=r.DomUtil,s=r.Group,u="g2-legend",l="g2-legend-list",c="g2-legend-list-item",h="g2-legend-marker";function f(t,e){return t.getElementsByClassName(e)[0]}function p(t,e){var n=t.className;return r.isNil(n)?t:(n=n.split(" ")).indexOf(e)>-1?t:t.parentNode?t.parentNode.className===u?t.parentNode:p(t.parentNode,e):null}function g(t,e){var n=null,i=e instanceof s?e.get("value"):e;return r.each(t,(function(t){if(t.value===i)return n=t,!1})),n}var d=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"category-legend",container:null,containerTpl:'<div class="'+u+'"><h4 class="g2-legend-title"></h4><ul class="'+l+'"></ul></div>',itemTpl:'<li class="'+c+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+h+'" style="background-color:{color};"></i><span class="g2-legend-text">{value}</span></li>',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:a},abridgeText:!1,tipTpl:'<div class="textTip"></div>',tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},autoPosition:!0})},s._init=function(){},s.beforeRender=function(){},s.render=function(){this._renderHTML()},s._bindEvents=function(){var t=this,e=f(this.get("legendWrapper"),l);this.get("hoverable")&&(e.onmousemove=function(e){return t._onMousemove(e)},e.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(e.onclick=function(e){return t._onClick(e)})},s._onMousemove=function(t){var e=this.get("items"),n=t.target,r=n.className;if(!((r=r.split(" ")).indexOf(u)>-1||r.indexOf(l)>-1)){var i=p(n,c),a=g(e,i.getAttribute("data-value"));a?(this.deactivate(),this.activate(i.getAttribute("data-value")),this.emit("itemhover",{item:a,currentTarget:i,checked:a.checked})):a||(this.deactivate(),this.emit("itemunhover",t))}},s._onMouseleave=function(t){this.deactivate(),this.emit("itemunhover",t)},s._onClick=function(t){var e=this,n=f(this.get("legendWrapper"),l),i=this.get("unCheckColor"),a=this.get("items"),o=this.get("selectedMode"),s=n.childNodes,d=t.target,v=d.className;if(!((v=v.split(" ")).indexOf(u)>-1||v.indexOf(l)>-1)){var y=p(d,c),x=f(y,"g2-legend-text"),m=f(y,h),b=g(a,y.getAttribute("data-value"));if(b){var _=y.className,w=y.getAttribute("data-color");if("single"===o)b.checked=!0,r.each(s,(function(t){t!==y?(f(t,h).style.backgroundColor=i,t.className=t.className.replace("checked","unChecked"),t.style.color=i,g(a,t.getAttribute("data-value")).checked=!1):(x&&(x.style.color=e.get("textStyle").fill),m&&(m.style.backgroundColor=w),y.className=_.replace("unChecked","checked"))}));else{var S=-1!==_.indexOf("checked"),M=0;if(r.each(s,(function(t){-1!==t.className.indexOf("checked")&&M++})),!this.get("allowAllCanceled")&&S&&1===M)return void this.emit("clicklastitem",{item:b,currentTarget:y,checked:"single"===o||b.checked});b.checked=!b.checked,S?(m&&(m.style.backgroundColor=i),y.className=_.replace("checked","unChecked"),y.style.color=i):(m&&(m.style.backgroundColor=w),y.className=_.replace("unChecked","checked"),y.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:b,currentTarget:y,checked:"single"===o||b.checked})}}},s.activate=function(t){var e=this,n=this,r=n.get("items"),i=g(r,t);f(n.get("legendWrapper"),l).childNodes.forEach((function(t){var a=f(t,h),o=g(r,t.getAttribute("data-value"));if(e.get("highlight")){if(o===i&&o.checked)return void(a.style.border="1px solid #333")}else o===i?a.style.opacity=n.get("activeOpacity"):o.checked&&(a.style.opacity=n.get("inactiveOpacity"))}))},s.deactivate=function(){var t=this,e=this;f(e.get("legendWrapper"),l).childNodes.forEach((function(n){var r=f(n,h);t.get("highlight")?r.style.border="1px solid #fff":r.style.opacity=e.get("inactiveOpacity")}))},s._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),i=this.get("containerTpl"),s=o.createDom(i),p=f(s,"g2-legend-title"),g=f(s,l),d=this.get("unCheckColor"),v=r.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:a,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:a},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));if(/^\#/.test(e)||"string"==typeof e&&e.constructor===String){var y=e.replace("#","");(e=document.getElementById(y)).appendChild(s)}else{var x=this.get("position"),m={};m="left"===x||"right"===x?{maxHeight:(this.get("maxLength")||e.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||e.offsetWidth)+"px"},o.modifyCSS(s,r.mix({},v.CONTAINER_CLASS,m,this.get(u))),e.appendChild(s)}o.modifyCSS(g,r.mix({},v.LIST_CLASS,this.get(l))),p&&(n&&n.text?(p.innerHTML=n.text,o.modifyCSS(p,r.mix({},v.TITLE_CLASS,this.get("g2-legend-title"),n))):s.removeChild(p));var b=this.get("items"),_=this.get("itemTpl"),w=this.get("position"),S=this.get("layout"),M="right"===w||"left"===w||"vertical"===S?"block":"inline-block",C=r.mix({},v.LIST_ITEM_CLASS,{display:M},this.get(c)),A=r.mix({},v.MARKER_CLASS,this.get(h));if(r.each(b,(function(e,n){var i,a=e.checked,u=t._formatItemValue(e.value),l=e.marker.fill||e.marker.stroke,c=a?l:d;i=r.isFunction(_)?_(u,c,a,n):_;var p=r.substitute(i,r.mix({},e,{index:n,checked:a?"checked":"unChecked",value:u,color:c,originColor:l,originValue:e.value.replace(/\"/g,"&quot;")})),v=o.createDom(p);v.style.color=t.get("textStyle").fill;var y=f(v,h),x=f(v,"g2-legend-text");if(o.modifyCSS(v,C),y&&o.modifyCSS(y,A),a||(v.style.color=d,y&&(y.style.backgroundColor=d)),g.appendChild(v),t.get("abridgeText")){var m=u,b=v.offsetWidth,w=t.get("textStyle").fontSize;isNaN(w)&&(-1!==w.indexOf("pt")?w=1*parseFloat(w.substr(0,w.length-2))/72*96:-1!==w.indexOf("px")&&(w=parseFloat(w.substr(0,w.length-2))));var S=w*m.length,M=Math.floor(b/w);b<2*w?m="":b<S&&M>1&&(m=m.substr(0,M-1)+"..."),x.innerText=m,v.addEventListener("mouseover",(function(){var t=f(s.parentNode,"textTip");t.style.display="block",t.style.left=v.offsetLeft+v.offsetWidth+"px",t.style.top=v.offsetTop+15+"px",t.innerText=u})),v.addEventListener("mouseout",(function(){f(s.parentNode,"textTip").style.display="none"}))}})),this.get("abridgeText")){var k=this.get("tipTpl"),P=o.createDom(k),O=this.get("tipStyle");o.modifyCSS(P,O),s.parentNode.appendChild(P),P.addEventListener("mouseover",(function(){P.style.display="none"}))}this.set("legendWrapper",s)},s._adjustPositionOffset=function(){if(!1!==this.get("autoPosition")){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),r=this.get("offsetY");n&&(e[0]=n),r&&(e[1]=r);var i=this.get("legendWrapper");i.style.left=t[0]+"px",i.style.top=t[1]+"px",i.style.marginLeft=e[0]+"px",i.style.marginTop=e[1]+"px"}},s.getWidth=function(){return o.getOuterWidth(this.get("legendWrapper"))},s.getHeight=function(){return o.getOuterHeight(this.get("legendWrapper"))},s.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(o.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n))},s.destroy=function(){var e=this.get("legendWrapper");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},i}(i);t.exports=d},function(t,e,n){var r=n(32),i=n(3),a=function(t){var e,n;n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=a.prototype;function a(e){var n;return(n=t.call(this,e)||this)._init_(),n.render(),n}return r.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:null,plot:null,plotRange:null,rectStyle:{fill:"#CCD6EC",opacity:.3},lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},r._init_=function(){var t,e=this.get("plot");t="rect"===this.type?e.addGroup({zIndex:0}):e.addGroup(),this.set("container",t)},r._addLineShape=function(t,e){var n=this.get("container").addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,n),n},r._renderHorizontalLine=function(t,e){var n=i.mix(this.get("lineStyle"),this.get("style")),r=i.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addLineShape(r,"X")},r._renderVerticalLine=function(t,e){var n=i.mix(this.get("lineStyle"),this.get("style")),r=i.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addLineShape(r,"Y")},r._renderBackground=function(t,e){var n=i.mix(this.get("rectStyle"),this.get("style")),r=this.get("container"),a=i.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),o=r.addShape("rect",{attrs:a,capture:!1});return this.set("crosshairsRectShape",o),o},r._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),r=this.get("isTransposed"),a=t[0],o=t[t.length-1],s=r?"y":"x",u=r?"height":"width",l=a[s];if(t.length>1&&a[s]>o[s]&&(l=o[s]),this.get("width"))n.attr(s,l-this.get("crosshairs").width/2),n.attr(u,this.get("width"));else if(i.isArray(a.point[s])&&!a.size){var c=a.point[s][1]-a.point[s][0];n.attr(s,a.point[s][0]),n.attr(u,c)}else e=3*a.size/4,n.attr(s,l-e),1===t.length?n.attr(u,3*a.size/2):n.attr(u,Math.abs(o[s]-a[s])+2*e)},r.render=function(){var t=this.get("canvas"),e=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(t,e);break;case"y":this._renderVerticalLine(t,e);break;case"cross":this._renderHorizontalLine(t,e),this._renderVerticalLine(t,e);break;case"rect":this._renderBackground(t,e);break;default:n?this._renderHorizontalLine(t,e):this._renderVerticalLine(t,e)}},r.show=function(){var e=this.get("container");t.prototype.show.call(this),e.show()},r.hide=function(){var e=this.get("container");t.prototype.hide.call(this),e.hide()},r.clear=function(){var e=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.prototype.clear.call(this),e.clear()},r.destroy=function(){var e=this.get("container");t.prototype.destroy.call(this),e.remove()},r.setPosition=function(t,e,n){var r=this.get("crossLineShapeX"),i=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");i&&!i.get("destroyed")&&i.move(t,0),r&&!r.get("destroyed")&&r.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},a}(r);t.exports=a},function(t,e){var n={_calcTooltipPosition:function(t,e,n,r,i,a){var o=0,s=0,u=20;if(a){var l=a.getBBox();o=l.width,s=l.height,t=l.x,e=l.y,u=5}switch(n){case"inside":t=t+o/2-r/2,e=e+s/2-i/2;break;case"top":t=t+o/2-r/2,e=e-i-u;break;case"left":t=t-r-u,e=e+s/2-i/2;break;case"right":t=t+o+u,e=e+s/2-i/2;break;case"bottom":default:t=t+o/2-r/2,e=e+s+u}return[t,e]},_constraintPositionInBoundary:function(t,e,n,r,i,a){return t+n+20>i?t=(t-=n+20)<0?0:t:t+20<0?t=20:t+=20,e+r+20>a?e=(e-=r+20)<0?0:e:e+20<0?e=20:e+=20,[t,e]},_constraintPositionInPlot:function(t,e,n,r,i,a){return t+n>i.tr.x&&(t-=a?n+1:n+40),t<i.tl.x&&(t=i.tl.x),a||(e+r>i.bl.y&&(e-=r+40),e<i.tl.y&&(e=i.tl.y)),[t,e]}};t.exports=n},function(t,e,n){var r=n(3),i={setMarkers:function(t,e){var n=this.get("markerGroup"),i=this.get("frontPlot");n?n.clear():(n=i.addGroup({zIndex:1,capture:!1}),this.set("markerGroup",n)),r.each(t,(function(t){n.addShape("marker",{color:t.color,attrs:r.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y,symbol:t.marker&&t.marker.activeSymbol})})})),this.set("markerItems",t)},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()}};t.exports=i},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(20),a=n(159),o=n(161),s=n(160),u=n(69),l=n(3),c=n(14).FONT_FAMILY,h=l.DomUtil,f=l.MatrixUtil,p=function(t){var e,n;n=t,(e=p).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=p.prototype;function p(e){var n;n=t.call(this,e)||this,l.assign(r(n),s),l.assign(r(n),o);var i=n.get("crosshairs");if(i){var u="rect"===i.type?n.get("backPlot"):n.get("frontPlot"),c=new a(l.mix({plot:u,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));c.hide(),n.set("crosshairGroup",c)}return n._init_(),n.get("items")&&n.render(),n}return u.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{boardStyle:{x:0,y:0,width:100,height:100,fill:"rgba(255, 255, 255, 0.9)",radius:4,stroke:"#e2e2e2",lineWidth:1},titleStyle:{fontFamily:c,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},markerStyle:{radius:4},nameStyle:{fontFamily:c,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},valueStyle:{fontFamily:c,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:30},padding:{top:20,right:20,bottom:20,left:20},itemGap:10,animationDuration:200})},u._init_=function(){var t=this.get("padding"),e=this.get("frontPlot"),n=e.addGroup({capture:!1});this.set("markerGroup",n);var r=e.addGroup();r.hide(),this.set("container",r);var i=r.addShape("rect",{attrs:l.mix({},this.get("boardStyle"))});this.set("board",i);var a=this.get("titleStyle");if(this.get("showTitle")){var o=r.addShape("text",{attrs:l.mix({x:t.left,y:t.top},a)});this.set("titleShape",o),o.name="tooltip-title"}var s=r.addGroup();s.move(t.left,t.top+a.lineHeight+a.padding),this.set("itemsGroup",s)},u.render=function(){var t=this;t.clear();var e=t.get("container"),n=t.get("board"),r=t.get("showTitle"),i=t.get("titleContent"),a=this.get("titleShape"),o=this.get("itemsGroup"),s=t.get("items"),u=t.get("padding");if(a&&r&&a.attr("text",i),o){var c=t.get("itemGap"),h=0;l.each(s,(function(e){var n=t._addItem(e);n.move(0,h),o.add(n);var r=n.getBBox().height;h+=r+c}))}var f=e.getBBox(),p=f.width+u.right,g=f.height+u.bottom;n.attr("width",p),n.attr("height",g),t._alignToRight(p)},u.clear=function(){var t=this.get("titleShape"),e=this.get("itemsGroup"),n=this.get("board");t.text="",e.clear(),n.attr("width",0),n.attr("height",0)},u.show=function(){this.get("container").show();var e=this.get("crosshairGroup");e&&e.show();var n=this.get("markerGroup");n&&n.show(),t.prototype.show.call(this),this.get("canvas").draw()},u.hide=function(){this.get("container").hide();var e=this.get("crosshairGroup");e&&e.hide();var n=this.get("markerGroup");n&&n.hide(),t.prototype.hide.call(this),this.get("canvas").draw()},u.destroy=function(){var e=this.get("container"),n=this.get("crosshairGroup");n&&n.destroy();var r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this),e.remove()},u.setPosition=function(e,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=h.getWidth(o),u=h.getHeight(o),c=a.getBBox(),p=c.width,g=c.height,d=e,v=n;if(this.get("position")){var y=c.width,x=c.height;e=(i=this._calcTooltipPosition(e,n,this.get("position"),y,x,r))[0],n=i[1]}else e=(i=this._constraintPositionInBoundary(e,n,p,g,s,u))[0],n=i[1];if(this.get("inPlot")){var m=this.get("plotRange");e=(i=this._constraintPositionInPlot(e,n,p,g,m,this.get("enterable")))[0],n=i[1]}var b=this.get("markerItems");l.isEmpty(b)||(d=b[0].x,v=b[0].y);var _=f.transform([1,0,0,0,1,0,0,0,1],[["t",e,n]]);a.stopAnimate(),a.animate({matrix:_},this.get("animationDuration"));var w=this.get("crosshairGroup");if(w){var S=this.get("items");w.setPosition(d,v,S)}t.prototype.setPosition.call(this,e,n)},u._addItem=function(t){var e=new i.Group,n=this.get("markerStyle").radius;if(t.marker){var r=l.mix({},t.marker,{x:t.marker.radius/2,y:0,symbol:t.marker.activeSymbol||t.marker.symbol});e.addShape("marker",{attrs:r}),n=t.marker.radius}var a=this.get("nameStyle");e.addShape("text",{attrs:l.mix({x:n+a.padding,y:0,text:t.name},a)});var o=this.get("valueStyle");return e.addShape("text",{attrs:l.mix({x:e.getBBox().width+o.padding,y:0,text:t.value},o)}),e},u._alignToRight=function(t){var e=this,n=this.get("itemsGroup").get("children");l.each(n,(function(n){var r=n.get("children")[2],i=r.getBBox().width,a=t-i-2*e.get("padding").right;r.attr("x",a)}))},p}(u);t.exports=p},function(t,e,n){var r=n(66),i=n(23),a=n(0),o=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getPointRauis=function(t,e){return i.getPointRadius(t,e)},o.getCirclePoint=function(t,e,n){var r=this.get("coord"),i=r.getCenter(),a=this._isEmitLabels(),o=this.getPointRauis(r,n);return 0===o?null:(r.isTransposed&&o>e&&!a?t+=2*Math.asin(e/(2*o)):o+=e,{x:i.x+o*Math.cos(t),y:i.y+o*Math.sin(t),angle:t,r:o})},o.getArcPoint=function(t,e){var n;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},o.getPointAngle=function(t){var e=this.get("coord");return i.getPointAngle(e,t)},o.getMiddlePoint=function(t){var e=this.get("coord"),n=t.length,r={x:0,y:0};return a.each(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},o._isToMiddle=function(t){return t.x.length>2},o.getLabelPoint=function(t,e,n){var r,i=t.text[n],a=1;this._isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(a=-1),r=this.getArcPoint(e,n));var o=this.getDefaultOffset(t);o*=a;var s=this.getPointAngle(r),u=this.getCirclePoint(s,o,r);if(u?(u.text=i,u.angle=s,u.color=e.color):u={text:""},t.autoRotate||void 0===t.autoRotate){var l=u.textStyle?u.textStyle.rotate:null;l||(l=u.rotate||this.getLabelRotate(s,o,e)),u.rotate=l}return u.start={x:r.x,y:r.y},u},o._isEmitLabels=function(){return this.get("label").labelEmit},o.getLabelRotate=function(t){var e;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},o.getLabelAlign=function(t){var e,n=this.get("coord");if(this._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=this.getDefaultOffset(t);e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},r}(r);t.exports=o},function(t,e){t.exports={toFront:function(t){var e=t.get("parent").get("children").indexOf(t);t.set("_originIndex",e),t.toFront()},resetZIndex:function(t){var e=t.get("parent"),n=t.get("_originIndex"),r=e.get("children"),i=r.indexOf(t);n>=0&&n!==i&&(r.splice(i,1),r.splice(n,0,t))}}},function(t,e,n){t.exports={Scale:n(343),Coord:n(344),Axis:n(349),Guide:n(350),Legend:n(353),Tooltip:n(355),Event:n(356)}},function(t,e,n){var r=n(16),i=n(0),a=n(167);function o(t,e,n){void 0===n&&(n=1);var r=[t.x,t.y,n];return i.vec3.transformMat3(r,r,e),{x:r[0],y:r[1]}}t.exports=function(t,e){var n=e;return i.each(t.get("children"),(function(t){t instanceof r.Group&&i.each(t.get("children"),(function(t){if(t instanceof r.Group&&t.get("children").length||t instanceof r.Path)n=a(n,t.getBBox());else if(t instanceof r.Text){var e=function(t){var e=t.getBBox(),n={x:e.minX,y:e.minY},r={x:e.maxX,y:e.maxY},i=t.attr("matrix");return n=o(n,i),r=o(r,i),{minX:n.x,minY:n.y,maxX:r.x,maxY:r.y}}(t);n=a(n,e)}}))})),n}},function(t,e){t.exports=function(t,e){return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}}},function(t,e){t.exports=function(t){return{minX:t.tl.x,minY:t.tl.y,maxX:t.br.x,maxY:t.br.y}}},function(t,e,n){"use strict";e.a=S,e.b=M,e.c=function(){return++w};var r=n(72),i=n(455),a=n(469),o=n(470),s=n(471),u=n(472),l=n(473),c=n(474),h=n(475),f=n(476),p=n(477),g=n(478),d=n(479),v=n(480),y=n(481),x=n(482),m=n(483),b=n(365),_=n(484),w=0;function S(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function M(t){return Object(r.selection)().transition(t)}var C=r.selection.prototype;S.prototype=M.prototype={constructor:S,select:p.a,selectAll:g.a,filter:l.a,merge:c.a,selection:d.a,transition:m.a,call:C.call,nodes:C.nodes,node:C.node,size:C.size,empty:C.empty,each:C.each,on:h.a,attr:i.a,attrTween:a.a,style:v.a,styleTween:y.a,text:x.a,remove:f.a,tween:b.a,delay:o.a,duration:s.a,ease:u.a,end:_.a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(59);n.d(e,"now",(function(){return r.b})),n.d(e,"timer",(function(){return r.c})),n.d(e,"timerFlush",(function(){return r.d}));var i=n(192);n.d(e,"timeout",(function(){return i.a}));var a=n(193);n.d(e,"interval",(function(){return a.a}))},function(t,e,n){var r=n(0),i=r.DomUtil,a=["start","process","end","reset"],o=function(){var t=e.prototype;function e(t,e){var n=this,i=n.getDefaultCfg();r.assign(n,i,t),n.view=n.chart=e,n.canvas=e.get("canvas"),n._bindEvents()}return t.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},t._start=function(t){var e=this;e.preStart&&e.preStart(t),e.start(t),e.onStart&&e.onStart(t)},t._process=function(t){var e=this;e.preProcess&&e.preProcess(t),e.process(t),e.onProcess&&e.onProcess(t)},t._end=function(t){var e=this;e.preEnd&&e.preEnd(t),e.end(t),e.onEnd&&e.onEnd(t)},t._reset=function(t){var e=this;e.preReset&&e.preReset(t),e.reset(t),e.onReset&&e.onReset(t)},t.start=function(){},t.process=function(){},t.end=function(){},t.reset=function(){},t._bindEvents=function(){var t=this,e=t.canvas.get("canvasDOM");t._clearEvents(),r.each(a,(function(n){var a=r.upperFirst(n);t["_on"+a+"Listener"]=i.addEventListener(e,t[n+"Event"],r.wrapBehavior(t,"_"+n))}))},t._clearEvents=function(){var t=this;r.each(a,(function(e){var n="_on"+r.upperFirst(e)+"Listener";t[n]&&t[n].remove()}))},t.destroy=function(){this._clearEvents()},e}();t.exports=o},function(t,e,n){var r=n(74),i=n(16),a=n(125),o=n(146),s=n(7),u=n(19),l=n(0),c={version:s.version,Animate:a,Chart:o,Global:s,Scale:r,Shape:u,Util:l,G:i,DomUtil:l.DomUtil,MatrixUtil:l.MatrixUtil,PathUtil:l.PathUtil,track:function(){console.warn("G2 tracks nothing ;-)")}};"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+c.version+"'s reference is 'window.G2_3'"):window.G2=c),t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(194);n.d(e,"easeLinear",(function(){return r.a}));var i=n(195);n.d(e,"easeQuad",(function(){return i.b})),n.d(e,"easeQuadIn",(function(){return i.a})),n.d(e,"easeQuadOut",(function(){return i.c})),n.d(e,"easeQuadInOut",(function(){return i.b}));var a=n(196);n.d(e,"easeCubic",(function(){return a.b})),n.d(e,"easeCubicIn",(function(){return a.a})),n.d(e,"easeCubicOut",(function(){return a.c})),n.d(e,"easeCubicInOut",(function(){return a.b}));var o=n(197);n.d(e,"easePoly",(function(){return o.b})),n.d(e,"easePolyIn",(function(){return o.a})),n.d(e,"easePolyOut",(function(){return o.c})),n.d(e,"easePolyInOut",(function(){return o.b}));var s=n(198);n.d(e,"easeSin",(function(){return s.b})),n.d(e,"easeSinIn",(function(){return s.a})),n.d(e,"easeSinOut",(function(){return s.c})),n.d(e,"easeSinInOut",(function(){return s.b}));var u=n(199);n.d(e,"easeExp",(function(){return u.b})),n.d(e,"easeExpIn",(function(){return u.a})),n.d(e,"easeExpOut",(function(){return u.c})),n.d(e,"easeExpInOut",(function(){return u.b}));var l=n(200);n.d(e,"easeCircle",(function(){return l.b})),n.d(e,"easeCircleIn",(function(){return l.a})),n.d(e,"easeCircleOut",(function(){return l.c})),n.d(e,"easeCircleInOut",(function(){return l.b}));var c=n(201);n.d(e,"easeBounce",(function(){return c.c})),n.d(e,"easeBounceIn",(function(){return c.a})),n.d(e,"easeBounceOut",(function(){return c.c})),n.d(e,"easeBounceInOut",(function(){return c.b}));var h=n(202);n.d(e,"easeBack",(function(){return h.b})),n.d(e,"easeBackIn",(function(){return h.a})),n.d(e,"easeBackOut",(function(){return h.c})),n.d(e,"easeBackInOut",(function(){return h.b}));var f=n(203);n.d(e,"easeElastic",(function(){return f.c})),n.d(e,"easeElasticIn",(function(){return f.a})),n.d(e,"easeElasticOut",(function(){return f.c})),n.d(e,"easeElasticInOut",(function(){return f.b}))},function(t,e,n){"use strict";e.c=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}},e.a=a;var r=n(394);function i(t,e){return function(n){return t+n*e}}function a(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},function(t,e,n){var r=n(5),i=n(9),a=n(76),o=[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[0,1,2,4,5,10];t.exports=function(t){var e=t.min,n=t.max,u=t.interval,l=t.minTickInterval,c=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,g=r(t.minLimit)?-1/0:t.minLimit,d=r(t.maxLimit)?1/0:t.maxLimit,v=(h+f)/2,y=v,x=t.snapArray?t.snapArray:p?o:s;if(e===g&&n===d&&p&&(u=(n-e)/(y-1)),r(e)&&(e=0),r(n)&&(n=0),Math.abs(n-e)<1e-12&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),r(u)){var m=(n-e)/(v-1);u=a.snapFactorTo(m,x,"ceil"),f!==h&&((y=parseInt((n-e)/u,10))>f&&(y=f),y<h&&(y=h),u=a.snapFactorTo((n-e)/(y-1),x,"floor"))}if(i(l)&&u<l&&(u=l),t.interval||f!==h)n=Math.min(a.snapMultiple(n,u,"ceil"),d),e=Math.max(a.snapMultiple(e,u,"floor"),g),y=Math.round((n-e)/u),e=a.fixedBase(e,u),n=a.fixedBase(n,u);else{v=parseInt(v,10);var b,_=(n+e)/2,w=a.snapMultiple(_,u,"ceil"),S=Math.floor((v-2)/2),M=w+S*u;b=v%2==0?w-S*u:w-(S+1)*u;for(var C=null;M<n&&(null===C||M>C);)C=M,M=a.fixedBase(M+u,u);for(var A=null;b>e&&(null===A||b<A);)A=b,b=a.fixedBase(b-u,u);n=M,e=b}n=Math.min(n,d),e=Math.max(e,g),c.push(e);for(var k=1;k<y;k++){var P=a.fixedBase(u*k+e,u);P<n&&c.push(P)}return c[c.length-1]<n&&c.push(n),{min:e,max:n,interval:u,count:y,ticks:c}}},function(t,e,n){var r=n(18),i=n(9),a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},a.getText=function(){return this.value.toString()},a.scale=function(t){return this.value!==t&&i(t)?t:this.range[0]},a.invert=function(){return this.value},r}(r);r.Identity=a,t.exports=a},function(t,e,n){var r=n(79),i=n(2),a=n(5),o=n(10),s=n(18),u=n(33),l=n(178),c=n(71),h=function(t){var e,n;function s(){return t.apply(this,arguments)||this}n=t,(e=s).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=s.prototype;return u._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},u.init=function(){var e=this,n=e.values;if(n&&n.length){var r=[],o=1/0,s=o,u=0;i(n,(function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);o>n?(s=o,o=n):s>n&&(s=n),u<n&&(u=n),r.push(n)})),n.length>1&&(e.minTickInterval=s-o),(a(e.min)||e._toTimeStamp(e.min)>o)&&(e.min=o),(a(e.max)||e._toTimeStamp(e.max)<u)&&(e.max=u)}t.prototype.init.call(this)},u.calculateTicks=function(){var t=this.min,e=this.max,n=this.tickCount,r=this.tickInterval;return l({min:t,max:e,minCount:n,maxCount:n,interval:r,minInterval:this.minTickInterval}).ticks},u.getText=function(t){var e=this.formatter;return t=this.translate(t),t=e?e(t):r.format(t,this.mask)},u.scale=function(e){return o(e)&&(e=this.translate(e)),t.prototype.scale.call(this,e)},u.translate=function(t){return this._toTimeStamp(t)},u._toTimeStamp=function(t){return c.toTimeStamp(t)},s}(u);s.Time=h,t.exports=h},function(t,e,n){var r=n(76),i=n(5),a=[1,2,4,6,8,12],o=36e5,s=864e5;function u(t){return new Date(t).getFullYear()}function l(t){return new Date(t,0,1).getTime()}function c(t){return new Date(t).getMonth()}function h(t,e){return new Date(t,e,1).getTime()}t.exports=function(t){var e,n=t.minInterval,f=[],p=t.min,g=t.max,d=t.interval;if(g===p&&(g=p+s),i(d)){var v=s,y=365*v;d=parseInt((g-p)/(t.maxCount||6),10),n&&n>d&&(d=n);var x=d/y,m=u(p);if(x>.51){for(var b=Math.ceil(x),_=u(g),w=m;w<=_+b;w+=b)f.push(l(w));d=null}else if(x>.0834){for(var S=Math.ceil(x/.0834),M=c(p),C=function(t,e){var n=u(t),r=u(e),i=c(t);return 12*(r-n)+(c(e)-i)%12}(p,g),A=0;A<=C+S;A+=S)f.push(h(m,A+M));d=null}else if(d>.5*v){var k=new Date(p),P=k.getFullYear(),O=k.getMonth(p),T=k.getDate(),I=Math.ceil(d/v),L=function(t,e){return Math.ceil((e-t)/s)}(p,g);d=I*v;for(var j=0;j<L+I;j+=I)f.push(new Date(P,O,T+j).getTime())}else if(d>o){var E=new Date(p),D=E.getFullYear(),F=E.getMonth(p),B=E.getDate(),R=E.getHours(),z=r.snapTo(a,Math.ceil(d/o)),N=function(t,e){return Math.ceil((e-t)/o)}(p,g);d=z*o;for(var Y=0;Y<=N+z;Y+=z)f.push(new Date(D,F,B,R+Y).getTime())}else if(d>6e4){var V=function(t,e){return Math.ceil((e-t)/6e4)}(p,g),X=Math.ceil(d/6e4);d=6e4*X;for(var H=0;H<=V+X;H+=X)f.push(p+6e4*H)}else{d<1e3&&(d=1e3),p=1e3*Math.floor(p/1e3);var W=Math.ceil((g-p)/1e3),G=Math.ceil(d/1e3);d=1e3*G;for(var q=0;q<W+G;q+=G)f.push(p+1e3*q)}}if(!f.length){p=1e3*Math.floor(p/1e3),e=((g=1e3*Math.ceil(g/1e3))-p)/d;for(var U=0;U<=e;U++)f.push(r.fixedBase(d*U+p,d))}return{max:g,min:p,interval:d,ticks:f,count:f.length}}},function(t,e,n){var r=n(18),i=n(77),a=n(79),o=n(78),s=n(71),u=n(2),l=n(9),c=n(25),h=n(10),f=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},i.init=function(){var t=this,e=this.values;u(e,(function(n,r){e[r]=t._toTimeStamp(n)})),this.sortable&&e.sort((function(t,e){return t-e})),t.ticks||(t.ticks=this.calculateTicks())},i.calculateTicks=function(){var t=this.tickCount;return t?o({maxCount:t,data:this.values,isRounding:this.isRounding}).ticks:this.values},i.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=l(t)&&t<this.values.length?t:NaN),e},i.scale=function(t){var e=this.rangeMin(),n=this.rangeMax(),r=this.translate(t);return e+(1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0)*(n-e)},i.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),e=r?r(e):a.format(e,this.mask)},i.getTicks=function(){var t=this,e=this.ticks,n=[];return u(e,(function(e){var r;r=c(e)?e:{text:h(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(r)})),n},i._toTimeStamp=function(t){return s.toTimeStamp(t)},r}(i);r.TimeCat=f,t.exports=f},function(t,e,n){var r=n(2),i=n(18);function a(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},o.calculateTicks=function(){var t,e=this.base;if(this.min<0)throw new Error("The minimum value must be greater than zero!");var n=a(e,this.max);if(this.min>0)t=Math.floor(a(e,this.min));else{var i=this.values,o=this.max;r(i,(function(t){t>0&&t<o&&(o=t)})),o===this.max&&(o=this.max/e),o>1&&(o=1),t=Math.floor(a(e,o)),this._minTick=t,this.positiveMin=o}for(var s=n-t,u=this.tickCount,l=Math.ceil(s/u),c=[],h=t;h<n+l;h+=l)c.push(Math.pow(e,h));return 0===this.min&&c.unshift(0),c},o._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/(a(r,e)-a(r,n)):(a(r,t)-a(r,n))/(a(r,e)-a(r,n))},o.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},o.invert=function(t){var e,n=this.base,r=a(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=a(n,s/n)))*o;if(t<u)return t/u*s}else e=a(n,this.min);var l=(t-i)/o*(r-e)+e;return Math.pow(n,l)},i}(n(33));i.Log=o,t.exports=o},function(t,e,n){var r=n(18);function i(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="pow",this.tickCount=10,this.exponent=2},a.calculateTicks=function(){var t,e=this.exponent,n=Math.ceil(i(e,this.max));if((t=this.min>=0?Math.floor(i(e,this.min)):0)>n){var r=n;n=t,t=r}for(var a=n-t,o=this.tickCount,s=Math.ceil(a/o),u=[],l=t;l<n+s;l+=s)u.push(Math.pow(l,e));return u},a._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(i(r,t)-i(r,n))/(i(r,e)-i(r,n))},a.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},a.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,r=i(n,this.max),a=i(n,this.min),o=e*(r-a)+a;return Math.pow(o,n)},r}(n(33));r.Pow=a,t.exports=a},function(t,e,n){var r=n(1),i=n(100),a=n(101),o=n(191),s=n(217),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},r.extend(u,a),r.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n,r=this.getPointByClient(e.clientX,e.clientY),i=this.getShape(r.x,r.y,e),a=this.get("el");if("mousemove"===t){var o=this.get("preShape");if(o&&o!==i){var s=this._getEventObj("mouseleave",e,r,o);(n=this.getEmitter(o,e))&&n.emit("mouseleave",s),a.style.cursor="default"}if(i){var u=this._getEventObj("mousemove",e,r,i);if((n=this.getEmitter(i,e))&&n.emit("mousemove",u),o!==i){var l=this._getEventObj("mouseenter",e,r,i);n&&n.emit("mouseenter",l,e)}}else{var c=this._getEventObj("mousemove",e,r,this);this.emit("mousemove",c)}this.set("preShape",i)}else{var h=this._getEventObj(t,e,r,i||this);(n=this.getEmitter(i,e))&&n!==this&&n.emit(t,h),this.emit(t,h)}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");r.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])}),!1),e.addEventListener("touchmove",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])}),!1),e.addEventListener("touchend",(function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])}),!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio());var t=s[this.get("renderer")||"canvas"];this._cfg.renderer=t,this._cfg.canvas=this;var e=new o(this);this._cfg.timeline=e},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:t/r+n.left,clientY:e/r+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);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[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,a,o,s,u,l){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=u,c[8]=l,c},e.set=function(t,e,n,r,i,a,o,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,g=n*h+r*f+i*p;return g?(g=1/g,t[0]=h*g,t[1]=(-c*r+i*l)*g,t[2]=(s*r-i*o)*g,t[3]=f*g,t[4]=(c*n-i*u)*g,t[5]=(-s*n+i*a)*g,t[6]=p*g,t[7]=(-l*n+r*u)*g,t[8]=(o*n-r*a)*g,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=o*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*o,t[3]=s*u-a*c,t[4]=n*c-i*u,t[5]=i*a-n*s,t[6]=a*l-o*u,t[7]=r*u-n*l,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8];return e*(l*a-o*u)+n*(-l*i+o*s)+r*(u*i-a*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*r+p*o+l,t[7]=f*i+p*s+c,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*i+f*s,t[2]=p*a+f*u,t[3]=p*o-f*r,t[4]=p*s-f*i,t[5]=p*u-f*a,t[6]=l,t[7]=c,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,h=r*s,f=i*o,p=i*s,g=i*u,d=a*o,v=a*s,y=a*u;return t[0]=1-h-g,t[3]=c-y,t[6]=f+v,t[1]=c+y,t[4]=1-l-g,t[7]=p-d,t[2]=f-v,t[5]=p+d,t[8]=1-l-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],g=e[12],d=e[13],v=e[14],y=e[15],x=n*s-r*o,m=n*u-i*o,b=n*l-a*o,_=r*u-i*s,w=r*l-a*s,S=i*l-a*u,M=c*d-h*g,C=c*v-f*g,A=c*y-p*g,k=h*v-f*d,P=h*y-p*d,O=f*y-p*v,T=x*O-m*P+b*k+_*A-w*C+S*M;return T?(T=1/T,t[0]=(s*O-u*P+l*k)*T,t[1]=(u*A-o*O-l*C)*T,t[2]=(o*P-s*A+l*M)*T,t[3]=(i*P-r*O-a*k)*T,t[4]=(n*O-i*A+a*C)*T,t[5]=(r*A-n*P-a*M)*T,t[6]=(d*S-v*w+y*_)*T,t[7]=(v*b-g*S-y*m)*T,t[8]=(g*w-d*b+y*x)*T,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],p=e[1],g=e[2],d=e[3],v=e[4],y=e[5],x=e[6],m=e[7],b=e[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-g)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(o-d)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-v)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-y)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(l-x)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(c-m)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(h-b)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1],g=n[2],d=n[3],v=n[4],y=n[5],x=n[6],m=n[7],b=n[8];return t[0]=f*r+p*o+g*l,t[1]=f*i+p*s+g*c,t[2]=f*a+p*u+g*h,t[3]=d*r+v*o+y*l,t[4]=d*i+v*s+y*c,t[5]=d*a+v*u+y*h,t[6]=x*r+m*o+b*l,t[7]=x*i+m*s+b*c,t[8]=x*a+m*u+b*h,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=l,e.squaredDistance=c,e.length=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))};var r,i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));function a(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function h(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function f(t){var e=t[0],n=t[1];return e*e+n*n}e.len=h,e.sub=o,e.mul=s,e.div=u,e.dist=l,e.sqrDist=c,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s=void 0,u=void 0;for(e||(e=2),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],a(r,r,o),t[s]=r[0],t[s+1]=r[1];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=s,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=u,e.multiply=l,e.divide=c,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=h,e.squaredDistance=f,e.squaredLength=p,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=g,e.dot=d,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+i[2]*f,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,h=a*s-r*l,f=r*u-i*s,p=i*f-a*h,g=a*c-r*f,d=r*h-i*c,v=2*o;return c*=v,h*=v,f*=v,p*=2,g*=2,d*=2,t[0]=s+c+p,t[1]=u+h+g,t[2]=l+f+d,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=s(t[0],t[1],t[2]),r=s(e[0],e[1],e[2]);g(n,n),g(r,r);var i=d(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))};var r,i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function p(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function g(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.sub=u,e.mul=l,e.div=c,e.dist=h,e.sqrDist=f,e.len=o,e.sqrLen=p,e.forEach=(r=a(),function(t,e,n,i,a,o){var s=void 0,u=void 0;for(e||(e=3),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t})},function(t,e,n){var r=n(1);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){var r=n(1);function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function a(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function o(t,e){i(e)||(a(e)?(t[0]*=e[0],t[4]*=e[4]):r.mat3.multiply(t,t,e))}t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return r.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return r.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return r.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var i=[1,0,0,0,1,0,0,0,1];return r.each(n,(function(t){r.mat3.multiply(i,t.attr("matrix"),i)})),i},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;e&&o(t,e.getTotalMatrix()),o(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(a(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var r=n(1),i={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};function o(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}t.exports={animate:function(t,e,n,s,u){void 0===u&&(u=0),this.set("animating",!0);var l=this.get("timeline");l||(l=this.get("canvas").get("timeline"),this.setSilent("timeline",l));var c=this.get("animators")||[];l._timer||l.initTimer(),r.isNumber(s)&&(u=s,s=null),r.isFunction(n)?(s=n,n="easeLinear"):n=n||"easeLinear";var h=function(t,e){var n={matrix:null,attrs:{}},o=e._attrs;for(var s in t)if("transform"===s)n.matrix=r.transform(e.getMatrix(),t[s]);else if("rotate"===s)n.matrix=r.transform(e.getMatrix(),[["r",t[s]]]);else if("matrix"===s)n.matrix=t[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;i[s]||o[s]===t[s]||(n.attrs[s]=t[s])}return n}(t,this),f={fromAttrs:o(h,this),toAttrs:h.attrs,fromMatrix:r.clone(this.getMatrix()),toMatrix:h.matrix,duration:e,easing:n,callback:s,delay:u,startTime:l.getTime(),id:r.uniqueId()};c.length>0?c=function(t,e){var n=e.delay,i=Object.prototype.hasOwnProperty;return r.each(e.toAttrs,(function(e,a){r.each(t,(function(t){n<t.startTime+t.duration&&i.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])}))})),e.toMatrix&&r.each(t,(function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix})),t}(c,f):l.addAnimator(this),c.push(f),this.setSilent("animators",c),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");r.each(e,(function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return r.each(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null})),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var r=n(6);r.Arc=n(105),r.Circle=n(106),r.Dom=n(107),r.Ellipse=n(108),r.Fan=n(109),r.Image=n(110),r.Line=n(111),r.Marker=n(57),r.Path=n(112),r.Polygon=n(113),r.Polyline=n(114),r.Rect=n(115),r.Text=n(116),t.exports=r},function(t,e,n){var r=n(1),i=n(55),a={arc:n(37),ellipse:n(104),line:n(36)},o=r.createDom('<canvas width="500" height="500"></canvas>').getContext("2d");function s(t,e,n){return n.createPath(o),o.isPointInPath(t,e)}var u={arc:function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,u=n.endAngle,l=n.clockwise,c=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,u,l,c,t,e)},circle:function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),l=this.hasStroke();return u&&l?i.circle(r,a,o,t,e)||i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e):u?i.circle(r,a,o,t,e):!!l&&i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e)},dom:function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,l=n.rx,c=n.ry,h=this.getHitLineWidth(),f=l>c?l:c,p=l>c?1:l/c,g=l>c?c/l:1,d=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[p,g]),r.mat3.translate(v,v,[s,u]);var y=r.mat3.invert([],v);return r.vec3.transformMat3(d,d,y),a&&o?i.circle(0,0,f,d[0],d[1])||i.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1]):a?i.circle(0,0,f,d[0],d[1]):!!o&&i.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1])},fan:function(t,e){var n=this,o=n.hasFill(),s=n.hasStroke(),u=n._attrs,l=u.x,c=u.y,h=u.rs,f=u.re,p=u.startAngle,g=u.endAngle,d=u.clockwise,v=[t-l,e-c],y=r.vec2.angleTo([1,0],v);function x(){var t=a.arc.nearAngle(y,p,g,d);if(r.isNumberEqual(y,t)){var e=r.vec2.squaredLength(v);if(h*h<=e&&e<=f*f)return!0}return!1}function m(){var r=n.getHitLineWidth(),a={x:Math.cos(p)*h+l,y:Math.sin(p)*h+c},o={x:Math.cos(p)*f+l,y:Math.sin(p)*f+c},s={x:Math.cos(g)*h+l,y:Math.sin(g)*h+c},u={x:Math.cos(g)*f+l,y:Math.sin(g)*f+c};return!!(i.line(a.x,a.y,o.x,o.y,r,t,e)||i.line(s.x,s.y,u.x,u.y,r,t,e)||i.arcline(l,c,h,p,g,d,r,t,e)||i.arcline(l,c,f,p,g,d,r,t,e))}return o&&s?x()||m():o?x():!!s&&m()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,t,e)},line:function(t,e){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,u,t,e)},path:function(t,e){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function u(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o<s;o++)if(i[o].isInside(t,e,a))return!0;return!1}}return a&&o?s(t,e,n)||u():a?s(t,e,n):!!o&&u()},marker:function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,t,e)},polygon:function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs.points;if(r.length<2)return!1;var a=n.getHitLineWidth(),o=r.slice(0);return r.length>=3&&o.push(r[0]),i.polyline(o,a,t,e)}return r&&a?s(t,e,n)||o():r?s(t,e,n):!!a&&o()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var a=n.lineWidth;return i.polyline(r,a,t,e)}return!1},rect:function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,u=r.height,l=r.radius,c=n.getHitLineWidth();if(0===l){var h=c/2;return i.line(a-h,o,a+s+h,o,c,t,e)||i.line(a+s,o-h,a+s,o+u+h,c,t,e)||i.line(a+s+h,o+u,a-h,o+u,c,t,e)||i.line(a,o+u+h,a,o-h,c,t,e)}return i.line(a+l,o,a+s-l,o,c,t,e)||i.line(a+s,o+l,a+s,o+u-l,c,t,e)||i.line(a+s-l,o+u,a+l,o+u,c,t,e)||i.line(a,o+u-l,a,o+l,c,t,e)||i.arcline(a+s-l,o+l,l,1.5*Math.PI,2*Math.PI,!1,c,t,e)||i.arcline(a+s-l,o+u-l,l,0,.5*Math.PI,!1,c,t,e)||i.arcline(a+l,o+u-l,l,.5*Math.PI,Math.PI,!1,c,t,e)||i.arcline(a+l,o+l,l,Math.PI,1.5*Math.PI,!1,c,t,e)}return r&&a?s(t,e,n)||o():r?s(t,e,n):!!a&&o()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return i.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=u[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){var r=n(1),i=n(58),a=n(170),o=n(173),s=n(204),u=s.interpolate,l=s.interpolateArray,c=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};function h(t,e,n){var a,s=e.startTime;if(n<s+e.delay||e.isPaused)return!1;var c=e.duration,h=e.easing;if(n=n-s-e.delay,e.toAttrs.repeat)a=n%c/c,a=o[h](a);else{if(!((a=n/c)<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;a=o[h](a)}return function(t,e,n){var a={},o=e.toAttrs,s=e.fromAttrs,c=e.toMatrix;if(!t.get("destroyed")){var h;for(var f in o)if(!r.isEqual(s[f],o[f]))if("path"===f){var p=o[f],g=s[f];p.length>g.length?(p=i.parsePathString(o[f]),g=i.parsePathString(s[f]),g=i.fillPathByDiff(g,p),g=i.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p):e.pathFormatted||(p=i.parsePathString(o[f]),g=i.parsePathString(s[f]),g=i.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p,e.pathFormatted=!0),a[f]=[];for(var d=0;d<p.length;d++){for(var v=p[d],y=g[d],x=[],m=0;m<v.length;m++)r.isNumber(v[m])&&y&&r.isNumber(y[m])?(h=u(y[m],v[m]),x.push(h(n))):x.push(v[m]);a[f].push(x)}}else h=u(s[f],o[f]),a[f]=h(n);if(c){var b=l(e.fromMatrix,c)(n);t.setMatrix(b)}t.attr(a)}}(t,e,a),!1}r.augment(c,{initTimer:function(){var t,e,n,r=this,i=this;i._timer=a.timer((function(a){if(i._current=a,r._animators.length>0){for(var o=r._animators.length-1;o>=0;o--)if((t=r._animators[o]).get("destroyed"))i.removeAnimator(o);else{if(!t.get("pause").isPaused)for(var s=(e=t.get("animators")).length-1;s>=0;s--)n=e[s],h(t,n,a)&&(e.splice(s,1),n.callback&&n.callback());0===e.length&&i.removeAnimator(o)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=c},function(t,e,n){"use strict";var r=n(59);e.a=function(t,e,n){var i=new r.a;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";var r=n(59);e.a=function(t,e,n){var i=new r.a,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r.b)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a}));var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*i)},e.c=function(t){return Math.sin(t*i)},e.b=function(t){return(1-Math.cos(r*t))/2};var r=Math.PI,i=r/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return 1-p(1-t)},e.c=p,e.b=function(t){return((t*=2)<=1?1-p(1-t):p(t-1)+1)/2};var r=4/11,i=6/11,a=8/11,o=.75,s=9/11,u=10/11,l=.9375,c=21/22,h=63/64,f=1/r/r;function p(t){return(t=+t)<r?f*t*t:t<a?f*(t-=i)*t+o:t<u?f*(t-=s)*t+l:f*(t-=c)*t+h}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a}));var r=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),a=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o}));var r=2*Math.PI,i=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function a(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(1,.3),a=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function a(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(1,.3),o=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function a(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(60);n.d(e,"interpolate",(function(){return r.a}));var i=n(121);n.d(e,"interpolateArray",(function(){return i.a}));var a=n(63);n.d(e,"interpolateBasis",(function(){return a.b}));var o=n(119);n.d(e,"interpolateBasisClosed",(function(){return o.a}));var s=n(122);n.d(e,"interpolateDate",(function(){return s.a}));var u=n(40);n.d(e,"interpolateNumber",(function(){return u.a}));var l=n(123);n.d(e,"interpolateObject",(function(){return l.a}));var c=n(207);n.d(e,"interpolateRound",(function(){return c.a}));var h=n(124);n.d(e,"interpolateString",(function(){return h.a}));var f=n(208);n.d(e,"interpolateTransformCss",(function(){return f.a})),n.d(e,"interpolateTransformSvg",(function(){return f.b}));var p=n(211);n.d(e,"interpolateZoom",(function(){return p.a}));var g=n(118);n.d(e,"interpolateRgb",(function(){return g.a})),n.d(e,"interpolateRgbBasis",(function(){return g.b})),n.d(e,"interpolateRgbBasisClosed",(function(){return g.c}));var d=n(212);n.d(e,"interpolateHsl",(function(){return d.a})),n.d(e,"interpolateHslLong",(function(){return d.b}));var v=n(213);n.d(e,"interpolateLab",(function(){return v.a}));var y=n(214);n.d(e,"interpolateHcl",(function(){return y.a})),n.d(e,"interpolateHclLong",(function(){return y.b}));var x=n(215);n.d(e,"interpolateCubehelix",(function(){return x.b})),n.d(e,"interpolateCubehelixLong",(function(){return x.a}));var m=n(216);n.d(e,"quantize",(function(){return m.a}))},function(t,e,n){"use strict";e.a=g,e.b=_;var r=n(62),i=n(61),a=n(117),o=.96422,s=1,u=.82521,l=4/29,c=6/29,h=3*c*c,f=c*c*c;function p(t){if(t instanceof d)return new d(t.l,t.a,t.b,t.opacity);if(t instanceof w)return S(t);t instanceof i.b||(t=Object(i.h)(t));var e,n,r=m(t.r),a=m(t.g),l=m(t.b),c=v((.2225045*r+.7168786*a+.0606169*l)/s);return r===a&&a===l?e=n=c:(e=v((.4360747*r+.3850649*a+.1430804*l)/o),n=v((.0139322*r+.0971045*a+.7141733*l)/u)),new d(116*c-16,500*(e-c),200*(c-n),t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function v(t){return t>f?Math.pow(t,1/3):t/h+l}function y(t){return t>c?t*t*t:h*(t-l)}function x(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function b(t){if(t instanceof w)return new w(t.h,t.c,t.l,t.opacity);if(t instanceof d||(t=p(t)),0===t.a&&0===t.b)return new w(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*a.b;return new w(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function _(t,e,n,r){return 1===arguments.length?b(t):new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function S(t){if(isNaN(t.h))return new d(t.l,0,0,t.opacity);var e=t.h*a.a;return new d(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Object(r.a)(d,g,Object(r.b)(i.a,{brighter:function(t){return new d(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new d(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=o*y(e),t=s*y(t),n=u*y(n),new i.b(x(3.1338561*e-1.6168667*t-.4906146*n),x(-.9787684*e+1.9161415*t+.033454*n),x(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(r.a)(w,_,Object(r.b)(i.a,{brighter:function(t){return new w(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new w(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return S(this).rgb()}}))},function(t,e,n){"use strict";e.a=g;var r=n(62),i=n(61),a=n(117),o=-.14861,s=1.78277,u=-.29227,l=-.90649,c=1.97294,h=c*l,f=c*s,p=s*u-l*o;function g(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);t instanceof i.b||(t=Object(i.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(p*r+h*e-f*n)/(p+h-f),s=r-o,g=(c*(n-o)-u*s)/l,v=Math.sqrt(g*g+s*s)/(c*o*(1-o)),y=v?Math.atan2(g,s)*a.b-120:NaN;return new d(y<0?y+360:y,v,o,t.opacity)}(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object(r.a)(d,g,Object(r.b)(i.a,{brighter:function(t){return t=null==t?i.c:Math.pow(i.c,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.d:Math.pow(i.d,t),new d(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),h=Math.sin(t);return new i.b(255*(e+n*(o*r+s*h)),255*(e+n*(u*r+l*h)),255*(e+n*(c*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n(40),i=n(209);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],l=[];return o=t(o),s=t(s),function(t,i,a,o,s,u){if(t!==a||i!==o){var l=s.push("translate(",null,e,null,n);u.push({i:l-4,x:Object(r.a)(t,a)},{i:l-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,u,l),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,u,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r.a)(t,n)},{i:u-2,x:Object(r.a)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,l),o=s=null,function(t){for(var e,n=-1,r=l.length;++n<r;)u[(e=l[n]).i]=e.x(t);return u.join("")}}}var o=a(i.a,"px, ","px)","deg)"),s=a(i.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){return"none"===t?s.b:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.b=function(t){return null==t?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)};var r,i,a,o,s=n(210)},function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,i,a,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}e.a=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],l=e[0],c=e[1],h=e[2],f=l-o,p=c-s,g=f*f+p*p;if(g<1e-12)a=Math.log(h/u)/r,n=function(t){return[o+t*f,s+t*p,u*Math.exp(r*t*a)]};else{var d=Math.sqrt(g),v=(h*h-u*u+4*g)/(2*u*2*d),y=(h*h-u*u-4*g)/(2*h*2*d),x=Math.log(Math.sqrt(v*v+1)-v),m=Math.log(Math.sqrt(y*y+1)-y);a=(m-x)/r,n=function(t){var e,n=t*a,l=i(x),c=u/(2*d)*(l*(e=r*n+x,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(x));return[o+c*f,s+c*p,u*l/i(r*n+x)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(17),i=n(28);function a(t){return function(e,n){var a=t((e=Object(r.d)(e)).h,(n=Object(r.d)(n)).h),o=Object(i.a)(e.s,n.s),s=Object(i.a)(e.l,n.l),u=Object(i.a)(e.opacity,n.opacity);return function(t){return e.h=a(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e.a=a(i.c);var o=a(i.a)},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(i.a)((t=Object(r.e)(t)).l,(e=Object(r.e)(e)).l),a=Object(i.a)(t.a,e.a),o=Object(i.a)(t.b,e.b),s=Object(i.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=a(e),t.b=o(e),t.opacity=s(e),t+""}};var r=n(17),i=n(28)},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(17),i=n(28);function a(t){return function(e,n){var a=t((e=Object(r.c)(e)).h,(n=Object(r.c)(n)).h),o=Object(i.a)(e.c,n.c),s=Object(i.a)(e.l,n.l),u=Object(i.a)(e.opacity,n.opacity);return function(t){return e.h=a(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e.a=a(i.c);var o=a(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(17),i=n(28);function a(t){return function e(n){function a(e,a){var o=t((e=Object(r.b)(e)).h,(a=Object(r.b)(a)).h),s=Object(i.a)(e.s,a.s),u=Object(i.a)(e.l,a.l),l=Object(i.a)(e.opacity,a.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,a.gamma=e,a}(1)}e.b=a(i.c);var o=a(i.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){t.exports={canvas:n(218),svg:n(221)}},function(t,e,n){t.exports={painter:n(219)}},function(t,e,n){var r=n(1),i=n(220),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e.toDraw=!1}e.toDraw=!1}()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var r=0;r<e.length;r++)n=e[r],e[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c={};function h(t,e){var n=t.match(l);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),l=s[2],c=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=u&&u<Math.PI?(i={x:c.maxX,y:c.minY},a={x:c.minX,y:c.maxY}):Math.PI<=u&&u<1.5*Math.PI?(i={x:c.maxX,y:c.maxY},a={x:c.minX,y:c.minY}):(i={x:c.minX,y:c.maxY},a={x:c.maxX,y:c.minY});var f=Math.tan(u),p=f*f,g=(a.x-i.x+f*(a.y-i.y))/(p+1)+i.x,d=f*(a.x-i.x+f*(a.y-i.y))/(p+1)+i.y,v=n.createLinearGradient(i.x,i.y,g,d);return h(l,v),v}(t,e,n);if("r"===t[0])return function(t,e,n){var r=s.exec(t),i=parseFloat(r[1]),a=parseFloat(r[2]),o=parseFloat(r[3]),u=r[4];if(0===o){var c=u.match(l);return c[c.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,g=f.maxY-f.minY,d=Math.sqrt(p*p+g*g)/2,v=n.createRadialGradient(f.minX+p*i,f.minY+g*a,o*d,f.minX+p/2,f.minY+g/2,d);return h(u,v),v}(t,e,n);if("p"===t[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,i,a=u.exec(t),o=a[1],s=a[2];function l(){r=n.createPattern(i,o),e.setSilent("pattern",r),e.setSilent("patternSource",t)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),r}(t,e,n)}return t}},numberToColor:function(t){var e=c[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,c[t]=e}return e}}},function(t,e,n){t.exports={painter:n(222),getShape:n(229)}},function(t,e,n){var r=n(1),i=n(27).parseRadius,a=n(57),o=n(223),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},l={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},c={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{t.resetMatrix(),e._drawGroup(t,!1)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e.toDraw=!1}e.toDraw=!1}()},e.drawSync=function(t){this._drawChildren(t,!1)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(!n.el&&n.attrs&&(e=!0),n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t,e))},e._drawChildren=function(t,e){var n,r=t._cfg.children;if(r){if(t._cfg.el&&!e){var i=t._cfg.el.childNodes.length+1;0!==i&&i!==r.length&&(e=!0)}for(var a=0;a<r.length;a++)(n=r[a]).isGroup?this._drawGroup(n,e):this._drawShape(n,e)}},e._drawShape=function(t,e){var n=t._attrs,r=t._cfg,i=r.el;r.removed||r.destroyed?i&&i.parentNode.removeChild(r.el):(e&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null),!i&&r.parent&&(this._createDom(t),this._updateShape(t)),i=r.el,!1!==r.visible?(r.visible&&i.hasAttribute("visibility")&&i.removeAttribute("visibility"),r.hasUpdate&&this._updateShape(t),n.clip&&n.clip._cfg.hasUpdate&&this._updateShape(n.clip)):i.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){for(var i in"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e)),"rect"===t.type&&t._cfg.el.setAttribute("d",this._assembleRect(e)),e)e[i]!==n[i]&&this._setAttribute(t,i,e[i]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},e._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map((function(t){return t[0]+","+t[1]}))).join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var l=null;l="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+l+")"),t._cfg[e]=l}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),u[e]&&o.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t){var e=s[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var r=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=r,t._cfg.parent&&t._cfg.parent.get("el").appendChild(r),t._cfg.attrs={},"text"===t.type?(r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||r.setAttribute("stroke","none"),n.fill||n.fillStyle||r.setAttribute("fill","none")),r},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):a.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map((function(t){return t.join(" ")})).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var u=i(s);return r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s,[["M "+(e+u.r1)+","+n],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},e._formatPath=function(t){return~(t=t.map((function(t){return t.join(" ")})).join("")).indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var l=e(s,n.re,a),c=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,g=n.re,d=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+c.x+","+c.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+d.x+","+d.y),o.push("L "+l.x+" "+l.y)):(o.push("M "+a.x+","+a.y),o.push("L "+l.x+","+l.y)),o.push("A "+g+","+g+",0,"+f+","+h+","+c.x+","+c.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,r=t._cfg.el;for(var i in this._setFont(t),e)if(e[i]!==n[i]){if("text"===i){this._setText(t,""+e[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(t,i,e[i]);continue}if("matrix"===i){this._setTransform(t);continue}u[i]&&r.setAttribute(u[i],e[i])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",l[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",c[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(u[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(u[e],"url(#"+o+")")}else r.setAttribute(u[e],n);else r.setAttribute(u[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=h},function(t,e,n){var r=n(1),i=n(224),a=n(225),o=n(226),s=n(227),u=n(228),l=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=l},function(t,e,n){var r=n(1),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t){var e=t.match(o);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var u=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},a={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},a={x:0,y:0}):(n={x:0,y:1},a={x:1,y:0});var c=Math.tan(u),h=c*c,f=(a.x-n.x+c*(a.y-n.y))/(h+1)+n.x,p=c*(a.x-n.x+c*(a.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=s(l)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=a.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=s(u)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var r=n(1),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=o},function(t,e,n){var r=n(1),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var o=i.exec(t)[2];n.setAttribute("href",o);var s=new Image;function u(){console.log(s.width,s.height),e.setAttribute("width",s.width),e.setAttribute("height",s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?u():(s.onload=u,s.src=s.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(t){return t._cfg&&t._cfg.el===i}))}},function(t,e,n){t.exports={addEventListener:n(231),createDom:n(94),getBoundingClientRect:n(232),getHeight:n(233),getOuterHeight:n(234),getOuterWidth:n(235),getRatio:n(236),getStyle:n(237),getWidth:n(238),modifyCSS:n(95),requestAnimationFrame:n(96)}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){t.exports={contains:n(41),difference:n(240),find:n(241),firstValue:n(242),flatten:n(243),flattenDeep:n(244),getRange:n(245),merge:n(42),pull:n(90),pullAt:n(129),reduce:n(246),remove:n(247),sortBy:n(248),union:n(249),uniq:n(130),valuesOfKey:n(65)}},function(t,e,n){var r=n(64),i=n(41);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(t,(function(t){return!i(e,t)}))}},function(t,e,n){var r=n(11),i=n(26),a=n(127);t.exports=function(t,e){var n=void 0;if(r(e)&&(n=e),i(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o<t.length;o+=1)if(n(t[o]))return t[o];return null}},function(t,e,n){var r=n(5),i=n(4);t.exports=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a][e];if(!r(o)){n=i(o)?o[0]:o;break}}return n}},function(t,e,n){var r=n(4),i=n(2);t.exports=function(t){if(!r(t))return t;var e=[];return i(t,(function(t){r(t)?i(t,(function(t){e.push(t)})):e.push(t)})),e}},function(t,e,n){var r=n(4);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){var r=n(64),i=n(4);t.exports=function(t){if(!(t=r(t,(function(t){return!isNaN(t)}))).length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:a}}},function(t,e,n){var r=n(4),i=n(26),a=n(2);t.exports=function(t,e,n){if(!r(t)&&!i(t))return t;var o=n;return a(t,(function(t,n){o=e(o,t,n)})),o}},function(t,e,n){var r=n(13),i=n(129);t.exports=function(t,e){var n=[];if(!r(t))return n;for(var a=-1,o=[],s=t.length;++a<s;){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return i(t,o),n}},function(t,e,n){var r=n(10),i=n(11),a=n(4);t.exports=function(t,e){var n=void 0;if(i(e))n=function(t,n){return e(t)-e(n)};else{var o=[];r(e)?o.push(e):a(e)&&(o=e),n=function(t,e){for(var n=0;n<o.length;n+=1){var r=o[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var r=n(2),i=n(34),a=n(130);t.exports=function(){var t=[],e=i(arguments);return r(e,(function(e){t=t.concat(e)})),a(t)}},function(t,e,n){t.exports={getWrapBehavior:n(251),wrapBehavior:n(252)}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){var r=n(254);t.exports={number2color:r,numberToColor:r,parsePath:n(255),parseRadius:n(256)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var r=t.toString(16),i=r.length;i<6;i++)r="0"+r;e="#"+r,n[t]=e}return e}},function(t,e,n){var r=n(4),i=n(10),a=n(2),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return r(t=t||[])?t:i(t)?(t=t.match(o),a(t,(function(e,n){if((e=e.match(s))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}a(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){var r=n(4);t.exports=function(t){var e=0,n=0,i=0,a=0;return r(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){var r=n(35);t.exports={clamp:n(51),fixedBase:n(258),isDecimal:n(259),isEven:n(260),isInteger:n(261),isNegative:n(262),isNumberEqual:r,isOdd:n(263),isPositive:n(264),maxBy:n(131),minBy:n(265),mod:n(93),snapEqual:r,toDegree:n(92),toInt:n(132),toInteger:n(132),toRadian:n(91)}},function(t,e){t.exports=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%1!=0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%2==0}},function(t,e,n){var r=n(9),i=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1==0};t.exports=i},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t<0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%2!=0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t>0}},function(t,e,n){var r=n(4),i=n(11),a=n(2);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,(function(t){(s=i(e)?e(t):t[e])<o&&(n=t,o=s)})),n}}},function(t,e,n){t.exports={forIn:n(267),has:n(133),hasKey:n(268),hasValue:n(269),keys:n(128),isMatch:n(127),values:n(134)}},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(133)},function(t,e,n){var r=n(41),i=n(134);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(271),i=n(138),a=n(137),o=n(140);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(272),fillPathByDiff:n(273),formatPath:n(275),intersection:r,pathIntersection:r,parsePathArray:n(136),parsePathString:n(139),pathToAbsolute:i,path2absolute:i,pathTocurve:a,path2curve:a,rectPath:n(135)}},function(t,e,n){var r=n(4),i=n(135),a=n(137),o=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},s=function(t,e,n,r,i,a,s,u,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var d=c*h[g]+c,v=o(d,t,n,i,s),y=o(d,e,r,a,u),x=v*v+y*y;p+=f[g]*Math.sqrt(x)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var u=[],l=[[],[]],c=void 0,h=void 0,f=void 0,p=void 0,g=0;g<2;++g)if(0===g?(h=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*o,f=3*n-3*t):(h=6*e-12*r+6*a,c=-3*e+9*r-9*a+3*s,f=3*r-3*e),Math.abs(c)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&u.push(p)}else{var d=h*h-4*f*c,v=Math.sqrt(d);if(!(d<0)){var y=(-h+v)/(2*c);y>0&&y<1&&u.push(y);var x=(-h-v)/(2*c);x>0&&x<1&&u.push(x)}}for(var m=u.length,b=m,_=void 0;m--;)_=1-(p=u[m]),l[0][m]=_*_*_*t+3*_*_*p*n+3*_*p*p*i+p*p*p*o,l[1][m]=_*_*_*e+3*_*_*p*r+3*_*p*p*a+p*p*p*s;return l[0][b]=t,l[1][b]=e,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},l=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var l=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:l,y:c}}}},c=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:i(t,e,n,r),vb:[t,e,n,r].join(" ")}},f=function(t,e,n,i,a,o,s,l){r(t)||(t=[t,e,n,i,a,o,s,l]);var c=u.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},p=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,g=t+2*u*(n-t)+f*(i-2*n+t),d=e+2*u*(r-e)+f*(a-2*r+e),v=n+2*u*(i-n)+f*(o-2*i+n),y=r+2*u*(a-r)+f*(s-2*a+r);return{x:c*t+3*h*u*n+3*l*u*u*i+p*o,y:c*e+3*h*u*r+3*l*u*u*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),c(e,t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(f(t),f(e)))return n?0:[];for(var r=~~(s.apply(0,t)/8),i=~~(s.apply(0,e)/8),a=[],o=[],u={},g=n?0:[],d=0;d<r+1;d++){var v=p.apply(0,t.concat(d/r));a.push({x:v.x,y:v.y,t:d/r})}for(var y=0;y<i+1;y++){var x=p.apply(0,e.concat(y/i));o.push({x:x.x,y:x.y,t:y/i})}for(var m=0;m<r;m++)for(var b=0;b<i;b++){var _=a[m],w=a[m+1],S=o[b],M=o[b+1],C=Math.abs(w.x-_.x)<.001?"y":"x",A=Math.abs(M.x-S.x)<.001?"y":"x",k=l(_.x,_.y,w.x,w.y,S.x,S.y,M.x,M.y);if(k){if(u[k.x.toFixed(4)]===k.y.toFixed(4))continue;u[k.x.toFixed(4)]=k.y.toFixed(4);var P=_.t+Math.abs((k[C]-_[C])/(w[C]-_[C]))*(w.t-_.t),O=S.t+Math.abs((k[A]-S[A])/(M[A]-S[A]))*(M.t-S.t);P>=0&&P<=1&&O>=0&&O<=1&&(n?g++:g.push({x:k.x,y:k.y,t1:P,t2:O}))}}return g};t.exports=function(t,e){return function(t,e,n){t=a(t),e=a(e);for(var r=void 0,i=void 0,o=void 0,s=void 0,u=void 0,l=void 0,c=void 0,h=void 0,f=void 0,p=void 0,d=n?0:[],v=0,y=t.length;v<y;v++){var x=t[v];if("M"===x[0])r=u=x[1],i=l=x[2];else{"C"===x[0]?(f=[r,i].concat(x.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,l,u,l],r=u,i=l);for(var m=0,b=e.length;m<b;m++){var _=e[m];if("M"===_[0])o=c=_[1],s=h=_[2];else{"C"===_[0]?(p=[o,s].concat(_.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,c,h,c,h],o=c,s=h);var w=g(f,p,n);if(n)d+=w;else{for(var S=0,M=w.length;S<M;S++)w[S].segment1=v,w[S].segment2=m,w[S].bez1=f,w[S].bez2=p;d=d.concat(w)}}}}}return d}(t,e)}},function(t,e){function n(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function r(t,e,r){if(1===r)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,r){var i=[[t[1],t[2]]];r=r||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/r,u=0;u<r-1;u++){var l=n(o,s/(1-s*u));a.push(l.left),o=l.right}return a.push(o),a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,r));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=r-1;o++)i.push(a)}return i}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,a=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<i-n;s++)t.push(t[0]);return t}for(var u=0;u<i;u++){var l=Math.floor(a*u);o[l]=(o[l]||0)+1}var c=o.reduce((function(e,i,a){return a===n?e.concat(t[n]):e.concat(r(t[a],t[a+1],i))}),[]);return c.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||c.push("Z"),c}},function(t,e,n){var r=n(274);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}t.exports=function(t,e){var n=function(t,e){var n=t.length,a=e.length,o=void 0,s=void 0,u=0;if(0===n||0===a)return null;for(var l=[],c=0;c<=n;c++)l[c]=[],l[c][0]={min:c};for(var h=0;h<=a;h++)l[0][h]={min:h};for(var f=1;f<=n;f++){o=t[f-1];for(var p=1;p<=a;p++){s=e[p-1],u=r(o,s)?0:1;var g=l[f-1][p].min+1,d=l[f][p-1].min+1,v=l[f-1][p-1].min+u;l[f][p]=i(g,d,v)}}return l}(t,e),a=t.length,o=e.length,s=[],u=1,l=1;if(n[a][o]!==a){for(var c=1;c<=a;c++){var h=n[c][c].min;l=c;for(var f=u;f<=o;f++)n[c][f].min<h&&(h=n[c][f].min,l=f);u=l,n[c][u].type&&s.push({index:c-1,type:n[c][u].type})}for(var p=s.length-1;p>=0;p--)u=s[p].index,"add"===s[p].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(var g=0;g<o-a;g++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n}},function(t,e){function n(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function r(t,e,r){for(var i=[].concat(t),a=void 0,o=1/(r+1),s=n(e)[0],u=1;u<=r;u++)o*=u,0===(a=Math.floor(t.length*o))?i.unshift([s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]):i.splice(a,0,[s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]);return i}t.exports=function(t,e){if(t.length<=1)return t;for(var i=void 0,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(i=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(i[0]);break;case"L":t[a]=["L"].concat(i[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=i[0][0],t[a][7]=i[0][1];break;case"Q":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],2)}t[a]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var r={lc:n(277),lowerCase:n(141),lowerFirst:n(75),substitute:n(278),uc:n(279),upperCase:n(142),upperFirst:n(87)};t.exports=r},function(t,e,n){t.exports=n(141)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){t.exports=n(142)},function(t,e,n){var r=n(12),i={getType:n(84),isArray:n(4),isArrayLike:n(13),isBoolean:n(82),isFunction:n(11),isNil:n(5),isNull:n(281),isNumber:n(9),isObject:n(25),isObjectLike:n(49),isPlainObject:n(26),isPrototype:n(85),isType:r,isUndefined:n(282),isString:n(10),isRegExp:n(283),isDate:n(80),isArguments:n(284),isError:n(285)};t.exports=i},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"RegExp")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Arguments")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Error")}},function(t,e){t.exports=function(t,e,n){var r=void 0;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){var r=n(11),i=n(50);t.exports=function(t,e,n){return r(n)?!!n(t,e):i(t,e)}},function(t,e,n){var r=n(2),i=n(13);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){n.push(e(t,r))})),n}},function(t,e,n){var r=n(2),i=n(26),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,(function(e){a.call(t,e)&&(n[e]=t[e])})),n}},function(t,e){t.exports=function(t,e,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=l,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}},function(t,e,n){var r=n(0),i=n(16),a=r.PathUtil;function o(t,e){var n,i,a=function(t){if(r.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return r.each(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,a=a<t.y?t.y:a})),{minX:e,maxX:n,minY:i,maxY:a,centerX:(e+n)/2,centerY:(i+a)/2}}(t.points||t.get("origin").points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(n=a.maxY*s,i=a.minY*s):(n=a.maxX*s,i=a.minX*s),{startAngle:i+=o,endAngle:n+=o}}function s(t,e,n){var i={};return t.delay&&(i.delay=r.isFunction(t.delay)?t.delay(e,n):t.delay),i.easing=r.isFunction(t.easing)?t.easing(e,n):t.easing,i.duration=r.isFunction(t.duration)?t.duration(e,n):t.duration,i.callback=t.callback,i}function u(t,e){var n,r=t._id,i=t.get("index"),a=t.getBBox(),o=t.get("origin").points,u=(a.minX+a.maxX)/2,l=[u,n=o[0].y-o[1].y<=0?a.maxY:a.minY,1];t.apply(l),t.attr("transform",[["t",-u,-n],["s",1,.01],["t",u,n]]);var c={transform:[["t",-u,-n],["s",1,100],["t",u,n]]},h=s(e,i,r);t.animate(c,h.duration,h.easing,h.callback,h.delay)}function l(t,e){var n,r=t._id,i=t.get("index"),a=t.getBBox(),o=t.get("origin").points,u=(a.minY+a.maxY)/2,l=[n=o[0].y-o[1].y>0?a.maxX:a.minX,u,1];t.apply(l),t.attr({transform:[["t",-n,-u],["s",.01,1],["t",n,u]]});var c={transform:[["t",-n,-u],["s",100,1],["t",n,u]]},h=s(e,i,r);t.animate(c,h.duration,h.easing,h.callback,h.delay)}function c(t,e,n){var r,i,a=t._id,o=t.get("index");if(n.isPolar&&"point"!==t.name)r=n.getCenter().x,i=n.getCenter().y;else{var u=t.getBBox();r=(u.minX+u.maxX)/2,i=(u.minY+u.maxY)/2}var l=[r,i,1];t.apply(l),t.attr({transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]});var c={transform:[["t",-r,-i],["s",100,100],["t",r,i]]},h=s(e,o,a);t.animate(c,h.duration,h.easing,h.callback,h.delay)}function h(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i=a.pathToAbsolute(t.attr("path"));t.attr("path",[i[0]]);var o={path:i},u=s(e,r,n);t.animate(o,u.duration,u.easing,u.callback,u.delay)}}function f(t,e,n,r,a){var o,u=function(t){var e,n,r,a,o,s=t.start,u=t.end,l=t.getWidth(),c=t.getHeight();return t.isPolar?(a=t.getRadius(),r=t.getCenter(),e=t.startAngle,n=t.endAngle,(o=new i.Fan({attrs:{x:r.x,y:r.y,rs:0,re:a+200,startAngle:e,endAngle:e}})).endState={endAngle:n}):(o=new i.Rect({attrs:{x:s.x-200,y:u.y-200,width:t.isTransposed?l+400:0,height:t.isTransposed?0:c+400}}),t.isTransposed?o.endState={height:c+400}:o.endState={width:l+400}),o.isClip=!0,o}(n),l=t.get("canvas"),c=t._id,h=t.get("index");r?(u.attr("startAngle",r),u.attr("endAngle",r),o={endAngle:a}):o=u.endState,u.set("canvas",l),t.attr("clip",u),t.setSilent("animating",!0);var f=s(e,h,c);u.animate(o,f.duration,f.easing,(function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),u.remove())}),f.delay)}function p(t,e){var n=t._id,i=t.get("index"),a=r.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=r.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var u={fillOpacity:a,strokeOpacity:o},l=s(e,i,n);t.animate(u,l.duration,l.easing,l.callback,l.delay)}function g(t,e,n){var r=o(t,n),i=r.endAngle;f(t,e,n,r.startAngle,i)}t.exports={enter:{clipIn:f,zoomIn:c,pathIn:h,scaleInY:u,scaleInX:l,fanIn:g,fadeIn:p},leave:{lineWidthOut:function(t,e){var n={lineWidth:0,opacity:0},r=t._id,i=s(e,t.get("index"),r);t.animate(n,i.duration,i.easing,(function(){t.remove()}),i.delay)},zoomOut:function(t,e,n){var r,i,a=t._id,o=t.get("index");if(n.isPolar&&"point"!==t.name)r=n.getCenter().x,i=n.getCenter().y;else{var u=t.getBBox();r=(u.minX+u.maxX)/2,i=(u.minY+u.maxY)/2}var l=[r,i,1];t.apply(l);var c={transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]},h=s(e,o,a);t.animate(c,h.duration,h.easing,(function(){t.remove()}),h.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i={path:[a.pathToAbsolute(t.attr("path"))[0]]},o=s(e,r,n);t.animate(i,o.duration,o.easing,(function(){t.remove()}),o.delay)}},fadeOut:function(t,e){var n=t._id,r={fillOpacity:0,strokeOpacity:0},i=s(e,t.get("index"),n);t.animate(r,i.duration,i.easing,(function(){t.remove()}),i.delay)}},appear:{clipIn:f,zoomIn:c,pathIn:h,scaleInY:u,scaleInX:l,fanIn:g,fadeIn:p},update:{fadeIn:p,fanIn:g,lineSlideLeft:function(t,e,n){if("line"===t.name){var r=t.get("canvas"),o=t.get("cacheShape"),u=t._id,l=t.get("index"),c=new i.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});c.isClip=!0,c.set("canvas",r);var h=a.pathToAbsolute(o.attrs.path),f=a.pathToAbsolute(t.attr("path")),p=h[1][1]-h[0][1],g=h[h.length-1][1]+p,d=f[f.length-1][2],v=h.concat([["L",g,d]]);t.apply([0,0,1]),t.attr("clip",c),t.attr("path",v);var y={transform:[["t",-p,0]]},x=s(e,l,u);t.animate(y,x.duration,x.easing,(function(){t&&!t.get("destroyed")&&(t.attr("path",f),t.attr({transform:[["t",p,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),c.remove())}),x.delay)}},areaSlideLeft:function(t,e,n){if("area"===t.name){var r=t.get("canvas"),o=t.get("cacheShape"),u=t._id,l=t.get("index"),c=new i.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});c.isClip=!0,c.set("canvas",r);var h=a.pathToAbsolute(o.attrs.path),f=a.pathToAbsolute(t.attr("path")),p=h[1][1]-h[0][1],g=Math.floor(h.length/2),d=h[g-1][1]+p,v=f[g-1][2],y=[].concat(h.slice(0,g),[["L",d,v],["L",d,f[g][2]]],h.slice(g));t.apply([0,0,1]),t.attr("clip",c),t.attr("path",y);var x={transform:[["t",-p,0]]},m=s(e,l,u);t.animate(x,m.duration,m.easing,(function(){t&&!t.get("destroyed")&&(t.attr("path",f),t.attr({transform:[["t",p,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),c.remove())}),m.delay)}}}}},function(t,e,n){var r=n(147),i=n(21),a=n(0),o=n(165),s=n(7),u=n(150),l=n(357);function c(t,e,n){var r=(t-e)/(n-e);return r>=0&&r<=1}function h(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=c(e.x,r.x,i.x)&&c(e.y,r.y,i.y)}else{var a=t.invert(e);n=a.x>=0&&a.y>=0&&a.x<=1&&a.y<=1}return n}var f={};a.each(i,(function(t,e){var n=a.lowerFirst(e);f[n]=function(e){var n=new t(e);return this.addGeom(n),n}}));var p=function(t){var e,n;n=t,(e=c).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=c.prototype;function c(e){var n,r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n=t.call(this,e)||this);return r._setTheme(),a.each(i,(function(t,e){var n=a.lowerFirst(e);r[n]=function(e){void 0===e&&(e={}),e.viewTheme=r.get("viewTheme");var n=new t(e);return r.addGeom(n),n}})),r.init(),n}return r.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:s.animate,visible:!0}},r._setTheme=function(){var t=this.get("theme"),e={},n={};a.isObject(t)?n=t:-1!==a.indexOf(Object.keys(u),t)&&(n=u[t]),a.deepMix(e,s,n),this.set("viewTheme",e)},r.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},r._initOptions=function(){var t=this,e=a.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||a.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&a.each(e.geoms,(function(e){t._createGeom(e)}));var n=t.get("scaleController");n&&(n.defs=e.scales);var r=t.get("coordController");r&&r.reset(e.coord),this.set("options",e)},r._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),a.each(t,(function(t,n){var r;e[n]&&(a.isObject(t)&&t.field?"label"===t?e[n](t.field,t.callback,t.cfg):(a.each(t,(function(t,e){"field"!==e&&(r=t)})),e[n](t.field,r)):e[n](t))})))},r._initControllers=function(){var t=this.get("options"),e=this.get("viewTheme"),n=this.get("canvas"),r=new o.Scale({viewTheme:e,defs:t.scales}),i=new o.Coord(t.coord);this.set("scaleController",r),this.set("coordController",i);var a=new o.Axis({canvas:n,viewTheme:e});this.set("axisController",a);var s=new o.Guide({viewTheme:e,options:t.guides||[]});this.set("guideController",s)},r._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},r._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),i=0;i<t.length;i++){var a=t[i];a.set("data",e),a.set("coord",n),a.set("_id",r+"-geom"+i),a.set("keyFields",this.get("keyFields")),a.init()}},r._clearGeoms=function(){for(var t=this.get("geoms"),e=0;e<t.length;e++)t[e].clear()},r._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;)t.shift().destroy()},r._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var r=t[n];r.setCoord(e),r.paint()}this.emit("afterdrawgeoms")},r.isShapeInView=function(t){var e=this.get("_id"),n=t._id;if(n)return n.split("-")[0]===e;for(var r=t;r;){if(r.get("viewId")===e)return!0;r=r.get("parent")}return!1},r.getViewRegion=function(){var t,e,n=this.get("parent");if(n){var r=n.getViewRegion(),i=this._getViewRegion(r.start,r.end);t=i.start,e=i.end}else t=this.get("start"),e=this.get("end");return{start:t,end:e}},r._getViewRegion=function(t,e){var n=this.get("start"),r=this.get("end"),i=n.x,o=1-r.y,s=r.x,u=1-n.y,l=this.get("padding"),c=a.toAllPadding(l),h=c[0],f=c[1],p=c[2],g=c[3];return{start:{x:i*(e.x-t.x)+t.x+g,y:o*(e.y-t.y)+t.y-p},end:{x:s*(e.x-t.x)+t.x-f,y:u*(e.y-t.y)+t.y+h}}},r._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},r._renderAxes=function(){var t=this.get("options").axes;if(!1!==t){var e=this.get("axisController");e.container=this.get("backPlot"),e.coord=this.get("coord"),e.options=t||{};var n=this.getXScale(),r=this.getYScales(),i=this.get("_id");e.createAxis(n,r,i)}},r._renderGuides=function(){var t=this.get("guideController");if(!a.isEmpty(t.options)){var e=this.get("coord");t.view=this,t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},r._bindEvents=function(){var t=new o.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},r._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},r._getScales=function(t){for(var e=this.get("geoms"),n={},r=0;r<e.length;r++){var i=e[r],a="x"===t?i.getXScale():i.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},r._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController").defs,n=0;n<t.length;n++){var r=t[n];if("interval"===r.get("type")){var i=r.getYScale(),a=i.field,o=i.min,s=i.max,u=i.type;e[a]&&e[a].min||"time"===u||(o>0?i.change({min:0}):s<=0&&i.change({max:0}))}}},r._setCatScalesRange=function(){var t=this.get("coord"),e=this.get("viewTheme"),n=this.getXScale(),r=this.getYScales(),i=[];n&&i.push(n),i=i.concat(r);var o=t.isPolar&&function(t){var e=t.startAngle,n=t.endAngle;return!(!a.isNil(e)&&!a.isNil(n)&&n-e<2*Math.PI)}(t),s=this.get("scaleController").defs;a.each(i,(function(n){if((n.isCategory||n.isIdentity)&&n.values&&(!s[n.field]||!s[n.field].range)){var r,i=n.values.length;if(1===i)r=[.5,1];else{var a=0;r=o?t.isTransposed?[(a=1/i*e.widthRatio.multiplePie)/2,1-a/2]:[0,1-1/i]:[a=1/i*1/2,1-a]}n.range=r}}))},r.getXScale=function(){var t=this.get("geoms"),e=null;return a.isEmpty(t)||(e=t[0].getXScale()),e},r.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n<t.length;n++){var r=t[n].getYScale();r&&-1===a.indexOf(e,r)&&e.push(r)}return e},r.getXY=function(t){var e,n,r=this.get("coord"),i=this._getScales("x"),o=this._getScales("y");for(var s in t)i[s]&&(e=i[s].scale(t[s])),o[s]&&(n=o[s].scale(t[s]));return a.isNil(e)||a.isNil(n)?null:r.convert({x:e,y:n})},r.getSnapRecords=function(t){var e=this.get("geoms"),n=[];return a.each(e,(function(e){var r,i=e.get("dataArray");a.each(i,(function(i){(r=e.findPoint(t,i))&&n.push(r)}))})),n},r.addGeom=function(t){this.get("geoms").push(t),t.set("view",this);var e=this.get("viewContainer");t.set("container",e),t.set("animate",this.get("animate")),t.bindEvents()},r.removeGeom=function(t){var e=this.get("geoms");a.Array.remove(e,t),t.destroy()},r.createScale=function(t,e){var n=this.get("scales"),r=this.get("parent"),i=n[t];if(!e){var a=this.get("filteredData"),o=this._getFieldsForLegend();e=a.length&&!o.includes(t)?a:this.get("data")}var s=this.get("scaleController");if(i){if(i.sync){var u=s.createScale(t,e);this._syncScale(i,u)}}else{if((i=s.createScale(t,e)).sync&&r){var l=r.createScale(t,e);i=this._getSyncScale(l,i)}n[t]=i}return i},r._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return a.each(e,(function(e){var n=e.getFieldsForLegend();t=t.concat(n)})),a.uniq(t)},r._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},r._syncScale=function(t,e){var n=a.union(t.values,e.values);if(e.isLinear){var r=Math.max(t.max,e.max),i=Math.min(t.min,e.min);t.max===r&&t.min===i||t.change({min:i,max:r,values:n})}n.length!==t.values.length&&t.change({values:n})},r.getFilteredValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(n[t]):e.slice(0)},r.getFilteredOutValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter((function(){return!n[t].apply(n,arguments)})):[]},r.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e,this.get("scaleController").filters=n.filters},r._getFilters=function(){return this.get("options").filters},r.execFilter=function(t){var e=this._getFilters();return e&&(t=t.filter((function(t){var n=!0;return a.each(e,(function(e,r){if(e&&!(n=e(t[r],t)))return!1})),n}))),t},r.axis=function(t,e){var n=this.get("options");return!1===t?n.axes=!1:(n.axes||(n.axes={}),n.axes[t]=e),this},r.guide=function(){return this.get("guideController")},r._getKeyFields=function(t){var e=[];a.each(t,(function(t,n){t.key&&e.push(n)})),this.set("keyFields",e)},r.scale=function(t,e){var n=this.get("options").scales;return a.isObject(t)?a.mix(n,t):n[t]=e,this._getKeyFields(n),this},r.tooltip=function(t){return this.set("tooltipEnable",t),this},r.animate=function(t){return this.get("options").animate=t,this.set("animate",t),this},r.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},r.getViewsByPoint=function(t){var e=[],n=this.get("views");return h(this.get("coord"),t)&&e.push(this),a.each(n,(function(n){n.get("visible")&&h(n.get("coord"),t)&&e.push(n)})),e},r.eachShape=function(t){var e=this,n=e.get("views"),r=e.get("canvas");a.each(n,(function(e){e.eachShape(t)}));var i=this.get("geoms");return a.each(i,(function(n){var r=n.getShapes();a.each(r,(function(r){var i=r.get("origin");if(a.isArray(i)){var o=i.map((function(t){return t._origin}));t(o,r,n,e)}else{var s=i._origin;t(s,r,n,e)}}))})),r.draw(),this},r.filterShape=function(t){return this.eachShape((function(e,n,r,i){t(e,n,r,i)?n.show():n.hide()})),this},r.clearInner=function(){this.set("scales",{}),this.emit("beforeclearinner"),this.get("options").geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear(),this.emit("afterclearinner")},r.clear=function(){return this.get("options").filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},r.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},r.resetCoord=function(){this._createCoord()},r.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},r.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},r._initData=function(t){var e=this.get("dataView");e&&(e.off("change",a.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",a.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},r._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView").rows;this.set("data",t),this.emit("afterchangedata"),this.repaint()},r.beforeRender=function(){var t=this.get("views");a.each(t,(function(t){t.beforeRender()})),this.initView()},r.drawComponents=function(){var t=this.get("views");a.each(t,(function(t){t.drawComponents()})),this._renderAxes(),this._renderGuides()},r.drawCanvas=function(t){if(!t){var e=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var r=this.get("isUpdate");a.each(e,(function(t){l.execAnimation(t,r)})),l.execAnimation(this,r)}else n.draw()}},r.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},r.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},r.paint=function(){var t=this.get("views");a.each(t,(function(t){t.paint()}));var e=this.get("data");a.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},r.changeVisible=function(t,e){var n=this.get("geoms");a.each(n,(function(e){e.changeVisible(t,!0)})),this.get("axisController")&&this.get("axisController").changeVisible(t),this.get("guideController")&&this.get("guideController").changeVisible(t),e||this.get("canvas").draw()},r.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},r.destroy=function(){this._clearEvents();var e=this.get("dataView");e&&e.off("change",a.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},c}(r);t.exports=p},function(t,e,n){var r=n(5),i=n(4),a=n(2),o=function(t){var e,n;function o(e){var n;return(n=t.call(this,e)||this).names=["x","y"],n.type="position",n}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.prototype.mapping=function(t,e){var n,o,s,u=this.scales,l=this.coord,c=u[0],h=u[1];if(r(t)||r(e))return[];if(i(e)&&i(t)){n=[],o=[];for(var f=0,p=0,g=t.length,d=e.length;f<g&&p<d;f++,p++)s=l.convertPoint({x:c.scale(t[f]),y:h.scale(e[p])}),n.push(s.x),o.push(s.y)}else if(i(e))t=c.scale(t),o=[],a(e,(function(e){e=h.scale(e),s=l.convertPoint({x:t,y:e}),n&&n!==s.x?(i(n)||(n=[n]),n.push(s.x)):n=s.x,o.push(s.y)}));else if(i(t))e=h.scale(e),n=[],a(t,(function(t){t=c.scale(t),s=l.convertPoint({x:t,y:e}),o&&o!==s.y?(i(o)||(o=[o]),o.push(s.y)):o=s.y,n.push(s.x)}));else{t=c.scale(t),e=h.scale(e);var v=l.convertPoint({x:t,y:e});n=v.x,o=v.y}return[n,o]},o}(n(29));t.exports=o},function(t,e,n){var r=n(10),i=n(148),a=function(t){var e,n;function a(e){var n;return(n=t.call(this,e)||this).names=["color"],n.type="color",n.gradient=null,r(n.values)&&(n.linear=!0),n}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=i.gradient(n),this.gradient=e}return e(t)},a}(n(29));t.exports=a},function(t,e,n){var r=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).names=["shape"],n.type="shape",n.gradient=null,n}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},r}(n(29));t.exports=r},function(t,e,n){var r=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).names=["size"],n.type="size",n.gradient=null,n}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(n(29));t.exports=r},function(t,e,n){var r=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).names=["opacity"],n.type="opacity",n.gradient=null,n}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(n(29));t.exports=r},function(t,e,n){var r=n(8),i=n(30),a=n(300),o=n(301),s=n(149),u=n(302),l=n(303);r(i.prototype,s),r(a.prototype,s,u),r(o.prototype,l),i.Jitter=n(304),i.Symmetric=n(305),i.Dodge=a,i.Stack=o,t.exports=i},function(t,e,n){var r=n(30),i=n(2),a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},a.getDodgeOffset=function(t,e,n){var r=t.pre,i=t.next,a=i-r,o=a*this.dodgeRatio/n,s=this.marginRatio*o;return(r+i)/2+(.5*(a-n*o-(n-1)*s)+((e+1)*o+e*s)-.5*o-.5*a)},a.processAdjust=function(t){var e=this,n=t.length,r=e.xField;i(t,(function(t,i){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[r],l={pre:1===o?u-1:u-.5,next:1===o?u+1:u+.5},c=e.getDodgeOffset(l,i,n);s[r]=c}}))},r}(r);r.Dodge=a,t.exports=a},function(t,e,n){var r=n(4),i=n(5),a=n(30),o=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=a.prototype;return o._initDefaultCfg=function(){this.xField=null,this.yField=null},o.processAdjust=function(t){this.processStack(t)},o.processStack=function(t){var e=this.xField,n=this.yField,a=t.length,o={positive:{},negative:{}};this.reverseOrder&&(t=t.slice(0).reverse());for(var s=0;s<a;s++)for(var u=t[s],l=0,c=u.length;l<c;l++){var h=u[l],f=h[e]||0,p=h[n],g=f.toString();if(p=r(p)?p[1]:p,!i(p)){var d=p>=0?"positive":"negative";o[d][g]||(o[d][g]=0),h[n]=[o[d][g],p+o[d][g]],o[d][g]+=p}}},a}(a);a.Stack=o,t.exports=o},function(t,e,n){var r={merge:n(42),values:n(65)},i=n(143),a=n(2);t.exports={processAdjust:function(t){var e=r.merge(t),n=this.dodgeBy,a=t;n&&(a=i(e,n)),this.cacheMap={},this.adjDataArray=a,this.mergeData=e,this.adjustData(a,e),this.adjDataArray=null,this.mergeData=null},getDistribution:function(t){var e=this.adjDataArray,n=this.cacheMap,i=n[t];return i||(i={},a(e,(function(e,n){var o=r.values(e,t);o.length||o.push(0),a(o,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},adjustDim:function(t,e,n,r,i){var o=this,s=o.getDistribution(t),u=o.groupData(n,t);a(u,(function(n,r){var u;r=parseFloat(r),u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,r,e),a(n,(function(e){var n=e[t],r=s[n],a=r.indexOf(i);e[t]=o.getDodgeOffset(u,a,r.length)}))}))}}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this.xField,n=this.yField||"y",r=this.height,i={};this.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,o=t.length;a<o;a++)for(var s=t[a],u=0,l=s.length;u<l;u++){var c=s[u],h=2*(c.size||this.size)/r,f=c[e];i[f]||(i[f]=h/2),c[n]=i[f],i[f]+=h}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(t)}}},function(t,e,n){var r=n(2),i=n(8),a={merge:n(42)},o=n(30),s=n(149),u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o._initDefaultCfg=function(){this.xField=null,this.yField=null,this.adjustNames=["x","y"],this.groupFields=null},o.processAdjust=function(t){var e=a.merge(t);this.adjDataArray=t,this.mergeData=e,this.adjustData(t,e),this.adjFrames=null,this.mergeData=null},o.getAdjustOffset=function(t,e){var n=e-t;return t+.05*n+.9*n*Math.random()},o._adjustGroup=function(t,e,n,i){var a=this,o=a.getAdjustRange(e,n,i);r(t,(function(t){t[e]=a.getAdjustOffset(o.pre,o.next)}))},o.adjustDim=function(t,e,n){var i=this,a=i.groupData(n,t);r(a,(function(n,r){r=parseFloat(r),i._adjustGroup(n,t,r,e)}))},i}(o);i(u.prototype,s),o.Jitter=u,t.exports=u},function(t,e,n){var r=n(2),i=n(131),a=n(4),o={merge:n(42)},s=n(30),u=function(t){var e,n;function s(){return t.apply(this,arguments)||this}n=t,(e=s).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=s.prototype;return u._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},u._getMax=function(t){var e=this.mergeData,n=i(e,(function(e){var n=e[t];return a(n)?Math.max.apply(null,n):n}))[t];return a(n)?Math.max.apply(null,n):n},u._getXValuesMax=function(){var t=this.yField,e=this.xField,n={},i=this.mergeData;return r(i,(function(r){var i=r[e],o=r[t],s=a(o)?Math.max.apply(null,o):o;n[i]=n[i]||0,n[i]<s&&(n[i]=s)})),n},u.processAdjust=function(t){var e=o.merge(t);this.mergeData=e,this._processSymmetric(t),this.mergeData=null},u._processSymmetric=function(t){var e,n=this.xField,i=this.yField,o=this._getMax(i),s=t[0][0];s&&a(s[i])&&(e=this._getXValuesMax()),r(t,(function(t){r(t,(function(t){var s,u=t[i];if(a(u)){var l=t[n],c=e[l];s=(o-c)/2;var h=[];r(u,(function(t){h.push(s+t)})),t[i]=h}else s=(o-u)/2,t[i]=[s,u+s]}))}))},s}(s);s.Symmetric=u,t.exports=u},function(t,e,n){var r,i,a=n(0),o=n(151),s=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(r={},r["g2-legend"]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i["g2-tooltip"]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},i),tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=s},function(t,e,n){var r=n(66),i=n(163),a=n(337),o=n(338),s={getLabelsClass:function(t,e){var n=r;return"polar"===t?n=i:"theta"===t?n=a:"interval"!==e&&"polygon"!==e||(n=o),n}};t.exports=s},function(t,e,n){var r=n(31);r.Base=r,r.Circle=n(312),r.Grid=n(152),r.Helix=n(313),r.Line=n(314),r.Polyline=n(315),t.exports=r},function(t,e,n){var r=n(154);function i(t,e,n,r){var i=t.getBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o/2,s.textAlign="left";break;case 1:s.y-=o/2,s.textAlign="right";break;case 2:s.y+=o/2,s.textAlign="right";break;case 3:s.y+=o/2,s.textAlign="left";break;case 5:s.y-=o/2;break;case 6:s.y+=o/2;break;case 7:s.x+=a/2,s.textAlign="left";break;case 8:s.x-=a/2,s.textAlign="right"}return t.attr(s),t.getBBox()}t.exports=function(t){for(var e,n,a,o,s,u=new r,l=[],c=0;c<t.length;c++){a=(n=t[c]).attr("x"),o=n.attr("y"),s=!1;for(var h=0;h<8;h++)if(e=i(n,a,o,h),u.hasGap(e)){u.fillGap(e),s=!0;break}s||l.push(n)}for(var f=0;f<l.length;f++)l[f].remove();return s}},function(t,e,n){var r=n(154),i=20;function a(t,e){var n,r=t.attr("x"),a=t.attr("y"),o=t.getBBox(),s=Math.sqrt(o.width*o.width+o.height*o.height),u=1,l=0,c=0,h=function(t){return[(t*=.1)*Math.cos(t),t*Math.sin(t)]};if(e.hasGap(o))return e.fillGap(o),!0;for(var f=!1,p=0;Math.min(Math.abs(l),Math.abs(c))<s&&p<i;)if(l=~~(n=h(u+=-1))[0],c=~~n[1],t.attr({x:r+l,y:a+c}),p++,e.hasGap(t.getBBox())){e.fillGap(o),f=!0;break}return f}t.exports=function(t){for(var e,n=new r,i=[],o=0;o<t.length;o++)a(e=t[o],n)||i.push(e);for(var s=0;s<i.length;s++)i[s].remove()}},function(t,e){t.exports=function(t,e){for(var n,r,i=[],a=0;a<t.length;a++)n=t[a].getBBox(),r=e[a].getBBox(),n.width>r.width||n.height>r.height?i.push(t[a]):n.width*n.height>r.width*r.height&&i.push(t[a]);for(var o=0;o<i.length;o++)i[o].remove()}},function(t,e,n){var r=n(3),i=n(31),a=r.MatrixUtil.vec2,o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},o.parseTick=function(t,e,n){return{text:t,value:e/n}},o._getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},o.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getCirclePoint(n)},o.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(!r.isNil(t)){var o=a.length(i);a.scale(i,i,t/o)}return i},o.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},o.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},o.getTextAnchor=function(t){var e;return r.snapEqual(t[0],0)?e="center":t[0]>0?e="left":t[0]<0&&(e="right"),e},o.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=this.get("inner"),u=[];if(Math.abs(o-a)===2*Math.PI)u=[["M",e,n],["m",0,-i],["a",r,i,0,1,1,0,2*i],["a",r,i,0,1,1,0,-2*i],["z"]];else{var l=this._getCirclePoint(a),c=this._getCirclePoint(o),h=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;if(s){var p=this.getSideVector(s*r,l),g=this.getSideVector(s*r,c),d={x:p[0]+e,y:p[1]+n},v={x:g[0]+e,y:g[1]+n};u=[["M",d.x,d.y],["L",l.x,l.y],["A",r,i,0,h,f,c.x,c.y],["L",v.x,v.y],["A",r*s,i*s,0,h,Math.abs(f-1),d.x,d.y]]}else u=[["M",e,n],["L",l.x,l.y],["A",r,i,0,h,f,c.x,c.y],["L",e,n]]}return u},o.addLabel=function(e,n,r){var i=this.get("label").offset||this.get("_labelOffset")||.001;n=this.getSidePoint(n,i),t.prototype.addLabel.call(this,e,n,r)},o.autoRotateLabels=function(){var t=this.get("ticks"),e=this.get("labelRenderer");if(e&&t.length>12){var n=this.get("radius"),i=this.get("startAngle"),a=this.get("endAngle")-i,o=a/(t.length-1),s=Math.sin(o/2)*n*2,u=this.getMaxLabelWidth(e);r.each(e.get("group").get("children"),(function(e,n){var r=t[n].value*a+i,o=r%(2*Math.PI);u<s?(o<=0&&(r+=Math.PI),o>Math.PI&&(r-=Math.PI),r-=Math.PI/2,e.attr("textAlign","center")):o>Math.PI/2?r-=Math.PI:o<Math.PI/2*-1&&(r+=Math.PI),e.rotateAtStart(r)}))}},i}(i);t.exports=o},function(t,e,n){var r=n(3),i=n(31),a=r.MatrixUtil,o=r.PathUtil,s=a.vec2,u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{inner:0,type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},a.getLinePath=function(){var t=this.get("crp"),e=this.get("axisStart"),n=o.catmullRomToBezier(t);return n.unshift(["M",e.x,e.y]),n},a.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getHelixPoint(n)},a._getHelixPoint=function(t){var e=this.get("center"),n=this.get("a")*t+this.get("inner");return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},a.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y];if(t){var i=s.length(r);s.scale(r,r,t/i)}return r},a.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},a.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},i}(i);t.exports=u},function(t,e,n){var r=n(31),i=n(3),a=i.MatrixUtil.vec2,o=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},o._getAvgLabelLength=function(t){var e=t.get("group").get("children");return e[1].attr("x")-e[0].attr("x")},o._getAvgLabelHeightSpace=function(t){var e=t.get("group").get("children");return e[1].attr("y")-e[0].attr("y")},o.getSideVector=function(t){var e=this.get("isVertical"),n=this.get("factor");if(!i.isNumber(t))return[0,0];var r=this.get("start"),o=this.get("end"),s=this.getAxisVector(),u=a.normalize([],s),l=!1;(e&&r.y<o.y||!e&&r.x>o.x)&&(l=!0);var c=a.vertical([],u,l);return a.scale([],c,t*n)},o.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},o.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},o.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},o.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},o.renderTitle=function(){var t=this.get("title"),e=this.getTickPoint(.5),n=t.offset;if(i.isNil(n)){n=20;var r=this.get("labelsGroup");r&&(n+=this.getMaxLabelWidth(r)+(this.get("label").offset||this.get("_labelOffset")))}var o=t.textStyle,s=i.mix({},o);if(t.text){var u=this.getAxisVector();if(t.autoRotate&&i.isNil(o.rotate)){var l=0;if(!i.snapEqual(u[1],0)){var c=[u[0],u[1]];l=a.angleTo(c,[1,0],!0)}s.rotate=l*(180/Math.PI)}else i.isNil(o.rotate)||(s.rotate=o.rotate/180*Math.PI);var h,f=this.getSideVector(n),p=t.position;h="start"===p?{x:this.get("start").x+f[0],y:this.get("start").y+f[1]}:"end"===p?{x:this.get("end").x+f[0],y:this.get("end").y+f[1]}:{x:e.x+f[0],y:e.y+f[1]},s.x=h.x,s.y=h.y,s.text=t.text;var g=this.get("group").addShape("Text",{zIndex:2,attrs:s});g.name="axis-title",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"))}},o.autoRotateLabels=function(){var t=this.get("labelRenderer"),e=this.get("title");if(t){var n=t.get("group").get("children"),r=this.get("label").offset,a=e?e.offset:48;if(a<0)return;var o,s,u=this.getAxisVector();if(i.snapEqual(u[0],0)&&e&&e.text)(s=this.getMaxLabelWidth(t))>a-r-12&&(o=-1*Math.acos((a-r-12)/s));else if(i.snapEqual(u[1],0)&&n.length>1){var l=Math.abs(this._getAvgLabelLength(t));(s=this.getMaxLabelWidth(t))>l&&(o=Math.asin(1.25*(a-r-12)/s))}if(o){var c=this.get("factor");i.each(n,(function(t){t.rotateAtStart(o),i.snapEqual(u[1],0)&&(c>0?t.attr("textAlign","left"):t.attr("textAlign","right"))}))}}},o.autoHideLabels=function(){var t,e,n=this.get("labelRenderer");if(n){var r=n.get("group").get("children"),a=this.getAxisVector();if(r.length<2)return;if(i.snapEqual(a[0],0)){var o=this.getMaxLabelHeight(n)+8,s=Math.abs(this._getAvgLabelHeightSpace(n));o>s&&(t=o,e=s)}else if(i.snapEqual(a[1],0)&&r.length>1){var u=this.getMaxLabelWidth(n)+8,l=Math.abs(this._getAvgLabelLength(n));u>l&&(t=u,e=l)}if(t&&e){var c=Math.ceil(t/e);i.each(r,(function(t,e){e%c!=0&&t.attr("text","")}))}}},r}(r);t.exports=o},function(t,e,n){var r=n(3),i=n(31),a=r.MatrixUtil,o=r.PathUtil,s=a.vec2,u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"polyline"})},a.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),i=[];i.push(e.x),i.push(e.y),r.each(t,(function(t){i.push(t.x),i.push(t.y)})),i.push(n.x),i.push(n.y);var a=o.catmullRomToBezier(i);return a.unshift(["M",e.x,e.y]),a},a.getTickPoint=function(t,e){return this.get("tickPoints")[e]},a.getTickEnd=function(t,e,n){var r=this.get("tickLine"),i=e||r.length,a=this.getSideVector(i,t,n);return{x:t.x+a[0],y:t.y+a[1]}},a.getSideVector=function(t,e,n){var r;if(0===n){if((r=this.get("start")).x===e.x&&r.y===e.y)return[0,0]}else r=this.get("tickPoints")[n-1];var i=[e.x-r.x,e.y-r.y],a=s.normalize([],i),o=s.vertical([],a,!1);return s.scale([],o,t)},i}(i);t.exports=u},function(t,e,n){t.exports={Guide:n(15),Arc:n(317),DataMarker:n(318),DataRegion:n(319),Html:n(320),Image:n(321),Line:n(322),Region:n(323),Text:n(324)}},function(t,e,n){var r=n(3),i=n(15),a=Math.PI,o=Math.atan;function s(t,e){var n,r=t.x-e.x,i=t.y-e.y;return 0===i?n=r<0?a/2:270*a/180:r>=0&&i>0?n=2*a-o(r/i):r<=0&&i<0?n=a-o(r/i):r>0&&i<0?n=a+o(-r/i):r<0&&i>0&&(n=o(r/-i)),n}var u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},o.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i=this.parsePoint(t,this.get("end"));if(n&&i){var o,u=t.getCenter(),l=Math.sqrt((n.x-u.x)*(n.x-u.x)+(n.y-u.y)*(n.y-u.y)),c=s(n,u),h=s(i,u);if(h<c&&(h+=2*a),r.isNumberEqual(n.x,i.x)&&r.isNumberEqual(n.y,i.y)&&(this.get("start")[0]!==this.get("end")[0]||this.get("start")[1]!==this.get("end")[1]))o=[["M",n.x,n.y],["A",l,l,0,1,1,2*u.x-n.x,2*u.y-n.y],["A",l,l,0,1,1,n.x,n.y]];else{var f=(h-c)%(2*a)>a?1:0;o=[["M",n.x,n.y],["A",l,l,0,f,1,i.x,i.y]]}var p=e.addShape("path",{zIndex:this.get("zIndex"),attrs:r.mix({path:o},this.get("style"))});p.name="guide-arc",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo")),this.set("el",p)}},i}(i);t.exports=u},function(t,e,n){var r=n(3),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},a.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var r=e.addGroup();r.name="guide-data-marker";var i,a,o=this._getElementPosition(n),s=this.get("display");if(s.line){var u=o.line;i=this._drawLine(u,r)}if(s.text&&this.get("content")){var l=o.text;a=this._drawText(l,r)}if(s.point){var c=o.point;this._drawPoint(c,r)}if(this.get("autoAdjust")){var h=r.getBBox(),f=h.minX,p=h.minY,g=h.maxX,d=h.maxY,v=t.start,y=t.end;if(a){f<=v.x&&a.attr("textAlign","start"),g>=y.x&&a.attr("textAlign","end");var x=this.get("direction");if("upward"===x&&p<=y.y||"upward"!==x&&d>=v.y){var m,b;"upward"===x&&p<=y.y?(m="top",b=1):(m="bottom",b=-1),a.attr("textBaseline",m);var _=0;if(this.get("display").line){_=this.get("lineLength");var w=[["M",n.x,n.y],["L",n.x,n.y+_*b]];i.attr("path",w)}var S=n.y+(_+2)*b;a.attr("y",S)}}}this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),this.set("el",r)}},a._getElementPosition=function(t){var e=t.x,n=t.y,r=this.get("display").line?this.get("lineLength"):0,i=this.get("direction");this.get("style").text.textBaseline="upward"===i?"bottom":"top";var a="upward"===i?-1:1;return{point:{x:e,y:n},line:[{x:e,y:n},{x:e,y:r*a+n}],text:{x:e,y:(r+2)*a+n}}},a._drawLine=function(t,e){var n=this.get("style").line,i=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]];return e.addShape("path",{attrs:r.mix({path:i},n)})},a._drawText=function(t,e){var n=this.get("style").text;return e.addShape("text",{attrs:r.mix({text:this.get("content")},n,t)})},a._drawPoint=function(t,e){var n=this.get("style").point;return e.addShape("circle",{attrs:r.mix({},n,t)})},i}(n(15));t.exports=i},function(t,e,n){var r=n(3),i=n(155),a=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=a.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"dataRegion",start:null,end:null,content:"",style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},o.render=function(t,e,n){var i=this.get("lineLength")||0,a=this._getRegionData(t,n);if(a.length){var o=this._getBBox(a),s=[];s.push(["M",a[0].x,o.yMin-i]);for(var u=0,l=a.length;u<l;u++){var c=["L",a[u].x,a[u].y];s.push(c)}s.push(["L",a[a.length-1].x,o.yMin-i]);var h=this.get("style"),f=h.region,p=h.text,g=e.addGroup();g.name="guide-data-region",g.addShape("path",{attrs:r.mix({path:s},f)});var d=this.get("content");d&&g.addShape("Text",{attrs:r.mix({x:(o.xMin+o.xMax)/2,y:o.yMin-i,text:d},p)}),this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),this.set("el",g)}},o._getRegionData=function(t,e){for(var n,a=this.get("start"),o=this.get("end"),s=i.getFirstScale(this.get("xScales")).field,u=i.getFirstScale(this.get("yScales")).field,l=r.isArray(a)?a[0]:a[s],c=r.isArray(o)?o[0]:o[s],h=[],f=0,p=e.length;f<p;f++){var g=e[f];if(g[s]===l&&(n=f),f>=n){var d=this.parsePoint(t,[g[s],g[u]]);d&&h.push(d)}if(g[s]===c)break}return h},o._getBBox=function(t){for(var e=[],n=[],i=0;i<t.length;i++)e.push(t[i].x),n.push(t[i].y);var a=r.arrayUtil.getRange(e),o=r.arrayUtil.getRange(n);return{xMin:a.min,xMax:a.max,yMin:o.min,yMax:o.max}},a}(n(15));t.exports=a},function(t,e,n){var r=n(3),i=r.DomUtil,a=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=a.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},o.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var a=e.get("canvas").get("el").parentNode,o=i.createDom('<div class="g-guide"></div>');a.appendChild(o);var s=this.get("htmlContent")||this.get("html");r.isFunction(s)&&(s=s(this.get("xScales"),this.get("yScales")));var u=i.createDom(s);o.appendChild(u),i.modifyCSS(o,{position:"absolute"}),this._setDomPosition(o,u,n),this.set("el",o)}},o._setDomPosition=function(t,e,n){var r=this.get("alignX"),a=this.get("alignY"),o=i.getOuterWidth(e),s=i.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===r&&"top"===a?u.x-=Math.round(o/2):"middle"===r&&"bottom"===a?(u.x-=Math.round(o/2),u.y-=Math.round(s)):"left"===r&&"bottom"===a?u.y-=Math.round(s):"left"===r&&"middle"===a?u.y-=Math.round(s/2):"left"===r&&"top"===a?(u.x=n.x,u.y=n.y):"right"===r&&"bottom"===a?(u.x-=Math.round(o),u.y-=Math.round(s)):"right"===r&&"middle"===a?(u.x-=Math.round(o),u.y-=Math.round(s/2)):"right"===r&&"top"===a?u.x-=Math.round(o):(u.x-=Math.round(o/2),u.y-=Math.round(s/2));var l=this.get("offsetX");l&&(u.x+=l);var c=this.get("offsetY");c&&(u.y+=c),i.modifyCSS(t,{top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:this.get("zIndex")})},o.clear=function(){var t=this.get("el");t&&t.parentNode&&t.parentNode.removeChild(t)},a}(n(15));t.exports=a},function(t,e,n){var r=n(3),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},a.render=function(t,e){var n=this.parsePoint(t,this.get("start"));if(n){var r={x:n.x,y:n.y};if(r.img=this.get("src"),this.get("end")){var i=this.parsePoint(t,this.get("end"));if(!i)return;r.width=i.x-n.x,r.height=i.y-n.y}else r.width=this.get("width")||32,r.height=this.get("height")||32;this.get("offsetX")&&(r.x+=this.get("offsetX")),this.get("offsetY")&&(r.y+=this.get("offsetY"));var a=e.addShape("Image",{zIndex:1,attrs:r});a.name="guide-image",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)}},i}(n(15));t.exports=i},function(t,e,n){var r=n(3),i=n(15),a=r.MatrixUtil.vec2,o=n(14).FONT_FAMILY,s=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:o},content:null}})},s.render=function(t,e){var n=this.parsePoint(t,this.get("start")),r=this.parsePoint(t,this.get("end"));if(n&&r){var i=e.addGroup({viewId:e.get("viewId")});this._drawLines(n,r,i);var a=this.get("text");a&&a.content&&this._drawText(n,r,i),this.set("el",i)}},s._drawLines=function(t,e,n){var i=[["M",t.x,t.y],["L",e.x,e.y]],a=n.addShape("Path",{attrs:r.mix({path:i},this.get("lineStyle"))});a.name="guide-line",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},s._drawText=function(t,e,n){var i,o=this.get("text"),s=o.position,u=o.style||{};((i="start"===s?0:"center"===s?.5:r.isString(s)&&-1!==s.indexOf("%")?parseInt(s,10)/100:r.isNumber(s)?s:1)>1||i<0)&&(i=1);var l={x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i};if(o.offsetX&&(l.x+=o.offsetX),o.offsetY&&(l.y+=o.offsetY),l.text=o.content,l=r.mix({},l,u),o.autoRotate&&r.isNil(u.rotate)){var c=a.angleTo([e.x-t.x,e.y-t.y],[1,0],1);l.rotate=c}else r.isNil(u.rotate)||(l.rotate=u.rotate*Math.PI/180);var h=n.addShape("Text",{attrs:l});h.name="guide-line-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"))},i}(i);t.exports=s},function(t,e,n){var r=n(3),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},a.render=function(t,e){var n=this.get("style"),i=this._getPath(t);if(i.length){var a=e.addShape("path",{zIndex:this.get("zIndex"),attrs:r.mix({path:i},n)});a.name="guide-region",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)}},a._getPath=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end"));return e&&n?[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]]:[]},i}(n(15));t.exports=i},function(t,e,n){var r=n(3),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},a.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=r.mix({},this.get("style")),a=this.get("offsetX"),o=this.get("offsetY");a&&(n.x+=a),o&&(n.y+=o),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:this.get("zIndex"),attrs:r.mix({text:this.get("content")},i,n)});s.name="guide-text",this.get("appendInfo")&&s.setSilent("appendInfo",this.get("appendInfo")),this.set("el",s)}},i}(n(15));t.exports=i},function(t,e,n){var r=n(153);t.exports=r},function(t,e,n){t.exports={Category:n(156),CatHtml:n(158),CatPageHtml:n(327),Color:n(328),Size:n(330),CircleSize:n(331)}},function(t,e,n){var r=n(3),i=n(158),a=n(14).FONT_FAMILY,o=r.DomUtil;function s(t,e){return t.getElementsByClassName(e)[0]}var u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=i.prototype;return u.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"category-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:a,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'<div class="g2-slip" ><svg viewBox="64 64 896 896" class="g2-caret-up" data-icon="left" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg><p class="cur-pagenum" style = "display:inline-block;vertical-align:middle;">1</p><p class="next-pagenum" style = "display:inline-block;vertical-align:middle;"">/2</p><svg viewBox="64 64 896 896" class="g2-caret-down" data-icon="right" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></div>',slipWidth:65,legendOverflow:"unset"})},u.render=function(){t.prototype._renderHTML.call(this),this._renderFlipPage()},u._renderFlipPage=function(){var t=this.get("legendWrapper"),e=s(t,"g2-legend-list"),n=this.get("position"),i=this.get("layout"),a="right"===n||"left"===n||"vertical"===i,u=a?"block":"inline-block",l=t.offsetHeight;if(t.scrollHeight>l){var c=this.get("slipTpl"),h=o.createDom(c),f=s(h,"g2-caret-up"),p=s(h,"g2-caret-down");o.modifyCSS(f,this.get("caretStyle")),o.modifyCSS(f,{fill:"rgba(0,0,0,0.25)"}),o.modifyCSS(p,this.get("caretStyle"));var g=s(h,"cur-pagenum"),d=s(h,"next-pagenum"),v=this.get("pageNumStyle");if(o.modifyCSS(g,r.mix({},v,{paddingLeft:"10px"})),o.modifyCSS(d,r.mix({},v,{opacity:.3,paddingRight:"10px"})),o.modifyCSS(h,r.mix({},this.get("slipDomStyle"),a?{top:l+"px"}:{right:0,top:"50%",transform:"translate(0, -50%)"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(h),!a){var y=Math.max(t.offsetWidth-10-h.offsetWidth,0);o.modifyCSS(e,{maxWidth:y+"px"})}for(var x=e.childNodes,m=0,b=1,_=[],w=0;w<x.length;w++)x[w].style.display=u,(m=x[w].offsetTop+x[w].offsetHeight)>l&&(b++,_.forEach((function(t){t.style.display="none"})),_=[]),_.push(x[w]);d.innerText="/"+b,x.forEach((function(t){t.style.display=u,(m=t.offsetTop+t.offsetHeight)>l&&(t.style.display="none")})),f.addEventListener("click",(function(){if(x[0].style.display!==u){var t=-1;x.forEach((function(e,n){e.style.display===u&&(t=-1===t?n:t,e.style.display="none")}));for(var e=t-1;e>=0&&(x[e].style.display=u,m=x[t-1].offsetTop+x[t-1].offsetHeight,x[e].style.display="none",m<=l);e--)x[e].style.display=u;var n=Number.parseInt(g.innerText,10)-1;f.style.fill=1===n?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",p.style.fill="rgba(0,0,0,0.65)",g.innerText=n}})),p.addEventListener("click",(function(){if(x[x.length-1].style.display!==u){var t=-1;x.forEach((function(e,n){e.style.display===u&&(t=n,e.style.display="none")}));for(var e=t+1;e<x.length&&(x[e].style.display=u,m=x[e].offsetTop+x[e].offsetHeight,x[e].style.display="none",m<=l);e++)x[e].style.display=u;var n=Number.parseInt(g.innerText,10)+1;p.style.fill=n===b?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",f.style.fill="rgba(0,0,0,0.65)",g.innerText=n}})),this.set("slipDom",h)}},u.destroy=function(){var e=this.get("slipDom");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},i}(i);t.exports=u},function(t,e,n){var r=n(73).ColorUtil,i=n(3),a=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=a.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"color-legend",layout:"vertical",triggerAttr:{fill:"#fff",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc",radius:3},isSegment:!1})},o._setPercentage=function(){var t=this.get("items");if(!t[0].percentage){var e=t[0].value,n=t[t.length-1].value;i.each(t,(function(t){t.percentage=(t.value-e)/(n-e)}))}},o._renderSliderShape=function(){this._setPercentage();var t,e=this.get("slider").get("backgroundElement"),n=this.get("width"),a=this.get("height"),o=this.get("layout"),s=this.get("items"),u="";return"vertical"===o?(u+="l (90) ",i.each(s,(function(e){t=r.toRGB(e.color),u+=1-e.percentage+":"+t+" "}))):(u+="l (0) ",i.each(s,(function(e){t=r.toRGB(e.color),u+=e.percentage+":"+t+" "}))),this._addMiddleBar(e,"Rect",{x:0,y:0,width:n,height:a,fill:u,strokeOpacity:0})},o._renderUnslidable=function(){this._setPercentage();var t=this.get("titleShape"),e=this.get("titleGap");e=t?t.getBBox().height+e:e;var n,a=this.get("width"),o=this.get("height"),s=this.get("layout"),u=this.get("items"),l="",c=[],h=this.get("group").addGroup(),f=u.length;if("vertical"===s){l+="l (90) ";for(var p=0;p<f;p+=1){if(0!==p&&p!==f-1&&(c.push(["M",0,o-u[p].percentage*o]),c.push(["L",a,o-u[p].percentage*o])),n=r.toRGB(u[p].color),l+=1-u[p].percentage+":"+n+" ",this.get("isSegment")&&p>0){var g=r.toRGB(u[p-1].color);l+=1-u[p].percentage+":"+g+" "}h.addShape("text",{attrs:i.mix({},{x:a+this.get("textOffset")/2,y:o-u[p].percentage*o,text:this._formatItemValue(u[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{l+="l (0) ";for(var d=0;d<f;d+=1){if(0!==d&&d!==f-1&&(c.push(["M",u[d].percentage*a,0]),c.push(["L",u[d].percentage*a,o])),n=r.toRGB(u[d].color),this.get("isSegment")&&d>0){var v=r.toRGB(u[d-1].color);l+=u[d].percentage+":"+v+" "}l+=u[d].percentage+":"+n+" ",h.addShape("text",{attrs:i.mix({},{x:u[d].percentage*a,y:o+5+this.get("textOffset"),text:this._formatItemValue(u[d].value)+""},this.get("textStyle"))})}}h.addShape("rect",{attrs:{x:0,y:0,width:a,height:o,fill:l,strokeOpacity:0}}),h.addShape("path",{attrs:i.mix({path:c},this.get("lineStyle"))}),h.move(0,e)},a}(n(68));t.exports=a},function(t,e,n){var r=n(3),i=r.DomUtil,a=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=a.prototype;return o.getDefaultCfg=function(){return{range:null,middleAttr:{fill:"#fff",fillOpacity:0},backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},o._beforeRenderUI=function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor","move"),n.attr("cursor",a),r.attr("cursor",a),this.sort()},o._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},o._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,a),s.translate(r*i,a)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-r)*a))},o._renderHorizontal=function(){this._transform("horizontal")},o._renderVertical=function(){this._transform("vertical")},o._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},o._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},o._getRange=function(t,e){var n=t+e;return n=(n=n>100?100:n)<0?0:n},o._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l="vertical"===this.get("layout")?-1:1,c=e["page"+t],h=(c-o)/n*100*l;a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],a[0]=this._getRange(h,a[0]),a[1]=a[0]+i,a[1]>100&&(a[1]=100,a[0]=a[1]-i)),this.emit("sliderchange",{range:a}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},o._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},o._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=i.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},o._onCanvasMouseMove=function(t){this._mouseOutArea(t)||("horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t))},o._onCanvasMouseUp=function(){this._removeDocumentEvents()},o._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},o._mouseOutArea=function(t){var e=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),r=n.getBBox(),i=n.attr("matrix")[6],a=n.attr("matrix")[7],o=i+r.width,s=a+r.height,u=t.clientX-e.x,l=t.clientY-e.y;return u<i||u>o||l<a||l>s},a}(r.Group);t.exports=a},function(t,e,n){var r=n(3),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"size-legend",width:100,height:200,_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},a._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n=this.get("width"),i=this.get("height"),a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,i],[n-4,i]]:[[0,a+i/2],[0,a+i/2-4],[n,a-i/2],[n,a+i/2]];return this._addMiddleBar(t,"Polygon",r.mix({points:s},o))},a._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),i=this.get("frontMiddleBarStyle"),a="vertical"===t?[[0,0],[e,0],[e,n],[e-4,n]]:[[0,n],[0,n-4],[e,0],[e,n]];this.get("group").addGroup().addShape("Polygon",{attrs:r.mix({points:a},i)});var o=this._formatItemValue(this.get("firstItem").value),s=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(e+10,n-3,o),this._addText(e+10,3,s)):(this._addText(0,n,o),this._addText(e,n,s))},a._addText=function(t,e,n){var i=this.get("group").addGroup(),a=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:r.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},a)}):(e+=s+this.get("textOffset")-20,o||(e+=10),i.addShape("text",{attrs:r.mix({x:t,y:e,text:0===n?"0":n},a)}))},i}(n(68));t.exports=i},function(t,e,n){var r=n(3),i=n(68),a=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"size-circle-legend",width:100,height:200,_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},a._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n="vertical"===e?2:this.get("width"),i="vertical"===e?this.get("height"):2,a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,i],[0,i]]:[[0,a+i],[0,a-i],[5+n-4,a-i],[5+n-4,a+i]];return this._addMiddleBar(t,"Polygon",r.mix({points:s},o))},a._addHorizontalTrigger=function(t,e,n,i){var a=this.get("slider").get(t+"HandleElement"),o=-this.get("height")/2,s=a.addShape("circle",{attrs:r.mix({x:0,y:o,r:i},e)}),u=a.addShape("text",{attrs:r.mix(n,{x:0,y:o+i+10,textAlign:"center",textBaseline:"middle"})}),l="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",l),u.attr("cursor",l),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},a._addVerticalTrigger=function(t,e,n,i){var a=this.get("slider").get(t+"HandleElement"),o=a.addShape("circle",{attrs:r.mix({x:0,y:0,r:i},e)}),s=a.addShape("text",{attrs:r.mix(n,{x:i+10,y:0,textAlign:"start",textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},a._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),a=this.get("triggerAttr"),o=r.mix({},a),s=r.mix({},a),u=r.mix({text:this._formatItemValue(t.value)+""},i),l=r.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u,5),this._addVerticalTrigger("max",s,l,16)):(this._addHorizontalTrigger("min",o,u,5),this._addHorizontalTrigger("max",s,l,16))},a._bindEvents=function(){var t=this;this.get("slidable")&&this.get("slider").on("sliderchange",(function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r),s=5+n[0]/100*11,u=5+n[1]/100*11;t._updateElement(a,o,s,u);var l=new Event("itemfilter",e,!0,!0);l.range=[a,o],t.emit("itemfilter",l)}))},a._updateElement=function(e,n,r,i){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),u=this.get("maxButtonElement");if(s.attr("r",r),u.attr("r",i),"vertical"===this.get("layout"))a.attr("x",r+10),o.attr("x",i+10);else{var l=-this.get("height")/2;a.attr("y",l+r+10),o.attr("y",l+i+10)}},a._addCircle=function(t,e,n,i,a){var o=this.get("group").addGroup(),s=this.get("_unslidableCircleStyle"),u=this.get("textStyle"),l=this.get("titleShape"),c=this.get("titleGap");l&&(c+=l.getBBox().height),o.addShape("circle",{attrs:r.mix({x:t,y:e+c,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:r.mix({x:a+20+this.get("textOffset"),y:e+c,text:0===i?"0":i},u)}):o.addShape("text",{attrs:r.mix({x:t,y:e+c+a+13+this.get("textOffset"),text:0===i?"0":i},u)})},a._renderUnslidable=function(){var t=this.get("firstItem").value,e=this.get("lastItem").value;if(t>e){var n=e;e=t,t=n}var r=this._formatItemValue(t),i=this._formatItemValue(e),a=t<5?5:t,o=e>16?16:e;a>o&&(a=5,o=16),"vertical"===this.get("layout")?(this._addCircle(o,o,a,r,2*o),this._addCircle(o,2*o+16+a,o,i,2*o)):(this._addCircle(o,o,a,r,2*o),this._addCircle(2*o+16+a,o,o,i,2*o))},a.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},i}(i);t.exports=a},function(t,e,n){var r=n(69);r.Html=n(333),r.Canvas=n(162),r.Mini=n(335),t.exports=r},function(t,e,n){function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(20),o=n(69),s=n(3),u=s.DomUtil,l=n(334),c=n(159),h=n(160),f=n(161),p=a.Marker;function g(t,e){return t.getElementsByClassName(e)[0]}var d=function(t){var e,n;n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;function o(e){var n;n=t.call(this,e)||this,s.assign(i(n),h),s.assign(i(n),f);var r=l;n.style=function(t,e){return Object.keys(t).forEach((function(n){e[n]&&(t[n]=s.mix(t[n],e[n]))})),t}(r,e),n._init_(),n.get("items")&&n.render();var a=n.get("crosshairs");if(a){var o="rect"===a.type?n.get("backPlot"):n.get("frontPlot"),u=new c(s.mix({plot:o,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));u.hide(),n.set("crosshairGroup",u)}return n}return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.mix({},e,{containerTpl:' <div class="g2-tooltip"> <div class="g2-tooltip-title"></div><ul class="g2-tooltip-list"></ul></div>',itemTpl:'<li data-index={index}>\n <svg viewBox="0 0 5 5" class="g2-tooltip-marker"></svg>\n {name}<span class="g2-tooltip-value">{value}</span></li>',htmlContent:null,follow:!0,enterable:!1})},a._init_=function(){var t,e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(e)){var r=e.replace("#","");t=document.getElementById(r)}else t=u.createDom(e),u.modifyCSS(t,this.style["g2-tooltip"]),n.appendChild(t),n.style.position="relative";this.set("container",t)}},a.render=function(){if(this.clear(),this.get("htmlContent")){var t=this.get("canvas").get("el").parentNode,e=this._getHtmlContent();t.appendChild(e),u.modifyCSS(e,this.style["g2-tooltip"]),this.set("container",e)}else this._renderTpl()},a._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),r=t.get("container"),i=g(r,"g2-tooltip-title"),a=g(r,"g2-tooltip-list"),o=t.get("items");i&&e&&(u.modifyCSS(i,t.style["g2-tooltip-title"]),i.innerHTML=n),a&&(u.modifyCSS(a,t.style["g2-tooltip-list"]),s.each(o,(function(e,n){a.appendChild(t._addItem(e,n))})))},a.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=g(t,"g2-tooltip-title"),n=g(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")}},a.show=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="visible",e.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var r=this.get("markerGroup");r&&r.show(),t.prototype.show.call(this),this.get("canvas").draw()}},a.hide=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="hidden",e.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var r=this.get("markerGroup");r&&r.hide(),t.prototype.hide.call(this),this.get("canvas").draw()}},a.destroy=function(){var e=this.get("container"),n=this.get("containerTpl");e&&!/^\#/.test(n)&&e.parentNode.removeChild(e);var r=this.get("crosshairGroup");r&&r.destroy();var i=this.get("markerGroup");i&&i.remove(),t.prototype.destroy.call(this)},a._getMarkerSvg=function(t){var e,n=t.marker||{},r=n.activeSymbol||n.symbol;return s.isFunction(r)?e=r:s.isString(r)&&(e=p.Symbols[r]),'<path d="'+(e=s.isFunction(e)?e:p.Symbols.circle)(2.5,2.5,2.5).reduce((function(t,e){return""+t+e[0]+e.slice(1).join(",")}),"")+'" fill="'+(n.fill||"none")+'" stroke="'+(n.stroke||"none")+'" />'},a._addItem=function(t,e){var n=this.get("itemTpl"),i=s.substitute(n,s.mix({index:e},t)),a=u.createDom(i);u.modifyCSS(a,this.style["g2-tooltip-list-item"]);var o=g(a,"g2-tooltip-marker");if(o){u.modifyCSS(o,r({},this.style["g2-tooltip-marker"],{borderRadius:"unset"}));var l=this._getMarkerSvg(t);o.innerHTML=l}var c=g(a,"g2-tooltip-value");return c&&u.modifyCSS(c,this.style["g2-tooltip-value"]),a},a._getHtmlContent=function(){var t=this.get("htmlContent")(this.get("titleContent"),this.get("items"));return u.createDom(t)},a.setPosition=function(e,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),l=u.getWidth(o),c=u.getHeight(o),h=a.clientWidth,f=a.clientHeight,p=e,g=n,d=this.get("prePosition")||{x:0,y:0};if(h||(a.style.display="block",h=a.clientWidth,f=a.clientHeight,a.style.display="none"),this.get("enterable")?(i=[e,n-=a.clientHeight/2],d&&e-d.x>0?e-=a.clientWidth+1:e+=1):this.get("position")?(e=(i=this._calcTooltipPosition(e,n,this.get("position"),h,f,r))[0],n=i[1]):(e=(i=this._constraintPositionInBoundary(e,n,h,f,l,c))[0],n=i[1]),this.get("inPlot")){var v=this.get("plotRange");e=(i=this._constraintPositionInPlot(e,n,h,f,v,this.get("enterable")))[0],n=i[1]}var y=this.get("markerItems");s.isEmpty(y)||(p=y[0].x,g=y[0].y),this.set("prePosition",i),this.get("follow")&&(a.style.left=e+"px",a.style.top=n+"px");var x=this.get("crosshairGroup");if(x){var m=this.get("items");x.setPosition(p,g,m)}t.prototype.setPosition.call(this,e,n)},o}(o);t.exports=d},function(t,e,n){var r,i=n(14).FONT_FAMILY,a=((r={crosshairs:!1,offset:15})["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r);t.exports=a},function(t,e,n){var r=n(3),i=n(162),a=n(14).FONT_FAMILY,o=r.DomUtil,s=r.MatrixUtil,u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=i.prototype;return u.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:a,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},u._init_=function(){var t=this.get("padding"),e=this.get("frontPlot").addGroup();this.set("container",e);var n=e.addShape("rect",{attrs:r.mix({},this.get("boardStyle"))});this.set("board",n);var i=e.addShape("path",{attrs:{fill:this.get("boardStyle").fill}});this.set("triangleShape",i);var a=e.addGroup();a.move(t.left,t.top);var o=a.addShape("text",{attrs:r.mix({},this.get("valueStyle"))});this.set("valueShape",o)},u.render=function(){this.clear();var t=this.get("board"),e=this.get("valueShape"),n=this.get("padding"),r=this.get("items")[0];e&&e.attr("text",r.value);var i=e?e.getBBox():{width:80,height:30},a=n.left+i.width+n.right,o=n.top+i.height+n.bottom;t.attr("width",a),t.attr("height",o),this._centerTriangleShape()},u.clear=function(){this.get("valueShape").attr("text","")},u.setPosition=function(t,e,n){var r=this.get("container"),i=this.get("plotRange"),a=r.getBBox(),u=a.width,l=a.height;if(t-=u/2,!n||"point"!==n.name&&"interval"!==n.name||(e=n.getBBox().y),e-=l,this.get("inPlot"))t<i.tl.x?(t=i.tl.x,this._leftTriangleShape()):t+u/2>i.tr.x?(t=i.tr.x-u,this._rightTriangleShape()):this._centerTriangleShape(),e<i.tl.y?e=i.tl.y:e+l>i.bl.y&&(e=i.bl.y-l);else{var c=this.get("canvas").get("el"),h=o.getWidth(c),f=o.getHeight(c);t<0?(t=0,this._leftTriangleShape()):t+u/2>h?(t=h-u,this._rightTriangleShape()):this._centerTriangleShape(),e<0?e=0:e+l>f&&(e=f-l)}var p=s.transform([1,0,0,0,1,0,0,0,1],[["t",t,e]]);r.stopAnimate(),r.animate({matrix:p},this.get("animationDuration"))},u._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height,o=[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]];t.attr("path",o),t.move(i/2-e/2,a-1)},u._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox().height,i=[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]];t.attr("path",i),t.move(0,r-3)},u._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height,o=[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]];t.attr("path",o),t.move(i-e-1,a-4)},i}(i);t.exports=u},function(t,e,n){var r=n(0).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var i=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);for(var u,l,c,h=function(t,e,n,i){var a,o,s,u,l=[],c=!!i;if(c){s=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,f=t.length;h<f;h++){var p=t[h];s=r.min([],s,p),u=r.max([],u,p)}s=r.min([],s,i[0]),u=r.max([],u,i[1])}for(var g=0,d=t.length;g<d;g++){var v=t[g];if(n)a=t[g?g-1:d-1],o=t[(g+1)%d];else{if(0===g||g===d-1){l.push(v);continue}a=t[g-1],o=t[g+1]}var y=[];y=r.sub(y,o,a),y=r.scale(y,y,e);var x=r.distance(v,a),m=r.distance(v,o),b=x+m;0!==b&&(x/=b,m/=b);var _=r.scale([],y,-x),w=r.scale([],y,m),S=r.add([],v,_),M=r.add([],v,w);c&&(S=r.max([],S,s),S=r.min([],S,u),M=r.max([],M,s),M=r.min([],M,u)),l.push(S),l.push(M)}return n&&l.push(l.shift()),l}(a,.4,i,n),f=a.length,p=[],g=0;g<f-1;g++)u=h[2*g],l=h[2*g+1],c=a[g+1],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return i&&(u=h[f],l=h[f+1],c=a[0],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),p}}},function(t,e,n){var r=n(0),i=n(163),a=n(23),o=n(7);function s(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}var u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=i.prototype;return u.getDefaultCfg=function(){return{label:o.thetaLabels}},u.getDefaultOffset=function(t){return t.offset||0},u.adjustItems=function(e){var n=e[0]?e[0].offset:0;return n>0&&(e=this._distribute(e,n)),t.prototype.adjustItems.call(this,e)},u._distribute=function(t,e){var n=this.get("coord"),r=n.getRadius(),i=this.get("label").labelHeight,a=n.getCenter(),o=2*(r+e)+2*i,s={start:n.start,end:n.end},u=this.get("geom");if(u){var l=u.get("view");s=l.getViewRegion()}var c=[[],[]];return t.forEach((function(t){t&&("right"===t.textAlign?c[0].push(t):c[1].push(t))})),c.forEach((function(t,e){var n=parseInt(o/i,10);t.length>n&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(n,t.length-n)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i){var a,o=!0,s=n.start,u=n.end,l=Math.min(s.y,u.y),c=Math.abs(s.y-u.y),h=0,f=Number.MIN_VALUE,p=t.map((function(t){return t.y>h&&(h=t.y),t.y<f&&(f=t.y),{size:e,targets:[t.y-l]}}));for(f-=l,h-l>c&&(c=h-l);o;)for(p.forEach((function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),c-t.size)})),o=!1,a=p.length;a--;)if(a>0){var g=p[a-1],d=p[a];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),g.pos+g.size>c&&(g.pos=c-g.size),p.splice(a,1),o=!0)}a=0,p.forEach((function(n){var r=l+e/2;n.targets.forEach((function(){t[a].y=n.pos+r,r+=e,a++}))})),t.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var a=Math.sqrt(e-n);t.x=i?r.x+a:r.x-a}}))}(t,i,s,a,e)})),c[0].concat(c[1])},u.lineToLabel=function(t){var e=this.get("coord"),n=e.getRadius(),r=t.offset,i=t.orignAngle||t.angle,a=e.getCenter(),o=s(a,i,n+2.5),u=s(a,i,n+r/2);t.labelLine||(t.labelLine=this.get("label").labelLine||{}),t.labelLine.path=["M"+o.x,o.y+" Q"+u.x,u.y+" "+t.x,t.y].join(",")},u.getLabelRotate=function(t,e){var n;return e<0&&((n=180*t/Math.PI)>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},u.getLabelAlign=function(t){var e,n=this.get("coord").getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",this.getDefaultOffset(t)<=0&&(e="right"===e?"left":"right"),e},u.getArcPoint=function(t){return t},u.getPointAngle=function(t){var e=this.get("coord"),n={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var i,o={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(o);var s=a.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)i=s;else{var u=a.getPointAngle(e,o);s>=u&&(u+=2*Math.PI),i=s+(u-s)/2}return i},u.getCirclePoint=function(t,e){var n=this.get("coord"),r=n.getCenter(),i=n.getRadius()+e,a=s(r,t,i);return a.angle=t,a.r=i,a},i}(i);t.exports=u},function(t,e,n){var r=n(0),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.setLabelPosition=function(t,e,n,i){r.isFunction(i)&&(i=i(t.text,e._origin,n));var a=this.get("coord"),o=a.isTransposed,s=a.convertPoint(e.points[0]),u=a.convertPoint(e.points[2]),l=(s.x-u.x)/2*(o?-1:1),c=(s.y-u.y)/2*(o?-1:1);switch(i){case"right":o?(t.x-=l,t.y+=c,t.textAlign=t.textAlign||"center"):(t.x-=l,t.y+=c,t.textAlign=t.textAlign||"left");break;case"left":o?(t.x-=l,t.y-=c,t.textAlign=t.textAlign||"center"):(t.x+=l,t.y+=c,t.textAlign=t.textAlign||"right");break;case"bottom":o?(t.x-=2*l,t.textAlign=t.textAlign||"left"):(t.y+=2*c,t.textAlign=t.textAlign||"center");break;case"middle":o?t.x-=l:t.y+=c,t.textAlign=t.textAlign||"center";break;case"top":t.textAlign=o?t.textAlign||"left":t.textAlign||"center"}},i}(n(66));t.exports=i},function(t,e,n){var r=n(0),i=n(7).defaultColor;function a(t){return t.alias||t.field}var o={_getIntervalSize:function(t){var e=null,n=this.get("type"),i=this.get("coord");if(i.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=i.isTransposed?"y":"x";r.isArray(t[a])&&(e=e<Math.abs(t[a][1]-t[a][0])?null:e)}return e},_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:r.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(t).x;return this.isInCircle()&&i>(1+r.rangeMax())/2&&(i=r.rangeMin()),e=r.invert(i),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,a=this.get("coord").invert(t),o=e.invert(a.x),s=n.invert(a.y),u={};return u[r]=o,u[i]=s,u},_getScale:function(t){var e=this.get("scales"),n=null;return r.each(e,(function(e){if(e.field===t)return n=e,!1})),n},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();r.each(e,(function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1}));var n=this.getXScale(),i=this.getYScale();return!t&&i&&"..y"===i.field?n:t||i||n},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e,n=this.getAttr("position").getFields();return r.each(n,(function(t){if(!t.includes(".."))return e=t,!1})),this._getScale(e)},_filterValue:function(t,e){var n=this.get("coord"),i=this.getYScale(),a=i.field,o=n.invert(e).y;o=i.invert(o);var s=t[t.length-1];return r.each(t,(function(t){var e=t._origin;if(e[a][0]<=o&&e[a][1]>=o)return s=t,!1})),s},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,i=e.translate(n[0]),a=i;r.each(n,(function(t){(t=e.translate(t))<i&&(i=t),t>a&&(a=t)}));var o=n.length;t=(a-i)/(o-1)}this.set("xDistance",t)}return t},findPoint:function(t,e){var n=this,i=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,u=o.field,l=null;if(r.indexOf(["heatmap","point"],i)>-1){var c=n.get("coord").invert(t),h=a.invert(c.x),f=o.invert(c.y),p=1/0;return r.each(e,(function(t){var e=Math.pow(t._origin[s]-h,2)+Math.pow(t._origin[u]-f,2);e<p&&(p=e,l=t)})),l}var g=e[0],d=e[e.length-1];if(!g)return l;var v=n._getScaleValueByPoint(t),y=g._origin[s],x=g._origin[u],m=d._origin[s],b=o.isLinear&&r.isArray(x);if(r.isArray(y))r.each(e,(function(t){var e=t._origin;if(a.translate(e[s][0])<=v&&a.translate(e[s][1])>=v){if(!b)return l=t,!1;r.isArray(l)||(l=[]),l.push(t)}})),r.isArray(l)&&(l=this._filterValue(l,t));else{var _;if(a.isLinear||"timeCat"===a.type){if((v>a.translate(m)||v<a.translate(y))&&(v>a.max||v<a.min))return null;for(var w,S=0,M=e.length-1;S<=M;){w=Math.floor((S+M)/2);var C=e[w]._origin[s];if(n._snapEqual(C,v,a))return e[w];a.translate(C)<=a.translate(v)?(S=w+1,d=e[w],_=e[w+1]):(0===M&&(d=e[0]),M=w-1)}}else r.each(e,(function(t,i){var o=t._origin;if(n._snapEqual(o[s],v,a)){if(!b)return l=t,!1;r.isArray(l)||(l=[]),l.push(t)}else a.translate(o[s])<=v&&(d=t,_=e[i+1])})),r.isArray(l)&&(l=this._filterValue(l,t));d&&_&&Math.abs(a.translate(d._origin[s])-v)>Math.abs(a.translate(_._origin[s])-v)&&(d=_)}var A=n.getXDistance();return!l&&Math.abs(a.translate(d._origin[s])-v)<=A/2&&(l=d),l},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r){var i=t[r.field];n=r.getText(i)}else if("heatmap"===this.get("type")){var a=this.getXScale(),o=this.getYScale();n="( "+a.getText(t[a.field])+", "+o.getText(t[o.field])+" )"}return n},getTipValue:function(t,e){var n,i=e.field,a=t.key;if(n=t[i],r.isArray(n)){var o=[];r.each(n,(function(t){o.push(e.getText(t))})),n=o.join("-")}else n=e.getText(n,a);return n},getTipName:function(t){var e,n,i=this._getGroupScales();if(i.length&&r.each(i,(function(t){return n=t,!1})),n){var o=n.field;e=n.getText(t[o])}else e=a(this._getTipValueScale());return e},getTipItems:function(t,e){var n,o,s=this,u=t._origin,l=s.getTipTitle(u,e),c=s.get("tooltipCfg"),h=[];function f(e,n,a){if(!r.isNil(n)&&""!==n){var o={title:l,point:t,name:e||l,value:n,color:t.color||i,marker:!0};o.size=s._getIntervalSize(t),h.push(r.mix({},o,a))}}if(c){var p=c.fields,g=c.cfg,d=[];if(r.each(p,(function(t){d.push(u[t])})),g){r.isFunction(g)&&(g=g.apply(null,d));var v=r.mix({},{point:t,title:l,color:t.color||i,marker:!0},g);v.size=s._getIntervalSize(t),h.push(v)}else r.each(p,(function(t){if(!r.isNil(u[t])){var e=s._getScale(t);n=a(e),o=e.getText(u[t]),f(n,o)}}))}else{var y=s._getTipValueScale();r.isNil(u[y.field])||(o=s.getTipValue(u,y),f(n=s.getTipName(u),o))}return h},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),i=this.get("view");if(t=i.get("parent")?i.get("parent").get("options"):i.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!r.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&r.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}};t.exports=o},function(t,e,n){var r=n(0),i=n(164);function a(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return r.each(e,(function(e,i){if(!function(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}(e,t[i]))return n=!0,!1})),n}function o(t,e){var n={};return r.each(t,(function(t,i){var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a})),n}var s={_isAllowActive:function(){var t=this.get("allowActive");if(!r.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",r.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",r.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",r.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",r.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),a=n.shape||this.getDefaultValue("shape");r.isArray(a)&&(a=a[0]);var s=this.get("shapeFactory"),u=r.mix({},t.attr(),{origin:n}),l=s.getActiveCfg(a,u);e.style&&r.mix(l,e.style);var c=o(l,t);t.setSilent("_originActiveAttrs",c),e.animate?t.animate(l,300):t.attr(l),i.toFront(t)},setShapesActived:function(t){var e=this;r.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(a(n,t)){var i=e.get("view").get("canvas"),o=e.get("activedOptions");o&&o.highlight?(r.each(t,(function(t){t.get("animating")&&t.stopAnimate()})),e.highlightShapes(t)):(n&&e.clearActivedShapes(),r.each(t,(function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&e._setActiveShape(t)}))),e.set("activeShapes",t),i.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var a=this.get("activeShapes");if(r.each(a,(function(t){var e=t.get("_originActiveAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),i.resetZIndex(t),t.setSilent("_originActiveAttrs",null)})),this.get("preHighlightShapes")){var o=t.get("children");r.each(o,(function(t){var e=t.get("_originActiveAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),i.resetZIndex(t),t.setSilent("_originActiveAttrs",null))}))}this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=this.get("shapeContainer"),n=[];if(e){var i=this.getXScale().field,a=this.getShapes(),o=this._getOriginByPoint(t);r.each(a,(function(t){var e=t.get("origin");t.get("visible")&&e&&e._origin[i]===o[i]&&n.push(t)}))}return n},getSingleShapeByPoint:function(t){var e,n=this.get("shapeContainer"),r=n.get("canvas").get("pixelRatio");if(n&&(e=n.getShape(t.x*r,t.y*r)),e&&e.get("origin"))return e},highlightShapes:function(t,e){r.isArray(t)||(t=[t]);var n=this.get("activeShapes");if(a(n,t)){n&&this.clearActivedShapes();var s=this.getShapes(),u=this.get("activedOptions"),l=u&&u.animate,c=u&&u.style;r.each(s,(function(n){var a={};n.stopAnimate(),-1!==r.indexOf(t,n)?(r.mix(a,c,e),i.toFront(n)):(r.mix(a,{fillOpacity:.3,opacity:.3}),i.resetZIndex(n));var s=o(a,n);n.setSilent("_originActiveAttrs",s),l?n.animate(a,300):n.attr(a)})),this.set("preHighlightShapes",t),this.set("activeShapes",t)}}};t.exports=s},function(t,e,n){var r=n(0),i=n(164);function a(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}var o={_isAllowSelect:function(){var t=this.get("allowSelect");if(!r.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),i=n&&n.type;return"interval"===e&&"theta"===i},_onClick:function(t){if(this._isAllowSelect()){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",r.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",r.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),a=this.get("selectedOptions")||{},o=!1!==a.animate,s=n.get("canvas");t.set("selected",e);var u=t.get("origin");if(e){var l=u.shape||this.getDefaultValue("shape");r.isArray(l)&&(l=l[0]);var c=this.get("shapeFactory"),h=r.mix({geom:this,point:u},a),f=c.getSelectedCfg(l,h);r.mix(f,h.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",function(t,e){var n={};return r.each(t,(function(t,i){"transform"===i&&(i="matrix");var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a})),n}(f,t))),a.toFront&&i.toFront(t),o?t.animate(f,300):(t.attr(f),s.draw())}else{var p=t.get("_originAttrs");a.toFront&&i.resetZIndex(t),t.set("_originAttrs",null),o?t.animate(p,300):(t.attr(p),s.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},i=!1!==n.cancelable;if("multiple"===n.mode)-1===r.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):i&&(r.Array.remove(e,t),this._setShapeStatus(t,!1));else{var o=e[0];i&&(t=a(o,t)?null:t),a(o,t)||(o&&this._setShapeStatus(o,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();r.each(n,(function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)}))}},setSelected:function(t){var e=this,n=e.getShapes();return r.each(n,(function(n){var r=n.get("origin");r&&r._origin===t&&e.setShapeSelected(n)})),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return r.each(t,(function(t){t.get("selected")&&e.push(t)})),this.set("selectedShapes",e),e}};t.exports=o},function(t,e,n){var r=n(0);t.exports=function(t){return r.isArray(t)?t:r.isString(t)?t.split("*"):[t]}},function(t,e,n){var r=n(74),i=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o="linear",s="cat",u="time",l=function(){function t(t){this.defs={},this.viewTheme={scales:{}},this.filters={},i.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,r=null;return(n.scales[t]||e[t])&&(r=i.mix({},n.scales[t]),i.each(e[t],(function(t,e){i.isNil(t)?delete r[e]:r[e]=t})),this.filters[t]&&(delete r.min,delete r.max)),r},e._getDefaultType=function(t,e){var n=o,r=i.Array.firstValue(e,t);return i.isArray(r)&&(r=r[0]),a.test(r)?n=u:i.isString(r)&&(n=s),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=i.Array.values(n,e);if(a.values=o,!r.isCategory(t)&&"time"!==t){var s=i.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},e.createScale=function(t,e){var n,a=this._getDef(t),o=e||[],s=i.Array.firstValue(o,t);if(i.isNumber(t)||i.isNil(s)&&!a)n=r.identity({value:t,field:t.toString(),values:[t]});else{var u;a&&(u=a.type),u=u||this._getDefaultType(t,o);var l=this._getScaleCfg(u,t,o);a&&i.mix(l,a),n=r[u](l)}return n},t}();t.exports=l},function(t,e,n){var r=n(0),i=n(345),a=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},r.mix(this,t),this.option=t||{}}var e=t.prototype;return e.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e._execActions=function(t){var e=this.actions;r.each(e,(function(e){var n=e[0];t[n](e[1],e[2])}))},e.hasAction=function(t){var e=this.actions,n=!1;return r.each(e,(function(e){if(t===e[0])return n=!0,!1})),n},e.createCoord=function(t,e){var n,a,o=this.type,s=this.cfg,u=r.mix({start:t,end:e},s);return"theta"===o?(n=i.Polar,this.hasAction("transpose")||this.transpose(),(a=new n(u)).type=o):a=new(n=i[r.upperFirst(o||"")]||i.Rect)(u),this._execActions(a),a},e.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.reflect=function(t){return this.actions.push(["reflect",t]),this},e.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){"use strict";var r=n(44);r.Cartesian=n(346),r.Rect=r.Cartesian,r.Polar=n(347),r.Helix=n(348),t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(8),h=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=i(this,l(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t),o(e,[{key:"getDefaultCfg",value:function(){var t=u(l(e.prototype),"getDefaultCfg",this).call(this);return c({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),o(e,[{key:"_init",value:function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},r={start:t.y,end:e.y};this.x=n,this.y=r}},{key:"convertPoint",value:function(t){var e,n;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}}},{key:"invertPoint",value:function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}}}]),e}(n(44));t.exports=h},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(43),h=n(35),f=n(8),p=n(44),g=c.mat3,d=c.vec2,v=c.vec3,y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=i(this,l(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t),o(e,[{key:"getDefaultCfg",value:function(){var t=u(l(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),o(e,[{key:"_init",value:function(){for(var t=this.radius,e=this.innerRadius,n=this.center,r=this.startAngle,i=this.endAngle;i<r;)i+=2*Math.PI;this.endAngle=i;var a,o,s=this.getOneBox(),u=s.maxX-s.minX,l=s.maxY-s.minY,c=Math.abs(s.minX)/u,h=Math.abs(s.minY)/l,f=this.width,p=this.height;p/l>f/u?(a=f/u,o={x:n.x-(.5-c)*f,y:n.y-(.5-h)*a*l}):(a=p/l,o={x:n.x-(.5-c)*a*u,y:n.y-(.5-h)*p}),t?t>0&&t<=1?t*=a:(t<=0||t>a)&&(t=a):t=a;var g={start:r,end:i},d={start:e*t,end:t};this.x=g,this.y=d,this.radius=t,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value:function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}}},{key:"getRadius",value:function(){return this.radius}},{key:"convertPoint",value:function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,r=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:e.x+Math.cos(n)*r,y:e.y+Math.sin(n)*r}}},{key:"invertPoint",value:function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],r=this.x,i=[1,0,0,0,1,0,0,0,1];g.rotate(i,i,r.start);var a=[1,0,0];v.transformMat3(a,a,i),a=[a[0],a[1]];var o=d.angleTo(a,n,r.end<r.start);h(o,2*Math.PI)&&(o=0);var s=d.length(n),u=o/(r.end-r.start);u=r.end-r.start>0?u:-u;var l=this.invertDim(s,"y"),c={};return c.x=this.isTransposed?l:u,c.y=this.isTransposed?u:l,c}}]),e}(p);t.exports=y},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(43),h=n(35),f=n(8),p=n(44),g=c.vec2,d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=i(this,l(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,t),o(e,[{key:"getDefaultCfg",value:function(){var t=u(l(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),o(e,[{key:"_init",value:function(){var t=this.width,e=this.height,n=this.radius,r=this.innerRadius,i=this.startAngle,a=this.endAngle,o=(a-i)/(2*Math.PI)+1,s=Math.min(t,e)/2;n&&n>=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-r)/o),l=u/(2*Math.PI),c={start:i,end:a},h={start:r*s,end:r*s+.99*u};this.a=l,this.d=u,this.x=c,this.y=h}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,r=this.a,i=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=r*a,s=this.convertDim(n,"y");return{x:i.x+Math.cos(a)*(o+s),y:i.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,r=this.d+this.y.start,i=g.subtract([],[t.x,t.y],[e.x,e.y]),a=g.angleTo(i,[1,0],!0),o=a*n;g.length(i)<o&&(o=g.length(i));var s=n*(a=2*Math.floor((g.length(i)-o)/r)*Math.PI+a),u=g.length(i)-s;u=h(u,0)?0:u;var l=this.invertDim(a,"x"),c=this.invertDim(u,"y");l=h(l,0)?0:l,c=h(c,0)?0:c;var f={};return f.x=this.isTransposed?c:l,f.y=this.isTransposed?l:c,f}}]),e}(p);t.exports=d},function(t,e,n){var r=n(0),i=n(22).Axis,a=r.MatrixUtil.vec2;function o(t,e){return void 0===e&&(e=0),"middle"===t&&(e=.5),t.includes("%")&&(e=parseInt(t,10)/100),e}var s=function(){function t(t){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],r.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},e._getMiddleValue=function(t,e,n,r){if(0===t&&!r)return 0;if(1===t)return 1;var i=e[n+1].value;return r||1!==i?(t+i)/2:1},e._getLineRange=function(t,e,n,r){var i,a,s,u=e.field,l=this.options,c="";if(l[u]&&l[u].position&&(c=l[u].position),"x"===n){var h="top"===c?1:0;i={x:0,y:h=o(c,h)},a={x:1,y:h},s=!1}else{if(r){var f="left"===c?0:1;i={x:f=o(c,f),y:0},a={x:f,y:1}}else{var p="right"===c?1:0;i={x:p=o(c,p),y:0},a={x:p,y:1}}s=!0}return{start:i=t.convert(i),end:a=t.convert(a),isVertical:s}},e._getLineCfg=function(t,e,n,r){var i=this._getLineRange(t,e,n,r),a=i.isVertical,o=i.start,s=i.end,u=t.center;return t.isTransposed&&(a=!a),{isVertical:a,factor:a&&o.x>u.x||!a&&o.y>u.y?1:-1,start:o,end:s}},e._getCircleCfg=function(t){var e,n={},r=t.x,i=t.y,o=i.start>i.end;e=t.isTransposed?{x:o?0:1,y:0}:{x:0,y:o?0:1},e=t.convert(e);var s,u=t.circleCentre,l=[e.x-u.x,e.y-u.y],c=[1,0],h=(s=e.y>u.y?a.angle(l,c):-1*a.angle(l,c))+(r.end-r.start);return n.startAngle=s,n.endAngle=h,n.center=u,n.radius=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n,r=t.x.start<0?-1:1;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{factor:r,start:t.convert(e),end:t.convert(n)}},e._getAxisPosition=function(t,e,n,r){var i="",a=this.options;if(a[r]&&a[r].position)i=a[r].position;else{var o=t.type;t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return i},e._getAxisDefaultCfg=function(t,e,n,i){var a=this.viewTheme,o={},s=this.options,u=e.field;if((o=r.deepMix({},a.axis[i],o,s[u])).viewTheme=a,o.title){var l=r.isPlainObject(o.title)?o.title:{};l.text=l.text||e.alias||u,r.deepMix(o,{title:l})}return o.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=t,o.label&&r.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&r.deepMix(o,s.xField),o},e._getAxisCfg=function(t,e,n,i,a,o){void 0===a&&(a="");var s=this,u=s._getAxisPosition(t,i,a,e.field),l=s._getAxisDefaultCfg(t,e,i,u);if(!r.isEmpty(l.grid)&&n){var c=[],h=[],f=function(t){var e=[];if(t.length>0){var n=(e=t.slice(0))[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}(n.getTicks());if(f.length){var p=function(t,e,n){var r=[];return t.length<1?r:(t.length>=2&&e&&n&&r.push({text:"",tickValue:"",value:0}),0!==t[0].value&&r.push({text:"",tickValue:"",value:0}),1!==(r=r.concat(t))[r.length-1].value&&r.push({text:"",tickValue:"",value:1}),r)}(l.ticks,e.isLinear,"center"===l.grid.align);r.each(p,(function(n,u){h.push(n.tickValue);var g=[],d=n.value;if("center"===l.grid.align&&(d=s._getMiddleValue(d,p,u,e.isLinear)),!r.isNil(d)){var v=t.x,y=t.y;r.each(f,(function(e){var n="x"===i?d:e.value,r="x"===i?e.value:d,a=t.convert({x:n,y:r});if(t.isPolar){var o=t.circleCentre;y.start>y.end&&(r=1-r),a.flag=v.start>v.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}g.push(a)})),c.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:g})}}))}l.grid.items=c,l.grid.tickValues=h}return l.type=e.type,l},e._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,i=t.endAngle,a=[],o=0;o<=100;o++){var s=t.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var u=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=i,e.crp=a,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,a,o,s,u){var l,c,h=this.container,f=this.canvas;"cartesian"===t.type?(l=i.Line,c=this._getLineCfg(t,e,a,u)):"helix"===t.type&&"x"===a?(l=i.Helix,c=this._getHelixCfg(t)):"x"===a?(l=i.Circle,c=this._getCircleCfg(t)):(l=i.Line,c=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,a,u,o);p=r.mix({},p,c),"y"===a&&s&&"circle"===s.get("type")&&(p.circle=s),p._id=o+"-"+a,r.isNil(u)||(p._id=o+"-"+a+u),r.mix(p,{canvas:f,group:h.addGroup({viewId:o})});var g=new l(p);return g.render(),this.axes.push(g),g},e.createAxis=function(t,e,n){var i,a=this,o=this.coord,s=o.type;"theta"===s||"polar"===s&&o.isTransposed||(t&&!a._isHide(t.field)&&(i=a._drawAxis(o,t,e[0],"x",n)),r.isEmpty(e)||"helix"===s||r.each(e,(function(e,r){a._isHide(e.field)||a._drawAxis(o,e,t,"y",n,i,r)})))},e.changeVisible=function(t){var e=this.axes;r.each(e,(function(e){e.set("visible",t)}))},e.clear=function(){var t=this.axes;r.each(t,(function(t){t.destroy()})),this.axes=[]},t}();t.exports=s},function(t,e,n){var r=n(0),i=n(351),a=function(){function t(t){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,r.mix(this,t)}var e=t.prototype;return e._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach((function(e){var o=e.type,u=r.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=r.upperFirst(o);var l=new i[o](u);t.guides.push(l)})),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,i=n&&n.get("data"),a=e._creatGuides();r.each(a,(function(r){var a;a=r.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,r.render(t,a,i,n)}))},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){var e=this.guides;r.each(e,(function(e){e.changeVisible(t)}))},e.reset=function(){var t=this.guides;r.each(t,(function(t){t.clear()})),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){var r=n(22).Guide,i=n(352);r.RegionFilter=i,t.exports=r},function(t,e,n){var r=n(0),i=n(15),a=n(20).Path,o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},o.render=function(t,e,n,r){var i=this,a=e.addGroup();a.name="guide-region-filter",r.once("afterpaint",(function(){if(!a.get("destroyed")){i._drawShapes(r,a);var e=i._drawClip(t);a.attr({clip:e}),i.set("clip",e),i.get("appendInfo")&&a.setSilent("appendInfo",i.get("appendInfo")),i.set("el",a)}}))},o._drawShapes=function(t,e){var n=this,i=[];return t.getAllGeoms().map((function(t){var a=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&a.map((function(t){var a=t.type,o=r.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(a,{attrs:o});return i.push(s),t})),t})),i},o._drawClip=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end")),r=[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]];return new a({attrs:{path:r,opacity:1}})},o._adjustDisplay=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},o._geomFilter=function(t){var e=this.get("apply");return!e||r.contains(e,t)},o.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},i}(i);t.exports=o},function(t,e,n){function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var i=n(0),a=n(22).Legend,o=n(354),s=n(19),u=n(166),l=n(168),c=n(7),h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,f=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"],p=function(){function t(t){this.options={},i.mix(this,t),this.clear();var e=this.chart;this.container=e.get("frontPlot"),this.plotRange=e.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,i.each(t,(function(t){i.each(t,(function(t){t.destroy()}))})),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){var e=this.chart.get("backPlot");t=u(e,l(this.chart.get("plotRange")));var n=this.plotRange;t.maxX-t.minX<n.br.x-n.tl.x&&t.maxY-t.minY<n.br.y-n.tl.y&&(t={minX:n.tl.x,minY:n.tl.y,maxX:n.br.x,maxY:n.br.y}),this.backRange=t}return t},e._isFieldInView=function(t,e,n){var r=!1,a=n.get("scales")[t];return a&&a.values&&(r=i.inArray(a.values,e)),r},e._bindClickEvent=function(t,e,n){var r=this,a=r.chart,o=a.get("views"),s=e.field,u=r.options;t.on("itemclick",(function(e){if(u.onClick&&!0!==u.defaultClickHandlerEnabled)u.onClick(e);else{var l=e.item,c=e.checked,h="single"===t.get("selectedMode"),f=l.dataValue;c?(i.Array.remove(n,f),r._isFieldInView(s,f,a)&&a.filter(s,(function(t){return h?t===f:!i.inArray(n,t)})),i.each(o,(function(t){r._isFieldInView(s,f,t)&&t.filter(s,(function(t){return h?t===f:!i.inArray(n,t)}))}))):h||(n.push(f),r._isFieldInView(s,f,a)&&a.filter(s,(function(t){return!i.inArray(n,t)})),i.each(o,(function(t){r._isFieldInView(s,f,t)&&t.filter(s,(function(t){return!i.inArray(n,t)}))}))),u.onClick&&u.onClick(e),a.set("keepLegend",!0),a.set("keepPadding",!0),a.repaint(),a.set("keepPadding",!1),a.set("keepLegend",!1)}}))},e._bindClickEventForMix=function(t){var e=this.chart.getAllGeoms();t.on("itemclick",(function(t){var n=t.item.field;t.checked?i.each(e,(function(t){t.getYScale().field===n&&t.show()})):i.each(e,(function(t){t.getYScale().field===n&&t.hide()}))}))},e._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var r=e.get("labelCfg");if(r&&r.fields&&r.fields.length>0){var a=e.getXScale(),o=e.getYScale(),s=a.field,u=o.field,l=t.get("origin")._origin,c=e.get("labelContainer").get("labelsGroup").get("children");i.each(c,(function(e){var r=e.get("origin")||[];r[s]===l[s]&&r[u]===l[u]&&(e.set("visible",n),t.set("gLabel",e))}))}}},e._bindFilterEvent=function(t,e){var n=this,r=this.chart,a=e.field;t.on("itemfilter",(function(t){var e=t.range;r.filterShape((function(t,r,o){if(!i.isNil(t[a])){var s=t[a]>=e[0]&&t[a]<=e[1];return n._filterLabels(r,o,s),s}return!0}));for(var o=r.getAllGeoms()||[],s=function(t){var n=o[t];"heatmap"===n.get("type")&&h((function(){n.drawWithRange(e)}))},u=0;u<o.length;u++)s(u)}))},e._getShapeData=function(t){var e=t.get("origin");return i.isArray(e)&&(e=e[0]),e._origin},e._bindHoverEvent=function(t,e){var n=this,r=n.chart,a=r.getAllGeoms(),o=n.options,s=r.get("canvas");t.on("itemhover",(function(t){var r=t.item.value,u=n.pre;if(u){if(u===r)return}else i.each(a,(function(a){var u=a.get("shapeContainer"),l=a.getShapes(),c=[];if(e){var h=a.get("scales")[e];i.each(l,(function(t){var a=n._getShapeData(t);a&&function(t,e,n){return!i.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:Math.abs(t-e)<=1)}(a[e],r,h)&&c.push(t)}))}else a.getYScale().field===r&&(c=l);i.isEmpty(c)||(t.shapes=c,t.geom=a,o.onHover?(o.onHover(t),u.sort(),s.draw()):a.setShapesActived(c))})),n.pre=r})),t.on("itemunhover",(function(t){n.pre=null,o.onUnhover&&o.onUnhover(t),i.each(a,(function(t){t.get("activeShapes")&&(t.clearActivedShapes(),s.draw())}))}))},e._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var r=!0;return n=t.invert(n),i.each(e,(function(e){if(t.getText(e)===t.getText(n))return r=!1,!1})),r},e._alignLegend=function(t,e,n,r){var i=this.viewTheme,a=this.container.get("canvas"),o=a.get("width"),s=a.get("height"),u=this.totalRegion,l=this.plotRange,c=this.getBackRange(),h=t.get("offset")[0]||0,f=t.get("offset")[1]||0,p=t.getHeight(),g=t.getWidth(),d=i.legend.margin,v=i.legend.legendMargin,y=this.legends[r].length,x=r.split("-"),m=0,b=0,_=y>1?u:n;if("left"===x[0]||"right"===x[0])s=l.br.y,m=this._getXAlign(x[0],o,n,c,g,d),b=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+v:this._getYAlignVertical(x[1],s,_,c,0,d,a.get("height"));else if("top"===x[0]||"bottom"===x[0])if(b=this._getYAlignHorizontal(x[0],s,n,c,p,d),e){var w=e.getWidth();m=(e.get("x")||e.get("group").get("x"))+w+v}else m=this._getXAlign(x[1],o,_,c,0,d),"right"===x[1]&&(m=l.br.x-_.totalWidth);t.move(m+h,b+f)},e._getXAlign=function(t,e,n,r,i,a){var o="left"===t?r.minX-i-a[3]:r.maxX+a[1];return"center"===t&&(o=(e-n.totalWidth)/2),o},e._getYAlignHorizontal=function(t,e,n,r,i,a){return"top"===t?r.minY-i-a[0]:r.maxY+a[2]},e._getYAlignVertical=function(t,e,n,r,i,a,o){var s="top"===t?r.minY-i-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,r=0,a=0;return i.each(t,(function(t){var i=t.getWidth(),o=t.getHeight();e<i&&(e=i),r+=i,n<o&&(n=o),a+=o})),{maxWidth:e,totalWidth:r,maxHeight:n,totalHeight:a}},e._getRegion=function(){var t=this,e=t.viewTheme,n=t.legends,r=e.legend.legendMargin,a=[],o=0,s=0;return i.each(n,(function(e){var n=t._getSubRegion(e);a.push(n),o+=n.totalWidth+r,s+=n.totalHeight+r})),{totalWidth:o,totalHeight:s,subs:a}},e._addCategoryLegend=function(t,e,n,u,l){var h=this,f=t.field,p=h.options,g=p[f];g&&(p=g);var d=h.legends;d[l]=d[l]||[];var v=h.container,y=[],x=t.getTicks(),m=!0,b=n.get("shapeType")||"point",_=n.getDefaultValue("shape")||"circle";p[f]&&p[f].marker?(_=p[f].marker,b="point",m=!1):p.marker&&(_=p.marker,b="point",m=!1);var w=h.chart,S=h.viewTheme,M=w.get("canvas"),C=h.plotRange,A=l.split("-"),k="right"===A[0]||"left"===A[0]?C.bl.y-C.tr.y:M.get("width");i.each(x,(function(e){var r=e.text,a=e.value,o=t.invert(a),l={isInCircle:n.isInCircle()},f=!u||h._isFiltered(t,u,a),p=n.getAttr("color"),g=n.getAttr("shape");if(p)if(p.callback&&p.callback.length>1){var d=Array(p.callback.length-1).fill("");l.color=p.mapping.apply(p,[o].concat(d)).join("")||S.defaultColor}else l.color=p.mapping(o).join("")||S.defaultColor;if(m&&g)if(g.callback&&g.callback.length>1){var v=Array(g.callback.length-1).fill("");_=g.mapping.apply(g,[o].concat(v)).join("")}else _=g.mapping(o).join("");var x=s.getShapeFactory(b).getMarkerCfg(_,l);c.legendMarkerRadius&&(x.radius=c.legendMarkerRadius),i.isFunction(_)&&(x.symbol=_),y.push({value:r,dataValue:o,checked:f,marker:x})}));var P,O=i.deepMix({},S.legend[A[0]],p[f]||p,{viewId:w.get("_id"),maxLength:k,items:y,container:v,position:[0,0]});if(O.title&&i.deepMix(O,{title:{text:t.alias||t.field}}),h._isTailLegend(p,n))O.chart=h.chart,O.geom=n,P=new o(O);else if(p.useHtml){var T=v.get("canvas").get("el");if(v=p.container,i.isString(v)&&/^\#/.test(v)){var I=v.replace("#","");v=document.getElementById(I)}v||(v=T.parentNode),O.container=v,void 0===O.legendStyle&&(O.legendStyle={}),O.legendStyle.CONTAINER_CLASS=r({},O.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===T.style.zIndex?1:parseInt(T.style.zIndex,10)+1}),p.flipPage?(O.legendStyle.CONTAINER_CLASS.height="right"===A[0]||"left"===A[0]?k+"px":"auto",O.legendStyle.CONTAINER_CLASS.width="right"!==A[0]&&"left"!==A[0]?k+"px":"auto",P=new a.CatPageHtml(O)):P=new a.CatHtml(O)}else P=new a.Category(O);return h._bindClickEvent(P,t,u),d[l].push(P),P},e._bindChartMove=function(t){var e=this.chart,n=this.legends;e.on("plotmove",(function(e){var r=!1;if(e.target){var a=e.target.get("origin");if(a){var o=a._origin||a[0]._origin,s=t.field;if(o){var u=o[s];i.each(n,(function(t){i.each(t,(function(t){r=!0,!t.destroyed&&t.activate(u)}))}))}}}r||i.each(n,(function(t){i.each(t,(function(t){!t.destroyed&&t.deactivate()}))}))}))},e._addContinuousLegend=function(t,e,n){var r=this.legends;r[n]=r[n]||[];var o,s,u,l=this.container,c=t.field,h=t.getTicks(),f=[],p=this.viewTheme;i.each(h,(function(n){var r=n.value,i=t.invert(r),a=e.mapping(i).join("");f.push({value:n.tickValue,attrValue:a,color:a,scaleValue:r}),0===r&&(s=!0),1===r&&(u=!0)})),s||f.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),u||f.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var g=this.options,d=n.split("-"),v=p.legend[d[0]];(g&&!1===g.slidable||g[c]&&!1===g[c].slidable)&&(v=i.mix({},v,p.legend.gradient));var y=i.deepMix({},v,g[c]||g,{items:f,attr:e,formatter:t.formatter,container:l,position:[0,0]});if(y.title&&i.deepMix(y,{title:{text:t.alias||t.field}}),"color"===e.type)o=new a.Color(y);else{if("size"!==e.type)return;o=g&&"circle"===g.sizeType?new a.CircleSize(y):new a.Size(y)}return this._bindFilterEvent(o,t),r[n].push(o),o},e._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},e._adjustPosition=function(t,e){var n;if(e)n="right-top";else if(i.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var r=t.split("-");1===r.length?("left"===r[0]&&(n="left-bottom"),"right"===r[0]&&(n="right-bottom"),"top"===r[0]&&(n="top-center"),"bottom"===r[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,r){var i=this.options,a=t.field,o=i[a],s=this.viewTheme;if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(a);else{var u,l=i.position||s.defaultLegendPosition;l=this._adjustPosition(l,this._isTailLegend(i,n)),o&&o.position&&(l=this._adjustPosition(o.position,this._isTailLegend(o,n))),(u=t.isLinear?this._addContinuousLegend(t,e,l):this._addCategoryLegend(t,e,n,r,l))&&(this._bindHoverEvent(u,a),i.reactive&&this._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this.chart,n=this.viewTheme,r=this.container,o=this.options;t&&(o=o[t]);var s=o.position||n.defaultLegendPosition;s=this._adjustPosition(s);var u=this.legends;u[s]=u[s]||[];var l=o.items;if(l){var h=e.getAllGeoms();i.each(l,(function(t){var e=function(t,e){var n;return i.each(t,(function(t){t.get("visible")&&t.getYScale().field===e&&(n=t)})),n}(h,t.value);i.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||c.legendMarkerRadius||4.5:(t.marker={symbol:t.marker||"circle",radius:c.legendMarkerRadius||4.5},-1!==i.indexOf(f,t.marker.symbol)?t.marker.stroke=t.fill:t.marker.fill=t.fill);var n=t.marker.symbol;i.isString(n)&&-1!==n.indexOf("hollow")&&(t.marker.symbol=i.lowerFirst(n.substr(6))),t.checked=!!i.isNil(t.checked)||t.checked,t.geom=e}));var p,g=e.get("canvas"),d=this.plotRange,v=s.split("-"),y="right"===v[0]||"left"===v[0]?d.bl.y-d.tr.y:g.get("width"),x=i.deepMix({},n.legend[v[0]],o,{maxLength:y,items:l,container:r,position:[0,0]});if(o.useHtml){var m=o.container;if(/^\#/.test(r)){var b=m.replace("#","");m=document.getElementById(b)}else m||(m=r.get("canvas").get("el").parentNode);x.container=m,void 0===x.legendStyle&&(x.legendStyle={}),x.legendStyle.CONTAINER_CLASS||(x.legendStyle.CONTAINER_CLASS={height:"right"===v[0]||"left"===v[0]?y+"px":"auto",width:"right"!==v[0]&&"left"!==v[0]?y+"px":"auto",position:"absolute",overflow:"auto"}),p=o.flipPage?new a.CatPageHtml(x):new a.CatHtml(x)}else p=new a.Category(x);return u[s].push(p),p.on("itemclick",(function(t){o.onClick&&o.onClick(t)})),this._bindHoverEvent(p),p}},e.addMixedLegend=function(t,e){var n=[];i.each(t,(function(t){var r=t.alias||t.field;i.each(e,(function(e){if(e.getYScale()===t&&t.values&&t.values.length>0){var i=e.get("shapeType")||"point",a=e.getDefaultValue("shape")||"circle",o=s.getShapeFactory(i),u={color:e.getDefaultValue("color")},l=o.getMarkerCfg(a,u);c.legendMarkerRadius&&(l.radius=c.legendMarkerRadius);var h={value:r,marker:l,field:t.field};n.push(h)}}))}));var r={custom:!0,items:n};this.options=i.deepMix({},r,this.options);var a=this.addCustomLegend();this._bindClickEventForMix(a)},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var r=0;return i.each(e,(function(e,a){var o=n.subs[r];i.each(e,(function(n,r){var i=e[r-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,i,o,a)})),r++})),this},t}();t.exports=p},function(t,e,n){var r=n(0),i=n(22),a=n(7),o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"tail-legend",layout:"vertical",autoLayout:!0})},o._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this.get("unCheckColor"),a=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});a.translate(n,0),a.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var l=r.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(l.fill&&(l.fill=i),l.stroke&&(l.stroke=i));var c=a.addShape("marker",{type:"marker",attrs:l});c.attr("cursor","pointer"),c.name="legend-marker",u+=c.getBBox().width+s}var h=r.mix({},o,{x:u,y:0,text:this._formatItemValue(t.value)});t.checked||r.mix(h,{fill:i});var f=a.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));var p=a.getBBox(),g=this.get("itemWidth"),d=a.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:g||p.width,height:p.height}});return d.attr("cursor","pointer"),d.setSilent("origin",t),d.name="legend-item",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},o._adjust=function(){if(this.get("geom")){this.get("group").attr("matrix")[7]=0;var t=this.get("geom").get("dataArray"),e=this.get("itemsGroup").get("children"),n=0;r.each(e,(function(e){var i=t[n],a=i[i.length-1].y;r.isArray(a)&&(a=a[1]);var o=e.getBBox().height,s=e.get("x"),u=a-o/2;e.translate(s,u),n++})),this.get("autoLayout")&&this._antiCollision(e)}},o.render=function(){var e=this;t.prototype.render.call(this),this.get("chart").once("afterpaint",(function(){e._adjust()}))},o._getPreviousY=function(t){return t.attr("matrix")[7]+t.getBBox().height},o._adjustDenote=function(t,e,n){var r=2*-a.legend.legendMargin;t.addShape("path",{attrs:{path:"M-2,"+e+"L"+r+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},o._antiCollision=function(t){if(void 0===t&&(t=[]),t.length){var e=this;t.sort((function(t,e){return t.attr("matrix")[7]-e.attr("matrix")[7]}));var n=!0,r=e.get("chart").get("plotRange"),i=r.tl.y,a=Math.abs(i-r.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,l=t.map((function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),e<s&&(s=e),{size:t.getBBox().height,targets:[e-i]}}));s-=i;for(var c=0;n;){for(var h=0;h<l.length;h++){var f=l[h],p=(Math.min.apply(s,f.targets)+Math.max.apply(s,f.targets))/2;f.pos=Math.min(Math.max(s,p-f.size/2),a-f.size)}for(n=!1,c=l.length;c--;)if(c>0){var g=l[c-1],d=l[c];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),l.splice(c,1),n=!0)}}c=0;var v=this.get("itemsGroup").addGroup();l.forEach((function(n){var r=i+o;n.targets.forEach((function(){var i=t[c].attr("matrix")[7],a=n.pos+r-o/2;Math.abs(i-a)>o/2&&e._adjustDenote(v,a,i-e.get("group").attr("matrix")[7]/2),t[c].translate(0,-i),t[c].translate(0,a),r+=o,c++}))}))}},i}(i.Legend.Category);t.exports=o},function(t,e,n){function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var i=n(0),a=n(19),o=n(22).Tooltip,s=i.MatrixUtil.vec2,u=["line","area","path","areaStack"],l=["line","area"],c=["marker","showMarker"];function h(t,e){return!!t&&(!!t.className&&(i.isNil(t.className.baseVal)?t.className:t.className.baseVal).includes(e))}function f(t){var e=[];return i.each(t,(function(t){var n=function(t,e){var n=-1;return i.each(t,(function(t,r){var a=!0;for(var o in e)if(e.hasOwnProperty(o)&&!c.includes(o)&&!i.isObject(e[o])&&e[o]!==t[o]){a=!1;break}if(a)return n=r,!1})),n}(e,t);-1===n?e.push(t):e[n]=t})),e}var p=function(){function t(t){i.assign(this,t),this.timeStamp=0,this.locked=!1}var e=t.prototype;return e._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),r=n.getPointByClient(t.clientX,t.clientY),i=n.get("pixelRatio");r.x=r.x/i,r.y=r.y/i;var a=e.getViewsByPoint(r);return r.views=a,r},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options.triggerOn;return e&&"mousemove"!==e?"click"===e?t="plotclick":"none"===e&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this.chart,e=this.viewTheme,n=this.options,r=i.mix({},e.tooltip),a=t.getAllGeoms().filter((function(t){return t.get("visible")})),o=[];i.each(a,(function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&i.each(n,(function(t){if("symmetric"===t.type||"Symmetric"===t.type)return r=!0,!1})),-1!==i.indexOf(o,e)||r||o.push(e)}));var s,u=!(!a.length||!a[0].get("coord"))&&a[0].get("coord").isTransposed;if(a.length&&a[0].get("coord")&&"cartesian"===a[0].get("coord").type)if("interval"===o[0]&&!1!==n.shared){var c=i.mix({},e.tooltipCrosshairsRect);c.isTransposed=u,s={zIndex:0,crosshairs:c}}else if(i.indexOf(l,o[0])>-1){var h=i.mix({},e.tooltipCrosshairsLine);h.isTransposed=u,s={crosshairs:h}}return i.mix(r,s,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,i.wrapBehavior(this,"onMouseMove")),t.on("plotleave",i.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,i.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",i.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,r){var a=this.tooltip,o=this.prePoint;if(!o||o.x!==t.x||o.y!==t.y){e=f(e),this.prePoint=t;var s=this.chart,u=this.viewTheme,l=i.isArray(t.x)?t.x[t.x.length-1]:t.x,c=i.isArray(t.y)?t.y[t.y.length-1]:t.y;a.get("visible")||s.emit("tooltip:show",{x:l,y:c,tooltip:a});var h=e[0],p=h.title||h.name;a.isContentChange(p,e)&&(s.emit("tooltip:change",{tooltip:a,x:l,y:c,items:e}),p=e[0].title||e[0].name,a.setContent(p,e),i.isEmpty(n)?(a.clearMarkers(),a.set("markerItems",[])):!0===this.options.hideMarkers?a.set("markerItems",n):a.setMarkers(n,u.tooltipMarker)),r===this._getCanvas()&&"mini"===a.get("type")?a.hide():(a.setPosition(l,c,r),a.show())}},e.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.onMouseMove=function(t){if(!i.isEmpty(t.views)&&!this.locked){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(r,t.views,t.shape),this.timeStamp=n)}},e.onMouseOut=function(t){var e=this.tooltip;e.get("visible")&&e.get("follow")&&!this.locked&&(t&&t.toElement&&(h(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,r=!1;n&&n!==document.body;){if(h(n,e)){r=!0;break}n=n.parentNode}return r}(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e,n=t.chart,r=t.viewTheme,a=t._getCanvas(),s=t._getDefaultTooltipCfg(),u=t.options;(u=i.deepMix({plotRange:n.get("plotRange"),capture:!1,canvas:a,frontPlot:n.get("frontPlot"),viewTheme:r.tooltip,backPlot:n.get("backPlot")},s,u)).crosshairs&&"rect"===u.crosshairs.type&&(u.zIndex=0),u.visible=!1,"mini"===u.type?(u.crosshairs=!1,u.position="top",e=new o.Mini(u)):e=u.useHtml?new o.Html(u):new o.Canvas(u),t.tooltip=e;var l=t._getTriggerEvent();if(!e.get("enterable")&&"plotmove"===l){var c=e.get("container");c&&(c.onmousemove=function(e){var r=t._normalizeEvent(e);n.emit(l,r)})}t._bindEvent()}},e._formatMarkerOfItem=function(t,e,n){var r=this.options,a=n.point;if(a&&a.x&&a.y){var o=i.isArray(a.x)?a.x[a.x.length-1]:a.x,s=i.isArray(a.y)?a.y[a.y.length-1]:a.y;a=t.applyMatrix(o,s,1),n.x=a[0],n.y=a[1],n.showMarker=!0,"l("!==n.color.substring(0,2)||r.hasOwnProperty("useHtml")&&!r.useHtml||(n.color=n.color.split(" ")[1].substring(2));var l=this._getItemMarker(e,n);if(n.marker=l,-1!==i.indexOf(u,e.get("type")))return n}return null},e.lockTooltip=function(){this.locked=!0},e.unlockTooltip=function(){this.locked=!1},e.showTooltip=function(t,e,n){var r=this,a=this;if(!i.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var o=a.options,u=[],l=[];if(i.each(e,(function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),s=e.get("coord");i.each(n,(function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var c=e.get("dataArray");if(e.isShareTooltip()||!1===o.shared&&i.inArray(["area","line","path","polygon"],n)){var h=e.getXScale(),f=e.getAttr("color"),p=f?f.field:void 0;if("interval"===n&&h.field===p&&e.hasAdjust("dodge")){var g=i.find(c,(function(n){return!!e.findPoint(t,n)}));i.each(g,(function(t){var n=e.getTipItems(t,o.title);i.each(n,(function(t){var n=a._formatMarkerOfItem(s,e,t);n&&u.push(n)})),l=l.concat(n)}))}else i.each(c,(function(n){var r=e.findPoint(t,n);if(r){var c=e.getTipItems(r,o.title);i.each(c,(function(t){var n=a._formatMarkerOfItem(s,e,t);n&&u.push(n)})),l=l.concat(c)}}))}else{var d=e.get("shapeContainer"),v=d.get("canvas").get("pixelRatio"),y=d.getShape(t.x*v,t.y*v);y&&y.get("visible")&&y.get("origin")&&(l=e.getTipItems(y.get("origin"),o.title)),i.each(l,(function(t){var n=r._formatMarkerOfItem(s,e,t);n&&u.push(n)}))}}})),i.each(l,(function(t){var e=t.point,n=i.isArray(e.x)?e.x[e.x.length-1]:e.x,r=i.isArray(e.y)?e.y[e.y.length-1]:e.y;e=s.applyMatrix(n,r,1),t.x=e[0],t.y=e[1]}))})),l.length){var c=l[0];if(!l.every((function(t){return t.title===c.title}))){var h=c,f=1/0;l.forEach((function(e){var n=s.distance([t.x,t.y],[e.x,e.y]);n<f&&(f=n,h=e)})),l=l.filter((function(t){return t.title===h.title})),u=u.filter((function(t){return t.title===h.title}))}if(!1===o.shared&&l.length>1){var p=l[0],g=Math.abs(t.y-p.y);i.each(l,(function(e){Math.abs(t.y-e.y)<=g&&(p=e,g=Math.abs(t.y-e.y))})),p&&p.x&&p.y&&(u=[p]),l=[p]}a._setTooltip(t,l,u,n)}else a.hideTooltip()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e._getItemMarker=function(t,e){var n=this.options.marker,o=t.get("shapeType")||"point",s=t.getDefaultValue("shape")||"circle",u=a.getShapeFactory(o),l={color:e.color},c=u.getMarkerCfg(s,l);return i.isFunction(n)?n(c,e):i.isObject(n)?r({},c,{markerOption:n}):c},t}();t.exports=p},function(t,e,n){var r=n(0);function i(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isNil(n)&&r.isNil(i)?r.isEqual(t,e):r.isEqual(n,i)}function a(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var o=function(){function t(t){this.view=null,this.canvas=null,r.assign(this,t),this._init()}var e=t.prototype;return e._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},e._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},r=e.getViewsByPoint(n);return n.views=r,n},e._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.bindEvents=function(){var t=this.canvas;t.on("mousedown",r.wrapBehavior(this,"onDown")),t.on("mousemove",r.wrapBehavior(this,"onMove")),t.on("mouseleave",r.wrapBehavior(this,"onOut")),t.on("mouseup",r.wrapBehavior(this,"onUp")),t.on("click",r.wrapBehavior(this,"onClick")),t.on("dblclick",r.wrapBehavior(this,"onClick")),t.on("touchstart",r.wrapBehavior(this,"onTouchstart")),t.on("touchmove",r.wrapBehavior(this,"onTouchmove")),t.on("touchend",r.wrapBehavior(this,"onTouchend"))},e._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var r=this.view;if(r.isShapeInView(t)){var i=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(i,n);var a=r.get("parent");a&&a.emit(i,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,a(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this.view,n=this.currentShape;n&&n.get("destroyed")&&(n=null,this.currentShape=null);var r=this._getShape(t.x,t.y)||t.currentTarget,o=this._getShapeEventObj(t);if(o.shape=r,a(o),e.emit("mousemove",o),this._triggerShapeEvent(r,"mousemove",o),n&&!i(n,r)){var s=this._getShapeEventObj(t);s.shape=n,s.toShape=r,a(s),this._triggerShapeEvent(n,"mouseleave",s)}if(r&&!i(n,r)){var u=this._getShapeEventObj(t);u.shape=r,u.fromShape=n,a(u),this._triggerShapeEvent(r,"mouseenter",u)}this.currentShape=r;var l=this._getPointInfo(t),c=this.curViews||[];0===c.length&&l.views.length&&e.emit("plotenter",this._getEventObj(t,l,l.views)),c.length&&0===l.views.length&&e.emit("plotleave",this._getEventObj(t,l,c)),l.views.length&&((o=this._getEventObj(t,l,l.views)).shape=r,a(o),e.emit("plotmove",o)),this.curViews=l.views},e.onOut=function(t){var e=this.view,n=this._getPointInfo(t),r=this.curViews||[],i=this._getEventObj(t,n,r);!this.curViews||0===this.curViews.length||i.toElement&&"CANVAS"===i.toElement.tagName||(e.emit("plotleave",i),this.curViews=[])},e.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,a(i),e.emit("click",i),this._triggerShapeEvent(n,t.type,i),this.currentShape=n;var o=this._getPointInfo(t),s=o.views;if(!r.isEmpty(s)){var u=this._getEventObj(t,o,s);if(this.currentShape){var l=this.currentShape;u.shape=l,a(u)}"dblclick"===t.type?(e.emit("plotdblclick",u),e.emit("dblclick",i)):e.emit("plotclick",u)}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,a(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,a(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,a(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.clearEvents=function(){var t=this.canvas;t.off("mousemove",r.getWrapBehavior(this,"onMove")),t.off("mouseleave",r.getWrapBehavior(this,"onOut")),t.off("mousedown",r.getWrapBehavior(this,"onDown")),t.off("mouseup",r.getWrapBehavior(this,"onUp")),t.off("click",r.getWrapBehavior(this,"onClick")),t.off("dblclick",r.getWrapBehavior(this,"onClick")),t.off("touchstart",r.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",r.getWrapBehavior(this,"onTouchmove")),t.off("touchend",r.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){var r=n(0),i=n(125),a=r.MatrixUtil.mat3;function o(t,e){var n=[];if(!1===t.get("animate"))return[];var i=t.get("children");return r.each(i,(function(t){if(t.isGroup)n=n.concat(o(t,e));else if(t.isShape&&t._id){var r=t._id;(r=r.split("-")[0])===e&&n.push(t)}})),n}function s(t,e,n,r){return r?i.Action[n][r]:i.getAnimation(t,e,n)}function u(t,e,n){var a=i.getAnimateCfg(t,e);return n&&n[e]?r.deepMix({},a,n[e]):a}function l(t,e,n,i){var o,l,c=!1;if(i){var h=[],f=[];r.each(e,(function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),h.push(e),delete t[e._id]):f.push(e)})),r.each(t,(function(t){var e=t.name,i=t.coord,h=t._id,f=t.attrs,p=t.index,g=t.type;if(l=u(e,"leave",t.animateCfg),o=s(e,i,"leave",l.animation),r.isFunction(o)){var d=n.addShape(g,{attrs:f,index:p});if(d._id=h,d.name=e,i&&"label"!==e){var v=d.getMatrix(),y=a.multiply([],v,i.matrix);d.setMatrix(y)}c=!0,o(d,l,i)}})),r.each(h,(function(t){var e=t.name,n=t.get("coord"),i=t.get("cacheShape").attrs;if(!r.isEqual(i,t.attr())){if(l=u(e,"update",t.get("animateCfg")),o=s(e,n,"update",l.animation),r.isFunction(o))o(t,l,n);else{var a=r.cloneDeep(t.attr());t.attr(i),t.animate(a,l.duration,l.easing,(function(){t.setSilent("cacheShape",null)}))}c=!0}})),r.each(f,(function(t){var e=t.name,n=t.get("coord");l=u(e,"enter",t.get("animateCfg")),o=s(e,n,"enter",l.animation),r.isFunction(o)&&(o(t,l,n),c=!0)}))}else r.each(e,(function(t){var e=t.name,n=t.get("coord");l=u(e,"appear",t.get("animateCfg")),o=s(e,n,"appear",l.animation),r.isFunction(o)&&(o(t,l,n),c=!0)}));return c}t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),i=t.get("backPlot"),a=t.get("_id"),s=t.get("canvas"),u=s.get(a+"caches")||[];0===u.length&&(e=!1);var c=o(n,a),h=o(i,a),f=c.concat(h);s.setSilent(a+"caches",function(t){var e={};return r.each(t,(function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:r.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}})),e}(f)),l(u,e?f:c,s,e)||s.draw()}}},function(t,e,n){var r=n(0),i=n(16).Group,a=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},a._beforeRenderUI=function(){this._calculateRange()},a._renderUI=function(){this._renderBackground(),this._renderPlotBackground()},a._renderBackground=function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},i=this.get("backgroundShape");i?i.attr(n):(i=this.addShape("rect",{attrs:r.mix(n,t)}),this.set("backgroundShape",i))}},a._renderPlotBackground=function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.br.x-e.bl.x,i=e.br.y-e.tr.y,a=e.tl,o={x:a.x,y:a.y,width:n,height:i},s=this.get("plotBackShape");s?s.attr(o):(t.image?(o.img=t.image,s=this.addShape("image",{attrs:o})):(r.mix(o,t),s=this.addShape("rect",{attrs:o})),this.set("plotBackShape",s))}},a._convert=function(t,e){if(r.isString(t))if("auto"===t)t=0;else if(t.includes("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*i:t*a}return t},a._calculateRange=function(){var t=this.get("plotRange");r.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height"),o=r.toAllPadding(e),s=this._convert(o[0],!1),u=this._convert(o[1],!0),l=this._convert(o[2],!1),c=this._convert(o[3],!0),h=Math.min(c,i-u),f=Math.max(c,i-u),p=Math.min(a-l,s),g=Math.max(a-l,s);t.tl={x:h,y:p},t.tr={x:f,y:p},t.bl={x:h,y:g},t.br={x:f,y:g},t.cc={x:(f+h)/2,y:(g+p)/2},this.set("plotRange",t)},a.repaint=function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this},i}(i);t.exports=a},function(t,e,n){var r=n(7),i=n(0),a={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||r;if(!t){var n,a=this.get("coord"),o=this.getXScale(),s=o.values,u=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var l=function(t,e){var n=t.length;i.isString(t[0])&&(t=t.map((function(t){return e.translate(t)})));for(var r=t[1]-t[0],a=2;a<n;a++){var o=t[a]-t[a-1];r>o&&(r=o)}return r}(s,o);n=(o.max-o.min)/l,s.length>n&&(n=s.length)}else n=s.length;var c=o.range,h=1/n,f=1;if(this.isInCircle()?f=a.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(h*=c[1]-c[0]),f=e.widthRatio.column),h*=f,this.hasAdjust("dodge")){var p=this._getDodgeCfg(u),g=p.dodgeCount,d=p.dodgeRatio;h/=g,d>0&&(h=d*h/f)}t=h,this.set("defaultSize",t)}return t},_getDodgeCfg:function(t){var e,n,r=this.get("adjusts"),a=t.length;if(i.each(r,(function(t){"dodge"===t.type&&(e=t.dodgeBy,n=t.dodgeRatio)})),e){var o=i.Array.merge(t);a=i.Array.values(o,e).length}return{dodgeCount:a,dodgeRatio:n}},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=i.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(i.isNil(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){var r=n(0),i=n(7);t.exports={splitData:function(t){var e=this.get("viewTheme")||i;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale().field;return r.each(t,(function(t){n=t._origin?t._origin[s]:t[s],e.connectNulls?r.isNil(n)||o.push(t):r.isArray(n)&&r.isNil(n[0])||r.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)})),o.length&&a.push(o),a}}},function(t,e,n){var r=n(21),i=n(360),a=n(0),o=function(t){var e,n;n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;function o(e){var n;return n=t.call(this,e)||this,a.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),i),n}return r.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},r.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasStack(),n},r.draw=function(t,e,n,r){var i=this,o=this.splitData(t),s=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(s,s.shape,n),s.origin=t,a.each(o,(function(t,o){if(!a.isEmpty(t)){s.splitedIndex=o,s.points=t;var u=n.drawShape(s.shape,s,e);i.appendShapeInfo(u,r+o)}}))},o}(r);r.Path=o,t.exports=o},function(t,e,n){"use strict";var r=n(373),i=n(374);function a(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}e.a=function(t){var e=Object(r.a)(t);return(e.local?o:a)(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";e.a=function(t,e){return e-=t=+t,function(n){return t+e*n}}},function(t,e,n){"use strict";e.b=function(t,e,n){var i=t._id;return t.each((function(){var t=Object(r.h)(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Object(r.f)(t,i).value[e]}};var r=n(46);function i(t,e){var n,i;return function(){var a=Object(r.h)(this,t),o=a.tween;if(o!==n)for(var s=0,u=(i=n=o).length;s<u;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}a.tween=i}}function a(t,e,n){var i,a;if("function"!=typeof n)throw new Error;return function(){var o=Object(r.h)(this,t),s=o.tween;if(s!==i){a=(i=s).slice();for(var u={name:e,value:n},l=0,c=a.length;l<c;++l)if(a[l].name===e){a[l]=u;break}l===c&&a.push(u)}o.tween=a}}e.a=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var o,s=Object(r.f)(this.node(),n).tween,u=0,l=s.length;u<l;++u)if((o=s[u]).name===t)return o.value;return null}return this.each((null==e?i:a)(n,t,e))}},function(t,e,n){var r=n(7),i=n(0),a=i.assign,o=i.isNil,s=i.isArray,u=i.cloneDeep,l=i.wrapBehavior,c=i.getWrapBehavior,h=function(){var t=e.prototype;function e(t){var e=this.getDefaultCfg();a(this,e,t),this.init()}return t.getDefaultCfg=function(){return{chart:null,group:null,showTitle:!0,autoSetAxis:!0,padding:10,eachView:null,fields:[],colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},t.init=function(){if(!this.chart)throw new Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},t.initContainer=function(){var t=this.chart.get("frontPlot").addGroup();this.group=t},t.initViews=function(){for(var t=this.chart,e=t.get("data"),n=this.eachView,r=this.generateFacets(e),i=0;i<r.length;i++){var a=r[i],o=a.region,s=t.view({start:o.start,end:o.end,padding:this.padding});s.source(a.data),this.beforeProcessView(s,a),n&&n(s,a),this.afterProcessView(s,a),a.view=s}this.facets=r},t.beforeProcessView=function(){},t.afterProcessView=function(t,e){this.autoSetAxis&&this.processAxis(t,e)},t.processAxis=function(t,e){var n=t.get("options"),r=t.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,a=s(i)?i:i.split("*").map((function(t){return t.trim()})),u=a[0],l=a[1];o(n.axes)&&(n.axes={});var c=n.axes;!1!==c&&(u&&!1!==c[u]&&(c[u]=c[u]||{},this.setXAxis(u,c,e)),l&&!1!==c[l]&&(c[l]=c[l]||{},this.setYAxis(l,c,e)))}},t.setXAxis=function(){},t.setYAxis=function(){},t.renderTitle=function(t,e){this.drawColTitle(t,e)},t.getScaleText=function(t,e,n){var r;if(t){var i=n.get("scales")[t];i||(i=n.createScale(t)),r=i.getText(e)}else r=e;return r},t.drawColTitle=function(t,e){var n=this.getScaleText(e.colField,e.colValue,t),r=a({position:["50%","0%"],content:n},this.colTitle);t.guide().text(r)},t.drawRowTitle=function(t,e){var n=this.getScaleText(e.rowField,e.rowValue,t),r=a({position:["100%","50%"],content:n},u(this.rowTitle));t.guide().text(r)},t.getFilter=function(t){return function(e){var n=!0;return t.forEach((function(t){var r=t.field,i=t.value,a=!0;!o(i)&&r&&(a=e[r]===i),n=n&&a})),n}},t.getFieldValues=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i][t];o(a)||r[a]||(n.push(a),r[a]=!0)}return n},t.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+a}}},t.generateFacets=function(){return[]},t._bindEvent=function(){var t=this.chart;t.on("afterchangedata",l(this,"onDataChange")),t.on("beforeclear",l(this,"onClear")),t.on("beforedestroy",l(this,"destroy")),t.on("beforepaint",l(this,"onPaint")),t.on("setdata",l(this,"onDataChange"))},t._clearEvent=function(){var t=this.chart;t&&(t.off("afterchangedata",c(this,"onDataChange")),t.off("beforeclear",c(this,"onClear")),t.off("beforedestroy",c(this,"destroy")),t.off("beforepaint",c(this,"onPaint")),t.off("setdata",c(this,"onDataChange")))},t._clearFacets=function(){var t=this.facets,e=this.chart;if(t)for(var n=0;n<t.length;n++){var r=t[n];e.removeView(r.view)}this.facets=null},t.onClear=function(){this.onRemove()},t.onPaint=function(){if(this.showTitle)for(var t=this.facets,e=0;e<t.length;e++){var n=t[e],r=n.view;this.renderTitle(r,n)}},t.onDataChange=function(){this._clearFacets(),this.initViews()},t.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},t.destroy=function(){this.onRemove(),this.destroyed=!0},e}();t.exports=h},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(0),o=n(359);n(368);var s=function(t){r(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,a.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),o),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},e.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},n}(i),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(s),l=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(s),c=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(s);s.Stack=u,s.Dodge=l,s.Symmetric=c,i.Interval=s,i.IntervalStack=u,i.IntervalDodge=l,i.IntervalSymmetric=c,t.exports=s},function(t,e,n){var r=n(0),i=n(19),a=n(23),o=n(45),s=n(7),u=n(16),l=r.PathUtil;function c(t,e){var n,i,a=t.x,o=t.y,s=t.y0,u=t.size,l=s,c=o;r.isArray(o)&&(c=o[1],l=o[0]),r.isArray(a)?(n=a[0],i=a[1]):(n=a-u/2,i=a+u/2);var h=[];return h.push({x:n,y:l},{x:n,y:c}),e?h.push({x:i,y:(c+l)/2}):h.push({x:i,y:c},{x:i,y:l}),h}function h(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return e.push(["L",a.x,a.y]),e.push(["z"]),e}function f(t){var e=s.shape.interval,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function p(t){var e=s.shape.hollowInterval,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),n}function g(t,e){var n=[],i=t.points,a=t.nextPoints;return r.isNil(a)?e?n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[2].x,i[2].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",a[1].x,a[1].y],["L",a[0].x,a[0].y],["Z"]),n}function d(t,e){var n,i=e.geom.get("coord"),o=e.point;if(i&&"theta"===i.type){var s=function(t,e){var n,i,o,s,u=e.getRadius(),l=u*e.innerRadius;return!r.isArray(t.x)&&r.isArray(t.y)&&(t.x=[t.x,t.x]),r.isArray(t.x)?(o={x:t.x[0],y:t.y[0]},s={x:t.x[1],y:t.y[1]},n=a.getPointAngle(e,o),(i=a.getPointAngle(e,s))<=n&&(i+=2*Math.PI)):(s=t,n=e.startAngle,i=a.getPointAngle(e,s)),{r:u,ir:l,startAngle:n,endAngle:i}}(o,i),u=(s.endAngle-s.startAngle)/2+s.startAngle;n={transform:[["t",7.5*Math.cos(u),7.5*Math.sin(u)]]}}return r.mix({},n)}var v=i.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){return!t||r.inArray(["rect","funnel","pyramid"],t)?{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}:{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return c(t)},getSelectedCfg:function(t,e){return d(0,e)}});function y(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function x(t,e,n,r,i,a,o){for(var s=2*Math.ceil(2*t/n*4),u=[];r<2*-Math.PI;)r+=2*Math.PI;for(;r>0;)r-=2*Math.PI;var l=a-t+(r=r/Math.PI/2*n)-2*t;u.push(["M",l,e]);for(var c=0,h=0;h<s;++h){var f=y(h*n/4,h%4,n,i);u.push(["C",f[0][0]+l,-f[0][1]+e,f[1][0]+l,-f[1][1]+e,f[2][0]+l,-f[2][1]+e]),h===s-1&&(c=f[2][0])}return u.push(["L",c+l,o+t]),u.push(["L",l,o+t]),u.push(["L",l,e]),u}function m(t,e,n,r,i,a,o,u){for(var l=o.getBBox(),c=l.maxX-l.minX,h=l.maxY-l.minY,f=0;f<r;f++){var p=a.addShape("path",{attrs:{path:x(u,l.minY+h*n,c/4,0,c/64,t,e),fill:i[f],clip:o}});"canvas"===s.renderer&&p.animate({transform:[["t",c/2,0]],repeat:!0},5e3-300*f)}}i.registerShape("interval","rect",{draw:function(t,e){var n=f(t),i=h(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=f(t),n=t.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),i.registerShape("interval","hollowRect",{draw:function(t,e){var n=p(t),i=h(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=p(t),n=t.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),i.registerShape("interval","line",{getPoints:function(t){return n=(e=t).x,i=e.y,a=e.y0,o=[],r.isArray(i)?r.each(i,(function(t,e){o.push({x:r.isArray(n)?n[e]:n,y:t})})):o.push({x:n,y:i},{x:n,y:a}),o;var e,n,i,a,o},draw:function(t,e){var n=p(t);n.lineWidth=t.size||1;var i=h(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=p(t);return r.mix({symbol:"line",radius:5},e)}}),i.registerShape("interval","tick",{getPoints:function(t){return n=(e=t).x,i=r.isArray(e.y)?e.y[1]:e.y,a=r.isArray(e.y)?e.y[0]:e.y0,o=e.size,(s=[]).push({x:n-o/2,y:i},{x:n+o/2,y:i},{x:n,y:i},{x:n,y:a},{x:n-o/2,y:a},{x:n+o/2,y:a}),s;var e,n,i,a,o,s},draw:function(t,e){var n=p(t);n.lineWidth||(n.lineWidth=2);var i=function(t){var e=[];return e.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]),e}(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=p(t);return r.mix({symbol:"tick",radius:5},e)}}),i.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,c(t)},draw:function(t,e){var n=f(t),i=g(t,!0);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=f(t);return r.mix({symbol:"square",radius:4},e)}}),i.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,c(t,!0)},draw:function(t,e){var n=f(t),i=g(t,!1);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=f(t);return r.mix({symbol:"square",radius:4},e)}}),i.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=0,i=1/0;r.each(t.points,(function(t){t.x<i&&(i=t.x),n+=t.x}));var a=n/t.points.length,o=this.parsePoint({x:a,y:.5}),s=this.parsePoint({x:i,y:.5}),l=o.x-s.x,c=Math.min(l,s.y),h=f(t),g=new u.Circle({attrs:{x:o.x,y:o.y,r:c}});return m(o.x,o.y,t.y/(2*o.y),1,[h.fill],e,g,4*c),e.addShape("circle",{attrs:r.mix(p(t),{x:o.x,y:o.y,r:c+c/8})})}});var b={};i.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=r.mix({},f(t)),i=t.shape[1],a=0,o=1/0;r.each(t.points,(function(t){t.x<o&&(o=t.x),a+=t.x}));var s,u=a/t.points.length,c=this.parsePoint({x:u,y:.5}),h=this.parsePoint({x:o,y:.5}),g=c.x-h.x,d=Math.min(g,h.y);if(b[i])s=b[i];else{var v=l.parsePathString(i);b[i]=s={segments:v}}var y=[];n.rotate&&(y.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var x=e.addShape("path",{attrs:r.mix(n,{fillOpacity:0,path:s.segments})}),_=r.cloneDeep(x.getBBox()),w=_.maxX-_.minX,S=_.maxY-_.minY,M=2*d/Math.max(w,S);x.transform(y.concat([["s",M,M]]));var C=M*w/2,A=M*S/2;x.transform([["t",c.x-C,c.y-A]]),m(c.x,c.y,t.y/(2*c.y),1,[n.fill],e,x,4*h.y);var k=e.addShape("path",{attrs:r.mix(p(t),{path:s.segments})});return k.transform(y.concat([["s",M,M],["t",c.x-C,c.y-A]])),k}}),i.registerShape("interval","top-line",{draw:function(t,e){var n=f(t),i=t.style||{},a=[["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]],o={stroke:i.stroke||"white",lineWidth:i.lineWidth||1,path:this.parsePath(a)},s=h(t.points);s=this.parsePath(s),delete n.stroke;var u=e.addShape("path",{attrs:r.mix(n,{zIndex:0,path:s})});return e.addShape("path",{zIndex:1,attrs:o}),u},getMarkerCfg:function(t){var e=f(t),n=t.isInCircle;return r.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=v},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(361);n(370);var o=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(a),s=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Stack=s,i.Line=o,i.LineStack=s,t.exports=o},function(t,e,n){var r=n(0),i=n(23),a=n(45),o=n(19),s=n(7),u=[1,1],l=[5.5,1];function c(t){var e=s.shape.line,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}function h(t){var e=s.shape.line,n=r.mix({lineWidth:2,radius:6},e,t.style);return a.addStrokeAttrs(n,t),n}function f(t,e,n,r){var a;if(e){var o=r.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=i.getSplinePath(t,!1,o)}else a=i.getLinePath(t,!1),n&&a.push(["Z"]);return a}function p(t,e){var n=t.points,i=t.isInCircle,o=n[0];return r.isArray(o.y)?function(t,e,n,r){for(var i=[],o=r.isStack,s=[],u=0;u<t.length;u++){var l=t[u],c=a.splitPoints(l);s.push(c[0]),i.push(c[1])}var h=f(i,e,n,r),p=f(s,e,n,r);return o?h:h.concat(p)}(n,e,i,t):f(n,e,i,t)}function g(t,e){return function(t){var e=[];return r.each(t,(function(t,n){var r=0===n?["M",t.x,t.y]:["L",t.x,t.y];e.push(r)})),e}(function(t,e){var n=[];return r.each(t,(function(r,i){var a=t[i+1];n.push(r),a&&(n=n.concat(e(r,a)))})),n}(t.points,e))}function d(t,e,n){return[["M",t-n,e],["L",t+n,e]]}function v(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}function y(t,e){return r.mix({symbol:e?v:d},h(t))}function x(t,e){return r.mix({symbol:e},h(t))}var m=o.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return a.splitPoints(t)},drawShape:function(t,e,n){var i,a=this.getShape(t);return(i=1===e.points.length&&s.showSinglePoint?function(t,e,n){var i=e.points[0];return n.addShape("circle",{attrs:r.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}(0,e,n):a.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i}});o.registerShape("line","line",{draw:function(t,e){var n=c(t),i=p(t,!1);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return y(t)}}),o.registerShape("line","dot",{draw:function(t,e){var n=c(t),i=p(t,!1);return e.addShape("path",{attrs:r.mix(n,{path:i,lineDash:u})})},getMarkerCfg:function(t){var e=y(t,!1);return e.lineDash=u,e}}),o.registerShape("line","dash",{draw:function(t,e){var n=c(t),i=p(t,!1);return e.addShape("path",{attrs:r.mix({path:i,lineDash:l},n)})},getMarkerCfg:function(t){var e=y(t,!1);return e.lineDash=e.lineDash||l,e}}),o.registerShape("line","smooth",{draw:function(t,e){var n=c(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=p(t,!0);return e.addShape("path",{attrs:r.mix(n,{path:a})})},getMarkerCfg:function(t){return y(t,!0)}}),o.registerShape("line","hv",{draw:function(t,e){var n=c(t),i=g(t,(function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return x(t,(function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}))}}),o.registerShape("line","vh",{draw:function(t,e){var n=c(t),i=g(t,(function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return x(t,(function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}))}}),o.registerShape("line","hvh",{draw:function(t,e){var n=c(t),i=g(t,(function(t,e){var n=[],r=(e.x-t.x)/2+t.x;return n.push({x:r,y:t.y}),n.push({x:r,y:e.y}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return x(t,(function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}))}}),o.registerShape("line","vhv",{draw:function(t,e){var n=c(t),i=g(t,(function(t,e){var n=[],r=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:r}),n.push({x:e.x,y:r}),n}));return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return x(t,(function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}))}}),m.spline=m.smooth,t.exports=m},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(0);n(372);var o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,r){var i,o=this,s=t.shape,u=o.getDrawCfg(t);if(o._applyViewThemeShapeStyle(u,s,n),a.isArray(t.y)){var l=o.hasStack();a.each(t.y,(function(t,a){u.y=t,u.yIndex=a,l&&0===a||(i=n.drawShape(s,u,e),o.appendShapeInfo(i,r+a))}))}else a.isNil(t.y)||(i=n.drawShape(s,u,e),o.appendShapeInfo(i,r))},e}(i),s=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(o),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Jitter=s,o.Stack=u,i.Point=o,i.PointJitter=s,i.PointStack=u,t.exports=o},function(t,e,n){var r=n(0),i=n(45),a=n(7),o=n(19),s=n(16).Marker,u=r.PathUtil,l=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],c=Math.sqrt(3);function h(t){var e=a.shape.point,n=r.mix({},e,t.style);return i.addFillAttrs(n,t),r.isNumber(t.size)&&(n.radius=t.size),n}function f(t){var e=a.shape.hollowPoint,n=r.mix({},e,t.style);return i.addStrokeAttrs(n,t),r.isNumber(t.size)&&(n.radius=t.size),n}r.mix(s.Symbols,{hexagon:function(t,e,n){var r=n/2*c;return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}});var p=o.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n,i=e.radius;return{radius:i+1,shadowBlur:i,shadowColor:n=t&&(0===t.indexOf("hollow")||-1!==r.indexOf(l,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return i.splitPoints(t)}});o.registerShape("point","rect",{draw:function(t,e){var n=h(t),i=function(t){var e=t.points[0].x,n=t.points[0].y,r=t.size[0],i=t.size[1];return[["M",e-.5*r,n-.5*i],["L",e+.5*r,n-.5*i],["L",e+.5*r,n+.5*i],["L",e-.5*r,n+.5*i],["z"]]}(t);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){var e=h(t);return e.symbol="rect",e.radius=4.5,e}}),r.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],(function(t){o.registerShape("point",t,{draw:function(e,n){var i=h(e);return n.addShape("Marker",{attrs:r.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=h(e);return n.symbol=t,n.radius=4.5,n}}),o.registerShape("point","hollow"+r.upperFirst(t),{draw:function(e,n){var i=f(e);return n.addShape("Marker",{attrs:r.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=f(e);return n.symbol=t,n.radius=4.5,n}})})),r.each(l,(function(t){o.registerShape("point",t,{draw:function(e,n){var i=f(e);return n.addShape("Marker",{attrs:r.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=f(e);return n.symbol=t,n.radius=4.5,n}})})),o.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var g={};o.registerShape("point","path",{draw:function(t,e){var n,i=r.mix({},f(t),h(t)),a=t.shape[1],o=t.size||10;if(g[a])n=g[a];else{var s=u.parsePathString(a),l=r.flatten(s).filter((function(t){return r.isNumber(t)}));g[a]=n={range:Math.max.apply(null,l)-Math.min.apply(null,l),segments:s}}var c=o/n.range,p=[];i.rotate&&(p.push(["r",i.rotate/180*Math.PI]),delete i.rotate);var d=e.addShape("path",{attrs:r.mix(i,{path:n.segments})});return p.push(["s",c,c],["t",t.x,t.y]),d.transform(p),d}}),t.exports=p},function(t,e,n){"use strict";var r=n(374);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),e.a=function(t,e,n,r){var a=i;t.sourceEvent=i,i=t;try{return e.apply(n,r)}finally{i=a}};var r={},i=null;function a(t,e,n){return t=o(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function o(t,e,n){return function(r){var a=i;i=r;try{t.call(this,this.__data__,e,n)}finally{i=a}}}function s(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function l(t,e,n){var i=r.hasOwnProperty(t.type)?a:o;return function(r,a,o){var s,u=this.__on,l=i(e,a,o);if(u)for(var c=0,h=u.length;c<h;++c)if((s=u[c]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},u?u.push(s):this.__on=[s]}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"})),e.b=function(t,e,n){var r,i,a=s(t+""),o=a.length;if(!(arguments.length<2)){for(c=e?l:u,null==n&&(n=!1),r=0;r<o;++r)this.each(c(a[r],e,n));return this}var c=this.node().__on;if(c)for(var h,f=0,p=c.length;f<p;++f)for(r=0,h=c[f];r<o;++r)if((i=a[r]).type===h.type&&i.name===h.name)return h.value}},function(t,e,n){"use strict";var r=n(377);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";n(380),n(395),n(381),n(393),n(396),n(456),n(457);var r=n(364);n.d(e,"a",(function(){return r.a})),n(397),n(458);var i=n(398);n.d(e,"c",(function(){return i.a}));var a=n(459);n.d(e,"d",(function(){return a.a})),n.d(e,"e",(function(){return a.b})),n(462);var o=n(392);n.d(e,"b",(function(){return o.a})),n(463),n(464),n(465),n(466),n(467),n(468)},function(t,e,n){"use strict";var r=n(17),i=n(392),a=n(395),o=n(396),s=n(364),u=n(397),l=n(398),c=n(394);e.a=function(t,e){var n,h=typeof e;return null==e||"boolean"===h?Object(c.a)(e):("number"===h?s.a:"string"===h?(n=Object(r.a)(e))?(e=n,i.a):l.a:e instanceof r.a?i.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,u)}}},function(t,e){t.exports=function(t){return(t.get("scaleController")||{}).defs}},function(t,e,n){var r=n(382);t.exports=function(t,e){var n=r(t);if(n&&n[e])return n[e]}},function(t,e,n){var r=n(0),i=n(71);t.exports=function(t,e){var n,a=e.field,o=e.type,s=r.Array.values(t,a);return"linear"===o?(n=r.Array.getRange(s),e.min<n.min&&(n.min=e.min),e.max>n.max&&(n.max=e.max)):"timeCat"===o?(r.each(s,(function(t,e){s[e]=i.toTimeStamp(t)})),s.sort((function(t,e){return t-e})),n=s):n=s,n}},function(t,e,n){"use strict";var r=n(70);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},function(t,e,n){"use strict";e.a=a;var r=n(389),i=n(70);function a(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.b=function(){return new i.a(this._enter||this._groups.map(r.a),this._parents)},a.prototype={constructor:a,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";e.b=s;var r=n(376);function i(t){return function(){this.style.removeProperty(t)}}function a(t,e,n){return function(){this.style.setProperty(t,e,n)}}function o(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function s(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=function(t,e,n){return arguments.length>1?this.each((null==e?i:"function"==typeof e?o:a)(t,e,null==n?"":n)):s(this.node(),t)}},function(t,e,n){"use strict";var r=n(46);e.a=function(t,e){var n,i,a,o=t.__transition,s=!0;if(o){for(a in e=null==e?null:e+"",o)(n=o[a]).name===e?(i=n.state>r.d&&n.state<r.b,n.state=r.a,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[a]):s=!1;s&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(17),i=n(381),a=n(393),o=n(174);function s(t){return function(e){var n,i,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(e[n]),o[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return o=t(o),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=u(t),i+""}}}e.a=function t(e){var n=Object(o.b)(e);function i(t,e){var i=n((t=Object(r.f)(t)).r,(e=Object(r.f)(e)).r),a=n(t.g,e.g),s=n(t.b,e.b),u=Object(o.a)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=s(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1),s(i.b),s(a.a)},function(t,e,n){"use strict";var r=n(381);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r.a)((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(380);e.a=function(t,e){var n,i=e?e.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(380);e.a=function(t,e){var n,i={},a={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Object(r.a)(t[n],e[n]):a[n]=e[n];return function(t){for(n in i)a[n]=i[n](t);return a}}},function(t,e,n){"use strict";var r=n(364),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.a=function(t,e){var n,o,s,u=i.lastIndex=a.lastIndex=0,l=-1,c=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(n=n[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,h.push({i:l,x:Object(r.a)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)c[(n=h[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";var r=n(17),i=n(379);e.a=function(t,e){var n;return("number"==typeof e?i.a:e instanceof r.a?i.b:(n=Object(r.a)(e))?(e=n,i.b):i.c)(t,e)}},function(t,e,n){var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="rect",e},i.generateFacets=function(t){var e=this,n=e.fields,r=[],i=1,a=1,o=n[0],s=n[1],u=[""],l=[""];return o&&(u=e.getFieldValues(o,t),a=u.length),s&&(l=e.getFieldValues(s,t),i=l.length),u.forEach((function(n,c){l.forEach((function(h,f){var p=[{field:o,value:n,values:u},{field:s,value:h,values:l}],g=e.getFilter(p),d=t.filter(g),v={type:e.type,colValue:n,rowValue:h,colField:o,rowField:s,colIndex:c,rowIndex:f,cols:a,rows:i,data:d,region:e.getRegion(i,a,c,f)};r.push(v)}))})),r},i.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},i.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},i.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},r}(n(366));t.exports=r},function(t,e,n){var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="list",e.cols=null,e},i.generateFacets=function(t){var e=this,n=e.fields[0];if(!n)throw"Please specify for the field for facet!";var r=e.getFieldValues(n,t),i=r.length,a=e.cols||i,o=parseInt((i+a-1)/a),s=[];return r.forEach((function(u,l){var c=parseInt(l/a),h=l%a,f=[{field:n,value:u,values:r}],p=e.getFilter(f),g=t.filter(p),d={type:e.type,count:i,colValue:u,colField:n,rowField:null,rowValue:u,colIndex:h,rowIndex:c,cols:a,rows:o,data:g,region:e.getRegion(o,a,h,c)};s.push(d)})),s},i.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(e[t].label=null,e[t].title=null)},i.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},r}(n(366));t.exports=r},function(t,e,n){var r=n(172);n(403),n(405),n(407),n(367),n(369),n(361),n(371),n(408),n(410),n(412),n(487),n(489),n(494),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(360),o=n(0);n(404);var s=function(t){r(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,o.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),a),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},e.draw=function(t,e,n,r){var i=this,a=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(a,a.shape,n);var s=this.splitData(t);a.origin=t,o.each(s,(function(t,o){a.splitedIndex=o;var s=t.map((function(t){return t.points}));a.points=s;var u=n.drawShape(a.shape,a,e);i.appendShapeInfo(u,r+o)}))},n}(i),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(s);s.Stack=u,i.Area=s,i.AreaStack=u,t.exports=s},function(t,e,n){var r=n(0),i=n(19),a=n(23),o=n(45),s=n(7);function u(t){var e=s.shape.hollowArea,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),r.isNumber(t.size)&&(n.lineWidth=t.size),n}function l(t){var e=s.shape.area,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),r.isNumber(t.size)&&(n.lineWidth=t.size),n}function c(t,e,n){var i=[],o=[],s=[],u=[],l=t.isInCircle;return r.each(t.points,(function(t){s.push(t[1]),u.push(t[0])})),u=u.reverse(),o.push(s,u),r.each(o,(function(r,o){var s=[],u=(r=n.parsePoints(r))[0];l&&r.push({x:u.x,y:u.y}),s=e?a.getSplinePath(r,!1,t.constraint):a.getLinePath(r,!1),o>0&&(s[0][0]="L"),i=i.concat(s)})),i.push(["Z"]),i}function h(t){return{symbol:function(t,e,n){return[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},radius:5,fill:t.color,fillOpacity:.6}}var f=i.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,i=t.y,a=t.y0;return i=r.isArray(i)?i:[a,i],r.each(i,(function(t){e.push({x:n,y:t})})),e},getActiveCfg:function(t,e){return function(t,e){if("line"===t||"smoothLine"===t)return{lineWidth:(e.lineWidth||0)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}(t,e)},drawShape:function(t,e,n){var i,a=this.getShape(t);return(i=1===e.points.length&&s.showSinglePoint?function(t,e,n){var i=t._coord.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:r.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}(this,e,n):a.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("area","area",{draw:function(t,e){var n=l(t),i=c(t,!1,this);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return h(t)}}),i.registerShape("area","smooth",{draw:function(t,e){var n=l(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=c(t,!0,this);return e.addShape("path",{attrs:r.mix(n,{path:a})})},getMarkerCfg:function(t){return h(t)}}),i.registerShape("area","line",{draw:function(t,e){var n=u(t),i=c(t,!1,this);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return h(t)}}),i.registerShape("area","smoothLine",{draw:function(t,e){var n=u(t),i=c(t,!0,this);return e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return h(t)}}),f.spline=f.smooth,t.exports=f},function(t,e,n){var r=n(21);n(406);var i=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e},r}(r);r.Edge=i,t.exports=i},function(t,e,n){var r=n(0),i=n(19),a=n(45),o=n(7),s=n(23),u=1/3;function l(t){var e=o.shape.edge,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}var c=i.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return a.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});function h(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var i=["C"];return r.each(n,(function(t){i.push(t.x,t.y)})),i}function f(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return r.each(n,(function(t){i.push(t.x,t.y)})),i}i.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),i=l(t),a=s.getLinePath(n);return e.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,i=l(t),a=function(t,e){var n=[];n.push({y:t.y*(1-u)+e.y*u,x:t.x}),n.push({y:t.y*(1-u)+e.y*u,x:e.x}),n.push(e);var i=[["M",t.x,t.y]];return r.each(n,(function(t){i.push(["L",t.x,t.y])})),i}(n[0],n[1]);return a=this.parsePath(a),e.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,i=l(t),a=function(t,e){var n=h(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(n[0],n[1]);return a=this.parsePath(a),e.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),i.registerShape("edge","arc",{draw:function(t,e){var n,i,a=t.points,o=a.length>2?"weight":"normal",s=l(t);if(t.isInCircle){var u={x:0,y:1};"normal"===o?i=function(t,e,n){var r=f(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(a[0],a[1],u):(s.fill=s.stroke,i=function(t,e){var n=f(t[1],e),r=f(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(a,u)),i=this.parsePath(i),n=e.addShape("path",{attrs:r.mix(s,{path:i})})}else if("normal"===o)a=this.parsePoints(a),n=e.addShape("arc",{attrs:r.mix(s,{x:(a[1].x+a[0].x)/2,y:a[0].y,r:Math.abs(a[1].x-a[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{i=[["M",a[0].x,a[0].y],["L",a[1].x,a[1].y]];var c=h(a[1],a[3]),p=h(a[2],a[0]);i.push(c),i.push(["L",a[3].x,a[3].y]),i.push(["L",a[2].x,a[2].y]),i.push(p),i.push(["Z"]),i=this.parsePath(i),s.fill=s.stroke,n=e.addShape("path",{attrs:r.mix(s,{path:i})})}return n},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4.5},l(t))}}),t.exports=c},function(t,e,n){var r=n(73).ColorUtil,i=n(21),a=n(0),o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="heatmap",e.paletteCache={},e},o._prepareRange=function(){var t=this.get("mappedData"),e=this.getAttr("color").field,n=1/0,r=-1/0;t.forEach((function(t){var i=t._origin[e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1);var i=[n,r];this.set("valueRange",i)},o._prepareSize=function(){var t=this.getDefaultValue("size");a.isNumber(t)||(t=this._getDefaultSize());var e=this.get("styleOptions"),n=e&&a.isObject(e.style)?e.style.blur:null;a.isFinite(n)&&null!==n||(n=t/2),this.set("heatmapSize",{blur:n,radius:t})},o._getDefaultSize=function(){var t=this.getAttr("position"),e=this.get("coord");return Math.min(e.width/(4*t.scales[0].ticks.length),e.height/(4*t.scales[1].ticks.length))},o._colorize=function(t){for(var e=this.getAttr("color"),n=t.data,i=this.get("paletteCache"),a=3;a<n.length;a+=4){var o=n[a];if(o){var s=void 0;i[o]?s=i[o]:(s=r.rgb2arr(e.gradient(o/256)),i[o]=s),n[a-3]=s[0],n[a-2]=s[1],n[a-1]=s[2],n[a]=o}}},o._prepareGreyScaleBlurredCircle=function(t,e){var n=this.get("grayScaleBlurredCanvas");n||(n=document.createElement("canvas"),this.set("grayScaleBlurredCanvas",n));var r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},o._drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.get("grayScaleBlurredCanvas");i.globalAlpha=r,i.drawImage(a,t-n,e-n)},o._getShadowCanvasCtx=function(){var t=this.get("shadowCanvas");t||(t=document.createElement("canvas"),this.set("shadowCanvas",t));var e=this.get("coord");return e&&(t.width=e.width,t.height=e.height),t.getContext("2d")},o._clearShadowCanvasCtx=function(){var t=this._getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},o._getImageShape=function(){var t=this.get("imageShape");return t||(t=this.get("container").addShape("Image",{}),this.set("imageShape",t),t)},o.clear=function(){this._clearShadowCanvasCtx(),t.prototype.clear.call(this)},o.drawWithRange=function(t){var e=this.get("coord"),n=e.start,r=e.end,i=e.width,a=e.height,o=this.getAttr("color").field,s=this.get("heatmapSize");this._clearShadowCanvasCtx();var u=this._getShadowCanvasCtx(),l=this.get("mappedData");t&&(l=l.filter((function(e){return e._origin[o]<=t[1]&&e._origin[o]>=t[0]})));for(var c=this._getScale(o),h=0;h<l.length;h++){var f=l[h],p=this.getDrawCfg(f),g=c.scale(f._origin[o]);this._drawGrayScaleBlurredCircle(p.x-n.x,p.y-r.y,s.radius+s.blur,g,u)}var d=u.getImageData(0,0,i,a);this._clearShadowCanvasCtx(),this._colorize(d),u.putImageData(d,0,0);var v=this._getImageShape();v.attr("x",n.x),v.attr("y",r.y),v.attr("width",i),v.attr("height",a),v.attr("img",u.canvas)},o.draw=function(t){this.set("mappedData",t),this._prepareRange(),this._prepareSize();var e=this.get("heatmapSize");this._prepareGreyScaleBlurredCircle(e.radius,e.blur);var n=this.get("valueRange");this.drawWithRange(n)},i}(i);i.Heatmap=o,t.exports=o},function(t,e,n){var r=n(21),i=n(0);n(409);var a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},a.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!i.isArray(a)||!i.isArray(o)){var s=this.getXScale(),u=this.getYScale(),l=.5/(s.values?s.values.length:s.ticks.length),c=.5/(u.values?u.values.length:u.ticks.length);s.isCategory&&u.isCategory?(a=[a-l,a-l,a+l,a+l],o=[o-c,o+c,o+c,o-c]):i.isArray(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):i.isArray(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-l/2,a-l/2,a+l/2,a+l/2]),r.x=a,r.y=o}return r},r}(r);r.Polygon=a,t.exports=a},function(t,e,n){var r=n(0),i=n(19),a=n(45),o=n(7);function s(t){var e=o.shape.polygon,n=r.mix({},e,t.style);return a.addFillAttrs(n,t),n}function u(t){for(var e=t[0],n=1,i=[["M",e.x,e.y]];n<t.length;){var a=t[n];a.x===t[n-1].x&&a.y===t[n-1].y||(i.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return r.isEqual(i[i.length-1],e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}var l=i.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return r.each(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e},getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("polygon","polygon",{draw:function(t,e){if(!r.isEmpty(t.points)){var n=s(t),i=u(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})}},getMarkerCfg:function(t){return r.mix({symbol:"square",radius:4},s(t))}}),i.registerShape("polygon","hollow",{draw:function(t,e){if(!r.isEmpty(t.points)){var n=function(t){var e=o.shape.hollowPolygon,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}(t),i=u(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})}},getMarkerCfg:function(t){return r.mix({symbol:"square",radius:4},s(t))}}),t.exports=l},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(0),o=n(359);n(411);var s=function(t){r(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,a.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),o),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},e.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},n}(i),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(s);s.Dodge=u,i.Schema=s,i.SchemaDodge=u,t.exports=s},function(t,e,n){var r=n(0),i=n(19),a=n(45),o=n(7);function s(t){r.isArray(t)||(t=[t]);var e=t[0],n=t[t.length-1],i=t.length>1?t[1]:e;return{min:e,max:n,min1:i,max1:t.length>3?t[3]:n,median:t.length>2?t[2]:i}}function u(t,e,n){var i,a,o,u,l=[];return r.isArray(e)?i=[[t-n/2,(a=s(e)).max],[t+n/2,a.max],[t,a.max],[t,a.max1],[t-n/2,a.min1],[t-n/2,a.max1],[t+n/2,a.max1],[t+n/2,a.min1],[t,a.min1],[t,a.min],[t-n/2,a.min],[t+n/2,a.min],[t-n/2,a.median],[t+n/2,a.median]]:(e=e||.5,i=[[(a=s(t)).min,e-n/2],[a.min,e+n/2],[a.min,e],[a.min1,e],[a.min1,e-n/2],[a.min1,e+n/2],[a.max1,e+n/2],[a.max1,e-n/2],[a.max1,e],[a.max,e],[a.max,e-n/2],[a.max,e+n/2],[a.median,e-n/2],[a.median,e+n/2]]),o=i,u=l,r.each(o,(function(t){u.push({x:t[0],y:t[1]})})),l}function l(t,e,n){var i=function(t){r.isArray(t)||(t=[t]);var e=t.sort((function(t,e){return t<e?1:-1})),n=e.length;if(n<4)for(var i=e[n-1],a=0;a<4-n;a++)e.push(i);return e}(e);return[{x:t,y:i[0]},{x:t,y:i[1]},{x:t-n/2,y:i[2]},{x:t-n/2,y:i[1]},{x:t+n/2,y:i[1]},{x:t+n/2,y:i[2]},{x:t,y:i[2]},{x:t,y:i[3]}]}var c=i.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(t,e){if("box"===t)return{lineWidth:(e.lineWidth||1)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("schema","box",{getPoints:function(t){return u(t.x,t.y,t.size)},draw:function(t,e){var n,i=function(t){var e=o.shape.schema,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}(t),s=[["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]];return s=this.parsePath(s),e.addShape("path",{attrs:r.mix(i,{path:s})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=u(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},radius:6,lineWidth:1,stroke:t.color}}}),i.registerShape("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=function(t){var e=o.shape.schema,n=r.mix({},e,t.style);return a.addFillAttrs(n,t),t.color&&(n.stroke=t.color||n.stroke),n}(t),s=[["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]];return s=this.parsePath(s),e.addShape("path",{attrs:r.mix(i,{path:s})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=l(t,e=[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},lineWidth:1,stroke:t.color,fill:t.color,radius:6}}}),t.exports=c},function(t,e,n){var r=n(21),i=n(0),a=n(413),o=a.venn,s=a.scaleSolution,u=a.circlePath,l=a.intersectionAreaPath,c=a.computeTextCentres;n(486);var h=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="venn",e.shapeType="venn",e.generatePoints=!1,e},a._getAttrValues=function(e,n){return"position"===e.type?[n.x,n.y]:t.prototype._getAttrValues.call(this,e,n)},a.sets=function(t){return this.set("setsField",t),this},a._initAttrs=function(){t.prototype._initAttrs.call(this);var e=this.get("attrOptions"),n=this.get("setsField")||"sets",r=this.get("data"),a=e.size?e.size.field:"size";r.forEach((function(t){t.sets=t[n],t._sets=t[n].join("&"),t.size=t[a]}));var h=o(r),f=this.get("coord"),p=[Math.min(f.x.end,f.x.start),Math.max(f.x.end,f.x.start)],g=[Math.min(f.y.end,f.y.start),Math.max(f.y.end,f.y.start)],d=p[1]-p[0],v=g[1]-g[0],y=this.get("styleOptions"),x=y&&i.isObject(y.style)?y.style.padding:0;i.isFinite(x)||(x=0);var m=s(h,d,v,x),b=c(m,r);r.forEach((function(t){var e=t.sets,n=e.join(",");if(t.id=n,1===e.length){var r=m[n];t.path=u(r.x,r.y,r.radius),i.assign(t,r)}else{var a=e.map((function(t){return m[t]})),o=l(a);/[zZ]$/.test(o)||(o+="Z"),t.path=o;var s=b[n]||{x:0,y:0};i.assign(t,s)}}))},r}(r);r.Venn=h,t.exports=h},function(t,e,n){!function(t,e,n){"use strict";var r=1e-10;function i(t,e){var n,i=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=u(t[n],t[r]),a=0;a<i.length;++a){var o=i[a];o.parentIndex=[n,r],e.push(o)}return e}(t),s=i.filter((function(e){return function(t,e){for(var n=0;n<e.length;++n)if(o(t,e[n])>e[n].radius+r)return!1;return!0}(e,t)})),c=0,h=0,f=[];if(s.length>1){var p=l(s);for(n=0;n<s.length;++n){var g=s[n];g.angle=Math.atan2(g.x-p.x,g.y-p.y)}s.sort((function(t,e){return e.angle-t.angle}));var d=s[s.length-1];for(n=0;n<s.length;++n){var v=s[n];h+=(d.x+v.x)*(v.y-d.y);for(var y={x:(v.x+d.x)/2,y:(v.y+d.y)/2},x=null,m=0;m<v.parentIndex.length;++m)if(d.parentIndex.indexOf(v.parentIndex[m])>-1){var b=t[v.parentIndex[m]],_=Math.atan2(v.x-b.x,v.y-b.y),w=Math.atan2(d.x-b.x,d.y-b.y),S=w-_;S<0&&(S+=2*Math.PI);var M=w-S/2,C=o(y,{x:b.x+b.radius*Math.sin(M),y:b.y+b.radius*Math.cos(M)});C>2*b.radius&&(C=2*b.radius),(null===x||x.width>C)&&(x={circle:b,width:C,p1:v,p2:d})}null!==x&&(f.push(x),c+=a(x.circle.radius,x.width),d=v)}}else{var A=t[0];for(n=1;n<t.length;++n)t[n].radius<A.radius&&(A=t[n]);var k=!1;for(n=0;n<t.length;++n)if(o(t[n],A)>Math.abs(A.radius-t[n].radius)){k=!0;break}k?c=h=0:(c=A.radius*A.radius*Math.PI,f.push({circle:A,p1:{x:A.x,y:A.y+A.radius},p2:{x:A.x-r,y:A.y+A.radius},width:2*A.radius}))}return h/=2,e&&(e.area=c+h,e.arcArea=c,e.polygonArea=h,e.arcs=f,e.innerPoints=s,e.intersectionPoints=i),c+h}function a(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function o(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function s(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return a(t,t-(n*n-e*e+t*t)/(2*n))+a(e,r)}function u(t,e){var n=o(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var a=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-a*a),u=t.x+a*(e.x-t.x)/n,l=t.y+a*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:u+c,y:l-h},{x:u-c,y:l+h}]}function l(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function c(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function h(t,e){return c(t).map((function(){return c(e)}))}function f(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function p(t){return Math.sqrt(f(t,t))}function g(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function d(t,e,n,r,i){for(var a=0;a<t.length;++a)t[a]=e*n[a]+r*i[a]}function v(t,e,n){var r,i=(n=n||{}).maxIterations||200*e.length,a=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,s=n.minErrorDelta||1e-6,u=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,f=void 0!==n.sigma?n.sigma:.5,p=e.length,g=new Array(p+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var v=0;v<p;++v){var y=e.slice();y[v]=y[v]?y[v]*a:o,g[v+1]=y,g[v+1].fx=t(y),g[v+1].id=v+1}function x(t){for(var e=0;e<t.length;e++)g[p][e]=t[e];g[p].fx=t.fx}for(var m=function(t,e){return t.fx-e.fx},b=e.slice(),_=e.slice(),w=e.slice(),S=e.slice(),M=0;M<i;++M){if(g.sort(m),n.history){var C=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));C.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:C})}for(r=0,v=0;v<p;++v)r=Math.max(r,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[p].fx)<s&&r<u)break;for(v=0;v<p;++v){b[v]=0;for(var A=0;A<p;++A)b[v]+=g[A][v];b[v]/=p}var k=g[p];if(d(_,1+l,b,-l,k),_.fx=t(_),_.fx<g[0].fx)d(S,1+c,b,-c,k),S.fx=t(S),S.fx<_.fx?x(S):x(_);else if(_.fx>=g[p-1].fx){var P=!1;if(_.fx>k.fx?(d(w,1+h,b,-h,k),w.fx=t(w),w.fx<k.fx?x(w):P=!0):(d(w,1-h*l,b,h*l,k),w.fx=t(w),w.fx<_.fx?x(w):P=!0),P){if(f>=1)break;for(v=1;v<g.length;++v)d(g[v],1-f,g[0],f,g[v]),g[v].fx=t(g[v])}}else x(_)}return g.sort(m),{fx:g[0].fx,x:g[0]}}function y(t,e,n,r,i,a,o){var s=n.fx,u=f(n.fxprime,e),l=s,c=s,h=u,p=0;function g(c,p,g){for(var v=0;v<16;++v)if(i=(c+p)/2,d(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),h=f(r.fxprime,e),l>s+a*i*u||l>=g)p=i;else{if(Math.abs(h)<=-o*u)return i;h*(p-c)>=0&&(p=c),c=i,g=l}return 0}i=i||1,a=a||1e-6,o=o||.1;for(var v=0;v<10;++v){if(d(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),h=f(r.fxprime,e),l>s+a*i*u||v&&l>=c)return g(p,i,c);if(Math.abs(h)<=-o*u)return i;if(h>=0)return g(i,p,l);c=l,p=i,i*=2}return i}function x(t,e,n){var r,i,a,o={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),l=1;a=(n=n||{}).maxIterations||20*e.length,o.fx=t(o.x,o.fxprime),g(r=o.fxprime.slice(),o.fxprime,-1);for(var c=0;c<a;++c){if(l=y(t,r,o,s,l),n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:l}),l){d(u,1,s.fxprime,-1,o.fxprime);var h=f(o.fxprime,o.fxprime);d(r,Math.max(0,f(u,s.fxprime)/h),r,-1,s.fxprime),i=o,o=s,s=i}else g(r,o.fxprime,-1);if(p(o.fxprime)<=1e-5)break}return n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:l}),o}function m(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,r=e.initialLayout||w,i=e.lossFunction||M,a=r(t=function(t){t=t.slice();var e,n,r,i,a=[],o={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?a.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],o[[r,i]]=!0,o[[i,r]]=!0)}for(a.sort((function(t,e){return t>e})),e=0;e<a.length;++e)for(r=a[e],n=e+1;n<a.length;++n)i=a[n],[r,i]in o||t.push({sets:[r,i],size:0});return t}(t),e),o=[],s=[];for(n in a)a.hasOwnProperty(n)&&(o.push(a[n].x),o.push(a[n].y),s.push(n));for(var u=v((function(e){for(var n={},r=0;r<s.length;++r){var o=s[r];n[o]={x:e[2*r],y:e[2*r+1],radius:a[o].radius}}return i(n,t)}),o,e).x,l=0;l<s.length;++l)n=s[l],a[n].x=u[2*l],a[n].y=u[2*l+1];return a}var b=1e-10;function _(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+b?Math.abs(t-e):function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),s=t(n),u=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var l=0;l<i;++l){var c=e+(u/=2),h=t(c);if(h*o>=0&&(e=c),Math.abs(u)<a||0===h)return c}return e+u}((function(r){return s(t,e,r)-n}),0,t+e)}function w(t,e){var n=S(t,e),r=e.lossFunction||M;if(t.length>=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],a={};for(n=0;n<t.length;++n){var o=t[n];1==o.sets.length&&(a[o.sets[0]]=i.length,i.push(o))}var s=function(t,e,n){var r=h(e.length,e.length),i=h(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var a=n[t.sets[0]],o=n[t.sets[1]],s=_(Math.sqrt(e[a].size/Math.PI),Math.sqrt(e[o].size/Math.PI),t.size);r[a][o]=r[o][a]=s;var u=0;t.size+1e-10>=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),i[a][o]=i[o][a]=u})),{distances:r,constraints:i}}(t,i,a),u=s.distances,l=s.constraints,f=p(u.map(p))/u.length;u=u.map((function(t){return t.map((function(t){return t/f}))}));var d,v,y=function(t,e){return function(t,e,n,r){var i,a=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var o=t[2*i],s=t[2*i+1],u=i+1;u<n.length;++u){var l=t[2*u],c=t[2*u+1],h=n[i][u],f=r[i][u],p=(l-o)*(l-o)+(c-s)*(c-s),g=Math.sqrt(p),d=p-h*h;f>0&&g<=h||f<0&&g>=h||(a+=2*d*d,e[2*i]+=4*d*(o-l),e[2*i+1]+=4*d*(s-c),e[2*u]+=4*d*(l-o),e[2*u+1]+=4*d*(c-s))}return a}(t,e,u,l)};for(n=0;n<r;++n){var m=c(2*u.length).map(Math.random);v=x(y,m,e),(!d||v.fx<d.fx)&&(d=v)}var b=d.x,w={};for(n=0;n<i.length;++n){var S=i[n];w[S.sets[0]]={x:b[2*n]*f,y:b[2*n+1]*f,radius:Math.sqrt(S.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)g(e.history[n].x,f);return w}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function S(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:M,i={},a={},o=0;o<t.length;++o){var s=t[o];1==s.sets.length&&(n=s.sets[0],i[n]={x:1e10,y:1e10,rowid:i.length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},a[n]=[])}for(t=t.filter((function(t){return 2==t.sets.length})),o=0;o<t.length;++o){var l=t[o],c=l.hasOwnProperty("weight")?l.weight:1,h=l.sets[0],f=l.sets[1];l.size+b>=Math.min(i[h].size,i[f].size)&&(c=0),a[h].push({set:f,size:l.size,weight:c}),a[f].push({set:h,size:l.size,weight:c})}var p=[];for(n in a)if(a.hasOwnProperty(n)){var g=0;for(o=0;o<a[n].length;++o)g+=a[n][o].size*a[n][o].weight;p.push({set:n,size:g})}function d(t,e){return e.size-t.size}p.sort(d);var v={};function y(t){return t.set in v}function x(t,e){i[e].x=t.x,i[e].y=t.y,v[e]=!0}for(x({x:0,y:0},p[0].set),o=1;o<p.length;++o){var m=p[o].set,w=a[m].filter(y);if(n=i[m],w.sort(d),0===w.length)throw"ERROR: missing pairwise overlap information";for(var S=[],C=0;C<w.length;++C){var A=i[w[C].set],k=_(n.radius,A.radius,w[C].size);S.push({x:A.x+k,y:A.y}),S.push({x:A.x-k,y:A.y}),S.push({y:A.y+k,x:A.x}),S.push({y:A.y-k,x:A.x});for(var P=C+1;P<w.length;++P)for(var O=i[w[P].set],T=_(n.radius,O.radius,w[P].size),I=u({x:A.x,y:A.y,radius:k},{x:O.x,y:O.y,radius:T}),L=0;L<I.length;++L)S.push(I[L])}var j=1e50,E=S[0];for(C=0;C<S.length;++C){i[m].x=S[C].x,i[m].y=S[C].y;var D=r(i,t);D<j&&(j=D,E=S[C])}x(E,m)}return i}function M(t,e){for(var n=0,r=0;r<e.length;++r){var a,u=e[r];if(1!=u.sets.length){if(2==u.sets.length){var l=t[u.sets[0]],c=t[u.sets[1]];a=s(l.radius,c.radius,o(l,c))}else a=i(u.sets.map((function(e){return t[e]})));n+=(u.hasOwnProperty("weight")?u.weight:1)*(a-u.size)*(a-u.size)}}return n}function C(t,e,n){var r;if(null===n?t.sort((function(t,e){return e.radius-t.radius})):t.sort(n),t.length>0){var i=t[0].x,a=t[0].y;for(r=0;r<t.length;++r)t[r].x-=i,t[r].y-=a}if(2==t.length&&o(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){var s,u,l=Math.atan2(t[1].x,t[1].y)-e,c=Math.cos(l),h=Math.sin(l);for(r=0;r<t.length;++r)s=t[r].x,u=t[r].y,t[r].x=c*s-h*u,t[r].y=h*s+c*u}if(t.length>2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var g=(t[r].x+p*t[r].y)/(1+p*p);t[r].x=2*g-t[r].x,t[r].y=2*g*p-t[r].y}}}}function A(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}t.map((function(t){t.parent=t}));for(var n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r){var i=t[n].radius+t[r].radius;o(t[n],t[r])+1e-10<i&&(a=t[r],s=t[n],u=void 0,l=void 0,u=e(a),l=e(s),u.parent=l)}var a,s,u,l,c,h={};for(n=0;n<t.length;++n)(c=e(t[n]).parent.setid)in h||(h[c]=[]),h[c].push(t[n]);t.map((function(t){delete t.parent}));var f=[];for(c in h)h.hasOwnProperty(c)&&f.push(h[c]);return f}function k(t){var e=function(e){return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}function P(t,e,n){null===e&&(e=Math.PI/2);var r,i,a=[];for(i in t)if(t.hasOwnProperty(i)){var o=t[i];a.push({x:o.x,y:o.y,radius:o.radius,setid:i})}var s=A(a);for(r=0;r<s.length;++r){C(s[r],e,n);var u=k(s[r]);s[r].size=(u.xRange.max-u.xRange.min)*(u.yRange.max-u.yRange.min),s[r].bounds=u}s.sort((function(t,e){return e.size-t.size}));var l=(a=s[0]).bounds,c=(l.xRange.max-l.xRange.min)/50;function h(t,e,n){if(t){var r,i,o,s=t.bounds;e?r=l.xRange.max-s.xRange.min+c:(r=l.xRange.max-s.xRange.max,(o=(s.xRange.max-s.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(r+=o)),n?i=l.yRange.max-s.yRange.min+c:(i=l.yRange.max-s.yRange.max,(o=(s.yRange.max-s.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(i+=o));for(var u=0;u<t.length;++u)t[u].x+=r,t[u].y+=i,a.push(t[u])}}for(var f=1;f<s.length;)h(s[f],!0,!1),h(s[f+1],!1,!0),h(s[f+2],!0,!0),f+=3,l=k(a);var p={};for(r=0;r<a.length;++r)p[a[r].setid]=a[r];return p}function O(t,e,n,r){var i=[],a=[];for(var o in t)t.hasOwnProperty(o)&&(a.push(o),i.push(t[o]));e-=2*r,n-=2*r;var s=k(i),u=s.xRange,l=s.yRange;if(u.max==u.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var c=e/(u.max-u.min),h=n/(l.max-l.min),f=Math.min(h,c),p=(e-(u.max-u.min)*f)/2,g=(n-(l.max-l.min)*f)/2,d={},v=0;v<i.length;++v){var y=i[v];d[a[v]]={radius:f*y.radius,x:r+p+(y.x-u.min)*f,y:r+g+(y.y-l.min)*f}}return d}function T(t,n){return function(){for(var r,i=e.select(this),a=i.datum(),o=t[a.sets[0]].radius||50,s=n(a)||"",u=s.split(/\s+/).reverse(),l=(s.length+u.length)/3,c=u.pop(),h=[c],f=0,p=i.text(null).append("tspan").text(c);c=u.pop();)h.push(c),r=h.join(" "),p.text(r),r.length>l&&p.node().getComputedTextLength()>o&&(h.pop(),p.text(h.join(" ")),h=[c],p=i.append("tspan").text(c),f++);var g=.35-1.1*f/2,d=i.attr("x"),v=i.attr("y");i.selectAll("tspan").attr("x",d).attr("y",v).attr("dy",(function(t,e){return g+1.1*e+"em"}))}}function I(t,e,n){var r,i,a=e[0].radius-o(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-o(e[r],t))<=a&&(a=i);for(r=0;r<n.length;++r)(i=o(n[r],t)-n[r].radius)<=a&&(a=i);return a}function L(t,e){var n,r=[];for(n=0;n<t.length;++n){var a=t[n];r.push({x:a.x,y:a.y}),r.push({x:a.x+a.radius/2,y:a.y}),r.push({x:a.x-a.radius/2,y:a.y}),r.push({x:a.x,y:a.y+a.radius/2}),r.push({x:a.x,y:a.y-a.radius/2})}var s=r[0],u=I(r[0],t,e);for(n=1;n<r.length;++n){var c=I(r[n],t,e);c>=u&&(s=r[n],u=c)}var h=v((function(n){return-1*I({x:n[0],y:n[1]},t,e)}),[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,f={x:h[0],y:h[1]},p=!0;for(n=0;n<t.length;++n)if(o(f,t[n])>t[n].radius){p=!1;break}for(n=0;n<e.length;++n)if(o(f,e[n])<e[n].radius){p=!1;break}if(!p)if(1==t.length)f={x:t[0].x,y:t[0].y};else{var g={};i(t,g),f=0===g.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==g.arcs.length?{x:g.arcs[0].circle.x,y:g.arcs[0].circle.y}:e.length?L(t,[]):l(g.arcs.map((function(t){return t.p1})))}return f}function j(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var a=t[n[i]],s=i+1;s<n.length;++s){var u=t[n[s]],l=o(a,u);l+u.radius<=a.radius+1e-10?e[n[s]].push(n[i]):l+a.radius<=u.radius+1e-10&&e[n[i]].push(n[s])}return e}function E(t,e){for(var n={},r=j(t),i=0;i<e.length;++i){for(var a=e[i].sets,o={},s={},u=0;u<a.length;++u){o[a[u]]=!0;for(var l=r[a[u]],c=0;c<l.length;++c)s[l[c]]=!0}var h=[],f=[];for(var p in t)p in o?h.push(t[p]):p in s||f.push(t[p]);var g=L(h,f);n[a]=g,g.disjoint&&e[i].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return n}function D(t,e,n){var r=[];return r.push("\nM",t,e),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}function F(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function B(t){var e={};i(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return D(r.x,r.y,r.radius)}for(var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var s=n[o],u=s.circle.radius,l=s.width>u;a.push("\nA",u,u,0,l?1:0,1,s.p1.x,s.p1.y)}return a.join(" ")}t.intersectionArea=i,t.circleCircleIntersection=u,t.circleOverlap=s,t.circleArea=a,t.distance=o,t.venn=m,t.greedyLayout=S,t.scaleSolution=O,t.normalizeSolution=P,t.bestInitialLayout=w,t.lossFunction=M,t.disjointCluster=A,t.distanceFromIntersectArea=_,t.VennDiagram=function(){var t=600,n=350,r=15,i=1e3,a=Math.PI/2,o=!0,s=!0,u=!0,l=null,c=null,h={},f=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],p=0,g=function(t){if(t in h)return h[t];var e=h[t]=f[p];return(p+=1)>=f.length&&(p=0),e},d=m,v=M;function y(h){var f=h.datum(),p={};f.forEach((function(t){0==t.size&&1==t.sets.length&&(p[t.sets[0]]=1)})),f=f.filter((function(t){return!t.sets.some((function(t){return t in p}))}));var y={},x={};if(f.length>0){var m=d(f,{lossFunction:v});o&&(m=P(m,a,c)),y=O(m,t,n,r),x=E(y,f)}var b={};function _(t){return t.sets in b?b[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}f.forEach((function(t){t.label&&(b[t.sets]=t.label)})),h.selectAll("svg").data([y]).enter().append("svg");var w=h.select("svg").attr("width",t).attr("height",n),S={},M=!1;w.selectAll(".venn-area path").each((function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(M=!0,S[t.sets[0]]=F(n))}));var C=function(e){return function(r){return B(e.sets.map((function(e){var i=S[e],a=y[e];return i||(i={x:t/2,y:n/2,radius:1}),a||(a={x:t/2,y:n/2,radius:1}),{x:i.x*(1-r)+a.x*r,y:i.y*(1-r)+a.y*r,radius:i.radius*(1-r)+a.radius*r}})))}},A=w.selectAll(".venn-area").data(f,(function(t){return t.sets})),k=A.enter().append("g").attr("class",(function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")})).attr("data-venn-sets",(function(t){return t.sets.join("_")})),I=k.append("path"),L=k.append("text").attr("class","label").text((function(t){return _(t)})).attr("text-anchor","middle").attr("dy",".35em").attr("x",t/2).attr("y",n/2);u&&(I.style("fill-opacity","0").filter((function(t){return 1==t.sets.length})).style("fill",(function(t){return g(t.sets)})).style("fill-opacity",".25"),L.style("fill",(function(t){return 1==t.sets.length?g(t.sets):"#444"})));var j=h;M?(j=h.transition("venn").duration(i)).selectAll("path").attrTween("d",C):j.selectAll("path").attr("d",(function(t){return B(t.sets.map((function(t){return y[t]})))}));var D=j.selectAll("text").filter((function(t){return t.sets in x})).text((function(t){return _(t)})).attr("x",(function(t){return Math.floor(x[t.sets].x)})).attr("y",(function(t){return Math.floor(x[t.sets].y)}));s&&(M?"on"in D?D.on("end",T(y,_)):D.each("end",T(y,_)):D.each(T(y,_)));var R=A.exit().transition("venn").duration(i).remove();R.selectAll("path").attrTween("d",C);var z=R.selectAll("text").attr("x",t/2).attr("y",n/2);return null!==l&&(L.style("font-size","0px"),D.style("font-size",l),z.style("font-size","0px")),{circles:y,textCentres:x,nodes:A,enter:k,update:j,exit:R}}return y.wrap=function(t){return arguments.length?(s=t,y):s},y.width=function(e){return arguments.length?(t=e,y):t},y.height=function(t){return arguments.length?(n=t,y):n},y.padding=function(t){return arguments.length?(r=t,y):r},y.colours=function(t){return arguments.length?(g=t,y):g},y.fontSize=function(t){return arguments.length?(l=t,y):l},y.duration=function(t){return arguments.length?(i=t,y):i},y.layoutFunction=function(t){return arguments.length?(d=t,y):d},y.normalize=function(t){return arguments.length?(o=t,y):o},y.styled=function(t){return arguments.length?(u=t,y):u},y.orientation=function(t){return arguments.length?(a=t,y):a},y.orientationOrder=function(t){return arguments.length?(c=t,y):c},y.lossFunction=function(t){return arguments.length?(v=t,y):v},y},t.wrapText=T,t.computeTextCentres=E,t.computeTextCentre=L,t.sortAreas=function(t,e){for(var n=j(t.selectAll("svg").datum()),r={},i=0;i<e.sets.length;++i){var a=e.sets[i];for(var o in n)for(var s=n[o],u=0;u<s.length;++u)if(s[u]==a){r[o]=!0;break}}function l(t){for(var e=0;e<t.length;++e)if(!(t[e]in r))return!1;return!0}t.selectAll("g").sort((function(t,n){return t.sets.length!=n.sets.length?t.sets.length-n.sets.length:t==e?l(n.sets)?-1:1:n==e?l(t.sets)?1:-1:n.size-t.size}))},t.circlePath=D,t.circleFromPath=F,t.intersectionAreaPath=B,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(72),n(449))},function(t,e,n){"use strict";var r=n(362),i=n(385);e.a=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))}},function(t,e,n){"use strict";var r=n(70),i=n(375);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u,l=e[o],c=l.length,h=a[o]=new Array(c),f=0;f<c;++f)(s=l[f])&&(u=t.call(s,s.__data__,f,l))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u);return new r.a(a,this._parents)}},function(t,e,n){"use strict";var r=n(70),i=n(386);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=[],o=[],s=0;s<n;++s)for(var u,l=e[s],c=l.length,h=0;h<c;++h)(u=l[h])&&(a.push(t.call(u,u.__data__,h,l)),o.push(u));return new r.a(a,o)}},function(t,e,n){"use strict";var r=n(70),i=n(387);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u=e[o],l=u.length,c=a[o]=[],h=0;h<l;++h)(s=u[h])&&t.call(s,s.__data__,h,u)&&c.push(s);return new r.a(a,this._parents)}},function(t,e,n){"use strict";var r=n(70),i=n(388),a=n(419),o="$";function s(t,e,n,r,a,o){for(var s,u=0,l=e.length,c=o.length;u<c;++u)(s=e[u])?(s.__data__=o[u],r[u]=s):n[u]=new i.a(t,o[u]);for(;u<l;++u)(s=e[u])&&(a[u]=s)}function u(t,e,n,r,a,s,u){var l,c,h,f={},p=e.length,g=s.length,d=new Array(p);for(l=0;l<p;++l)(c=e[l])&&(d[l]=h=o+u.call(c,c.__data__,l,e),h in f?a[l]=c:f[h]=c);for(l=0;l<g;++l)(c=f[h=o+u.call(t,s[l],l,s)])?(r[l]=c,c.__data__=s[l],f[h]=null):n[l]=new i.a(t,s[l]);for(l=0;l<p;++l)(c=e[l])&&f[d[l]]===c&&(a[l]=c)}e.a=function(t,e){if(!t)return y=new Array(this.size()),p=-1,this.each((function(t){y[++p]=t})),y;var n=e?u:s,i=this._parents,o=this._groups;"function"!=typeof t&&(t=Object(a.a)(t));for(var l=o.length,c=new Array(l),h=new Array(l),f=new Array(l),p=0;p<l;++p){var g=i[p],d=o[p],v=d.length,y=t.call(g,g&&g.__data__,p,i),x=y.length,m=h[p]=new Array(x),b=c[p]=new Array(x);n(g,d,m,b,f[p]=new Array(v),y,e);for(var _,w,S=0,M=0;S<x;++S)if(_=m[S]){for(S>=M&&(M=S+1);!(w=b[M])&&++M<x;);_._next=w||null}}return(c=new r.a(c,i))._enter=h,c._exit=f,c}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(389),i=n(70);e.a=function(){return new i.a(this._exit||this._groups.map(r.a),this._parents)}},function(t,e,n){"use strict";e.a=function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i}},function(t,e,n){"use strict";var r=n(70);e.a=function(t){for(var e=this._groups,n=t._groups,i=e.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var l,c=e[u],h=n[u],f=c.length,p=s[u]=new Array(f),g=0;g<f;++g)(l=c[g]||h[g])&&(p[g]=l);for(;u<i;++u)s[u]=e[u];return new r.a(s,this._parents)}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}},function(t,e,n){"use strict";var r=n(70);function i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=i);for(var n=this._groups,a=n.length,o=new Array(a),s=0;s<a;++s){for(var u,l=n[s],c=l.length,h=o[s]=new Array(c),f=0;f<c;++f)(u=l[f])&&(h[f]=u);h.sort(e)}return new r.a(o,this._parents).order()}},function(t,e,n){"use strict";e.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";e.a=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.each((function(){++t})),t}},function(t,e,n){"use strict";e.a=function(){return!this.node()}},function(t,e,n){"use strict";e.a=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this}},function(t,e,n){"use strict";var r=n(373);function i(t){return function(){this.removeAttribute(t)}}function a(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,e){return function(){this.setAttribute(t,e)}}function s(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function u(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function l(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}e.a=function(t,e){var n=Object(r.a)(t);if(arguments.length<2){var c=this.node();return n.local?c.getAttributeNS(n.space,n.local):c.getAttribute(n)}return this.each((null==e?n.local?a:i:"function"==typeof e?n.local?l:u:n.local?s:o)(n,e))}},function(t,e,n){"use strict";function r(t){return function(){delete this[t]}}function i(t,e){return function(){this[t]=e}}function a(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}e.a=function(t,e){return arguments.length>1?this.each((null==e?r:"function"==typeof e?a:i)(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new a(t)}function a(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function o(t,e){for(var n=i(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function s(t,e){for(var n=i(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}function u(t){return function(){o(this,t)}}function l(t){return function(){s(this,t)}}function c(t,e){return function(){(e.apply(this,arguments)?o:s)(this,t)}}a.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var a=i(this.node()),o=-1,s=n.length;++o<s;)if(!a.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?c:e?u:l)(n,e))}},function(t,e,n){"use strict";function r(){this.textContent=""}function i(t){return function(){this.textContent=t}}function a(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?a:i)(t)):this.node().textContent}},function(t,e,n){"use strict";function r(){this.innerHTML=""}function i(t){return function(){this.innerHTML=t}}function a(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?a:i)(t)):this.node().innerHTML}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(362);e.a=function(t){var e="function"==typeof t?t:Object(r.a)(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))}},function(t,e,n){"use strict";var r=n(362),i=n(375);function a(){return null}e.a=function(t,e){var n="function"==typeof t?t:Object(r.a)(t),o=null==e?a:"function"==typeof e?e:Object(i.a)(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)}))}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function i(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}e.a=function(t){return this.select(t?i:r)}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";var r=n(376);function i(t,e,n){var i=Object(r.a)(t),a=i.CustomEvent;"function"==typeof a?a=new a(e,n):(a=i.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function a(t,e){return function(){return i(this,t,e)}}function o(t,e){return function(){return i(this,t,e.apply(this,arguments))}}e.a=function(t,e){return this.each(("function"==typeof e?o:a)(t,e))}},function(t,e,n){"use strict";e.a=i;var r=0;function i(){return new a}function a(){this._="@"+(++r).toString(36)}a.prototype=i.prototype={constructor:a,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(378),i=n(363);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(70);e.a=function(t){return"string"==typeof t?new r.a([document.querySelectorAll(t)],[document.documentElement]):new r.a([null==t?[]:t],r.c)}},function(t,e,n){"use strict";var r=n(378),i=n(363);e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var a,o=0,s=e?e.length:0;o<s;++o)if((a=e[o]).identifier===n)return Object(i.a)(t,a);return null}},function(t,e,n){"use strict";var r=n(378),i=n(363);e.a=function(t,e){null==e&&(e=Object(r.a)().touches);for(var n=0,a=e?e.length:0,o=new Array(a);n<a;++n)o[n]=Object(i.a)(t,e[n]);return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(450);var r=n(169);n.d(e,"transition",(function(){return r.b}));var i=n(485);n.d(e,"active",(function(){return i.a}));var a=n(391);n.d(e,"interrupt",(function(){return a.a}))},function(t,e,n){"use strict";var r=n(72),i=n(451),a=n(454);r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=a.a},function(t,e,n){"use strict";var r=n(391);e.a=function(t){return this.each((function(){Object(r.a)(this,t)}))}},function(t,e,n){"use strict";var r=n(453);n.d(e,"a",(function(){return r.a}))},function(t,e,n){"use strict";var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new a(r)}function a(t){this._=t}function o(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,a=t.length;i<a;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}a.prototype=i.prototype={constructor:a,on:function(t,e){var n,r=this._,i=o(t+"",r),a=-1,l=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<l;)if(n=(t=i[a]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}for(;++a<l;)if((n=(t=i[a]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new a(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}},e.a=i},function(t,e,n){"use strict";var r=n(169),i=n(46),a=n(173),o=n(170),s={time:null,delay:0,duration:250,ease:a.easeCubicInOut};function u(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return s.time=Object(o.now)(),s;return n}e.a=function(t){var e,n;t instanceof r.a?(e=t._id,t=t._name):(e=Object(r.c)(),(n=s).time=Object(o.now)(),t=null==t?null:t+"");for(var a=this._groups,l=a.length,c=0;c<l;++c)for(var h,f=a[c],p=f.length,g=0;g<p;++g)(h=f[g])&&Object(i.e)(h,t,e,g,f,n||u(h,e));return new r.a(a,this._parents,t,e)}},function(t,e,n){"use strict";var r=n(379),i=n(72),a=n(365),o=n(399);function s(t){return function(){this.removeAttribute(t)}}function u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function l(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function c(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function h(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttribute(t)}}function f(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}e.a=function(t,e){var n=Object(i.namespace)(t),p="transform"===n?r.e:o.a;return this.attrTween(t,"function"==typeof e?(n.local?f:h)(n,p,Object(a.b)(this,"attr."+t,e)):null==e?(n.local?u:s)(n):(n.local?c:l)(n,p,e))}},function(t,e,n){},function(t,e,n){"use strict";n(174)},function(t,e,n){},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n(364),i=n(460);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],l=[];return o=t(o),s=t(s),function(t,i,a,o,s,u){if(t!==a||i!==o){var l=s.push("translate(",null,e,null,n);u.push({i:l-4,x:Object(r.a)(t,a)},{i:l-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,u,l),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,u,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r.a)(t,n)},{i:u-2,x:Object(r.a)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,l),o=s=null,function(t){for(var e,n=-1,r=l.length;++n<r;)u[(e=l[n]).i]=e.x(t);return u.join("")}}}var o=a(i.a,"px, ","px)","deg)"),s=a(i.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){return"none"===t?s.b:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.b=function(t){return null==t?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)};var r,i,a,o,s=n(461)},function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,i,a,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,l/=u),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(l)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";var r=n(17),i=n(174);function a(t){return function(e,n){var a=t((e=Object(r.d)(e)).h,(n=Object(r.d)(n)).h),o=Object(i.a)(e.s,n.s),s=Object(i.a)(e.l,n.l),u=Object(i.a)(e.opacity,n.opacity);return function(t){return e.h=a(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}a(i.c),a(i.a)},function(t,e,n){"use strict";n(17),n(174)},function(t,e,n){"use strict";var r=n(17),i=n(174);function a(t){return function(e,n){var a=t((e=Object(r.c)(e)).h,(n=Object(r.c)(n)).h),o=Object(i.a)(e.c,n.c),s=Object(i.a)(e.l,n.l),u=Object(i.a)(e.opacity,n.opacity);return function(t){return e.h=a(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}a(i.c),a(i.a)},function(t,e,n){"use strict";var r=n(17),i=n(174);function a(t){return function e(n){function a(e,a){var o=t((e=Object(r.b)(e)).h,(a=Object(r.b)(a)).h),s=Object(i.a)(e.s,a.s),u=Object(i.a)(e.l,a.l),l=Object(i.a)(e.opacity,a.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,a.gamma=e,a}(1)}a(i.c),a(i.a)},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";var r=n(72);function i(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e(n))}}(t,i)),n}return i._value=e,i}function a(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e(n))}}(t,i)),n}return i._value=e,i}e.a=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var o=Object(r.namespace)(t);return this.tween(n,(o.local?i:a)(o,e))}},function(t,e,n){"use strict";var r=n(46);function i(t,e){return function(){Object(r.g)(this,t).delay=+e.apply(this,arguments)}}function a(t,e){return e=+e,function(){Object(r.g)(this,t).delay=e}}e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?i:a)(e,t)):Object(r.f)(this.node(),e).delay}},function(t,e,n){"use strict";var r=n(46);function i(t,e){return function(){Object(r.h)(this,t).duration=+e.apply(this,arguments)}}function a(t,e){return e=+e,function(){Object(r.h)(this,t).duration=e}}e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?i:a)(e,t)):Object(r.f)(this.node(),e).duration}},function(t,e,n){"use strict";var r=n(46);function i(t,e){if("function"!=typeof e)throw new Error;return function(){Object(r.h)(this,t).ease=e}}e.a=function(t){var e=this._id;return arguments.length?this.each(i(e,t)):Object(r.f)(this.node(),e).ease}},function(t,e,n){"use strict";var r=n(72),i=n(169);e.a=function(t){"function"!=typeof t&&(t=Object(r.matcher)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u=e[o],l=u.length,c=a[o]=[],h=0;h<l;++h)(s=u[h])&&t.call(s,s.__data__,h,u)&&c.push(s);return new i.a(a,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(169);e.a=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var l,c=e[u],h=n[u],f=c.length,p=s[u]=new Array(f),g=0;g<f;++g)(l=c[g]||h[g])&&(p[g]=l);for(;u<i;++u)s[u]=e[u];return new r.a(s,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(46);function i(t,e,n){var i,a,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?r.g:r.h;return function(){var r=o(this,t),s=r.on;s!==i&&(a=(i=s).copy()).on(e,n),r.on=a}}e.a=function(t,e){var n=this._id;return arguments.length<2?Object(r.f)(this.node(),n).on.on(t):this.each(i(n,t,e))}},function(t,e,n){"use strict";e.a=function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t}},function(t,e,n){"use strict";var r=n(72),i=n(169),a=n(46);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selector)(t));for(var o=this._groups,s=o.length,u=new Array(s),l=0;l<s;++l)for(var c,h,f=o[l],p=f.length,g=u[l]=new Array(p),d=0;d<p;++d)(c=f[d])&&(h=t.call(c,c.__data__,d,f))&&("__data__"in c&&(h.__data__=c.__data__),g[d]=h,Object(a.e)(g[d],e,n,d,g,Object(a.f)(c,n)));return new i.a(u,this._parents,e,n)}},function(t,e,n){"use strict";var r=n(72),i=n(169),a=n(46);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selectorAll)(t));for(var o=this._groups,s=o.length,u=[],l=[],c=0;c<s;++c)for(var h,f=o[c],p=f.length,g=0;g<p;++g)if(h=f[g]){for(var d,v=t.call(h,h.__data__,g,f),y=Object(a.f)(h,n),x=0,m=v.length;x<m;++x)(d=v[x])&&Object(a.e)(d,e,n,x,v,y);u.push(v),l.push(h)}return new i.a(u,l,e,n)}},function(t,e,n){"use strict";var r=n(72).selection.prototype.constructor;e.a=function(){return new r(this._groups,this._parents)}},function(t,e,n){"use strict";var r=n(379),i=n(72),a=n(46),o=n(365),s=n(399);function u(t){return function(){this.style.removeProperty(t)}}e.a=function(t,e,n){var l="transform"==(t+="")?r.d:s.a;return null==e?this.styleTween(t,function(t,e){var n,r,a;return function(){var o=Object(i.style)(this,t),s=(this.style.removeProperty(t),Object(i.style)(this,t));return o===s?null:o===n&&s===r?a:a=e(n=o,r=s)}}(t,l)).on("end.style."+t,u(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,a,o;return function(){var s=Object(i.style)(this,t),u=n(this),l=u+"";return null==u&&(this.style.removeProperty(t),l=u=Object(i.style)(this,t)),s===l?null:s===r&&l===a?o:(a=l,o=e(r=s,u))}}(t,l,Object(o.b)(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,l="end."+s;return function(){var c=Object(a.h)(this,t),h=c.on,f=null==c.value[s]?o||(o=u(e)):void 0;h===n&&i===f||(r=(n=h).copy()).on(l,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,a,o=n+"";return function(){var s=Object(i.style)(this,t);return s===o?null:s===r?a:a=e(r=s,n)}}(t,l,e),n).on("end.style."+t,null)}},function(t,e,n){"use strict";function r(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}(t,a,n)),r}return a._value=e,a}e.a=function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,r(t,e,null==n?"":n))}},function(t,e,n){"use strict";var r=n(365);e.a=function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Object(r.b)(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))}},function(t,e,n){"use strict";var r=n(169),i=n(46);e.a=function(){for(var t=this._name,e=this._id,n=Object(r.c)(),a=this._groups,o=a.length,s=0;s<o;++s)for(var u,l=a[s],c=l.length,h=0;h<c;++h)if(u=l[h]){var f=Object(i.f)(u,e);Object(i.e)(u,t,n,h,l,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new r.a(a,this._parents,t,n)}},function(t,e,n){"use strict";var r=n(46);e.a=function(){var t,e,n=this,i=n._id,a=n.size();return new Promise((function(o,s){var u={value:s},l={value:function(){0==--a&&o()}};n.each((function(){var n=Object(r.h)(this,i),a=n.on;a!==t&&((e=(t=a).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),n.on=e}))}))}},function(t,e,n){"use strict";var r=n(169),i=n(46),a=[null];e.a=function(t,e){var n,o,s=t.__transition;if(s)for(o in e=null==e?null:e+"",s)if((n=s[o]).state>i.c&&n.name===e)return new r.a([[t]],a,e,+o);return null}},function(t,e,n){var r=n(0),i=n(19),a=n(45),o=n(7),s=r.PathUtil;function u(t){var e=o.shape.venn,n=r.mix({},e,t.style);return a.addFillAttrs(n,t),n}var l=i.registerFactory("venn",{defaultShapeType:"venn",getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin.path,i=u(t),a=s.parsePathString(n);return e.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),i.registerShape("venn","hollow",{draw:function(t,e){var n=t.origin._origin.path,i=function(t){var e=o.shape.hollowVenn,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}(t),u=s.parsePathString(n);return e.addShape("path",{attrs:r.mix(i,{path:u})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),t.exports=l},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(0),o=n(359);n(488);var s=function(t){r(n,t);var e=n.prototype;function n(e){var n;return n=t.call(this,e)||this,a.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),o),n}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e},e.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);n.size=this.getNormalizedSize(e);var r=this.get("_sizeField");return n._size=e._origin[r],n},e.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e._initAttrs=function(){var e=this.get("attrOptions"),n=e.size?e.size.field:this.get("_sizeField")?this.get("_sizeField"):"size";this.set("_sizeField",n),delete e.size,t.prototype._initAttrs.call(this)},n}(i),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(s);s.Dodge=u,i.Violin=s,i.ViolinDodge=u,t.exports=s},function(t,e,n){var r=n(0),i=n(19),a=n(45),o=n(7),s=n(23);function u(t){var e=o.shape.venn,n=r.mix({},e,t.style);return a.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function l(t){var e=o.shape.hollowVenn,n=r.mix({},e,t.style);return a.addStrokeAttrs(n,t),n}function c(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return a&&(e.push(["L",a.x,a.y]),e.push(["z"])),e}function h(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var a=s.getSplinePath(n,!1),o=s.getSplinePath(r,!1);r.length&&a.push(["L",r[0].x,r[0].y]),o.shift();var u=a.concat(o);return n.length&&u.push(["L",n[0].x,n[0].y]),u.push(["z"]),u}var f=i.registerFactory("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e,n,i=t.size/2,a=[],o=(e=t._size,n=Math.max.apply(null,e),e.map((function(t){return t/n})));return r.each(t.y,(function(e,n){var r=o[n]*i,s=0===n,u=n===t.y.length-1;a.push({isMin:s,isMax:u,x:t.x-r,y:e}),a.unshift({isMin:s,isMax:u,x:t.x+r,y:e})})),a},getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});i.registerShape("violin","violin",{draw:function(t,e){var n=u(t),i=c(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),i.registerShape("violin","smooth",{draw:function(t,e){var n=u(t),i=h(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},u(t))}}),i.registerShape("violin","hollow",{draw:function(t,e){var n=l(t),i=c(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},l(t))}}),i.registerShape("violin","smoothHollow",{draw:function(t,e){var n=l(t),i=h(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:r.mix(n,{path:i})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},l(t))}}),t.exports=f},function(t,e,n){var r=n(0),i=n(146),a={};a.Rect=n(400),a.List=n(401),a.Circle=n(490),a.Tree=n(491),a.Mirror=n(492),a.Matrix=n(493),i.prototype.facet=function(t,e){var n=a[r.upperFirst(t)];if(!n)throw new Error("Not support such type of facets as: "+t);var i=this.get("facets");i&&i.destroy(),e.chart=this;var o=new n(e);this.set("facets",o)},t.exports=a},function(t,e,n){function r(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="circle",e},a.getRegion=function(t,e){var n=2*Math.PI/t,i=-1*Math.PI/2+n*e,a=.5/(1+1/Math.sin(n/2)),o=r({x:.5,y:.5},.5-a,i),s=5*Math.PI/4,u=1*Math.PI/4;return{start:r(o,a,s),end:r(o,a,u)}},a.generateFacets=function(t){var e=this,n=e.fields[0];if(!n)throw"Please specify for the field for facet!";var r=e.getFieldValues(n,t),i=r.length,a=[];return r.forEach((function(o,s){var u=[{field:n,value:o,values:r}],l=e.getFilter(u),c=t.filter(l),h={type:e.type,colValue:o,colField:n,colIndex:s,cols:i,rows:1,rowIndex:0,data:c,region:e.getRegion(i,s)};a.push(h)})),a},i}(n(366));t.exports=i},function(t,e,n){var r=n(366),i=n(0).assign,a=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="tree",e.line={lineWidth:1,stroke:"#ddd"},e.lineSmooth=!1,e},a.generateFacets=function(t){if(!this.fields.length)throw"Please specify for the fields for facet!";var e=[],n=this.getRootFacet(t);return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},a.getRootFacet=function(t){return{type:this.type,rows:this.getRows(),rowIndex:0,colIndex:0,colValue:this.rootTitle,data:t}},a.getRows=function(){return this.fields.length+1},a.getChildFacets=function(t,e,n){var r=this,i=r.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=r.getFieldValues(o,t);return s.forEach((function(i,u){var l=[{field:o,value:i,values:s}],c=r.getFilter(l),h=t.filter(c);if(h.length){var f={type:r.type,colValue:i,colField:o,colIndex:u,rows:r.getRows(),rowIndex:e,data:h,children:r.getChildFacets(h,e+1,n)};a.push(f),n.push(f)}})),a}},a.setRegion=function(t){var e=this;e.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rows,t.cols,t.colIndex,t.rowIndex)}))},a.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.colIndex=r,r++)})),n.forEach((function(t){t.cols=n.length}));for(var i=e.fields.length-1;i>=0;i--)for(var a=e.getFacetsByLevel(t,i),o=0;o<a.length;o++){var s=a[o];e.isLeaf(s)||(s.originColIndex=s.colIndex,s.colIndex=e.getRegionIndex(s.children),s.cols=n.length)}},a.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},a.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},a.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].colIndex-e.colIndex)/2+e.colIndex},a.isLeaf=function(t){return!t.children||!t.children.length},a.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].label=null,e[t].title=null)},a.setYAxis=function(t,e,n){0!==n.originColIndex&&0!==n.colIndex&&(e[t].title=null,e[t].label=null)},a.onPaint=function(){t.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},a.drawLines=function(t,e){var n=this,r=e.addGroup();t.forEach((function(t){if(!n.isLeaf(t)){var e=t.children;n._addFacetLines(t,e,r)}}))},a._addFacetLines=function(t,e,n){var r=this,i=t.view.getViewRegion(),a={x:i.start.x+(i.end.x-i.start.x)/2,y:i.start.y};e.forEach((function(t){var e=t.view.getViewRegion(),i={x:e.start.x+(e.end.x-e.start.x)/2,y:e.end.y},o={x:a.x,y:a.y+(i.y-a.y)/2},s={x:i.x,y:o.y};r._drawLine([a,o,s,i],n)}))},a._getPath=function(t){var e=[];return this.lineSmooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},a._drawLine=function(t,e){var n=this._getPath(t),r=this.line;e.addShape("path",{attrs:i({path:n},r)})},r}(r);t.exports=a},function(t,e,n){var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="mirror",this.transpose=!1,e},i.init=function(){this.transpose?(this.cols=2,this.rows=1):(this.cols=1,this.rows=2),t.prototype.init.call(this)},i.beforeProcessView=function(t,e){this.transpose?e.colIndex%2==0?t.coord().transpose().scale(-1,1):t.coord().transpose():e.rowIndex%2!=0&&t.coord().scale(1,-1)},i.renderTitle=function(t,e){this.transpose?this.drawColTitle(t,e):this.drawRowTitle(t,e)},i.setXAxis=function(t,e,n){1!==n.colIndex&&1!==n.rowIndex||(e[t].label=null,e[t].title=null)},i.setYAxis=function(){},r}(n(401));t.exports=r},function(t,e,n){var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="matrix",e.showTitle=!1,e},i.generateFacets=function(t){for(var e=this.fields,n=e.length,r=n,i=[],a=0;a<r;a++)for(var o=e[a],s=0;s<n;s++){var u=e[s],l={type:this.type,colValue:o,rowValue:u,colField:o,rowField:u,colIndex:a,rowIndex:s,cols:r,rows:n,data:t,region:this.getRegion(n,r,a,s)};i.push(l)}return i},i.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].title=null,e[t].label=null)},i.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},r}(n(400));t.exports=r},function(t,e,n){var r=n(172),i=n(146),a=n(0),o={Base:n(171),Brush:n(495),Drag:n(496),ScrollBar:n(498),ShapeSelect:n(500),Slider:n(501),Zoom:n(503)};r._Interactions={},r.registerInteraction=function(t,e){r._Interactions[t]=e},r.getInteraction=function(t){return r._Interactions[t]},i.prototype.getInteractions=function(){return this._interactions||(this._interactions={}),this._interactions},i.prototype._setInteraction=function(t,e){var n=this.getInteractions();n[t]&&n[t]!==e&&n[t].destroy(),n[t]=e},i.prototype.clearInteraction=function(t){var e=this.getInteractions();t?(e[t]&&(e[t]._reset(),e[t].destroy()),delete e[t]):a.each(e,(function(t,n){t._reset(),t.destroy(),delete e[n]}))},i.prototype.interact=i.prototype.interaction=function(t,e){var n=new(r.getInteraction(t))(e,this);return this._setInteraction(t,n),this},r.registerInteraction("brush",o.Brush),r.registerInteraction("Brush",o.Brush),r.registerInteraction("drag",o.Drag),r.registerInteraction("Drag",o.Drag),r.registerInteraction("zoom",o.Zoom),r.registerInteraction("Zoom",o.Zoom),r.registerInteraction("scroll-bar",o.ScrollBar),r.registerInteraction("ScrollBar",o.ScrollBar),r.registerInteraction("shape-select",o.ShapeSelect),r.registerInteraction("ShapeSelect",o.ShapeSelect),r.registerInteraction("slider",o.Slider),r.registerInteraction("Slider",o.Slider),t.exports=o},function(t,e,n){var r=n(0),i=n(171),a=["X","Y","XY","POLYGON"],o="XY",s=function(t){var e,n;n=t,(e=s).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=s.prototype;function s(e,n){var r,i=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r=t.call(this,e,n)||this);i.filter=!i.draggable,i.type=i.type.toUpperCase(),i.chart=n,a.includes(i.type)||(i.type=o);var s,u=i.canvas;if(u&&(u.get("children").map((function(t){return"plotBack"===t.get("type")?(s=t.get("plotRange"),!1):t})),i.plot={start:s.bl,end:s.tr}),n){var l=n.get("coord");i.plot={start:l.start,end:l.end};var c=n._getScales("x"),h=n._getScales("y");i.xScale=i.xField?c[i.xField]:n.getXScale(),i.yScale=i.yField?h[i.yField]:n.getYScales()[0]}return r}return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:o,startPoint:null,brushing:!1,dragging:!1,brushShape:null,container:null,polygonPath:null,style:{fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},draggable:!1,dragOffX:0,dragOffY:0,inPlot:!0,xField:null,yField:null})},i.start=function(t){var e=this,n=e.canvas,r=e.type,i=e.brushShape;if(r){var a={x:t.offsetX,y:t.offsetY};if(a.x){var o=e.plot&&e.inPlot,s=n.get("canvasDOM"),u=n.get("pixelRatio");if(e.selection&&(e.selection=null),e.draggable&&i&&!i.get("destroyed")){if(i.isHit(a.x*u,a.y*u)){if(s.style.cursor="move",e.selection=i,e.dragging=!0,"X"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=0;else if("Y"===r)e.dragoffX=0,e.dragoffY=a.y-i.attr("y");else if("XY"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var l=i.getBBox();e.dragoffX=a.x-l.minX,e.dragoffY=a.y-l.minY}e.onDragstart&&e.onDragstart(t)}e.prePoint=a}if(!e.dragging){e.onBrushstart&&e.onBrushstart(a);var c=e.container;if(o){var h=e.plot,f=h.start,p=h.end;if(a.x<f.x||a.x>p.x||a.y<p.y||a.y>f.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,c?c.clear():(c=n.addGroup({zIndex:5})).initTransform(),e.container=c,"POLYGON"===r&&(e.polygonPath="M "+a.x+" "+a.y)}}}},i.process=function(t){var e=this,n=e.brushing,i=e.dragging,a=e.type,o=e.plot,s=e.startPoint,u=e.xScale,l=e.yScale,c=e.canvas;if(n||i){var h={x:t.offsetX,y:t.offsetY},f=c.get("canvasDOM");if(n){f.style.cursor="crosshair";var p,g,d,v,y=o.start,x=o.end,m=e.polygonPath,b=e.brushShape,_=e.container;e.plot&&e.inPlot&&(h=e._limitCoordScope(h)),"Y"===a?(p=y.x,g=h.y>=s.y?s.y:h.y,d=Math.abs(y.x-x.x),v=Math.abs(s.y-h.y)):"X"===a?(p=h.x>=s.x?s.x:h.x,g=x.y,d=Math.abs(s.x-h.x),v=Math.abs(x.y-y.y)):"XY"===a?(h.x>=s.x?(p=s.x,g=h.y>=s.y?s.y:h.y):(p=h.x,g=h.y>=s.y?s.y:h.y),d=Math.abs(s.x-h.x),v=Math.abs(s.y-h.y)):"POLYGON"===a&&(m+="L "+h.x+" "+h.y,e.polygonPath=m,b?!b.get("destroyed")&&b.attr(r.mix({},b._attrs,{path:m})):b=_.addShape("path",{attrs:r.mix(e.style,{path:m})})),"POLYGON"!==a&&(b?!b.get("destroyed")&&b.attr(r.mix({},b._attrs,{x:p,y:g,width:d,height:v})):b=_.addShape("rect",{attrs:r.mix(e.style,{x:p,y:g,width:d,height:v})})),e.brushShape=b}else if(i){f.style.cursor="move";var w=e.selection;if(w&&!w.get("destroyed"))if("POLYGON"===a){var S=e.prePoint;e.selection.translate(h.x-S.x,h.y-S.y)}else e.dragoffX&&w.attr("x",h.x-e.dragoffX),e.dragoffY&&w.attr("y",h.y-e.dragoffY)}e.prePoint=h,c.draw();var M=e._getSelected(),C=M.data,A=M.shapes,k=M.xValues,P=M.yValues,O={data:C,shapes:A};u&&(O[u.field]=k),l&&(O[l.field]=P),r.mix(t,O),O.x=h.x,O.y=h.y,e.onDragmove&&e.onDragmove(O),e.onBrushmove&&e.onBrushmove(O)}},i.end=function(t){var e=this;if(e.brushing||e.dragging){var n=e.data,i=e.shapes,a=e.xValues,o=e.yValues,s=e.canvas,u=e.type,l=e.startPoint,c=e.chart,h=e.container,f=e.xScale,p=e.yScale,g=t.offsetX,d=t.offsetY;if(s.get("canvasDOM").style.cursor="default",Math.abs(l.x-g)<=1&&Math.abs(l.y-d)<=1)return e.brushing=!1,e.dragging=!1,h.clear(),void s.draw();var v={data:n,shapes:i};if(f&&(v[f.field]=a),p&&(v[p.field]=o),r.mix(t,v),v.x=g,v.y=d,e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(v);else if(e.brushing){e.brushing=!1;var y=e.brushShape,x=e.polygonPath;"POLYGON"===u&&(x+="z",y&&!y.get("destroyed")&&y.attr(r.mix({},y._attrs,{path:x})),e.polygonPath=x,s.draw()),e.onBrushend?e.onBrushend(v):c&&e.filter&&(h.clear(),"X"===u?f&&c.filter(f.field,(function(t){return a.indexOf(t)>-1})):"Y"===u?p&&c.filter(p.field,(function(t){return o.indexOf(t)>-1})):(f&&c.filter(f.field,(function(t){return a.indexOf(t)>-1})),p&&c.filter(p.field,(function(t){return o.indexOf(t)>-1}))),c.repaint())}}},i.reset=function(){var t=this.chart,e=this.filter,n=this.brushShape,r=this.canvas;t&&e&&(t.get("options").filters={},t.repaint()),n&&(n.destroy(),r.draw())},i._limitCoordScope=function(t){var e=this.plot,n=e.start,r=e.end;return t.x<n.x&&(t.x=n.x),t.x>r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.y>n.y&&(t.y=n.y),t},i._getSelected=function(){var t=this,e=t.chart,n=t.xScale,r=t.yScale,i=t.brushShape,a=t.canvas,o=a.get("pixelRatio"),s=[],u=[],l=[],c=[];return e&&e.get("geoms").map((function(t){return t.getShapes().map((function(t){var e=t.get("origin");return Array.isArray(e)||(e=[e]),e.map((function(e){if(i.isHit(e.x*o,e.y*o)){s.push(t);var a=e._origin;c.push(a),n&&u.push(a[n.field]),r&&l.push(a[r.field])}return e})),t})),t})),t.shapes=s,t.xValues=u,t.yValues=l,t.data=c,a.draw(),{data:c,xValues:u,yValues:l,shapes:s}},s}(i);t.exports=s},function(t,e,n){var r=n(0),i=n(171),a=n(497),o=n(383),s=n(384),u=["X","Y","XY"],l="X",c=function(t){var e,n;n=t,(e=c).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=c.prototype;function c(e,n){var i,o=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i=t.call(this,e,n)||this);o.type=o.type.toUpperCase(),o.chart=n,o.coord=n.get("coord");var c=o.data=n.get("data");a(n);var h=n.getYScales(),f=n.getXScale();h.push(f);var p=n.get("scaleController");return h.forEach((function(t){var e=t.field;o.limitRange[e]=s(c,t);var n=p.defs[e]||{};o.originScaleDefsByField[e]=r.mix(n,{nice:!!n.nice}),t.isLinear&&(o.stepByField[e]=(t.max-t.min)*o.stepRatio)})),u.includes(o.type)||(o.type=l),o._disableTooltip(),i}return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:l,stepRatio:.05,limitRange:{},stepByField:{},threshold:20,originScaleDefsByField:{},previousPoint:null,isDragging:!1})},i._disableTooltip=function(){var t=this.chart;t.get("tooltipController")&&(this._showTooltip=!0,t.tooltip(!1))},i._enableTooltip=function(t){var e=this.chart;this._showTooltip&&(e.tooltip(!0),e.showTooltip(t))},i._applyTranslate=function(t,e,n){void 0===e&&(e=0),t.isLinear?this._translateLinearScale(t,e,n):this._translateCatScale(t,e,n)},i._translateCatScale=function(t,e,n){var i=this.chart,a=t.type,s=t.field,u=t.values,l=t.ticks,c=o(i,s),h=this.limitRange[s],f=e/n,p=u.length,g=Math.max(1,Math.abs(parseInt(f*p))),d=h.indexOf(u[0]),v=h.indexOf(u[p-1]);if(e>0&&d>=0){for(var y=0;y<g&&d>0;y++)d-=1,v-=1;var x=h.slice(d,v+1),m=null;if("timeCat"===a){for(var b=l.length>2?l[1]-l[0]:864e5,_=l[0]-b;_>=x[0];_-=b)l.unshift(_);m=l}i.scale(s,r.mix({},c,{values:x,ticks:m}))}else if(e<0&&v<=h.length-1){for(var w=0;w<g&&v<h.length-1;w++)d+=1,v+=1;var S=h.slice(d,v+1),M=null;if("timeCat"===a){for(var C=l.length>2?l[1]-l[0]:864e5,A=l[l.length-1]+C;A<=S[S.length-1];A+=C)l.push(A);M=l}i.scale(s,r.mix({},c,{values:S,ticks:M}))}},i._translateLinearScale=function(t,e,n){var i=this.chart,a=this.limitRange,s=t.min,u=t.max,l=t.field;if(s!==a[l].min||u!==a[l].max){var c=e/n,h=u-s,f=o(i,l);i.scale(l,r.mix({},f,{nice:!1,min:s+c*h,max:u+c*h}))}},i.start=function(t){this.canvas.get("canvasDOM").style.cursor="pointer",this.isDragging=!0,this.previousPoint={x:t.x,y:t.y},this._disableTooltip()},i.process=function(t){var e=this;if(e.isDragging){var n=e.chart,r=e.type,i=e.canvas,a=e.coord,o=e.threshold;i.get("canvasDOM").style.cursor="move";var s=e.previousPoint,u=t,l=u.x-s.x,c=u.y-s.y,h=!1;if(Math.abs(l)>o&&r.indexOf("X")>-1){h=!0;var f=n.getXScale();e._applyTranslate(f,f.isLinear?-l:l,a.width)}Math.abs(c)>o&&r.indexOf("Y")>-1&&(h=!0,n.getYScales().forEach((function(t){e._applyTranslate(t,u.y-s.y,a.height)}))),h&&(e.previousPoint=u,n.repaint())}},i.end=function(t){this.isDragging=!1,this.canvas.get("canvasDOM").style.cursor="default",this._enableTooltip(t)},i.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),r=t.getXScale();n.push(r),n.forEach((function(n){if(n.isLinear){var r=n.field;t.scale(r,e[r])}})),t.repaint(),this._disableTooltip()},c}(i);t.exports=c},function(t,e,n){var r=n(0),i=n(71),a=n(382);t.exports=function(t){t.on("beforeinitgeoms",(function(){t.set("limitInPlot",!0);var e=t.get("data"),n=a(t);if(!n)return e;var o=t.get("geoms"),s=!1;r.each(o,(function(t){if(["area","line","path"].includes(t.get("type")))return s=!0,!1}));var u=[];if(r.each(n,(function(t,e){!s&&t&&(t.values||t.min||t.max)&&u.push(e)})),0===u.length)return e;var l=[];r.each(e,(function(t){var e=!0;r.each(u,(function(a){var o=t[a];if(o){var s=n[a];if("timeCat"===s.type){var u=s.values;r.isNumber(u[0])&&(o=i.toTimeStamp(o))}(s.values&&!s.values.includes(o)||s.min&&o<s.min||s.max&&o>s.max)&&(e=!1)}})),e&&l.push(t)})),t.set("filteredData",l)}))}},function(t,e,n){var r=n(0),i=n(171),a=n(499),o=n(384),s=function(t){var e,n;n=t,(e=s).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=s.prototype;function s(e,n){var i,a=(i=t.call(this,e,n)||this).getDefaultCfg();return n.set("_scrollBarCfg",r.deepMix({},a,e)),n.set("_limitRange",{}),n.get("_horizontalBar")||n.get("_verticalBar")||i._renderScrollBars(),i}return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,type:"X",xStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:0,offsetY:-10},yStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:8,offsetY:0}})},i._renderScrollBars=function(){var t=this.chart,e=t.get("_scrollBarCfg");if(e){var n=t.get("data"),r=t.get("plotRange");r.width=Math.abs(r.br.x-r.bl.x),r.height=Math.abs(r.tl.y-r.bl.y);var i=t.get("backPlot"),s=t.get("canvas").get("height"),u=t.get("_limitRange"),l=e.type;if(l.indexOf("X")>-1){var c=e.xStyle,h=c.offsetX,f=c.offsetY,p=c.lineCap,g=c.backgroundColor,d=c.fillerColor,v=c.size,y=t.getXScale(),x=u[y.field];x||(x=o(n,y),u[y.field]=x);var m=a(y,x,y.type),b=t.get("_horizontalBar"),_=s-v/2+f;b?b.get("children")[1].attr({x1:Math.max(r.bl.x+r.width*m[0]+h,r.bl.x),x2:Math.min(r.bl.x+r.width*m[1]+h,r.br.x)}):((b=i.addGroup({className:"horizontalBar"})).addShape("line",{attrs:{x1:r.bl.x+h,y1:_,x2:r.br.x+h,y2:_,lineWidth:v,stroke:g,lineCap:p}}),b.addShape("line",{attrs:{x1:Math.max(r.bl.x+r.width*m[0]+h,r.bl.x),y1:_,x2:Math.min(r.bl.x+r.width*m[1]+h,r.br.x),y2:_,lineWidth:v,stroke:d,lineCap:p}}),t.set("_horizontalBar",b))}if(l.indexOf("Y")>-1){var w=e.yStyle,S=w.offsetX,M=w.offsetY,C=w.lineCap,A=w.backgroundColor,k=w.fillerColor,P=w.size,O=t.getYScales()[0],T=u[O.field];T||(T=o(n,O),u[O.field]=T);var I=a(O,T,O.type),L=t.get("_verticalBar"),j=P/2+S;L?L.get("children")[1].attr({y1:Math.max(r.tl.y+r.height*I[0]+M,r.tl.y),y2:Math.min(r.tl.y+r.height*I[1]+M,r.bl.y)}):((L=i.addGroup({className:"verticalBar"})).addShape("line",{attrs:{x1:j,y1:r.tl.y+M,x2:j,y2:r.bl.y+M,lineWidth:P,stroke:A,lineCap:C}}),L.addShape("line",{attrs:{x1:j,y1:Math.max(r.tl.y+r.height*I[0]+M,r.tl.y),x2:j,y2:Math.min(r.tl.y+r.height*I[1]+M,r.bl.y),lineWidth:P,stroke:k,lineCap:C}}),t.set("_verticalBar",L))}}},i._clear=function(){var t=this.chart;if(t){var e=t.get("_horizontalBar"),n=t.get("_verticalBar");e&&e.remove(!0),n&&n.remove(!0),t.set("_horizontalBar",null),t.set("_verticalBar",null)}},i._bindEvents=function(){this._onAfterclearOrBeforechangedata=this._onAfterclearOrBeforechangedata.bind(this),this._onAfterclearinner=this._onAfterclearinner.bind(this),this._onAfterdrawgeoms=this._onAfterdrawgeoms.bind(this);var t=this.chart;t.on("afterclear",this._onAfterclearOrBeforechangedata),t.on("beforechangedata",this._onAfterclearOrBeforechangedata),t.on("afterclearinner",this._onAfterclearinner),t.on("afterdrawgeoms",this._onAfterdrawgeoms)},i._onAfterclearOrBeforechangedata=function(){this.chart&&this.chart.set("_limitRange",{})},i._onAfterclearinner=function(){this._clear()},i._onAfterdrawgeoms=function(){this._renderScrollBars()},i._clearEvents=function(){var t=this.chart;t&&(t.off("afterclear",this._onAfterclearOrBeforechangedata),t.off("beforechangedata",this._onAfterclearOrBeforechangedata),t.off("afterclearinner",this._onAfterclearinner),t.off("afterdrawgeoms",this._onAfterdrawgeoms))},i.destroy=function(){this._clearEvents(),this._clear(),this.canvas.draw()},s}(i);t.exports=s},function(t,e){t.exports=function(t,e,n){if(!t)return[0,1];var r=0,i=0;if("linear"===n){var a=e.min,o=e.max-a;r=(t.min-a)/o,i=(t.max-a)/o}else{var s=e,u=t.values,l=s.indexOf(u[0]),c=s.indexOf(u[u.length-1]);r=l/(s.length-1),i=c/(s.length-1)}return[r,i]}},function(t,e,n){var r=n(0);function i(t,e){var n={};for(var r in e)n[r]=t[r];return n}var a=function(t){var e,n;function a(){return t.apply(this,arguments)||this}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=a.prototype;return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},o.start=function(t){var e,n=this.view,a=[];if(n.eachShape((function(n,r){r.isPointInPath(t.x,t.y)?e=r:a.push(r)})),e)if(e.get("_selected")){if(!this.cancelable)return;this.reset()}else{var o=this.selectStyle,s=this.unSelectStyle,u=i(e.attr(),e);e.set("_originAttrs",u),e.attr(o),r.each(a,(function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),s&&(e=i(t.attr(),s),t.set("_originAttrs",e),t.attr(s))})),e.set("_selected",!0),this.selectedShape=e,this.canvas.draw()}else this.reset()},o.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&e.get("origin")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!e.get("_selected"))},o.reset=function(){if(this.selectedShape){var t=this.view.get("geoms")[0].get("container").get("children")[0].get("children");r.each(t,(function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)})),this.canvas.draw()}},a}(n(171));t.exports=a},function(t,e,n){var r=n(502),i=n(146),a=n(0),o=n(16),s=n(7),u=n(171),l=n(383),c=n(382),h=o.Canvas,f=a.DomUtil,p=a.isNumber,g=function(t){var e,n;n=t,(e=u).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=u.prototype;function u(e,n){var r,i=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r=t.call(this,e,n)||this);return i._initContainer(),i._initStyle(),i.render(),r}return o.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,height:26,width:"auto",padding:s.plotCfg.padding,container:null,xAxis:null,yAxis:null,fillerStyle:{fill:"#BDCCED",fillOpacity:.3},backgroundStyle:{stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},range:[0,100],layout:"horizontal",textStyle:{fill:"#545454"},handleStyle:{img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},backgroundChart:{type:["area"],color:"#CCD6EC"}})},o._initContainer=function(){var t=this.container;if(!t)throw new Error("Please specify the container for the Slider!");a.isString(t)?this.domContainer=document.getElementById(t):this.domContainer=t},o.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=f.getWidth(t.domContainer),n=t.height;if(e!==t.domWidth){var r=t.canvas;r.changeSize(e,n),t.bgChart&&t.bgChart.changeWidth(e),r.clear(),t._initWidth(),t._initSlider(),t._bindEvent(),r.draw()}}},o._initForceFitEvent=function(){var t=setTimeout(a.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=t},o._initStyle=function(){var t=this;t.handleStyle=a.mix({width:t.height,height:t.height},t.handleStyle),"auto"===t.width&&window.addEventListener("resize",a.wrapBehavior(t,"_initForceFitEvent"))},o._initWidth=function(){var t,e=this;t="auto"===e.width?f.getWidth(e.domContainer):e.width,e.domWidth=t;var n=a.toAllPadding(e.padding);"horizontal"===e.layout?(e.plotWidth=t-n[1]-n[3],e.plotPadding=n[3],e.plotHeight=e.height):"vertical"===e.layout&&(e.plotWidth=e.width,e.plotHeight=e.height-n[0]-n[2],e.plotPadding=n[0])},o._initCanvas=function(){var t=this.domWidth,e=this.height,n=new h({width:t,height:e,containerDOM:this.domContainer,capture:!1}),r=n.get("el");r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.zIndex=3,this.canvas=n},o._initBackground=function(){var t,e=this,n=this.chart,r=n.getAllGeoms[0],o=e.data=e.data||n.get("data"),s=n.getXScale(),u=e.xAxis||s.field,l=e.yAxis||n.getYScales()[0].field,h=a.deepMix(((t={})[""+u]={range:[0,1]},t),c(n),e.scales);if(delete h[u].min,delete h[u].max,!o)throw new Error("Please specify the data!");if(!u)throw new Error("Please specify the xAxis!");if(!l)throw new Error("Please specify the yAxis!");var f=e.backgroundChart,p=f.type||r.get("type"),g=f.color||"grey",d=f.shape;a.isArray(p)||(p=[p]);var v=a.toAllPadding(e.padding),y=new i({container:e.container,width:e.domWidth,height:e.height,padding:[0,v[1],0,v[3]],animate:!1});y.source(o),y.scale(h),y.axis(!1),y.tooltip(!1),y.legend(!1),a.each(p,(function(t,e){var n=y[t]().position(u+"*"+l).opacity(1),r=a.isArray(g)?g[e]:g;r&&(a.isObject(r)?r.field&&n.color(r.field,r.colors):n.color(r));var i=a.isArray(d)?d[e]:d;i&&(a.isObject(i)?i.field&&n.shape(i.field,i.callback||i.shapes):n.shape(i))})),y.render(),e.bgChart=y,e.scale="horizontal"===e.layout?y.getXScale():y.getYScales()[0],"vertical"===e.layout&&y.destroy()},o._initRange=function(){var t=this,e=t.startRadio,n=t.endRadio,r=t._startValue,i=t._endValue,a=t.scale,o=0,s=1;p(e)?o=e:r&&(o=a.scale(a.translate(r))),p(n)?s=n:i&&(s=a.scale(a.translate(i)));var u=t.minSpan,l=t.maxSpan,c=0;if("time"===a.type||"timeCat"===a.type){var h=a.values,f=h[0];c=h[h.length-1]-f}else a.isLinear&&(c=a.max-a.min);c&&u&&(t.minRange=u/c*100),c&&l&&(t.maxRange=l/c*100);var g=[100*o,100*s];return t.range=g,g},o._getHandleValue=function(t){var e=this,n=e.range,r=n[0]/100,i=n[1]/100,a=e.scale;return"min"===t?e._startValue?e._startValue:a.invert(r):e._endValue?e._endValue:a.invert(i)},o._initSlider=function(){var t=this,e=t.canvas,n=t._initRange(),i=t.scale,a=e.addGroup(r,{middleAttr:t.fillerStyle,range:n,minRange:t.minRange,maxRange:t.maxRange,layout:t.layout,width:t.plotWidth,height:t.plotHeight,backgroundStyle:t.backgroundStyle,textStyle:t.textStyle,handleStyle:t.handleStyle,minText:i.getText(t._getHandleValue("min")),maxText:i.getText(t._getHandleValue("max"))});"horizontal"===t.layout?a.translate(t.plotPadding,0):"vertical"===t.layout&&a.translate(0,t.plotPadding),t.rangeElement=a},o._updateElement=function(t,e){var n=this,r=n.chart,i=n.scale,o=n.rangeElement,s=i.field,u=o.get("minTextElement"),c=o.get("maxTextElement"),h=i.invert(t),f=i.invert(e),p=i.getText(h),g=i.getText(f);u.attr("text",p),c.attr("text",g),n._startValue=p,n._endValue=g,n.onChange&&n.onChange({startText:p,endText:g,startValue:h,endValue:f,startRadio:t,endRadio:e}),r.scale(s,a.mix({},l(r,s),{nice:!1,min:h,max:f})),r.repaint()},o._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",(function(e){var n=e.range,r=n[0]/100,i=n[1]/100;t._updateElement(r,i)}))},o.clear=function(){var t=this;t.canvas.clear(),t.bgChart&&t.bgChart.destroy(),t.bgChart=null,t.scale=null,t.canvas.draw()},o.repaint=function(){this.clear(),this.render()},o.render=function(){var t=this;t._initWidth(),t._initCanvas(),t._initBackground(),t._initSlider(),t._bindEvent(),t.canvas.draw()},o.destroy=function(){var t=this;clearTimeout(t.resizeTimer),t.rangeElement.off("sliderchange"),t.bgChart&&t.bgChart.destroy(),t.canvas.destroy();for(var e=t.domContainer;e.hasChildNodes();)e.removeChild(e.firstChild);window.removeEventListener("resize",a.getWrapBehavior(t,"_initForceFitEvent")),t.destroyed=!0},u}(u);t.exports=g},function(t,e,n){var r=n(0),i=n(16).Group,a=r.DomUtil,o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},o._initHandle=function(t){var e,n,i,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),u=s.img,l=s.width,c=s.height;if("horizontal"===o){var h=s.width;i="ew-resize",n=a.addShape("Image",{attrs:{x:-h/2,y:0,width:h,height:c,img:u,cursor:i}}),e=a.addShape("Text",{attrs:r.mix({x:"min"===t?-(h/2+5):h/2+5,y:c/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))})}else i="ns-resize",n=a.addShape("Image",{attrs:{x:0,y:-c/2,width:l,height:c,img:u,cursor:i}}),e=a.addShape("Text",{attrs:r.mix({x:l/2,y:"min"===t?c/2+5:-(c/2+5),textAlign:"center",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),a},o._initSliderBackground=function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},o._beforeRenderUI=function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},o._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},o._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},o._renderHorizontal=function(){this._transform("horizontal")},o._renderVertical=function(){this._transform("vertical")},o._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},o._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},o._getRange=function(t,e){var n=t+e;return n=(n=n>100?100:n)<0?0:n},o._limitRange=function(t,e,n){n[0]=this._getRange(t,n[0]),n[1]=n[0]+e,n[1]>100&&(n[1]=100,n[0]=n[1]-e)},o._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l="vertical"===this.get("layout")?-1:1,c=e["page"+t],h=(c-o)/n*100*l,f=this.get("minRange"),p=this.get("maxRange");a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),p&&a[1]-a[0]>=p&&this._limitRange(h,p,a)),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),p&&a[1]-a[0]>=p&&this._limitRange(h,p,a))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],this._limitRange(h,i,a)),this.emit("sliderchange",{range:a}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},o._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},o._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=a.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=a.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},o._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},o._onCanvasMouseUp=function(){this._removeDocumentEvents()},o._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},i}(i);t.exports=o},function(t,e,n){var r=n(0),i=n(171),a=n(383),o=n(384),s=["X","Y","XY"],u="X",l=function(t){var e,n;n=t,(e=l).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=l.prototype;function l(e,n){var i,a=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i=t.call(this,e,n)||this);a.chart=n,a.type=a.type.toUpperCase();var l=a.data=n.get("data"),c=n.getYScales(),h=n.getXScale();c.push(h);var f=n.get("scaleController");return c.forEach((function(t){var e=t.field,n=f.defs[e]||{};a.limitRange[e]=o(l,t),a.originScaleDefsByField[e]=r.mix(n,{nice:!!n.nice}),t.isLinear?a.stepByField[e]=(t.max-t.min)*a.stepRatio:a.stepByField[e]=a.catStep})),s.includes(a.type)||(a.type=u),i}return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{processEvent:"mousewheel",type:u,stepRatio:.05,stepByField:{},minScale:1,maxScale:4,catStep:2,limitRange:{},originScaleDefsByField:{}})},i._applyScale=function(t,e,n,i){void 0===n&&(n=0);var o=this,s=o.chart,u=o.stepByField;if(t.isLinear){var l=t.min,c=t.max,h=t.field,f=1-n,p=u[h]*e,g=l+p*n,d=c-p*f;if(d>g){var v=a(s,h);s.scale(h,r.mix({},v,{nice:!1,min:g,max:d}))}}else{var y=t.field,x=t.values,m=o.chart,b=m.get("coord"),_=a(m,y),w=o.limitRange[y],S=w.length,M=S/o.maxScale,C=S/o.minScale,A=x.length,k=b.invertPoint(i).x,P=A-e*this.catStep,O=parseInt(P*k),T=P+O;if(e>0&&A>=M){var I=O,L=T;T>A&&(L=A-1,I=A-P);var j=x.slice(I,L);m.scale(y,r.mix({},_,{values:j}))}else if(e<0&&A<=C){var E=w.indexOf(x[0]),D=w.indexOf(x[A-1]),F=Math.max(0,E-O),B=Math.min(D+T,S),R=w.slice(F,B);m.scale(y,r.mix({},_,{values:R}))}}},i.process=function(t){var e=this,n=e.chart,r=e.type,i=n.get("coord"),a=t.deltaY,o=i.invertPoint(t);if(a){e.onZoom&&e.onZoom(a,o,e),a>0?e.onZoomin&&e.onZoomin(a,o,e):e.onZoomout&&e.onZoomout(a,o,e);var s=a/Math.abs(a);r.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,o.x,t),r.indexOf("Y")>-1&&n.getYScales().forEach((function(n){e._applyScale(n,s,o.y,t)}))}n.repaint()},i.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),r=t.getXScale();n.push(r),n.forEach((function(n){if(n.isLinear){var r=n.field;t.scale(r,e[r])}})),t.repaint()},l}(i);t.exports=l}])},t.exports=r()},function(t,e,n){var r=n(3),i=n(33),a=n(1),o="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,h=l.call(Object);t.exports=function(t){if(!a(t)||r(t)!=o)return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}},function(t,e,n){var r=n(51)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(7)(n(2),"Map");t.exports=r},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(90),i=n(22),a=n(38),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},function(t,e,n){(function(t){var r=n(50),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{var t=a&&a.require&&a.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}).call(this,n(36)(t))},function(t,e,n){var r=n(23),i=n(15);t.exports=function(t,e){for(var n=0,a=(e=r(e,t)).length;null!=t&&n<a;)t=t[i(e[n++])];return n&&n==a?t:void 0}},function(t,e,n){var r=n(0),i=n(24),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(o.test(t)||!a.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(95),i=n(107),a=n(109),o=n(110),s=n(111);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(26),i=n(114),a=n(115),o=n(116),s=n(117),u=n(118);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=u,t.exports=l},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(128),i=n(60),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return a.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(65);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supportD3Formatter=void 0;var r=s(n(70)),i=s(n(14)),a=function(t){if(t&&t.__esModule)return t;var e=o();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}n.default=t,e&&e.set(t,n);return n}(n(206));function o(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}function s(t){return t&&t.__esModule?t:{default:t}}e.supportD3Formatter=function(t){var e=(0,i.default)(t,"formatter");if((0,r.default)(e))return t.formatter=function(t){return a.format(e)(t)},t;var n=function(e){if(t.hasOwnProperty(e)){var n=(0,i.default)(t[e],"formatter");(0,r.default)(n)&&(t[e].formatter=function(t){return a.format(n)(t)})}};for(var o in t)n(o);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.registerShape=void 0;var r=n(31);e.registerShape=function(t,e,n){r.Shape.registerShape(t,e,n)};e.registerAnimation=function(t,e,n){r.Animate.registerAnimation(t,e,n)}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(76))},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(19),i=n(79),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(43),i=n(119),a=n(55),o=n(120),s=n(122),u=n(125),l=n(126),c=n(127),h=n(129),f=n(62),p=n(64),g=n(12),d=n(130),v=n(131),y=n(136),x=n(0),m=n(21),b=n(138),_=n(8),w=n(140),S=n(18),M=1,C=2,A=4,k="[object Arguments]",P="[object Function]",O="[object GeneratorFunction]",T="[object Object]",I={};I[k]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[T]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[P]=I["[object WeakMap]"]=!1,t.exports=function t(e,n,L,j,E,D){var F,B=n&M,R=n&C,z=n&A;if(L&&(F=E?L(e,j,E,D):L(e)),void 0!==F)return F;if(!_(e))return e;var N=x(e);if(N){if(F=d(e),!B)return l(e,F)}else{var Y=g(e),V=Y==P||Y==O;if(m(e))return u(e,B);if(Y==T||Y==k||V&&!E){if(F=R||V?{}:y(e),!B)return R?h(e,s(F,e)):c(e,o(F,e))}else{if(!I[Y])return E?e:{};F=v(e,Y,B)}}D||(D=new r);var X=D.get(e);if(X)return X;D.set(e,F),w(e)?e.forEach((function(r){F.add(t(r,n,L,r,e,D))})):b(e)&&e.forEach((function(r,i){F.set(i,t(r,n,L,i,e,D))}));var H=z?R?p:f:R?keysIn:S,W=N?void 0:H(e);return i(W||e,(function(r,i){W&&(r=e[i=r]),a(F,i,t(r,n,L,i,e,D))})),F}},function(t,e,n){var r=n(56),i=n(28),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(57);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(7),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(121),i=n(20),a=n(0),o=n(21),s=n(44),u=n(37),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),c=!n&&i(t),h=!n&&!c&&o(t),f=!n&&!c&&!h&&u(t),p=n||c||h||f,g=p?r(t.length,String):[],d=g.length;for(var v in t)!e&&!l.call(t,v)||p&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,d))||g.push(v);return g}},function(t,e,n){var r=n(58),i=n(123),a=n(10);t.exports=function(t){return a(t)?r(t,!0):i(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(46),i=n(33),a=n(45),o=n(60),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,a(t)),t=i(t);return e}:o;t.exports=s},function(t,e,n){var r=n(63),i=n(45),a=n(18);t.exports=function(t){return r(t,a,i)}},function(t,e,n){var r=n(46),i=n(0);t.exports=function(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}},function(t,e,n){var r=n(63),i=n(61),a=n(59);t.exports=function(t){return r(t,a,i)}},function(t,e,n){var r=n(2).Uint8Array;t.exports=r},function(t,e,n){var r=n(46),i=n(149);t.exports=function t(e,n,a,o,s){var u=-1,l=e.length;for(a||(a=i),s||(s=[]);++u<l;){var c=e[u];n>0&&a(c)?n>1?t(c,n-1,a,o,s):r(s,c):o||(s[s.length]=c)}return s}},function(t,e,n){var r=n(150),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),u=Array(s);++o<s;)u[o]=a[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=a[o];return l[e]=n(u),r(t,this,l)}}},function(t,e,n){var r=n(151),i=n(153)(r);t.exports=i},function(t,e,n){var r=n(3),i=n(1),a="[object Number]";t.exports=function(t){return"number"==typeof t||i(t)&&r(t)==a}},function(t,e,n){var r=n(3),i=n(0),a=n(1),o="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&r(t)==o}},function(t,e,n){var r=n(167),i=n(1);t.exports=function t(e,n,a,o,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,a,o,t,s))}},function(t,e,n){var r=n(168),i=n(171),a=n(172),o=1,s=2;t.exports=function(t,e,n,u,l,c){var h=n&o,f=t.length,p=e.length;if(f!=p&&!(h&&p>f))return!1;var g=c.get(t);if(g&&c.get(e))return g==e;var d=-1,v=!0,y=n&s?new r:void 0;for(c.set(t,e),c.set(e,t);++d<f;){var x=t[d],m=e[d];if(u)var b=h?u(m,x,d,e,t,c):u(x,m,d,t,e,c);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!i(e,(function(t,e){if(!a(y,e)&&(x===t||l(x,t,n,u,c)))return y.push(e)}))){v=!1;break}}else if(x!==m&&!l(x,m,n,u,c)){v=!1;break}}return c.delete(t),c.delete(e),v}},function(t,e,n){var r=n(8);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,a.default)(t)||(0,o.default)(t))return;if(!function(t){var e=!1;(0,o.default)(t.data)||(e=!0);if(!(0,a.default)(t.views)&&((0,i.default)(t.views)&&!(0,o.default)(t.views.data)&&(e=!0),(0,r.default)(t.views)))for(var n=0,s=t.views;n<s.length;n++){var u=s[n];(0,o.default)(u.data)||(e=!0)}return e}(t))return;var e=new s.default(t);return e.render(),e},Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return l.default}}),e.Global=e.registerShape=e.registerAnimation=void 0;var r=h(n(0)),i=h(n(32)),a=h(n(5)),o=h(n(6)),s=h(n(91)),u=function(t){if(t&&t.__esModule)return t;var e=c();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}n.default=t,e&&e.set(t,n);return n}(n(49)),l=h(n(203));function c(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return c=function(){return t},t}function h(t){return t&&t.__esModule?t:{default:t}}var f=n(31),p=u.registerAnimation;e.registerAnimation=p;var g=u.registerShape;e.registerShape=g;var d=f.Global;e.Global=d},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(9),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(51)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(7)(n(2),"DataView");t.exports=r},function(t,e,n){var r=n(13),i=n(82),a=n(8),o=n(53),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,h=l.hasOwnProperty,f=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?f:s).test(o(t))}},function(t,e,n){var r,i=n(83),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!a&&a in t}},function(t,e,n){var r=n(2)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(7)(n(2),"Promise");t.exports=r},function(t,e,n){var r=n(7)(n(2),"Set");t.exports=r},function(t,e,n){var r=n(7)(n(2),"WeakMap");t.exports=r},function(t,e,n){var r=n(3),i=n(1),a="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==a}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(3),i=n(35),a=n(1),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&i(t.length)&&!!o[r(t)]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(n(14)),i=_(n(13)),a=_(n(16)),o=_(n(6)),s=_(n(5)),u=_(n(4)),l=b(n(154)),c=b(n(155)),h=b(n(157)),f=b(n(158)),p=b(n(159)),g=b(n(160)),d=b(n(161)),v=b(n(198)),y=_(n(199)),x=b(n(11));function m(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return m=function(){return t},t}function b(t){if(t&&t.__esModule)return t;var e=m();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}return n.default=t,e&&e.set(t,n),n}function _(t){return t&&t.__esModule?t:{default:t}}var w=function(){return(w=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},S=n(31),M=n(202);var C=function(){function t(t){this.viewInstance={},this.config=(0,u.default)(t),this.checkChartConfig(this.config),this.chartInstance=new S.Chart(this.config.chart)}return t.prototype.getWidth=function(){return this.chartInstance.get("width")},t.prototype.getHeight=function(){return this.chartInstance.get("height")},t.prototype.render=function(){var t=this.config,e=this.chartInstance;(0,y.default)(),this.setEvents(e,t),this.setDataSource(e,t.data),this.setCoord(e,t),this.setTooltip(e,t),this.setAxis(e,t),this.setContent(e,t),this.setLegend(e,t),this.setViews(e,t),this.setFacet(e,t),e.render(),this.setDefaultTooltip(e,t),this.setBrush(e,t)},t.prototype.repaint=function(t){var e=(0,u.default)(t);this.checkChartConfig(e),this.renderDiffConfig(e)},t.prototype.destroy=function(t){t&&t.destroy()},t.prototype.clear=function(t){t&&t.clear()},t.prototype.checkChartConfig=function(t){var e=t.chart;if(!e||!e.height)throw new Error("please set correct chart option")},t.prototype.createView=function(t,e){var n={};e.start&&(n.start=e.start),e.end&&(n.end=e.end);var r=t.view(n);if(!e.viewId)throw new Error("you must set viewId");return this.viewInstance[e.viewId]=r,r},t.prototype.setEvents=function(t,e){x.setEvent(t,"",e.chart)},t.prototype.setDataSource=function(t,e){(0,s.default)(e)||(0,o.default)(e)||t.source(e)},t.prototype.setFilter=function(t,e){return h.process(t,e)},t.prototype.setScale=function(t,e){return g.process(t,e)},t.prototype.setCoord=function(t,e){return c.process(t,e)},t.prototype.setSeries=function(t,e,n){return void 0===n&&(n=!1),d.process(t,e,n)},t.prototype.setAxis=function(t,e,n){return void 0===n&&(n=!1),l.process(t,e,n)},t.prototype.setTooltip=function(t,e,n){return void 0===n&&(n=!1),v.process(t,e,n)},t.prototype.setDefaultTooltip=function(t,e){return v.setDefaultPoint(t,e)},t.prototype.setGuide=function(t,e,n){return void 0===n&&(n=!1),f.process(t,e,n)},t.prototype.setLegend=function(t,e,n){return void 0===n&&(n=!1),p.process(t,e,n)},t.prototype.setContent=function(t,e,n){void 0===n&&(n=!1),this.setScale(t,e),this.setFilter(t,e),this.setSeries(t,e,n),this.setGuide(t,e,n)},t.prototype.setView=function(t,e,n,r){void 0===r&&(r=!1);var i=this.createView(e,t),a=t.data?t.data:n.data;return this.setDataSource(i,a),(0,s.default)(t.coord)||this.setCoord(i,t),(0,s.default)(t.tooltip)||this.setTooltip(i,t,r),(0,s.default)(t.axis)||this.setAxis(i,t,r),(0,s.default)(t.guide)||this.setGuide(i,t,r),this.setContent(i,t,r),i},t.prototype.setViews=function(t,e,n){void 0===n&&(n=!1);var r=(0,u.default)(e.views),i=Array.isArray(r);if(!(0,s.default)(r)&&!(0,o.default)(r))for(var a=0,l=i?r:[r];a<l.length;a++){var c=l[a];this.setView(c,t,e,n)}},t.prototype.setFacetViews=function(t,e,n,r){void 0===r&&(r=!1),this.setDataSource(t,n.data),(0,s.default)(n.coord)||this.setCoord(t,n),(0,s.default)(n.tooltip)||this.setTooltip(t,n,r),(0,s.default)(n.axis)||this.setAxis(t,n,r),(0,s.default)(n.guide)||this.setGuide(t,n,r),this.setContent(t,n)},t.prototype.setFacet=function(t,e,n){var r=this;void 0===n&&(n=!1);var l=(0,u.default)(e.facet);if(!(0,s.default)(l)&&!(0,o.default)(l)){var c=(0,a.default)(l,["type","views"]);return(0,o.default)(l.views)&&!(0,i.default)(l.views)?t.facet(l.type,c):((0,i.default)(l.views)?c.eachView=function(t,e){r.setFacetViews(t,e,l.views(t,e),n)}:(l.views=Array.isArray(l.views)?l.views:[l.views],c.eachView=function(t,e){r.setFacetViews(t,e,l.views[0],n)}),t.facet(l.type,c))}},t.prototype.setBrush=function(t,e){if(!(0,s.default)(e.brush)&&!(0,o.default)(e.brush)){var n=e.brush,r=w({},e.brush,{canvas:t.get("canvas"),chart:t}),i=/on(BrushStart|BrushMove|BrushEnd|DragStart|DragMove|DragEnd)/;Object.keys(n).filter((function(t){return i.test(t)})).forEach((function(e){var a=i.exec(e);if(a&&a.length){var o="on"+a[0].toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}));r[o]=function(r){n[e](r,t)}}})),new M(r)}},t.prototype.repaintWidthHeight=function(t,e){var n=(0,r.default)(e,"chart.width");n&&t.changeWidth(n);var i=(0,r.default)(e,"chart.height");i&&t.changeHeight(i)},t.prototype.renderDiffConfig=function(t){var e=this.chartInstance;this.clear(e),this.setScale(e,t),this.setCoord(e,t),this.setFilter(e,t),this.setAxis(e,t,!0),this.setSeries(e,t,!0),this.setTooltip(e,t,!0),this.setGuide(e,t,!0),this.setViews(e,t,!0),this.setLegend(e,t,!0),this.setFacet(e,t,!0),this.repaintWidthHeight(e,t),t.data&&e.changeData(t.data),e.repaint(),this.setBrush(e,t)},t}();e.default=C},function(t,e,n){var r=n(93),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)})),e}));t.exports=o},function(t,e,n){var r=n(94),i=500;t.exports=function(t){var e=r(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(41),i="Expected a function";function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(a.Cache||r),n}a.Cache=r,t.exports=a},function(t,e,n){var r=n(96),i=n(26),a=n(34);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(t,e,n){var r=n(97),i=n(98),a=n(99),o=n(100),s=n(101);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(25);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(25),i="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(25),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(25),i="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(27),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(27);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(27);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(27);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(29);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(29);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(29);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(29);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(113);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(9),i=n(42),a=n(0),o=n(24),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(o(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},function(t,e,n){var r=n(26);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(26),i=n(34),a=n(41),o=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<o-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(17),i=n(18);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(17),i=n(59);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(8),i=n(19),a=n(124),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return a(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&o.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){var r=n(2),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(36)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(17),i=n(45);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}},function(t,e,n){var r=n(17),i=n(61);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(47),i=n(132),a=n(133),o=n(134),s=n(135),u="[object Boolean]",l="[object Date]",c="[object Map]",h="[object Number]",f="[object RegExp]",p="[object Set]",g="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",m="[object Float64Array]",b="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",M="[object Uint8ClampedArray]",C="[object Uint16Array]",A="[object Uint32Array]";t.exports=function(t,e,n){var k=t.constructor;switch(e){case v:return r(t);case u:case l:return new k(+t);case y:return i(t,n);case x:case m:case b:case _:case w:case S:case M:case C:case A:return s(t,n);case c:return new k;case h:case g:return new k(t);case f:return a(t);case p:return new k;case d:return o(t)}}},function(t,e,n){var r=n(47);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(9),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},function(t,e,n){var r=n(47);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(137),i=n(33),a=n(19);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}},function(t,e,n){var r=n(8),i=Object.create,a=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},function(t,e,n){var r=n(139),i=n(22),a=n(38),o=a&&a.isMap,s=o?i(o):r;t.exports=s},function(t,e,n){var r=n(12),i=n(1),a="[object Map]";t.exports=function(t){return i(t)&&r(t)==a}},function(t,e,n){var r=n(141),i=n(22),a=n(38),o=a&&a.isSet,s=o?i(o):r;t.exports=s},function(t,e,n){var r=n(12),i=n(1),a="[object Set]";t.exports=function(t){return i(t)&&r(t)==a}},function(t,e,n){var r=n(23),i=n(143),a=n(144),o=n(15);t.exports=function(t,e){return e=r(e,t),null==(t=a(t,e))||delete t[o(i(e))]}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(39),i=n(145);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=t[r+e];return a}},function(t,e,n){var r=n(32);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(148),i=n(67),a=n(68);t.exports=function(t){return a(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(66);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(9),i=n(20),a=n(0),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(o&&t&&t[o])}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(152),i=n(57),a=n(30),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:a;t.exports=o},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=800,r=16,i=Date.now;t.exports=function(t){var e=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=g(n(13)),i=g(n(69)),a=g(n(16)),o=g(n(5)),s=g(n(0)),u=g(n(4)),l=g(n(14)),c=p(n(11)),h=p(n(48));function f(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return f=function(){return t},t}function p(t){if(t&&t.__esModule)return t;var e=f();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}return n.default=t,e&&e.set(t,n),n}function g(t){return t&&t.__esModule?t:{default:t}}var d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};e.process=function(t,e,n){void 0===n&&(n=!1);var f=(0,u.default)(e.axis),p=(0,s.default)(f);if((0,o.default)(f)||!1===f||p&&0===f.length)return t.axis(!1);if(!0===f)return t.axis();for(var g=p?f:[f],v=e.coord,y=e.data,x=function(e){if(v&&"polar"===v.type&&"rotate"===v.direction&&function(t,e,n,r){var i=(0,l.default)(e,"polarLabel"),a=(0,l.default)(e,"polarLabel.rotate");if(a){var o={};"parallel"===a?o={rotate:n.startAngle,textAlign:"center"}:"normal"===a&&(o={rotate:n.startAngle+90,textAlign:"right"});var s=(0,l.default)(e,"polarLabel.offsetX"),u=(0,l.default)(e,"polarLabel.offsetY");r.forEach((function(n,a){t.guide().text(d({position:[a,0],content:r[a][e.dataKey],style:d({polarLabel:i},o)},s,u))}))}}(t,e,v,y),e.label&&(e.label=h.supportD3Formatter(e.label)),!n)for(var o in e)if(e.hasOwnProperty(o)){var s="tickLine"===o?"ticks":o;c.setSEvent(t,"axis",s,e[o])}if(e.dataKey)if(!1===e.show)t.axis(e.dataKey,!1);else{var u=(0,a.default)(e,["show","dataKey"]),f=u.label;if(f&&(0,i.default)(f.density)&&0<f.density&&f.density<1&&(0,r.default)(f.formatter)){var p=Math.floor(1/f.density),g=f.formatter;u.label.formatter=function(t,e,n){return n%p?" ":g(t,e,n)}}t.axis(e.dataKey,u)}else t.axis(e)},m=0,b=g;m<b.length;m++){x(b[m])}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r},a=n(156);var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};e.process=function(t,e){var n=(0,i.default)(e.coord);if(!n||!n.type)return t.coord("rect");var r=n.type;return"polar"===r||"theta"===r||"helix"===r?function(t,e){var n={};if(e.radius&&(e.radius<0||e.radius>1)||e.innerRadius&&(e.innerRadius<0||e.innerRadius>1))throw new Error("please set correct radius or innerRadius");if(e.radius&&(n=o({},n,{radius:e.radius})),e.innerRadius&&(n=o({},n,{innerRadius:e.innerRadius})),e.startAngle||e.endAngle){if(e.startAngle&&(e.startAngle<-360||e.startAngle>360))throw new Error("please set correct starAngle");if(n=o({},n,{startAngle:(0,a.degreeToRadian)(e.startAngle)}),e.endAngle&&(e.endAngle<-360||e.endAngle>360))throw new Error("please set correct endAngle");n=o({},n,{endAngle:(0,a.degreeToRadian)(e.endAngle)})}var r=t.coord(e.type,o({},n));switch(e.direction){case"rotate":r.transpose();break;case"xReverse":r.reflect("x");break;case"yReverse":r.reflect("y");break;case"reverse":r.reflect()}return e.rotate&&r.rotate(e.rotate),r}(t,n):"rect"===r?function(t,e){if(!e.direction)return t.coord("rect");switch(e.direction){case"BL":t.coord("rect");break;case"BR":t.coord("rect").scale(-1,1);break;case"LT":t.coord("rect").transpose().scale(1,-1);break;case"LB":t.coord("rect").transpose();break;case"RB":t.coord("rect").transpose().reflect();break;case"RT":t.coord("rect").transpose().reflect().scale(-1,1);break;case"TL":t.coord("rect").reflect();break;case"TR":t.coord("rect").reflect().scale(-1,1);break;default:t.coord("rect")}return t}(t,n):t.coord(r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polarToCartesian=e.radianToDegree=e.degreeToRadian=void 0;var r=function(t){return t*Math.PI/180};e.degreeToRadian=r;e.radianToDegree=function(t){return 180*t/Math.PI};e.polarToCartesian=function(t,e,n,i){var a=r(i);return{x:t+Math.cos(a)*n,y:e+Math.sin(a)*n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=o(n(6)),i=o(n(0)),a=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}e.process=function(t,e){var n=(0,a.default)(e.filter),o=(0,i.default)(n);if(!(0,r.default)(n)){for(var s=0,u=o?n:[n];s<u.length;s++){var l=u[s];l.dataKey&&l.callback&&t.filter(l.dataKey,l.callback)}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=u(n(6)),i=u(n(5)),a=u(n(4)),o=function(t){if(t&&t.__esModule)return t;var e=s();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}n.default=t,e&&e.set(t,n);return n}(n(11));function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t){return t&&t.__esModule?t:{default:t}}var l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};e.process=function(t,e,n){void 0===n&&(n=!1);var s=(0,a.default)(e.guide),u=Array.isArray(s);if(!(0,i.default)(s)&&!(0,r.default)(s))return(u?s:[s]).forEach((function(e){n||o.setEvent(t,"guide-"+e.type,e),"line"===e.type?function(t,e){if("parallel"===e.quickType){var n=e.data;t.guide().line(l({start:["min",n],end:["max",n]},e))}else if("normal"===e.quickType){n=e.data;t.guide().line(l({start:[n,"min"],end:[n,"max"]},e))}else t.guide().line(e)}(t,e):"region"===e.type?t.guide().region(e):"arc"===e.type?function(t,e){if("parallel"===e.quickType){var n=e.data;t.guide().arc(l({start:["min",n],end:["max",n]},e)),t.guide().arc(l({start:["max",n],end:["min",n]},e))}else if("normal"===e.quickType){n=e.data;t.guide().line(l({start:[n,"min"],end:[n,"max"]},e))}else t.guide().arc(e)}(t,e):"text"===e.type?t.guide().text(e):"image"===e.type?t.guide().image(e):"html"===e.type?t.guide().html(e):"dataMarker"===e.type?t.guide().dataMarker(e):"regionFilter"===e.type?t.guide().regionFilter(e):"dataRegion"===e.type&&t.guide().dataRegion(e)})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=u(n(16)),i=u(n(5)),a=u(n(4)),o=function(t){if(t&&t.__esModule)return t;var e=s();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}n.default=t,e&&e.set(t,n);return n}(n(11));function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t){return t&&t.__esModule?t:{default:t}}function l(t){return t.onHover=function(t){var e=t.shapes;t.geom.highlightShapes(e)},t}e.process=function(t,e,n){void 0===n&&(n=!1);var s=(0,a.default)(e.legend),u=Array.isArray(s);if((0,i.default)(s)||!1===s||u&&0===s.length)return t.legend(!1);if(!0===s)return t.legend();for(var c=0,h=u?s:[s];c<h.length;c++){var f=h[c];f.highlight&&(f=l(f));var p=function(e){if(f.hasOwnProperty(e)){if("onClick"===e){var r=f.onClick;f.onClick=function(e){r(e,t)}}n||o.setSEvent(t,"legend",e,f[e])}};for(var g in f)p(g);if((0,i.default)(f.legendMarker)||(f["g2-legend-marker"]=f.legendMarker),(0,i.default)(f.legendListItem)||(f["g2-legend-list-item"]=f.legendListItem),(0,i.default)(f.legendTitle)||(f["g2-legend-title"]=f.legendTitle),(0,i.default)(f.legendList)||(f["g2-legend-list"]=f.legendList),(f=(0,r.default)(f,["legendMarker","legendListItem","legendTitle","legendList"])).dataKey)if(!1===f.show)t.legend(f.dataKey,!1);else{var d=(0,r.default)(f,["dataKey","show"]);t.legend(f.dataKey,d)}else t.legend(f)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=l(n(16)),i=l(n(6)),a=l(n(0)),o=l(n(4)),s=function(t){if(t&&t.__esModule)return t;var e=u();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}n.default=t,e&&e.set(t,n);return n}(n(48));function u(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}function l(t){return t&&t.__esModule?t:{default:t}}e.process=function(t,e){var n=(0,o.default)(e.scale),u=(0,a.default)(n);if(!(0,i.default)(n)){for(var l={},c=0,h=u?n:[n];c<h.length;c++){var f=h[c];if(f.dataKey){var p=(0,r.default)(f,"dataKey");l[f.dataKey]=p}}return l=s.supportD3Formatter(l),t.scale(l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=x(n(162)),i=x(n(4)),a=x(n(6)),o=x(n(196)),s=x(n(32)),u=x(n(13)),l=x(n(69)),c=x(n(0)),h=x(n(70)),f=x(n(5)),p=y(n(11)),g=y(n(48)),d=y(n(197));function v(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return v=function(){return t},t}function y(t){if(t&&t.__esModule)return t;var e=v();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}return n.default=t,e&&e.set(t,n),n}function x(t){return t&&t.__esModule?t:{default:t}}e.process=function(t,e,n){void 0===n&&(n=!1);var v=(0,i.default)(e.series),y=(0,c.default)(v);if((0,f.default)(v)||(0,a.default)(v))return t;var x,m=y?v:[v];return m=d.process(m,e.coord),(m=(0,r.default)(m,"zIndex")).forEach((function(e){for(var r in n||p.setEvent(t,e.gemo,e),e)e.hasOwnProperty(r)&&p.setSEvent(t,"label",name,e[r]);x=function(t,e){var n=e.animate;return(0,a.default)(n)?t:t.animate(n)}(x=function(t,e){var n=e.active;return(0,c.default)(n)?t.active.apply(t,n):(0,o.default)(n)||(0,s.default)(n)?t.active(n):t}(x=function(t,e){var n=e.select;return(0,o.default)(n)?t.select(n):(0,c.default)(n)&&n.length>=1?n[1]?t.select(n[0],n[1]):t.select(n[0]):t}(x=function(t,e){var n=e.style;return(0,c.default)(n)&&n.length>=1?n[1]?t.style(n[0],n[1]):t.style(n[0]):(0,s.default)(n)?t.style(n):t}(x=function(t,e){var n=e.tooltip;return(0,o.default)(n)||(0,h.default)(n)?t.tooltip(n):(0,c.default)(n)&&n.length>=1?n[1]?t.tooltip(n[0],n[1]):t.tooltip(n[0]):t}(x=function(t,e){var n=e.label;if((0,h.default)(n))return t.label(n);if((0,c.default)(n)&&n.length>=2){if((0,l.default)(n[1].density)&&0<n[1].density&&n[1].density<1&&((0,u.default)(n[1].formatter)||(0,h.default)(n[1].formatter))){var r=Math.floor(1/n[1].density),i=(0,h.default)(n[1].formatter)?g.supportD3Formatter(n[1]).formatter:n[1].formatter;n[1].formatter=function(t,e,n){return n%r?" ":i(t,e,n)}}return t.label.apply(t,n)}return t}(x=function(t,e){var n=e.size;return(0,l.default)(n)||(0,h.default)(n)?t.size(n):(0,c.default)(n)&&n.length>=1?n[1]?t.size(n[0],n[1]):t.size(n[0]):t}(x=function(t,e){var n=e.opacity;return(0,l.default)(n)||(0,h.default)(n)?t.opacity(n):(0,c.default)(n)&&n.length>=1?n[1]?t.opacity(n[0],n[1]):t.opacity(n[0]):t}(x=function(t,e){var n=e.color;return(0,h.default)(n)?t.color(n):(0,c.default)(n)&&n.length>=1?n[1]?t.color(n[0],n[1]):t.color(n[0]):t}(x=function(t,e){var n=e.shape;return(0,h.default)(n)?t.shape(n):(0,c.default)(n)&&n.length>=1?n[1]?t.shape(n[0],n[1]):t.shape(n[0]):t}(x=function(t,e){var n=e.adjust;return(0,f.default)(n)?t:t.adjust(n)}(x=function(t,e){var n=e.position;return(0,f.default)(n)?t:t.position(n)}(x=function(t,e){switch(e.gemo){case"line":t=t.line();break;case"area":t=t.area();break;case"bar":case"interval":t=t.interval();break;case"point":t=t.point();break;case"schema":t=t.schema();break;case"polygon":t=t.polygon();break;case"contour":t=t.contour();break;case"heatmap":t=t.heatmap();break;case"edge":t=t.edge();break;case"path":t=t.path();break;case"venn":t=t.venn();break;default:t=t.line()}return t}(t,e),e),e),e),e),e),e),e),e),e),e),e),e)})),x}},function(t,e,n){var r=n(66),i=n(163),a=n(194),o=n(195),s=a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){var r=n(42),i=n(164),a=n(185),o=n(191),s=n(22),u=n(192),l=n(30);t.exports=function(t,e,n){var c=-1;e=r(e.length?e:[l],s(i));var h=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++c,value:t}}));return o(h,(function(t,e){return u(t,e,n)}))}},function(t,e,n){var r=n(165),i=n(178),a=n(30),o=n(0),s=n(182);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(166),i=n(177),a=n(74);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(43),i=n(71),a=1,o=2;t.exports=function(t,e,n,s){var u=n.length,l=u,c=!s;if(null==t)return!l;for(t=Object(t);u--;){var h=n[u];if(c&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++u<l;){var f=(h=n[u])[0],p=t[f],g=h[1];if(c&&h[2]){if(void 0===p&&!(f in t))return!1}else{var d=new r;if(s)var v=s(p,g,f,t,e,d);if(!(void 0===v?i(g,p,a|o,s,d):v))return!1}}return!0}},function(t,e,n){var r=n(43),i=n(72),a=n(173),o=n(176),s=n(12),u=n(0),l=n(21),c=n(37),h=1,f="[object Arguments]",p="[object Array]",g="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,y,x){var m=u(t),b=u(e),_=m?p:s(t),w=b?p:s(e),S=(_=_==f?g:_)==g,M=(w=w==f?g:w)==g,C=_==w;if(C&&l(t)){if(!l(e))return!1;m=!0,S=!1}if(C&&!S)return x||(x=new r),m||c(t)?i(t,e,n,v,y,x):a(t,e,_,n,v,y,x);if(!(n&h)){var A=S&&d.call(t,"__wrapped__"),k=M&&d.call(e,"__wrapped__");if(A||k){var P=A?t.value():t,O=k?e.value():e;return x||(x=new r),y(P,O,n,v,x)}}return!!C&&(x||(x=new r),o(t,e,n,v,y,x))}},function(t,e,n){var r=n(41),i=n(169),a=n(170);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,t.exports=o},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(9),i=n(65),a=n(28),o=n(72),s=n(174),u=n(175),l=1,c=2,h="[object Boolean]",f="[object Date]",p="[object Error]",g="[object Map]",d="[object Number]",v="[object RegExp]",y="[object Set]",x="[object String]",m="[object Symbol]",b="[object ArrayBuffer]",_="[object DataView]",w=r?r.prototype:void 0,S=w?w.valueOf:void 0;t.exports=function(t,e,n,r,w,M,C){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!M(new i(t),new i(e)));case h:case f:case d:return a(+t,+e);case p:return t.name==e.name&&t.message==e.message;case v:case x:return t==e+"";case g:var A=s;case y:var k=r&l;if(A||(A=u),t.size!=e.size&&!k)return!1;var P=C.get(t);if(P)return P==e;r|=c,C.set(t,e);var O=o(A(t),A(e),r,w,M,C);return C.delete(t),O;case m:if(S)return S.call(t)==S.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(62),i=1,a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,u){var l=n&i,c=r(t),h=c.length;if(h!=r(e).length&&!l)return!1;for(var f=h;f--;){var p=c[f];if(!(l?p in e:a.call(e,p)))return!1}var g=u.get(t);if(g&&u.get(e))return g==e;var d=!0;u.set(t,e),u.set(e,t);for(var v=l;++f<h;){var y=t[p=c[f]],x=e[p];if(o)var m=l?o(x,y,p,e,t,u):o(y,x,p,t,e,u);if(!(void 0===m?y===x||s(y,x,n,o,u):m)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var b=t.constructor,_=e.constructor;b!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _)&&(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(73),i=n(18);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}},function(t,e,n){var r=n(71),i=n(14),a=n(179),o=n(40),s=n(73),u=n(74),l=n(15),c=1,h=2;t.exports=function(t,e){return o(t)&&s(e)?u(l(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,c|h)}}},function(t,e,n){var r=n(180),i=n(181);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(23),i=n(20),a=n(0),o=n(44),s=n(35),u=n(15);t.exports=function(t,e,n){for(var l=-1,c=(e=r(e,t)).length,h=!1;++l<c;){var f=u(e[l]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++l!=c?h:!!(c=null==t?0:t.length)&&s(c)&&o(f,c)&&(a(t)||i(t))}},function(t,e,n){var r=n(183),i=n(184),a=n(40),o=n(15);t.exports=function(t){return a(t)?r(o(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(39);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(186),i=n(10);t.exports=function(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,(function(t,r,i){a[++n]=e(t,r,i)})),a}},function(t,e,n){var r=n(187),i=n(190)(r);t.exports=i},function(t,e,n){var r=n(188),i=n(18);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(189)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}},function(t,e,n){var r=n(10);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var a=n.length,o=e?a:-1,s=Object(n);(e?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(193);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,u=n.length;++i<s;){var l=r(a[i],o[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(24);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,u=null===e,l=e==e,c=r(e);if(!u&&!c&&!o&&t>e||o&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!c&&t<e||c&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!l)return-1}return 0}},function(t,e,n){var r=n(30),i=n(67),a=n(68);t.exports=function(t,e){return a(i(t,e,r),t+"")}},function(t,e,n){var r=n(28),i=n(10),a=n(44),o=n(8);t.exports=function(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(3),i=n(1),a="[object Boolean]";t.exports=function(t){return!0===t||!1===t||i(t)&&r(t)==a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r,i=(r=n(14))&&r.__esModule?r:{default:r};var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=[{type:"pie",series:{gemo:"interval",adjust:"stack"},coord:{type:"theta"}},{type:"sector",series:{gemo:"interval"},coord:{type:"polar"}},{type:"line",series:{gemo:"line"}},{type:"smoothLine",series:{gemo:"line",shape:"smooth"}},{type:"dashLine",series:{gemo:"line",shape:"dash"}},{type:"stackLine",series:{gemo:"line",adjust:"stack"}},{type:"area",series:{gemo:"area"}},{type:"stackArea",series:{gemo:"area",adjust:"stack"}},{type:"smoothArea",series:{gemo:"area",shape:"smooth"}},{type:"interval",series:{gemo:"interval"}},{type:"stackInterval",series:{gemo:"interval",adjust:"stack"}},{type:"dodgeInterval",series:{gemo:"interval",shape:"interval",adjust:"dodge"}},{type:"bar",series:{gemo:"interval"}},{type:"stackBar",series:{gemo:"interval",shape:"interval",adjust:"stack"}},{type:"dodgeBar",series:{gemo:"interval",shape:"interval",adjust:"dodge"}},{type:"point",series:{gemo:"point",shape:"hollowCircle"}},{type:"funnel",series:{gemo:"interval",adjust:"symmetric",shape:"funnel"}},{type:"pyramid",series:{gemo:"interval",adjust:"symmetric",shape:"pyramid"}},{type:"schema",series:{gemo:"schema",shape:"box"}},{type:"box",series:{gemo:"schema",shape:"box"}},{type:"candle",series:{gemo:"schema",shape:"candle"}},{type:"polygon",series:{gemo:"polygon"}},{type:"contour",series:{gemo:"contour"}},{type:"heatmap",series:{gemo:"heatmap"}},{type:"edge",series:{gemo:"edge"}},{type:"sankey",series:{gemo:"edge",shape:"sankey"}},{type:"errorBar",series:{gemo:"schema",shape:"errorbar"}},{type:"jitterPoint",series:{gemo:"point",adjust:"jitter"}},{type:"path",series:{gemo:"path"}},{type:"venn",series:{gemo:"venn"}}];e.process=function(t,e){for(var n={},r=0,s=o;r<s.length;r++){var u=s[r];n[u.type]=u}for(var l=0;l<t.length;l++){var c=n[t[l].quickType];if(c&&(t[l]=a({},c.series,t[l]),e&&e.type&&(0,i.default)(c,"coord.type")&&(0,i.default)(c,"coord.type")!==e.type))throw new Error("quickType and coord had conflicted.")}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setDefaultPoint=e.process=void 0;var r=u(n(16)),i=u(n(5)),a=u(n(4)),o=function(t){if(t&&t.__esModule)return t;var e=s();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=r?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}}n.default=t,e&&e.set(t,n);return n}(n(11));function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function u(t){return t&&t.__esModule?t:{default:t}}e.process=function(t,e,n){void 0===n&&(n=!1);var s=(0,a.default)(e.tooltip);if((0,i.default)(s)||!1===s||!1===s.show)return t.tooltip(!1);for(var u in s)s.hasOwnProperty(u)&&("g2Tooltip"===u&&(s["g2-tooltip"]=s[u],s=(0,r.default)(s,"g2Tooltip")),"g2TooltipTitle"===u&&(s["g2-tooltip-title"]=s[u],s=(0,r.default)(s,"g2TooltipTitle")),"g2TooltipList"===u&&(s["g2-tooltip-list"]=s[u],s=(0,r.default)(s,"g2TooltipList")),"g2TooltipListItem"===u&&(s["g2-tooltip-list-item"]=s[u],s=(0,r.default)(s,"g2TooltipListItem")),"g2TooltipMaker"===u&&(s["g2-tooltip-maker"]=s[u],s=(0,r.default)(s,"g2TooltipMaker")));return n||o.setEvent(t,"tooltip",s),t.tooltip(s)};e.setDefaultPoint=function(t,e){var n=(0,a.default)(e.tooltip);if(!(0,i.default)(n)&&!1!==n&&!1!==n.show&&n.defaultPoint){var r=n.defaultPoint,o=t.getXY(r);o&&t.showTooltip(o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){i.registerShape(),r.registerShape()};var r=o(n(200)),i=o(n(201));function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function o(t){if(t&&t.__esModule)return t;var e=a();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=r?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=t[i]}}return n.default=t,e&&e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerShape=void 0;var r=function(t){if(t&&t.__esModule)return t;var e=i();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=r?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=t[a]}}n.default=t,e&&e.set(t,n);return n}(n(49));function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t){return[["M",t[1].x,t[1].y],["L",t[2].x,t[2].y],["Z"],["M",((t[1].x||0)+(t[2].x||0))/2,((t[1].y||0)+(t[2].y||0))/2],["L",((t[0].x||0)+(t[3].x||0))/2,((t[0].y||0)+(t[3].y||0))/2],["Z"],["M",t[0].x,t[0].y],["L",t[3].x,t[3].y],["Z"]]}e.registerShape=function(){r.registerShape("schema","errorbar",{getPoints:function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?[0,0,0]:r,a=t.size,o=void 0===a?0:a;return[{x:n-o/2*1,y:i[0]},{x:n-o/2*1,y:i[2]},{x:n+o/2*1,y:i[2]},{x:n+o/2*1,y:i[0]},{x:n,y:i[1]},{x:n-o/2*1,y:i[1]}]},drawShape:function(t,e){var n=e,r=t.points;return n.addShape("path",{attrs:a({stroke:t.color,strokeOpacity:t.opacity||1,lineWidth:t.style.lineWidth||1,fill:t.color,opacity:t.opacity||1,path:this.parsePath(o(r))},t.style)}),n}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerShape=void 0;var r=function(t){if(t&&t.__esModule)return t;var e=i();if(e&&e.has(t))return e.get(t);var n={};if(null!=t){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=r?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=t[a]}}n.default=t,e&&e.set(t,n);return n}(n(49));function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}function a(t,e,n){var r,i,a,o,s=(r=t.x,i=e.x,o=i-(a=+r),function(t){return a+o*t}),u=s(n),l=s(1-n);return["C",u,t.y,l,e.y,e.x,e.y]}e.registerShape=function(){r.registerShape("edge","sankey",{drawShape:function(t,e){var n=t.points,r=t.style.curvature||.5,i=this.parsePath(function(t,e){var n=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]],r=a(t[1],t[3],e);n.push(r),n.push(["L",t[3].x,t[3].y]),n.push(["L",t[2].x,t[2].y]);var i=a(t[2],t[0],e);return n.push(i),n.push(["Z"]),n}(n,r));return e.addShape("path",{attrs:{stroke:"none",strokeOpacity:0,fill:t.color,opacity:t.opacity,path:i}})}})}},function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){var r=n(1);t.exports=r},function(t,e,n){var r=n(2),i=["X","Y","XY","POLYGON"],a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.startPoint=null,this.brushing=!1,this.dragging=!1,this.brushShape=null,this.container=null,this.polygonPath=null,this.style={fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},this.type="XY",this.dragable=!1,this.dragoffX=0,this.dragoffY=0,this.inPlot=!0,this.xField=null,this.yField=null,this.filter=!e.dragable,this.onBrushstart=null,this.onBrushmove=null,this.onBrushend=null,this.onDragstart=null,this.onDragmove=null,this.onDragend=null,this._init(e)}return t.prototype._init=function(t){r.mix(this,t),this.type=this.type.toUpperCase(),-1===i.indexOf(this.type)&&(this.type="XY");var e=this.canvas;if(e){var n=void 0;e.get("children").map((function(t){return"plotBack"===t.get("type")?(n=t.get("plotRange"),!1):t})),this.plot={start:n.bl,end:n.tr},this.bindCanvasEvent()}if(this.chart){var a=this.chart,o=a.get("coord");this.plot={start:o.start,end:o.end};var s=a._getScales("x"),u=a._getScales("y");this.xScale=this.xField?s[this.xField]:a.getXScale(),this.yScale=this.yField?u[this.yField]:a.getYScales()[0]}},t.prototype.clearEvents=function(){this.onMouseDownListener&&this.onMouseDownListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseupListener&&this.onMouseupListener.remove()},t.prototype.bindCanvasEvent=function(){var t=this.canvas.get("canvasDOM");this.clearEvents(),this.onMouseDownListener=r.addEventListener(t,"mousedown",r.wrapBehavior(this,"_onCanvasMouseDown")),this.onMouseMoveListener=r.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp"))},t.prototype._onCanvasMouseDown=function(t){var e=this,n=e.canvas,r=e.type,i=e.brushShape;if(r){var a={x:t.offsetX,y:t.offsetY},o=e.plot&&e.inPlot,s=n.get("canvasDOM"),u=n.get("pixelRatio");if(e.selection&&(e.selection=null),e.dragable&&i&&!i.get("destroyed")){if(i.isHit(a.x*u,a.y*u)){if(s.style.cursor="move",e.selection=i,e.dragging=!0,"X"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=0;else if("Y"===r)e.dragoffX=0,e.dragoffY=a.y-i.attr("y");else if("XY"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var l=i.getBBox();e.dragoffX=a.x-l.minX,e.dragoffY=a.y-l.minY}o&&e.selection.attr("clip",n.addShape("rect",{attrs:{x:this.plot.start.x,y:this.plot.end.y,width:this.plot.end.x-this.plot.start.x,height:this.plot.start.y-this.plot.end.y,fill:"#fff",fillOpacity:0}})),e.onDragstart&&e.onDragstart(t)}e.prePoint=a}if(!e.dragging){e.onBrushstart&&e.onBrushstart(a);var c=e.container;if(o){var h=e.plot,f=h.start,p=h.end;if(a.x<f.x||a.x>p.x||a.y<p.y||a.y>f.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,c?c.clear():(c=n.addGroup({zIndex:5})).initTransform(),e.container=c,"POLYGON"===r&&(e.polygonPath="M "+a.x+" "+a.y)}}},t.prototype._onCanvasMouseMove=function(t){var e=this,n=e.brushing,i=e.dragging,a=e.type,o=e.plot,s=e.startPoint,u=e.xScale,l=e.yScale,c=e.canvas;if(n||i){var h={x:t.offsetX,y:t.offsetY},f=c.get("canvasDOM");if(n){f.style.cursor="crosshair";var p=o.start,g=o.end,d=e.polygonPath,v=e.brushShape,y=e.container;e.plot&&e.inPlot&&(h=e._limitCoordScope(h));var x=void 0,m=void 0,b=void 0,_=void 0;"Y"===a?(x=p.x,m=h.y>=s.y?s.y:h.y,b=Math.abs(p.x-g.x),_=Math.abs(s.y-h.y)):"X"===a?(x=h.x>=s.x?s.x:h.x,m=g.y,b=Math.abs(s.x-h.x),_=Math.abs(g.y-p.y)):"XY"===a?(h.x>=s.x?(x=s.x,m=h.y>=s.y?s.y:h.y):(x=h.x,m=h.y>=s.y?s.y:h.y),b=Math.abs(s.x-h.x),_=Math.abs(s.y-h.y)):"POLYGON"===a&&(d+="L "+h.x+" "+h.y,e.polygonPath=d,v?!v.get("destroyed")&&v.attr(r.mix({},v.__attrs,{path:d})):v=y.addShape("path",{attrs:r.mix(e.style,{path:d})})),"POLYGON"!==a&&(v?!v.get("destroyed")&&v.attr(r.mix({},v.__attrs,{x:x,y:m,width:b,height:_})):v=y.addShape("rect",{attrs:r.mix(e.style,{x:x,y:m,width:b,height:_})})),e.brushShape=v}else if(i){f.style.cursor="move";var w=e.selection;if(w&&!w.get("destroyed"))if("POLYGON"===a){var S=e.prePoint;e.selection.translate(h.x-S.x,h.y-S.y)}else e.dragoffX&&w.attr("x",h.x-e.dragoffX),e.dragoffY&&w.attr("y",h.y-e.dragoffY)}e.prePoint=h,c.draw();var M=e._getSelected(),C=M.data,A=M.shapes,k=M.xValues,P=M.yValues,O={data:C,shapes:A,x:h.x,y:h.y};u&&(O[u.field]=k),l&&(O[l.field]=P),e.onDragmove&&e.onDragmove(O),e.onBrushmove&&e.onBrushmove(O)}},t.prototype._onCanvasMouseUp=function(t){var e=this,n=e.data,i=e.shapes,a=e.xValues,o=e.yValues,s=e.canvas,u=e.type,l=e.startPoint,c=e.chart,h=e.container,f=e.xScale,p=e.yScale,g=t.offsetX,d=t.offsetY;if(s.get("canvasDOM").style.cursor="default",Math.abs(l.x-g)<=1&&Math.abs(l.y-d)<=1)return e.brushing=!1,void(e.dragging=!1);var v={data:n,shapes:i,x:g,y:d};if(f&&(v[f.field]=a),p&&(v[p.field]=o),e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(v);else if(e.brushing){e.brushing=!1;var y=e.brushShape,x=e.polygonPath;"POLYGON"===u&&(x+="z",y&&!y.get("destroyed")&&y.attr(r.mix({},y.__attrs,{path:x})),e.polygonPath=x,s.draw()),e.onBrushend?e.onBrushend(v):c&&e.filter&&(h.clear(),"X"===u?f&&c.filter(f.field,(function(t){return a.indexOf(t)>-1})):"Y"===u?p&&c.filter(p.field,(function(t){return o.indexOf(t)>-1})):(f&&c.filter(f.field,(function(t){return a.indexOf(t)>-1})),p&&c.filter(p.field,(function(t){return o.indexOf(t)>-1}))),c.repaint())}},t.prototype.setType=function(t){t&&(this.type=t.toUpperCase())},t.prototype.destroy=function(){this.clearEvents()},t.prototype._limitCoordScope=function(t){var e=this.plot,n=e.start,r=e.end;return t.x<n.x&&(t.x=n.x),t.x>r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.y>n.y&&(t.y=n.y),t},t.prototype._getSelected=function(){var t=this.chart,e=this.xScale,n=this.yScale,r=this.brushShape,i=this.canvas.get("pixelRatio"),a=[],o=[],s=[],u=[];return t&&t.get("geoms").map((function(t){return t.getShapes().map((function(t){var l=t.get("origin");return Array.isArray(l)||(l=[l]),l.map((function(l){if(r.isHit(l.x*i,l.y*i)){a.push(t);var c=l._origin;u.push(c),e&&o.push(c[e.field]),n&&s.push(c[n.field])}return l})),t})),t})),this.shapes=a,this.xValues=o,this.yValues=s,this.data=u,{data:u,xValues:o,yValues:s,shapes:a}},t}();t.exports=a},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var r={mix:function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t},addEventListener:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},wrapBehavior:function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},getWrapBehavior:function(t,e){return t["_wrap_"+e]}};t.exports=r}])},t.exports=r()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(204))&&r.__esModule?r:{default:r};e.default=function(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];switch(n){case"slider":e.slider=(0,i.default)(r)}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(31);var r=n(205);e.default=function(t){var e=document.getElementById(t.container);if(e){e.innerHTML="";var n=new r(t);return n.render(),n}console.error("plugin slider container not defined")}},function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){var r=n(1);window&&!window.G2&&console.err("Please load the G2 script first!"),t.exports=r},function(t,e,n){var r=n(2),i=window&&window.G2,a=i.Chart,o=i.Util,s=i.G,u=i.Global,l=s.Canvas,c=o.DomUtil,h=function(t){return"number"==typeof t},f=function(){var t=e.prototype;function e(t){this._initProps(),o.deepMix(this,t);var e=this.container;if(!e)throw new Error("Please specify the container for the Slider!");o.isString(e)?this.domContainer=document.getElementById(e):this.domContainer=e,this.handleStyle=o.mix({width:this.height,height:this.height},this.handleStyle),"auto"===this.width&&window.addEventListener("resize",o.wrapBehavior(this,"_initForceFitEvent"))}return t._initProps=function(){this.height=26,this.width="auto",this.padding=u.plotCfg.padding,this.container=null,this.xAxis=null,this.yAxis=null,this.fillerStyle={fill:"#BDCCED",fillOpacity:.3},this.backgroundStyle={stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},this.range=[0,100],this.layout="horizontal",this.textStyle={fill:"#545454"},this.handleStyle={img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},this.backgroundChart={type:["area"],color:"#CCD6EC"}},t._initForceFitEvent=function(){var t=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=t},t.forceFit=function(){if(this&&!this.destroyed){var t=c.getWidth(this.domContainer),e=this.height;if(t!==this.domWidth){var n=this.canvas;n.changeSize(t,e),this.bgChart&&this.bgChart.changeWidth(t),n.clear(),this._initWidth(),this._initSlider(),this._bindEvent(),n.draw()}}},t._initWidth=function(){var t;t="auto"===this.width?c.getWidth(this.domContainer):this.width,this.domWidth=t;var e=o.toAllPadding(this.padding);"horizontal"===this.layout?(this.plotWidth=t-e[1]-e[3],this.plotPadding=e[3],this.plotHeight=this.height):"vertical"===this.layout&&(this.plotWidth=this.width,this.plotHeight=this.height-e[0]-e[2],this.plotPadding=e[0])},t.render=function(){this._initWidth(),this._initCanvas(),this._initBackground(),this._initSlider(),this._bindEvent(),this.canvas.draw()},t.changeData=function(t){this.data=t,this.repaint()},t.destroy=function(){clearTimeout(this.resizeTimer),this.rangeElement.off("sliderchange"),this.bgChart&&this.bgChart.destroy(),this.canvas.destroy();for(var t=this.domContainer;t.hasChildNodes();)t.removeChild(t.firstChild);window.removeEventListener("resize",o.getWrapBehavior(this,"_initForceFitEvent")),this.destroyed=!0},t.clear=function(){this.canvas.clear(),this.bgChart&&this.bgChart.destroy(),this.bgChart=null,this.scale=null,this.canvas.draw()},t.repaint=function(){this.clear(),this.render()},t._initCanvas=function(){var t=this.domWidth,e=this.height,n=new l({width:t,height:e,containerDOM:this.domContainer,capture:!1}),r=n.get("el");r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.zIndex=3,this.canvas=n},t._initBackground=function(){var t,e=this.data,n=this.xAxis,r=this.yAxis,i=o.deepMix(((t={})[""+n]={range:[0,1]},t),this.scales);if(!e)throw new Error("Please specify the data!");if(!n)throw new Error("Please specify the xAxis!");if(!r)throw new Error("Please specify the yAxis!");var s=this.backgroundChart,u=s.type,l=s.color;o.isArray(u)||(u=[u]);var c=o.toAllPadding(this.padding),h=new a({container:this.container,width:this.domWidth,height:this.height,padding:[0,c[1],0,c[3]],animate:!1});h.source(e),h.scale(i),h.axis(!1),h.tooltip(!1),h.legend(!1),o.each(u,(function(t){h[t]().position(n+"*"+r).color(l).opacity(1)})),h.render(),this.bgChart=h,this.scale="horizontal"===this.layout?h.getXScale():h.getYScales()[0],"vertical"===this.layout&&h.destroy()},t._initRange=function(){var t=this.startRadio,e=this.endRadio,n=this.start,r=this.end,i=this.scale,a=0,o=1;h(t)?a=t:n&&(a=i.scale(i.translate(n))),h(e)?o=e:r&&(o=i.scale(i.translate(r)));var s=this.minSpan,u=this.maxSpan,l=0;if("time"===i.type||"timeCat"===i.type){var c=i.values,f=c[0];l=c[c.length-1]-f}else i.isLinear&&(l=i.max-i.min);l&&s&&(this.minRange=s/l*100),l&&u&&(this.maxRange=u/l*100);var p=[100*a,100*o];return this.range=p,p},t._getHandleValue=function(t){var e=this.range,n=e[0]/100,r=e[1]/100,i=this.scale;return"min"===t?this.start?this.start:i.invert(n):this.end?this.end:i.invert(r)},t._initSlider=function(){var t=this.canvas,e=this._initRange(),n=this.scale,i=t.addGroup(r,{middleAttr:this.fillerStyle,range:e,minRange:this.minRange,maxRange:this.maxRange,layout:this.layout,width:this.plotWidth,height:this.plotHeight,backgroundStyle:this.backgroundStyle,textStyle:this.textStyle,handleStyle:this.handleStyle,minText:n.getText(this._getHandleValue("min")),maxText:n.getText(this._getHandleValue("max"))});"horizontal"===this.layout?i.translate(this.plotPadding,0):"vertical"===this.layout&&i.translate(0,this.plotPadding),this.rangeElement=i},t._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",(function(e){var n=e.range,r=n[0]/100,i=n[1]/100;t._updateElement(r,i)}))},t._updateElement=function(t,e){var n=this.scale,r=this.rangeElement,i=r.get("minTextElement"),a=r.get("maxTextElement"),o=n.invert(t),s=n.invert(e),u=n.getText(o),l=n.getText(s);i.attr("text",u),a.attr("text",l),this.start=o,this.end=s,this.onChange&&this.onChange({startText:u,endText:l,startValue:o,endValue:s,startRadio:t,endRadio:e})},e}();t.exports=f},function(t,e){var n=window&&window.G2,r=n.Util,i=n.G.Group,a=r.DomUtil,o=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},o._initHandle=function(t){var e,n,i,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),u=s.img,l=s.width,c=s.height;if("horizontal"===o){var h=s.width;i="ew-resize",n=a.addShape("Image",{attrs:{x:-h/2,y:0,width:h,height:c,img:u,cursor:i}}),e=a.addShape("Text",{attrs:r.mix({x:"min"===t?-(h/2+5):h/2+5,y:c/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))})}else i="ns-resize",n=a.addShape("Image",{attrs:{x:0,y:-c/2,width:l,height:c,img:u,cursor:i}}),e=a.addShape("Text",{attrs:r.mix({x:l/2,y:"min"===t?c/2+5:-(c/2+5),textAlign:"center",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:i},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),a},o._initSliderBackground=function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},o._beforeRenderUI=function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},o._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},o._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},o._renderHorizontal=function(){this._transform("horizontal")},o._renderVertical=function(){this._transform("vertical")},o._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},o._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},o._getRange=function(t,e){var n=t+e;return n=(n=n>100?100:n)<0?0:n},o._limitRange=function(t,e,n){n[0]=this._getRange(t,n[0]),n[1]=n[0]+e,n[1]>100&&(n[1]=100,n[0]=n[1]-e)},o._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l="vertical"===this.get("layout")?-1:1,c=e["page"+t],h=(c-o)/n*100*l,f=this.get("minRange"),p=this.get("maxRange");a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),p&&a[1]-a[0]>=p&&this._limitRange(h,p,a)),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),p&&a[1]-a[0]>=p&&this._limitRange(h,p,a))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],this._limitRange(h,i,a)),this.emit("sliderchange",{range:a}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},o._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},o._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=a.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=a.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},o._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},o._onCanvasMouseUp=function(){this._removeDocumentEvents()},o._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},i}(i);t.exports=o}])},t.exports=r()},function(t,e,n){"use strict";n.r(e);var r=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},i=function(t){return(t=r(Math.abs(t)))?t[1]:NaN},a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(t){if(!(e=a.exec(t)))throw new Error("invalid format: "+t);var e;return new s({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function s(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}o.prototype=s.prototype,s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var u,l,c,h,f=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},p=function(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")},g={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return p(100*t,e)},r:p,s:function(t,e){var n=r(t,e);if(!n)return t+"";var i=n[0],a=n[1],o=a-(u=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+r(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},d=function(t){return t},v=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],x=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?d:(e=v.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",l=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?d:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(v.call(t.numerals,String)),h=void 0===t.percent?"%":t.percent+"",p=void 0===t.minus?"-":t.minus+"",x=void 0===t.nan?"NaN":t.nan+"";function m(t){var e=(t=o(t)).fill,n=t.align,i=t.sign,d=t.symbol,v=t.zero,m=t.width,b=t.comma,_=t.precision,w=t.trim,S=t.type;"n"===S?(b=!0,S="g"):g[S]||(void 0===_&&(_=12),w=!0,S="g"),(v||"0"===e&&"="===n)&&(v=!0,e="0",n="=");var M="$"===d?a:"#"===d&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",C="$"===d?s:/[%p]/.test(S)?h:"",A=g[S],k=/[defgprs%]/.test(S);function P(t){var a,o,s,h=M,g=C;if("c"===S)g=A(t)+g,t="";else{var d=(t=+t)<0;if(t=isNaN(t)?x:A(Math.abs(t),_),w&&(t=f(t)),d&&0==+t&&(d=!1),h=(d?"("===i?i:p:"-"===i||"("===i?"":i)+h,g=("s"===S?y[8+u/3]:"")+g+(d&&"("===i?")":""),k)for(a=-1,o=t.length;++a<o;)if(48>(s=t.charCodeAt(a))||s>57){g=(46===s?l+t.slice(a+1):t.slice(a))+g,t=t.slice(0,a);break}}b&&!v&&(t=r(t,1/0));var P=h.length+t.length+g.length,O=P<m?new Array(m-P+1).join(e):"";switch(b&&v&&(t=r(O+t,O.length?m-g.length:1/0),O=""),n){case"<":t=h+t+g+O;break;case"=":t=h+O+t+g;break;case"^":t=O.slice(0,P=O.length>>1)+h+t+g+O.slice(P);break;default:t=O+h+t+g}return c(t)}return _=void 0===_?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),P.toString=function(){return t+""},P}return{format:m,formatPrefix:function(t,e){var n=m(((t=o(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(i(e)/3))),a=Math.pow(10,-r),s=y[8+r/3];return function(t){return n(a*t)+s}}}};function m(t){return l=x(t),c=l.format,h=l.formatPrefix,l}m({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var b=function(t){return Math.max(0,-i(Math.abs(t)))},_=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(e)/3)))-i(Math.abs(t)))},w=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,i(e)-i(t))+1};n.d(e,"formatDefaultLocale",(function(){return m})),n.d(e,"format",(function(){return c})),n.d(e,"formatPrefix",(function(){return h})),n.d(e,"formatLocale",(function(){return x})),n.d(e,"formatSpecifier",(function(){return o})),n.d(e,"FormatSpecifier",(function(){return s})),n.d(e,"precisionFixed",(function(){return b})),n.d(e,"precisionPrefix",(function(){return _})),n.d(e,"precisionRound",(function(){return w}))}])}));