0
0

f2.min.js 146 KB

1
  1. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.F2=e():t.F2=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=137)}([function(t,e,n){var i=n(46),r={upperFirst:n(47),lowerFirst:n(48),isString:n(49),isNumber:n(50),isBoolean:n(51),isFunction:n(52),isDate:n(53),isArray:n(20),isNil:n(30),isObject:n(31),isPlainObject:n(32),deepMix:n(55),mix:n(56),each:n(57),isObjectValueEqual:function(t,e){t=Object.assign({},t),e=Object.assign({},e);var n=Object.getOwnPropertyNames(t),i=Object.getOwnPropertyNames(e);if(n.length!==i.length)return!1;for(var r=0,a=n.length;r<a;r++){var o=n[r];if(t[o]!==e[o])return!1}return!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]},parsePadding:function(t){var e,n,i,a;return r.isNumber(t)||r.isString(t)?e=i=a=n=t:r.isArray(t)&&(e=t[0],n=r.isNil(t[1])?t[0]:t[1],i=r.isNil(t[2])?t[0]:t[2],a=r.isNil(t[3])?n:t[3]),[e,n,i,a]},directionEnabled:function(t,e){return void 0===t||"string"==typeof t&&-1!==t.indexOf(e)}};r.Array={merge:function(t){for(var e=[],n=0,i=t.length;n<i;n++)e=e.concat(t[n]);return e},values:function(t,e){for(var n=[],i={},a=0,o=t.length;a<o;a++){var s=t[a][e];r.isNil(s)||(r.isArray(s)?r.each(s,function(t){i[t]||(n.push(t),i[t]=!0)}):i[s]||(n.push(s),i[s]=!0))}return n},firstValue:function(t,e){for(var n=null,i=0,a=t.length;i<a;i++){var o=t[i][e];if(!r.isNil(o)){n=r.isArray(o)?o[0]:o;break}}return n},group:function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=r.Array.groupToMap(t,e),a=[];if(1===e.length&&n[e[0]]){var o=n[e[0]];r.each(o,function(t){t="_"+t,a.push(i[t])})}else for(var s in i)a.push(i[s]);return a},groupToMap:function(t,e){if(!e)return{0:t};for(var n={},i=0,r=t.length;i<r;i++){var a=t[i],o=function(t){for(var n="_",i=0,r=e.length;i<r;i++)n+=t[e[i]]&&t[e[i]].toString();return n}(a);n[o]?n[o].push(a):n[o]=[a]}return n},remove:function(t,e){if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},getRange:function(t){if(!t.length)return{min:0,max:0};var e=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:e}}},r.mix(r,i),t.exports=r},function(t,e,n){var i=n(45),r=n(0),a={version:"3.3.8",scales:{},widthRatio:{column:.5,rose:.999999,multiplePie:.75},lineDash:[4,4]};a.setTheme=function(t){r.deepMix(this,t)},a.setTheme(i),t.exports=a},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isShape:!0,attrs:{}}},n.getType=function(){return this._attrs.type},n.drawInner=function(t){var e=this,n=e.get("attrs");e.createPath(t);var i=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;r.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=i)}if(e.hasStroke()&&n.lineWidth>0){var o=n.strokeOpacity;r.isNil(o)||1===o||(t.globalAlpha=o),t.stroke()}},n.getBBox=function(){var t=this._attrs.bbox;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._attrs.bbox=t),t},n.calculateBox=function(){return null},n.createPath=function(){},e}(n(27));t.exports=a},function(t,e){t.exports={create:function(){return[0,0]},length:function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},normalize:function(t,e){var n=this.length(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},direction:function(t,e){return t[0]*e[1]-e[0]*t[1]},angle:function(t,e){var n=this.dot(t,e)/(this.length(t)*this.length(e));return Math.acos(n)},angleTo:function(t,e,n){var i=this.angle(t,e),r=this.direction(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i},zero:function(t){return 0===t[0]&&0===t[1]},distance:function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},clone:function(t){return[t[0],t[1]]},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},transformMat2d:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}}},function(t,e,n){var i=n(25),r=n(13);t.exports=function(t,e){if(t)if(r(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(i(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var i={Canvas:n(76),Group:n(35),Shape:n(2),Matrix:n(24),Vector2:n(3)};n(78),n(79),n(80),n(81),n(82),n(83),n(84),n(85),n(86),t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){return a.isArray(t)?t:a.isString(t)?t.split("*"):[t]}var a=n(0),o=n(33),s=["color","size","shape"],u=n(1),c=n(61),l=n(8),h=n(23),f=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{type:null,data:null,attrs:{},scales:{},container:null,styleOptions:null,chart:null,shapeType:"",generatePoints:!1,attrOptions:{},sortable:!1,startOnZero:!0,visible:!0,connectNulls:!1}},n.init=function(){var t=this;t._initAttrs();var e=t._processData();t.get("adjust")&&t._adjustData(e),t.set("dataArray",e)},n._getGroupScales=function(){var t=this,e=[];return a.each(s,function(n){var i=t.getAttr(n);if(i){var r=i.scales;a.each(r,function(t){t&&t.isCategory&&-1===e.indexOf(t)&&e.push(t)})}}),e},n._groupData=function(t){var e=this,n=e.get("colDefs"),i=e._getGroupScales();if(i.length){var r={},o=[];return a.each(i,function(t){var e=t.field;o.push(e),n&&n[e]&&n[e].values&&(r[t.field]=n[e].values)}),a.Array.group(t,o,r)}return[t]},n._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},n._createAttrOption=function(t,e,n,i){var r={};r.field=e,n?a.isFunction(n)?r.callback=n:r.values=n:r.values=i,this._setAttrOptions(t,r)},n._initAttrs=function(){var t=this,e=t.get("attrs"),n=t.get("attrOptions"),i=t.get("coord");for(var o in n)if(n.hasOwnProperty(o)){var s=n[o],u=a.upperFirst(o),l=r(s.field);"position"===o&&(s.coord=i);for(var h=[],f=0,p=l.length;f<p;f++){var g=l[f],d=t._createScale(g);h.push(d)}if("position"===o){var v=h[1];"polar"===i.type&&i.transposed&&t.hasAdjust("stack")&&v.values.length&&v.change({nice:!1,min:0,max:Math.max.apply(null,v.values)})}s.scales=h;var y=new c[u](s);e[o]=y}},n._createScale=function(t){var e=this.get("scales"),n=e[t];return n||(n=this.get("chart").createScale(t),e[t]=n),n},n._processData=function(){for(var t=this,e=this.get("data"),n=[],i=this._groupData(e),r=0,a=i.length;r<a;r++){var o=i[r],s=t._saveOrigin(o);this.hasAdjust("dodge")&&t._numberic(s),n.push(s)}return n},n._saveOrigin=function(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n],a={};for(var o in r)a[o]=r[o];a._origin=r,e.push(a)}return e},n._numberic=function(t){for(var e=this.getAttr("position").scales,n=0,i=t.length;n<i;n++)for(var r=t[n],a=Math.min(2,e.length),o=0;o<a;o++){var s=e[o];if(s.isCategory){var u=s.field;r[u]=s.translate(r[u])}}},n._adjustData=function(t){var e=this,n=e.get("adjust");if(n){var i=a.upperFirst(n.type);if(!h[i])throw new Error("not support such adjust : "+n);var r=e.getXScale(),o=e.getYScale(),s=a.mix({xField:r.field,yField:o.field},n);new h[i](s).processAdjust(t),"Stack"===i&&e._updateStackRange(o.field,o,t)}},n._updateStackRange=function(t,e,n){for(var i=a.Array.merge(n),r=e.min,o=e.max,s=0,u=i.length;s<u;s++){var c=i[s],l=Math.min.apply(null,c[t]),h=Math.max.apply(null,c[t]);l<r&&(r=l),h>o&&(o=h)}(r<e.min||o>e.max)&&e.change({min:r,max:o})},n._sort=function(t){var e=this,n=e.getXScale(),i=n.field,r=n.type;"identity"!==r&&n.values.length>1&&a.each(t,function(t){t.sort(function(t,e){return"timeCat"===r?n._toTimeStamp(t._origin[i])-n._toTimeStamp(e._origin[i]):n.translate(t._origin[i])-n.translate(e._origin[i])})}),e.set("hasSorted",!0),e.set("dataArray",t)},n.paint=function(){var t=this,e=t.get("dataArray"),n=[],i=t.getShapeFactory();i.setCoord(t.get("coord")),t._beforeMapping(e);for(var r=0,a=e.length;r<a;r++){var o=e[r];o.length&&(o=t._mapping(o),n.push(o),t.draw(o,i))}t.set("dataArray",n)},n.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=l.getShapeFactory(e),this.set("shapeFactory",t)}return t},n._mapping=function(t){for(var e=this,n=e.get("attrs"),i=e.getYScale().field,r=[],o=0,s=t.length;o<s;o++){var u=t[o],c={};c._origin=u._origin,c.points=u.points,c._originY=u[i];for(var l in n)if(n.hasOwnProperty(l)){var h=n[l],f=h.names,p=e._getAttrValues(h,u);if(f.length>1)for(var g=0,d=p.length;g<d;g++){var v=p[g];c[f[g]]=a.isArray(v)&&1===v.length?v[0]:v}else c[f[0]]=1===p.length?p[0]:p}r.push(c)}return r},n._getAttrValues=function(t,e){for(var n=t.scales,i=[],r=0,a=n.length;r<a;r++){var o=n[r],s=o.field;"identity"===o.type?i.push(o.value):i.push(e[s])}return t.mapping.apply(t,i)},n.getAttrValue=function(t,e){var n=this.getAttr(t),i=null;return n&&(i=this._getAttrValues(n,e)[0]),i},n._beforeMapping=function(t){var e=this;e.get("sortable")&&e._sort(t),e.get("generatePoints")&&a.each(t,function(t){e._generatePoints(t)})},n.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},n.getCallbackCfg=function(t,e,n){if(!t)return e;var i={},r=t.map(function(t){return n[t]});return a.each(e,function(t,e){a.isFunction(t)?i[e]=t.apply(null,r):i[e]=t}),i},n.getDrawCfg=function(t){var e=this,n=e.isInCircle(),i={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:n,opacity:t.opacity},r=e.get("styleOptions");return r&&r.style&&(i.style=e.getCallbackCfg(r.fields,r.style,t._origin)),e.get("generatePoints")&&(i.points=t.points),n&&(i.center=e.get("coord").center),i},n.draw=function(t,e){var n=this,i=n.get("container"),r=n.getYScale();a.each(t,function(t,o){if(!r||!a.isNil(t._origin[r.field])){t.index=o;var s=n.getDrawCfg(t),u=t.shape;n.drawShape(u,t,s,i,e)}})},n.drawShape=function(t,e,n,i,r){var o=r.drawShape(t,n,i);o&&a.each([].concat(o),function(t){t.set("origin",e)})},n._generatePoints=function(t){for(var e=this,n=e.getShapeFactory(),i=e.getAttr("shape"),r=0,a=t.length;r<a;r++){var o=t[r],s=e.createShapePointsCfg(o),u=i?e._getAttrValues(i,o):null,c=n.getShapePoints(u,s);o.points=c}},n.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this._normalizeValues(t[n.field],n);return e=i?this._normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return this.get("startOnZero")?n<=0&&e<=0?n:e>=0?e:0:e},n._normalizeValues=function(t,e){var n=[];if(a.isArray(t))for(var i=0,r=t.length;i<r;i++){var o=t[i];n.push(e.scale(o))}else n=e.scale(t);return n},n.getAttr=function(t){return this.get("attrs")[t]},n.getXScale=function(){return this.getAttr("position").scales[0]},n.getYScale=function(){return this.getAttr("position").scales[1]},n.hasAdjust=function(t){return this.get("adjust")&&this.get("adjust").type===t},n._getSnap=function(t,e,n){var i,r=0,a=this.getYScale().field;if(this.hasAdjust("stack")&&t.field===a){i=[],n.forEach(function(t){i.push(t._originY)});for(var o=i.length;r<o&&!(i[0][0]>e);r++){if(i[i.length-1][1]<=e){r=i.length-1;break}if(i[r][0]<=e&&i[r][1]>e)break}}else{(i=t.values).sort(function(t,e){return t-e});for(var s=i.length;r<s&&!((i[0]+i[1])/2>e)&&!((i[r-1]+i[r])/2<=e&&(i[r+1]+i[r])/2>e);r++)if((i[i.length-2]+i[i.length-1])/2<=e){r=i.length-1;break}}return i[r]},n.getSnapRecords=function(t){var e=this,n=e.get("coord"),i=e.getXScale(),r=e.getYScale(),o=i.field,s=e.get("dataArray");this.get("hasSorted")||this._sort(s);var u=[],c=n.invertPoint(t),l=c.x;e.isInCircle()&&!n.transposed&&l>(1+i.rangeMax())/2&&(l=i.rangeMin());var h=i.invert(l);i.isCategory||(h=e._getSnap(i,h));var f=[];if(s.forEach(function(t){t.forEach(function(t){var n=a.isNil(t._origin)?t[o]:t._origin[o];e._isEqual(n,h,i)&&f.push(t)})}),this.hasAdjust("stack")&&n.isPolar&&n.transposed&&1===i.values.length){if(l>=0&&l<=1){var p=r.invert(c.y);p=e._getSnap(r,p,f),f.forEach(function(t){(a.isArray(p)?t._originY.toString()===p.toString():t._originY===p)&&u.push(t)})}}else u=f;return u},n._isEqual=function(t,e,n){return"timeCat"===n.type?n._toTimeStamp(t)===e:e===t},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){return this._createAttrOption("color",t,e,u.colors),this},n.size=function(t,e){return this._createAttrOption("size",t,e,u.sizes),this},n.shape=function(t,e){var n=this.get("type"),i=u.shapes[n]||[];return this._createAttrOption("shape",t,e,i),this},n.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),a.isObject(t)&&(e=t,t=null);var i;return t&&(i=r(t)),n.fields=i,n.style=e,this},n.adjust=function(t){return a.isString(t)&&(t={type:t}),this.set("adjust",t),this},n.animate=function(t){return this.set("animateCfg",t),this},n.reset=function(){this.set("attrOptions",{}),this.set("adjust",null),this.clearInner()},n.clearInner=function(){var t=this.get("container");t&&(t.clear(),t.setMatrix([1,0,0,1,0,0])),t&&t.clear(),this.set("attrs",{}),this.set("groupScales",null),this.set("xDistance",null),this.set("_width",null)},n.clear=function(){this.clearInner(),this.set("scales",{})},n.destroy=function(){this.clear(),t.prototype.destroy.call(this)},n._display=function(t){this.set("visible",t);var e=this.get("container"),n=e.get("canvas");e.set("visible",t),n.draw()},n.show=function(){this._display(!0)},n.hide=function(){this._display(!1)},e}(o);t.exports=f},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var i=n(0),r=n(1),a={},o={_coord:null,draw:function(t,e){this.drawShape&&this.drawShape(t,e)},setCoord:function(t){this._coord=t},parsePoint:function(t){var e=this._coord;return e.isPolar&&(1===t.x&&(t.x=.9999999),1===t.y&&(t.y=.9999999)),e.convertPoint(t)},parsePoints:function(t){if(!t)return!1;var e=this,n=[];return t.forEach(function(t){n.push(e.parsePoint(t))}),n}},s={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){var e=this;i.isArray(t)&&(t=t[0]);var n=e[t]||e[e.defaultShapeType];return n._coord=e._coord,n},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},drawShape:function(t,e,n){var i=this.getShape(t);return e.color||(e.color=r.colors[0]),i.draw(e,n)}};a.registerFactory=function(t,e){var n=i.upperFirst(t),r=i.mix({},s,e);return a[n]=r,r.name=t,r},a.registerShape=function(t,e,n){var r=i.upperFirst(t),s=a[r],u=i.mix({},o,n);return s[e]=u,u},a.registShape=a.registerShape,a.getShapeFactory=function(t){var e=this;return t=t||"point",e[i.upperFirst(t)]},t.exports=a},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){function i(t,e,n,i,a){return{x:r(a,t.x,e.x,n.x,i.x),y:r(a,t.y,e.y,n.y,i.y)}}function r(t,e,n,i,r){var a=t*t;return e+(3*-e+t*(3*e-e*t))*t+(3*n+t*(-6*n+3*n*t))*t+(3*i-3*i*t)*a+r*(a*t)}function a(t){for(var e=1/0,n=-1/0,r=1/0,a=-1/0,o={x:t[0],y:t[1]},s={x:t[2],y:t[3]},u={x:t[4],y:t[5]},c={x:t[6],y:t[7]},l=0;l<100;l++){var h=i(o,s,u,c,l/100);h.x<e&&(e=h.x),h.x>n&&(n=h.x),h.y<r&&(r=h.y),h.y>a&&(a=h.y)}return{minX:e,minY:r,maxX:n,maxY:a}}var o=n(3),s=o.create(),u=o.create(),c=o.create();t.exports={getBBoxFromPoints:function(t,e){if(0!==t.length){for(var n=t[0],i=n.x,r=n.x,a=n.y,o=n.y,s=t.length,u=1;u<s;u++)n=t[u],i=Math.min(i,n.x),r=Math.max(r,n.x),a=Math.min(a,n.y),o=Math.max(o,n.y);return e=e/2||0,{minX:i-e,minY:a-e,maxX:r+e,maxY:o+e}}},getBBoxFromLine:function(t,e,n,i,r){return r=r/2||0,{minX:Math.min(t,n)-r,minY:Math.min(e,i)-r,maxX:Math.max(t,n)+r,maxY:Math.max(e,i)+r}},getBBoxFromArc:function(t,e,n,i,r,a){var l=Math.abs(i-r);if(l%(2*Math.PI)<1e-4&&l>1e-4)return{minX:t-n,minY:e-n,maxX:t+n,maxY:e+n};s[0]=Math.cos(i)*n+t,s[1]=Math.sin(i)*n+e,u[0]=Math.cos(r)*n+t,u[1]=Math.sin(r)*n+e;var h=[0,0],f=[0,0];if(o.min(h,s,u),o.max(f,s,u),(i%=2*Math.PI)<0&&(i+=2*Math.PI),(r%=2*Math.PI)<0&&(r+=2*Math.PI),i>r&&!a?r+=2*Math.PI:i<r&&a&&(i+=2*Math.PI),a){var p=r;r=i,i=p}for(var g=0;g<r;g+=Math.PI/2)g>i&&(c[0]=Math.cos(g)*n+t,c[1]=Math.sin(g)*n+e,o.min(h,c,h),o.max(f,c,f));return{minX:h[0],minY:h[1],maxX:f[0],maxY:f[1]}},getBBoxFromBezierGroup:function(t,e){for(var n=1/0,i=-1/0,r=1/0,o=-1/0,s=0,u=t.length;s<u;s++){var c=a(t[s]);c.minX<n&&(n=c.minX),c.maxX>i&&(i=c.maxX),c.minY<r&&(r=c.minY),c.maxY>o&&(o=c.maxY)}return e=e/2||0,{minX:n-e,minY:r-e,maxX:i+e,maxY:o+e}}}},function(t,e,n){var i=n(0),r={min:0,median:.5,max:1},a=function(){function t(t){this._initDefaultCfg(),i.deepMix(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){},e._getNormalizedValue=function(t,e){return i.isNil(r[t])?e.scale(t):r[t]},e.parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,i=parseFloat(e[1])/100,r=t.start,a=t.end,o=Math.abs(r.x-a.x),s=Math.abs(r.y-a.y);return{x:o*n+Math.min(r.x,a.x),y:s*i+Math.min(r.y,a.y)}},e.parsePoint=function(t,e){var n=this,r=n.xScale,a=n.yScales;if(i.isFunction(e)&&(e=e(r,a)),i.isString(e[0])&&-1!==e[0].indexOf("%"))return this.parsePercentPoint(t,e);var o=n._getNormalizedValue(e[0],r),s=n._getNormalizedValue(e[1],a[0]),u=t.convertPoint({x:o,y:s});return n.limitInPlot?o>=0&&o<=1&&s>=0&&s<=1?u:null:u},e.render=function(){},e.repaint=function(){this.remove();var t=this.coord,e=this.container,n=this.canvas;e&&!e.isDestroyed()&&(this.render(t,e),n.draw())},e.remove=function(){var t=this.element;t&&t.remove(!0)},e.changeVisible=function(t){var e=this;e.visible=t;var n=e.element;n&&(n.set?n.set("visible",t):n.style.display=t?"":"none")},t}();t.exports=a},function(t,e,n){var i=n(22),r=n(4),a=n(25),o=n(9),s=function(){function t(t){this._initDefaultCfg(),i(this,t),this.init()}var e=t.prototype;return e._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},e.init=function(){},e.getTicks=function(){var t=this,e=t.ticks,n=[];return r(e,function(e){var i;i=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(i)}),n},e.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),t.toString()},e.rangeMin=function(){return this.range[0]},e.rangeMax=function(){var t=this.range;return t[t.length-1]},e.invert=function(t){return t},e.translate=function(t){return t},e.scale=function(t){return t},e.clone=function(){var t=this,e=t.constructor,n={};return r(t,function(e,i){n[i]=t[i]}),new e(n)},e.change=function(t){return this.ticks=null,i(this,t),this.init(),this},t}();t.exports=s},function(t,e,n){var i=n(16),r=Array.isArray?Array.isArray:function(t){return i(t,"Array")};t.exports=r},function(t,e,n){function i(t,e){return r(e)?e:t.invert(t.scale(e))}var r=n(18),a=n(13),o=n(9),s=n(22),u=n(4),c=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,i=this.callback;if(t.callback){var r=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var s=r.apply(void 0,n);return o(s)&&(s=i.apply(e,n)),s}}s(this,t),n&&s(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 i=t.scale(e);return this.getLinearValue(i)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,i=Math.floor(n*t),r=n*t-i,a=e[i];return a+((i===n?a:e[i+1])-a)*r},e.callback=function(t){var e=this,n=e.scales[0];return"identity"===n.type?n.value:e._getAttrValue(n,t)},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r++)i.push(e[r]);return i},e.getFields=function(){var t=this.scales,e=[];return u(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,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=i;if(e){for(var o=0,s=i.length;o<s;o++)i[o]=this._toOriginParam(i[o],t[o]);a=e.apply(this,i)}return a=[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var r=0,o=t.length;r<o;r++)n.push(i(e,t[r]))}else n=i(e,t);return n},t}();t.exports=c},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function a(t){var e=t.startAngle,n=t.endAngle;return!(!l.isNil(e)&&!l.isNil(n)&&n-e<2*Math.PI)}function o(t,e){return t-e}function s(t,e){var n=!1;return l.each(t,function(t){var i=[].concat(t.values),r=[].concat(e.values);t.type!==e.type||t.field!==e.field||i.sort(o).toString()!==r.sort(o).toString()||(n=!0)}),n}var u=n(33),c=n(58),l=n(0),h=n(59),f=n(6),p=n(67),g=n(73),d=n(1),v=n(5).Canvas,y=n(28),x=function(t){function e(e){var n,r=i(n=t.call(this,e)||this);return l.each(f,function(t,e){var n=l.lowerFirst(e);r[n]=function(e){var n=new t(e);return r.addGeom(n),n}}),r._init(),n}r(e,t),e.initPlugins=function(){return{_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,r,a,o,s,u=this.descriptors(t),c=u.length;for(i=0;i<c;++i)if(r=u[i],a=r.plugin,"function"==typeof(s=a[e])&&(o=[t].concat(n||[]),!1===s.apply(a,o)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],i=[];return this._plugins.concat(t&&t.get("plugins")||[]).forEach(function(t){-1===n.indexOf(t)&&(n.push(t),i.push({plugin:t}))}),e.descriptors=i,e.id=this._cacheId,i}}};var n=e.prototype;return n.getDefaultCfg=function(){return{id:null,padding:d.padding,data:null,scales:{},geoms:null,colDefs:null,pixelRatio:d.pixelRatio,filters:null,appendPadding:d.appendPadding}},n._syncYScales=function(){var t=this.get("geoms"),e=[],n=[],i=[];l.each(t,function(t){var r=t.getYScale();r.isLinear&&(e.push(r),n.push(r.min),i.push(r.max))}),n=Math.min.apply(null,n),i=Math.max.apply(null,i),l.each(e,function(t){t.change({min:n}),t.change({max:i})})},n._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return l.each(e,function(e){var n=e.get("attrOptions").color;if(n&&n.field&&l.isString(n.field)){var i=n.field.split("*");l.each(i,function(e){-1===t.indexOf(e)&&t.push(e)})}}),t},n._createScale=function(t,e){return this.get("scaleController").createScale(t,e)},n._adjustScale=function(){var t=this,e=t.get("coord"),n=t.getXScale(),i=t.getYScales(),r=[];n&&r.push(n),r=r.concat(i);var o=e.isPolar&&a(e),s=t.get("scaleController").defs;l.each(r,function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!s[t.field]||!s[t.field].range)){var n,i=t.values.length;if(1===i)n=[.5,1];else{var r=0;n=o?e.transposed?[(r=1/i*d.widthRatio.multiplePie)/2,1-r/2]:[0,1-1/i]:[r=1/i*1/2,1-r]}t.range=n}});for(var u=this.get("geoms"),c=0;c<u.length;c++){var h=u[c];if("interval"===h.get("type")){var f=h.getYScale(),p=f.field,g=f.min,v=f.max,y=f.type;s[p]&&s[p].min||"time"===y||(g>0?f.change({min:0}):v<=0&&f.change({max:0}))}}},n._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;)t.shift().destroy()},n._clearGeoms=function(){for(var t=this.get("geoms"),e=0,n=t.length;e<n;e++)t[e].clear()},n._clearInner=function(){this.set("scales",{}),this.set("legendItems",null),this._clearGeoms(),e.plugins.notify(this,"clearInner"),this.get("axisController")&&this.get("axisController").clear()},n._execFilter=function(t){var e=this.get("filters");return e&&(t=t.filter(function(t){var n=!0;return l.each(e,function(e,i){if(e&&!(n=e(t[i],t)))return!1}),n})),t},n._initGeoms=function(t){for(var e=this.get("coord"),n=this.get("filteredData"),i=this.get("colDefs"),r=0,a=t.length;r<a;r++){var o=t[r];o.set("data",n),o.set("coord",e),o.set("colDefs",i),o.init()}},n._initCoord=function(){var t=this.get("plotRange"),e=l.mix({type:"cartesian"},this.get("coordCfg"),{plot:t}),n=e.type,i=new(0,h[l.upperFirst(n)])(e);this.set("coord",i)},n._initLayout=function(){var t=this.get("_padding");t||(t=this.get("margin")||this.get("padding"),t=l.parsePadding(t));var e="auto"===t[0]?0:t[0],n="auto"===t[1]?0:t[1],i="auto"===t[2]?0:t[2],r="auto"===t[3]?0:t[3],a=this.get("width"),o=this.get("height"),s=new c({start:{x:r,y:e},end:{x:a-n,y:o-i}});this.set("plotRange",s),this.set("plot",s)},n._initCanvas=function(){var t=this;try{var n=new v({el:t.get("el")||t.get("id"),context:t.get("context"),pixelRatio:t.get("pixelRatio"),width:t.get("width"),height:t.get("height"),fontFamily:d.fontFamily});t.set("canvas",n),t.set("width",n.get("width")),t.set("height",n.get("height"))}catch(t){throw t}e.plugins.notify(t,"afterCanvasInit"),t._initLayout()},n._initLayers=function(){var t=this.get("canvas");this.set("backPlot",t.addGroup()),this.set("middlePlot",t.addGroup({zIndex:10})),this.set("frontPlot",t.addGroup({zIndex:20}))},n._init=function(){var t=this;t._initCanvas(),t._initLayers(),t.set("geoms",[]),t.set("scaleController",new p),t.set("axisController",new g({frontPlot:t.get("frontPlot").addGroup({className:"axisContainer"}),backPlot:t.get("backPlot").addGroup({className:"axisContainer"}),chart:t})),e.plugins.notify(t,"init")},n.source=function(t,e){return this.set("data",t),e&&this.scale(e),this},n.scale=function(t,e){var n=this.get("colDefs")||{};return l.isObject(t)?l.mix(n,t):n[t]=e,this.set("colDefs",n),this.get("scaleController").defs=n,this},n.axis=function(t,e){var n=this.get("axisController");return t?(n.axisCfg=n.axisCfg||{},n.axisCfg[t]=e):n.axisCfg=null,this},n.coord=function(t,e){var n;return l.isObject(t)?n=t:(n=e||{}).type=t||"cartesian",this.set("coordCfg",n),this},n.filter=function(t,e){var n=this.get("filters")||{};n[t]=e,this.set("filters",n)},n.render=function(){var t=this.get("canvas"),n=this.get("geoms"),i=this.get("data")||[],r=this._execFilter(i);this.set("filteredData",r),this._initCoord(),e.plugins.notify(this,"beforeGeomInit"),this._initGeoms(n),this.get("syncY")&&this._syncYScales(),this._adjustScale(),e.plugins.notify(this,"beforeGeomDraw"),this._renderAxis();var a=this.get("middlePlot");if(this.get("limitInPlot")&&!a.attr("clip")){var o=this.get("coord"),s=y.getClip(o);s.set("canvas",a.get("canvas")),a.attr("clip",s)}for(var u=0,c=n.length;u<c;u++)n[u].paint();return e.plugins.notify(this,"afterGeomDraw"),t.sort(),this.get("frontPlot").sort(),e.plugins.notify(this,"beforeCanvasDraw"),t.draw(),this},n.clear=function(){return e.plugins.notify(this,"clear"),this._removeGeoms(),this._clearInner(),this.set("filters",null),this.set("isUpdate",!1),this.set("_padding",null),this.get("canvas").draw(),this},n.repaint=function(){this.set("isUpdate",!0),e.plugins.notify(this,"repaint"),this._clearInner(),this.render()},n.changeData=function(t){this.set("data",t),e.plugins.notify(this,"changeData"),this.set("_padding",null),this.repaint()},n.changeSize=function(t,e){return t?this.set("width",t):t=this.get("width"),e?this.set("height",e):e=this.get("height"),this.get("canvas").changeSize(t,e),this._initLayout(),this.repaint(),this},n.destroy=function(){this.clear(),this.get("canvas").destroy(),e.plugins.notify(this,"afterCanvasDestroyed"),this._interactions&&l.each(this._interactions,function(t){t.destroy()}),t.prototype.destroy.call(this)},n.getPosition=function(t){var e=this,n=e.get("coord"),i=e.getXScale(),r=e.getYScales()[0],a=i.field,o=i.scale(t[a]),s=r.field,u=r.scale(t[s]);return n.convertPoint({x:o,y:u})},n.getRecord=function(t){var e=this,n=e.get("coord"),i=e.getXScale(),r=e.getYScales()[0],a=n.invertPoint(t),o={};return o[i.field]=i.invert(a.x),o[r.field]=r.invert(a.y),o},n.getSnapRecords=function(t){var e=this.get("geoms")[0],n=[];return e&&(n=e.getSnapRecords(t)),n},n.createScale=function(t){var e=this.get("data"),n=this.get("filteredData");n.length&&-1===this._getFieldsForLegend().indexOf(t)&&(e=n);var i=this.get("scales");return i[t]||(i[t]=this._createScale(t,e)),i[t]},n.addGeom=function(t){var e=this.get("geoms"),n=this.get("middlePlot");e.push(t),t.set("chart",this),t.set("container",n.addGroup())},n.getXScale=function(){return this.get("geoms")[0].getXScale()},n.getYScales=function(){var t=this.get("geoms"),e=[];return l.each(t,function(t){var n=t.getYScale();-1===e.indexOf(n)&&e.push(n)}),e},n.getLegendItems=function(){if(this.get("legendItems"))return this.get("legendItems");var t={},e=[],n=this.get("geoms");return l.each(n,function(n){var i=n.getAttr("color");if(i){var r=i.getScale("color");if("identity"!==r.type&&!s(e,r)){e.push(r);var a=r.field,o=r.getTicks(),u=[];l.each(o,function(t){var e=t.text,n=t.value,a=r.invert(n),o={fill:i.mapping(a).join("")||d.defaultColor,radius:3,symbol:"circle",stroke:"#fff"};u.push({name:e,dataValue:a,checked:!0,marker:o})}),t[a]=u}}}),this.set("legendItems",t),t},n.registerPlugins=function(t){var n=this,i=n.get("plugins")||[];l.isArray(i)||(i=[i]),[].concat(t).forEach(function(t){-1===i.indexOf(t)&&(t.init&&t.init(n),i.push(t))}),e.plugins._cacheId++,n.set("plugins",i)},n._renderAxis=function(){var t=this.get("axisController"),n=this.getXScale(),i=this.getYScales(),r=this.get("coord");e.plugins.notify(this,"beforeRenderAxis"),t.createAxis(r,n,i)},n._isAutoPadding=function(){if(this.get("_padding"))return!1;var t=this.get("padding");return l.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},n._updateLayout=function(t){var e=this.get("width"),n=this.get("height"),i={x:t[3],y:t[0]},r={x:e-t[1],y:n-t[2]},a=this.get("plot"),o=this.get("coord");a.reset(i,r),o.reset(a)},e}(u);x.plugins=x.initPlugins(),t.exports=x},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var i=n(16);t.exports=function(t){return i(t,"Number")}},function(t,e,n){var i=n(16);t.exports=function(t){return i(t,"String")}},function(t,e,n){var i=n(0),r={splitPoints:function(t){var e=[],n=t.x,r=t.y;return(r=i.isArray(r)?r:[r]).forEach(function(t,r){var a={x:i.isArray(n)?n[r]:n,y:t};e.push(a)}),e},splitArray:function(t,e,n){if(!t.length)return[];var r,a=[],o=[];return i.each(t,function(t){r=t._origin?t._origin[e]:t[e],n?i.isNil(r)||o.push(t):i.isArray(r)&&i.isNil(r[0])||i.isNil(r)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}};t.exports=r},function(t,e,n){var i=n(7),r=Array.isArray?Array.isArray:function(t){return i(t,"Array")};t.exports=r},function(t,e,n){var i=n(0),r=function(){function t(t){this._initDefaultCfg(),i.mix(this,t);var e,n;this.plot?(e=this.plot.bl,n=this.plot.tr,this.start=e,this.end=n):(e=this.start,n=this.end),this.init(e,n)}var e=t.prototype;return e._initDefaultCfg=function(){},e.init=function(){},e.convertPoint=function(t){return t},e.invertPoint=function(t){return t},e.reset=function(t){this.plot=t;var e=t.bl,n=t.tr;this.start=e,this.end=n,this.init(e,n)},t}();t.exports=r},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,i,r){return e&&n(t,e),i&&n(t,i),r&&n(t,r),t}},function(t,e,n){var i=n(22),r=function(){function t(t){this._initDefaultCfg(),i(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}();t.exports=r},function(t,e){var n={multiply:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]},scale:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[0],t[2]=e[2]*n[1],t[3]=e[3]*n[1],t[4]=e[4],t[5]=e[5],t},rotate:function(t,e,n){var i=Math.cos(n),r=Math.sin(n),a=e[0]*i+e[2]*r,o=e[1]*i+e[3]*r,s=e[0]*-r+e[2]*i,u=e[1]*-r+e[3]*i;return t[0]=a,t[1]=o,t[2]=s,t[3]=u,t[4]=e[4],t[5]=e[5],t},translate:function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+e[0]*n[0]+e[2]*n[1],t[5]=e[5]+e[1]*n[0]+e[3]*n[1],t},transform:function(t,e){for(var i=[].concat(t),r=0,a=e.length;r<a;r++){var o=e[r];switch(o[0]){case"t":n.translate(i,i,[o[1],o[2]]);break;case"s":n.scale(i,i,[o[1],o[2]]);break;case"r":n.rotate(i,i,o[1])}}return i}};t.exports=n},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 i=n(0),r=n(1),a=n(3),o=function(){function t(t){this._initDefaultCfg(),i.mix(this,t),this.draw()}var e=t.prototype;return e._initDefaultCfg=function(){this.ticks=[],this.tickLine={},this.offsetFactor=1,this.frontContainer=null,this.backContainer=null,this.gridPoints=[]},e.draw=function(){var t=this.line,e=this.tickLine,n=this.label,i=this.grid;i&&this.drawGrid(i),e&&this.drawTicks(e),t&&this.drawLine(t),n&&this.drawLabels()},e.drawTicks=function(t){var e=this,n=e.ticks,r=t.length,a=e.getContainer(t.top);i.each(n,function(n){var o=e.getOffsetPoint(n.value),s=e.getSidePoint(o,r);a.addShape("line",{className:"axis-tick",attrs:i.mix({x1:o.x,y1:o.y,x2:s.x,y2:s.y},t)})._id=e._id+"-ticks"})},e.drawLabels=function(){var t=this,e=t.labelOffset,n=t.labels;i.each(n,function(n){var r=t.getContainer(n.get("top")),a=t.getOffsetPoint(n.get("value")),o=t.getSidePoint(a,e),s=o.x,u=o.y;n.attr(i.mix({x:s,y:u},t.getTextAlignInfo(a,e),n.get("textStyle"))),n._id=t._id+"-"+n.attr("text"),r.add(n)})},e.drawLine=function(){},e.drawGrid=function(t){var e=this,n=e.gridPoints,o=e.ticks,s=t,u=n.length;i.each(n,function(n,c){if(i.isFunction(t)){var l=o[c]||{},h=t(l.text,c,u);s=h?i.mix({},r._defaultAxis.grid,h):null}if(s){var f,p=s.type,g=n.points,d=e.getContainer(s.top);if("arc"===p){var v=e.center,y=e.startAngle,x=e.endAngle,m=a.length([g[0].x-v.x,g[0].y-v.y]);f=d.addShape("Arc",{className:"axis-grid",attrs:i.mix({x:v.x,y:v.y,startAngle:y,endAngle:x,r:m},s)})}else f=d.addShape("Polyline",{className:"axis-grid",attrs:i.mix({points:g},s)});f._id=n._id}})},e.getOffsetPoint=function(){},e.getAxisVector=function(){},e.getOffsetVector=function(t,e){var n=this,i=n.getAxisVector(t),r=a.normalize([],i),o=n.offsetFactor,s=[-1*r[1]*o,r[0]*o];return a.scale([],s,e)},e.getSidePoint=function(t,e){var n=this.getOffsetVector(t,e);return{x:t.x+n[0],y:t.y+n[1]}},e.getTextAlignInfo=function(t,e){var n,i,r=this.getOffsetVector(t,e);return n=r[0]>0?"left":r[0]<0?"right":"center",i=r[1]>0?"top":r[1]<0?"bottom":"middle",{textAlign:n,textBaseline:i}},e.getContainer=function(t){var e=this.frontContainer,n=this.backContainer;return t?e:n},t}();t.exports=o},function(t,e,n){function i(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}var r=n(0),a=n(24),o=n(3),s=n(77),u={stroke:"strokeStyle",fill:"fillStyle",opacity:"globalAlpha"},c=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","shadow"],l=["circle","sector","polygon","rect","polyline"],h=function(){function t(t){this._initProperties(),r.mix(this._attrs,t);var e=this._attrs.attrs;e&&this.initAttrs(e),this.initTransform()}var e=t.prototype;return e._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.isGroup=function(){return this.get("isGroup")},e.isShape=function(){return this.get("isShape")},e.initAttrs=function(t){this.attr(r.mix(this.getDefaultAttrs(),t))},e.getDefaultAttrs=function(){return{}},e._setAttr=function(t,e){var n=this._attrs.attrs;if("clip"===t)e=this._setAttrClip(e);else{var i=u[t];i&&(n[i]=e)}n[t]=e},e._getAttr=function(t){return this._attrs.attrs[t]},e._setAttrClip=function(t){return t&&l.indexOf(t._attrs.type)>-1?(null===t.get("canvas")&&(t=Object.assign({},t)),t.set("parent",this.get("parent")),t.set("context",this.get("context")),t):null},e.attr=function(t,e){var n=this;if(n.get("destroyed"))return null;var i=arguments.length;if(0===i)return n._attrs.attrs;if(r.isObject(t)){this._attrs.bbox=null;for(var a in t)n._setAttr(a,t[a]);return n._afterAttrsSet&&n._afterAttrsSet(),n}return 2===i?(this._attrs.bbox=null,n._setAttr(t,e),n._afterAttrsSet&&n._afterAttrsSet(),n):n._getAttr(t)},e.getParent=function(){return this.get("parent")},e.draw=function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},e.setContext=function(t){var e=this._attrs.attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},e.restoreContext=function(t){t.restore()},e.resetContext=function(t){var e=this._attrs.attrs;if(!this._attrs.isGroup)for(var n in e)if(c.indexOf(n)>-1){var i=e[n];"fillStyle"!==n&&"strokeStyle"!==n||(i=s.parseStyle(i,this,t)),"lineDash"===n&&t.setLineDash&&r.isArray(i)?t.setLineDash(i):t[n]=i}},e.hasFill=function(){return this.get("canFill")&&this._attrs.attrs.fillStyle},e.hasStroke=function(){return this.get("canStroke")&&this._attrs.attrs.strokeStyle},e.drawInner=function(){},e.show=function(){return this.set("visible",!0),this},e.hide=function(){return this.set("visible",!1),this},e.isVisible=function(){return this.get("visible")},e._removeFromParent=function(){var t=this.get("parent");if(t){var e=t.get("children");r.Array.remove(e,this)}return this},e.remove=function(t){t?this.destroy():this._removeFromParent()},e.destroy=function(){if(this.get("destroyed"))return null;this._removeFromParent(),this._attrs={},this.set("destroyed",!0)},e.getBBox=function(){return{minX:0,maxX:0,minY:0,maxY:0,width:0,height:0}},e.initTransform=function(){var t=this._attrs.attrs||{};t.matrix||(t.matrix=[1,0,0,1,0,0]),this._attrs.attrs=t},e.getMatrix=function(){return this._attrs.attrs.matrix},e.setMatrix=function(t){this._attrs.attrs.matrix=[t[0],t[1],t[2],t[3],t[4],t[5]]},e.transform=function(t){var e=this._attrs.attrs.matrix;return this._attrs.attrs.matrix=a.transform(e,t),this},e.setTransform=function(t){return this._attrs.attrs.matrix=[1,0,0,1,0,0],this.transform(t)},e.translate=function(t,e){var n=this._attrs.attrs.matrix;a.translate(n,n,[t,e])},e.rotate=function(t){var e=this._attrs.attrs.matrix;a.rotate(e,e,t)},e.scale=function(t,e){var n=this._attrs.attrs.matrix;a.scale(n,n,[t,e])},e.moveTo=function(t,e){var n=this._attrs.x||0,i=this._attrs.y||0;this.translate(t-n,e-i),this.set("x",t),this.set("y",e)},e.apply=function(t){var e=this._attrs.attrs.matrix;return o.transformMat2d(t,t,e),this},e.resetTransform=function(t){var e=this._attrs.attrs.matrix;i(e)||t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},e.isDestroyed=function(){return this.get("destroyed")},t}();t.exports=h},function(t,e,n){var i=n(5).Shape;t.exports={getClip:function(t){var e,n=t.start,r=t.end,a=r.x-n.x,o=Math.abs(r.y-n.y);if(t.isPolar){var s=t.circleRadius,u=t.center,c=t.startAngle,l=t.endAngle;e=new i.Sector({attrs:{x:u.x,y:u.y,r:s,r0:0,startAngle:c,endAngle:l}})}else e=new i.Rect({attrs:{x:n.x,y:r.y-10,width:a,height:o+20}});return e.isClip=!0,e},isPointInPlot:function(t,e){var n=t.x,i=t.y,r=e.tl,a=e.tr,o=e.br;return n>=r.x&&n<=a.x&&i>=r.y&&i<=o.y}}},function(t,e,n){var i=n(30);t.exports=function(t){return i(t)?"":t.toString()}},function(t,e){t.exports=function(t){return null===t||void 0===t}},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 i=n(54),r=n(7);t.exports=function(t){if(!i(t)||!r(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 i=n(0),r=function(){function t(t){var e={},n=this.getDefaultCfg();this._attrs=e,i.mix(e,n,t)}var e=t.prototype;return e.getDefaultCfg=function(){return{}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.destroy=function(){this._attrs={},this.destroyed=!0},t}();t.exports=r},function(t,e,n){function i(t){return function(e,n){var i=t(e,n);return 0===i?e[s]-n[s]:i}}var r=n(0),a=n(2),o={},s="_INDEX";t.exports={getGroupClass:function(){},getChildren:function(){return this.get("children")},addShape:function(t,e){void 0===e&&(e={});var n=this.get("canvas"),i=o[t];i||(i=r.upperFirst(t),o[t]=i),e.canvas=n,"Text"===i&&n&&n.get("fontFamily")&&(e.attrs.fontFamily=e.attrs.fontFamily||n.get("fontFamily"));var s=new a[i](e);return this.add(s),s},addGroup:function(t){var e=this.get("canvas"),n=this.getGroupClass();(t=r.mix({},t)).canvas=e,t.parent=this;var i=new n(t);return this.add(i),i},contain:function(t){return this.get("children").indexOf(t)>-1},sort:function(){for(var t=this.get("children"),e=0,n=t.length;e<n;e++)t[e][s]=e;return t.sort(i(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},clear:function(){for(var t=this.get("children");0!==t.length;)t[t.length-1].remove(!0);return this},add:function(t){var e=this,n=e.get("children");r.isArray(t)||(t=[t]);for(var i=0,a=t.length;i<a;i++){var o=t[i],s=o.get("parent");if(s){var u=s.get("children");r.Array.remove(u,o)}e._setEvn(o),n.push(o)}return e},_setEvn:function(t){var e=this;t._attrs.parent=e,t._attrs.context=e._attrs.context,t._attrs.canvas=e._attrs.canvas;var n=t._attrs.attrs.clip;if(n&&(n.set("parent",e),n.set("context",e.get("context"))),t._attrs.isGroup)for(var i=t._attrs.children,r=0,a=i.length;r<a;r++)t._setEvn(i[r])}}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(27),o=n(34),s=n(3),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isGroup:!0,children:[]}},n.drawInner=function(t){for(var e=this.get("children"),n=0,i=e.length;n<i;n++)e[n].draw(t);return this},n.getBBox=function(){for(var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.get("children"),a=0,o=r.length;a<o;a++){var u=r[a];if(u.get("visible")){var c=u.getBBox();if(!c)continue;var l=[c.minX,c.minY],h=[c.minX,c.maxY],f=[c.maxX,c.minY],p=[c.maxX,c.maxY],g=u.attr("matrix");s.transformMat2d(l,l,g),s.transformMat2d(h,h,g),s.transformMat2d(f,f,g),s.transformMat2d(p,p,g),t=Math.min(l[0],h[0],f[0],p[0],t),e=Math.max(l[0],h[0],f[0],p[0],e),n=Math.min(l[1],h[1],f[1],p[1],n),i=Math.max(l[1],h[1],f[1],p[1],i)}}return{minX:t,minY:n,maxX:e,maxY:i,x:t,y:n,width:e-t,height:i-n}},n.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e}(a);r.mix(u.prototype,o,{getGroupClass:function(){return u}}),t.exports=u},function(t,e,n){function i(t){var e={strokeStyle:t.color};return t.size>=0&&(e.lineWidth=t.size),a.mix(e,t.style),a.mix({},u.shape.line,e)}function r(t,e,n,i){var r=t.points;if(r.length&&a.isArray(r[0].y)){for(var o=[],u=[],c=0,l=r.length;c<l;c++){var h=r[c],f=s.splitPoints(h);u.push(f[0]),o.push(f[1])}return t.isInCircle&&(o.push(o[0]),u.push(u[0])),t.isStack?e.addShape("Polyline",{className:"line",attrs:a.mix({points:o,smooth:i},n)}):[e.addShape("Polyline",{className:"line",attrs:a.mix({points:o,smooth:i},n)}),e.addShape("Polyline",{className:"line",attrs:a.mix({points:u,smooth:i},n)})]}return t.isInCircle&&r.push(r[0]),e.addShape("Polyline",{className:"line",attrs:a.mix({points:r,smooth:i},n)})}var a=n(0),o=n(8),s=n(19),u=n(1),c=o.registerFactory("line",{defaultShapeType:"line"}),l=["line","smooth","dash"];a.each(l,function(t){o.registerShape("line",t,{draw:function(e,n){var a="smooth"===t,o=i(e);return"dash"===t&&(o.lineDash=u.lineDash),r(e,n,o,a)}})}),t.exports=c},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(12),a=n(38),o=n(4),s=n(17),u=n(18),c=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},n.init=function(){var t=this,e=t.values,n=t.tickCount;if(o(e,function(t,n){e[n]=t.toString()}),!t.ticks){var i=e;n&&(i=a({maxCount:n,data:e,isRounding:t.isRounding}).ticks),this.ticks=i}},n.getText=function(e){return-1===this.values.indexOf(e)&&s(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},n.translate=function(t){var e=this.values.indexOf(t);return-1===e&&s(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),i=this.rangeMax();return(u(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(i-n)},n.invert=function(t){if(u(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var i=(t-e)/(n-e),r=Math.round(i*(this.values.length-1))%this.values.length;return r=r||0,this.values[r]},e}(r);r.Cat=c,t.exports=c},function(t,e,n){function i(t){var e=[];return a(t,function(t){e=e.concat(t)}),e}function r(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}var a=n(4);t.exports=function(t){var e,n={},a=[],o=t.isRounding,s=i(t.data),u=s.length,c=t.maxCount||8;if(o?2===(e=r(u-1,c-1)+1)?e=c:e<c-4&&(e=c-4):e=c,!o&&u<=e+e/2)a=[].concat(s);else{for(var l=parseInt(u/(e-1),10),h=s.map(function(t,e){return e%l==0?s.slice(e,e+l):null}).filter(function(t){return t}),f=1,p=h.length;f<p&&(o?f*l<u-l:f<e-1);f++)a.push(h[f][0]);if(s.length){a.unshift(s[0]);var g=s[u-1];-1===a.indexOf(g)&&a.push(g)}}return n.categories=s,n.ticks=a,n}},function(t,e){t.exports={requestAnimationFrame:"object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:function(t){return setTimeout(t,16)}}},function(t,e,n){function i(t){return[t.x,t.y]}function r(t,e,n,r){var o,s,u,c,l,h,f,p,g=[],d=!!r;if(d){for(u=[1/0,1/0],c=[-1/0,-1/0],p=0,f=t.length;p<f;p++)l=i(t[p]),a.min(u,u,l),a.max(c,c,l);a.min(u,u,r[0]),a.max(c,c,r[1])}for(p=0,h=t.length;p<h;p++){if(l=i(t[p]),n)o=i(t[p?p-1:h-1]),s=i(t[(p+1)%h]);else{if(0===p||p===h-1){g.push([l[0],l[1]]);continue}o=i(t[p-1]),s=i(t[p+1])}var v=a.sub([],s,o);a.scale(v,v,e);var y=a.distance(l,o),x=a.distance(l,s),m=y+x;0!==m&&(y/=m,x/=m);var _=a.scale([],v,-y),S=a.scale([],v,x),b=a.add([],l,_),P=a.add([],l,S);d&&(a.max(b,b,u),a.min(b,b,c),a.max(P,P,u),a.min(P,P,c)),g.push([b[0],b[1]]),g.push([P[0],P[1]])}return n&&g.push(g.shift()),g}var a=n(3);t.exports={smooth:function(t,e,n){for(var i,a,o,s=!!e,u=r(t,.4,s,n),c=t.length,l=[],h=0;h<c-1;h++)i=u[2*h],a=u[2*h+1],o=t[h+1],l.push(["C",i[0],i[1],a[0],a[1],o.x,o.y]);return s&&(i=u[c],a=u[c+1],o=t[0],l.push(["C",i[0],i[1],a[0],a[1],o.x,o.y])),l}}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(6),a=n(19),o=n(0);n(36);var s=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},n.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasAdjust("stack"),n},n.draw=function(t,e){var n=this,i=n.get("container"),r=n.getYScale(),s=n.get("connectNulls"),u=a.splitArray(t,r.field,s),c=this.getDrawCfg(t[0]);c.origin=t,o.each(u,function(r,a){c.splitedIndex=a,c.points=r,n.drawShape(c.shape,t[0],c,i,e)})},e}(r);r.Path=s,t.exports=s},function(t,e,n){var i=n(1),r=n(0),a={getDefalutSize:function(){var t=this.get("defaultSize");if(!t){var e=this.get("coord"),n=this.getXScale(),r=this.get("dataArray"),a=n.values.length,o=n.range,s=1/a,u=1;e&&e.isPolar?u=e.transposed&&a>1?i.widthRatio.multiplePie:i.widthRatio.rose:(n.isLinear&&(s*=o[1]-o[0]),u=i.widthRatio.column),s*=u,this.hasAdjust("dodge")&&(s/=r.length),t=s,this.set("defaultSize",t)}return t},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),i=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return n&&i&&(r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2))),r},_getWidth:function(){var t=this.get("_width");if(!t){var e=this.get("coord");t=e&&e.isPolar&&!e.transposed?(e.endAngle-e.startAngle)*e.circleRadius:this.getDimWidth("x"),this.set("_width",t)}return t},_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=r.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(r.isNil(e)){var n=this.getDefalutSize();e=this._toCoordSize(n)}return e}};t.exports=a},,function(t,e,n){var i={},r=n(1);i.Global=r,i.version=r.version,i.Chart=n(15),i.Shape=n(8),i.G=n(5),i.Util=n(0),i.track=function(){return null},t.exports=i},function(t,e,n){var i=n(0),r={label:{fill:"#808080",fontSize:10},line:{stroke:"#E8E8E8",lineWidth:1},grid:{type:"line",stroke:"#E8E8E8",lineWidth:1,lineDash:[2]},tickLine:null,labelOffset:7.5},a={fontFamily:'"Helvetica Neue", "San Francisco", Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif',defaultColor:"#1890FF",pixelRatio:1,padding:"auto",appendPadding:15,colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],shapes:{line:["line","dash"],point:["circle","hollowCircle"]},sizes:[4,10],axis:{common:r,bottom:i.mix({},r,{grid:null}),left:i.mix({},r,{line:null}),right:i.mix({},r,{line:null}),circle:i.mix({},r,{line:null}),radius:i.mix({},r,{labelOffset:4})},shape:{line:{lineWidth:2,lineJoin:"round",lineCap:"round"},point:{lineWidth:0,size:3},area:{fillOpacity:.1}},_defaultAxis:r};t.exports=a},function(t,e){function n(t,e,n,i,r){return{type:t,chart:e,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function i(t,e){var i=t.type,a={},o=t.targetTouches;o&&o.length>0?(a.x=o[0].clientX,a.y=o[0].clientY):(a.x=t.clientX,a.y=t.clientY);var s=e.get("canvas"),u=r.getRelativePosition(a,s);return n(i,e,u.x,u.y,t)}var r,a=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};r={isWx:"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync,isMy:"object"==typeof my&&"function"==typeof my.getSystemInfoSync,isNode:void 0!==t&&void 0!==t.exports,isBrowser:"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.sessionStorage,getPixelRatio:function(){return window&&window.devicePixelRatio||1},getStyle:function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},getWidth:function(t){var e=this.getStyle(t,"width");return"auto"===e&&(e=t.offsetWidth),parseFloat(e)},getHeight:function(t){var e=this.getStyle(t,"height");return"auto"===e&&(e=t.offsetHeight),parseFloat(e)},getDomById:function(t){return t?document.getElementById(t):null},getRelativePosition:function(t,e){var n=e.get("el"),i=n.getBoundingClientRect(),r=i.top,a=i.right,o=i.bottom,s=i.left,u=parseFloat(this.getStyle(n,"padding-left")),c=parseFloat(this.getStyle(n,"padding-top")),l=a-s-u-parseFloat(this.getStyle(n,"padding-right")),h=o-r-c-parseFloat(this.getStyle(n,"padding-bottom")),f=e.get("pixelRatio");return{x:(t.x-s-u)/l*n.width/f,y:(t.y-r-c)/h*n.height/f}},addEventListener:function(t,e,n){r.isBrowser&&t.addEventListener(e,n,a)},removeEventListener:function(t,e,n){r.isBrowser&&t.removeEventListener(e,n,a)},createEvent:function(t,e){return i(t,e)},measureText:function(t,e,n){return n||(n=document.createElement("canvas").getContext("2d")),n.font=e||"12px sans-serif",n.measureText(t)}},t.exports=r},function(t,e,n){var i=n(29);t.exports=function(t){var e=i(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var i=n(29);t.exports=function(t){var e=i(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){var i=n(7);t.exports=function(t){return i(t,"String")}},function(t,e,n){var i=n(7);t.exports=function(t){return i(t,"Number")}},function(t,e,n){var i=n(7);t.exports=function(t){return i(t,"Boolean")}},function(t,e,n){var i=n(7);t.exports=function(t){return i(t,"Function")}},function(t,e,n){var i=n(7);t.exports=function(t){return i(t,"Date")}},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){function i(t,e,n,s){n=n||0,s=s||o;for(var u in e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&r(c)?(r(t[u])||(t[u]={}),n<s?i(t[u],c,n+1,s):t[u]=e[u]):a(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var r=n(32),a=n(20),o=5;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],a=1;a<e;a++)i(r,t[a]);return r}},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,i,r){return e&&n(t,e),i&&n(t,i),r&&n(t,r),t}},function(t,e,n){var i=n(31),r=n(20);t.exports=function(t,e){if(t)if(r(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(i(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var i=n(0),r=function(){function t(t){i.mix(this,t),this._init()}var e=t.prototype;return e._init=function(){var t=this,e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.max(e.x,n.x),a=Math.min(e.y,n.y),o=Math.max(e.y,n.y);this.tl={x:i,y:a},this.tr={x:r,y:a},this.bl={x:i,y:o},this.br={x:r,y:o},this.width=r-i,this.height=o-a},e.reset=function(t,e){this.start=t,this.end=e,this._init()},e.isInRange=function(t,e){i.isObject(t)&&(e=t.y,t=t.x);var n=this.tl,r=this.br;return n.x<=t&&t<=r.x&&n.y<=e&&e<=r.y},t}();t.exports=r},function(t,e,n){var i=n(21);n(60),t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(21),a=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="cartesian",this.transposed=!1,this.isRect=!0},n.init=function(t,e){this.x={start:t.x,end:e.x},this.y={start:t.y,end:e.y}},n.convertPoint=function(t){var e=this,n=e.transposed,i=n?"y":"x",r=n?"x":"y",a=e.x,o=e.y;return{x:a.start+(a.end-a.start)*t[i],y:o.start+(o.end-o.start)*t[r]}},n.invertPoint=function(t){var e=this,n=e.transposed,i=n?"y":"x",r=n?"x":"y",a=e.x,o=e.y,s={};return s[i]=(t.x-a.start)/(a.end-a.start),s[r]=(t.y-o.start)/(o.end-o.start),s},e}(r);r.Cartesian=a,r.Rect=a,t.exports=a},function(t,e,n){t.exports={Position:n(62),Shape:n(63),Size:n(64),Color:n(65)}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(9),a=n(13),o=n(4),s=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["x","y"],n.type="position",n}return i(e,t),e.prototype.mapping=function(t,e){var n,i,s,u=this.scales,c=this.coord,l=u[0],h=u[1];if(r(t)||r(e))return[];if(a(e)&&a(t)){n=[],i=[];for(var f=0,p=0,g=t.length,d=e.length;f<g&&p<d;f++,p++)s=c.convertPoint({x:l.scale(t[f]),y:h.scale(e[p])}),n.push(s.x),i.push(s.y)}else if(a(e))t=l.scale(t),i=[],o(e,function(e){e=h.scale(e),s=c.convertPoint({x:t,y:e}),n&&n!==s.x?(a(n)||(n=[n]),n.push(s.x)):n=s.x,i.push(s.y)});else if(a(t))e=h.scale(e),n=[],o(t,function(t){t=l.scale(t),s=c.convertPoint({x:t,y:e}),i&&i!==s.y?(a(i)||(i=[i]),i.push(s.y)):i=s.y,n.push(s.x)});else{t=l.scale(t),e=h.scale(e);var v=c.convertPoint({x:t,y:e});n=v.x,i=v.y}return[n,i]},e}(n(14));t.exports=s},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["shape"],n.type="shape",n.gradient=null,n}return i(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(n(14));t.exports=r},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["size"],n.type="size",n.gradient=null,n}return i(e,t),e}(n(14));t.exports=r},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(66),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["color"],n.type="color",n.gradient=null,r.isString(n.values)&&(n.linear=!0),n}return i(e,t),e.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=a.gradient(n),this.gradient=e}return e(t)},e}(n(14));t.exports=o},function(t,e,n){function i(t,e,n,i){return t[i]+(e[i]-t[i])*n}function r(t){return"#"+a(t[0])+a(t[1])+a(t[2])}function a(t){return t=Math.round(t),1===(t=t.toString(16)).length&&(t="0"+t),t}function o(t,e){var n=t.length-1,a=Math.floor(n*e),o=n*e-a,s=t[a],u=a===n?s:t[a+1];return r([i(s,u,o,0),i(s,u,o,1),i(s,u,o,2)])}function s(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 u=n(0),c={black:"#000000",blue:"#0000ff",grey:"#808080",green:"#008000",orange:"#ffa500",pink:"#ffc0cb",purple:"#800080",red:"#ff0000",white:"#ffffff",yellow:"#ffff00"},l={toHex:function(t){if(c[t])return c[t];if("#"===t[0]){if(7===t.length)return t;var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return"#"+e+e+n+n+i+i});return c[t]=e,e}var n=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return n.shift(),n=r(n),c[t]=n,n},hex2arr:s,gradient:function(t){var e=[];return u.isString(t)&&(t=t.split("-")),u.each(t,function(t){-1===t.indexOf("#")&&(t=l.toHex(t)),e.push(s(t))}),function(t){return o(e,t)}}};t.exports=l},function(t,e,n){var i=n(0),r=n(1),a=n(68),o={linear:"Linear",cat:"Cat",timeCat:"TimeCat",identity:"Identity"},s=function(){function t(t){this.defs={},i.mix(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=null;return(r.scales[t]||e[t])&&(n=i.mix({},r.scales[t]),i.each(e[t],function(t,e){i.isNil(t)?delete n[e]:n[e]=t})),n},e._getDefaultType=function(t,e,n){if(n&&n.type)return n.type;var r="linear",a=i.Array.firstValue(e,t);return i.isArray(a)&&(a=a[0]),i.isString(a)&&(r="cat"),r},e._getScaleCfg=function(t,e,n,r){var a,o={field:e,values:a=r&&r.values?r.values:i.Array.values(n,e)};if("cat"!==t&&"timeCat"!==t){if(!r||!r.min||!r.max){var s=i.Array.getRange(a),u=s.min,c=s.max;o.min=u,o.max=c,o.nice=!0}}else o.isRounding=!1;return o},e.createScale=function(t,e){var n,r=this,s=r._getDef(t);if(!e||!e.length)return s&&s.type?(s.field=t,n=new a[o[s.type]](s)):n=new a.Identity({value:t,field:t.toString(),values:[t]}),n;var u=e[0][t];if(null===u&&(u=i.Array.firstValue(e,t)),i.isNumber(t)||i.isNil(u)&&!s)n=new a.Identity({value:t,field:t.toString(),values:[t]});else{var c=r._getDefaultType(t,e,s),l=r._getScaleCfg(c,t,e,s);s&&i.mix(l,s),n=new a[o[c]](l)}return n},t}();t.exports=s},function(t,e,n){var i=n(12);n(69),n(72),n(37),t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(9),a=n(4),o=n(12),s=n(70),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);var e=this;e.type="linear",e.isLinear=!0,e.nice=!1,e.min=null,e.minLimit=null,e.max=null,e.maxLimit=null,e.tickCount=null,e.tickInterval=null,e.minTickInterval=null,e.snapArray=null},n.init=function(){var t=this;if(t.ticks){var e=t.ticks,n=t.translate(e[0]),i=t.translate(e[e.length-1]);(r(t.min)||t.min>n)&&(t.min=n),(r(t.max)||t.max<i)&&(t.max=i)}else t.min=t.translate(t.min),t.max=t.translate(t.max),t.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,i=this.maxLimit,r=this.tickCount,a=this.tickInterval,o=this.minTickInterval,u=this.snapArray;if(1===r)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 s({min:t,max:e,minLimit:n,maxLimit:i,minCount:r,maxCount:r,interval:a,minTickInterval:o,snapArray:u}).ticks},n.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=[];a(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}},n.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)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(o);o.Linear=u,t.exports=u},function(t,e,n){var i=n(9),r=n(17),a=n(71),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,c=t.minTickInterval,l=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,g=i(t.minLimit)?-1/0:t.minLimit,d=i(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)),i(e)&&(e=0),i(n)&&(n=0),n===e&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),i(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(r(c)&&u<c&&(u=c),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 _,S=(n+e)/2,b=a.snapMultiple(S,u,"ceil"),P=Math.floor((v-2)/2),w=b+P*u;for(_=v%2==0?b-P*u:b-(P+1)*u;w<n;)w=a.fixedBase(w+u,u);for(;_>e;)_=a.fixedBase(_-u,u);n=w,e=_}n=Math.min(n,d),e=Math.max(e,g),l.push(e);for(var C=1;C<y;C++){var M=a.fixedBase(u*C+e,u);M<n&&l.push(M)}return l[l.length-1]<n&&l.push(n),{min:e,max:n,interval:u,count:y,ticks:l}}},function(t,e){function n(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;e.toString().length>a&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}function i(t,e){var n=t.length;if(0===n)return NaN;var i=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var r=1;r<t.length&&!(e<t[r]);r++)i=t[r];return i}function r(t,e){var n=t.length;if(0===n)return NaN;var i;if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var r=1;r<t.length;r++)if(e<=t[r]){i=t[r];break}return i}var a=12,o={snapFactorTo:function(t,e,i){if(isNaN(t))return NaN;var r=1;if(0!==t){t<0&&(r=-1);var s=n(t*=r);r*=s,t/=s}t="floor"===i?o.snapFloor(e,t):"ceil"===i?o.snapCeiling(e,t):o.snapTo(e,t);var u=parseFloat((t*r).toPrecision(a));return Math.abs(r)<1&&u.toString().length>a&&(u=t/parseInt(1/r)*(r>0?1:-1)),u},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=i(t,e),a=r(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 i(t,e)},snapCeiling:function(t,e){return r(t,e)},fixedBase:function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))}};t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(12),a=n(17),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},n.getText=function(){return this.value.toString()},n.scale=function(t){return this.value!==t&&a(t)?t:this.range[0]},n.invert=function(){return this.value},e}(r);r.Identity=o,t.exports=o},function(t,e,n){function i(t){var e=t.slice(0);if(e.length>0){var n=e[0],i=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==i.value&&e.push({value:1})}return e}var r=n(0),a=n(74),o=n(1),s=n(5).Shape,u=function(){function t(t){this.axisCfg={},this.frontPlot=null,this.backPlot=null,this.axes={},r.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.axisCfg;return!e||!1===e[t]},e._getLinePosition=function(t,e,n,i){var r="",a=t.field,o=this.axisCfg;return o[a]&&o[a].position?r=o[a].position:"x"===e?r=i?"left":"bottom":"y"===e&&(r=n?"right":"left",i&&(r="bottom")),r},e._getLineCfg=function(t,e,n){var i,r,a=1;return"x"===e?(i={x:0,y:0},r={x:1,y:0}):"right"===n?(i={x:1,y:0},r={x:1,y:1}):(i={x:0,y:0},r={x:0,y:1},a=-1),t.transposed&&(a*=-1),{offsetFactor:a,start:t.convertPoint(i),end:t.convertPoint(r)}},e._getCircleCfg=function(t){return{startAngle:t.startAngle,endAngle:t.endAngle,center:t.center,radius:t.circleRadius}},e._getRadiusCfg=function(t){var e,n;return t.transposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{offsetFactor:-1,start:t.convertPoint(e),end:t.convertPoint(n)}},e._getAxisCfg=function(t,e,n,i,a){var u=this,c=this.axisCfg,l=e.getTicks(),h=r.deepMix({ticks:l,frontContainer:this.frontPlot,backContainer:this.backPlot},a,c[e.field]),f=[],p=h.label,g=l.length,d=0,v=0,y=p;return r.each(l,function(t,e){if(r.isFunction(p)){var n=p(t.text,e,g);y=n?r.mix({},o._defaultAxis.label,n):null}if(y){var i={};y.textAlign&&(i.textAlign=y.textAlign),y.textBaseline&&(i.textBaseline=y.textBaseline);var a=new s.Text({className:"axis-label",attrs:r.mix({x:0,y:0,text:t.text,fontFamily:u.chart.get("canvas").get("fontFamily")},y),value:t.value,textStyle:i,top:y.top,context:u.chart.get("canvas").get("context")});f.push(a);var c=a.getBBox(),l=c.width,h=c.height;d=Math.max(d,l),v=Math.max(v,h)}}),h.labels=f,h.maxWidth=d,h.maxHeight=v,h},e._createAxis=function(t,e,n,i,r){void 0===r&&(r="");var a,s,u,c=this,l=t.type,h=t.transposed;if("cartesian"===l||"rect"===l){var f=c._getLinePosition(e,i,r,h);(u=o.axis[f]).position=f,a="Line",s=f}else"x"===i&&!h||"y"===i&&h?(u=o.axis.circle,a="Circle",s="circle"):(u=o.axis.radius,a="Line",s="radius");var p=c._getAxisCfg(t,e,n,i,u);p.type=a,p.dimType=i,p.verticalScale=n,p.index=r,this.axes[s]=p},e.createAxis=function(t,e,n){var o=this;e&&!o._isHide(e.field)&&o._createAxis(t,e,n[0],"x"),r.each(n,function(n,i){o._isHide(n.field)||o._createAxis(t,n,e,"y",i)});var s=this.axes,u=o.chart;if(u._isAutoPadding()){var c=r.parsePadding(u.get("padding")),l=r.parsePadding(u.get("appendPadding")),h=u.get("legendRange")||{top:0,right:0,bottom:0,left:0},f=["auto"===c[0]?h.top+2*l[0]:c[0],"auto"===c[1]?h.right+l[1]:c[1],"auto"===c[2]?h.bottom+l[2]:c[2],"auto"===c[3]?h.left+l[3]:c[3]];if(t.isPolar){var p=s.circle;if(p){var g=p.maxHeight,d=p.maxWidth,v=p.labelOffset;f[0]+=g+v,f[1]+=d+v,f[2]+=g+v,f[3]+=d+v}}else{if(s.right&&"auto"===c[1]){var y=s.right,x=y.maxWidth,m=y.labelOffset;f[1]+=x+m}if(s.left&&"auto"===c[3]){var _=s.left,S=_.maxWidth,b=_.labelOffset;f[3]+=S+b}if(s.bottom&&"auto"===c[2]){var P=s.bottom,w=P.maxHeight,C=P.labelOffset;f[2]+=w+C}}u.set("_padding",f),u._updateLayout(f)}r.each(s,function(e){var n,s=e.type,u=e.grid,c=e.verticalScale,l=e.ticks,h=e.dimType,f=e.position,p=e.index;if(t.isPolar?"Line"===s?n=o._getRadiusCfg(t):"Circle"===s&&(n=o._getCircleCfg(t)):n=o._getLineCfg(t,h,f),u&&c){var g=[],d=i(c.getTicks());r.each(l,function(e){var n=[];r.each(d,function(i){var r="x"===h?e.value:i.value,a="x"===h?i.value:e.value;if(r>=0&&r<=1&&a>=0&&a<=1){var o=t.convertPoint({x:r,y:a});n.push(o)}}),g.push({points:n,_id:"axis-"+h+p+"-grid-"+e.tickValue})}),e.gridPoints=g,t.isPolar&&(e.center=t.center,e.startAngle=t.startAngle,e.endAngle=t.endAngle)}n._id="axis-"+h,r.isNil(p)||(n._id="axis-"+h+p),new a[s](r.mix(e,n))})},e.clear=function(){this.axes={},this.frontPlot.clear(),this.backPlot.clear()},t}();t.exports=u},function(t,e,n){var i=n(26);n(75),t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(26),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.start=null,this.end=null},n.getOffsetPoint=function(t){var e=this.start,n=this.end;return{x:e.x+(n.x-e.x)*t,y:e.y+(n.y-e.y)*t}},n.getAxisVector=function(){var t=this.start,e=this.end;return[e.x-t.x,e.y-t.y]},n.drawLine=function(t){var e=this.getContainer(t.top),n=this.start,i=this.end;e.addShape("line",{className:"axis-line",attrs:r.mix({x1:n.x,y1:n.y,x2:i.x,y2:i.y},t)})},e}(a);a.Line=o,t.exports=o},function(t,e,n){var i=n(0),r=n(34),a=n(35),o=n(39).requestAnimationFrame,s=function(){function t(t){this._attrs=i.mix({type:"canvas",children:[]},t),this._initPixelRatio(),this._initCanvas()}var e=t.prototype;return e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e._initPixelRatio=function(){this.get("pixelRatio")||this.set("pixelRatio",i.getPixelRatio())},e.beforeDraw=function(){var t=this._attrs.context,e=this._attrs.el;!i.isWx&&!i.isMy&&t&&t.clearRect(0,0,e.width,e.height)},e._initCanvas=function(){var t,e=this,n=e.get("el"),r=e.get("context");if(!(t=r?r.canvas:i.isString(n)?i.getDomById(n):n))throw new Error("Please specify the id or el of the chart!");r&&t&&!t.getContext&&(t.getContext=function(){return r});var a=e.get("width");a||(a=i.getWidth(t));var o=e.get("height");o||(o=i.getHeight(t)),e.set("canvas",this),e.set("el",t),e.set("context",r||t.getContext("2d")),e.changeSize(a,o)},e.changeSize=function(t,e){var n=this.get("pixelRatio"),r=this.get("el");i.isBrowser&&(r.style.width=t+"px",r.style.height=e+"px"),i.isWx||i.isMy||(r.width=t*n,r.height=e*n,1!==n&&this.get("context").scale(n,n)),this.set("width",t),this.set("height",e)},e.getWidth=function(){var t=this.get("pixelRatio");return this.get("width")*t},e.getHeight=function(){var t=this.get("pixelRatio");return this.get("height")*t},e.getPointByClient=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect(),r=i.right-i.left,a=i.bottom-i.top;return{x:(t-i.left)*(n.width/r),y:(e-i.top)*(n.height/a)}},e._beginDraw=function(){this._attrs.toDraw=!0},e._endDraw=function(){this._attrs.toDraw=!1},e.draw=function(){function t(){e.set("animateHandler",o(function(){e.set("animateHandler",void 0),e.get("toDraw")&&t()})),e.beforeDraw();try{for(var n=e._attrs.context,r=e._attrs.children,a=0,s=r.length;a<s;a++)r[a].draw(n);(i.isWx||i.isMy)&&n.draw()}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e._endDraw()}e._endDraw()}var e=this;e.get("destroyed")||(e.get("animateHandler")?this._beginDraw():t())},e.destroy=function(){this.get("destroyed")||(this.clear(),this._attrs={},this.set("destroyed",!0))},e.isDestroyed=function(){return this.get("destroyed")},t}();i.mix(s.prototype,r,{getGroupClass:function(){return a}}),t.exports=s},function(t,e,n){function i(t,e){return(t%e+e)%e}function r(t,e){s.each(t,function(t){t=t.split(":"),e.addColorStop(Number(t[0]),t[1])})}function a(t,e,n){var a=t.split(" "),o=a[0].slice(2,a[0].length-1);o=i(parseFloat(o)*Math.PI/180,2*Math.PI);var s,u,c=a.slice(1),l=e.getBBox(),h=l.minX,f=l.minY,p=l.maxX,g=l.maxY;o>=0&&o<.5*Math.PI?(s={x:h,y:f},u={x:p,y:g}):.5*Math.PI<=o&&o<Math.PI?(s={x:p,y:f},u={x:h,y:g}):Math.PI<=o&&o<1.5*Math.PI?(s={x:p,y:g},u={x:h,y:f}):(s={x:h,y:g},u={x:p,y:f});var d=Math.tan(o),v=d*d,y=(u.x-s.x+d*(u.y-s.y))/(v+1)+s.x,x=d*(u.x-s.x+d*(u.y-s.y))/(v+1)+s.y,m=n.createLinearGradient(s.x,s.y,y,x);return r(c,m),m}function o(t,e,n){var i=t.split(" "),a=i[0].slice(2,i[0].length-1);a=a.split(",");var o=parseFloat(a[0]),s=parseFloat(a[1]),u=parseFloat(a[2]),c=i.slice(1);if(0===u)return c[c.length-1].split(":")[1];var l=e.getBBox(),h=l.width,f=l.height,p=l.minX,g=l.minY,d=Math.sqrt(h*h+f*f)/2,v=n.createRadialGradient(p+h*o,g+f*s,u*d,p+h/2,g+f/2,d);return r(c,v),v}var s=n(0);t.exports={parseStyle:function(t,e,n){if("("===t[1])try{var i=t[0];if("l"===i)return a(t,e,n);if("r"===i)return o(t,e,n)}catch(t){console.error("error in parsing gradient string, please check if there are any extra whitespaces."),console.error(t)}return t}}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(2),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="rect"},n.getDefaultAttrs=function(){return{x:0,y:0,width:0,height:0,radius:0,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,a=e.width,o=e.height;t.beginPath();var s=e.radius;s&&a*o?(s=r.parsePadding(s),t.moveTo(n+s[0],i),t.lineTo(n+a-s[1],i),t.arc(n+a-s[1],i+s[1],s[1],-Math.PI/2,0,!1),t.lineTo(n+a,i+o-s[2]),t.arc(n+a-s[2],i+o-s[2],s[2],0,Math.PI/2,!1),t.lineTo(n+s[3],i+o),t.arc(n+s[3],i+o-s[3],s[3],Math.PI/2,Math.PI,!1),t.lineTo(n,i+s[0]),t.arc(n+s[0],i+s[0],s[0],Math.PI,3*Math.PI/2,!1),t.closePath()):t.rect(n,i,a,o)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},e}(a);a.Rect=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="circle"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.r;return{minX:e-i,maxX:e+i,minY:n-i,maxY:n+i}},e}(r);r.Circle=a,t.exports=a},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(2),a=n(10),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.type="line"},n.getDefaultAttrs=function(){return{x1:0,y1:0,x2:0,y2:0,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x1,i=e.y1,r=e.x2,a=e.y2;t.beginPath(),t.moveTo(n,i),t.lineTo(r,a)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.lineWidth;return a.getBBoxFromLine(e,n,i,r,o)},e}(r);r.Line=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(2),a=n(10),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polygon"},n.getDefaultAttrs=function(){return{points:null,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs").points;t.beginPath();for(var n=0,i=e.length;n<i;n++){var r=e[n];0===n?t.moveTo(r.x,r.y):t.lineTo(r.x,r.y)}t.closePath()},n.calculateBox=function(){var t=this.get("attrs").points;return a.getBBoxFromPoints(t)},e}(r);r.Polygon=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n];isNaN(r.x)||isNaN(r.y)||e.push(r)}return e}var a=n(2),o=n(40),s=n(10),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polyline"},n.getDefaultAttrs=function(){return{points:null,lineWidth:1,smooth:!1}},n.createPath=function(t){var e=this.get("attrs"),n=e.points,i=e.smooth,a=r(n);if(t.beginPath(),a.length)if(t.moveTo(a[0].x,a[0].y),i)for(var s=[[0,0],[1,1]],u=o.smooth(a,!1,s),c=0,l=u.length;c<l;c++){var h=u[c];t.bezierCurveTo(h[1],h[2],h[3],h[4],h[5],h[6])}else{var f,p;for(f=1,p=a.length-1;f<p;f++)t.lineTo(a[f].x,a[f].y);t.lineTo(a[p].x,a[p].y)}},n.calculateBox=function(){var t=this.get("attrs"),e=t.points,n=t.smooth,i=t.lineWidth,a=r(e);if(n){for(var u=[],c=[[0,0],[1,1]],l=o.smooth(a,!1,c),h=0,f=l.length;h<f;h++){var p=l[h];if(0===h)u.push([a[0].x,a[0].y,p[1],p[2],p[3],p[4],p[5],p[6]]);else{var g=l[h-1];u.push([g[5],g[6],p[1],p[2],p[3],p[4],p[5],p[6]])}}return s.getBBoxFromBezierGroup(u,i)}return s.getBBoxFromPoints(a,i)},e}(a);a.Polyline=u,t.exports=u},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(2),a=n(10),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.canFill=!0,this._attrs.type="arc"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!1,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t.beginPath(),t.arc(n,i,r,a,o,s)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.r,r=t.startAngle,o=t.endAngle,s=t.clockwise;return a.getBBoxFromArc(e,n,i,r,o,s)},e}(r);r.Arc=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(2),a=n(10),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="sector"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0,r:0,r0:0,startAngle:0,endAngle:2*Math.PI,clockwise:!1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,i=e.y,r=e.startAngle,a=e.endAngle,o=e.r,s=e.r0,u=e.clockwise;t.beginPath();var c=Math.cos(r),l=Math.sin(r);t.moveTo(c*s+n,l*s+i),t.lineTo(c*o+n,l*o+i),(Math.abs(a-r)>1e-4||0===r&&a<0)&&(t.arc(n,i,o,r,a,u),t.lineTo(Math.cos(a)*s+n,Math.sin(a)*s+i),0!==s&&t.arc(n,i,s,a,r,!u)),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.r,r=t.r0,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=a.getBBoxFromArc(e,n,i,o,s,u),l=a.getBBoxFromArc(e,n,r,o,s,u);return{minX:Math.min(c.minX,l.minX),minY:Math.min(c.minY,l.minY),maxX:Math.max(c.maxX,l.maxX),maxY:Math.max(c.maxY,l.maxY)}},e}(r);r.Sector=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(2),o=0,s={},u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="text"},n.getDefaultAttrs=function(){return{lineWidth:0,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null}},n._getFontStyle=function(){var t=this._attrs.attrs,e=t.fontSize,n=t.fontFamily,i=t.fontWeight;return t.fontStyle+" "+t.fontVariant+" "+i+" "+e+"px "+n},n._afterAttrsSet=function(){var t=this._attrs.attrs;if(t.font=this._getFontStyle(),t.text){var e=t.text,n=null,i=1;r.isString(e)&&-1!==e.indexOf("\n")&&(i=(n=e.split("\n")).length),t.lineCount=i,t.textArr=n}this.set("attrs",t)},n._getTextHeight=function(){var t=this._attrs.attrs;if(t.height)return t.height;var e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},n._getSpaceingY=function(){var t=this._attrs.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},n.drawInner=function(t){var e=this,n=e._attrs.attrs,i=n.text,a=n.x,o=n.y;if(!(r.isNil(i)||isNaN(a)||isNaN(o))){var s=n.textArr,u=1*n.fontSize,c=e._getSpaceingY();n.rotate&&(t.translate(a,o),t.rotate(n.rotate),a=0,o=0);var l,h=n.textBaseline;s&&(l=e._getTextHeight());var f;if(e.hasFill()){var p=n.fillOpacity;if(r.isNil(p)||1===p||(t.globalAlpha=p),s)for(var g=0,d=s.length;g<d;g++){var v=s[g];f=o+g*(c+u)-l+u,"middle"===h&&(f+=l-u-(l-u)/2),"top"===h&&(f+=l-u),t.fillText(v,a,f)}else t.fillText(i,a,o)}if(e.hasStroke())if(s)for(var y=0,x=s.length;y<x;y++){var m=s[y];f=o+y*(c+u)-l+u,"middle"===h&&(f+=l-u-(l-u)/2),"top"===h&&(f+=l-u),t.strokeText(m,a,f)}else t.strokeText(i,a,o)}},n.calculateBox=function(){var t=this,e=t._attrs.attrs,n=e.x,i=e.y,r=e.textAlign,a=e.textBaseline,o=t._getTextWidth();if(!o)return{minX:n,minY:i,maxX:n,maxY:i};var s=t._getTextHeight(),u={x:n,y:i-s};return r&&("end"===r||"right"===r?u.x-=o:"center"===r&&(u.x-=o/2)),a&&("top"===a?u.y+=s:"middle"===a&&(u.y+=s/2)),{minX:u.x,minY:u.y,maxX:u.x+o,maxY:u.y+s}},n._getTextWidth=function(){var t=this._attrs.attrs;if(t.width)return t.width;var e=t.text,n=this.get("context");if(!r.isNil(e)){var i=t.font,a=t.textArr,u=e+""+i;if(s[u])return s[u];var c=0;if(a)for(var l=0,h=a.length;l<h;l++){var f=a[l];c=Math.max(c,r.measureText(f,i,n).width)}else c=r.measureText(e,i,n).width;return o>5e3&&(o=0,s={}),o++,s[u]=c,c}},e}(a);a.Text=u,t.exports=u},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.createPath=null,this._attrs.type="custom"},n.createPath=function(t){var e=this.get("createPath");e&&e.call(this,t)},n.calculateBox=function(){var t=this.get("calculateBox");return t&&t.call(this)},e}(r);r.Custom=a,t.exports=a},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(41),a=n(6);n(36);var o=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(r);a.Line=o,t.exports=o},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(6),o=n(0),s=n(42);n(89);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,o.mix(i(n),s),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(a);a.Interval=u,t.exports=u},function(t,e,n){function i(t){var e=t.x,n=t.y,i=t.y0,r=t.size,o=i,s=n;a.isArray(n)&&(s=n[1],o=n[0]);var u,c;return a.isArray(e)?(u=e[0],c=e[1]):(u=e-r/2,c=e+r/2),[{x:u,y:o},{x:u,y:s},{x:c,y:s},{x:c,y:o}]}function r(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var a=t[i];e.push(a.x),n.push(a.y)}var o=Math.min.apply(null,e),s=Math.min.apply(null,n);return{x:o,y:s,width:Math.max.apply(null,e)-o,height:Math.max.apply(null,n)-s}}var a=n(0),o=n(8),s=n(3),u=n(1),c=o.registerFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return i(t)}});o.registerShape("interval","rect",{draw:function(t,e){var n=this.parsePoints(t.points),i=a.mix({fill:t.color},u.shape.interval,t.style);if(t.isInCircle){var o=n.slice(0);this._coord.transposed&&(o=[n[0],n[3],n[2],n[1]]);var c=t.center,l=c.x,h=c.y,f=[1,0],p=[o[0].x-l,o[0].y-h],g=[o[1].x-l,o[1].y-h],d=[o[2].x-l,o[2].y-h],v=s.angleTo(f,g),y=s.angleTo(f,d),x=s.length(p),m=s.length(g);return v>=1.5*Math.PI&&(v-=2*Math.PI),y>=1.5*Math.PI&&(y-=2*Math.PI),e.addShape("Sector",{className:"interval",attrs:a.mix({x:l,y:h,r:m,r0:x,startAngle:v,endAngle:y},i)})}var _=r(n);return e.addShape("rect",{className:"interval",attrs:a.mix(_,i)})}}),t.exports=c},function(t,e,n){t.exports={Stack:n(91),Dodge:n(93)}},function(t,e,n){var i=n(92);t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(13),a=n(9),o=n(23),s=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null},n.processAdjust=function(t){this.processStack(t)},n.processStack=function(t){var e=this,n=e.xField,i=e.yField,o=t.length,s={positive:{},negative:{}};e.reverseOrder&&(t=t.slice(0).reverse());for(var u=0;u<o;u++)for(var c=t[u],l=0,h=c.length;l<h;l++){var f=c[l],p=f[n]||0,g=f[i],d=p.toString();if(g=r(g)?g[1]:g,!a(g)){var v=g>=0?"positive":"negative";s[v][d]||(s[v][d]=0),f[i]=[s[v][d],g+s[v][d]],s[v][d]+=g}}},e}(o);o.Stack=s,t.exports=s},function(t,e,n){var i=n(94);t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(23),a=n(4),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},n.getDodgeOffset=function(t,e,n){var i=this,r=t.pre,a=t.next,o=a-r,s=o*i.dodgeRatio/n,u=i.marginRatio*s;return(r+a)/2+(.5*(o-n*s-(n-1)*u)+((e+1)*s+e*u)-.5*s-.5*o)},n.processAdjust=function(t){var e=this,n=t.length,i=e.xField;a(t,function(t,r){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[i],c={pre:1===o?u-1:u-.5,next:1===o?u+1:u+.5},l=e.getDodgeOffset(c,r,n);s[i]=l}})},e}(r);r.Dodge=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(21),a=n(3),o=n(24),s=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="polar",this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.inner=0,this.innerRadius=0,this.isPolar=!0,this.transposed=!1,this.center=null,this.radius=null},n.init=function(t,e){var n,i,r=this,a=r.inner||r.innerRadius,o=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);r.startAngle===-Math.PI&&0===r.endAngle?(n=Math.min(o/2,s),i={x:(t.x+e.x)/2,y:t.y}):(n=Math.min(o,s)/2,i={x:(t.x+e.x)/2,y:(t.y+e.y)/2});var u=r.radius;u>0&&u<=1&&(n*=u),this.x={start:r.startAngle,end:r.endAngle},this.y={start:n*a,end:n},this.center=i,this.circleRadius=n},n.convertPoint=function(t){var e=this,n=e.center,i=e.transposed,r=i?"y":"x",a=i?"x":"y",o=e.x,s=e.y,u=o.start+(o.end-o.start)*t[r],c=s.start+(s.end-s.start)*t[a];return{x:n.x+Math.cos(u)*c,y:n.y+Math.sin(u)*c}},n.invertPoint=function(t){var e=this,n=e.center,i=e.transposed,r=e.x,s=e.y,u=i?"y":"x",c=i?"x":"y",l=[1,0,0,1,0,0];o.rotate(l,l,r.start);var h=[1,0];a.transformMat2d(h,h,l),h=[h[0],h[1]];var f=[t.x-n.x,t.y-n.y];if(a.zero(f))return{x:0,y:0};var p=a.angleTo(h,f,r.end<r.start);Math.abs(p-2*Math.PI)<.001&&(p=0);var g=a.length(f),d=p/(r.end-r.start);d=r.end-r.start>0?d:-d;var v=(g-s.start)/(s.end-s.start),y={};return y[u]=d,y[c]=v,y},e}(r);r.Polar=s,t.exports=s},function(t,e,n){var i=n(18),r=n(115);t.exports={toTimeStamp:function(t){return i(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r(t)&&(t=t.getTime()),t}}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a={circle:function(t,e,n,i){i.arc(t,e,n,0,2*Math.PI,!1)},square:function(t,e,n,i){i.moveTo(t-n,e-n),i.lineTo(t+n,e-n),i.lineTo(t+n,e+n),i.lineTo(t-n,e+n),i.closePath()}},o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="marker"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0}},n.createPath=function(t){var e,n=this.get("attrs"),i=n.x,o=n.y,s=n.radius,u=n.symbol||"circle";e=r.isFunction(u)?u:a[u],t.beginPath(),e(i,o,s,t,this)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,i=t.radius;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},e}(n(5).Shape);t.exports=o},function(t,e,n){var i=n(0),r=n(5).Group,a=n(97),o=function(){function t(t){i.deepMix(this,this.getDefaultCfg(),t),this._init(),this._renderTitle(),this._renderItems()}var e=t.prototype;return e.getDefaultCfg=function(){return{showTitle:!1,title:null,items:null,titleGap:12,itemGap:10,itemMarginBottom:12,itemFormatter:null,itemWidth:null,wordSpace:6,x:0,y:0,layout:"horizontal",joinString:": "}},e._init=function(){var t=new r({zIndex:this.zIndex||0});this.container=t;var e=t.addGroup();this.wrapper=e;var n=e.addGroup({className:"itemsGroup"});this.itemsGroup=n,this.parent&&this.parent.add(t)},e._renderTitle=function(t){t=t||this.title;var e=this.titleShape,n=0;if(this.showTitle&&t){if(e&&!e.get("destroyed"))e.attr("text",t);else{var r=this.wrapper,a=this.titleStyle;e=r.addShape("text",{className:"title",attrs:i.mix({x:0,y:0,text:t},a)}),this.titleShape=e}n=e.getBBox().height+this.titleGap}this._titleHeight=n},e._renderItems=function(t){var e=this;(t=t||e.items)&&(e.reversed&&t.reverse(),i.each(t,function(t,n){e._addItem(t,n)}),t.length>1&&this._adjustItems(),this._renderBackground())},e._renderBackground=function(){var t=this.background;if(t){var e=this.container,n=this.wrapper.getBBox(),r=n.minX,a=n.minY,o=n.width,s=n.height,u=t.padding||[0,0,0,0];u=i.parsePadding(u);var c=i.mix({x:r-u[3],y:a-u[0],width:o+u[1]+u[3],height:s+u[0]+u[2]},t),l=this.backShape;l?l.attr(c):l=e.addShape("Rect",{zIndex:-1,attrs:c}),this.backShape=l,e.sort()}},e._addItem=function(t){var e=this.itemsGroup.addGroup({name:t.name,value:t.value,dataValue:t.dataValue,checked:t.checked}),n=this.unCheckStyle,r=this.unCheckColor,o=this.nameStyle,s=this.valueStyle,u=this.wordSpace,c=t.marker,l=t.value,h=0;if(r&&(n.fill=r),c){var f=c.radius||3,p=i.mix({x:f,y:this._titleHeight},c);!1===t.checked&&i.mix(p,n);var g=new a({className:"item-marker",attrs:p});e.add(g),h+=g.getBBox().width+u}var d,v=t.name;if(v){var y=this.joinString||"";v=l?v+y:v,d=e.addShape("text",{className:"name",attrs:i.mix({x:h,y:this._titleHeight,text:this._formatItemValue(v)},o,!1===t.checked?n:null)})}if(l){var x=h;d&&(x+=d.getBBox().width),e.addShape("text",{className:"value",attrs:i.mix({x:x,y:this._titleHeight,text:l},s,!1===t.checked?n:null)})}return e},e._formatItemValue=function(t){var e=this.itemFormatter;return e&&(t=e.call(this,t)),t},e._getMaxItemWidth=function(){var t=this.itemWidth;if(i.isNumber(t)||i.isNil(t))return t;if("auto"===t){for(var e=this.itemsGroup.get("children"),n=e.length,r=0,a=0;a<n;a++){var o=e[a].getBBox().width;r=Math.max(r,o)}var s=this.maxLength,u=this.itemGap,c=(s-u)/2,l=(s-2*u)/3;return 2===n?Math.max(r,c):r<=l?l:r<=c?c:r}},e._adjustHorizontal=function(){for(var t,e,n=this.maxLength,i=this.itemsGroup.get("children"),r=this.itemGap,a=this.itemMarginBottom,o=this._titleHeight,s=0,u=0,c=this._getMaxItemWidth(),l=[],h=0,f=i.length;h<f;h++){var p=i[h],g=p.getBBox(),d=g.height,v=g.width;e=d+a,(t=c||v)-(n-u)>1e-4&&(s++,u=0),p.moveTo(u,s*e),l.push({x:u,y:s*e+o-d/2,width:1.375*v,height:1.375*d}),u+=t+r}this.legendHitBoxes=l},e._adjustVertical=function(){for(var t,e,n=this.maxLength,r=this.itemsGroup,a=this.itemGap,o=this.itemMarginBottom,s=this.itemWidth,u=this._titleHeight,c=r.get("children"),l=0,h=0,f=0,p=[],g=0,d=c.length;g<d;g++){var v=c[g],y=v.getBBox();t=y.width,e=y.height,i.isNumber(s)?h=s+a:t>h&&(h=t+a),n-l<e?(l=0,f+=h,v.moveTo(f,0),p.push({x:f,y:u-e/2,width:1.375*t,height:1.375*e})):(v.moveTo(f,l),p.push({x:f,y:l-e/2+u,width:1.375*t,height:1.375*e})),l+=e+o}this.legendHitBoxes=p},e._adjustItems=function(){"horizontal"===this.layout?this._adjustHorizontal():this._adjustVertical()},e.moveTo=function(t,e){this.x=t,this.y=e;var n=this.container;return n&&n.moveTo(t,e),this},e.setItems=function(t){this.clearItems(),this._renderItems(t)},e.setTitle=function(t){this._renderTitle(t)},e.clearItems=function(){this.itemsGroup.clear()},e.getWidth=function(){return this.container.getBBox().width},e.getHeight=function(){return this.container.getBBox().height},e.show=function(){this.container.show()},e.hide=function(){this.container.hide()},e.clear=function(){var t=this.container;t.clear(),t.remove(!0)},t}();t.exports=o},function(t,e,n){var i=n(0),r={appear:{duration:450,easing:"quadraticOut"},update:{duration:300,easing:"quadraticOut"},enter:{duration:300,easing:"quadraticOut"},leave:{duration:350,easing:"quadraticIn"}},a={defaultCfg:{},Action:{},getAnimation:function(t,e,n){var r=this.defaultCfg[t];if(r){var a=r[n];if(i.isFunction(a))return a(e)}return!1},getAnimateCfg:function(t,e){var n=r[e],a=this.defaultCfg[t];return a&&a.cfg&&a.cfg[e]?i.deepMix({},n,a.cfg[e]):n},registerAnimation:function(t,e){this.Action||(this.Action={}),this.Action[t]=e}};t.exports=a},function(t,e,n){var i=n(5).Matrix,r=n(0),a={getCoordInfo:function(t){var e=t.start,n=t.end;return{start:e,end:n,width:n.x-e.x,height:Math.abs(n.y-e.y)}},getScaledMatrix:function(t,e,n){var r;t.apply(e);var a=e[0],o=e[1];if("x"===n){t.transform([["t",a,o],["s",.01,1],["t",-a,-o]]);var s=t.getMatrix();r=i.transform(s,[["t",a,o],["s",100,1],["t",-a,-o]])}else if("y"===n){t.transform([["t",a,o],["s",1,.01],["t",-a,-o]]);var u=t.getMatrix();r=i.transform(u,[["t",a,o],["s",1,100],["t",-a,-o]])}else if("xy"===n){t.transform([["t",a,o],["s",.01,.01],["t",-a,-o]]);var c=t.getMatrix();r=i.transform(c,[["t",a,o],["s",100,100],["t",-a,-o]])}return r},getAnimateParam:function(t,e,n){var i={};return t.delay&&(i.delay=r.isFunction(t.delay)?t.delay(e,n):t.delay),i.easing=t.easing,i.duration=t.duration,i.delay=t.delay,i},doAnimation:function(t,e,n,i){var r=t._id,o=t.get("index"),s=a.getAnimateParam(n,o,r),u=s.easing,c=s.delay,l=s.duration,h=t.animate().to({attrs:e,duration:l,delay:c,easing:u});i&&h.onEnd(function(){i()})}};t.exports=a},,function(t,e,n){var i=n(6);n(103),n(41),n(87),n(105),n(88),n(107),n(109),t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(6);n(104);var o=function(t){function e(){return t.apply(this,arguments)||this}i(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.draw=function(t,e){var n=this,i=n.get("container");r.each(t,function(t){var a=t.shape,o=n.getDrawCfg(t);if(r.isArray(t.y)){var s=n.hasAdjust("stack");r.each(t.y,function(r,u){o.y=r,s&&0===u||n.drawShape(a,t,o,i,e)})}else r.isNil(t.y)||n.drawShape(a,t,o,i,e)})},e}(a);a.Point=o,t.exports=o},function(t,e,n){function i(t){var e={lineWidth:0,stroke:t.color,fill:t.color};return t.size&&(e.size=t.size),a.mix(e,t.style),a.mix({},o.shape.point,e)}function r(t,e,n){if(0!==t.size){var r=i(t),o=r.r||r.size,s=t.x,u=a.isArray(t.y)?t.y:[t.y];"hollowCircle"===n&&(r.lineWidth=1,r.fill=null);for(var c=0,l=u.length;c<l;c++)return"rect"===n?e.addShape("Rect",{className:"point",attrs:a.mix({x:s-o,y:u[c]-o,width:2*o,height:2*o},r)}):e.addShape("Circle",{className:"point",attrs:a.mix({x:s,y:u[c],r:o},r)})}}var a=n(0),o=n(1),s=n(19),u=n(8),c=["circle","hollowCircle","rect"],l=u.registerFactory("point",{defaultShapeType:"circle",getDefaultPoints:function(t){return s.splitPoints(t)}});a.each(c,function(t){u.registerShape("point",t,{draw:function(e,n){return r(e,n,t)}})}),t.exports=l},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(6),a=n(19),o=n(0);n(106);var s=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},n.draw=function(t,e){var n=this,i=n.get("container"),r=this.getDrawCfg(t[0]),s=n.getYScale(),u=n.get("connectNulls"),c=a.splitArray(t,s.field,u);r.origin=t,o.each(c,function(a,o){r.splitedIndex=o;var s=a.map(function(t){return t.points});r.points=s,n.drawShape(r.shape,t[0],r,i,e)})},e}(r);r.Area=s,t.exports=s},function(t,e,n){function i(t,e){return Math.abs(t-e)<1e-5}function r(t){return!isNaN(t)&&!c.isNil(t)}function a(t){for(var e=[],n=0,i=t.length;n<i;n++){var a=t[n];r(a.x)&&r(a.y)&&e.push(a)}return e}function o(t,e){var n=!0;return c.each(t,function(t){if(!i(t.x,e.x)||!i(t.y,e.y))return n=!1,!1}),n}function s(t,e,n,i,r){var o=t.concat(e);return r?n.addShape("Custom",{className:"area",attrs:c.mix({points:o},i),createPath:function(t){var e=[[0,0],[1,1]],n=a(this._attrs.attrs.points),i=n.length,r=n.slice(0,i/2),o=n.slice(i/2,i),s=h.smooth(r,!1,e);t.beginPath(),t.moveTo(r[0].x,r[0].y);for(var u=0,c=s.length;u<c;u++){var l=s[u];t.bezierCurveTo(l[1],l[2],l[3],l[4],l[5],l[6])}if(o.length){var f=h.smooth(o,!1,e);t.lineTo(o[0].x,o[0].y);for(var p=0,g=f.length;p<g;p++){var d=f[p];t.bezierCurveTo(d[1],d[2],d[3],d[4],d[5],d[6])}}t.closePath()},calculateBox:function(){var t=a(this._attrs.attrs.points);return f.getBBoxFromPoints(t)}}):n.addShape("Polyline",{className:"area",attrs:c.mix({points:o},i)})}function u(t,e,n){var i=this,r=t.points,a=[],u=[];c.each(r,function(t){u.push(t[0]),a.push(t[1])});var l=c.mix({fillStyle:t.color},p.shape.area,t.style);return u.reverse(),a=i.parsePoints(a),u=i.parsePoints(u),t.isInCircle&&(a.push(a[0]),u.unshift(u[u.length-1]),o(u,t.center)&&(u=[])),s(a,u,e,l,n)}var c=n(0),l=n(8),h=n(40),f=n(10),p=n(1),g=l.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y,i=t.y0;n=c.isArray(n)?n:[i,n];var r=[];return r.push({x:e,y:n[0]},{x:e,y:n[1]}),r}}),d=["area","smooth"];c.each(d,function(t){l.registerShape("area",t,{draw:function(e,n){var i="smooth"===t;return u.call(this,e,n,i)}})}),t.exports=g},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(6),a=n(0);n(108);var o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this,o=i.x,s=i.y;if(!a.isArray(o)||!a.isArray(s)){var u=r.getXScale(),c=r.getYScale(),l=.5/(u.values?u.values.length:u.ticks.length),h=.5/(c.values?c.values.length:c.ticks.length);u.isCategory&&c.isCategory?(o=[o-l,o-l,o+l,o+l],s=[s-h,s+h,s+h,s-h]):a.isArray(o)?(o=[(n=o)[0],n[0],n[1],n[1]],s=[s-h/2,s+h/2,s+h/2,s-h/2]):a.isArray(s)&&(s=[(n=s)[0],n[1],n[1],n[0]],o=[o-l/2,o-l/2,o+l/2,o+l/2]),i.x=o,i.y=s}return i},e}(r);r.Polygon=o,t.exports=o},function(t,e,n){var i=n(8),r=n(0),a=i.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){for(var e=[],n=t.x,i=t.y,r=0,a=n.length;r<a;r++)e.push({x:n[r],y:i[r]});return e}});i.registerShape("polygon","polygon",{draw:function(t,e){var n=this.parsePoints(t.points),i=r.mix({fill:t.color,points:n},t.style);return e.addShape("Polygon",{className:"polygon",attrs:i})}}),t.exports=a},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var a=n(6),o=n(0),s=n(42);n(110);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,o.mix(i(n),s),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(a);a.Schema=u,t.exports=u},function(t,e,n){function i(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],r=0;r<4-n;r++)e.push(i);return e}function r(t,e,n){var r=i(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}var a=n(8),o=n(0),s=a.registerFactory("schema",{});a.registerShape("schema","candle",{getPoints:function(t){return r(t.x,t.y,t.size)},draw:function(t,e){var n=this.parsePoints(t.points),i=o.mix({stroke:t.color,fill:t.color,lineWidth:1},t.style);return e.addShape("Custom",{className:"schema",attrs:i,createPath:function(t){t.beginPath(),t.moveTo(n[0].x,n[0].y),t.lineTo(n[1].x,n[1].y),t.moveTo(n[2].x,n[2].y);for(var e=3;e<6;e++)t.lineTo(n[e].x,n[e].y);t.closePath(),t.moveTo(n[6].x,n[6].y),t.lineTo(n[7].x,n[7].y)}})}}),t.exports=s},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(26),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.radius=null,this.center=null},n.getOffsetPoint=function(t){var e=this.startAngle,n=e+(this.endAngle-e)*t;return this._getCirclePoint(n)},n._getCirclePoint=function(t,e){var n=this,i=n.center;return e=e||n.radius,{x:i.x+Math.cos(t)*e,y:i.y+Math.sin(t)*e}},n.getTextAlignInfo=function(t,e){var n,i=this.getOffsetVector(t,e),r="middle";return i[0]>0?n="left":i[0]<0?n="right":(n="center",i[1]>0?r="top":i[1]<0&&(r="bottom")),{textAlign:n,textBaseline:r}},n.getAxisVector=function(t){var e=this.center,n=this.offsetFactor;return[(t.y-e.y)*n,-1*(t.x-e.x)*n]},n.drawLine=function(t){var e=this.center,n=this.radius,i=this.startAngle,a=this.endAngle;this.getContainer(t.top).addShape("arc",{className:"axis-line",attrs:r.mix({x:e.x,y:e.y,r:n,startAngle:i,endAngle:a},t)})},e}(a);a.Circle=o,t.exports=o},function(t,e,n){var i=n(113);t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(12),a=n(37),o=n(114),s=n(38),u=n(96),c=n(4),l=n(17),h=n(25),f=n(18),p=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},n.init=function(){var t=this,e=this.values;c(e,function(n,i){e[i]=t._toTimeStamp(n)}),this.sortable&&e.sort(function(t,e){return t-e}),t.ticks||(t.ticks=this.calculateTicks())},n.calculateTicks=function(){var t=this,e=t.tickCount;return e?s({maxCount:e,data:t.values,isRounding:t.isRounding}).ticks:t.values},n.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},n.scale=function(t){var e,n=this.rangeMin(),i=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-n)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var i=this.formatter;return e=parseInt(e,10),e=i?i(e):o.format(e,this.mask)},n.getTicks=function(){var t=this,e=this.ticks,n=[];return c(e,function(e){var i;i=h(e)?e:{text:f(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(i)}),n},n._toTimeStamp=function(t){return u.toTimeStamp(t)},e}(a);r.TimeCat=p,t.exports=p},function(t,e,n){var i;!function(r){"use strict";function a(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}function o(t){return function(e,n,i){var r=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(e.month=r)}}function s(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var u={},c=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,h=/\d{3}/,f=/\d{4}/,p=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,g=/\[([^]*?)\]/gm,d=function(){},v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],x=a(y,3),m=a(v,3);u.i18n={dayNamesShort:m,dayNames:v,monthNamesShort:x,monthNames:y,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var _={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(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 s(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 s(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(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?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},S={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[f,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:[h,function(t,e){t.millisecond=e}],d:[l,d],ddd:[p,d],MMM:[p,o("monthNamesShort")],MMMM:[p,o("monthNames")],a:[p,function(t,e,n){var i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,i=(e+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),t.timezoneOffset="+"===i[0]?n:-n)}]};S.dd=S.d,S.dddd=S.ddd,S.DD=S.D,S.mm=S.m,S.hh=S.H=S.HH=S.h,S.MM=S.M,S.ss=S.s,S.A=S.a,u.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"},u.format=function(t,e,n){var i=n||u.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");var r=[];return e=(e=u.masks[e]||e||u.masks.default).replace(g,function(t,e){return r.push(e),"??"}),(e=e.replace(c,function(e){return e in _?_[e](t,i):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return r.shift()})},u.parse=function(t,e,n){var i=n||u.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var r=!0,a={};if(e.replace(c,function(e){if(S[e]){var n=S[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,i),t=t.substr(o+e.length),e}):r=!1}return S[e]?"":e.slice(1,e.length-1)}),!r)return!1;var o=new Date;!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0);var s;return null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,s=new Date(Date.UTC(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):s=new Date(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),s},void 0!==t&&t.exports?t.exports=u:void 0!==(i=function(){return u}.call(e,n,e,t))&&(t.exports=i)}()},function(t,e,n){var i=n(16);t.exports=function(t){return i(t,"Date")}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="arc",this.start=[],this.end=[],this.style={stroke:"#999",lineWidth:1}},n.render=function(t,e){var n=this,i=n.parsePoint(t,n.start),a=n.parsePoint(t,n.end);if(i&&a){var o=t.center,s=Math.sqrt((i.x-o.x)*(i.x-o.x)+(i.y-o.y)*(i.y-o.y)),u=Math.atan2(i.y-o.y,i.x-o.x),c=Math.atan2(a.y-o.y,a.x-o.x),l=e.addShape("arc",{className:"guide-arc",attrs:r.mix({x:o.x,y:o.y,r:s,startAngle:u,endAngle:c},n.style)});return n.element=l,l}},e}(a);a.Arc=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t,e,n,i){var r=[];return"left"===t&&"top"===e?(r[0]=0,r[1]=0):"right"===t&&"top"===e?(r[0]=-n,r[1]=0):"left"===t&&"bottom"===e?(r[0]=0,r[1]=Math.floor(-i)):"right"===t&&"bottom"===e?(r[0]=Math.floor(-n),r[1]=Math.floor(-i)):"right"===t&&"middle"===e?(r[0]=Math.floor(-n),r[1]=Math.floor(-i/2)):"left"===t&&"middle"===e?(r[0]=0,r[1]=Math.floor(-i/2)):"center"===t&&"bottom"===e?(r[0]=Math.floor(-n/2),r[1]=Math.floor(-i)):"center"===t&&"top"===e?(r[0]=Math.floor(-n/2),r[1]=0):(r[0]=Math.floor(-n/2),r[1]=Math.floor(-i/2)),r}function a(t,e){for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function o(t){var e=document.createElement("div");return t=t.replace(/(^\s*)|(\s*$)/g,""),e.innerHTML=""+t,e.childNodes[0]}var s=n(0),u=n(11),c=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="html",this.position=null,this.alignX="center",this.alignY="middle",this.offsetX=null,this.offsetY=null,this.html=null},n.render=function(t,e){var n=this,i=n.parsePoint(t,n.position);if(i){var u=o(n.html);u=a(u,{position:"absolute",top:Math.floor(i.y)+"px",left:Math.floor(i.x)+"px",visibility:"hidden"});var c=e.get("canvas").get("el"),l=c.parentNode;l=a(l,{position:"relative"});var h=o('<div class="guideWapper" style="position: absolute;top: 0; left: 0;"></div>');l.appendChild(h),h.appendChild(u);var f=c.offsetTop,p=c.offsetLeft,g=n.alignX,d=n.alignY,v=n.offsetX,y=n.offsetY,x=r(g,d,s.getWidth(u),s.getHeight(u));i.x=i.x+x[0]+p,i.y=i.y+x[1]+f,v&&(i.x+=v),y&&(i.y+=y),a(u,{top:Math.floor(i.y)+"px",left:Math.floor(i.x)+"px",visibility:"visible"}),n.element=h}},n.remove=function(){var t=this.element;t&&t.parentNode&&t.parentNode.removeChild(t)},e}(u);u.Html=c,t.exports=c},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="line",this.start=[],this.end=[],this.style={stroke:"#000",lineWidth:1}},n.render=function(t,e){var n=[];if(n[0]=this.parsePoint(t,this.start),n[1]=this.parsePoint(t,this.end),n[0]&&n[1]){var i=e.addShape("Line",{className:"guide-line",attrs:r.mix({x1:n[0].x,y1:n[0].y,x2:n[1].x,y2:n[1].y},this.style)});return this.element=i,i}},e}(a);a.Line=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="rect",this.start=[],this.end=[],this.style={fill:"#CCD7EB",opacity:.4}},n.render=function(t,e){var n=this.parsePoint(t,this.start),i=this.parsePoint(t,this.end);if(n&&i){var a=e.addShape("rect",{className:"guide-rect",attrs:r.mix({x:Math.min(n.x,i.x),y:Math.min(n.y,i.y),width:Math.abs(i.x-n.x),height:Math.abs(n.y-i.y)},this.style)});return this.element=a,a}},e}(a);a.Rect=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="text",this.position=null,this.content=null,this.style={fill:"#000"},this.offsetX=0,this.offsetY=0},n.render=function(t,e){var n=this.position,i=this.parsePoint(t,n);if(i){var a=this.content,o=this.style,s=this.offsetX,u=this.offsetY;s&&(i.x+=s),u&&(i.y+=u);var c=e.addShape("text",{className:"guide-text",attrs:r.mix({x:i.x,y:i.y,text:a},o)});return this.element=c,c}},e}(a);a.Text=o,t.exports=o},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(0),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="tag",this.position=null,this.content=null,this.direct="tl",this.autoAdjust=!0,this.offsetX=0,this.offsetY=0,this.side=4,this.background={padding:5,radius:2,fill:"#1890FF"},this.textStyle={fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},this.withPoint=!0,this.pointStyle={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},n._getDirect=function(t,e,n,i){var r=this.direct,a=this.side,o=t.get("canvas"),s=o.get("width"),u=o.get("height"),c=e.x,l=e.y,h=r[0],f=r[1];"t"===h&&l-a-i<0?h="b":"b"===h&&l+a+i>u&&(h="t");var p="c"===h?a:0;return"l"===f&&c-p-n<0?f="r":"r"===f&&c+p+n>s?f="l":"c"===f&&(n/2+c+p>s?f="l":c-n/2-p<0&&(f="r")),r=h+f},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(n){var i=this.content,a=this.background,o=this.textStyle,s=[],u=e.addGroup({className:"guide-tag"});if(this.withPoint){var c=u.addShape("Circle",{className:"guide-tag-point",attrs:r.mix({x:n.x,y:n.y},this.pointStyle)});s.push(c)}var l=u.addGroup(),h=l.addShape("text",{className:"guide-tag-text",zIndex:1,attrs:r.mix({x:0,y:0,text:i},o)});s.push(h);var f=h.getBBox(),p=r.parsePadding(a.padding),g=f.width+p[1]+p[3],d=f.height+p[0]+p[2],v=f.minY-p[0],y=f.minX-p[3],x=l.addShape("rect",{className:"guide-tag-bg",zIndex:-1,attrs:r.mix({x:y,y:v,width:g,height:d},a)});s.push(x);var m,_=this.autoAdjust?this._getDirect(e,n,g,d):this.direct,S=this.side,b=n.x+this.offsetX,P=n.y+this.offsetY,w=r.parsePadding(a.radius);"tl"===_?(m=[{x:g+y-S-1,y:d+v-1},{x:g+y,y:d+v-1},{x:g+y,y:d+S+v}],w[2]=0,b-=g,P=P-S-d):"cl"===_?(m=[{x:g+y-1,y:(d-S)/2+v-1},{x:g+y-1,y:(d+S)/2+v+1},{x:g+S+y,y:d/2+v}],b=b-g-S,P-=d/2):"bl"===_?(m=[{x:g+y,y:-S+v},{x:g+y-S-1,y:v+1},{x:g+y,y:v+1}],w[1]=0,b-=g,P+=S):"bc"===_?(m=[{x:g/2+y,y:-S+v},{x:(g-S)/2+y-1,y:v+1},{x:(g+S)/2+y+1,y:v+1}],b-=g/2,P+=S):"br"===_?(m=[{x:y,y:v-S},{x:y,y:v+1},{x:y+S+1,y:v+1}],w[0]=0,P+=S):"cr"===_?(m=[{x:y-S,y:d/2+v},{x:y+1,y:(d-S)/2+v-1},{x:y+1,y:(d+S)/2+v+1}],b+=S,P-=d/2):"tr"===_?(m=[{x:y,y:d+S+v},{x:y,y:d+v-1},{x:S+y+1,y:d+v-1}],w[3]=0,P=P-d-S):"tc"===_&&(m=[{x:(g-S)/2+y-1,y:d+v-1},{x:(g+S)/2+y+1,y:d+v-1},{x:g/2+y,y:d+S+v}],b-=g/2,P=P-d-S);var C=l.addShape("Polygon",{className:"guide-tag-side",zIndex:0,attrs:{points:m,fill:a.fill}});return s.push(C),x.attr("radius",w),l.moveTo(b-y,P-v),l.sort(),this.element=u,s}},e}(a);a.Tag=o,t.exports=o},function(t,e,n){function i(t){var e=t.getAttr("color");if(e){var n=e.getScale(e.type);if(n.isLinear)return n}var i=t.getXScale(),r=t.getYScale();return r||i}function r(t,e){var n,r,a=t._getGroupScales();if(a.length&&l.each(a,function(t){return r=t,!1}),r){var o=r.field;n=r.getText(e[o])}else{var s=i(t);n=s.alias||s.field}return n}function a(t,e){var n=i(t);return n.getText(e[n.field])}function o(t,e){var n=t.getAttr("position").getFields()[0],i=t.get("scales")[n];return i.getText(e[i.field])}function s(t,e){var n=-1;return l.each(t,function(t,i){if(t.title===e.title&&t.name===e.name&&t.value===e.value&&t.color===e.color)return n=i,!1}),n}function u(t){var e=[];return l.each(t,function(t){var n=s(e,t);-1===n?e.push(t):e[n]=t}),e}function c(t,e){return JSON.stringify(t)===JSON.stringify(e)}var l=n(0),h=n(1),f=n(123),p=n(28);h.tooltip=l.deepMix({triggerOn:["touchstart","touchmove"],alwaysShow:!1,showTitle:!1,showCrosshairs:!1,crosshairsStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},showTooltipMarker:!0,background:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},titleStyle:{fontSize:12,fill:"#fff",textAlign:"start",textBaseline:"top"},nameStyle:{fontSize:12,fill:"rgba(255, 255, 255, 0.65)",textAlign:"start",textBaseline:"middle"},valueStyle:{fontSize:12,fill:"#fff",textAlign:"start",textBaseline:"middle"},showItemMarker:!0,itemMarkerStyle:{radius:3,symbol:"circle",lineWidth:1,stroke:"#fff"},layout:"horizontal",snap:!1},h.tooltip||{});var g=function(){function t(t){this.enable=!0,this.cfg={},this.tooltip=null,this.chart=null,this.timeStamp=0,l.mix(this,t);var e=this.chart;this.canvasDom=e.get("canvas").get("el")}var e=t.prototype;return e._setCrosshairsCfg=function(){var t=this.chart,e=l.mix({},h.tooltip),n=t.get("geoms"),i=[];l.each(n,function(t){var e=t.get("type");-1===i.indexOf(e)&&i.push(e)});var r=t.get("coord").type;return!n.length||"cartesian"!==r&&"rect"!==r||1===i.length&&-1!==["line","area","path","point"].indexOf(i[0])&&l.mix(e,{showCrosshairs:!0}),e},e._getMaxLength=function(t){void 0===t&&(t={});var e=t,n=e.layout,i=e.plotRange;return"horizontal"===n?i.br.x-i.bl.x:i.bl.y-i.tr.y},e.render=function(){var t=this;if(!t.tooltip){var e=t.chart,n=e.get("canvas"),i=e.get("frontPlot").addGroup({className:"tooltipContainer",zIndex:10}),r=e.get("backPlot").addGroup({className:"tooltipContainer"}),a=e.get("plotRange"),o=e.get("coord"),s=t._setCrosshairsCfg(),u=t.cfg;(u=l.deepMix({plotRange:a,frontPlot:i,backPlot:r,canvas:n,fixed:o.transposed||o.isPolar},s,u)).maxLength=t._getMaxLength(u),this.cfg=u;var c=new f(u);t.tooltip=c,t.bindEvents()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._lastActive=null,this.unBindEvents()},e._getTooltipMarkerStyle=function(t){void 0===t&&(t={});var e=t,n=e.type,i=e.items,r=this.cfg;if("rect"===n){var a,o,s,u,c=this.chart,h=c.get("plotRange"),f=h.tl,p=h.br,g=c.get("coord"),d=i[0],v=i[i.length-1],y=d.width;g.transposed?(a=f.x,o=v.y-.75*y,s=p.x-f.x,u=d.y-v.y+1.5*y):(a=d.x-.75*y,o=f.y,s=v.x-d.x+1.5*y,u=p.y-f.y),t.style=l.mix({x:a,y:o,width:s,height:u,fill:"#CCD6EC",opacity:.3},r.tooltipMarkerStyle)}else t.style=l.mix({radius:4,fill:"#fff",lineWidth:2},r.tooltipMarkerStyle);return t},e._setTooltip=function(t,e,n){void 0===n&&(n={});var i=this._lastActive,r=this.tooltip,a=this.cfg;e=u(e);var o=this.chart,s=o.get("coord"),h=o.getYScales()[0],f=a.snap;if(!1===f&&h.isLinear){var g,d,v=s.invertPoint(t),y=o.get("plotRange");p.isPointInPlot(t,y)&&(s.transposed?(g=h.invert(v.x),d=t.x,r.setXTipContent(g),r.setXTipPosition(d),r.setYCrosshairPosition(d)):(g=h.invert(v.y),d=t.y,r.setYTipContent(g),r.setYTipPosition(d),r.setXCrosshairPosition(d)))}if(a.onShow&&a.onShow({x:t.x,y:t.y,tooltip:r,items:e,tooltipMarkerCfg:n}),c(i,e))!1===f&&(l.directionEnabled(a.crosshairsType,"y")||a.showYTip)&&this.chart.get("canvas").draw();else{this._lastActive=e;var x=a.onChange;x&&x({x:t.x,y:t.y,tooltip:r,items:e,tooltipMarkerCfg:n});var m=e[0],_=m.title||m.name,S=m.x;if(e.length>1&&(S=(e[0].x+e[e.length-1].x)/2),r.setContent(_,e,s.transposed),r.setPosition(e,t),s.transposed){var b=m.y;e.length>1&&(b=(e[0].y+e[e.length-1].y)/2),r.setYTipContent(_),r.setYTipPosition(b),r.setXCrosshairPosition(b),f&&(r.setXTipContent(m.value),r.setXTipPosition(S),r.setYCrosshairPosition(S))}else r.setXTipContent(_),r.setXTipPosition(S),r.setYCrosshairPosition(S),f&&(r.setYTipContent(m.value),r.setYTipPosition(m.y),r.setXCrosshairPosition(m.y));var P=n.items;a.showTooltipMarker&&P.length?(n=this._getTooltipMarkerStyle(n),r.setMarkers(n)):r.clearMarkers(),r.show()}},e.showTooltip=function(t){var e,n,i=this,s=i.chart,u=[],c=[],f=i.cfg;f.showItemMarker&&(n=f.itemMarkerStyle);var p=s.get("geoms"),g=s.get("coord");if(l.each(p,function(i){if(i.get("visible")){var s=i.get("type"),f=i.getSnapRecords(t);l.each(f,function(t){if(t.x&&t.y){var f=t.x,p=t.y,d=t._origin,v=t.color,y={x:f,y:l.isArray(p)?p[1]:p,color:v||h.defaultColor,origin:d,name:r(i,d),value:a(i,d),title:o(i,d)};n&&(y.marker=l.mix({fill:v||h.defaultColor},n)),c.push(y),-1!==["line","area","path"].indexOf(s)?(e="circle",u.push(y)):"interval"!==s||"cartesian"!==g.type&&"rect"!==g.type||(e="rect",y.width=i.getSize(t._origin),u.push(y))}})}}),c.length){var d={items:u,type:e};i._setTooltip(t,c,d)}else i.hideTooltip()},e.hideTooltip=function(){var t=this.cfg;this._lastActive=null;var e=this.tooltip;e&&(e.hide(),t.onHide&&t.onHide({tooltip:e}),this.chart.get("canvas").draw())},e.handleShowEvent=function(t){var e=this.chart;if(this.enable&&!e.get("_closeTooltip")){var n=e.get("plotRange"),i=l.createEvent(t,e);if(p.isPointInPlot(i,n)||this.cfg.alwaysShow){var r=this.timeStamp,a=+new Date;a-r>16&&(this.showTooltip(i),this.timeStamp=a)}else this.hideTooltip()}},e.handleHideEvent=function(){var t=this.chart;this.enable&&!t.get("_closeTooltip")&&this.hideTooltip()},e.handleDocEvent=function(t){var e=this.chart;if(this.enable&&!e.get("_closeTooltip")){var n=this.canvasDom;t.target!==n&&this.hideTooltip()}},e._handleEvent=function(t,e,n){var i=this.canvasDom;l.each([].concat(t),function(t){"bind"===n?l.addEventListener(i,t,e):l.removeEventListener(i,t,e)})},e.bindEvents=function(){var t=this.cfg,e=t.triggerOn,n=t.triggerOff,i=t.alwaysShow,r=l.wrapBehavior(this,"handleShowEvent"),a=l.wrapBehavior(this,"handleHideEvent");if(e&&this._handleEvent(e,r,"bind"),n&&this._handleEvent(n,a,"bind"),!i){var o=l.wrapBehavior(this,"handleDocEvent");l.isBrowser&&l.addEventListener(document,"touchstart",o)}},e.unBindEvents=function(){var t=this.cfg,e=t.triggerOn,n=t.triggerOff,i=t.alwaysShow,r=l.getWrapBehavior(this,"handleShowEvent"),a=l.getWrapBehavior(this,"handleHideEvent");if(e&&this._handleEvent(e,r,"unBind"),n&&this._handleEvent(n,a,"unBind"),!i){var o=l.getWrapBehavior(this,"handleDocEvent");l.isBrowser&&l.removeEventListener(document,"touchstart",o)}},t}();t.exports={init:function(t){var e=new g({chart:t});t.set("tooltipController",e),t.tooltip=function(t,n){return l.isObject(t)&&(n=t,t=!0),e.enable=t,n&&(e.cfg=n),this}},afterGeomDraw:function(t){var e=t.get("tooltipController");e.render(),t.showTooltip=function(t){return e.showTooltip(t),this},t.hideTooltip=function(){return e.hideTooltip(),this}},clearInner:function(t){t.get("tooltipController").clear()}}},function(t,e,n){var i=n(0),r=n(97),a=n(98),o=n(124),s=function(){function t(t){i.deepMix(this,this.getDefaultCfg(),t);var e=this.frontPlot;if(!this.custom){var n=new a(i.mix({parent:e,zIndex:3},t));this.container=n;var r=this.fixed,s=this.background;r||(this.tooltipArrow=e.addShape("Polygon",{className:"tooltip-arrow",visible:!1,zIndex:2,attrs:i.mix({points:[]},s)}))}if(this.showXTip){var u=this.xTipBackground,c=new o({className:"xTip",background:u,visible:!1});e.add(c.container),this.xTipBox=c}if(this.showYTip){var l=this.yTipBackground,h=new o({className:"yTip",background:l,visible:!1});e.add(h.container),this.yTipBox=h}this.showCrosshairs&&this._renderCrosshairs(),e.sort()}var e=t.prototype;return e.getDefaultCfg=function(){return{showCrosshairs:!1,crosshairsStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},crosshairsType:"y",showXTip:!1,showYTip:!1,xTip:null,xTipBackground:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},yTip:null,yTipBackground:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},background:null,layout:"horizontal",offsetX:0,offsetY:0}},e.setContent=function(t,e){if(this.title=t,this.items=e,!this.custom){var n=this.container;n.setTitle(t),n.setItems(e)}},e.setYTipContent=function(t){var e=this.yTip;t=i.isFunction(e)?e(t):i.mix({text:t},e),this.yTipBox&&this.yTipBox.updateContent(t)},e.setYTipPosition=function(t){var e=this.plotRange,n=this.crosshairsShapeX;if(this.showYTip){var i=this.yTipBox,r=i.getHeight(),a=i.getWidth(),o=e.tl.x-a,s=t-r/2;s<=e.tl.y&&(s=e.tl.y),s+r>=e.br.y&&(s=e.br.y-r),o<0&&(o=e.tl.x,n&&n.attr("x1",e.tl.x+a)),i.updatePosition(o,s)}},e.setXTipContent=function(t){var e=this.xTip;t=i.isFunction(e)?e(t):i.mix({text:t},e),this.xTipBox&&this.xTipBox.updateContent(t)},e.setXTipPosition=function(t){var e=this.showXTip,n=this.canvas,i=this.plotRange,r=this.xTipBox,a=this.crosshairsShapeY;if(e){var o=n.get("height"),s=r.getWidth(),u=r.getHeight(),c=t-s/2,l=i.br.y;c<=i.tl.x&&(c=i.tl.x),c+s>=i.tr.x&&(c=i.tr.x-s),o-l<u&&(l-=u),r.updatePosition(c,l),a&&a.attr("y1",l)}},e.setXCrosshairPosition=function(t){this.crosshairsShapeX&&this.crosshairsShapeX.moveTo(0,t)},e.setYCrosshairPosition=function(t){this.crosshairsShapeY&&this.crosshairsShapeY.moveTo(t,0)},e.setPosition=function(t){var e=this.container,n=this.plotRange,r=this.offsetX,a=this.offsetY,o=this.fixed,s=this.tooltipArrow;if(e){var u=e.container.getBBox(),c=u.minX,l=u.minY,h=u.width,f=u.height,p=n.tl,g=n.tr,d=0,v=p.y-f-4+a;if(o)d=(p.x+g.x)/2-h/2+r;else{var y;if(y=t.length>1?(t[0].x+t[t.length-1].x)/2:t[0].x,(d=y-h/2+r)<p.x&&(d=p.x),d+h>g.x&&(d=g.x-h),s){s.attr("points",[{x:y-3,y:p.y-4+a},{x:y+3,y:p.y-4+a},{x:y,y:p.y+a}]);var x=e.backShape,m=i.parsePadding(x.attr("radius"));y===p.x?(m[3]=0,s.attr("points",[{x:p.x,y:p.y+a},{x:p.x,y:p.y-4+a},{x:p.x+4,y:p.y-4+a}])):y===g.x&&(m[2]=0,s.attr("points",[{x:g.x,y:p.y+a},{x:g.x-4,y:p.y-4+a},{x:g.x,y:p.y-4+a}])),x.attr("radius",m)}}e.moveTo(d-c,v-l)}},e.setMarkers=function(t){void 0===t&&(t={});var e=this,n=t,a=n.items,o=n.style,s=n.type,u=e._getMarkerGroup(s);if("circle"===s)for(var c=0,l=a.length;c<l;c++){var h=a[c],f=new r({className:"tooltip-circle-marker",attrs:i.mix({x:h.x,y:h.y,stroke:h.color},o)});u.add(f)}else u.addShape("rect",{className:"tooltip-rect-marker",attrs:o})},e.clearMarkers=function(){var t=this.markerGroup;t&&t.clear()},e.show=function(){var t=this.crosshairsShapeX,e=this.crosshairsShapeY,n=this.markerGroup,i=this.container,r=this.tooltipArrow,a=this.xTipBox,o=this.yTipBox,s=this.canvas;t&&t.show(),e&&e.show(),n&&n.show(),i&&i.show(),r&&r.show(),a&&a.show(),o&&o.show(),s.draw()},e.hide=function(){var t=this.crosshairsShapeX,e=this.crosshairsShapeY,n=this.markerGroup,i=this.container,r=this.tooltipArrow,a=this.xTipBox,o=this.yTipBox;t&&t.hide(),e&&e.hide(),n&&n.hide(),i&&i.hide(),r&&r.hide(),a&&a.hide(),o&&o.hide()},e.destroy=function(){var t=this.crosshairsShapeX,e=this.crosshairsShapeY,n=this.markerGroup,i=this.container,r=this.tooltipArrow,a=this.xTipBox,o=this.yTipBox;t&&t.remove(!0),e&&e.remove(!0),n&&n.remove(!0),r&&r.remove(!0),i&&i.clear(),a&&a.clear(),o&&o.clear(),this.destroyed=!0},e._getMarkerGroup=function(t){var e=this.markerGroup;return e?e.clear():("circle"===t?(e=this.frontPlot.addGroup({zIndex:1}),this.frontPlot.sort()):e=this.backPlot.addGroup(),this.markerGroup=e),e},e._renderCrosshairs=function(){var t=this.crosshairsType,e=this.crosshairsStyle,n=this.frontPlot,r=this.plotRange,a=r.tl,o=r.br;i.directionEnabled(t,"x")&&(this.crosshairsShapeX=n.addShape("Line",{className:"tooltip-crosshairs-x",zIndex:0,visible:!1,attrs:i.mix({x1:a.x,y1:0,x2:o.x,y2:0},e)})),i.directionEnabled(t,"y")&&(this.crosshairsShapeY=n.addShape("Line",{className:"tooltip-crosshairs-y",zIndex:0,visible:!1,attrs:i.mix({x1:0,y1:o.y,x2:0,y2:a.y},e)}))},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(5).Group,a=function(){function t(t){i.deepMix(this,this.getDefaultCfg(),t),this._init();var e=this.content,n=this.x,r=this.y;i.isNil(e)||this.updateContent(e),this.updatePosition(n,r)}var e=t.prototype;return e.getDefaultCfg=function(){return{x:0,y:0,content:"",textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},background:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},width:0,height:0,className:""}},e._init=function(){var t=this.content,e=this.textStyle,n=this.background,a=this.className,o=this.visible,s=new r({className:a,zIndex:0,visible:o}),u=s.addShape("Text",{className:a+"-text",zIndex:1,attrs:i.mix({text:t,x:0,y:0},e)}),c=s.addShape("Rect",{className:a+"-bg",zIndex:-1,attrs:i.mix({x:0,y:0,width:0,height:0},n)});s.sort(),this.container=s,this.textShape=u,this.backgroundShape=c},e._getBBox=function(){var t=this.textShape,e=this.background,n=t.getBBox(),r=i.parsePadding(e.padding),a=n.width+r[1]+r[3],o=n.height+r[0]+r[2];return{x:n.minX-r[3],y:n.minY-r[0],width:a,height:o}},e.updateContent=function(t){var e=this.textShape,n=this.backgroundShape;if(!i.isNil(t)){i.isObject(t)||(t={text:t}),e.attr(t);var r=this._getBBox(),a=r.x,o=r.y,s=r.width,u=r.height,c=this.width||s,l=this.height||u;n.attr({x:a,y:o,width:c,height:l}),this._width=c,this._height=l,this.content=t.text}},e.updatePosition=function(t,e){var n=this.container,i=this._getBBox(),r=i.x,a=i.y;n.moveTo(t-r,e-a),this.x=t-r,this.y=e-a},e.getWidth=function(){return this._width},e.getHeight=function(){return this._height},e.show=function(){this.container.show()},e.hide=function(){this.container.hide()},e.clear=function(){var t=this.container;t.clear(),t.remove(!0),this.container=null,this.textShape=null,this.backgroundShape=null},t}();t.exports=a},function(t,e,n){var i=n(0),r=n(11),a=n(1);a.guide=i.deepMix({line:{style:{stroke:"#a3a3a3",lineWidth:1},top:!0},text:{style:{fill:"#787878",textAlign:"center",textBaseline:"middle"},offsetX:0,offsetY:0,top:!0},rect:{style:{fill:"#fafafa"},top:!1},arc:{style:{stroke:"#a3a3a3"},top:!0},html:{offsetX:0,offsetY:0,alignX:"center",alignY:"middle"},tag:{top:!0,offsetX:0,offsetY:0,side:4,background:{padding:5,radius:2,fill:"#1890FF"},textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"}},point:{top:!0,offsetX:0,offsetY:0,style:{fill:"#fff",r:3,lineWidth:2,stroke:"#1890ff"}}},a.guide||{});var o=function(){function t(t){this.guides=[],this.xScale=null,this.yScales=null,this.guideShapes=[],i.mix(this,t)}var e=t.prototype;return e._toString=function(t){return i.isFunction(t)&&(t=t(this.xScale,this.yScales)),t=t.toString()},e._getId=function(t,e){var n=e.id;if(!n){var i=e.type;n="arc"===i||"line"===i||"rect"===i?this._toString(e.start)+"-"+this._toString(e.end):this._toString(e.position)}return n},e.paint=function(t){var e=this,n=e.chart,r=e.guides,a=e.xScale,o=e.yScales,s=[];i.each(r,function(i,r){i.xScale=a,i.yScales=o;var u;"regionFilter"===i.type?i.chart=n:u=i.top?e.frontPlot:e.backPlot,i.coord=t,i.container=u,i.canvas=n.get("canvas");var c=i.render(t,u);if(c){var l=e._getId(c,i);[].concat(c).forEach(function(t){t._id=t.get("className")+"-"+l,t.set("index",r),s.push(t)})}}),e.guideShapes=s},e.clear=function(){return this.reset(),this.guides=[],this},e.reset=function(){var t=this.guides;i.each(t,function(t){t.remove()})},e._createGuide=function(t,e){var n=i.upperFirst(t),o=new r[n](i.deepMix({},a.guide[t],e));return this.guides.push(o),o},e.line=function(t){return void 0===t&&(t={}),this._createGuide("line",t)},e.text=function(t){return void 0===t&&(t={}),this._createGuide("text",t)},e.arc=function(t){return void 0===t&&(t={}),this._createGuide("arc",t)},e.html=function(t){return void 0===t&&(t={}),this._createGuide("html",t)},e.rect=function(t){return void 0===t&&(t={}),this._createGuide("rect",t)},e.tag=function(t){return void 0===t&&(t={}),this._createGuide("tag",t)},e.point=function(t){return void 0===t&&(t={}),this._createGuide("point",t)},e.regionFilter=function(t){return void 0===t&&(t={}),this._createGuide("regionFilter",t)},t}();t.exports={init:function(t){var e=new o({frontPlot:t.get("frontPlot").addGroup({zIndex:20,className:"guideContainer"}),backPlot:t.get("backPlot").addGroup({className:"guideContainer"})});t.set("guideController",e),t.guide=function(){return e}},afterGeomDraw:function(t){var e=t.get("guideController");if(e.guides.length){var n=t.getXScale(),i=t.getYScales(),r=t.get("coord");e.xScale=n,e.yScales=i,e.chart=t,e.paint(r)}},clear:function(t){t.get("guideController").clear()},repaint:function(t){t.get("guideController").reset()}}},function(t,e,n){function i(t,e){var n=0;switch(e=r.parsePadding(e),t){case"top":n=e[0];break;case"right":n=e[1];break;case"bottom":n=e[2];break;case"left":n=e[3]}return n}var r=n(0),a=n(98),o=n(1),s={itemMarginBottom:12,itemGap:10,showTitle:!1,titleStyle:{fontSize:12,fill:"#808080",textAlign:"start",textBaseline:"top"},nameStyle:{fill:"#808080",fontSize:12,textAlign:"start",textBaseline:"middle"},valueStyle:{fill:"#000000",fontSize:12,textAlign:"start",textBaseline:"middle"},unCheckStyle:{fill:"#bfbfbf"},itemWidth:"auto",wordSpace:6,selectedMode:"multiple"};o.legend=r.deepMix({common:s,right:r.mix({position:"right",layout:"vertical"},s),left:r.mix({position:"left",layout:"vertical"},s),top:r.mix({position:"top",layout:"horizontal"},s),bottom:r.mix({position:"bottom",layout:"horizontal"},s)},o.legend||{});var u=function(){function t(t){this.legendCfg={},this.enable=!0,this.position="top",r.mix(this,t);var e=this.chart;this.canvasDom=e.get("canvas").get("el"),this.clear()}var e=t.prototype;return e.addLegend=function(t,e,n){var i=this,r=i.legendCfg,a=t.field,o=r[a];if(!1===o)return null;if(o&&o.custom)i.addCustomLegend(a);else{var s=r.position||i.position;o&&o.position&&(s=o.position),t.isCategory&&i._addCategoryLegend(t,e,s,n)}},e.addCustomLegend=function(t){var e=this,n=e.legendCfg;t&&n[t]&&(n=n[t]);var i=n.position||e.position,s=e.legends;s[i]=s[i]||[];var u=n.items;if(!u)return null;var c=e.container;r.each(u,function(t){r.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||3:t.marker={symbol:t.marker||"circle",fill:t.fill,radius:3},t.checked=!!r.isNil(t.checked)||t.checked,t.name=t.name||t.value});var l=new a(r.deepMix({},o.legend[i],n,{maxLength:e._getMaxLength(i),items:u,parent:c}));s[i].push(l)},e.clear=function(){var t=this.legends;r.each(t,function(t){r.each(t,function(t){t.clear()})}),this.legends={},this.unBindEvents()},e._isFiltered=function(t,e,n){var i=!1;return r.each(e,function(e){if(i=i||t.getText(e)===t.getText(n))return!1}),i},e._getMaxLength=function(t){var e=this.chart,n=r.parsePadding(e.get("appendPadding"));return"right"===t||"left"===t?e.get("height")-(n[0]+n[2]):e.get("width")-(n[1]+n[3])},e._addCategoryLegend=function(t,e,n,i){var s=this,u=s.legendCfg,c=s.legends,l=s.container,h=s.chart,f=t.field;c[n]=c[n]||[];var p="circle";u[f]&&u[f].marker?p=u[f].marker:u.marker&&(p=u.marker),r.each(e,function(e){r.isPlainObject(p)?r.mix(e.marker,p):e.marker.symbol=p,i&&(e.checked=s._isFiltered(t,i,e.dataValue))}),h.get("legendItems")[f]=e;var g=r.deepMix({},o.legend[n],u[f]||u,{maxLength:s._getMaxLength(n),items:e,field:f,filterVals:i,parent:l});g.showTitle&&r.deepMix(g,{title:t.alias||t.field});var d=new a(g);return c[n].push(d),d},e._alignLegend=function(t,e,n){var i=this,a=i.plotRange,o=a.tl,s=a.bl,u=i.chart,c=t.offsetX||0,l=t.offsetY||0,h=u.get("width"),f=u.get("height"),p=r.parsePadding(u.get("appendPadding")),g=t.getHeight(),d=t.getWidth(),v=0,y=0;if("left"===n||"right"===n){var x=t.verticalAlign||"middle",m=Math.abs(o.y-s.y);v="left"===n?p[3]:h-d-p[1],y=(m-g)/2+o.y,"top"===x?y=o.y:"bottom"===x&&(y=s.y-g),e&&(y=e.get("y")-g-12)}else{var _=t.align||"left";if(v=p[3],"center"===_?v=h/2-d/2:"right"===_&&(v=h-(d+p[1])),y="top"===n?p[0]+Math.abs(t.container.getBBox().minY):f-g,e){var S=e.getWidth();v=e.x+S+12}}"bottom"===n&&l>0&&(l=0),"right"===n&&c>0&&(c=0),t.moveTo(v+c,y+l)},e.alignLegends=function(){var t=this,e=t.legends;return r.each(e,function(e,n){r.each(e,function(i,r){var a=e[r-1];t._alignLegend(i,a,n)})}),t},e.handleEvent=function(t){var e=this,n=e.chart,i=r.createEvent(t,n),a=function(t,n){var i=null,a=e.legends;return r.each(a,function(e){r.each(e,function(e){var a=e.itemsGroup,o=e.legendHitBoxes,s=a.get("children");if(s.length){var u=e.x,c=e.y;r.each(o,function(r,a){if(t>=r.x+u&&t<=r.x+r.width+u&&n>=r.y+c&&n<=r.height+r.y+c)return i={clickedItem:s[a],clickedLegend:e},!1})}})}),i}(i.x,i.y);if(a&&!1!==a.clickedLegend.clickable){var o=a.clickedItem,s=a.clickedLegend;if(s.onClick)t.clickedItem=o,s.onClick(t);else if(!s.custom){var u=o.get("checked"),c=o.get("dataValue"),l=s.filterVals,h=s.field;"single"===s.selectedMode?n.filter(h,function(t){return t===c}):(u?r.Array.remove(l,c):l.push(c),n.filter(h,function(t){return-1!==l.indexOf(t)})),n.repaint()}}},e.bindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart",e=r.wrapBehavior(this,"handleEvent");r.addEventListener(this.canvasDom,t,e)},e.unBindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart",e=r.getWrapBehavior(this,"handleEvent");r.removeEventListener(this.canvasDom,t,e)},t}();t.exports={init:function(t){var e=new u({container:t.get("backPlot"),plotRange:t.get("plotRange"),chart:t});t.set("legendController",e),t.legend=function(t,n){var i=e.legendCfg;return e.enable=!0,r.isBoolean(t)?(e.enable=t,i=n||{}):r.isObject(t)?i=t:i[t]=n,e.legendCfg=i,this}},beforeGeomDraw:function(t){var e=t.get("legendController");if(!e.enable)return null;var n=e.legendCfg;if(n&&n.custom)e.addCustomLegend();else{var a=t.getLegendItems(),o=t.get("scales"),s=t.get("filters");r.each(a,function(t,n){var i,r=o[n],a=r.values;i=s&&s[n]?a.filter(s[n]):a.slice(0),e.addLegend(r,t,i)})}n&&!1!==n.clickable&&e.bindEvents();var u=e.legends,c={top:0,right:0,bottom:0,left:0};r.each(u,function(e,n){var a=0;r.each(e,function(t){var e=t.getWidth(),i=t.getHeight();"top"===n||"bottom"===n?(a=Math.max(a,i),t.offsetY>0&&(a+=t.offsetY)):(a=Math.max(a,e),t.offsetX>0&&(a+=t.offsetX))}),c[n]=a+i(n,t.get("appendPadding"))}),t.set("legendRange",c)},afterGeomDraw:function(t){t.get("legendController").alignLegends()},clearInner:function(t){t.get("legendController").clear(),t.set("legendRange",null)}}},function(t,e,n){function i(t,e){var n={};for(var i in e)f.isNumber(t[i])&&t[i]!==e[i]?n[i]=e[i]:f.isArray(t[i])&&JSON.stringify(t[i])!==JSON.stringify(e[i])&&(n[i]=e[i]);return n}function r(t,e,n){var i,r=t.get("type"),a="geom"+n+"-"+r,o=t.getXScale(),s=t.getYScale(),u=o.field||"x",c=s.field||"y",l=e[c];i=o.isIdentity?o.value:e[u],a+="interval"===r||"schema"===r?"-"+i:"line"===r||"area"===r||"path"===r?"-"+r:o.isCategory?"-"+i:"-"+i+"-"+l;var h=t._getGroupScales();return f.each(h,function(t){var n=t.field;"identity"!==t.type&&(a+="-"+e[n])}),a}function a(t,e,n){var i=[];return f.each(t,function(t,a){var o=t.get("container").get("children"),s=t.get("type"),u=f.isNil(t.get("animateCfg"))?l(s,e):t.get("animateCfg");!1!==u&&f.each(o,function(e,o){e.get("className")===s&&(e._id=r(t,e.get("origin")._origin,a),e.set("coord",n),e.set("animateCfg",u),e.set("index",o),i.push(e))}),t.set("shapes",o)}),i}function o(t){for(var e={},n=0,i=t.length;n<i;n++){var r=t[n];if(r._id&&!r.isClip){var a=r._id;e[a]={_id:a,type:r.get("type"),attrs:f.mix({},r._attrs.attrs),className:r.get("className"),geomType:r.get("className"),index:r.get("index"),coord:r.get("coord"),animateCfg:r.get("animateCfg")}}}return e}function s(t,e,n,i){return f.isFunction(i)?i:f.isString(i)?v.Action[i]:v.getAnimation(t,e,n)}function u(t,e,n){if(!1===n||f.isObject(n)&&!1===n[e])return!1;var i=v.getAnimateCfg(t,e);return n&&n[e]?f.deepMix({},i,n[e]):i}function c(t,e,n){var r,a,o=[],c=[];f.each(e,function(e){var n=t[e._id];n?(e.set("cacheShape",n),o.push(e),delete t[e._id]):c.push(e)}),f.each(t,function(t){var e=t.className,i=t.coord,o=t._id,c=t.attrs,l=t.index,h=t.type;if(!1===(a=u(e,"leave",t.animateCfg)))return!0;if(r=s(e,i,"leave",a.animation),f.isFunction(r)){var p=n.addShape(h,{attrs:c,index:l,canvas:n,className:e});p._id=o,r(p,a,i)}}),f.each(o,function(t){var e=t.get("className");if(!1===(a=u(e,"update",t.get("animateCfg"))))return!0;var n=t.get("coord"),o=t.get("cacheShape").attrs,c=i(o,t._attrs.attrs);Object.keys(c).length&&(r=s(e,n,"update",a.animation),f.isFunction(r)?r(t,a,n):(t.attr(o),t.animate().to({attrs:c,duration:a.duration,easing:a.easing,delay:a.delay}).onEnd(function(){t.set("cacheShape",null)})))}),f.each(c,function(t){var e=t.get("className"),n=t.get("coord");if(!1===(a=u(e,"enter",t.get("animateCfg"))))return!0;if(r=s(e,n,"enter",a.animation),f.isFunction(r))if("interval"===e&&n.isPolar&&n.transposed){var i=t.get("index"),c=o[i-1];r(t,a,c)}else r(t,a,n)})}function l(t,e){if(!t)return null;var n=e.get("animate");return t.indexOf("guide-tag")>-1&&(t="guide-tag"),f.isObject(n)?n[t]:!1!==n&&null}var h,f=n(0),p=n(27),g=n(128),d=n(129),v=n(99),y=n(131),x=n(132),m=n(15);p.prototype.animate=function(){var t=f.mix({},this.get("attrs"));return new d(this,t,h)},m.prototype.animate=function(t){return this.set("animate",t),this},v.Action=y,v.defaultCfg={interval:{enter:function(t){return t.isPolar&&t.transposed?function(t){t.set("zIndex",-1),t.get("parent").sort()}:y.fadeIn}},area:{enter:function(t){return t.isPolar?null:y.fadeIn}},line:{enter:function(t){return t.isPolar?null:y.fadeIn}},path:{enter:function(t){return t.isPolar?null:y.fadeIn}}};var _={line:function(t){return t.isPolar?x.groupScaleInXY:x.groupWaveIn},area:function(t){return t.isPolar?x.groupScaleInXY:x.groupWaveIn},path:function(t){return t.isPolar?x.groupScaleInXY:x.groupWaveIn},point:function(){return x.shapesScaleInXY},interval:function(t){var e;return t.isPolar?(e=x.groupScaleInXY,t.transposed&&(e=x.groupWaveIn)):e=t.transposed?x.groupScaleInX:x.groupScaleInY,e},schema:function(){return x.groupWaveIn}};t.exports={afterCanvasInit:function(){(h=new g).play()},beforeCanvasDraw:function(t){if(!1!==t.get("animate")){var e=t.get("isUpdate"),n=t.get("canvas"),i=t.get("coord"),r=t.get("geoms"),h=n.get("caches")||[];0===h.length&&(e=!1);var p=a(r,t,i),g=t.get("axisController"),d=g.frontPlot,y=g.backPlot,m=d.get("children").concat(y.get("children")),S=[];t.get("guideController")&&(S=t.get("guideController").guideShapes);var b=[];if(m.concat(S).forEach(function(e){var n=l(e.get("className"),t);e.set("coord",i),e.set("animateCfg",n),b.push(e),p.push(e)}),n.set("caches",o(p)),e)c(h,p,n);else{var P,w;f.each(r,function(e){var n=e.get("type"),r=f.isNil(e.get("animateCfg"))?l(n,t):e.get("animateCfg");if(!1!==r)if(P=u(n,"appear",r),w=s(n,i,"appear",P.animation),f.isFunction(w)){var a=e.get("shapes");f.each(a,function(t){w(t,P,i)})}else if(_[n]){w=x[P.animation]||_[n](i);var o=e.getYScale(),c=i.convertPoint({x:0,y:o.scale(e.getYMinValue())}),h=e.get("container");w&&w(h,P,i,c)}}),f.each(b,function(t){var e=t.get("animateCfg"),n=t.get("className");if(e&&e.appear){var r=v.getAnimateCfg(n,"appear"),a=f.deepMix({},r,e.appear),o=s(n,i,"appear",a.animation);f.isFunction(o)&&o(t,a,i)}})}}},afterCanvasDestroyed:function(){h.stop()}}},function(t,e,n){var i=n(39).requestAnimationFrame,r="object"==typeof performance&&performance.now?performance:Date,a=function(){function t(){this.anims=[],this.time=null,this.playing=!1,this.canvas=[]}var e=t.prototype;return e.play=function(){function t(){e.playing&&(i(t),e.update())}var e=this;e.time=r.now(),e.playing=!0,i(t)},e.stop=function(){this.playing=!1,this.time=null,this.canvas=[]},e.update=function(){var t=r.now();this.canvas=[];for(var e=0;e<this.anims.length;e++){var n=this.anims[e];if(!(t<n.startTime||n.hasEnded)){var i=n.shape;if(i.get("destroyed"))this.anims.splice(e,1),e--;else{var a=n.startState,o=n.endState,s=n.interpolate,u=n.duration;t>=n.startTime&&!n.hasStarted&&(n.hasStarted=!0,n.onStart&&n.onStart());var c=(t-n.startTime)/u;if(c=Math.max(0,Math.min(c,1)),c=n.easing(c),n.onFrame)n.onFrame(c);else for(var l in s){var h=(0,s[l])(c),f=void 0;if("points"===l){f=[];for(var p=Math.max(a.points.length,o.points.length),g=0;g<p;g+=2)f.push({x:h[g],y:h[g+1]})}else f=h;i._attrs.attrs[l]=f,i._attrs.bbox=null}var d=i.get("canvas");-1===this.canvas.indexOf(d)&&this.canvas.push(d),n.onUpdate&&n.onUpdate(c),t>=n.endTime&&!n.hasEnded&&(n.hasEnded=!0,n.onEnd&&n.onEnd()),1===c&&(this.anims.splice(e,1),e--)}}}this.canvas.map(function(t){return t.draw(),t}),this.time=r.now()},t}();t.exports=a},function(t,e,n){function i(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&(e.push(t[n].x),e.push(t[n].y));return e}function r(t,e){return t=+t,e-=t,function(n){return t+e*n}}function a(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]=r(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}}var o=n(130),s=function(){function t(t,e,n){this.hasStarted=!1,this.hasEnded=!1,this.shape=t,this.source=e,this.timeline=n,this.animate=null}var e=t.prototype;return e.to=function(t){void 0===t&&(t={});var e,n=t.delay||0,s=t.attrs||{},u=t.duration||1e3;e="function"==typeof t.easing?t.easing:o[t.easing]||o.linear;var c={shape:this.shape,startTime:this.timeline.time+n,duration:u,easing:e},l={};for(var h in s){var f=this.source[h],p=s[h];"points"===h?(f=i(f),p=i(p),l.points=a(f,p),this.source.points=f,s.points=p):"matrix"===h?l.matrix=a(f,p):l[h]=r(f,p)}return c.interpolate=l,c.startState=this.source,c.endState=s,c.endTime=c.startTime+u,this.timeline.anims.push(c),this.animate=c,this},e.onFrame=function(t){return this.animate&&(this.animate.onFrame=function(e){t(e)}),this},e.onStart=function(t){return this.animate&&(this.animate.onStart=function(){t()}),this},e.onUpdate=function(t){return this.animate&&(this.animate.onUpdate=function(e){t(e)}),this},e.onEnd=function(t){return this.animate&&(this.animate.onEnd=function(){t()}),this},t}();t.exports=s},function(t,e){var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(i||(i=.3),!n||n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(i||(i=.3),!n||n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(i||(i=.3),!n||n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}};t.exports=n},function(t,e,n){var i=n(0),r=n(100);t.exports={fadeIn:function(t,e){var n=i.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),a=i.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var o={fillOpacity:n,strokeOpacity:a};r.doAnimation(t,o,e)}}},function(t,e,n){function i(t,e,n,i,r){var o,u,c=a.getCoordInfo(n),l=c.start,h=c.end,f=c.width,p=c.height,g=new s.Rect({attrs:{x:l.x,y:h.y,width:f,height:p}});"y"===r?(o=l.x+f/2,u=i.y<l.y?i.y:l.y):"x"===r?(o=i.x>l.x?i.x:l.x,u=l.y+p/2):"xy"===r&&(n.isPolar?(o=n.center.x,u=n.center.y):(o=(l.x+h.x)/2,u=(l.y+h.y)/2));var d=a.getScaledMatrix(g,[o,u],r);g.isClip=!0,g.endState={matrix:d},g.set("canvas",t.get("canvas")),t.attr("clip",g);a.doAnimation(g,g.endState,e,function(){t.attr("clip",null),g.remove(!0)})}function r(t,e,n){for(var i,r,o,s=t.get("children"),u=0,c=s.length;u<c;u++){var l=s[u],h=l.getBBox();i=(h.minX+h.maxX)/2,r=(h.minY+h.maxY)/2,o=a.getScaledMatrix(l,[i,r],n),a.doAnimation(l,{matrix:o},e)}}var a=n(100),o=n(28),s=n(5).Shape;t.exports={groupWaveIn:function(t,e,n){var i=o.getClip(n);i.set("canvas",t.get("canvas")),t.attr("clip",i);var r={};if(n.isPolar){var s=n.startAngle,u=n.endAngle;r.endAngle=u,i.attr("endAngle",s)}else{var c=n.start,l=n.end,h=Math.abs(c.x-l.x),f=Math.abs(c.y-l.y);n.isTransposed?(i.attr("height",0),r.height=f):(i.attr("width",0),r.width=h)}a.doAnimation(i,r,e,function(){t.attr("clip",null),i.remove(!0)})},groupScaleInX:function(t,e,n,r){i(t,e,n,r,"x")},groupScaleInY:function(t,e,n,r){i(t,e,n,r,"y")},groupScaleInXY:function(t,e,n,r){i(t,e,n,r,"xy")},shapesScaleInX:function(t,e){r(t,e,"x")},shapesScaleInY:function(t,e){r(t,e,"y")},shapesScaleInXY:function(t,e){r(t,e,"xy")}}},,,,,function(t,e,n){var i=n(44);n(102),n(90),n(95),n(111),n(112),n(116),n(117),n(118),n(119),n(120),n(121);var r=n(122),a=n(125),o=n(126),s=n(127);i.Animate=n(99),i.Chart.plugins.register([r,o,a,s]),t.exports=i}])});