UNPKG

66.3 kBJavaScriptView Raw
1var d2recharts=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";var r=n(9),o=n(10),i=n(44),a=n(45),s=n(47),u=n(48),c=n(49),l=n(50),f=n(11),p=n(51),m=n(56),h=n(53),y=n(57),d=n(54),b=n(42),g=n(15),v=n(25);n(58),n(60);var w={Bar:o,Funnel:y,Gauge:i,Indicator:a,Line:s,Line2:u,Pie:c,Radar:l,Recharts:f,Smart:p,Scatter:m,Table:h,Text:d,DataSet:g,OptionGenerator:b};r.extend(w,v,p),e.exports=w},,,function(e,t){e.exports=React},,,,,,function(e,t){e.exports=_},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return!u.isEqual(this.props,e)}},{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=t.horizontal,o={},i=p.pickExcept(t,["data","dimension","measures","horizontal","stack"]),a=e.dataSet=l.try2init(n),s=p.props2DimensionAndMeasures(t,a),c=s.dimension,m=s.measures,h={};t.stack&&(h.stack=!0);var y=new f(u.extend(o,i));return y.configCoordinates(a.colValuesByName[c],r).configLegend(m,a).configMeasures("bar",m,a,h),y.toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=u.extend({stack:s.PropTypes.bool},m.rechartsWithDataAndCoordinates),e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(12),c=n(13),l=n(9),f=n(14),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this,t=e.renderEchartDom(),n=e.props,r=n.onEvents||[];l.forIn(r,function(n,r){l.isString(r)&&l.isFunction(n)&&t.on(r,function(r){n(r,e,t)})}),l.isFunction(n.onChartReady)&&n.onChartReady(e,t),c(e.wrapper,function(){t.resize()})}},{key:"componentDidUpdate",value:function(){this.renderEchartDom()}},{key:"componentWillUnmount",value:function(){u.dispose(this.wrapper)}},{key:"getEchartsInstance",value:function(){var e=this,t=e.props,n=t.option,r=t.theme||n.theme;return u.getInstanceByDom(e.wrapper)||u.init(e.wrapper,r)}},{key:"_adjustDataZoom",value:function(){var e=this,t=this.props.option;t.dataZoom&&!function(){var n=Number.parseInt(e.props.height,10);t.dataZoom=l.map(t.dataZoom,function(e){return"inside"!==e.type&&(e.top=n-20,e.bottom=0,e.right=2),e})}()}},{key:"renderEchartDom",value:function(){this._adjustDataZoom();var e=this,t=e.getEchartsInstance(),n=e.props;return t.setOption(n.option,n.notMerge,n.lazyUpdate),n.showLoading?t.showLoading():t.hideLoading(),t}},{key:"render",value:function(){var e=this,t=l.clone(e.props),n=l.assign({width:t.option.width||t.width,height:t.option.height||t.height},t.style);return delete t.option.width,delete t.option.height,s.createElement("div",{ref:function(t){return e.wrapper=t},className:t.className,style:n})}}]),t}(s.Component);p.propTypes=f.recharts,p.defaultProps={lazyUpdate:!0,notMerge:!0,width:"auto",height:"300px"},e.exports=p},function(e,t){e.exports=echarts},function(e,t){"use strict";var n=function(e,t){function n(e){var t=e.target||e.srcElement;t.__resizeRAF__&&c(t.__resizeRAF__),t.__resizeRAF__=i(function(){var n=t.__resizeTrigger__;void 0!==n&&n.__resizeListeners__.forEach(function(t){t.call(n,e)})})}function r(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)}var o,i,a=this,s=a.document,u=s.attachEvent;"undefined"!=typeof navigator&&(o=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),i=function(){var e=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||function(e){return a.setTimeout(e,20)};return function(t){return e(t)}}();var c=function(){var e=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.clearTimeout;return function(t){return e(t)}}();if(!e.__resizeListeners__)if(e.__resizeListeners__=[],u)e.__resizeTrigger__=e,e.attachEvent("onresize",n);else{"static"===getComputedStyle(e).position&&(e.style.position="relative");var l=e.__resizeTrigger__=s.createElement("object");l.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"),l.setAttribute("class","resize-sensor"),l.__resizeElement__=e,l.onload=r,l.type="text/html",o&&e.appendChild(l),l.data="about:blank",o||e.appendChild(l)}e.__resizeListeners__.push(t)};n.unbind=function(e,t){var n=document.attachEvent;e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(n?e.detachEvent("onresize",resizeListener):(e.__resizeTrigger__.contentDocument.defaultView.removeEventListener("resize",resizeListener),e.__resizeTrigger__=!e.removeChild(e.__resizeTrigger__)))},e.exports="undefined"==typeof window?n:n.bind(window)},function(e,t,n){"use strict";var r=n(3),o=n(9),i=n(15),a=n(25),s={width:r.PropTypes.any,height:r.PropTypes.any,className:r.PropTypes.string,lazyUpdate:r.PropTypes.bool,notMerge:r.PropTypes.bool,onChartReady:r.PropTypes.func,onEvents:r.PropTypes.object,option:r.PropTypes.object,showLoading:r.PropTypes.bool,style:r.PropTypes.object,theme:r.PropTypes.string},u=o.extend({data:r.PropTypes.oneOfType([r.PropTypes.array,r.PropTypes.instanceOf(i),r.PropTypes.object,r.PropTypes.string]).isRequired},s),c=o.extend({horizontal:r.PropTypes.bool,dimension:r.PropTypes.string,dimensions:r.PropTypes.array,measure:r.PropTypes.string,measures:r.PropTypes.array},u),l={recharts:s,rechartsWithData:u,rechartsWithDataAndCoordinates:c};a.propTypes=l,e.exports=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){if(!a.isPlainObject(e))return!1;var t=e.data;if(!a.isArray(t))return!1;if(t.length&&a.some(t,function(e){return!a.isPlainObject(e)}))return!1;for(var n=1;n<t.length;n++)if(t[n]&&!c.containsSameItems(a.keys(t[n]),a.keys(t[n-1])))return!1;return!0}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9),s=n(16),u=n(24),c=n(25),l=function(){function e(t){r(this,e),t=t||[];var n=this;if(t.constructor===n.constructor)return t;if(a.isArray(t))return new e({data:t});if(!o(t))throw new TypeError("new DataSet(source): invalid data set");return n.data=t.data,n.schema=t.schema||[],n.processData()}return i(e,[{key:"processData",value:function(){var e=this,t=e.data;if(!e.schema.length&&t.length){var n=a.keys(t[0]);e.schema=a.map(n,function(e,t){return{index:t,name:e}})}a.each(e.schema,function(e){a.has(e,"comments")||(e.comments=e.displayName||e.name)});var r=a.map(e.schema,function(e){return e.name});return a.each(e.data,function(t){a.forIn(t,function(t,n){a.includes(r,n)||(e.schema.push({name:n,comments:n,index:r.length}),r.push(n))})}),a.each(e.data,function(e){a.each(r,function(t){a.has(e,t)||(e[t]="")})}),e.flattenRows=a.map(e.data,function(t){var n=[];return a.each(e.schema,function(e,r){e.index=r,n.push(t[e.name])}),n}),e.colValuesByName={},a.each(e.data,function(t){a.forIn(t,function(t,n){e.colValuesByName[n]=e.colValuesByName[n]||[],e.colValuesByName[n].push(t)})}),e.colNamesByType={string:[],number:[]},e.colsByType={},e.colByName={},a.each(e.schema,function(t){var n=t.name,r=e.colValuesByName[n];t.values=r;var o=t.type=t.type||c.guessItemsTypes(r);e.colNamesByType[o]||(e.colNamesByType[o]=[]),e.colsByType[o]||(e.colsByType[o]=[]),r.length?t.uniqueRate=a.uniq(r).length/r.length:t.uniqueRate=0,e.colNamesByType[o].push(t.name),e.colsByType[o].push(t),e.colByName[t.name]=t}),e.cols=e.schema,e.rowsCount=t.length,e.colsCount=e.cols.length,e}},{key:"isEmpty",value:function(){var e=this;return 0===e.rowsCount&&0===e.colsCount}}]),e}(),f=[];a.assign(l,{registerConnector:function(e){if(e instanceof u)f.push(e);else try{f.push(new u(e))}catch(e){}f.sort(function(e,t){return t.priority-e.priority})},registerConnectors:function(e){a.each(e,function(e){l.registerConnector(e)})},try2init:function(e){return s.one(a.map(f,function(t){return function(){return t.toDataSet(e)}}))}}),n(38)(l),n(39)(l),n(40)(l),n(41)(l),e.exports=l},function(e,t,n){"use strict";var r=n(17);e.exports={one:function(){var e=r.flatten(r.toArray(arguments)),t=void 0;return e.some(function(e){try{return t=e(),!0}catch(e){return!1}}),t},all:function(){var e=r.flatten(r.toArray(arguments)),t=[];return e.forEach(function(e){try{t.push(e())}catch(e){}}),t}}},function(e,t,n){"use strict";var r=n(18),o=n(21),i=n(20),a=n(22),s=n(23),u=n(19);e.exports=a.extend({global:o},r,i,a,s,u)},function(e,t,n){"use strict";function r(e){return"object"===("undefined"==typeof e?"undefined":l(e))&&p.isFinite(e.length)}function o(e){return r(e)?y.call(e):[]}function i(e){return y.call(e,1)}function a(e,t,n){return e.apply(t,i(n))}function s(e,t){return b(o(e),t)>-1}function u(e){var t=[];return v(e,function(e){s(t,e)||t.push(e)}),t}function c(e){for(var t=o(e),n=[],i=0,a=t.length;i<a;++i)r(t[i])?n=n.concat(t[i]):n[n.length]=t[i];return n}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=n(19),p=n(20),m=f.isArray,h=Array.prototype,y=h.slice,d=function(e){return function(t,n,r){var o=void 0,i=t.length>>>0;if(0===i)return-1;if(r?r<0&&(r=Math.max(0,t.length+r)):r=e?0:t.length,e){for(o=r;o<t.length;o++)if(t[o]===n)return o}else for(o=r;o>=0;o--)if(t[o]===n)return o;return-1}},b=h.indexOf?function(e){return a(h.indexOf,e,arguments)}:d(!0),g=h.lastIndexOf?function(e){return a(h.lastIndexOf,e,arguments)}:d(),v=h.forEach?function(e){a(h.forEach,e,arguments)}:function(e,t,n){for(var r=o(e),i=0;i<r.length;i++)t.call(n,r[i],i,e)},w=h.every?function(e){return a(h.every,e,arguments)}:function(e,t,n){for(var r=o(e),i=0;i<r.length;i++)if(!t.call(n,r[i],i,e))return!1;return!0},_=h.filter?function(e){return a(h.filter,e,arguments)}:function(e,t,n){var r=[];return v(e,function(o,i){t.call(n,o,i,e)&&r.push(o)}),r},x=h.map?function(e){return a(h.map,e,arguments)}:function(e,t,n){var r=[];return v(e,function(o,i){r.push(t.call(n,o,i,e))}),r},O=h.some?function(e){return a(h.some,e,arguments)}:function(e,t,n){var r=void 0;for(r=0;r<e.length;r++)if(t.call(n,e[r],r,e))return!0;return!1},S=h.reduce?function(e){return a(h.reduce,e,arguments)}:function(e,t,n){var r=void 0;n&&(r=n);for(var o=0;o<e.length;o++)r=r?t(r,e[o],o,e):e[o];return r},T=h.reduceRight?function(e){return a(h.reduceRight,e,arguments)}:function(e,t,n){var r=void 0;n&&(r=n);for(var o=e.length-1;o>=0;o--)r=r?t(r,e[o],o,e):e[o];return r},E={contains:s,each:v,every:w,filter:_,flatten:c,index:d,indexOf:b,isArray:m,isArrayLike:r,lastIndexOf:g,map:x,reduce:S,reduceRight:T,some:O,toArray:o,uniq:u,forEach:v,difference:function(e){var t=c(i(arguments));return _(e,function(e){return!s(t,e)})},eachReverse:function(e,t,n){for(var r=o(e),i=r.length-1;i>-1;i-=1)t.call(n,r[i],i,e)},intersect:function(e,t){var n=[];return v(e,function(e){s(t,e)&&n.push(e)}),n},range:function e(t,n,r){null==n&&(n=t||0,t=0),r||(r=n<t?-1:1);for(var o=Math.max(Math.ceil((n-t)/r),0),e=new Array(o),i=0;i<o;i++,t+=r)e[i]=t;return e},remove:function(e,t,n){var r=e.length;if(!p.isNumber(t))return e;var o=e.slice((n||t)+1||r);return e.length=t<0?r+t:t,e.push.apply(e,o)},union:function(){var e=[],t=o(arguments);return v(t,function(t){e=e.concat(t)}),u(e)}};e.exports=E},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r={}.toString,o=function(e,t){return r.call(e)==="[object "+t+"]"},i={isType:o,isArguments:function(e){return o(e,"Arguments")},isArray:Array.isArray?Array.isArray:function(e){return o(e,"Array")},isArrayLike:function(e){return"object"===("undefined"==typeof e?"undefined":n(e))&&isFinite(e.length)},isBoolean:function(e){return o(e,"Boolean")},isDate:function(e){return o(e,"Date")},isError:function(e){return o(e,"Error")},isFunction:function(e){return o(e,"Function")},isNull:function(e){return null===e},isNumber:function(e){return o(e,"Number")},isPlainObject:function(e){return o(e,"Object")},isRegExp:function(e){return o(e,"RegExp")},isString:function(e){return o(e,"String")},isUndefined:function(e){return void 0===e},getType:function(e){var t=r.call(e);return t.replace(/^\[object /,"").replace(/\]$/,"")},isObject:function(e){var t="undefined"==typeof e?"undefined":n(e);return"function"===t||"object"===t&&!!e}};i.isNil=function(e){return i.isNull(e)||i.isUndefined(e)},e.exports=i},function(e,t,n){"use strict";var r=n(19),o=r.isNumber,i=Math.min,a=Math.max,s={isFinite:isFinite,isNaN:isNaN,isNumber:o,isDecimal:function(e){return o(e)&&e%1!==0},isEven:function(e){return o(e)&&e%2===0},isInteger:Number.isInteger?Number.isInteger:function(e){return o(e)&&e%1===0},isNegative:function(e){return o(e)&&e<0},isOdd:function(e){return o(e)&&e%2!==0},isPositive:function(e){return o(e)&&e>0},toFloat:function(e){return parseFloat(e)},toInteger:function(e,t){return parseInt(e,t||10)},isInRange:function(e,t,n){return t=+t||0,void 0===n?(n=t,t=0):n=+n||0,e>=i(t,n)&&e<a(t,n)}};s.isInFinite=function(e){return!s.isFinite(e)},e.exports=s},function(e,t){(function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r="undefined",o={};("undefined"==typeof window?"undefined":n(window))!==r?o=window:("undefined"==typeof t?"undefined":n(t))!==r?o=t:("undefined"==typeof self?"undefined":n(self))!==r&&(o=self),e.exports=o}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return p(e)?e:{}}function o(e,t,n){var o=r(e);for(var i in o)({}).hasOwnProperty.call(o,i)&&t.call(n,o[i],i,e)}function i(e){var t=[];return o(e,function(e){t.push(e)}),t}function a(e){return e=e||{},y(b(arguments).slice(1),function(t){t&&o(t,function(n,r){e[r]=t[r]})}),e}function s(e){return e=e||{},y(b(arguments).slice(1),function(t){o(t,function(n,r){c(t[r])!==c(e[r])?p(t[r])?(e[r]={},s(e[r],t[r])):e[r]=t[r]:p(t[r])?s(e[r],t[r]):e[r]=t[r]})}),e}var u=n(19),c=u.getType,l=u.isFunction,f=u.isObject,p=u.isPlainObject,m=n(18),h=m.contains,y=m.each,d=m.isArrayLike,b=m.toArray,g=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return o(e,function(n,r){l(e)&&"prototype"===r||t.push(r)}),t},v={extend:a,forIn:o,isObject:f,isPlainObject:p,keys:g,merge:s,values:i,assign:a,hasKey:function(e,t){return{}.hasOwnProperty.call(e,t)},hasValue:function(e,t){return h(i(e),t)},invert:function(e){var t={};return o(e,function(e,n){t[e]=n}),t},clone:function(e){return d(e)?b(e):p(e)?s({},e):e},destroy:function(e){o(e,function(t,n){delete e[n]}),e.prototype=null,e=null}};e.exports=v},function(e,t,n){"use strict";function r(e){return e.toString()}var o=n(19),i=o.isString,a=String.prototype,s={isString:i,trim:function(e){return e=r(e),a.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},trimLeft:function(e){return e=r(e),a.trimLeft?e.trimLeft():e.replace(/^\s+/g,"")},trimRight:function(e){return e=r(e),a.trimRight?e.trimRight():e.replace(/^\s+/g,"")},lc:function(e){return r(e).toLowerCase()},uc:function(e){return r(e).toUpperCase()},hasSubString:function(e,t){return r(e).indexOf(r(t))>-1}};e.exports=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return!!i.isPlainObject(e)&&(!(!i.isNil(e.priority)&&!i.isNumber(e.priority))&&!!i.isFunction(e.toDataSet))}var i=n(9),a={priority:0,toDataSet:function(){throw new Error("invalid connector")}},s=function e(t){r(this,e);var n=this;if(t.constructor===n.constructor)return t;if(t=i.assign({},a,t),!o(t))throw new TypeError("new Rule(props): invalid props");i.assign(n,t)};s.isValidConnector=o,e.exports=s},function(e,t,n){"use strict";var r=n(26),o=n(27),i=n(28),a=n(29),s=n(30),u=n(31),c=n(32),l=n(33),f=n(35),p=n(36);e.exports={containsSameItems:r,guessDimensionAndMeasures:o,guessItemsTypes:i,guessTextWidth:p,meta2schema:f,mockData:l,parseExtraOption:a,pickExcept:s,props2DimensionAndMeasures:c,roundNumberRange:u,reverseFormatter:n(37)}},function(e,t,n){"use strict";function r(e,t){if(!o.isArray(e)||!o.isArray(t)||e.length!==t.length)return!1;for(var n=e.sort(),i=t.sort(),a=0;a<n.length;a++){var s=n[a],u=i[a];if(o.isArray(s)&&!r(s,u))return!1;if(s!==u)return!1}return!0}var o=n(9);e.exports=r},function(e,t,n){"use strict";function r(e){var t={},n=(e.colsByType.string||[]).sort(function(e,t){return t.uniqueRate-e.uniqueRate}),r=e.cols.sort(function(e,t){return t.uniqueRate-e.uniqueRate});return n.length?t.dimension=n[0].name:t.dimension=r[0].name,t.measures=o.difference(o.map(e.colsByType.number||[],function(e){return e.name}),[t.dimension]),t.measuresRight=o.difference(o.map(e.colsByType.number||[],function(e){return e.name}),[t.dimension]),t}var o=n(9);e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(9);e.exports=function(e){var t={},n="undefined",i=0;return o.each(e,function(e){var n="undefined"==typeof e?"undefined":r(e);o.has(t,n)||(t[n]=0),t[n]++}),o.forIn(t,function(e,t){e>i&&(i=e,n=t)}),n}},function(e,t,n){"use strict";function r(e){var t={};return o.forIn(e,function(e,n){for(var a=n.split(i),s=t,u=void 0;a.length>1;)u=a.shift(),s[u]=s[u]||{},s=s[u];u=a.shift(),s[u]=o.isPlainObject(e)?r(e):e}),t}var o=n(9),i="_";e.exports=r},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t){var n=r.keys(e),o=r.difference(n,t);return r.pick(e,o)}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=e;;){if(n>=e){r=n;break}n*=n>=100?2:t}return r}var o=n(9);e.exports=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=o.flatten(t);var i=Math.max.apply(null,t),a=Math.min.apply(null,t),s={max:100,min:0};if(i>0&&a>0&&(s.min=0,s.max=r(i)),i<0&&a<0&&(s.max=0,s.min=-r(-a)),i>0&&a<0){var u=Math.max(r(i),r(-a));s.max=u,s.min=-u}return s}},function(e,t,n){"use strict";function r(e,t){var n=e.dimension||"",r=e.measures||[],i=e.measuresRight||[],a=o(t);return n||(n=a.dimension),r&&r.length||(r=a.measures),i&&i.length||(i=a.measuresRight),{dimension:n,measures:r,measuresRight:i}}var o=n(27);e.exports=r},function(e,t,n){"use strict";function r(e,t){return Math.floor(Math.random()*(t-e))+e}function o(e){return e[r(0,e.length-1)]}function i(e,t){switch(t=t||"string"){case"number":return r(0,100);case"string":return"name"===e?o(u):c;case"boolean":return[!0,!1][r(0,1)];case"date":return new Date(r(0,Date.now()));default:return c}}var a=n(9),s=n(34),u=["Jack","James","John","Lucy","Mary","Rose","Vincent"],c=s.DEFAULT_MOCK_STR;e.exports=function(e,t){t=t||2;for(var n=[],r=function(t){var r={};a.each(e,function(e){r[e.name]=i(e.name,e.type)}),n.push(r)},o=0;o<t;o++)r(o);return n}},function(e,t){"use strict";var n={DEFAULT_THEME_NAME:"d2recharts-default",DEFAULT_MOCK_STR:"test data"};e.exports=n},function(e,t){"use strict";e.exports=function(e){return e}},function(e,t){"use strict";var n=void 0;document.querySelector("#d2recharts-canvas")?n=document.querySelector("#d2recharts-canvas"):(n=document.createElement("canvas"),n.id="d2recharts-canvas");var r=n.getContext("2d");r.font="12px sans-serif",e.exports=function(e){var t=r.measureText(e);return t.width}},function(e,t){"use strict";function n(e){return e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")}e.exports=function(e){var t=n(e),r=["{value}"],o=t.match(/prefix\(['"]?(.+?)['"]?\)/),i=t.match(/suffix\(['"]?(.+?)['"]?\)/);return o&&o[1]&&r.unshift(o[1]),i&&i[1]&&r.push(i[1]),r.join("")}},function(e,t,n){"use strict";function r(e,t){t=t||",";var n=[],r=e.split("\n"),i=r.shift(),a=i.split(t);return o.each(r,function(e){var r=e.split(t),i={};r.length===a.length&&(o.each(r,function(e,t){i[a[t]]=isNaN(e)?e:parseFloat(e,10)}),n.push(i))}),n}var o=n(9);e.exports=function(e){function t(t){if(!o.isString(t))throw new TypeError("DataSet.fromCSV(source): invalid CSV data");return new e(r(t))}e.fromCSV=e.fromCsv=t,e.registerConnector({toDataSet:t})}},function(e,t){"use strict";e.exports=function(e){e.registerConnectors([{priority:-1,toDataSet:function(){return new e}},{priority:10,toDataSet:function(t){return new e(t)}}])}},function(e,t,n){"use strict";function r(e){if(!i.isPlainObject(e))return!1;var t=e.data,n=e.schema;return!(!i.isArray(t)||!i.isArray(n))&&((!t.length||!i.some(t,function(e){return!i.isArray(e)}))&&(!n.length||!i.some(n,function(e){return!i.isPlainObject(e)||!i.has(e,"index")})))}function o(e){var t=e.data,n=e.schema,r={data:[],schema:n};return t.length&&n.length&&!function(){var e=n.sort(function(e,t){return e.index-t.index});i.each(t,function(t){var n={};i.each(t,function(t,r){n[e[r].name]=t}),r.data.push(n)})}(),r}var i=n(9);e.exports=function(e){function t(t){if(!r(t))throw new TypeError("DataSet.fromFlattenData(source): invalid flatten data");return new e(o(t))}e.fromFlattenData=t,e.registerConnector({toDataSet:t})}},function(e,t,n){"use strict";var r=n(9),o=n(25);e.exports=function(e){function t(t){if(!r.isArray(t))throw new TypeError("DataSet.mockFromMeta(meta): invalid meta");var n={data:o.mockData(t),schema:o.meta2schema(t)};return new e(n)}e.mockFromMeta=e.mockFromSchema=t,e.registerConnector({toDataSet:t})}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(9),a=n(43),s=n(25),u=n(34),c={animation:!1,theme:u.DEFAULT_THEME_NAME,tooltip:{},toolbox:{feature:{}}},l=function(){function e(t){r(this,e);var n=this;t=t||{},n._option={},i.merge(n._option,c),i.merge(n._option,s.parseExtraOption(t)),this._configLayout()}return o(e,[{key:"configCoordinates",value:function(e,t,n){var r=this,o=r._option;n=n||{};var a="xAxis",s="yAxis";if(t){var u=s;s=a,a=u}return o[a]=i.extend(o[a],{type:"category",data:e},n.category),console.log("extraOption.yAxis",n.yAxis),n.yAxis?o[s]=n.yAxis:o[s]=[{type:"value"}],i.merge(o.xAxis,this._configXLabel(e,o.grid.bottom)),i.merge(o[s][0],{name:o["data-yAxisName"]||"",max:i.isNumber(o["data-yAxisMax"])?o["data-yAxisMax"]:"auto",min:i.isNumber(o["data-yAxisMin"])?o["data-yAxisMin"]:"auto"}),o["data-showDataZoomInside"]?o.dataZoom=[{show:!0,type:"slider",start:i.isPlainObject(o["data-dataZoomInside"])?o["data-dataZoomInside"].start:0,end:i.isPlainObject(o["data-dataZoomInside"])?o["data-dataZoomInside"].end:100}]:o.xAxis.axisLabel=i.merge(o.xAxis.axisLabel,{interval:Math.round(e.length/10)}),r}},{key:"configMeasures",value:function(e,t,n,r){var o=this,u=o._option;return u.series=[],i.each(t,function(t){var o=n.colByName[t],c=i.find(n.schema,{name:t}),l=n.colValuesByName[t];i.isEmpty(c.format)||!function(){l=l.map(function(e){return a(e).value()});var e=s.reverseFormatter(c.format);"{value}"!==e&&u.yAxis.forEach(function(t){t.axisLabel=i.merge(u.yAxis.axisLabel,{formatter:e})})}(),u.series.push(i.extend({name:o.comments,type:e,data:l,label:{normal:{show:u["data-showNormalLabel"]||!1}},areaStyle:{normal:{opacity:u["data-showAreaStyle"]?1:0}},yAxisIndex:r.measuresRight&&r.measuresRight.indexOf(t)>-1?1:0},r))}),o}},{key:"configLegend",value:function(e,t){var n=this;return n._option.legend={data:i.map(e,function(e){return t.colByName[e].comments})},n}},{key:"configLegendByData",value:function(e){var t=this;return t._option.legend={data:e},t}},{key:"toOption",value:function(){return this._option}},{key:"_configLayout",value:function(){switch(this._option.padding){case"large":this._option.grid={left:100,right:100,bottom:30};break;case"small":this._option.grid={left:50,right:50,bottom:30,containLabel:!0};break;case"none":this._option.grid={left:0,right:0,bottom:30,containLabel:!0}}}},{key:"_configXLabel",value:function(){var e=50*Math.sqrt(2)-8;return{axisLabel:{formatter:function(t){var n=s.guessTextWidth(t);if(n>e){for(var r=Math.floor(e/12),o=r,i=t.substr(0,o);s.guessTextWidth(i+"...")<=e;)i+=t[o],o++;return i+"..."}return t}}}}}]),e}();e.exports=l},function(e,t,n){var r,o;"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/*! @preserve
2 * numeral.js
3 * version : 2.0.4
4 * author : Adam Draper
5 * license : MIT
6 * http://adamwdraper.github.com/Numeral-js/
7 */
8!function(i,a){r=a,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o))}(void 0,function(){function e(e,t){this._input=e,this._value=t}var t,n,r="2.0.4",o={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0"},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat};return t=function(r){var i,a,u,c;if(t.isNumeral(r))i=r.value();else if(0===r||"undefined"==typeof r)i=0;else if(null===r||n.isNaN(r))i=null;else if("string"==typeof r)if(s.zeroFormat&&r===s.zeroFormat)i=0;else if(s.nullFormat&&r===s.nullFormat||!r.replace(/[^0-9]+/g,"").length)i=null;else{for(a in o)if(c="function"==typeof o[a].regexps.unformat?o[a].regexps.unformat():o[a].regexps.unformat,c&&r.match(c)){u=o[a].unformat;break}u=u||t._.stringToNumber,i=u(r)}else i=Number(r)||null;return new e(r,i)},t.version=r,t.isNumeral=function(t){return t instanceof e},t._=n={numberToFormat:function(e,n,r){var o,a,s,u,c,l,f,p=i[t.options.currentLocale],m=!1,h=!1,y="",d=1e12,b=1e9,g=1e6,v=1e3,w="",_=!1;if(e=e||0,a=Math.abs(e),t._.includes(n,"(")?(m=!0,n=n.replace(/[\(|\)]/g,"")):(t._.includes(n,"+")||t._.includes(n,"-"))&&(c=t._.includes(n,"+")?n.indexOf("+"):e<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),t._.includes(n,"a")&&(o=n.match(/a(k|m|b|t)?/),o=!!o&&o[1],t._.includes(n," a")&&(y=" "),n=n.replace(new RegExp(y+"a[kmbt]?"),""),a>=d&&!o||"t"===o?(y+=p.abbreviations.trillion,e/=d):a<d&&a>=b&&!o||"b"===o?(y+=p.abbreviations.billion,e/=b):a<b&&a>=g&&!o||"m"===o?(y+=p.abbreviations.million,e/=g):(a<g&&a>=v&&!o||"k"===o)&&(y+=p.abbreviations.thousand,e/=v)),t._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=e.toString().split(".")[0],u=n.split(".")[1],l=n.indexOf(","),u?(t._.includes(u,"[")?(u=u.replace("]",""),u=u.split("["),w=t._.toFixed(e,u[0].length+u[1].length,r,u[1].length)):w=t._.toFixed(e,u.length,r),s=w.split(".")[0],w=t._.includes(w,".")?p.delimiters.decimal+w.split(".")[1]:"",h&&0===Number(w.slice(1))&&(w="")):s=t._.toFixed(e,null,r),y&&!o&&Number(s)>=1e3&&y!==p.abbreviations.trillion)switch(s=String(Number(s)/1e3),y){case p.abbreviations.thousand:y=p.abbreviations.million;break;case p.abbreviations.million:y=p.abbreviations.billion;break;case p.abbreviations.billion:y=p.abbreviations.trillion}return t._.includes(s,"-")&&(s=s.slice(1),_=!0),l>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+w+(y?y:""),m?f=(m&&_?"(":"")+f+(m&&_?")":""):c>=0?f=0===c?(_?"-":"+")+f:f+(_?"-":"+"):_&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=i[s.currentLocale],a=e,u={thousand:3,million:6,billion:9,trillion:12};if(s.zeroFormat&&e===s.zeroFormat)n=0;else if(s.nullFormat&&e===s.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,"."));for(t in u)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,u[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return"number"==typeof e&&isNaN(e)}),includes:function(e,t){return e.indexOf(t)!==-1},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var r=n.multiplier(t);return e>r?e:r},1)},toFixed:function(e,t,n,r){var o,i,a,s,u=e.toString().split("."),c=t-(r||0);return o=2===u.length?Math.min(Math.max(u[1].length,c),t):c,a=Math.pow(10,o),s=(n(e*a)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},t.options=s,t.formats=o,t.locales=i,t.locale=function(e){return e&&(s.currentLocale=e.toLowerCase()),s.currentLocale},t.localeData=function(e){if(!e)return i[s.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},t.reset=function(){for(var e in a)s[e]=a[e]},t.zeroFormat=function(e){s.zeroFormat="string"==typeof e?e:null},t.nullFormat=function(e){s.nullFormat="string"==typeof e?e:null},t.defaultFormat=function(e){s.defaultFormat="string"==typeof e?e:"0.0"},t.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},t.validate=function(e,n){var r,o,i,a,s,u,c,l;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(""===e)return!1;try{c=t.localeData(n)}catch(e){c=t.localeData(t.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,l=e.match(/^[^\d]+/),(null===l||(e=e.substr(1),l[0]===i))&&(l=e.match(/[^\d]+$/),(null===l||(e=e.slice(0,-1),l[0]===s.thousand||l[0]===s.million||l[0]===s.billion||l[0]===s.trillion))&&(u=new RegExp(o+"{2}"),!e.match(/[^\d.,]/g)&&(a=e.split(r),!(a.length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(u):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(u)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(u)&&!!a[1].match(/^\d+$/)))))},t.fn=e.prototype={clone:function(){return t(this)},format:function e(n,r){var i,a,u,c=this._value,e=n||s.defaultFormat;if(r=r||Math.round,0===c&&null!==s.zeroFormat)a=s.zeroFormat;else if(null===c&&null!==s.nullFormat)a=s.nullFormat;else{for(i in o)if(e.match(o[i].regexps.format)){u=o[i].format;break}u=u||t._.numberToFormat,a=u(c,e,r)}return a},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){function t(e,t,n,o){return e+Math.round(r*t)}var r=n.correctionFactor.call(null,this._value,e);return this._value=n.reduce([this._value,e],t,0)/r,this},subtract:function(e){function t(e,t,n,o){return e-Math.round(r*t)}var r=n.correctionFactor.call(null,this._value,e);return this._value=n.reduce([e],t,Math.round(this._value*r))/r,this},multiply:function(e){function t(e,t,r,o){var i=n.correctionFactor(e,t);return Math.round(e*i)*Math.round(t*i)/Math.round(i*i)}return this._value=n.reduce([this._value,e],t,1),this},divide:function(e){function t(e,t,r,o){var i=n.correctionFactor(e,t);return Math.round(e*i)/Math.round(t*i)}return this._value=n.reduce([this._value,e],t),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]};t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp("("+e.suffixes.concat(n.suffixes).join("|")+")")},format:function(r,o,i){var a,s,u,c,l=t._.includes(o,"ib")?n:e,f=t._.includes(o," b")||t._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=l.suffixes.length;s++)if(u=Math.pow(l.base,s),c=Math.pow(l.base,s+1),null===r||0===r||r>=u&&r<c){f+=l.suffixes[s],u>0&&(r/=u);break}return a=t._.numberToFormat(r,o,i),a+f},unformat:function(r){var o,i,a=t._.stringToNumber(r);if(a){for(o=e.suffixes.length-1;o>=0;o--){if(t._.includes(r,e.suffixes[o])){i=Math.pow(e.base,o);break}if(t._.includes(r,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var o,i,a,s=t.locales[t.options.currentLocale],u={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=t._.numberToFormat(e,n,r),e>=0?(u.before=u.before.replace(/[\-\(]/,""),u.after=u.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(u.before,"-")&&!t._.includes(u.before,"(")&&(u.before="-"+u.before),a=0;a<u.before.length;a++)switch(i=u.before[a]){case"$":o=t._.insert(o,s.currency.symbol,a);break;case" ":o=t._.insert(o," ",a)}for(a=u.after.length-1;a>=0;a--)switch(i=u.after[a]){case"$":o=a===u.after.length-1?o+s.currency.symbol:t._.insert(o,s.currency.symbol,-(u.after.length-(1+a)));break;case" ":o=a===u.after.length-1?o+" ":t._.insert(o," ",-(u.after.length-(1+a)))}return o}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var o,i="number"!=typeof e||t._.isNaN(e)?"0e+0":e.toExponential(),a=i.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),o=t._.numberToFormat(Number(a[0]),n,r),o+"e"+a[1]},unformat:function(e){function n(e,n,r,o){var i=t._.correctionFactor(e,n),a=e*i*(n*i)/(i*i);return a}var r=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),o=Number(r[0]),i=Number(r[1]);return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([o,Math.pow(10,i)],n,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var o,i=t.locales[t.options.currentLocale],a=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(e),o=t._.numberToFormat(e,n,r),o+a}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var o,i=t._.includes(n," %")?" ":"";return e*=100,n=n.replace(/\s?\%/,""),o=t._.numberToFormat(e,n,r),t._.includes(o,")")?(o=o.split(""),o.splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(e){return.01*t._.stringToNumber(e)}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}})}(),t})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=t.rowIndex,o=t.measures,i={tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}"}},a=p.pickExcept(t,["data","rowIndex","measures"]),s=e.dataSet=l.try2init(n);r||(r=0),o||(o=s.colNamesByType.number);var c=[],m=[],h=u.pick(s.data[r],o);if(u.forIn(h,function(e,t){var n=parseFloat(e,10),r=s.colByName[t];u.isNaN(n)||(c.push({key:t,value:n,name:r.comments}),m.push(n))}),c.length){var y=p.roundNumberRange(m);u.merge(i,{series:[{data:c,max:y.max,min:y.min,type:"gauge"}]},a)}var d=new f(i);return d.toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=u.extend({measures:s.PropTypes.array,rowIndex:s.PropTypes.number},m.rechartsWithData),e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(9),u=n(15),c=n(14),l=n(46),f=n(25),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"renderContent",value:function(){function e(e,t){var n="",r="";0===t&&(r+=" first"),t===c&&(r+=" last");var a=o.dimension,u=o.measures||[];return e[a]?(n='<div class="dimension">\n <span class="key">'+i[a].comments+'</span>\n <span class="value">'+e[a]+'</span>\n </div>\n <div class="measure-wrapper">',s.forIn(e,function(e,t){if(t!==a&&s.includes(u,t)){var r=i[t].comments,o=e<=0?"green":"red";n+='<div class="measure">\n <span class="key">'+r+'</span>\n <span class="value d2recharts-'+o+'">'+e+"</span>\n </div>"}})):u.length&&!function(){var t=o.measures[0];n='<div class="main-measure">\n <span class="key">'+i[t].comments+'</span>\n <span class="value">'+e[t]+'</span>\n </div>\n <div class="measure-wrapper">',s.forIn(e,function(e,r){if(r!==t&&s.includes(u,r)){var o=i[r].comments,a=e<=0?"green":"red";n+='<div class="measure">\n <span class="key">'+o+'</span>\n <span class="value d2recharts-'+a+'">'+e+"</span>\n </div>"}})}(),n+="</div>",'<li class="d2indicator-item '+r+'">'+n+"</li>"}var t=this,n=s.merge({sample:!0},t.props),r=u.try2init(n.data),o=f.props2DimensionAndMeasures(n,r),i=r.colByName,a=r.data,c=a.length,l=t.wrapper;return n.sample?l.innerHTML='<ul class="d2indicator show-sample">\n '+e(a[0],0)+"\n </ul>":l.innerHTML='<ul class="d2indicator">\n '+s.map(a,function(t,n){return e(t,n)}).join("")+"\n </ul>",t}}]),t}(l);p.propTypes=c.rechartsWithData,e.exports=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(14),l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this,t=e.props,n=e.wrapper,r=t.onEvents||[];u.forIn(r,function(t,r){u.isString(r)&&u.isFunction(t)&&n.addEventListener(r,function(n){t(n,e,e.wrapper)})}),this.renderContent(),u.isFunction(t.onChartReady)&&t.onChartReady(e,n)}},{key:"componentDidUpdate",value:function(){this.renderContent()}},{key:"renderContent",value:function(){}},{key:"render",value:function(){var e=this,t=u.clone(e.props),n=u.extend({height:"auto"},t.style);return t.height&&(n.height=t.height,delete t.height),t.width&&(n.width=t.width,delete t.width),s.createElement("div",{ref:function(t){return e.wrapper=t},className:e.props.className,style:n})}}]),t}(s.Component);l.propTypes=c.rechartsWithData,e.exports=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return!u.isEqual(this.props,e)}},{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=t.horizontal,o={tooltip:{trigger:"axis"}},i=p.pickExcept(t,["data","dimension","measures","horizontal","stack"]),a=e.dataSet=l.try2init(n),s=p.props2DimensionAndMeasures(t,a),c=s.dimension,m=s.measures,h={};t.stack&&(h.stack=!0);var y=new f(u.merge(o,i));return y.configCoordinates(a.colValuesByName[c],r,{boundaryGap:!0}).configLegend(m,a).configMeasures("line",m,a,h),y.toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=u.extend({stack:s.PropTypes.bool},m.rechartsWithDataAndCoordinates),e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=t.horizontal,o={tooltip:{trigger:"axis"}},i=p.pickExcept(t,["data","dimension","measures","horizontal","stack"]),a=e.dataSet=l.try2init(n),s=p.props2DimensionAndMeasures(t,a),c=s.dimension,m=s.measures,h=s.measuresRight||[];console.log("measures",m),console.log("measuresRight",h);var y=m.concat(h),d={};t.stack&&(d.stack=!0),d.measures=m,d.measuresRight=h,d.allMeasures=y;var b=new f(u.merge(o,i));return b.configCoordinates(a.colValuesByName[c],r,{boundaryGap:!0,yAxis:[{type:"value"},{type:"value"}]}).configLegend(y,a).configMeasures("line",y,a,d),console.log("optionGenerator.toOption()",b.toOption()),b.toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=u.extend({stack:s.PropTypes.bool},m.rechartsWithDataAndCoordinates),e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return!u.isEqual(this.props,e)}},{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=t.dimension,o=t.measure||(t.measures?t.measures[0]:""),i={calculable:!0,tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"}},a=p.pickExcept(t,["data","dimension","measure","measures"]),s=e.dataSet=l.try2init(n);r||(r=s.colNamesByType.string[0]),o||(o=s.colNamesByType.number[0]);var c=u.map(s.data,function(e){return{name:e[r],value:e[o]}});if(u.isNumber(t["data-piecesCount"])){var m=c.splice(t["data-piecesCount"]),h=0;m.forEach(function(e){h+=e.value}),c.push({name:"其他",value:h})}u.merge(i,{series:[{name:s.colByName[o].comments,type:"pie",data:c}]},a);var y=new f(i);return y.toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=u.extend({dimension:s.PropTypes.string,measure:s.PropTypes.string},m.rechartsWithData),e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=p.pickExcept(t,["data","dimension","measures"]),o=e.dataSet=l.try2init(n),i=p.props2DimensionAndMeasures(t,o),a=i.dimension,s=i.measures,c=0,m=o.colValuesByName,h=o.colByName,y=m[a];u.each(s,function(e){var t=Math.max.apply(null,m[e]);t>c&&(c=t)});var d={radar:{indicator:u.map(y,function(e){return{max:c,name:e}})},series:[{name:h[a].comments,type:"radar",areaStyle:{normal:{}},data:u.map(s,function(e){var t=h[e];return{name:t.comments,value:m[e]}})}]},b=new f(u.extend(d,r));return b.configLegend(s,o).toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=m.rechartsWithDataAndCoordinates,e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3),c=n(9),l=n(15),f=n(25),p=n(14),m=n(52),h=n(53),y=n(54),d=[],b=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"suggestChart",value:function(e,t){return this.constructor.suggestChart(e,t)}},{key:"render",value:function(){var e=this,n=e.props,r=n.data,o=f.pickExcept(n,["data"]),i=l.try2init(r),s=f.props2DimensionAndMeasures(n,i),c=t.suggestChart(i,s);return u.createElement(c,a({data:i},o))}}]),t}(u.Component);c.extend(b,{registerRule:function(e){if(e instanceof m)d.push(e);else try{d.push(new m(e))}catch(e){}d.sort(function(e,t){return t.priority-e.priority})},registerRules:function(e){c.each(e,function(e){b.registerRule(e)})},suggestAllCharts:function(e,t){var n=[];return c.each(d,function(r){var o=r.suggest(e,t);o&&n.push(o)}),c.uniq(n.concat([h,y]))},suggestChart:function(e,t){var n=void 0;return c.some(d,function(r){return n=r.suggest(e,t),!!n}),n?n:h}}),b.propTypes=p.rechartsWithData,n(55)(b),e.exports=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return!!i.isPlainObject(e)&&(!(!i.isNil(e.priority)&&!i.isNumber(e.priority))&&!!i.isFunction(e.suggest))}var i=n(9),a={priority:0,suggest:function(){throw new Error("invalid rule")}},s=function e(t){r(this,e);var n=this;if(t.constructor===n.constructor)return t;if(t=i.assign({},a,t),!o(t))throw new TypeError("new Rule(props): invalid props");i.assign(n,t)};s.isValidRule=o,e.exports=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(9),u=n(15),c=n(14),l=n(46),f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"renderContent",value:function(){var e=this,t=e.props,n=u.try2init(t.data),r=s.map(n.schema,function(e){return e.name}),o=n.colByName,i=n.data,a=e.wrapper;return a.innerHTML='<table class="d2recharts-table">\n<thead>\n<tr>\n'+s.map(r,function(e){var t=o[e]||{};return"<th>"+t.comments+"</th>"}).join("")+"\n</tr>\n</thead>\n<tbody>\n"+s.map(i,function(e){return"<tr>"+s.map(r,function(t){return"<td>"+e[t]+"</td>"}).join("")+"</tr>"}).join("")+"\n</tbody>\n</table>",e}}]),t}(l);f.propTypes=c.rechartsWithData,e.exports=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(15),u=n(14),c=n(46),l="Empty data set",f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"renderContent",value:function(){var e=this,t=e.props,n=s.try2init(t.data),r=e.wrapper,o="";return o=n.isEmpty()?l:n.schema[0].comments+": "+n.flattenRows[0][0],r.innerHTML='<p class="d2recharts-text">'+o+"</p>",e}}]),t}(c);f.propTypes=u.rechartsWithData,e.exports=f},function(e,t,n){"use strict";function r(e){return!e.dimension&&e.measures&&e.measures.length>0}function o(e){return e.dimension&&e.measures.length>0}var i=n(10),a=n(44),s=n(45),u=n(47),c=n(49),l=n(50),f=n(53),p=n(54);e.exports=function(e){e.registerRules([{priority:2,suggest:function(e,t){if(r(t))return a}},{priority:1,suggest:function(e,t){if(r(t))return s}},{priority:3,suggest:function(e,t){if(o(t))return i}},{priority:3,suggest:function(e,t){if(o(t))return u}},{priority:2,suggest:function(e,t){if(o(t)&&e.rowsCount<=20)return c}},{priority:4,suggest:function(e,t){if(o(t)&&e.rowsCount>=3&&e.rowsCount<10)return l}},{suggest:function(e,t){if(t.dimension)return s}},{suggest:function(e){if(e.isEmpty()||1===e.rowsCount&&1===e.colsCount)return p}},{suggest:function(e){if(!e.isEmpty())return f}}])}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r=p.pickExcept(t,["data","measures"]),o=e.dataSet=l.try2init(n),i=o.colByName,a=p.props2DimensionAndMeasures(t,o),s=a.dimension,c=a.measures;if(c.length<2&&"number"===i[s].type&&c.unshift(s),c.length<2)throw new TypeError("Scatter needs more than two measures.");
9for(var m=[],h=0;h<=1;h++){var y=c[h],d=o.colByName[y],b=u.map(o.colValuesByName[y],function(e){var t=parseFloat(e,10);return u.isNaN(t)?0:t}),g=p.roundNumberRange(b);m.push({col:d,max:g.max,min:g.min,colName:y,range:g,title:d.comments,values:b})}var v=m[0],w=m[1];if(t.horizontal){var _=v;v=w,w=_}var x={tooltip:{formatter:"({c})"},xAxis:{type:"value",name:v.title,nameGap:25,nameLocation:"middle",min:v.min,max:v.max},yAxis:{type:"value",name:w.title,min:w.min,max:w.max},series:{type:"scatter",data:u.map(v.values,function(e,t){return[e,w.values[t]]})}},O=new f(u.extend(x,r));return O.configLegend(c,o).toOption()}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=m.rechartsWithDataAndCoordinates,e.exports=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),u=n(9),c=n(11),l=n(15),f=n(42),p=n(25),m=n(14),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"getOption",value:function(){var e=this,t=e.props,n=t.data,r={tooltip:{trigger:"item"},labelLine:{normal:{show:!1}},itemStyle:{normal:{opacity:.7}}},o=p.pickExcept(t,["data","dimension","measures","horizontal","stack"]),i=e.dataSet=l.try2init(n),a=p.props2DimensionAndMeasures(t,i),s=a.dimension,c=a.measures,m={},h=new f(u.extend(r,o));h.configLegendByData(i.colValuesByName[s]).configMeasures("funnel",c,i,m);var y=h.toOption(),d=y.legend.data;return u.each(y.series,function(e){var t=e.data;e.data=u.map(t,function(e,t){return{name:d[t],value:e}}),e.label={normal:{show:!1}}}),y}},{key:"render",value:function(){return s.createElement(c,{option:this.getOption()})}}]),t}(s.Component);h.propTypes=u.extend({stack:s.PropTypes.bool},m.rechartsWithDataAndCoordinates),e.exports=h},function(e,t,n){"use strict";var r=n(12),o=n(59),i=n(34);r.registerTheme(i.DEFAULT_THEME_NAME,o),r.registerTheme("warm-color",o)},function(e,t){e.exports={color:["#8fd3e8","#c0f0a2","#fcc978","#fa8072","#7d6951","#ffd621","#73bb4e","#a0d772","#60a8a4","#4682b4","#6495ed","#475569"],backgroundColor:"rgba(0, 0, 0, 0)",textStyle:{},title:{textStyle:{color:"#333"},subtextStyle:{color:"#999999"}},line:{itemStyle:{normal:{borderWidth:1}},lineStyle:{normal:{width:2}},symbolSize:4,symbol:"image://",smooth:!1},radar:{itemStyle:{normal:{borderWidth:1}},lineStyle:{normal:{width:2}},symbolSize:4,symbol:"emptyCircle",smooth:!1},bar:{itemStyle:{normal:{barBorderWidth:0,barBorderColor:"#ccc"},emphasis:{barBorderWidth:0,barBorderColor:"#ccc"}}},pie:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},scatter:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},boxplot:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},parallel:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},sankey:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},funnel:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},gauge:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"},emphasis:{borderWidth:0,borderColor:"#ccc"}}},candlestick:{itemStyle:{normal:{color:"#c23531",color0:"#314656",borderColor:"#c23531",borderColor0:"#314656",borderWidth:1}}},graph:{itemStyle:{normal:{borderWidth:0,borderColor:"#ccc"}},lineStyle:{normal:{width:1,color:"#aaa"}},symbolSize:4,symbol:"emptyCircle",smooth:!1,color:["#8fd3e8","#c0f0a2","#fcc978","#fa8072","#7d6951","#ffd621","#73bb4e","#a0d772","#60a8a4","#4682b4","#6495ed","#475569"],label:{normal:{textStyle:{color:"#ffffff"}}}},map:{itemStyle:{normal:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},emphasis:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#999999",borderWidth:1}},label:{normal:{textStyle:{color:"#000"}},emphasis:{textStyle:{color:"rgb(51,51,51)"}}}},geo:{itemStyle:{normal:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},emphasis:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#999999",borderWidth:1}},label:{normal:{textStyle:{color:"#000"}},emphasis:{textStyle:{color:"rgb(51,51,51)"}}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#e9e9e9"}},axisTick:{show:!0,lineStyle:{color:"#e9e9e9"}},axisLabel:{show:!0,textStyle:{color:"#333333"}},splitLine:{show:!1,lineStyle:{color:["#e9e9e9"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#e9e9e9"}},axisTick:{show:!0,lineStyle:{color:"#e9e9e9"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#e9e9e9"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!0,lineStyle:{color:"#cccccc"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!0,lineStyle:{color:"#cccccc"}},axisLabel:{show:!0,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{normal:{borderColor:"#999"},emphasis:{borderColor:"#666"}}},legend:{textStyle:{color:"#999999"}},tooltip:{axisPointer:{lineStyle:{color:"#ccc",width:1},crossStyle:{color:"#ccc",width:1}}},timeline:{lineStyle:{color:"#666666",width:1},itemStyle:{normal:{color:"#666666",borderWidth:1},emphasis:{color:"#4e7ccc"}},controlStyle:{normal:{color:"#666666",borderColor:"#666666",borderWidth:.5},emphasis:{color:"#666666",borderColor:"#666666",borderWidth:.5}},checkpointStyle:{color:"#4e7ccc",borderColor:"rgba(168,201,255,1)"},label:{normal:{textStyle:{color:"#999999"}},emphasis:{textStyle:{color:"#999999"}}}},visualMap:{color:["#bf444c","#d88273","#f6efa6"]},dataZoom:{backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"rgba(47,69,84,0.3)",fillerColor:"rgba(167,183,204,0.4)",handleColor:"#a7b7cc",handleSize:"100%",textStyle:{color:"#333"}},markPoint:{label:{normal:{textStyle:{color:"#ffffff"}},emphasis:{textStyle:{color:"#ffffff"}}}}}},function(e,t){}]);
\No newline at end of file