-
Notifications
You must be signed in to change notification settings - Fork 35
/
FundCharts.min.js
22 lines (20 loc) · 36.7 KB
/
FundCharts.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*!
* FundCharts@description: web/weapp/nodejs canvas charts library.
* @version: 0.9.11
* @author: Wayne([email protected])
* @time: 2018~2022
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FundCharts=e():t.FundCharts=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=13)}([function(t,e,r){"use strict";function n(t){return Object.prototype.toString.call(t).replace(/\[object\s|\]/g,"")}function a(t){return"Object"===n(t)}function i(t){if(!t)return!1;for(var e in t)return!1;return!0}function o(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r);return t}function s(t){var e=t.toLowerCase();if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){for(var r="#",n=1;n<4;n++)r+=e.slice(n,n+1).concat(e.slice(n,n+1));e=r}var a=[];for(n=1;n<7;n+=2)a.push(parseInt("0x"+e.slice(n,n+2),16));return a}return[]}Object.defineProperty(e,"__esModule",{value:!0}),e.getExtremum=e.max=e.min=e.throwError=e.getLightColor=e.isTransparentColor=e.getColorRgba=e.getColorRgbArr=e.cloneArray=e.cloneObjDeep=e.each=e.isEmptyObj=e.isFunction=e.isObject=e.isString=e.isUndefined=e.isArray=e.type=void 0,e.type=n,e.isArray=function(t){return"Array"===n(t)},e.isUndefined=function(t){return void 0===t},e.isString=function(t){return"String"===n(t)},e.isObject=a,e.isFunction=function(t){return"Function"===n(t)},e.isEmptyObj=i,e.each=o,e.cloneObjDeep=function t(e,r){if(!a(e)||!a(r))return!1;for(var n in e)!a(r[n])||i(r[n])?r[n]=r[n]||e[n]:t(e[n],r[n]);return r},e.cloneArray=function(t,e){return o(t,(function(t,r){e[r]=t})),e},e.getColorRgbArr=s,e.getColorRgba=function(t,e){void 0===e&&(e=1);var r=s(t).join(","),n=""!==r;return"rgba("+(n?r:"0,0,0")+","+(n?e:0)+")"},e.isTransparentColor=function(t){return!!t&&t.replace(" ","").indexOf("0)")>-1},e.getLightColor=function(t,e){return void 0===e&&(e=0),s(t).map((function(t){var r=~~(t+t*e);return r>255?255:r}))},e.throwError=function(t,e,r){throw void 0===e&&(e=""),void 0===r&&(r=""),new Error("Error!"+t+".(FundCharts-"+e+" "+r+")")},e.min=function(t){return t.reduce((function(t,e){return Math.min(t,e)}))},e.max=function(t){return t.reduce((function(t,e){return Math.max(t,e)}))},e.getExtremum=function(t){for(var e=t[0],r=e,n=Math.max,a=Math.min,i=1,o=t.length;i<o;i++)e=n(e,t[i]),r=a(r,t[i]);return{max:e,min:r}}},function(t,e,r){"use strict";e.__esModule=!0;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};e.__extends=function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},e.__rest=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]])}return r},e.__decorate=function(t,e,r,a){var i,o=arguments.length,s=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},e.__param=function(t,e){return function(r,n){e(r,n,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,r,n){return new(r||(r=Promise))((function(a,i){function o(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,s)}c((n=n.apply(t,e||[])).next())}))},e.__generator=function(t,e){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],n=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},e.__createBinding=function(t,e,r,n){void 0===n&&(n=r);t[n]=e[r]},e.__exportStar=function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||(e[r]=t[r])},e.__values=o,e.__read=s,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),a=0;for(e=0;e<r;e++)for(var i=arguments[e],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n},e.__await=c,e.__asyncGenerator=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,a=r.apply(t,e||[]),i=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){a[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||s(t,e)}))})}function s(t,e){try{(r=a[t](e)).value instanceof c?Promise.resolve(r.value.v).then(h,u):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function h(t){s("next",t)}function u(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}},e.__asyncDelegator=function(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,a){e[n]=t[n]?function(e){return(r=!r)?{value:c(t[n](e)),done:"return"===n}:a?a(e):e}:a}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=o(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,a){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,a,(e=t[r](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e;return t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var i=function(){return e.__assign=i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},i.apply(this,arguments)};function o(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function c(t){return this instanceof c?(this.v=t,this):new c(t)}e.__assign=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setContext=e.retinaScale=e.clearArc=e.drawPoint=e.drawDashLine=e.drawLine=void 0;var n=r(16),a=r(0);e.drawLine=function(t,e,r,n,a){t.beginPath(),t.moveTo(e,r),t.lineTo(n,a),t.closePath(),t.stroke()},e.drawDashLine=function(t,e,r,n,a,i){i=i||5;var o,s,c=~~((o=n-e,s=a-r,Math.sqrt(Math.pow(o,2)+Math.pow(s,2)))/i);t.beginPath();for(var h=0;h<c;h++)t[1&h?"lineTo":"moveTo"](e+(n-e)/c*h,r+(a-r)/c*h);t.closePath(),t.stroke()},e.drawPoint=function(t,e,r,n,a,i,o){t.beginPath(),t.strokeStyle=a||"#fff",t.lineWidth=void 0!==o?o:1,t.arc(e,r,i,0,2*Math.PI,!0),t.closePath(),t.fillStyle=n,t.fill(),o&&t.stroke()},e.clearArc=function(t,e,r,n){var a=.1;!function e(r,n,i){var o=i-a,s=Math.sqrt(i*i-o*o),c=r-o,h=n-s,u=2*o,l=2*s;a<=i&&(t.clearRect(c,h,u,l),a+=.1,e(r,n,i))}(e,r,n)},e.retinaScale=function(t,e){var r=window.devicePixelRatio||1;if(1===r)return!1;var n=t.width,a=t.height;return t.width=n*r,t.height=a*r,e.scale(r,r),t.style.width=n+"px",t.style.height=a+"px",r},e.setContext=function(t,e,r){(!t||e?t.$el:t.opts.Canvas||r)||a.throwError("no chart object to set context","setContext");var i,o=t.opts,s=o.width||500,c=o.height||500;if(e){var h=t.$el;if(h.style.webkitUserSelect="none",h.style.userSelect="none",a.isFunction(h.getContext))i=h;else{(i=document.createElement("canvas")).id=o.id+"Canvas";var u=o.width||n.getStyle(h,"width"),l=o.height||n.getStyle(h,"height");i.width=u,i.height=l,h.appendChild(i)}}else if(r){var f="undefined"==typeof wx?null:wx;if(!f||!a.isFunction(f.createCanvasContext))return a.throwError("no param {Object} Ctx","setContext"),!1;var d=f.createCanvasContext(o.id);i={info:"Weapp native canvas",width:s,height:c,getContext:function(){return d},draw:function(e){if(e)return d.draw(!0);f.drawCanvas({canvasId:o.id,actions:t.ctx.getActions()})}}}else{var p=o.Canvas;o.Canvas||a.throwError("no param {Object} Canvas","setContext"),i=p.createCanvas(s,c),o.handleOut&&o.handleOut(i)}t.canvas=i,t.ctx=i.getContext("2d"),t._chart={width:i.width,height:i.height}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDistance=e.getAngle=e.getRange=void 0,e.getRange=function(t){return t?t>2?4*Math.ceil(t/4):1.2*t:1},e.getAngle=function(t,e,r,n){var a=Math.atan2(r-t,e-n);return a<0?2*Math.PI+a:a},e.getDistance=function(t,e,r,n){return Math.sqrt(Math.pow(t-r,2)+Math.pow(e-n,2))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=r(2),i=r(6),o=function(){function t(t){this.yaxis={min:0,max:0,range:0,unit:0},this.xaxis={min:0,max:0,range:0,unit:0},this.xRate=0,this.xBasic=0,this.yRate=0,this.yBasic=0,this.drawPoint=a.drawPoint,this.chartjs=t}return t.prototype.getBasicData=function(t){var e,r,a=this.chartjs.opts,i=t||a.datas,o=a.range;return o?((n.isUndefined(o.min)||n.isUndefined(o.max))&&n.throwError('param range need params "min" and "max"',"setConfig"),e=o.min,r=o.max):i&&i.length&&n.each(i,(function(t){var a=n.getExtremum(t),i=a.max,o=a.min;e=void 0!==e&&e<o?e:o,r=r&&r>i?r:i})),[e||0,r||0]},t.prototype.clearCtn=function(t){var e=this.chartjs,r=e.opts,a=r.backgroundColor,i=e.ctx,o=e._chart.width,s=e._chart.height;i.beginPath();var c=(n.isTransparentColor(a)?i.clearRect:i.rect).bind(i);t?c(r.chartLeft-4,r.chartTop-5,o+1,s-16-r.chartTop):c(0,0,1e5,1e5),i.fillStyle=a,i.fill(),i.closePath()},t.prototype.drawDashs=function(t){var e=this.chartjs,r=e.opts,n=r.grid,i=r.dash,o=i.isSolid,s=r.dash.color,c=n.showGrid,h=n.xTickLength,u=n.yTickLength,l=e.ctx;l.save();var f=e._chart.width-r.chartRight+2,d=(e._chart.height-r.chartTop-30)/(u-1),p=(f-2-r.chartLeft)/(h-1),v=(u-1)*d+r.chartTop+5.5;if(!r.noDash){l.strokeStyle=s,l.beginPath(),l.lineWidth=1;for(var y=o?a.drawLine:a.drawDashLine,x=o?f-2:f,g=0;g<u;g++){var w=t||g*d+5+r.chartTop;y(l,r.chartLeft,w,x,w,i.length)}if(h){var m=r.chartTop+5;for(g=0;g<h;g++){var b=g*p+r.chartLeft-.5;y(l,b,v,b,m,i.length)}}}if(c){n.color&&(l.strokeStyle=n.color);var _=r.chartLeft-.5,j=e.drawer.zeroY||v;a.drawLine(l,_,r.chartTop,_,v),a.drawLine(l,_,j,f-2,j),l.stroke()}l.strokeStyle=s,l.restore()},t.prototype.drawTexts=function(t,e){var r=this.chartjs,n=r.opts,a=n.grid.yTickLength,i=n.font,o=r.ctx,s=n.xaxis,c=r._chart,h=c.width,u=c.height;if(n.handleTextX&&(t=n.handleTextX),n.handleTextY&&(e=n.handleTextY),o.lineWidth=1,o.textAlign="right",o.textBaseline="middle",o.font=i.fontSize.x+" "+i.fontFamily,o.fillStyle=i.color,t)t(o,s);else{var l=u-10;o.fillText(s[s.length-1],h-n.chartRight,l),o.textAlign="left",o.fillText(s[0],n.chartLeft,l)}o.font=i.fontSize.y+" "+i.fontFamily,o.textAlign="right";var f=this.yaxis;if(e)e(o,f);else for(var d=n.chartLeft-5,p=n.yaxisfunc||function(t){return t.toFixed(2)},v=0;v<a;v++){var y=f.min+v*f.unit;o.fillText(p(y),d,this.yRate*y+this.yBasic)}},t.prototype.drawHover=function(t,e){},t.prototype.setEvents=function(){var t=this,e=this.chartjs.canvas,r=this.chartjs.opts,n=r.inBrowser,a=r.events;if(!a||!n)return!1;var i={};a.forEach((function(r){var n=function(e){var n=~r.indexOf("touch")?e.touches[0]:e,a=n.target;return t.drawHover(n.clientX-a.offsetLeft,n.pageY-a.offsetTop),!1};e.addEventListener(r,n,!1),i[r]=n})),this.chartjs.opts.eventsCallbacks=i},t.prototype.removeEvents=function(){var t=this.chartjs.canvas,e=this.chartjs.opts,r=e.inBrowser,n=e.events,a=e.eventsCallbacks;return!(!n||!r)&&(n.forEach((function(e){var r=a[e];t.removeEventListener(e,r),a[e]=null})),this.chartjs.opts.eventsCallbacks=null,!0)},t.prototype.removeDatas=function(){var t=this.chartjs.opts;for(var e in t)t[e]=null;for(var e in this.chartjs)this.chartjs[e]=null;this.chartjs=null},t.prototype.setAnimation=function(t){var e=this.chartjs.opts,r=e.duration,n=e.onFinish;i.animation({duration:r,onProcess:t,onAnimationFinish:n})},t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zeroY=0,e}return n.__extends(e,t),e.prototype.setDataset=function(){var t,e=this.chartjs,r=e.opts,n=r.datas,a=r.grid.yTickLength,i=this.getBasicData(),o=i[0],s=i[1],c=r.range;c?t=c.max-c.min:o<0?(o=~~o,-(s=Math.ceil(s))<o?o=-s:s=-o,t=2*s):((t=s-o)||(o=0,t=1),t=t>5?5*Math.ceil(t/5):Math.ceil(1.2*t)),this.yaxis={min:o,max:o+t,range:t,unit:t/(a-1)};var h=e._chart,u=h.width,l=h.height,f=this.yRate=(30-l+r.chartTop)/this.yaxis.range,d=this.yBasic=5-this.yaxis.max*f+r.chartTop;this.zeroY=o<0?d:l-24;var p=e.pixelRatio||1,v=n[0].length,y=r.chartLeft+r.chartRight,x=r.barMargin||r.barWidth&&e.pixelRatio*~~((u-y)/v-r.barWidth*(r.isStack?1:n.length))||v>=10&&40-(v-10)*p||r.bar.margin;x=x<0?0:x/p,this.xaxis={min:0,max:v-1,range:v,unit:1};var g=e.barWidth=r.barWidth||~~((u-y)/v-x);e.datasets=n.map((function(t){return t.map((function(t,e){return{x:e*g+(e+.5)*x+r.chartLeft,y:t*f+d,value:t}}))}))},e.prototype.rotateContext=function(t,e,r,n,a){t.save(),t.translate(e,r),t.rotate(n*Math.PI/180),t.fillText(a,0,0),t.restore()},e.prototype.drawBars=function(t,e){void 0===t&&(t=1);var r=this.chartjs,n=r.opts,i=n.isStack?0:1,o=n.singleColorful,s=r.ctx,c=r.datasets,h=r.prevDataset,u=r.barWidth/(n.isStack?1:c.length),l=this.zeroY;s.beginPath(),s.lineWidth=0,s.strokeStyle=n.backgroundColor,a.each(c,(function(r,c){var f=h&&h[c];a.each(r,(function(r,h){var d=a.getLightColor(r.y>l&&n.negativeColor||n.colors[o?h:c]||n.colors[c],h===e?n.hoverHighlight:0),p=r.x+i*u*c;s.fillStyle="rgb("+d.join(",")+")",f?s.fillRect(p,l,u,(r.y-f[h].y)*t+(f[h].y-l)):s.fillRect(p,l,u,(r.y-l)*t)})),s.stroke()})),s.save(),1===t&&(r.prevDataset=null)},e.prototype.drawXaxisTexts=function(t,e){var r=this,n=this.chartjs,i=n._chart.height-10,o=n.barWidth,s=e.length,c=n.datasets[0],h=s>30?90:s>10?3*s:0;t.textAlign="center",a.each(c,(function(n,a){var s=e[a];s&&(h?r.rotateContext(t,n.x+o,i,h,s):t.fillText(s,n.x+o,i))}))},e.prototype.draw=function(t,e,r){var n=this,i=this.chartjs,o=i.opts,s=i.datasets;this.clearCtn(!t),this.drawDashs(),t&&(s&&(i.prevDataset=a.cloneArray([],s)),this.setDataset(),this.drawTexts(this.drawXaxisTexts.bind(this))),r||(e||!o.inBrowser&&!o.inWeapp?(this.drawBars(1),o.onFinish&&o.onFinish()):this.setAnimation((function(t){n.clearCtn(!0),n.drawDashs(),n.drawBars(t),o.onAnimation&&o.onAnimation.call(n,t),o.inWeapp&&i.ctx.draw(!0)})))},e.prototype.drawHover=function(t,e){var r=this.chartjs,n=r.opts;if(r.prevDataset)return!1;if(t>r._chart.width-n.chartRight||t<n.chartLeft)return!1;for(var i=-1,o=Math.abs(r.barWidth),s=r.datasets.length,c=r.datasets[0],h=[],u=0,l=c.length;u<l;u++){var f=c[u];if(t>=f.x&&t<=f.x+o*s){i=u;break}}return!(i<0)&&(a.each(r.datasets,(function(t){h.push(t[i].value)})),this.draw(!1,!0,!0),this.drawBars(1,i),n.hover&&n.hover.call(r,i,h,n.xaxis[i],t,e),n.inWeapp&&r.canvas.draw(!0),i)},e.prototype.init=function(){var t=this.chartjs.opts,e=t.noAnimation,r=t.inBrowser,n=t.inWeapp,a=t.noHoverEvent;this.draw(!0,e),!r||n||a||this.setEvents(),n&&this.chartjs.canvas.draw()},e}(r(4).default);e.default=i},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.animation=void 0,"undefined"!=typeof window&&(n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame);var a=function(){return void 0!==n?(a=function(){return n},n):function(t,e){setTimeout((function(){t(+new Date)}),e)}};e.animation=function(t){var e=t.duration||600,r=t.onProcess||function(){},n=t.onAnimationFinish||function(){},i=a(),o=null;i((function t(a){if(null===a)return r(1),n(),!1;if(null===o&&(o=a),a-o<e){var s=(a-o)/e;c=s,s=(c/=.5)<1?.5*Math.pow(c,3):.5*(Math.pow(c-2,3)+2),r(s),i(t,23)}else r(1),n();var c;return!0}),23)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(0),i=r(3),o=r(2),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setDataset=function(){var t=this.chartjs,e=t.opts,r=e.grid.yTickLength,n=e.datas,o=[];a.each(n,(function(t){o.push.apply(o,t)}));var s,c,h=this.getBasicData([o]),u=h[0],l=h[1];e.range?(s=u,c=l-u):(s=(c=i.getRange(l-u))>2?Math.floor(u):u)+c<l&&(s=u),this.yaxis={min:s,max:s+c,range:c,unit:c/(r-1)};var f=this.yRate=(30-t._chart.height+e.chartTop)/c,d=this.yBasic=5-this.yaxis.max*f+e.chartTop,p=n.length;p=p>1?p:2,this.xaxis={min:0,max:p-1,range:p,unit:1};var v=this.xBasic=e.chartLeft+10,y=this.xRate=(t._chart.width-e.chartLeft-e.chartRight-20)/(p-1),x=[];1===n.length&&(n[1]=n[0]),a.each(n,(function(t,e){x.push({x:e*y+v,ymin:t[2]*f+d,ystart:t[0]*f+d,yend:t[1]*f+d,ymax:t[3]*f+d,value:t})})),t.dataset=x,e.barWidth||(e.barWidth=p<10?20:~~(.6*this.xRate),e.barWidth<1&&(e.barWidth=1))},e.prototype.drawUnit=function(t,e,r,n,a){var i,s,c,h=!1;e.yend<e.ystart?(a&&(h=!0),i=r[0],s=e.ystart,c=e.yend):(i=r[4],s=e.yend,c=e.ystart),t.fillStyle=t.strokeStyle=i,o.drawLine(t,e.x,e.ymin,e.x,s),o.drawLine(t,e.x,e.ymax,e.x,c),t.beginPath(),t[h?"rect":"fillRect"](e.x-n/2,c,n,s-c),t.closePath(),t.stroke()},e.prototype.drawLine=function(t){void 0===t&&(t=1);var e=this.chartjs,r=e.opts,n=e.ctx,a=e.dataset;n.lineWidth=1;for(var i=0,o=t*a.length;i<o;i++){var s=a[i];this.drawUnit(n,s,r.colors,r.barWidth,r.upHollow)}n.save()},e.prototype.draw=function(t,e){var r=this,n=this.chartjs.opts;this.clearCtn(!t),this.drawDashs(),t&&(this.setDataset(),this.drawTexts()),e||!n.inBrowser&&!n.inWeapp?(this.drawLine(1),n.onFinish&&n.onFinish()):this.setAnimation((function(t){r.clearCtn(!0),r.drawDashs(),r.drawLine(t),n.onAnimation&&n.onAnimation.call(r,t),n.inWeapp&&r.chartjs.ctx.draw(!0)}))},e.prototype.drawHover=function(t,e){var r=this.chartjs,n=r.opts;this.draw(n.inWeapp||null,!0);var a=r.ctx;if(t>r._chart.width-n.chartRight||t<n.chartLeft||e<n.chartTop||e>r._chart.height-(35-n.chartTop))return!1;var i=Math.round((t-this.xBasic)/this.xRate);if(!r.dataset[i])return!1;var s=Math.round(r.dataset[i].x)+.3;return a.save(),a.strokeStyle=n.hoverLineColor,a.lineWidth=.5,o.drawLine(a,n.chartLeft+.3,e,r._chart.width-14.7,e),o.drawLine(a,s,6+n.chartTop,s,r._chart.height-25),n.hover&&n.hover.call(r,i,[n.datas[i]],n.xaxis[i],t,e),a.restore(),n.inWeapp&&r.canvas.draw(!0),i},e.prototype.init=function(){var t=this.chartjs.opts,e=t.noAnimation,r=t.inWeapp;this.draw(!0,e),this.setEvents(),r&&this.chartjs.canvas.draw()},e}(r(4).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(0),i=r(3),o=r(2),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setDataset=function(){var t,e,r=this.chartjs,n=r.opts,o=n.grid.yTickLength,s=n.datas,c=this.getBasicData(),h=c[0],u=c[1];n.range?(t=h,e=u-h):(t=(e=i.getRange(u-h))>2?Math.floor(h):h)+e<u&&(t=h),this.yaxis={min:t,max:t+e,range:e,unit:e/(o-1)};var l=this.yRate=(30-r._chart.height+n.chartTop)/e,f=this.yBasic=5-this.yaxis.max*l+n.chartTop,d=s[0].length;d=d>1?d:2,this.xaxis={min:0,max:d-1,range:d,unit:1};var p=this.xBasic=n.chartLeft,v=this.xRate=(r._chart.width-n.chartLeft-n.chartRight)/(d-1),y=[];a.each(s,(function(t){var e=[];1===t.length&&(t[1]=t[0]),a.each(t,(function(t,r){e.push({x:Math.ceil(r*v+p),y:t*l+f,value:t})})),y.push(e)})),r.datasets=y},e.prototype.drawLine=function(t){void 0===t&&(t=1);var e=this.chartjs,r=e.datasets,n=e.opts,i=e.ctx;i.lineWidth=1;var o=e._chart.height-24,s=o-n.chartTop||170,c=e.oldDatasets,h=c&&c[0].length,u=h&&1!==t?function(e,r,n){var a=e.x,o=e.y,s=n[r]||n[h-1];i.lineTo((a-s.x)*t+s.x,n[r]?(o-s.y)*t+s.y:o)}:function(t){i.lineTo(t.x,t.y)};a.each(r,(function(e,l){i.save();var f=r[l][0],d=h?e:e.slice(0,~~(t*e.length)),p=(d=d.filter((function(t){return void 0!==t.value&&t}))).length;if(!p)return!1;var v,y,x,g=n.curveLine?function(e,r){return function(e,r,n){r=r||e;var a=(e.x+r.x)/2,s=o*(1-t)+(e.y+r.y)*t/2;i.quadraticCurveTo(e.x,e.y,a,s)}(e,d[r+1],c&&c[l])}:function(t,e){return u(t,e,c&&c[l])};if(n.allGradient||0===l&&!n.noGradient){if(i.beginPath(),i.lineWidth=0,i.strokeStyle=n.backgroundColor,i.moveTo(n.chartLeft,o),i.lineTo(f.x+.5,o*(1-t)+f.y*t),a.each(d,g),c&&c[0]){var w=c[0].filter((function(t){return void 0!==t.value&&t})),m=w[p-1]||w[w.length-1]||d[p-1],b=(d[p-1].x-m.x)*t+m.x;i.lineTo(b,(d[p-1].y-m.y)*t+m.y),i.lineTo(b,o)}else i.lineTo(d[p-1].x+.5,o);i.closePath(),i.stroke(),v=n.colors[l],y=i.createLinearGradient(0,0,0,s),x=a.getColorRgbArr(v).join(","),y.addColorStop(0,"rgba("+x+", 0.3)"),y.addColorStop(.8,"rgba("+x+", 0.05)"),y.addColorStop(1,"rgba("+x+", 0)"),i.fillStyle=y,i.fill()}i.lineWidth=n.lineWidths&&n.lineWidths[l]||1,i.strokeStyle=n.colors[l],i.beginPath(),c&&c[l]?i.moveTo(f.x,(f.y-c[l][0].y)*t+c[l][0].y):i.moveTo(f.x,f.y),a.each(d,g),i.stroke(),i.restore()})),i.save(),1===t&&(e.oldDatasets=null)},e.prototype.drawHover=function(t,e){var r=this,n=this.chartjs,i=n.opts;if(i.curveLine||n.oldDatasets)return!1;this.draw(i.inWeapp||null,!0);var s=n.ctx,c=n._chart.width-i.chartRight;t=t<i.chartLeft?i.chartLeft:t>c?c:t;var h=Math.round((t-this.xBasic)/this.xRate),u=[],l=0,f=[],d=n.datasets;return a.each(d,(function(t,e){var n=t[h];!i.hideHoverPoints&&n&&f.unshift((function(){r.drawPoint(s,n.x,n.y-1,i.colors[e],i.pointStyle,4,1)})),l=n.x,u.push(n.value)})),i.noHoverLine||(l+=.3,s.lineWidth=.5,s.strokeStyle=i.hoverLineColor,o.drawLine(s,l,6+i.chartTop,l,n._chart.height-25)),f.length&&a.each(f,(function(t){return t()})),i.hover&&i.hover.call(n,h,u,i.xaxis[h],t,e),s.restore(),i.inWeapp&&n.canvas.draw(!0),h},e.prototype.draw=function(t,e){var r=this,n=this.chartjs,i=n.opts,o=n.datasets;this.clearCtn(!t),this.drawDashs(),t&&(o&&(n.oldDatasets=a.cloneArray([],o)),this.setDataset(),this.drawTexts()),e||i.curveLine||!i.inBrowser&&!i.inWeapp?(this.drawLine(),i.onFinish&&i.onFinish()):this.setAnimation((function(t){r.clearCtn(!0),r.drawDashs(),r.drawLine(t),i.onAnimation&&i.onAnimation.call(r,t),i.inWeapp&&n.ctx.draw(!0)}))},e.prototype.init=function(){var t=this.chartjs.opts,e=t.noAnimation,r=t.inWeapp;this.draw(!0,e),this.setEvents(),r&&this.chartjs.canvas.draw()},e}(r(4).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(0),i=r(3),o=r(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.origin=null,e.centerArr=null,e}return n.__extends(e,t),e.prototype.drawPie=function(t,e,r){void 0===t&&(t=.6),void 0===e&&(e=1),t=t>.9?.9:t;var i=this.chartjs,s=i.opts,c=s.origin||{},h=s.widthRates,u=i.drawer,l=s.backgroundColor,f=s.colors,d=s.datas,p=i.oldDataset;this.clearCtn();var v=i.ctx,y=i._chart,x=y.width,g=y.height,w=s.radius||g/2-20,m=w*t,b=n.__assign({x:x/2,y:w+20},c),_=b.x,j=b.y;this.origin=b,u.radius=w,u.radiusWhite=m;var P=s.startAngle||-.5*Math.PI,T=P;v.save(),v.lineWidth=s.lineWidth,v.strokeStyle=l;var S=[];a.each(d,(function(t,n){var i=r===n;T+=2*Math.PI*(1!==e&&p?(d[n]-p[n])*e+p[n]:d[n]*e),i&&s.hoverRate&&(v.fillStyle=i?a.getColorRgba(f[n],.6):f[n],v.beginPath(),v.moveTo(_,j),v.arc(_,j,w*(h&&h[n]||1)*s.hoverRate,P,T,!1),v.closePath(),v.fill()),v.fillStyle=i?a.getColorRgba(f[n],.8):f[n],v.beginPath(),v.moveTo(_,j),v.arc(_,j,w*(h&&h[n]||1),P,T,!1),v.closePath(),v.fill(),s.lineWidth&&(v.lineJoin="round",v.stroke()),1===e&&S.push((T+P)/2),P=T})),a.isTransparentColor(l)?o.clearArc(v,_,j,m):o.drawPoint(v,_,j,l,"",m,0),1===e&&(this.centerArr=S,i.oldDataset=null,i.dataset=d)},e.prototype.draw=function(t,e){var r=this,n=this.chartjs,i=n.opts;t&&(n.oldDataset=a.cloneArray([],n.dataset)),e||!i.inBrowser&&!i.inWeapp?(this.drawPie(i.annularRate,1),i.onFinish&&i.onFinish()):this.setAnimation((function(t){r.drawPie(i.annularRate,t),i.onAnimation&&i.onAnimation.call(r,t),i.inWeapp&&r.chartjs.ctx.draw(!0)})),i.inWeapp&&this.chartjs.canvas.draw()},e.prototype.drawHover=function(t,e){var r=this.chartjs,n=r.opts,o=n.datas,s=this.origin;if(r.oldDataset)return!1;for(var c,h=i.getAngle(s.x,s.y,t,e),u=h/(2*Math.PI),l=0,f=0,d=o.length;f<d;f++)if(u<(l+=o[f])){c=f;break}return!(a.isUndefined(c)||i.getDistance(t,e,s.x,s.y)>r.drawer.radius+5)&&(this.drawPie(n.annularRate,1,c),n.inWeapp&&r.canvas.draw(!0),n.hover&&n.hover.call(r,c,[o[c||0]],h,t,e),c)},e.prototype.init=function(){var t=this.chartjs.opts,e=t.noAnimation,r=t.inWeapp;this.draw(!1,e),this.setEvents(),r&&this.chartjs.canvas.draw()},e}(r(10).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=r(6),i=function(){function t(t){this.chartjs=t}return t.prototype.clearCtn=function(){var t=this.chartjs.ctx,e=this.chartjs.opts.backgroundColor;t.beginPath(),t[n.isTransparentColor(e)?"clearRect":"rect"](0,0,1e5,1e5),t.fillStyle=e,t.fill(),t.closePath()},t.prototype.drawHover=function(t,e){},t.prototype.setEvents=function(){var t=this,e=this.chartjs.canvas,r=this.chartjs.opts,n=r.inBrowser,a=r.events;if(!a||!n)return!1;var i={};a.forEach((function(r){var n=function(e){var n=~r.indexOf("touch")?e.touches[0]:e,a=n.target;return t.drawHover(n.clientX-a.offsetLeft,n.pageY-a.offsetTop),!1};e.addEventListener(r,n,!1),i[r]=n})),this.chartjs.opts.eventsCallbacks=i},t.prototype.removeEvents=function(){var t=this.chartjs.canvas,e=this.chartjs.opts,r=e.inBrowser,n=e.events,a=e.eventsCallbacks;return!(!n||!r)&&(n.forEach((function(e){var r=a[e];t.removeEventListener(e,r),a[e]=null})),this.chartjs.opts.eventsCallbacks=null,!0)},t.prototype.removeDatas=function(){var t=this.chartjs.opts;for(var e in t)t[e]=null;for(var e in this.chartjs)this.chartjs[e]=null;this.chartjs=null},t.prototype.setAnimation=function(t){var e=this.chartjs.opts,r=e.duration,n=e.onFinish;a.animation({duration:r,onProcess:t,onAnimationFinish:n})},t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(0),i=r(2),o=r(3),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.radius=0,e.origin=null,e.sideArr=[],e}return n.__extends(e,t),e.prototype.setDataset=function(t){var e=this.chartjs,r=e.opts,i=r.origin||{},o=r.datas,s=0;a.each(o,(function(t){var e=a.max(t);e>s&&(s=e)})),e.rangeMax=Math.ceil(1*s/(r.maxRate||.9));var c=e._chart,h=c.width,u=c.height;if(this.radius=r.radius||u/2-10,this.origin=n.__assign({x:h/2,y:u/2},i),t)return e.oldDataset=a.cloneArray([],e.dataset),!1;this.sideArr=function(t){for(var e=[],r=2*Math.PI/t,n=0;n<t;n++)e.push({x:Math.sin(r*n),y:Math.cos(r*n)});return e}(e.side=o[0].length)},e.prototype.drawRadar=function(t,e){void 0===t&&(t=1);var r=this.chartjs,n=r.opts,o=n.colors;this.clearCtn();var s=r.ctx,c=this.radius,h=this.origin,u=h.x,l=h.y,f=this.sideArr,d=f[0],p=r.oldDataset,v=n.gridNumber||3;s.lineWidth=1,s.strokeStyle=n.dash.color;for(var y=function(t){var e=(t+1)/v*c;s.beginPath(),s.moveTo(u+d.x*e,l-d.y*e),a.each(f,(function(t){s.lineTo(u+t.x*e,l-t.y*e)})),s.lineTo(u+d.x*e,l-d.y*e),s.closePath(),n.fillGrid?(s.fillStyle=a.getColorRgba(n.fillGrid,(v-t)/v*.8),s.fill()):s.stroke(),t+1===v&&a.each(f,(function(t){i.drawLine(s,u,l,u+t.x*e,l-t.y*e)}))},x=0;x<v;x++)y(x);var g=r.rangeMax,w=[],m=c*(p?1:t)/g;a.each(n.datas,(function(r,c){w[c]=[],function(r,c,h){s.strokeStyle=o[c],s.fillStyle=a.getColorRgba(o[c],.4),s.beginPath(),a.each(r,(function(e,r){var n=f[r],a=h&&h[r];if(n){var i=void 0,o=void 0;i=u+e*n.x*m,o=l-e*n.y*m,a&&(i=a.x+(i-a.x)*t,o=a.y+(o-a.y)*t),w[c].push({x:i,y:o}),s.lineTo(i,o)}})),s.lineTo(w[c][0].x,w[c][0].y),s.closePath(),s.stroke(),n.noFill||s.fill(),s.save();var d=n.hidePoints?0:3;a.each(w[c],(function(t,r){i.drawPoint(s,t.x,t.y,o[c],n.pointStyle,e===r?5:d,e===r?1:0)})),s.restore()}(r,c,p&&p[c])})),1===t&&(r.oldDataset=null,r.dataset=w)},e.prototype.drawHover=function(t,e){var r=this.chartjs,n=r.opts,a=this.origin,i=this.sideArr.length;if(r.oldDataset||o.getDistance(t,e,a.x,a.y)>r.drawer.radius+5)return!1;var s=o.getAngle(a.x,a.y,t,e),c=Math.PI/i,h=Math.floor(s/c);(h=Math.round(h+(1&h?1:0))/2)===i&&(h=0);var u=n.datas.map((function(t){return t[h]}));return this.drawRadar(1,h),n.inWeapp&&r.canvas.draw(!0),n.hover&&n.hover.call(r,h,u,s,t,e),h},e.prototype.draw=function(t,e){var r=this;this.setDataset(t);var n=this.chartjs.opts;e||!n.inBrowser&&!n.inWeapp?(this.drawRadar(1),n.onFinish&&n.onFinish()):this.setAnimation((function(t){r.drawRadar(t),n.onAnimation&&n.onAnimation.call(r,t),n.inWeapp&&r.chartjs.ctx.draw(!0)}))},e.prototype.init=function(){var t=this.chartjs.opts,e=t.noAnimation,r=t.inWeapp;this.draw(!1,e),this.setEvents(),r&&this.chartjs.canvas.draw()},e}(r(10).default);e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(0),i=r(3),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.setDataset=function(){var t,e,r=this.chartjs,n=r.opts,o=n.range,s=n.grid.yTickLength,c=n.datas,h=null,u=null;if(o)h={x:o.x[0],y:o.y[0]},t=(u={x:o.x[1],y:o.y[1]}).x-h.x,e=u.y-h.y;else{var l=[],f=[];a.each(c,(function(t){a.each(t,(function(t){l.push(t[0]),f.push(t[1])}))}));var d=a.getExtremum(l),p=a.getExtremum(f);h={x:d.min,y:p.min},u={x:d.max,y:p.max},t=i.getRange(u.x-h.x),h.x=t>2?Math.floor(h.x):h.x,e=i.getRange(u.y-h.y),h.y=e>2?Math.floor(h.y):h.y}n.xaxisfunc?n.xaxis=[n.xaxisfunc(h.x),n.xaxisfunc(u.x)]:n.xaxis=[h.x.toFixed(2),u.x.toFixed(2)],this.yaxis={min:h.y,max:h.y+e,range:e,unit:e/(s-1)};var v=this.yRate=(30-r._chart.height+n.chartTop)/e,y=this.yBasic=5-this.yaxis.max*v+n.chartTop;this.xaxis={min:h.x,max:h.x+t,range:t,unit:t/4};var x=this.xRate=(r._chart.width-65)/t,g=this.xBasic=50;r.datasets=c.map((function(t){return t.map((function(t){return{x:t[0]*x+g,y:t[1]*v+y,value:t}}))}))},e.prototype.drawPoints=function(t){var e=this;void 0===t&&(t=1);var r=this.chartjs,n=r.opts,i=n.borderRate||.8,o=r.datasets;a.each(o,(function(s,c){var h=a.getColorRgba(n.colors[c],.3),u=(n.pointWidths&&n.pointWidths[c]||6-4*c/o.length)*t,l=u*i;a.each(s,(function(t){e.drawPoint(r.ctx,t.x,t.y,n.colors[c],h,u,l)}))}))},e.prototype.draw=function(t,e){var r=this,n=this.chartjs.opts;this.clearCtn(!t),this.drawDashs(),t&&(this.setDataset(),this.drawTexts()),e||!n.inBrowser&&!n.inWeapp?(this.drawPoints(),n.onFinish&&n.onFinish()):this.setAnimation((function(t){r.clearCtn(!0),r.drawDashs(),r.drawPoints(t),n.onAnimation&&n.onAnimation.call(r,t),n.inWeapp&&r.chartjs.ctx.draw(!0)}))},e.prototype.init=function(){var t=this.chartjs.opts,e=t.noAnimation,r=t.inWeapp;this.draw(!0,e),r&&this.chartjs.canvas.draw()},e}(r(4).default);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),a=r(14),i=r(15),o={version:a.VERSION};a.CHART_LIST.forEach((function(t){Object.defineProperty(o,t,{configurable:!1,enumerable:!0,get:function(){var e=r(18)("./"+t).default;return function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(r,t),r.prototype.init=function(t){t||this.initContext(),this.drawer=new e(this),t||this.drawer.init()},r}(i.default)}})})),t.exports=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CHART_LIST=e.VERSION=void 0,e.VERSION="0.9.11",e.CHART_LIST=["line","bar","scatter","kline","pie","radar"]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=r(2),i=r(17),o=i.default.inBrowser,s=i.default.inWeapp,c=function(){function t(t){this.$el=null,this.drawer=null,this.canvas=null,this.ctx=null;var e=t.id,r=t.colors,a=t.data,s=t.datas;if(e&&(a||s)){o&&(this.$el=document.getElementById(e)),r&&(t.colors=r.concat(i.default.colors));var c=n.cloneObjDeep(i.default,t);a&&(c.datas=[a],delete c.data),this.opts=c}else n.throwError("no container id or datas in options","setConfig")}return t.prototype.update=function(t){t&&(t.data&&(t.datas=[t.data],delete t.data),this.opts=n.cloneObjDeep(this.opts,t)),this.drawer.draw(!0,this.opts.noAnimation)},t.prototype.destory=function(){this.drawer.removeEvents(),this.drawer.removeDatas()},t.prototype.initContext=function(){a.setContext(this,o,s),o&&(this.pixelRatio=a.retinaScale(this.canvas,this.ctx))},t}();e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStyle=void 0,e.getStyle=function(t,e){var r,n=t.currentStyle?t.currentStyle[e]:null===(r=document.defaultView)||void 0===r?void 0:r.getComputedStyle(t,null).getPropertyValue(e),a=n&&n.match(/^(\d+)(\.\d+)?px$/);return a?+a[1]:void 0}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="undefined"!=typeof wx&&void 0!==wx.getSystemInfo,a=n?2:1,i={id:"",inBrowser:"undefined"!=typeof window&&!n,inWeapp:n,backgroundColor:"rgba(0,0,0,0)",colors:["#fe5d4e","#43c2f7","#707ad9","#ffa61b","#64d290","#cf27bd"],duration:600,events:["touchstart","touchmove"],hoverLineColor:"#999",hoverHighlight:.5,grid:{yTickLength:5},bar:{margin:60/a},chartTop:0,chartLeft:50/a,chartRight:15,dash:{color:"#e2e2e2",length:3/a},font:{color:"#666",fontFamily:"Arial",fontSize:{x:"11px",y:"10px"}}};e.default=i},function(t,e,r){var n={"./bar":5,"./bar.ts":5,"./kline":7,"./kline.ts":7,"./line":8,"./line.ts":8,"./pie":9,"./pie.ts":9,"./radar":11,"./radar.ts":11,"./scatter":12,"./scatter.ts":12};function a(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=i,t.exports=a,a.id=18}])}));