!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-format"),require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("d3-array"),require("d3-brush"),require("d3-color"),require("d3-force"),require("@angular/animations"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/debounceTime")):"function"==typeof define&&define.amd?define("ngx-charts",["d3-format","@angular/common","@angular/core","@angular/platform-browser","d3-array","d3-brush","d3-color","d3-force","@angular/animations","d3-hierarchy","d3-interpolate","d3-scale","d3-selection","d3-shape","d3-time-format","rxjs/Observable","rxjs/add/observable/fromEvent","rxjs/add/operator/debounceTime"],e):"object"==typeof exports?exports["ngx-charts"]=e(require("d3-format"),require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("d3-array"),require("d3-brush"),require("d3-color"),require("d3-force"),require("@angular/animations"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/debounceTime")):t["ngx-charts"]=e(t["d3-format"],t["@angular/common"],t["@angular/core"],t["@angular/platform-browser"],t["d3-array"],t["d3-brush"],t["d3-color"],t["d3-force"],t["@angular/animations"],t["d3-hierarchy"],t["d3-interpolate"],t["d3-scale"],t["d3-selection"],t["d3-shape"],t["d3-time-format"],t["rxjs/Observable"],t["rxjs/add/observable/fromEvent"],t["rxjs/add/operator/debounceTime"])}(this,function(t,e,n,i,o,r,s,a,c,l,p,d,h,u,g,m,f,y){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="./src/index.ts")}({"./node_modules/base64-js/index.js":function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-i(t)}function r(t){var e,n,o,r,s,a,c=t.length;s=i(t),a=new d(3*c/4-s),o=s>0?c-4:c;var l=0;for(e=0,n=0;e<o;e+=4,n+=3)r=p[t.charCodeAt(e)]<<18|p[t.charCodeAt(e+1)]<<12|p[t.charCodeAt(e+2)]<<6|p[t.charCodeAt(e+3)],a[l++]=r>>16&255,a[l++]=r>>8&255,a[l++]=255&r;return 2===s?(r=p[t.charCodeAt(e)]<<2|p[t.charCodeAt(e+1)]>>4,a[l++]=255&r):1===s&&(r=p[t.charCodeAt(e)]<<10|p[t.charCodeAt(e+1)]<<4|p[t.charCodeAt(e+2)]>>2,a[l++]=r>>8&255,a[l++]=255&r),a}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function a(t,e,n){for(var i,o=[],r=e;r<n;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],o.push(s(i));return o.join("")}function c(t){for(var e,n=t.length,i=n%3,o="",r=[],s=0,c=n-i;s<c;s+=16383)r.push(a(t,s,s+16383>c?c:s+16383));return 1===i?(e=t[n-1],o+=l[e>>2],o+=l[e<<4&63],o+="=="):2===i&&(e=(t[n-2]<<8)+t[n-1],o+=l[e>>10],o+=l[e>>4&63],o+=l[e<<2&63],o+="="),r.push(o),r.join("")}e.byteLength=o,e.toByteArray=r,e.fromByteArray=c;for(var l=[],p=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,g=h.length;u<g;++u)l[u]=h[u],p[h.charCodeAt(u)]=u;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},"./node_modules/buffer/index.js":function(t,e,n){"use strict";(function(t){function i(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=r.prototype):(null===t&&(t=new r(e)),t.length=e),t}function r(t,e,n){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return s(this,t,e,n)}function s(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,i):"string"==typeof e?p(t,e,n):u(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e,n,i){return a(e),e<=0?o(t,e):void 0!==n?"string"==typeof i?o(t,e).fill(n,i):o(t,e).fill(n):o(t,e)}function l(t,e){if(a(e),t=o(t,e<0?0:0|g(e)),!r.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!r.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(e,n);t=o(t,i);var s=t.write(e,n);return s!==i&&(t=t.slice(0,s)),t}function d(t,e){var n=e.length<0?0:0|g(e.length);t=o(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function h(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),r.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=r.prototype):t=d(t,e),t}function u(t,e){if(r.isBuffer(e)){var n=0|g(e.length);return t=o(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||q(e.length)?o(t,0):d(t,e);if("Buffer"===e.type&&Q(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),r.alloc(+t)}function f(t,e){if(r.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(i)return V(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function v(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function b(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=r.from(e,i)),r.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,o);if("number"==typeof e)return e&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,o){function r(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}var l;if(o){var p=-1;for(l=n;l<a;l++)if(r(t,l)===r(e,-1===p?0:l-p)){if(-1===p&&(p=l),l-p+1===c)return p*s}else-1!==p&&(l-=l-p),p=-1}else for(n+c>a&&(n=a-c),l=n;l>=0;l--){for(var d=!0,h=0;h<c;h++)if(r(t,l+h)!==r(e,h)){d=!1;break}if(d)return l}return-1}function w(t,e,n,i){n=Number(n)||0;var o=t.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function O(t,e,n,i){return U(V(e,t.length-n),t,n,i)}function S(t,e,n,i){return U(G(e),t,n,i)}function A(t,e,n,i){return S(t,e,n,i)}function j(t,e,n,i){return U(W(e),t,n,i)}function D(t,e,n,i){return U($(e,t.length-n),t,n,i)}function E(t,e,n){return 0===e&&n===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o<n;){var r=t[o],s=null,a=r>239?4:r>223?3:r>191?2:1;if(o+a<=n){var c,l,p,d;switch(a){case 1:r<128&&(s=r);break;case 2:c=t[o+1],128==(192&c)&&(d=(31&r)<<6|63&c)>127&&(s=d);break;case 3:c=t[o+1],l=t[o+2],128==(192&c)&&128==(192&l)&&(d=(15&r)<<12|(63&c)<<6|63&l)>2047&&(d<55296||d>57343)&&(s=d);break;case 4:c=t[o+1],l=t[o+2],p=t[o+3],128==(192&c)&&128==(192&l)&&128==(192&p)&&(d=(15&r)<<18|(63&c)<<12|(63&l)<<6|63&p)>65535&&d<1114112&&(s=d)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),o+=a}return T(i)}function T(t){var e=t.length;if(e<=K)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=K));return n}function C(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(127&t[o]);return i}function R(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(t[o]);return i}function L(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=e;r<n;++r)o+=H(t[r]);return o}function k(t,e,n){for(var i=t.slice(e,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function _(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,i,o,s){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<s)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function F(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o<r;++o)t[n+o]=(e&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function M(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o<r;++o)t[n+o]=e>>>8*(i?o:3-o)&255}function B(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(t,e,n,i,o){return o||B(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,n,i,23,4),n+4}function z(t,e,n,i,o){return o||B(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,n,i,52,8),n+8}function N(t){if(t=X(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function X(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){e=e||1/0;for(var n,i=t.length,o=null,r=[],s=0;s<i;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function G(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function $(t,e){for(var n,i,o,r=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),i=n>>8,o=n%256,r.push(o),r.push(i);return r}function W(t){return Z.toByteArray(N(t))}function U(t,e,n,i){for(var o=0;o<i&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function q(t){return t!==t}var Z=n("./node_modules/base64-js/index.js"),J=n("./node_modules/ieee754/index.js"),Q=n("./node_modules/isarray/index.js");e.Buffer=r,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),r.poolSize=8192,r._augment=function(t){return t.__proto__=r.prototype,t},r.from=function(t,e,n){return s(null,t,e,n)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(t,e,n){return c(null,t,e,n)},r.allocUnsafe=function(t){return l(null,t)},r.allocUnsafeSlow=function(t){return l(null,t)},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0},r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return r.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=r.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!r.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i},r.byteLength=f,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},r.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},r.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},r.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?I(this,0,t):y.apply(this,arguments)},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===r.compare(this,t)},r.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t,e,n,i,o){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var s=o-i,a=n-e,c=Math.min(s,a),l=this.slice(i,o),p=t.slice(e,n),d=0;d<c;++d)if(l[d]!==p[d]){s=l[d],a=p[d];break}return s<a?-1:a<s?1:0},r.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},r.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},r.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},r.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return O(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return j(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var K=4096;r.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i;if(r.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=r.prototype;else{var o=e-t;i=new r(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i},r.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||_(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i},r.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||_(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},r.prototype.readUInt8=function(t,e){return e||_(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||_(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||_(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||_(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},r.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||_(t,e,this.length);for(var i=e,o=1,r=this[t+--i];i>0&&(o*=256);)r+=this[t+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},r.prototype.readInt8=function(t,e){return e||_(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||_(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(t,e){e||_(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(t,e){return e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||_(t,4,this.length),J.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||_(t,4,this.length),J.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||_(t,8,this.length),J.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||_(t,8,this.length),J.read(this,t,!1,52,8)},r.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){P(this,t,e,n,Math.pow(2,8*n)-1,0)}var o=1,r=0;for(this[e]=255&t;++r<n&&(o*=256);)this[e+r]=t/o&255;return e+n},r.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){P(this,t,e,n,Math.pow(2,8*n)-1,0)}var o=n-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+n},r.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},r.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},r.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},r.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);P(this,t,e,n,o-1,-o)}var r=0,s=1,a=0;for(this[e]=255&t;++r<n&&(s*=256);)t<0&&0===a&&0!==this[e+r-1]&&(a=1),this[e+r]=(t/s>>0)-a&255;return e+n},r.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);P(this,t,e,n,o-1,-o)}var r=n-1,s=1,a=0;for(this[e+r]=255&t;--r>=0&&(s*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/s>>0)-a&255;return e+n},r.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},r.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},r.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},r.prototype.writeFloatLE=function(t,e,n){return Y(this,t,e,!0,n)},r.prototype.writeFloatBE=function(t,e,n){return Y(this,t,e,!1,n)},r.prototype.writeDoubleLE=function(t,e,n){return z(this,t,e,!0,n)},r.prototype.writeDoubleBE=function(t,e,n){return z(this,t,e,!1,n)},r.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var o,s=i-n;if(this===t&&n<e&&e<i)for(o=s-1;o>=0;--o)t[o+e]=this[o+n];else if(s<1e3||!r.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},r.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!r.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=r.isBuffer(t)?t:V(new r(t,i).toString()),c=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%c]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/base-chart.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".ngx-charts {\n  float: left;\n  overflow: visible; }\n  .ngx-charts .circle,\n  .ngx-charts .bar,\n  .ngx-charts .arc {\n    cursor: pointer; }\n  .ngx-charts .bar.active, .ngx-charts .bar:hover,\n  .ngx-charts .cell.active,\n  .ngx-charts .cell:hover,\n  .ngx-charts .arc.active,\n  .ngx-charts .arc:hover,\n  .ngx-charts .card.active,\n  .ngx-charts .card:hover {\n    opacity: 0.8;\n    transition: opacity 100ms ease-in-out; }\n  .ngx-charts .bar:focus,\n  .ngx-charts .cell:focus,\n  .ngx-charts .arc:focus,\n  .ngx-charts .card:focus {\n    outline: none; }\n  .ngx-charts g:focus {\n    outline: none; }\n  .ngx-charts .line-series.inactive,\n  .ngx-charts .line-series-range.inactive,\n  .ngx-charts .polar-series-path.inactive,\n  .ngx-charts .polar-series-area.inactive,\n  .ngx-charts .area-series.inactive {\n    transition: opacity 100ms ease-in-out;\n    opacity: .2; }\n  .ngx-charts .line-highlight {\n    display: none; }\n    .ngx-charts .line-highlight.active {\n      display: block; }\n  .ngx-charts .area {\n    opacity: 0.6; }\n  .ngx-charts .circle:hover {\n    cursor: pointer; }\n  .ngx-charts .label {\n    font-size: 12px;\n    font-weight: normal; }\n  .ngx-charts .tooltip-anchor {\n    fill: black; }\n  .ngx-charts .gridline-path {\n    stroke: #ddd;\n    stroke-width: 1;\n    fill: none; }\n  .ngx-charts .gridline-path-dotted {\n    stroke: #ddd;\n    stroke-width: 1;\n    fill: none;\n    stroke-dasharray: 1, 20;\n    stroke-dashoffset: 3; }\n  .ngx-charts .grid-panel rect {\n    fill: none; }\n  .ngx-charts .grid-panel.odd rect {\n    fill: rgba(0, 0, 0, 0.05); }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/legend/advanced-legend.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".advanced-pie-legend {\n  float: left;\n  position: relative;\n  top: 50%;\n  -webkit-transform: translate(0, -50%);\n          transform: translate(0, -50%); }\n  .advanced-pie-legend .total-value {\n    font-size: 36px; }\n  .advanced-pie-legend .total-label {\n    font-size: 24px;\n    margin-bottom: 19px; }\n  .advanced-pie-legend .legend-items-container {\n    width: 100%; }\n    .advanced-pie-legend .legend-items-container .legend-items {\n      white-space: nowrap;\n      overflow: auto; }\n      .advanced-pie-legend .legend-items-container .legend-items .legend-item {\n        margin-right: 20px;\n        display: inline-block;\n        cursor: pointer; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item:focus {\n          outline: none; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item:hover {\n          color: #000;\n          transition: 0.2s; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value {\n          font-size: 24px;\n          margin-top: -6px;\n          margin-left: 11px; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label {\n          font-size: 12px;\n          opacity: 0.7;\n          margin-left: 11px;\n          margin-top: -6px; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent {\n          font-size: 24px;\n          opacity: 0.7;\n          margin-left: 11px; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color {\n          width: 4px;\n          height: 32px;\n          float: left;\n          margin-right: 7px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/legend/legend.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".chart-legend {\n  display: inline-block;\n  padding: 0;\n  width: auto !important; }\n  .chart-legend .legend-title {\n    white-space: nowrap;\n    overflow: hidden;\n    margin-left: 10px;\n    margin-bottom: 5px;\n    font-size: 14px;\n    font-weight: bold; }\n  .chart-legend ul, .chart-legend li {\n    padding: 0;\n    margin: 0;\n    list-style: none; }\n  .chart-legend .legend-wrap {\n    width: 90%; }\n  .chart-legend .legend-labels {\n    line-height: 85%;\n    list-style: none;\n    text-align: left;\n    float: left;\n    width: 100%;\n    border-radius: 3px;\n    overflow-y: auto;\n    overflow-x: hidden;\n    white-space: nowrap;\n    background: rgba(0, 0, 0, 0.05); }\n  .chart-legend .legend-label {\n    cursor: pointer;\n    font-size: 90%;\n    margin: 8px;\n    color: #76818a; }\n    .chart-legend .legend-label:hover {\n      color: #000;\n      transition: 0.2s; }\n    .chart-legend .legend-label .active .legend-label-text {\n      color: #000; }\n  .chart-legend .legend-label-color {\n    display: inline-block;\n    height: 15px;\n    width: 15px;\n    margin-right: 5px;\n    color: #5b646b;\n    border-radius: 3px; }\n  .chart-legend .legend-label-text {\n    display: inline-block;\n    vertical-align: top;\n    line-height: 15px;\n    font-size: 12px;\n    width: 100%;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    overflow: hidden;\n    padding-right: 20px; }\n  .chart-legend .legend-icon {\n    color: #4d9df6;\n    margin-right: 5px; }\n  .chart-legend .legend-title-text {\n    vertical-align: bottom;\n    display: inline-block;\n    line-height: 16px;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/legend/scale-legend.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".chart-legend {\n  display: inline-block;\n  padding: 0;\n  width: auto !important; }\n  .chart-legend .scale-legend {\n    text-align: center;\n    display: -webkit-box;\n    display: -ms-flexbox;\n    display: flex;\n    -webkit-box-orient: vertical;\n    -webkit-box-direction: normal;\n        -ms-flex-direction: column;\n            flex-direction: column; }\n  .chart-legend .scale-legend-wrap {\n    display: inline-block;\n    -webkit-box-flex: 1;\n        -ms-flex: 1;\n            flex: 1;\n    width: 30px;\n    border-radius: 5px;\n    margin: 0 auto; }\n  .chart-legend .scale-legend-label {\n    font-size: 12px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/timeline/timeline.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".timeline .brush-background {\n  fill: rgba(0, 0, 0, 0.05); }\n\n.timeline .brush .selection {\n  fill: rgba(0, 0, 0, 0.1);\n  stroke-width: 1px;\n  stroke: #888888; }\n\n.timeline .brush .handle {\n  fill-opacity: 0; }\n\n.timeline .embedded-chart {\n  opacity: 0.6; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/tooltip/tooltip.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),
e.push([t.i,".ngx-tooltip-content {\n  position: fixed;\n  border-radius: 3px;\n  z-index: 5000;\n  display: block;\n  font-weight: normal;\n  opacity: 0;\n  pointer-events: none !important; }\n  .ngx-tooltip-content.type-popover {\n    background: #fff;\n    color: #060709;\n    border: 1px solid #72809b;\n    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);\n    font-size: 13px;\n    padding: 4px; }\n    .ngx-tooltip-content.type-popover .tooltip-caret {\n      position: absolute;\n      z-index: 5001;\n      width: 0;\n      height: 0; }\n      .ngx-tooltip-content.type-popover .tooltip-caret.position-left {\n        border-top: 7px solid transparent;\n        border-bottom: 7px solid transparent;\n        border-left: 7px solid #fff; }\n      .ngx-tooltip-content.type-popover .tooltip-caret.position-top {\n        border-left: 7px solid transparent;\n        border-right: 7px solid transparent;\n        border-top: 7px solid #fff; }\n      .ngx-tooltip-content.type-popover .tooltip-caret.position-right {\n        border-top: 7px solid transparent;\n        border-bottom: 7px solid transparent;\n        border-right: 7px solid #fff; }\n      .ngx-tooltip-content.type-popover .tooltip-caret.position-bottom {\n        border-left: 7px solid transparent;\n        border-right: 7px solid transparent;\n        border-bottom: 7px solid #fff; }\n  .ngx-tooltip-content.type-tooltip {\n    color: #fff;\n    background: rgba(0, 0, 0, 0.75);\n    font-size: 12px;\n    padding: 0 10px;\n    text-align: center;\n    pointer-events: auto; }\n    .ngx-tooltip-content.type-tooltip .tooltip-caret.position-left {\n      border-top: 7px solid transparent;\n      border-bottom: 7px solid transparent;\n      border-left: 7px solid rgba(0, 0, 0, 0.75); }\n    .ngx-tooltip-content.type-tooltip .tooltip-caret.position-top {\n      border-left: 7px solid transparent;\n      border-right: 7px solid transparent;\n      border-top: 7px solid rgba(0, 0, 0, 0.75); }\n    .ngx-tooltip-content.type-tooltip .tooltip-caret.position-right {\n      border-top: 7px solid transparent;\n      border-bottom: 7px solid transparent;\n      border-right: 7px solid rgba(0, 0, 0, 0.75); }\n    .ngx-tooltip-content.type-tooltip .tooltip-caret.position-bottom {\n      border-left: 7px solid transparent;\n      border-right: 7px solid transparent;\n      border-bottom: 7px solid rgba(0, 0, 0, 0.75); }\n  .ngx-tooltip-content .tooltip-label {\n    display: block;\n    line-height: 1em;\n    padding: 8px 5px 5px 5px;\n    font-size: 1em; }\n  .ngx-tooltip-content .tooltip-val {\n    display: block;\n    font-size: 1.3em;\n    line-height: 1em;\n    padding: 0 5px 8px 5px; }\n  .ngx-tooltip-content .tooltip-caret {\n    position: absolute;\n    z-index: 5001;\n    width: 0;\n    height: 0; }\n  .ngx-tooltip-content.position-right {\n    -webkit-transform: translate3d(10px, 0, 0);\n            transform: translate3d(10px, 0, 0); }\n  .ngx-tooltip-content.position-left {\n    -webkit-transform: translate3d(-10px, 0, 0);\n            transform: translate3d(-10px, 0, 0); }\n  .ngx-tooltip-content.position-top {\n    -webkit-transform: translate3d(0, -10px, 0);\n            transform: translate3d(0, -10px, 0); }\n  .ngx-tooltip-content.position-bottom {\n    -webkit-transform: translate3d(0, 10px, 0);\n            transform: translate3d(0, 10px, 0); }\n  .ngx-tooltip-content.animate {\n    opacity: 1;\n    transition: opacity 0.3s, -webkit-transform 0.3s;\n    transition: opacity 0.3s, transform 0.3s;\n    transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0);\n    pointer-events: auto; }\n\n.area-tooltip-container {\n  padding: 5px 0;\n  pointer-events: none; }\n\n.tooltip-item {\n  text-align: left;\n  line-height: 1.2em;\n  padding: 5px 0; }\n  .tooltip-item .tooltip-item-color {\n    display: inline-block;\n    height: 12px;\n    width: 12px;\n    margin-right: 5px;\n    color: #5b646b;\n    border-radius: 3px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/force-directed-graph/force-directed-graph.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".force-directed-graph .edge {\n  stroke: #333; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/gauge/gauge.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".gauge .background-arc path {\n  fill: rgba(0, 0, 0, 0.05); }\n\n.gauge .gauge-tick path {\n  stroke: #666; }\n\n.gauge .gauge-tick text {\n  font-size: 12px;\n  fill: #666;\n  font-weight: bold; }\n\n.gauge .gauge-tick-large path {\n  stroke-width: 2px; }\n\n.gauge .gauge-tick-small path {\n  stroke-width: 1px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/gauge/linear-gauge.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".linear-gauge {\n  cursor: pointer; }\n  .linear-gauge .background-bar path {\n    fill: rgba(0, 0, 0, 0.05); }\n  .linear-gauge .units {\n    fill: #666; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/number-card/card.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,"ngx-charts-number-card .cell .trimmed-label {\n  font-size: 12px;\n  pointer-events: none;\n  text-transform: uppercase;\n  overflow: hidden;\n  text-align: left;\n  line-height: 1em; }\n  ngx-charts-number-card .cell .trimmed-label p {\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    width: 100%;\n    padding: 0;\n    margin: 0; }\n\nngx-charts-number-card .cell .value-text {\n  pointer-events: none; }\n\nngx-charts-number-card .number-card.clickable .cell .card, ngx-charts-number-card .number-card.clickable .cell .card-band {\n  cursor: pointer; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/pie-chart/advanced-pie-chart.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".advanced-pie {\n  display: inline-block;\n  float: left; }\n\n.advanced-pie-legend-wrapper {\n  display: inline-block; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/pie-chart/pie-chart.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".pie-label {\n  font-size: 11px;\n  -webkit-animation: 750ms ease-in fadeIn;\n          animation: 750ms ease-in fadeIn; }\n\n@-webkit-keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n@keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n.pie-label-line {\n  -webkit-animation: 3s linear drawOut;\n          animation: 3s linear drawOut;\n  stroke-dasharray: 100%;\n  transition: d 750ms; }\n\n@-webkit-keyframes drawOut {\n  from {\n    stroke-dashoffset: 100%; }\n  to {\n    stroke-dashoffset: 0; } }\n\n@keyframes drawOut {\n  from {\n    stroke-dashoffset: 100%; }\n  to {\n    stroke-dashoffset: 0; } }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/pie-chart/pie-grid.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".pie-grid .arc1 {\n  opacity: 0.4; }\n\n.pie-grid .percent-label {\n  font-size: 16px;\n  font-weight: 400; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/polar-chart/polar-chart.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".polar-chart .polar-chart-background {\n  fill: none; }\n\n.polar-chart .radial-gridline-path {\n  stroke-dasharray: 10 10;\n  fill: none; }\n\n.polar-chart .pie-label-line {\n  stroke: #2f3646; }\n\n.polar-charts-series .polar-series-area {\n  pointer-events: none; }\n\n.polar-series-path {\n  pointer-events: none; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/tree-map/tree-map.component.scss":function(t,e,n){e=t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0),e.push([t.i,".tree-map .treemap-val {\n  font-size: 1.3em;\n  padding-top: 5px;\n  display: inline-block; }\n\n.tree-map .label p {\n  display: table-cell;\n  text-align: center;\n  line-height: 1.2em;\n  vertical-align: middle; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(t,e,n){(function(e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e){var r=i(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new e(JSON.stringify(t)).toString("base64")+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}}).call(e,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/ieee754/index.js":function(t,e){e.read=function(t,e,n,i,o){var r,s,a=8*o-i-1,c=(1<<a)-1,l=c>>1,p=-7,d=n?o-1:0,h=n?-1:1,u=t[e+d];for(d+=h,r=u&(1<<-p)-1,u>>=-p,p+=a;p>0;r=256*r+t[e+d],d+=h,p-=8);for(s=r&(1<<-p)-1,r>>=-p,p+=i;p>0;s=256*s+t[e+d],d+=h,p-=8);if(0===r)r=1-l;else{if(r===c)return s?NaN:1/0*(u?-1:1);s+=Math.pow(2,i),r-=l}return(u?-1:1)*s*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var s,a,c,l=8*r-o-1,p=(1<<l)-1,d=p>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,u=i?0:r-1,g=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=p):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),e+=s+d>=1?h/c:h*Math.pow(2,1-d),e*c>=2&&(s++,c/=2),s+d>=p?(a=0,s=p):s+d>=1?(a=(e*c-1)*Math.pow(2,o),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;t[n+u]=255&a,u+=g,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[n+u]=255&s,u+=g,s/=256,l-=8);t[n+u-g]|=128*m}},"./node_modules/isarray/index.js":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"./node_modules/webpack/buildin/global.js":function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},"./src/area-chart/area-chart-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n(4)),s=(n.n(r),n(2)),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),l=n("./src/common/base-chart.component.ts"),p=n("./src/utils/id.ts"),d=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.showGridLines=!0,e.curve=r.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return d(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.dims=n.i(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(var i=this,o=0;o<this.xSet.length;o++)!function(t){for(var n=i.xSet[t],o=0,r=0,s=0,a=i.results;s<a.length;s++){var c=a[s],l=c.series.find(function(t){var i=t.name,o=n;return"time"===e.scaleType&&(i=i.valueOf(),o=o.valueOf()),i===o});l&&(r+=l.value)}for(var p=0,d=i.results;p<d.length;p++){var c=d[p],l=c.series.find(function(t){var i=t.name,o=n;return"time"===e.scaleType&&(i=i.valueOf(),o=o.valueOf()),i===o});l?(l.d0=o,l.d1=o+l.value,o+=l.value):(l={name:n,value:0,d0:o,d1:o},c.series.push(l)),r>0?(l.d0=100*l.d0/r,l.d1=100*l.d1/r):(l.d0=0,l.d1=0)}}(o);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";var r=this.location instanceof s.PathLocationStrategy?this.location.path():"";this.clipPathId="clip"+n.i(p.a)().toString(),this.clipPath="url("+r+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.width,this.legend&&(this.timelineWidth=this.dims.width),this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[new Date(c),new Date(l)]}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else a=t;return this.xSet=t,a},e.prototype.getYDomain=function(){return[0,100]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var i;return"time"===this.scaleType?i=n.i(o.scaleTime)():"linear"===this.scaleType?i=n.i(o.scaleLinear)():"ordinal"===this.scaleType&&(i=n.i(o.scalePoint)().padding(.1)),i.range([0,e]).domain(t),this.roundDomains?i.nice():i},e.prototype.getYScale=function(t,e){var i=n.i(o.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?i.nice():i},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var r=o[i];this.isDate(r)||(e=!1),"number"!=typeof r&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e}(l.a);h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"legend",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"legendTitle",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showXAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showYAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"timeline",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"gradient",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"showGridLines",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"curve",void 0),h([n.i(i.Input)(),u("design:type",Array)],g.prototype,"activeEntries",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"schemeType",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"roundDomains",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"tooltipDisabled",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"activate",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"deactivate",void 0),h([n.i(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],g.prototype,"hideCircles",null),g=h([n.i(i.Component)({selector:"ngx-charts-area-chart-normalized",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="area-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-area-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [scaleType]="scaleType"\n              [activeEntries]="activeEntries"\n              [gradient]="gradient"\n              normalized="true"\n              [curve]="curve"\n            />\n          </svg:g>\n          <svg:g ngx-charts-area-tooltip\n            [xSet]="xSet"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [results]="results"\n            [height]="dims.height"\n            [colors]="colors"\n            [showPercentage]="true"\n            [tooltipDisabled]="tooltipDisabled"\n            (hover)="updateHoveredVertical($event)"\n          />\n          <svg:g *ngFor="let series of results">\n            <svg:g ngx-charts-circle-series\n              type="stacked"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [activeEntries]="activeEntries"\n              [data]="series"\n              [scaleType]="scaleType"\n              [visibleValue]="hoveredVertical"\n              [tooltipDisabled]="tooltipDisabled"\n              (select)="onClick($event, series)"\n              (activate)="onActivate($event)"\n              (deactivate)="onDeactivate($event)"\n            />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType === \'time\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [legend]="legend"\n        [scaleType]="scaleType"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-area-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [gradient]="gradient"\n            normalized="true"\n            [curve]="curve"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None})],g)},"./src/area-chart/area-chart-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(1)),s=(n.n(r),n(4)),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),l=n("./src/common/base-chart.component.ts"),p=n("./src/utils/id.ts"),d=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.showGridLines=!0,e.curve=s.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return d(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.dims=n.i(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(var i=this,r=0;r<this.xSet.length;r++)!function(t){for(var n=i.xSet[t],o=0,r=0,s=i.results;r<s.length;r++){var a=s[r],c=a.series.find(function(t){var i=t.name,o=n;return"time"===e.scaleType&&(i=i.valueOf(),o=o.valueOf()),i===o});c?(c.d0=o,c.d1=o+c.value,o+=c.value):(c={name:n,value:0,d0:o,d1:o},a.series.push(c))}}(r);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";var s=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.clipPathId="clip"+n.i(p.a)().toString(),this.clipPath="url("+s+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.width,this.legend&&(this.timelineWidth=this.dims.width),this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[new Date(c),new Date(l)]}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else a=t;return this.xSet=t,a},e.prototype.getYDomain=function(){for(var t=this,e=[],n=this,i=0;i<this.xSet.length;i++)!function(i){for(var o=n.xSet[i],r=0,s=0,a=n.results;s<a.length;s++){var c=a[s],l=c.series.find(function(e){var n=e.name,i=o;return"time"===t.scaleType&&(n=n.valueOf(),i=i.valueOf()),n===i});l&&(r+=l.value)}e.push(r)}(i);return[Math.min.apply(Math,[0].concat(e)),Math.max.apply(Math,e)]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var i;return"time"===this.scaleType?i=n.i(r.scaleTime)():"linear"===this.scaleType?i=n.i(r.scaleLinear)():"ordinal"===this.scaleType&&(i=n.i(r.scalePoint)().padding(.1)),i.range([0,e]).domain(t),this.roundDomains?i.nice():i},e.prototype.getYScale=function(t,e){var i=n.i(r.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?i.nice():i},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var r=o[i];this.isDate(r)||(e=!1),"number"!=typeof r&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e}(l.a);h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"legend",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"legendTitle",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showXAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showYAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"timeline",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"gradient",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"showGridLines",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"curve",void 0),h([n.i(i.Input)(),u("design:type",Array)],g.prototype,"activeEntries",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"schemeType",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"roundDomains",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"tooltipDisabled",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"activate",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"deactivate",void 0),h([n.i(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],g.prototype,"hideCircles",null),g=h([n.i(i.Component)({selector:"ngx-charts-area-chart-stacked",
template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="area-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-area-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [scaleType]="scaleType"\n              [gradient]="gradient"\n              [activeEntries]="activeEntries"\n              stacked="true"\n              [curve]="curve"\n            />\n          </svg:g>\n          <svg:g ngx-charts-area-tooltip\n            [xSet]="xSet"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [results]="results"\n            [height]="dims.height"\n            [colors]="colors"\n            [tooltipDisabled]="tooltipDisabled"\n            (hover)="updateHoveredVertical($event)"\n          />\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-circle-series\n              type="stacked"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [activeEntries]="activeEntries"\n              [data]="series"\n              [scaleType]="scaleType"\n              [visibleValue]="hoveredVertical"\n              [tooltipDisabled]="tooltipDisabled"\n              (select)="onClick($event, series)"\n              (activate)="onActivate($event)"\n              (deactivate)="onDeactivate($event)"\n            />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType === \'time\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [legend]="legend"\n        [scaleType]="scaleType"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-area-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [gradient]="gradient"\n            stacked="true"\n            [curve]="curve"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None})],g)},"./src/area-chart/area-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(1)),s=(n.n(r),n(4)),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),l=n("./src/common/base-chart.component.ts"),p=n("./src/utils/id.ts"),d=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=s.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return d(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")";var e=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.clipPathId="clip"+n.i(p.a)().toString(),this.clipPath="url("+e+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.width,this.legend&&(this.timelineWidth=this.dims.width),this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else a=t;return this.xSet=t,a},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.value)||t.push(s.value)}var a=Math.min.apply(Math,t),c=Math.max.apply(Math,t);return this.autoScale||(a=Math.min(0,a)),[a,c]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var i;return"time"===this.scaleType?i=n.i(r.scaleTime)():"linear"===this.scaleType?i=n.i(r.scaleLinear)():"ordinal"===this.scaleType&&(i=n.i(r.scalePoint)().padding(.1)),i.range([0,e]).domain(t),this.roundDomains?i.nice():i},e.prototype.getYScale=function(t,e){var i=n.i(r.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?i.nice():i},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var r=o[i];this.isDate(r)||(e=!1),"number"!=typeof r&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e}(l.a);h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"legend",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"legendTitle",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"state",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"autoScale",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showXAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showYAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"timeline",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"gradient",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"showGridLines",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"curve",void 0),h([n.i(i.Input)(),u("design:type",Array)],g.prototype,"activeEntries",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"schemeType",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"roundDomains",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"tooltipDisabled",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"activate",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"deactivate",void 0),h([n.i(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],g.prototype,"hideCircles",null),g=h([n.i(i.Component)({selector:"ngx-charts-area-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="area-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-area-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [scaleType]="scaleType"\n              [gradient]="gradient"\n              [curve]="curve"\n            />\n          </svg:g>\n          <svg:g ngx-charts-area-tooltip\n            [xSet]="xSet"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [results]="results"\n            [height]="dims.height"\n            [colors]="colors"\n            [tooltipDisabled]="tooltipDisabled"\n            (hover)="updateHoveredVertical($event)"\n          />\n          <svg:g *ngFor="let series of results">\n            <svg:g ngx-charts-circle-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [activeEntries]="activeEntries"\n              [data]="series"\n              [scaleType]="scaleType"\n              [visibleValue]="hoveredVertical"\n              [tooltipDisabled]="tooltipDisabled"\n              (select)="onClick($event, series)"\n              (activate)="onActivate($event)"\n              (deactivate)="onDeactivate($event)"\n            />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType === \'time\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [legend]="legend"\n        [scaleType]="scaleType"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-area-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [gradient]="gradient"\n            [curve]="curve"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None})],g)},"./src/area-chart/area-chart.module.ts":function(t,e,n){"use strict";n.d(e,"e",function(){return p});var i=n(0),o=(n.n(i),n("./src/area-chart/area-chart.component.ts")),r=n("./src/area-chart/area-chart-normalized.component.ts"),s=n("./src/area-chart/area-chart-stacked.component.ts"),a=n("./src/area-chart/area-series.component.ts"),c=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return o.a}),n.d(e,"b",function(){return r.a}),n.d(e,"c",function(){return s.a}),n.d(e,"d",function(){return a.a});var l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=function(){function t(){}return t}();p=l([n.i(i.NgModule)({imports:[c.a],declarations:[o.a,r.a,s.a,a.a],exports:[o.a,r.a,s.a,a.a]})],p)},"./src/area-chart/area-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n(4)),r=(n.n(o),n("./src/utils/sort.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.stacked=!1,this.normalized=!1,this.select=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this;this.updateGradient();var e,i,s=function(e){var n=e.name;return t.xScale(n)};this.stacked||this.normalized?(e=n.i(o.area)().x(s).y0(function(e,n){return t.yScale(e.d0)}).y1(function(e,n){return t.yScale(e.d1)}),i=n.i(o.area)().x(s).y0(function(e){return t.yScale.range()[0]}).y1(function(e){return t.yScale.range()[0]})):(e=n.i(o.area)().x(s).y0(function(){return t.yScale.range()[0]}).y1(function(e){return t.yScale(e.value)}),i=n.i(o.area)().x(s).y0(function(e){return t.yScale.range()[0]}).y1(function(e){return t.yScale.range()[0]})),e.curve(this.curve),i.curve(this.curve),this.opacity=.8;var a=this.data.series;a="linear"===this.scaleType?n.i(r.a)(a,"name"):"time"===this.scaleType?n.i(r.b)(a,"name"):n.i(r.c)(a,"name","asc",this.xScale.domain()),this.path=e(a),this.startingPath=i(a)},t.prototype.updateGradient=function(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){var t=this.data.series.map(function(t){return t.d0}),e=this.data.series.map(function(t){return t.d1}),n=Math.max.apply(Math,e),i=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(n,i)}else{var o=this.data.series.map(function(t){return t.value}),n=Math.max.apply(Math,o);this.gradientStops=this.colors.getLinearGradientStops(n)}else this.hasGradient=!1,this.gradientStops=void 0},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(e){return t.name===e.name})},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"data",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"xScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"yScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"colors",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"scaleType",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"stacked",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"normalized",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"gradient",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"curve",void 0),s([n.i(i.Input)(),a("design:type",Array)],c.prototype,"activeEntries",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"select",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-area-series]",template:'\n    <svg:g ngx-charts-area\n      class="area-series"\n      [data]="data"\n      [path]="path"\n      [fill]="colors.getColor(data.name)"\n      [stops]="gradientStops"\n      [startingPath]="startingPath"\n      [opacity]="opacity"\n      [gradient]="gradient || hasGradient"\n      [class.active]="isActive(data)"\n      [class.inactive]="isInactive(data)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],c)},"./src/area-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/area-chart/area-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d}),n.d(e,"e",function(){return i.e});n("./src/area-chart/area-chart.component.ts"),n("./src/area-chart/area-chart-normalized.component.ts"),n("./src/area-chart/area-chart-stacked.component.ts"),n("./src/area-chart/area-series.component.ts")},"./src/bar-chart/bar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/bar-chart/bar.component.ts"),s=n("./src/bar-chart/bar-horizontal.component.ts"),a=n("./src/bar-chart/bar-horizontal-2d.component.ts"),c=n("./src/bar-chart/bar-horizontal-normalized.component.ts"),l=n("./src/bar-chart/bar-horizontal-stacked.component.ts"),p=n("./src/bar-chart/bar-vertical.component.ts"),d=n("./src/bar-chart/bar-vertical-2d.component.ts"),h=n("./src/bar-chart/bar-vertical-normalized.component.ts"),u=n("./src/bar-chart/bar-vertical-stacked.component.ts"),g=n("./src/bar-chart/series-horizontal.component.ts"),m=n("./src/bar-chart/series-vertical.component.ts");n.d(e,"b",function(){return r.a}),n.d(e,"c",function(){return s.a}),n.d(e,"d",function(){return a.a}),n.d(e,"e",function(){return c.a}),n.d(e,"f",function(){return l.a}),n.d(e,"g",function(){return p.a}),n.d(e,"h",function(){return d.a}),n.d(e,"i",function(){return h.a}),n.d(e,"j",function(){return u.a}),n.d(e,"k",function(){return g.a}),n.d(e,"l",function(){return m.a});var f=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},y=function(){function t(){}return t}();y=f([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a,a.a,c.a,l.a,p.a,d.a,h.a,u.a,g.a,m.a],exports:[r.a,s.a,a.a,c.a,l.a,p.a,d.a,h.a,u.a,g.a,m.a]})],y)},"./src/bar-chart/bar-horizontal-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(1)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.groupPadding=16,e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupScale=function(){var t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return n.i(r.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)},e.prototype.getInnerScale=function(){var t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return n.i(r.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},e.prototype.getValueScale=function(){var t=n.i(r.scaleLinear)().range([0,this.dims.width]).domain(this.valuesDomain);return this.roundDomains?t.nice():t},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.value)||t.push(s.value)}return[Math.min.apply(Math,[0].concat(t)),Math.max.apply(Math,t)]},e.prototype.groupTransform=function(t){return"translate(0, "+this.groupScale(t.name)+")"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},e}(c.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"gradient",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"groupPadding",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"barPadding",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),h=p([n.i(i.Component)({selector:"ngx-charts-bar-horizontal-2d",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-grid-panel-series\n          [xScale]="valueScale"\n          [yScale]="groupScale"\n          [data]="results"\n          [dims]="dims"\n          orient="horizontal">\n        </svg:g>\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="valueScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="groupScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-horizontal\n            [xScale]="valueScale"\n            [activeEntries]="activeEntries"\n            [yScale]="innerScale"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [seriesName]="group.name"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],h)},"./src/bar-chart/bar-horizontal-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(1)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i
;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){return[0,100]},e.prototype.getYScale=function(){var t=this.groupDomain.length/(this.dims.height/this.barPadding+1);return n.i(r.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},e.prototype.getXScale=function(){var t=n.i(r.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate(0, "+this.yScale(t.name)+")"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},e}(c.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"gradient",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"barPadding",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),h=p([n.i(i.Component)({selector:"ngx-charts-bar-horizontal-normalized",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-horizontal\n            type="normalized"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [activeEntries]="activeEntries"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [seriesName]="group.name"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],h)},"./src/bar-chart/bar-horizontal-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(1)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){for(var i=n[e],o=0,r=0,s=i.series;r<s.length;r++){o+=s[r].value}t.push(o)}return[Math.min.apply(Math,[0].concat(t)),Math.max.apply(Math,t)]},e.prototype.getYScale=function(){var t=this.groupDomain.length/(this.dims.height/this.barPadding+1);return n.i(r.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},e.prototype.getXScale=function(){var t=n.i(r.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate(0, "+this.yScale(t.name)+")"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},e}(c.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"gradient",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"barPadding",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),h=p([n.i(i.Component)({selector:"ngx-charts-bar-horizontal-stacked",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-horizontal\n            type="stacked"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [colors]="colors"\n            [series]="group.series"\n            [activeEntries]="activeEntries"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [seriesName]="group.name"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],h)},"./src/bar-chart/bar-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return c(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(r.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getXScale=function(){this.xDomain=this.getXDomain();var t=n.i(o.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?t.nice():t},e.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=this.yDomain.length/(this.dims.height/this.barPadding+1);return n.i(o.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.yDomain)},e.prototype.getXDomain=function(){var t=this.results.map(function(t){return t.value});return[Math.min.apply(Math,[0].concat(t)),Math.max.apply(Math,t)]},e.prototype.getYDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.yDomain:this.xDomain,this.colors=new s.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.yDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.xDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e}(a.a);l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"legend",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"legendTitle",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxis",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxis",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"showXAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"showYAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipDisabled",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"gradient",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"showGridLines",void 0),l([n.i(i.Input)(),p("design:type",Array)],d.prototype,"activeEntries",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"schemeType",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"barPadding",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"roundDomains",void 0),l([n.i(i.Output)(),p("design:type",i.EventEmitter)],d.prototype,"activate",void 0),l([n.i(i.Output)(),p("design:type",i.EventEmitter)],d.prototype,"deactivate",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-bar-horizontal",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-series-horizontal\n          [xScale]="xScale"\n          [yScale]="yScale"\n          [colors]="colors"\n          [series]="results"\n          [dims]="dims"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [activeEntries]="activeEntries"\n          (select)="onClick($event)"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None})],d)},"./src/bar-chart/bar-vertical-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(1)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.scaleType="ordinal",e.showGridLines=!0,e.activeEntries=[],e.groupPadding=16,e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupScale=function(){var t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return n.i(r.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)},e.prototype.getInnerScale=function(){var t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return n.i(r.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},e.prototype.getValueScale=function(){var t=n.i(r.scaleLinear)().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.value)||t.push(s.value)}return[Math.min.apply(Math,[0].concat(t)),Math.max.apply(Math,t)]},e.prototype.groupTransform=function(t){return"translate("+this.groupScale(t.name)+", 0)"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},e}(c.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"scaleType",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"gradient",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"groupPadding",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"barPadding",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),h=p([n.i(i.Component)({selector:"ngx-charts-bar-vertical-2d",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-grid-panel-series\n          [xScale]="groupScale"\n          [yScale]="valueScale"\n          [data]="results"\n          [dims]="dims"\n          orient="vertical">\n        </svg:g>\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="groupScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="valueScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-series-vertical\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)"\n          [activeEntries]="activeEntries"\n          [xScale]="innerScale"\n          [yScale]="valueScale"\n          [colors]="colors"\n          [series]="group.series"\n          [dims]="dims"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [seriesName]="group.name"\n          (select)="onClick($event, group)"\n          (activate)="onActivate($event, group)"\n          (deactivate)="onDeactivate($event, group)"\n        />\n        </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],h)},"./src/bar-chart/bar-vertical-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(1)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s
},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){return[0,100]},e.prototype.getXScale=function(){var t=this.groupDomain.length/(this.dims.width/this.barPadding+1);return n.i(r.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},e.prototype.getYScale=function(){var t=n.i(r.scaleLinear)().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate("+this.xScale(t.name)+", 0)"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},e}(c.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"gradient",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"barPadding",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),h=p([n.i(i.Component)({selector:"ngx-charts-bar-vertical-normalized",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-vertical\n            type="normalized"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [activeEntries]="activeEntries"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [seriesName]="group.name"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],h)},"./src/bar-chart/bar-vertical-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(1)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){for(var i=n[e],o=0,r=0,s=i.series;r<s.length;r++){o+=s[r].value}t.push(o)}return[Math.min.apply(Math,[0].concat(t)),Math.max.apply(Math,t)]},e.prototype.getXScale=function(){var t=this.groupDomain.length/(this.dims.width/this.barPadding+1);return n.i(r.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},e.prototype.getYScale=function(){var t=n.i(r.scaleLinear)().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t},e.prototype.groupTransform=function(t){return"translate("+this.xScale(t.name)+", 0)"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})>-1||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},e}(c.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"gradient",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"barPadding",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),h=p([n.i(i.Component)({selector:"ngx-charts-bar-vertical-stacked",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-vertical\n            type="stacked"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [activeEntries]="activeEntries"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [seriesName]="group.name"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],h)},"./src/bar-chart/bar-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.tooltipDisabled=!1,e.showGridLines=!0,e.activeEntries=[],e.barPadding=8,e.roundDomains=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return c(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(r.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getXScale=function(){this.xDomain=this.getXDomain();var t=this.xDomain.length/(this.dims.width/this.barPadding+1);return n.i(o.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.xDomain)},e.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=n.i(o.scaleLinear)().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t},e.prototype.getXDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getYDomain=function(){var t=this.results.map(function(t){return t.value});return[Math.min.apply(Math,[0].concat(t)),Math.max.apply(Math,t)]},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new s.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value&&e.series===t.series});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e}(a.a);l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"legend",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"legendTitle",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxis",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxis",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"showXAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"showYAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipDisabled",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"gradient",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"showGridLines",void 0),l([n.i(i.Input)(),p("design:type",Array)],d.prototype,"activeEntries",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"schemeType",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"barPadding",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"roundDomains",void 0),l([n.i(i.Output)(),p("design:type",i.EventEmitter)],d.prototype,"activate",void 0),l([n.i(i.Output)(),p("design:type",i.EventEmitter)],d.prototype,"deactivate",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-bar-vertical",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-series-vertical\n          [xScale]="xScale"\n          [yScale]="yScale"\n          [colors]="colors"\n          [series]="results"\n          [dims]="dims"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [activeEntries]="activeEntries"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)"\n          (select)="onClick($event)">\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None})],d)},"./src/bar-chart/bar.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(5)),s=(n.n(r),n("./src/common/shape.helper.ts")),a=n("./src/utils/id.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function t(t,e){this.location=e,this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){var t=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+n.i(a.a)().toString(),this.gradientFill="url("+t+"#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.animateToCurrentForm()},t.prototype.loadAnimation=function(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)},t.prototype.animateToCurrentForm=function(){var t=n.i(r.select)(this.element).select(".bar"),e=this.getPath();t.attr("d",e)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]},t.prototype.getStartingPath=function(){var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=n.i(s.a)(this.x,this.y+this.height,this.width,0,e,!0,!0,!1,!1)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=n.i(s.a)(this.x,this.y,0,this.height,e,!1,!0,!1,!0)):"vertical"===this.orientation?t=n.i(s.a)(this.x,this.y+this.height,this.width,0,e,!1,!1,!1,!1):"horizontal"===this.orientation&&(t=n.i(s.a)(this.x,this.y,0,this.height,e,!1,!1,!1,!1)),t},t.prototype.getPath=function(){var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=n.i(s.a)(this.x,this.y,this.width,this.height,e,!0,!0,!1,!1)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=n.i(s.a)(this.x,this.y,this.width,this.height,e,!1,!0,!1,!0)):t=n.i(s.a)(this.x,this.y,this.width,this.height,e,!1,!1,!1,!1),t},t.prototype.getRadius=function(){var t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t},t.prototype.getStartOpacity=function(){return this.roundEdges?.2:.5},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t}();c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"fill",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"data",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"width",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"height",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"x",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"y",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"orientation",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"roundEdges",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"gradient",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"offset",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"isActive",void 0),c([n.i(i.Input)(),l("design:type",Array)],p.prototype,"stops",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"select",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"activate",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"deactivate",void 0),c([n.i(i.HostListener)("mouseenter"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],p.prototype,"onMouseEnter",null),c([n.i(i.HostListener)("mouseleave"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],p.prototype,"onMouseLeave",null),p=c([n.i(i.Component)({selector:"g[ngx-charts-bar]",template:'\n    <svg:defs *ngIf="hasGradient">\n      <svg:g ngx-charts-svg-linear-gradient\n        [orientation]="orientation"\n        [name]="gradientId"\n        [stops]="gradientStops"\n      />\n    </svg:defs>\n    <svg:path\n      class="bar"\n      stroke="none"\n      [class.active]="isActive"\n      [attr.d]="path"\n      [attr.fill]="hasGradient ? gradientFill : fill"\n      (click)="select.emit(data)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),l("design:paramtypes",[i.ElementRef,o.LocationStrategy])],p)},"./src/bar-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/bar-chart/bar-chart.module.ts");n.d(e,"a",function(){return i.b}),n.d(e,"b",function(){return i.c}),n.d(e,"c",function(){return i.d}),n.d(e,"d",function(){return i.e}),n.d(e,"e",function(){return i.f}),n.d(e,"f",function(){return i.g}),n.d(e,"g",function(){return i.h}),n.d(e,"h",function(){return i.i}),n.d(e,"i",function(){return i.j}),n.d(e,"j",function(){return i.k}),n.d(e,"k",function(){return i.l}),n.d(e,"l",function(){return i.a});n("./src/bar-chart/bar.component.ts"),n("./src/bar-chart/bar-horizontal.component.ts"),n("./src/bar-chart/bar-horizontal-2d.component.ts"),n("./src/bar-chart/bar-horizontal-normalized.component.ts"),n("./src/bar-chart/bar-horizontal-stacked.component.ts"),n("./src/bar-chart/series-horizontal.component.ts"),n("./src/bar-chart/bar-vertical.component.ts"),n("./src/bar-chart/bar-vertical-2d.component.ts"),n("./src/bar-chart/bar-vertical-normalized.component.ts"),n("./src/bar-chart/bar-vertical-stacked.component.ts"),n("./src/bar-chart/series-vertical.component.ts")},"./src/bar-chart/series-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t,e=this,i=0;"normalized"===this.type&&(t=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(o,s){var a=o.value,c=o.name,l=n.i(r.a)(c),p="standard"===e.type,d={value:a,label:c,roundEdges:p,data:o,formattedLabel:l};if(d.height=e.yScale.bandwidth(),"standard"===e.type)d.width=Math.abs(e.xScale(a)-e.xScale(0)),d.x=a<0?e.xScale(a):e.xScale(0),d.y=e.yScale(c);else if("stacked"===e.type){var h=i,u=h+a;i+=a,d.width=e.xScale(u)-e.xScale(h),d.x=e.xScale(h),d.y=0,d.offset0=h,d.offset1=u}else if("normalized"===e.type){var h=i,u=h+a;i+=a,t>0?(h=100*h/t,u=100*u/t):(h=0,u=0),d.width=e.xScale(u)-e.xScale(h),d.x=e.xScale(h),d.y=0,d.offset0=h,d.offset1=u,a=(u-h).toFixed(2)+"%"}"ordinal"===e.colors.scaleType?d.color=e.colors.getColor(c):"standard"===e.type?(d.color=e.colors.getColor(a),d.gradientStops=e.colors.getLinearGradientStops(a)):(d.color=e.colors.getColor(d.offset1),d.gradientStops=e.colors.getLinearGradientStops(d.offset1,d.offset0));var g=l;return e.seriesName&&(g=e.seriesName+" • "+l),d.tooltipText='\n        <span class="tooltip-label">'+g+'</span>\n        <span class="tooltip-val">'+a.toLocaleString()+"</span>\n      ",d})},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.click=function(t){this.select.emit(t)},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"dims",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"type",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"series",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"xScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"yScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"colors",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"tooltipDisabled",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"gradient",void 0),s([n.i(i.Input)(),a("design:type",Array)],c.prototype,"activeEntries",void 0),s([n.i(i.Input)(),a("design:type",String)],c.prototype,"seriesName",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"select",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"activate",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"deactivate",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-series-horizontal]",
template:'\n    <svg:g ngx-charts-bar\n      *ngFor="let bar of bars; trackBy:trackBy"\n      [@animationState]="\'active\'"\n      [width]="bar.width"\n      [height]="bar.height"\n      [x]="bar.x"\n      [y]="bar.y"\n      [fill]="bar.color"\n      [stops]="bar.gradientStops"\n      [data]="bar.data"\n      [orientation]="\'horizontal\'"\n      [roundEdges]="bar.roundEdges"\n      (select)="click($event)"\n      [gradient]="gradient"\n      [isActive]="isActive(bar.data)"\n      (activate)="activate.emit($event)"\n      (deactivate)="deactivate.emit($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="bar.tooltipText">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],c)},"./src/bar-chart/series-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t,e=this;this.series.length&&(t=this.xScale.bandwidth());var i,o=0;"normalized"===this.type&&(i=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(s,a){var c=s.value,l=s.name,p=n.i(r.a)(l),d="standard"===e.type,h={value:c,label:l,roundEdges:d,data:s,width:t,formattedLabel:p,height:0,x:0,y:0};if("standard"===e.type)h.height=Math.abs(e.yScale(c)-e.yScale(0)),h.x=e.xScale(l),h.y=c<0?e.yScale(0):e.yScale(c);else if("stacked"===e.type){var u=o,g=u+c;o+=c,h.height=e.yScale(u)-e.yScale(g),h.x=0,h.y=e.yScale(g),h.offset0=u,h.offset1=g}else if("normalized"===e.type){var u=o,g=u+c;o+=c,i>0?(u=100*u/i,g=100*g/i):(u=0,g=0),h.height=e.yScale(u)-e.yScale(g),h.x=0,h.y=e.yScale(g),h.offset0=u,h.offset1=g,c=(g-u).toFixed(2)+"%"}"ordinal"===e.colors.scaleType?h.color=e.colors.getColor(l):"standard"===e.type?(h.color=e.colors.getColor(c),h.gradientStops=e.colors.getLinearGradientStops(c)):(h.color=e.colors.getColor(h.offset1),h.gradientStops=e.colors.getLinearGradientStops(h.offset1,h.offset0));var m=p;return e.seriesName&&(m=e.seriesName+" • "+p),h.tooltipText='\n        <span class="tooltip-label">'+m+'</span>\n        <span class="tooltip-val">'+c.toLocaleString()+"</span>\n      ",h})},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.label},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"dims",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"type",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"series",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"xScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"yScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"colors",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"tooltipDisabled",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"gradient",void 0),s([n.i(i.Input)(),a("design:type",Array)],c.prototype,"activeEntries",void 0),s([n.i(i.Input)(),a("design:type",String)],c.prototype,"seriesName",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"select",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"activate",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"deactivate",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-series-vertical]",template:'\n    <svg:g ngx-charts-bar *ngFor="let bar of bars; trackBy: trackBy"\n      [@animationState]="\'active\'"\n      [width]="bar.width"\n      [height]="bar.height"\n      [x]="bar.x"\n      [y]="bar.y"\n      [fill]="bar.color"\n      [stops]="bar.gradientStops"\n      [data]="bar.data"\n      [orientation]="\'vertical\'"\n      [roundEdges]="bar.roundEdges"\n      [gradient]="gradient"\n      [isActive]="isActive(bar.data)"\n      (select)="onClick($event)"\n      (activate)="activate.emit($event)"\n      (deactivate)="deactivate.emit($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="bar.tooltipText">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("* => void",[n.i(o.style)({opacity:1,transform:"*"}),n.i(o.animate)(500,n.i(o.style)({opacity:0,transform:"scale(0)"}))])])]})],c)},"./src/bubble-chart/bubble-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=n("./src/bubble-chart/bubble-chart.utils.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showGridLines=!0,e.legend=!1,e.legendTitle="Legend",e.xAxis=!0,e.yAxis=!0,e.roundDomains=!1,e.maxRadius=10,e.minRadius=3,e.schemeType="ordinal",e.legendPosition="right",e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.scaleType="linear",e.margin=[10,20,10,20],e.bubblePadding=[0,0,0,0],e.xAxisHeight=0,e.yAxisWidth=0,e.activeEntries=[],e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.seriesDomain=this.results.map(function(t){return t.name}),this.rDomain=this.getRDomain(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.transform="translate("+this.dims.xOffset+","+this.margin[0]+")";var e="ordinal"===this.schemeType?this.seriesDomain:this.rDomain;this.colors=new a.a(this.scheme,this.schemeType,e,this.customColors),this.data=this.results,this.minRadius=Math.max(this.minRadius,1),this.maxRadius=Math.max(this.maxRadius,1),this.rScale=this.getRScale(this.rDomain,[this.minRadius,this.maxRadius]),this.bubblePadding=[0,0,0,0],this.setScales(),this.bubblePadding=this.getBubblePadding(),this.setScales(),this.legendOptions=this.getLegendOptions()},e.prototype.hideCircles=function(){this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.getBubblePadding=function(){for(var t=0,e=0,n=this.dims.height,i=this.dims.width,o=0,r=this.data;o<r.length;o++)for(var s=r[o],a=0,c=s.series;a<c.length;a++){var l=c[a],p=this.rScale(l.r),d="linear"===this.xScaleType?this.xScale(Number(l.x)):this.xScale(l.x),h="linear"===this.yScaleType?this.yScale(Number(l.y)):this.yScale(l.y);e=Math.max(p-d,e),t=Math.max(p-h,t),n=Math.max(h+p,n),i=Math.max(d+p,i)}return i=Math.max(i-this.dims.width,0),n=Math.max(n-this.dims.height,0),[t,i,n,e]},e.prototype.setScales=function(){this.xScale=this.getXScale(this.xDomain,this.dims.width-this.bubblePadding[1]),this.yScale=this.getYScale(this.yDomain,this.dims.height-this.bubblePadding[2])},e.prototype.getYScale=function(t,e){return n.i(c.a)(t,[e,this.bubblePadding[0]],this.yScaleType,this.roundDomains)},e.prototype.getXScale=function(t,e){return n.i(c.a)(t,[this.bubblePadding[3],e],this.xScaleType,this.roundDomains)},e.prototype.getRScale=function(t,e){var i=n.i(o.scaleLinear)().range(e).domain(t);return this.roundDomains?i.nice():i},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],position:this.legendPosition,title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.rDomain,t.colors=this.colors.scale),t},e.prototype.getXDomain=function(){for(var t=[],e=0,i=this.results;e<i.length;e++)for(var o=i[e],r=0,s=o.series;r<s.length;r++){var a=s[r];t.includes(a.x)||t.push(a.x)}return this.xScaleType=n.i(c.b)(t),n.i(c.c)(t,this.xScaleType,this.autoScale)},e.prototype.getYDomain=function(){for(var t=[],e=0,i=this.results;e<i.length;e++)for(var o=i[e],r=0,s=o.series;r<s.length;r++){var a=s[r];t.includes(a.y)||t.push(a.y)}return this.yScaleType=n.i(c.b)(t),n.i(c.c)(t,this.yScaleType,this.autoScale)},e.prototype.getRDomain=function(){for(var t=1/0,e=-1/0,n=0,i=this.results;n<i.length;n++)for(var o=i[n],r=0,s=o.series;r<s.length;r++){var a=s[r],c=Number(a.r)||1;t=Math.min(t,c),e=Math.max(e,c)}return[t,e]},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e}(r.a);p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showGridLines",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"xAxis",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"yAxis",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showXAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"showYAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"xAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"yAxisLabel",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"xAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"yAxisTickFormatting",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"roundDomains",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"maxRadius",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"minRadius",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"autoScale",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"schemeType",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendPosition",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),p([n.i(i.HostListener)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],h.prototype,"hideCircles",null),h=p([n.i(i.Component)({selector:"ngx-charts-bubble-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [activeEntries]="activeEntries"\n      [legendOptions]="legendOptions"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath>\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="bubble-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [showGridLines]="showGridLines"\n          [dims]="dims"\n          [xScale]="xScale"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)"/>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [showGridLines]="showGridLines"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)"/>\n        <svg:rect\n          class="bubble-chart-area"\n          x="0"\n          y="0"\n          [attr.width]="dims.width"\n          [attr.height]="dims.height"\n          style="fill: rgb(255, 0, 0); opacity: 0; cursor: \'auto\';"\n          (mouseenter)="deactivateAll()"\n        />\n        <svg:g *ngFor="let series of data">\n          <svg:g ngx-charts-bubble-series\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [rScale]="rScale"\n            [xScaleType]="xScaleType"\n            [yScaleType]="yScaleType"\n            [xAxisLabel]="xAxisLabel"\n            [yAxisLabel]="yAxisLabel"\n            [colors]="colors"\n            [data]="series"\n            [activeEntries]="activeEntries"\n            [tooltipDisabled]="tooltipDisabled"\n            (select)="onClick($event, series)"\n            (activate)="onActivate($event)"\n            (deactivate)="onDeactivate($event)" />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>',styles:[n("./src/common/base-chart.component.scss")],changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None})],h)},"./src/bubble-chart/bubble-chart.module.ts":function(t,e,n){"use strict";n.d(e,"c",function(){return c});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/bubble-chart/bubble-chart.component.ts"),s=n("./src/bubble-chart/bubble-series.component.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return s.a});var a=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},c=function(){function t(){}return t}();c=a([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a],exports:[r.a,s.a]})],c)},"./src/bubble-chart/bubble-chart.utils.ts":function(t,e,n){"use strict";function i(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var s=r[i];o(s)||(e=!1),"number"!=typeof s&&(n=!1)}return e?"time":n?"linear":"ordinal"}function o(t){return t instanceof Date}function r(t,e,n){var i=[];if("time"===e){var o=Math.min.apply(Math,t),r=Math.max.apply(Math,t);i=[o,r]}else if("linear"===e){t=t.map(function(t){return Number(t)});var o=Math.min.apply(Math,t),r=Math.max.apply(Math,t);n||(o=Math.min(0,o)),i=[o,r]}else i=t;return i}function s(t,e,i,o){var r;return"time"===i?r=n.i(a.scaleTime)().range(e).domain(t):"linear"===i?(r=n.i(a.scaleLinear)().range(e).domain(t),o&&(r=r.nice())):"ordinal"===i&&(r=n.i(a.scalePoint)().range([e[0],e[1]]).domain(t)),r}e.b=i,e.c=r,e.a=s;var a=n(1);n.n(a)},"./src/bubble-chart/bubble-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circles=this.getCircles()},t.prototype.getCircles=function(){var t=this,e=this.data.name;return this.data.series.map(function(i,o){if(void 0!==i.y&&void 0!==i.x){var s=i.y,a=i.x,c=i.r,l=t.rScale(c||1),p=n.i(r.a)(i.name),d="linear"===t.xScaleType?t.xScale(Number(a)):t.xScale(a),h="linear"===t.yScaleType?t.yScale(Number(s)):t.yScale(s),u="linear"===t.colors.scaleType?t.colors.getColor(c):t.colors.getColor(e),g=!t.activeEntries.length||t.isActive({name:e});return{x:a,y:s,r:c,classNames:["circle-data-"+o],value:s,label:a,cx:d,cy:h,radius:l,tooltipLabel:p,color:u,opacity:g?1:.3,seriesName:e,isActive:g}}}).filter(function(t){return void 0!==t})},t.prototype.getTooltipText=function(t){var e=void 0!==t.r,i=t.tooltipLabel&&t.tooltipLabel.length,o=t.seriesName&&t.seriesName.length,s=e?n.i(r.a)(t.r):"",a=this.xAxisLabel&&""!==this.xAxisLabel?this.xAxisLabel+":":"",c=this.yAxisLabel&&""!==this.yAxisLabel?this.yAxisLabel+":":"",l=n.i(r.a)(t.x),p=n.i(r.a)(t.y),d=o&&i?t.seriesName+" • "+t.tooltipLabel:t.seriesName+t.tooltipLabel;return"\n      "+(o||i?'<span class="tooltip-label">'+d+"</span>":"")+'\n      <span class="tooltip-label">\n        <label>'+a+"</label> "+l+"<br />\n        <label>"+c+"</label> "+p+'\n      </span>\n      <span class="tooltip-val">\n        '+s+"\n      </span>\n    "},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isVisible=function(t){return this.activeEntries.length>0?this.isActive({name:t.seriesName}):0!==t.opacity},t.prototype.activateCircle=function(t){t.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(t){t.barVisible=!1,this.deactivate.emit({name:this.data.name})},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"data",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"xScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"yScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"rScale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"xScaleType",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"yScaleType",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"colors",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"visibleValue",void 0),s([n.i(i.Input)(),a("design:type",Array)],c.prototype,"activeEntries",void 0),s([n.i(i.Input)(),a("design:type",String)],c.prototype,"xAxisLabel",void 0),s([n.i(i.Input)(),a("design:type",String)],c.prototype,"yAxisLabel",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"tooltipDisabled",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"select",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"activate",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"deactivate",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-bubble-series]",template:'\n    <svg:g *ngFor="let circle of circles">\n      <svg:g ngx-charts-circle\n        class="circle"\n        [cx]="circle.cx"\n        [cy]="circle.cy"\n        [r]="circle.radius"\n        [fill]="circle.color"\n        [style.opacity]="circle.opacity"\n        [class.active]="circle.isActive"\n        [pointerEvents]="\'all\'"\n        [data]="circle.value"\n        [classNames]="circle.classNames"\n        (select)="onClick($event, circle.label)"\n        (activate)="activateCircle(circle)"\n        (deactivate)="deactivateCircle(circle)"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipTitle]="getTooltipText(circle)"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("void => *",[n.i(o.style)({opacity:0}),n.i(o.animate)(250,n.i(o.style)({opacity:1}))])])]})],c)},"./src/bubble-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/bubble-chart/bubble-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c});n("./src/bubble-chart/bubble-chart.component.ts"),n("./src/bubble-chart/bubble-series.component.ts")},"./src/common/area-tooltip.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.renderer=t,this.anchorOpacity=new Array,this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.tooltipAreas=this.getTooltipAreas()},t.prototype.getTooltipAreas=function(){var t=this,e=this.getUniqueValues(this.xSet);e=e.sort(function(e,n){return t.xScale(e)-t.xScale(n)});for(var n=[],i=0;i<e.length;i++){var o=e[i],r={};r.tooltipAnchor=this.xScale(o),r.x0=0===i?this.xScale(o):(this.xScale(e[i-1])+this.xScale(e[i]))/2,i===e.length-1?r.x1=this.xScale(e[i]):r.x1=(this.xScale(e[i])+this.xScale(e[i+1]))/2,r.width=r.x1-r.x0,r.value=o,r.values=this.getValues(o),n.push(r),this.anchorOpacity[i]=0}return n},t.prototype.getValues=function(t){for(var e=[],n=0,i=this.results;n<i.length;n++){var o=i[n],r=o.series.find(function(e){return e.name.toString()===t.toString()}),s=o.name;if(s instanceof Date&&(s=s.toLocaleDateString()),r){var a=r.name;a instanceof Date&&(a=a.toLocaleDateString());var c=r.value;this.showPercentage&&(c=(r.d1-r.d0).toFixed(2)+"%");var l=void 0;if("linear"===this.colors.scaleType){var p=c;r.d1&&(p=r.d1),l=this.colors.getColor(p)}else l=this.colors.getColor(o.name);e.push({value:c,name:a,series:s,min:r.min,max:r.max,color:l})}}return e},t.prototype.getUniqueValues=function(t){for(var e=[],n=0;n<t.length;n++)!function(n){var i=t[n];e.find(function(t){return t.toString()===i.toString()})||e.push(i)}(n);return e},t.prototype.showTooltip=function(t){var e=this.tooltips.toArray()[t].nativeElement.getElementsByTagName("rect")[1],n=new MouseEvent("mouseenter",{bubbles:!1});this.renderer.invokeElementMethod(e,"dispatchEvent",[n]),this.anchorOpacity[t]=.7,this.hover.emit(this.tooltipAreas[t])},t.prototype.hideTooltip=function(t){var e=this.tooltips.toArray()[t].nativeElement.getElementsByTagName("rect")[1],n=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(e,"dispatchEvent",[n]),this.anchorOpacity[t]=0},t.prototype.getToolTipText=function(t){var e="";return void 0!==t.series?e+=t.series:e+="???",e+=": ",void 0!==t.value&&(e+=t.value.toLocaleString()),void 0===t.min&&void 0===t.max||(e+=" (",void 0!==t.min?(void 0===t.max&&(e+="≥"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="≤"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"xSet",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"xScale",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"yScale",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"results",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"height",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"colors",void 0),r([n.i(i.Input)(),s("design:type",Boolean)],a.prototype,"showPercentage",void 0),r([n.i(i.Input)(),s("design:type",Boolean)],a.prototype,"tooltipDisabled",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"hover",void 0),r([n.i(i.ViewChildren)("tooltips"),s("design:type",Object)],a.prototype,"tooltips",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-area-tooltip]",template:'\n    <svg:g\n      #tooltips\n      *ngFor="let tooltipArea of tooltipAreas; let i = index">\n      <svg:rect\n        class="tooltip-area"\n        [attr.x]="tooltipArea.x0"\n        y="0"\n        [attr.width]="tooltipArea.width"\n        [attr.height]="height"\n        style="opacity: 0; cursor: \'auto\';"\n        (mouseenter)="showTooltip(i)"\n        (mouseleave)="hideTooltip(i)"\n      />\n      <xhtml:ng-template #tooltipTemplate>\n        <xhtml:div class="area-tooltip-container">\n          <xhtml:div\n            *ngFor="let tooltipItem of tooltipArea.values"\n            class="tooltip-item">\n            <span\n              class="tooltip-item-color"\n              [style.background-color]="tooltipItem.color">\n            </span>\n            {{getToolTipText(tooltipItem)}}\n          </xhtml:div>\n        </xhtml:div>\n      </xhtml:ng-template>\n      <svg:rect\n        [@animationState]="anchorOpacity[i] !== 0 ? \'active\' : \'inactive\'"\n        class="tooltip-anchor"\n        [attr.x]="tooltipArea.tooltipAnchor"\n        y="0"\n        [attr.width]="1"\n        [attr.height]="height"\n        [style.opacity]="anchorOpacity[i]"\n        [style.pointer-events]="\'none\'"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'right\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipSpacing]="15"\n        [tooltipTemplate]="tooltipTemplate"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("inactive => active",[n.i(o.style)({opacity:0}),n.i(o.animate)(250,n.i(o.style)({opacity:.7}))]),n.i(o.transition)("active => inactive",[n.i(o.style)({opacity:.7}),n.i(o.animate)(250,n.i(o.style)({opacity:0}))])])]}),s("design:paramtypes",[i.Renderer])],a)},"./src/common/area.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n(0),o=(n.n(i),n(5)),r=(n.n(o),n(2)),s=(n.n(r),n("./src/utils/id.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t,e){this.location=e,this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.select=new i.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){var t=this.location instanceof r.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+n.i(s.a)().toString(),this.gradientFill="url("+t+"#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.animateToCurrentForm()},t.prototype.loadAnimation=function(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)},t.prototype.animateToCurrentForm=function(){n.i(o.select)(this.element).select(".area").attr("d",this.path)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]},t}();a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"data",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"path",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"startingPath",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"fill",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"opacity",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"startOpacity",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"endOpacity",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"activeLabel",void 0),a([n.i(i.Input)(),c("design:type",Boolean)],l.prototype,"gradient",void 0),a([n.i(i.Input)(),c("design:type",Array)],l.prototype,"stops",void 0),a([n.i(i.Output)(),c("design:type",Object)],l.prototype,"select",void 0),l=a([n.i(i.Component)({selector:"g[ngx-charts-area]",template:'\n    <svg:defs *ngIf="gradient">\n      <svg:g ngx-charts-svg-linear-gradient\n        orientation="vertical"\n        [name]="gradientId"\n        [stops]="gradientStops"\n      />\n    </svg:defs>\n    <svg:path\n      class="area"\n      [attr.d]="areaPath"\n      [attr.fill]="gradient ? gradientFill : fill"\n      [style.opacity]="opacity"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[i.ElementRef,r.LocationStrategy])],l)},"./src/common/axes/axes.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n("./src/common/axes/axis-label.component.ts")),r=n("./src/common/axes/x-axis.component.ts"),s=n("./src/common/axes/x-axis-ticks.component.ts"),a=n("./src/common/axes/y-axis.component.ts"),c=n("./src/common/axes/y-axis-ticks.component.ts"),l=n(2),p=(n.n(l),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),d=function(){function t(){}return t}();d=p([n.i(i.NgModule)({imports:[l.CommonModule],declarations:[o.a,r.a,s.a,a.a,c.a],exports:[o.a,r.a,s.a,a.a,c.a]})],d)},"./src/common/axes/axis-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i
;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}},t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"orient",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"label",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"offset",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"width",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"height",void 0),s=o([n.i(i.Component)({selector:"g[ngx-charts-axis-label]",template:'\n    <svg:text\n      [attr.stroke-width]="strokeWidth"\n      [attr.text-anchor]="textAnchor"\n      [attr.x]="x"\n      [attr.y]="y"\n      [attr.text-anchor]="textAnchor"\n      [attr.transform]="transform">\n      {{label}}\n    </svg:text>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),r("design:paramtypes",[i.ElementRef])],s)},"./src/common/axes/ticks.helper.ts":function(t,e,n){"use strict";function i(t,e){if(t.length>e){for(var n=[],i=Math.floor(t.length/e),o=0;o<t.length;o++)o%i==0&&n.push(t[o]);t=n}return t}e.a=i},"./src/common/axes/x-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n("./src/common/trim-label.helper.ts")),r=n("./src/common/axes/ticks.helper.ts"),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.dimensionsChanged=new i.EventEmitter,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.trimLabel=o.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t=this,e=this.scale;this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:e.tickFormat?this.tickFormat=e.tickFormat.apply(e,this.tickArguments):this.tickFormat=function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};var n=this.getRotationAngle(this.ticks);this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",0!==n?(this.textTransform="rotate("+n+")",this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(function(){return t.updateDims()})},t.prototype.getRotationAngle=function(t){for(var e=0,n=0;n<t.length;n++){var i=t[n].toString();i.length>this.maxTicksLength&&(this.maxTicksLength=i.length)}for(var o=Math.min(this.maxTicksLength,this.maxAllowedLength),r=8*o,s=r,a=Math.floor(this.width/t.length);s>a&&e>-90;)e-=30,s=Math.cos(e*(Math.PI/180))*r;return e},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),i=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=n.i(r.a)(t,e)),t},t.prototype.getMaxTicks=function(t){return Math.floor(this.width/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(0,"+(-this.verticalSpacing-5)+")"},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"scale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"orient",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickArguments",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickStroke",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickFormatting",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"showGridLines",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"gridLineHeight",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"width",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"dimensionsChanged",void 0),s([n.i(i.ViewChild)("ticksel"),a("design:type",i.ElementRef)],c.prototype,"ticksElement",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-x-axis-ticks]",template:'\n    <svg:g #ticksel>\n      <svg:g *ngFor="let tick of ticks" class="tick"\n        [attr.transform]="tickTransform(tick)">\n        <title>{{tickFormat(tick)}}</title>\n        <svg:text\n          stroke-width="0.01"\n          [attr.text-anchor]="textAnchor"\n          [attr.transform]="textTransform"\n          [style.font-size]="\'12px\'">\n          {{trimLabel(tickFormat(tick))}}\n        </svg:text>\n      </svg:g>\n    </svg:g>\n\n    <svg:g *ngFor="let tick of ticks"\n      [attr.transform]="tickTransform(tick)">\n      <svg:g *ngIf="showGridLines"\n        [attr.transform]="gridLineTransform()">\n        <svg:line\n          class="gridline-path gridline-path-vertical"\n          [attr.y1]="-gridLineHeight"\n          y2="0" />\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],c)},"./src/common/axes/x-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n("./src/common/axes/x-axis-ticks.component.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.showGridLines=!1,this.xOrient="bottom",this.dimensionsChanged=new i.EventEmitter,this.xAxisClassName="x axis",this.labelOffset=80,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.xAxisOffset=5}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.transform="translate(0,"+(this.xAxisOffset+this.dims.height)+")",void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])},t.prototype.emitTicksHeight=function(t){var e=this,n=t.height,i=n+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(function(){e.dimensionsChanged.emit({height:n})},0))},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"xScale",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"dims",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"tickFormatting",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"showGridLines",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"showLabel",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"labelText",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"xAxisTickInterval",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"xAxisTickCount",void 0),r([n.i(i.Input)(),s("design:type",String)],a.prototype,"xOrient",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"dimensionsChanged",void 0),r([n.i(i.ViewChild)(o.a),s("design:type",o.a)],a.prototype,"ticksComponent",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-x-axis]",template:'\n    <svg:g\n      [attr.class]="xAxisClassName"\n      [attr.transform]="transform">\n      <svg:g ngx-charts-x-axis-ticks\n        *ngIf="xScale"\n        [tickFormatting]="tickFormatting"\n        [tickArguments]="tickArguments"\n        [tickStroke]="tickStroke"\n        [scale]="xScale"\n        [orient]="xOrient"\n        [showGridLines]="showGridLines"\n        [gridLineHeight]="dims.height"\n        [width]="dims.width"\n        (dimensionsChanged)="emitTicksHeight($event)"\n      />\n      <svg:g ngx-charts-axis-label\n        *ngIf="showLabel"\n        [label]="labelText"\n        [offset]="labelOffset"\n        [orient]="\'bottom\'"\n        [height]="dims.height"\n        [width]="dims.width">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],a)},"./src/common/axes/y-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n("./src/common/trim-label.helper.ts")),r=n("./src/common/axes/ticks.helper.ts"),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.dimensionsChanged=new i.EventEmitter,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.trimLabel=o.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t,e=this,n="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:t.tickFormat?this.tickFormat=t.tickFormat.apply(t,this.tickArguments):this.tickFormat=function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em"}setTimeout(function(){return e.updateDims()})},t.prototype.getTicks=function(){var t=this.getMaxTicks(20),e=this.getMaxTicks(50);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.call(this.scale,e):n.i(r.a)(this.scale.domain(),t)},t.prototype.getMaxTicks=function(t){return Math.floor(this.height/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(5,0)"},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"scale",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"orient",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickArguments",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickValues",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickStroke",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"tickFormatting",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"showGridLines",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"gridLineWidth",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"height",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"dimensionsChanged",void 0),s([n.i(i.ViewChild)("ticksel"),a("design:type",i.ElementRef)],c.prototype,"ticksElement",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-y-axis-ticks]",template:'\n    <svg:g #ticksel>\n      <svg:g *ngFor="let tick of ticks" class="tick"\n        [attr.transform]="transform(tick)" >\n        <title>{{tickFormat(tick)}}</title>\n        <svg:text\n          stroke-width="0.01"\n          [attr.dy]="dy"\n          [attr.x]="x1"\n          [attr.y]="y1"\n          [attr.text-anchor]="textAnchor"\n          [style.font-size]="\'12px\'">\n          {{trimLabel(tickFormat(tick))}}\n        </svg:text>\n      </svg:g>\n    </svg:g>\n    <svg:g *ngFor="let tick of ticks"\n      [attr.transform]="transform(tick)">\n      <svg:g\n        *ngIf="showGridLines"\n        [attr.transform]="gridLineTransform()">\n        <svg:line\n          class="gridline-path gridline-path-horizontal"\n          x1="0"\n          [attr.x2]="gridLineWidth" />\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],c)},"./src/common/axes/y-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n("./src/common/axes/y-axis-ticks.component.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.showGridLines=!1,this.yOrient="left",this.dimensionsChanged=new i.EventEmitter,this.yAxisClassName="y axis",this.yAxisOffset=-5,this.labelOffset=80,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.offset=this.yAxisOffset,"right"===this.yOrient?this.transform="translate("+(this.offset+this.dims.width)+" , 0)":this.transform="translate("+this.offset+" , 0)",void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])},t.prototype.emitTicksWidth=function(t){var e=this,n=t.width;n!==this.labelOffset&&(this.labelOffset=n,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0))},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"yScale",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"dims",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"tickFormatting",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"showGridLines",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"showLabel",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"labelText",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"yAxisTickInterval",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"yAxisTickCount",void 0),r([n.i(i.Input)(),s("design:type",String)],a.prototype,"yOrient",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"dimensionsChanged",void 0),r([n.i(i.ViewChild)(o.a),s("design:type",o.a)],a.prototype,"ticksComponent",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-y-axis]",template:'\n    <svg:g\n      [attr.class]="yAxisClassName"\n      [attr.transform]="transform">\n      <svg:g ngx-charts-y-axis-ticks\n        *ngIf="yScale"\n        [tickFormatting]="tickFormatting"\n        [tickArguments]="tickArguments"\n        [tickStroke]="tickStroke"\n        [scale]="yScale"\n        [orient]="yOrient"\n        [showGridLines]="showGridLines"\n        [gridLineWidth]="dims.width"\n        [height]="dims.height"\n        (dimensionsChanged)="emitTicksWidth($event)"\n      />\n      <svg:g ngx-charts-axis-label\n        *ngIf="showLabel"\n        [label]="labelText"\n        [offset]="labelOffset"\n        [orient]="yOrient"\n        [height]="dims.height"\n        [width]="dims.width">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],a)},"./src/common/base-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/base-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/base-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(15)),s=(n.n(r),n(16)),a=(n.n(s),n(17)),c=(n.n(a),n("./src/utils/index.ts")),l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(){function t(t,e,n,o){this.chartElement=t,this.zone=e,this.cd=n,this.location=o,this.schemeType="ordinal",this.select=new i.EventEmitter}return t.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new c.a(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.results&&(this.results=this.cloneData(this.results)),this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width&&this.height||(this.width=this.height=0),this.width=~~this.width,this.height=~~this.height,this.cd&&this.cd.markForCheck()},t.prototype.getContainerDims=function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var i=n.parentNode.getBoundingClientRect();t=i.width,e=i.height}return t&&e?{width:t,height:e}:null},t.prototype.formatDates=function(){for(var t=0;t<this.results.length;t++){var e=this.results[t];if(e.name instanceof Date&&(e.name=e.name.toLocaleDateString()),e.series)for(var n=0;n<e.series.length;n++){var i=e.series[n];i.name instanceof Date&&(i.name=i.name.toLocaleDateString())}}},t.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},t.prototype.bindWindowResizeEvent=function(){var t=this,e=r.Observable.fromEvent(window,"resize",null,null),n=e.debounceTime(200).subscribe(function(e){t.update(),t.cd&&t.cd.markForCheck()});this.resizeSubscription=n},t.prototype.cloneData=function(t){for(var e=[],n=0,i=t;n<i.length;n++){var o=i[n],r={name:o.name};if(void 0!==o.value&&(r.value=o.value),void 0!==o.series){r.series=[];for(var s=0,a=o.series;s<a.length;s++){var c=a[s],l=Object.assign({},c);r.series.push(l)}}void 0!==o.extra&&(r.extra=JSON.parse(JSON.stringify(o.extra))),e.push(r)}return e},t}();l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"results",void 0),l([n.i(i.Input)(),p("design:type",Array)],d.prototype,"view",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"scheme",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"schemeType",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"customColors",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"select",void 0),d=l([n.i(i.Component)({selector:"base-chart",template:"<div></div>"}),p("design:paramtypes",[i.ElementRef,i.NgZone,i.ChangeDetectorRef,o.LocationStrategy])],d)},"./src/common/chart-common.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return O});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n("./src/common/charts/chart.component.ts")),s=n("./src/common/legend/index.ts"),a=n("./src/common/base-chart.component.ts"),c=n("./src/common/axes/axes.module.ts"),l=n("./src/common/tooltip/index.ts"),p=n("./src/common/circle-series.component.ts"),d=n("./src/common/circle.component.ts"),h=n("./src/common/grid-panel.component.ts"),u=n("./src/common/grid-panel-series.component.ts"),g=n("./src/common/svg-linear-gradient.component.ts"),m=n("./src/common/svg-radial-gradient.component.ts"),f=n("./src/common/timeline/index.ts"),y=n("./src/common/area.component.ts"),v=n("./src/common/area-tooltip.component.ts"),b=n("./src/common/count/index.ts"),x=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},w=[y.a,a.a,b.a,v.a,r.a,s.a,s.b,s.c,d.a,p.a,h.a,u.a,g.a,m.a,f.a,s.d],O=function(){function t(){}return t}();O=x([n.i(i.NgModule)({providers:[o.Location,{provide:o.LocationStrategy,useClass:o.PathLocationStrategy}],imports:[o.CommonModule,c.a,l.a],declarations:w.slice(),exports:[o.CommonModule,c.a,l.a].concat(w)})],O)},"./src/common/charts/chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n("./src/common/tooltip/index.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t,e){this.vcr=t,this.tooltipService=e,this.showLegend=!1,this.legendLabelClick=new i.EventEmitter,this.legendLabelActivate=new i.EventEmitter,this.legendLabelDeactivate=new i.EventEmitter,this.tooltipService.injectionService.setRootViewContainer(t)}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),t="scaleLegend"===this.legendType?1:2);var e=12-t;this.chartWidth=~~(this.view[0]*e/12),this.legendWidth=~~(this.view[0]*t/12)},t.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"view",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"showLegend",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"legendOptions",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"data",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"legendData",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"legendType",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"colors",void 0),s([n.i(i.Input)(),a("design:type",Array)],c.prototype,"activeEntries",void 0),s([n.i(i.Output)(),a("design:type",i.EventEmitter)],c.prototype,"legendLabelClick",void 0),s([n.i(i.Output)(),a("design:type",i.EventEmitter)],c.prototype,"legendLabelActivate",void 0),s([n.i(i.Output)(),a("design:type",i.EventEmitter)],c.prototype,"legendLabelDeactivate",void 0),c=s([n.i(i.Component)({providers:[r.b],selector:"ngx-charts-chart",template:'\n    <div\n      class="ngx-charts-outer"\n      [style.width.px]="view[0]"\n      [@animationState]="\'active\'">\n      <svg\n        class="ngx-charts"\n        [attr.width]="chartWidth"\n        [attr.height]="view[1]">\n        <ng-content></ng-content>\n      </svg>\n      <ngx-charts-scale-legend\n        *ngIf="showLegend && legendType === \'scaleLegend\'"\n        class="chart-legend"\n        [valueRange]="legendOptions.domain"\n        [colors]="legendOptions.colors"\n        [height]="view[1]"\n        [width]="legendWidth">\n      </ngx-charts-scale-legend>\n      <ngx-charts-legend\n        *ngIf="showLegend && legendType === \'legend\'"\n        class="chart-legend"\n        [data]="legendOptions.domain"\n        [title]="legendOptions.title"\n        [colors]="legendOptions.colors"\n        [height]="view[1]"\n        [width]="legendWidth"\n        [activeEntries]="activeEntries"\n        (labelClick)="legendLabelClick.emit($event)"\n        (labelActivate)="legendLabelActivate.emit($event)"\n        (labelDeactivate)="legendLabelDeactivate.emit($event)">\n      </ngx-charts-legend>\n    </div>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("void => *",[n.i(o.style)({opacity:0}),n.i(o.animate)("500ms 100ms",n.i(o.style)({opacity:1}))])])]}),a("design:paramtypes",[i.ViewContainerRef,r.b])],c)},"./src/common/charts/index.ts":function(t,e,n){"use strict";var i=n("./src/common/charts/chart.component.ts");n.d(e,"a",function(){return i.a})},"./src/common/circle-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),n(2)),s=(n.n(r),n("./src/common/label.helper.ts")),a=n("./src/utils/id.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function t(t){this.location=t,this.type="standard",this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circles=this.getCircles()},t.prototype.getCircles=function(){var t=this,e=this.data.name,i=this.location instanceof r.PathLocationStrategy?this.location.path():"";return this.data.series.map(function(o,r){var c=o.value,l=o.name,p=n.i(s.a)(l);if(c){var d=void 0;d="time"===t.scaleType?t.xScale(l):"linear"===t.scaleType?t.xScale(Number(l)):t.xScale(l);var h=t.yScale("standard"===t.type?c:o.d1),u=t.yScale.range()[0]-h,g=0;l&&t.visibleValue&&l.toString()===t.visibleValue.toString()&&(g=1);var m="grad"+n.i(a.a)().toString(),f="url("+i+"#"+m+")",y=void 0;return y="linear"===t.colors.scaleType?"standard"===t.type?t.colors.getColor(c):t.colors.getColor(o.d1):t.colors.getColor(e),{classNames:["circle-data-"+r],value:c,label:l,cx:d,cy:h,radius:5,height:u,tooltipLabel:p,color:y,opacity:g,seriesName:e,barVisible:!1,gradientId:m,gradientFill:f,gradientStops:t.getGradientStops(y),min:o.min,max:o.max}}}).filter(function(t){return void 0!==t})},t.prototype.getTooltipText=function(t){var e=t.tooltipLabel,n=t.value,i=t.seriesName,o=t.min,r=t.max;return'\n      <span class="tooltip-label">'+i+" • "+e+'</span>\n      <span class="tooltip-val">'+n.toLocaleString()+this.getTooltipMinMaxText(o,r)+"</span>\n    "},t.prototype.getTooltipMinMaxText=function(t,e){if(void 0!==t||void 0!==e){var n=" (";return void 0!==t?(void 0===e&&(n+="≥"),n+=t.toLocaleString(),void 0!==e&&(n+=" - ")):void 0!==e&&(n+="≤"),void 0!==e&&(n+=e.toLocaleString()),n+=")"}return""},t.prototype.getGradientStops=function(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isVisible=function(t){return this.activeEntries.length>0?this.isActive({name:t.seriesName}):0!==t.opacity},t.prototype.activateCircle=function(t){t.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(t){t.barVisible=!1,this.deactivate.emit({name:this.data.name})},t}();c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"data",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"type",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"xScale",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"yScale",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"colors",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"scaleType",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"visibleValue",void 0),c([n.i(i.Input)(),l("design:type",Array)],p.prototype,"activeEntries",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"tooltipDisabled",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"select",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"activate",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"deactivate",void 0),p=c([n.i(i.Component)({selector:"g[ngx-charts-circle-series]",template:'\n    <svg:g *ngFor="let circle of circles">\n      <defs>\n        <svg:g ngx-charts-svg-linear-gradient\n          orientation="vertical"\n          [name]="circle.gradientId"\n          [stops]="circle.gradientStops"\n        />\n      </defs>\n      <svg:rect\n        *ngIf="circle.barVisible && type === \'standard\'"\n        [@animationState]="\'active\'"\n        [attr.x]="circle.cx - circle.radius"\n        [attr.y]="circle.cy"\n        [attr.width]="circle.radius * 2"\n        [attr.height]="circle.height"\n        [attr.fill]="circle.gradientFill"\n        class="tooltip-bar"\n      />\n      <svg:g ngx-charts-circle\n        *ngIf="isVisible(circle)"\n        class="circle"\n        [cx]="circle.cx"\n        [cy]="circle.cy"\n        [r]="circle.radius"\n        [fill]="circle.color"\n        [class.active]="isActive({name: circle.seriesName})"\n        [pointerEvents]="circle.value === 0 ? \'none\': \'all\'"\n        [data]="circle.value"\n        [classNames]="circle.classNames"\n        (select)="onClick($event, circle.label)"\n        (activate)="activateCircle(circle)"\n        (deactivate)="deactivateCircle(circle)"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipTitle]="getTooltipText(circle)"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,
animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("void => *",[n.i(o.style)({opacity:0}),n.i(o.animate)(250,n.i(o.style)({opacity:1}))])])]}),l("design:paramtypes",[r.LocationStrategy])],p)},"./src/common/circle.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t.prototype.ngOnChanges=function(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"},t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"cx",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"cy",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"r",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"fill",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"stroke",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"data",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"classNames",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"circleOpacity",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"pointerEvents",void 0),o([n.i(i.Output)(),r("design:type",Object)],s.prototype,"select",void 0),o([n.i(i.Output)(),r("design:type",Object)],s.prototype,"activate",void 0),o([n.i(i.Output)(),r("design:type",Object)],s.prototype,"deactivate",void 0),o([n.i(i.HostListener)("click"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],s.prototype,"onClick",null),o([n.i(i.HostListener)("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],s.prototype,"onMouseEnter",null),o([n.i(i.HostListener)("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],s.prototype,"onMouseLeave",null),s=o([n.i(i.Component)({selector:"g[ngx-charts-circle]",template:'\n    <svg:circle\n      [attr.cx]="cx"\n      [attr.cy]="cy"\n      [attr.r]="r"\n      [attr.fill]="fill"\n      [attr.stroke]="stroke"\n      [attr.opacity]="circleOpacity"\n      [attr.class]="classNames"\n      [attr.pointer-events]="pointerEvents"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/common/color.helper.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(6),o=(n.n(i),n(1)),r=(n.n(o),n("./src/utils/color-sets.ts")),s=function(){function t(t,e,n,i){"string"==typeof t&&(t=r.a.find(function(e){return e.name===t})),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(t,e,n)}return t.prototype.generateColorScheme=function(t,e,s){"string"==typeof t&&(t=r.a.find(function(e){return e.name===t}));var a;return"quantile"===e?a=n.i(o.scaleQuantile)().range(t.domain).domain(s):"ordinal"===e?a=n.i(o.scaleOrdinal)().range(t.domain).domain(s):"linear"===e&&(a=n.i(o.scaleLinear)().domain(n.i(i.range)(0,1,1/(t.domain.length-1))).range(t.domain)),a},t.prototype.getColor=function(t){if("linear"===this.scaleType){var e=n.i(o.scaleLinear)().domain(this.domain).range([0,1]);return this.scale(e(t))}var i=t.toString(),r=void 0;return this.customColors&&this.customColors.length>0&&(r=this.customColors.find(function(t){return t.name.toLowerCase()===i.toLowerCase()})),r?r.value:this.scale(t)},t.prototype.getLinearGradientStops=function(t,e){e||(e=this.domain[0]);var i=n.i(o.scaleLinear)().domain(this.domain).range([0,1]),r=n.i(o.scaleBand)().domain(this.colorDomain).range([0,1]),s=this.getColor(t),a=i(e),c=this.getColor(e),l=i(t),p=0,d=a,h=[];for(h.push({color:c,offset:0,opacity:1});d<l&&p<this.colorDomain.length;){var u=this.colorDomain[p],g=r(u);if(g<=a)p++;else{if(g>=l)break;h.push({color:u,offset:g,opacity:1}),d=g,p++}}h.push({color:s,offset:l,opacity:1});for(var m=0,f=h;m<f.length;m++){var y=f[m];y.offset=Math.floor((y.offset-a)/(l-a)*100)}return h},t}()},"./src/common/count/count.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n("./src/common/count/count.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t,e,n){this.cd=t,this.zone=e,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new i.EventEmitter,this.countFinish=new i.EventEmitter,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=n.nativeElement}return Object.defineProperty(t.prototype,"countDecimals",{get:function(){return this._countDecimals?this._countDecimals:n.i(o.a)(this.countTo)},set:function(t){this._countDecimals=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countTo",{get:function(){return this._countTo},set:function(t){this._countTo=parseFloat(t),this.start()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countFrom",{get:function(){return this._countFrom},set:function(t){this._countFrom=parseFloat(t),this.start()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.start=function(){var t=this;cancelAnimationFrame(this.animationReq);var e=this.valueFormatting||function(e){return""+t.countPrefix+e.value.toLocaleString()+t.countSuffix},i=function(n){var i=n.value,o=n.progress,r=n.finished;t.value=e({value:i}),t.cd.markForCheck(),r||t.countChange.emit({value:i,progress:o}),r&&t.countFinish.emit({value:i,progress:o})};this.animationReq=n.i(o.b)(this.countFrom,this.countTo,this.countDecimals,this.countDuration,i)},t}();r([n.i(i.Input)(),s("design:type",Number)],a.prototype,"countDuration",void 0),r([n.i(i.Input)(),s("design:type",String)],a.prototype,"countPrefix",void 0),r([n.i(i.Input)(),s("design:type",String)],a.prototype,"countSuffix",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"valueFormatting",void 0),r([n.i(i.Input)(),s("design:type",Number),s("design:paramtypes",[Number])],a.prototype,"countDecimals",null),r([n.i(i.Input)(),s("design:type",Object),s("design:paramtypes",[Object])],a.prototype,"countTo",null),r([n.i(i.Input)(),s("design:type",Object),s("design:paramtypes",[Object])],a.prototype,"countFrom",null),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"countChange",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"countFinish",void 0),a=r([n.i(i.Component)({selector:"[ngx-charts-count-up]",template:"{{value}}"}),s("design:paramtypes",[i.ChangeDetectorRef,i.NgZone,i.ElementRef])],a)},"./src/common/count/count.helper.ts":function(t,e,n){"use strict";function i(t,e,n,i,o){function r(t){var e,n=t-s;e=a;var i=n<l;if(o({value:e,progress:n,timestamp:t,finished:!i}),i)return requestAnimationFrame(function(t){return r(t)})}var s,a=(Number(t),Number(e)),c=Math.max(0,n),l=(Math.pow(10,c),0);return requestAnimationFrame(function(t){return s=t,r(t)})}function o(t){var e=Number(t);return e%1!=0&&Math.abs(e)<=10?2:0}e.b=i,e.a=o},"./src/common/count/index.ts":function(t,e,n){"use strict";var i=n("./src/common/count/count.directive.ts");n.d(e,"a",function(){return i.a});var o=n("./src/common/count/count.helper.ts");n.d(e,"b",function(){return o.a}),n.d(e,"c",function(){return o.b})},"./src/common/grid-layout.helper.ts":function(t,e,n){"use strict";function i(t,e,n){var i=1,o=e,r=t.width;t.height;if(r>n)for(;r/o<n;)i+=1,o=Math.ceil(e/i);return[o,i]}function o(t,e,o){for(var a=n.i(s.scaleBand)(),c=n.i(s.scaleBand)(),l=t.width,p=t.height,d=i(t,e.length,o),h=d[0],u=d[1],g=[],m=[],f=0;f<u;f++)m.push(f);for(var f=0;f<h;f++)g.push(f);a.domain(g),c.domain(m),a.rangeRound([0,l],.1),c.rangeRound([0,p],.1);for(var y=[],v=r(e),b=a.bandwidth(),x=c.bandwidth(),f=0;f<e.length;f++)y[f]={},y[f].data={name:e[f]?e[f].name:"",value:e[f]?e[f].value:void 0,extra:e[f]?e[f].extra:void 0},y[f].x=a(f%h),y[f].y=c(Math.floor(f/h)),y[f].width=b,y[f].height=x,y[f].data.percent=v>0?y[f].data.value/v:0,y[f].data.total=v;return y}function r(t){return t.map(function(t){return t?t.value:0}).reduce(function(t,e){return t+e},0)}e.b=i,e.a=o;var s=n(1);n.n(s)},"./src/common/grid-panel-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.gridPanels=this.getGridPanels()},t.prototype.getGridPanels=function(){var t=this;return this.data.map(function(e,n){var i,o,r,s,a,c="odd";if("vertical"===t.orient){var l=t.xScale(e.name),p=Number.parseInt((l/t.xScale.step()).toString());p%2==1&&(c="even"),i=t.xScale.bandwidth()*t.xScale.paddingInner(),o=t.xScale.bandwidth()+i,r=t.dims.height,s=t.xScale(e.name)-i/2,a=0}else if("horizontal"===t.orient){var l=t.yScale(e.name),p=Number.parseInt((l/t.yScale.step()).toString());p%2==1&&(c="even"),i=t.yScale.bandwidth()*t.yScale.paddingInner(),o=t.dims.width,r=t.yScale.bandwidth()+i,s=0,a=t.yScale(e.name)-i/2}return{name:e.name,class:c,height:r,width:o,x:s,y:a}})},t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"data",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"dims",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"xScale",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"yScale",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"orient",void 0),s=o([n.i(i.Component)({selector:"g[ngx-charts-grid-panel-series]",template:'\n    <svg:g ngx-charts-grid-panel *ngFor="let gridPanel of gridPanels"\n      [height]="gridPanel.height"\n      [width]="gridPanel.width"\n      [x]="gridPanel.x"\n      [y]="gridPanel.y"\n      [class.grid-panel]="true"\n      [class.odd]="gridPanel.class === \'odd\'"\n      [class.even]="gridPanel.class === \'even\'">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/common/grid-panel.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){}return t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"path",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"width",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"height",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"x",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"y",void 0),s=o([n.i(i.Component)({selector:"g[ngx-charts-grid-panel]",template:'\n    <svg:rect\n      [attr.height]="height"\n      [attr.width]="width"\n      [attr.x]="x"\n      [attr.y]="y"\n      stroke="none"\n      class="gridpanel"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/common/index.ts":function(t,e,n){"use strict";var i=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return i.a});var o=n("./src/common/legend/index.ts");n.d(e,"r",function(){return o.a}),n.d(e,"s",function(){return o.c}),n.d(e,"t",function(){return o.b}),n.d(e,"u",function(){return o.d});var r=n("./src/common/tooltip/index.ts");n.d(e,"v",function(){return r.a}),n.d(e,"w",function(){return r.b}),n.d(e,"x",function(){return r.c}),n.d(e,"y",function(){return r.d}),n.d(e,"z",function(){return r.e}),n.d(e,"A",function(){return r.f}),n.d(e,"B",function(){return r.g});var s=n("./src/common/count/index.ts");n.d(e,"C",function(){return s.a}),n.d(e,"D",function(){return s.c}),n.d(e,"E",function(){return s.b});var a=n("./src/common/timeline/index.ts");n.d(e,"F",function(){return a.a});var c=n("./src/common/color.helper.ts");n.d(e,"b",function(){return c.a});var l=n("./src/common/charts/index.ts");n.d(e,"G",function(){return l.a});var p=n("./src/common/area.component.ts");n.d(e,"c",function(){return p.a});var d=n("./src/common/area-tooltip.component.ts");n.d(e,"d",function(){return d.a});var h=n("./src/common/base-chart.component.ts");n.d(e,"e",function(){return h.a});var u=n("./src/common/circle.component.ts");n.d(e,"f",function(){return u.a});var g=n("./src/common/circle-series.component.ts");n.d(e,"g",function(){return g.a});var m=n("./src/common/grid-layout.helper.ts");n.d(e,"h",function(){return m.b}),n.d(e,"i",function(){return m.a});var f=n("./src/common/grid-panel.component.ts");n.d(e,"j",function(){return f.a});var y=n("./src/common/grid-panel-series.component.ts");n.d(e,"k",function(){return y.a});var v=n("./src/common/svg-linear-gradient.component.ts");n.d(e,"l",function(){return v.a});var b=n("./src/common/svg-radial-gradient.component.ts");n.d(e,"m",function(){return b.a});var x=n("./src/common/tick-format.helper.ts");n.d(e,"n",function(){return x.a});var w=n("./src/common/trim-label.helper.ts");n.d(e,"o",function(){return w.a});var O=n("./src/common/view-dimensions.helper.ts");n.d(e,"p",function(){return O.a});var S=n("./src/common/label.helper.ts");n.d(e,"q",function(){return S.a})},"./src/common/label.helper.ts":function(t,e,n){"use strict";function i(t){return t=t instanceof Date?t.toLocaleDateString():t.toLocaleString()}e.a=i},"./src/common/legend/advanced-legend.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/legend/advanced-legend.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/legend/advanced-legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n("./src/common/trim-label.helper.ts")),r=n("./src/common/label.helper.ts"),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.legendItems=[],this.totalLabel="total"}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.getTotal=function(){return this.data.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)},t.prototype.update=function(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()},t.prototype.getLegendItems=function(){var t=this;return this.data.map(function(e,i){var s=n.i(r.a)(e.name),a=e.value,c=a/t.total*100;return{value:a,color:t.colors.getColor(s),label:n.i(o.a)(s,20),originalLabel:e.name,percentage:c}})},t.prototype.trackBy=function(t){return t.formattedLabel},t}();s([n.i(i.Input)(),a("design:type",Number)],c.prototype,"width",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"data",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"colors",void 0),s([n.i(i.Output)(),a("design:type",i.EventEmitter)],c.prototype,"select",void 0),s([n.i(i.Output)(),a("design:type",i.EventEmitter)],c.prototype,"activate",void 0),s([n.i(i.Output)(),a("design:type",i.EventEmitter)],c.prototype,"deactivate",void 0),c=s([n.i(i.Component)({selector:"ngx-charts-advanced-legend",template:'\n    <div class="advanced-pie-legend"\n      [style.width.px]="width">\n      <div\n        class="total-value"\n        ngx-charts-count-up\n        [countTo]="roundedTotal">\n      </div>\n      <div class="total-label">\n        {{totalLabel}}\n      </div>\n      <div class="legend-items-container">\n        <div class="legend-items">\n          <div\n            *ngFor="let legendItem of legendItems; trackBy:trackBy"\n            tabindex="-1"\n            class="legend-item"\n            (mouseenter)="activate.emit(legendItem.label)"\n            (mouseleave)="deactivate.emit(legendItem.label)"\n            (click)="select.emit({ name: legendItem.label, value: legendItem.value })">\n            <div\n              class="item-color"\n              [style.background]="legendItem.color">\n            </div>\n            <div\n              class="item-value"\n              ngx-charts-count-up\n              [countTo]="legendItem.value">\n            </div>\n            <div class="item-label">{{legendItem.label}}</div>\n            <div\n              class="item-percent"\n              ngx-charts-count-up\n              [countTo]="legendItem.percentage"\n              [countSuffix]="\'%\'">\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  ',styles:[n("./src/common/legend/advanced-legend.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],c)},"./src/common/legend/index.ts":function(t,e,n){"use strict";var i=n("./src/common/legend/legend.component.ts");n.d(e,"a",function(){return i.a});var o=n("./src/common/legend/scale-legend.component.ts");n.d(e,"c",function(){return o.a});var r=n("./src/common/legend/legend-entry.component.ts");n.d(e,"b",function(){return r.a});var s=n("./src/common/legend/advanced-legend.component.ts");n.d(e,"d",function(){return s.a})},"./src/common/legend/legend-entry.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.isActive=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.toggle=new i.EventEmitter}return Object.defineProperty(t.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},t.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},t}();o([n.i(i.Input)(),r("design:type",String)],s.prototype,"color",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"label",void 0),o([n.i(i.Input)(),r("design:type",String)],s.prototype,"formattedLabel",void 0),o([n.i(i.Input)(),r("design:type",Boolean)],s.prototype,"isActive",void 0),o([n.i(i.Output)(),r("design:type",i.EventEmitter)],s.prototype,"select",void 0),o([n.i(i.Output)(),r("design:type",i.EventEmitter)],s.prototype,"activate",void 0),o([n.i(i.Output)(),r("design:type",i.EventEmitter)],s.prototype,"deactivate",void 0),o([n.i(i.Output)(),r("design:type",i.EventEmitter)],s.prototype,"toggle",void 0),o([n.i(i.HostListener)("mouseenter"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],s.prototype,"onMouseEnter",null),o([n.i(i.HostListener)("mouseleave"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],s.prototype,"onMouseLeave",null),s=o([n.i(i.Component)({selector:"ngx-charts-legend-entry",template:'\n    <span \n      [title]="formattedLabel"\n      tabindex="-1"\n      [class.active]="isActive"\n      (click)="select.emit(formattedLabel)">\n      <span\n        class="legend-label-color"\n        [style.background-color]="color"\n        (click)="toggle.emit(formattedLabel)">\n      </span>\n      <span class="legend-label-text">\n        {{trimmedLabel}}\n      </span>\n    </span>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/common/legend/legend.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/legend/legend.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/legend/legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n("./src/common/label.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t,e){this.cd=t,this.zone=e,this.labelClick=new i.EventEmitter,this.labelActivate=new i.EventEmitter,this.labelDeactivate=new i.EventEmitter,this.legendEntries=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},t.prototype.getLegendEntries=function(){for(var t=[],e=this,i=0,r=this.data;i<r.length;i++){var s=r[i];!function(i){var r=n.i(o.a)(i);-1===t.findIndex(function(t){return t.label===r})&&t.push({label:i,formattedLabel:r,color:e.colors.getColor(i)})}(s)}return t},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.label===e.name})},t.prototype.activate=function(t){this.labelActivate.emit(t)},t.prototype.deactivate=function(t){this.labelDeactivate.emit(t)},t.prototype.trackBy=function(t,e){return e.label},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"data",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"title",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"colors",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"height",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"width",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"activeEntries",void 0),r([n.i(i.Output)(),s("design:type",i.EventEmitter)],a.prototype,"labelClick",void 0),r([n.i(i.Output)(),s("design:type",i.EventEmitter)],a.prototype,"labelActivate",void 0),r([n.i(i.Output)(),s("design:type",i.EventEmitter)],a.prototype,"labelDeactivate",void 0),a=r([n.i(i.Component)({selector:"ngx-charts-legend",template:'\n    <div [style.width.px]="width">\n      <header class="legend-title">\n        <span class="legend-icon icon-eye"></span>\n        <span class="legend-title-text">{{title}}</span>\n      </header>\n      <div class="legend-wrap">\n        <ul class="legend-labels"\n          [style.max-height.px]="height - 45">\n          <li\n            *ngFor="let entry of legendEntries; trackBy: trackBy"\n            class="legend-label">\n            <ngx-charts-legend-entry\n              [label]="entry.label"\n              [formattedLabel]="entry.formattedLabel"\n              [color]="entry.color"\n              [isActive]="isActive(entry)"\n              (select)="labelClick.emit($event)"\n              (activate)="activate($event)"\n              (deactivate)="deactivate($event)">\n            </ngx-charts-legend-entry>\n          </li>\n        </ul>\n      </div>\n    </div>\n  ',styles:[n("./src/common/legend/legend.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.ChangeDetectorRef,i.NgZone])],a)},"./src/common/legend/scale-legend.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/legend/scale-legend.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/legend/scale-legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n(7)),r=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.sanitizer=t}return t.prototype.ngOnChanges=function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to bottom, "+e+")")},t.prototype.gradientString=function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,i){n.push(t+" "+Math.round(100*e[i])+"%")}),n.join(", ")},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"valueRange",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"colors",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"height",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"width",void 0),a=r([n.i(i.Component)({selector:"ngx-charts-scale-legend",template:'\n    <div\n      class="scale-legend"\n      [style.height.px]="height"\n      [style.width.px]="width">\n      <div class="scale-legend-label">\n        <span>{{ valueRange[1].toLocaleString() }}</span>\n      </div>\n      <div\n        class="scale-legend-wrap"\n        [style.background]="gradient">\n      </div>\n      <div class="scale-legend-label">\n        <span>{{ valueRange[0].toLocaleString() }}</span>\n      </div>\n    </div>\n  ',styles:[n("./src/common/legend/scale-legend.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[o.DomSanitizer])],a)},"./src/common/shape.helper.ts":function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,a,c){var l="";return l="M"+[t+o,e],l+="h"+(n-2*o),l+=s?"a"+[o,o]+" 0 0 1 "+[o,o]:"h"+o+"v"+o,l+="v"+(i-2*o),l+=c?"a"+[o,o]+" 0 0 1 "+[-o,o]:"v"+o+"h"+-o,l+="h"+(2*o-n),l+=a?"a"+[o,o]+" 0 0 1 "+[-o,-o]:"h"+-o+"v"+-o,l+="v"+(2*o-i),l+=r?"a"+[o,o]+" 0 0 1 "+[o,-o]:"v"+-o+"h"+o,l+="z"}e.a=i},"./src/common/svg-linear-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.orientation="vertical"}return t.prototype.ngOnChanges=function(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")},t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"orientation",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"name",void 0),o([n.i(i.Input)(),r("design:type",Array)],s.prototype,"stops",void 0),s=o([n.i(i.Component)({selector:"g[ngx-charts-svg-linear-gradient]",template:'\n    <svg:linearGradient\n      [id]="name"\n      [attr.x1]="x1"\n      [attr.y1]="y1"\n      [attr.x2]="x2"\n      [attr.y2]="y2">\n      <svg:stop *ngFor="let stop of stops"\n        [attr.offset]="stop.offset + \'%\'"\n        [style.stop-color]="stop.color"\n        [style.stop-opacity]="stop.opacity"\n      />\n    </svg:linearGradient>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/common/svg-radial-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.endOpacity=1,this.cx=0,this.cy=0}return t.prototype.ngOnChanges=function(t){this.r="30%",this.stops=this.stops||[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}]},t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"color",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"name",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"startOpacity",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"endOpacity",void 0),o([n.i(i.Input)(),r("design:type",Number)],s.prototype,"cx",void 0),o([n.i(i.Input)(),r("design:type",Number)],s.prototype,"cy",void 0),o([n.i(i.Input)(),r("design:type",Array)],s.prototype,"stops",void 0),s=o([n.i(i.Component)({selector:"g[ngx-charts-svg-radial-gradient]",template:'\n    <svg:radialGradient\n      [id]="name"\n      [attr.cx]="cx"\n      [attr.cy]="cy"\n      [attr.r]="r"\n      gradientUnits="userSpaceOnUse">\n      <svg:stop *ngFor="let stop of stops"\n        [attr.offset]="stop.offset + \'%\'"\n        [style.stop-color]="stop.color"\n        [style.stop-opacity]="stop.opacity"\n      />\n    </svg:radialGradient>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/common/tick-format.helper.ts":function(t,e,n){"use strict";function i(t,e){return function(i){if("No Value"===i||"Other"===i)return i;if("date"===t&&"groupBy"===e){return n.i(o.timeFormat)("MM/DD/YYYY")(i)}return i.toString()}}e.a=i;var o=n(14);n.n(o)},"./src/common/timeline/index.ts":function(t,e,n){"use strict";var i=n("./src/common/timeline/timeline.component.ts");n.d(e,"a",function(){
return i.a})},"./src/common/timeline/timeline.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/timeline/timeline.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/timeline/timeline.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(8)),s=(n.n(r),n(1)),a=(n.n(s),n(5)),c=(n.n(a),n("./src/utils/index.ts")),l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(){function t(t,e,n,o){this.zone=e,this.cd=n,this.location=o,this.height=50,this.select=new i.EventEmitter,this.onDomainChange=new i.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)},t.prototype.update=function(){this.dims=this.getDims(),this.height=this.dims.height;var t=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform="translate(0 , "+t+")";var e=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.filterId="filter"+n.i(c.b)().toString(),this.filter="url("+e+"#"+this.filterId+")",this.cd.markForCheck()},t.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}var a=[];if("time"===this.scaleType){var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else a=t;return a},t.prototype.getXScale=function(){var t;return"time"===this.scaleType?t=n.i(s.scaleTime)().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?t=n.i(s.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(t=n.i(s.scalePoint)().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t},t.prototype.addBrush=function(){var t=this;if(!this.brush){var e=this.height,i=this.view[0];this.brush=n.i(r.brushX)().extent([[0,0],[i,e]]).on("brush end",function(){var e=a.event.selection||t.xScale.range(),n=e.map(t.xScale.invert);t.onDomainChange.emit(n),t.cd.markForCheck()}),n.i(a.select)(this.element).select(".brush").call(this.brush)}},t.prototype.updateBrush=function(){if(this.brush){var t=this.height,e=this.view[0];this.brush.extent([[0,0],[e,t]]),n.i(a.select)(this.element).select(".brush").call(this.brush),n.i(a.select)(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck()}},t.prototype.getDims=function(){return{width:this.view[0],height:this.height}},t}();l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"view",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"state",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"results",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"scheme",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"customColors",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"legend",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"miniChart",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"autoScale",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"scaleType",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"height",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"select",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"onDomainChange",void 0),d=l([n.i(i.Component)({selector:"g[ngx-charts-timeline]",template:'\n    <svg:g\n      class="timeline"\n      [attr.transform]="transform">\n      <svg:filter [attr.id]="filterId">\n        <svg:feColorMatrix in="SourceGraphic"\n            type="matrix"\n            values="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0" />\n      </svg:filter>\n      <svg:g class="embedded-chart">\n        <ng-content></ng-content>\n      </svg:g>\n      <svg:rect x="0"\n        [attr.width]="view[0]"\n        y="0"\n        [attr.height]="height"\n        class="brush-background"\n      />\n      <svg:g class="brush"></svg:g>\n    </svg:g>\n  ',styles:[n("./src/common/timeline/timeline.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}),p("design:paramtypes",[i.ElementRef,i.NgZone,i.ChangeDetectorRef,o.LocationStrategy])],d)},"./src/common/tooltip/alignment.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(i||(i={}))},"./src/common/tooltip/index.ts":function(t,e,n){"use strict";var i=n("./src/common/tooltip/tooltip.module.ts");n.d(e,"a",function(){return i.a});var o=n("./src/common/tooltip/tooltip.service.ts");n.d(e,"b",function(){return o.a});var r=n("./src/common/tooltip/tooltip.component.ts");n.d(e,"c",function(){return r.a});var s=n("./src/common/tooltip/tooltip.directive.ts");n.d(e,"d",function(){return s.a});var a=n("./src/common/tooltip/style.type.ts");n.d(e,"e",function(){return a.a});var c=n("./src/common/tooltip/alignment.type.ts");n.d(e,"f",function(){return c.a});var l=n("./src/common/tooltip/show.type.ts");n.d(e,"g",function(){return l.a})},"./src/common/tooltip/injection-registery.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(){function t(t){this.injectionService=t,this.defaults={},this.components=new Map}return t.prototype.getByType=function(t){return void 0===t&&(t=this.type),this.components.get(t)},t.prototype.create=function(t){return this.createByType(this.type,t)},t.prototype.createByType=function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n},t.prototype.destroy=function(t){var e=this.components.get(t.componentType);if(e){var n=e.indexOf(t);if(n>-1){e[n].destroy(),e.splice(n,1)}}},t.prototype.destroyAll=function(){this.destroyByType(this.type)},t.prototype.destroyByType=function(t){var e=this.components.get(t);if(e)for(var n=0,i=e;n<i.length;n++){var o=i[n];this.destroy(o)}},t.prototype.assignDefaults=function(t){var e=this.defaults,n=e.inputs,i=e.outputs;return t.inputs||t.outputs||(t={inputs:t}),n&&(t.inputs=Object.assign(n,t.inputs)),i&&(t.outputs=Object.assign(i,t.outputs)),t},t.prototype.injectComponent=function(t,e){return this.injectionService.appendComponent(t,e)},t.prototype.register=function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)},t}()},"./src/common/tooltip/injection.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}return t.prototype.getRootViewContainer=function(){var t=this.applicationRef._rootComponents;if(t.length)return t[0];if(this._container)return this._container;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},t.prototype.setRootViewContainer=function(t){this._container=t},t.prototype.getComponentRootNode=function(t){return t.hostView?t.hostView.rootNodes[0]:t.element.nativeElement},t.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},t.prototype.projectComponentBindings=function(t,e){if(e){if(void 0!==e.inputs)for(var n=Object.getOwnPropertyNames(e.inputs),i=0,o=n;i<o.length;i++){var r=o[i];t.instance[r]=e.inputs[r]}if(void 0!==e.outputs)for(var s=Object.getOwnPropertyNames(e.outputs),a=0,c=s;a<c.length;a++){var l=c[a];t.instance[l]=e.outputs[l]}}return t},t.prototype.appendComponent=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=this.getRootViewContainerNode());var i=this.componentFactoryResolver.resolveComponentFactory(t),o=i.create(this.injector),r=this.applicationRef,s=this.getComponentRootNode(o);return this.projectComponentBindings(o,e),r.attachView(o.hostView),o.onDestroy(function(){r.detachView(o.hostView)}),o.instance.renderer.projectNodes(n,[s]),o},t}();s=o([n.i(i.Injectable)(),r("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector])],s)},"./src/common/tooltip/position/index.ts":function(t,e,n){"use strict";var i=n("./src/common/tooltip/position/placement.type.ts");n.d(e,"a",function(){return i.a});var o=n("./src/common/tooltip/position/position.ts");n.d(e,"b",function(){return o.a})},"./src/common/tooltip/position/placement.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(i||(i={}))},"./src/common/tooltip/position/position.ts":function(t,e,n){"use strict";function i(t,e,n){return"top"===n?t.top-s:"bottom"===n?t.top+t.height-e.height+s:"center"===n?t.top+t.height/2-e.height/2:void 0}function o(t,e,n){return"left"===n?t.left-s:"right"===n?t.left+t.width-e.width+s:"center"===n?t.left+t.width/2-e.width/2:void 0}n.d(e,"a",function(){return a});var r=n("./src/common/tooltip/position/placement.type.ts"),s=7,a=function(){function t(){}return t.calculateVerticalAlignment=function(t,e,n){var o=i(t,e,n);return o+e.height>window.innerHeight&&(o=window.innerHeight-e.height),o},t.calculateVerticalCaret=function(t,e,n,o){var r;"top"===o&&(r=t.height/2-n.height/2+s),"bottom"===o&&(r=e.height-t.height/2-n.height/2-s),"center"===o&&(r=e.height/2-n.height/2);var a=i(t,e,o);return a+e.height>window.innerHeight&&(r+=a+e.height-window.innerHeight),r},t.calculateHorizontalAlignment=function(t,e,n){var i=o(t,e,n);return i+e.width>window.innerWidth&&(i=window.innerWidth-e.width),i},t.calculateHorizontalCaret=function(t,e,n,i){var r;"left"===i&&(r=t.width/2-n.width/2+s),"right"===i&&(r=e.width-t.width/2-n.width/2-s),"center"===i&&(r=e.width/2-n.width/2);var a=o(t,e,i);return a+e.width>window.innerWidth&&(r+=a+e.width-window.innerWidth),r},t.shouldFlip=function(t,e,n,r,s){var a=!1;if("right"===n){var c=o(t,e,r);c+e.width+s>window.innerWidth&&(a=!0)}if("left"===n){var c=o(t,e,r);c-s<0&&(a=!0)}if("top"===n&&t.top-e.height-s<0&&(a=!0),"bottom"===n){var c=i(t,e,r);c+e.height+s>window.innerHeight&&(a=!0)}return a},t.positionCaret=function(e,n,i,o,s){var a=0,c=0;return e===r.a.right?(c=-7,a=t.calculateVerticalCaret(i,n,o,s)):e===r.a.left?(c=n.width,a=t.calculateVerticalCaret(i,n,o,s)):e===r.a.top?(a=n.height,c=t.calculateHorizontalCaret(i,n,o,s)):e===r.a.bottom&&(a=-7,c=t.calculateHorizontalCaret(i,n,o,s)),{top:a,left:c}},t.positionContent=function(e,n,i,o,s){var a=0,c=0;return e===r.a.right?(c=i.left+i.width+o,a=t.calculateVerticalAlignment(i,n,s)):e===r.a.left?(c=i.left-n.width-o,a=t.calculateVerticalAlignment(i,n,s)):e===r.a.top?(a=i.top-n.height-o,c=t.calculateHorizontalAlignment(i,n,s)):e===r.a.bottom&&(a=i.top+i.height+o,c=t.calculateHorizontalAlignment(i,n,s)),{top:a,left:c}},t.determinePlacement=function(e,n,i,o,s){if(t.shouldFlip(i,n,e,s,o)){if(e===r.a.right)return r.a.left;if(e===r.a.left)return r.a.right;if(e===r.a.top)return r.a.bottom;if(e===r.a.bottom)return r.a.top}return e},t}()},"./src/common/tooltip/show.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(i||(i={}))},"./src/common/tooltip/style.type.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(i||(i={}))},"./src/common/tooltip/tooltip.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/common/tooltip/tooltip.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/tooltip/tooltip.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n("./src/utils/throttle.ts")),r=n("./src/common/tooltip/position/index.ts"),s=(n("./src/common/tooltip/style.type.ts"),n("./src/common/tooltip/alignment.type.ts"),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t,e){this.element=t,this.renderer=e}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){var t="ngx-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},t.prototype.position=function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var i=e.getBoundingClientRect();this.checkFlip(n,i),this.positionContent(e,n,i),this.showCaret&&this.positionCaret(n,i),setTimeout(function(){return t.renderer.setElementClass(e,"animate",!0)},1)}},t.prototype.positionContent=function(t,e,n){var i=r.b.positionContent(this.placement,n,e,this.spacing,this.alignment),o=i.top,s=i.left;this.renderer.setElementStyle(t,"top",o+"px"),this.renderer.setElementStyle(t,"left",s+"px")},t.prototype.positionCaret=function(t,e){var n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),o=r.b.positionCaret(this.placement,e,t,i,this.alignment),s=o.top,a=o.left;this.renderer.setElementStyle(n,"top",s+"px"),this.renderer.setElementStyle(n,"left",a+"px")},t.prototype.checkFlip=function(t,e){this.placement=r.b.determinePlacement(this.placement,e,t,this.spacing,this.alignment)},t.prototype.onWindowResize=function(){this.position()},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"host",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"showCaret",void 0),s([n.i(i.Input)(),a("design:type",Number)],c.prototype,"type",void 0),s([n.i(i.Input)(),a("design:type",Number)],c.prototype,"placement",void 0),s([n.i(i.Input)(),a("design:type",Number)],c.prototype,"alignment",void 0),s([n.i(i.Input)(),a("design:type",Number)],c.prototype,"spacing",void 0),s([n.i(i.Input)(),a("design:type",String)],c.prototype,"cssClass",void 0),s([n.i(i.Input)(),a("design:type",String)],c.prototype,"title",void 0),s([n.i(i.ViewChild)("caretElm"),a("design:type",Object)],c.prototype,"caretElm",void 0),s([n.i(i.HostBinding)("class"),a("design:type",String),a("design:paramtypes",[])],c.prototype,"cssClasses",null),s([n.i(i.HostListener)("window:resize"),n.i(o.a)(100),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],c.prototype,"onWindowResize",null),c=s([n.i(i.Component)({selector:"ngx-tooltip-content",template:'\n    <div>\n      <span\n        #caretElm\n        [hidden]="!showCaret"\n        class="tooltip-caret position-{{this.placement}}">\n      </span>\n      <div class="tooltip-content">\n        <span *ngIf="!title">\n          <ng-template\n            [ngTemplateOutlet]="template"\n            [ngOutletContext]="{ model: context }">\n          </ng-template>\n        </span>\n        <span\n          *ngIf="title"\n          [innerHTML]="title">\n        </span>\n      </div>\n    </div>\n  ',encapsulation:i.ViewEncapsulation.None,styles:[n("./src/common/tooltip/tooltip.component.scss")]}),a("design:paramtypes",[i.ElementRef,i.Renderer])],c)},"./src/common/tooltip/tooltip.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n("./src/common/tooltip/position/index.ts")),r=n("./src/common/tooltip/style.type.ts"),s=n("./src/common/tooltip/alignment.type.ts"),a=n("./src/common/tooltip/show.type.ts"),c=n("./src/common/tooltip/tooltip.service.ts"),l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(){function t(t,e,n,c,l){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.element=c,this.zone=l,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=o.a.top,this.tooltipAlignment=s.a.center,this.tooltipType=r.a.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=a.a.all,this.show=new i.EventEmitter,this.hide=new i.EventEmitter}return Object.defineProperty(t.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===a.a.all||this.tooltipShowEvent===a.a.focus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===a.a.all||this.tooltipShowEvent===a.a.mouseover},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.hideTooltip(!0)},t.prototype.onFocus=function(){this.listensForFocus&&this.showTooltip()},t.prototype.onBlur=function(){this.listensForFocus&&this.hideTooltip(!0)},t.prototype.onMouseEnter=function(){this.listensForHover&&this.showTooltip()},t.prototype.onMouseLeave=function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component){if(this.component.instance.element.nativeElement.contains(t))return}this.hideTooltip()}},t.prototype.onMouseClick=function(){this.listensForHover&&this.hideTooltip(!0)},t.prototype.showTooltip=function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}},t.prototype.addHideListeners=function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip()})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",function(n){t.contains(n.target)||e.hideTooltip()}))},t.prototype.hideTooltip=function(t){var e=this;if(this.component){var n=function(){e.mouseLeaveContentEvent&&e.mouseLeaveContentEvent(),e.mouseEnterContentEvent&&e.mouseEnterContentEvent(),e.documentClickEvent&&e.documentClickEvent(),e.hide.emit(!0),e.tooltipService.destroy(e.component),e.component=void 0};clearTimeout(this.timeout),t?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}},t.prototype.createBoundOptions=function(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}},t}();l([n.i(i.Input)(),p("design:type",String)],d.prototype,"tooltipCssClass",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"tooltipTitle",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipAppendToBody",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipSpacing",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipDisabled",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipShowCaret",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipPlacement",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipAlignment",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipType",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipCloseOnClickOutside",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipCloseOnMouseLeave",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipHideTimeout",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipShowTimeout",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"tooltipTemplate",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"tooltipShowEvent",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"tooltipContext",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"show",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"hide",void 0),l([n.i(i.HostListener)("focusin"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],d.prototype,"onFocus",null),l([n.i(i.HostListener)("blur"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],d.prototype,"onBlur",null),l([n.i(i.HostListener)("mouseenter"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],d.prototype,"onMouseEnter",null),l([n.i(i.HostListener)("mouseleave",["$event.target"]),p("design:type",Function),p("design:paramtypes",[Object]),p("design:returntype",void 0)],d.prototype,"onMouseLeave",null),l([n.i(i.HostListener)("click"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],d.prototype,"onMouseClick",null),d=l([n.i(i.Directive)({selector:"[ngx-tooltip]"}),p("design:paramtypes",[c.a,i.ViewContainerRef,i.Renderer,i.ElementRef,i.NgZone])],d)},"./src/common/tooltip/tooltip.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n("./src/common/tooltip/tooltip.directive.ts")),s=n("./src/common/tooltip/tooltip.component.ts"),a=n("./src/common/tooltip/tooltip.service.ts"),c=n("./src/common/tooltip/injection.service.ts"),l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=function(){function t(){}return t}();p=l([n.i(i.NgModule)({declarations:[s.a,r.a],providers:[c.a,a.a],exports:[s.a,r.a],imports:[o.CommonModule],entryComponents:[s.a]})],p)},"./src/common/tooltip/tooltip.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n("./src/common/tooltip/injection.service.ts")),r=n("./src/common/tooltip/injection-registery.service.ts"),s=n("./src/common/tooltip/tooltip.component.ts"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(e){var n=t.call(this,e)||this;return n.injectionService=e,n.type=s.a,n}return a(e,t),e}(r.a);p=c([n.i(i.Injectable)(),l("design:paramtypes",[o.a])],p)},"./src/common/trim-label.helper.ts":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=16),"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim(),t.length<=e?t:t.slice(0,e)+"...")}e.a=i},"./src/common/view-dimensions.helper.ts":function(t,e,n){"use strict";function i(t){var e=t.width,n=t.height,i=t.margins,o=t.showXAxis,r=void 0!==o&&o,s=t.showYAxis,a=void 0!==s&&s,c=t.xAxisHeight,l=void 0===c?0:c,p=t.yAxisWidth,d=void 0===p?0:p,h=t.showXLabel,u=void 0!==h&&h,g=t.showYLabel,m=void 0!==g&&g,f=t.showLegend,y=void 0!==f&&f,v=t.legendType,b=void 0===v?"ordinal":v,x=t.columns,w=void 0===x?12:x,O=i[3],S=e,A=n-i[0]-i[2];if(y&&(w-="ordinal"===b?2:1),S=S*w/12,S=S-i[1]-i[3],r&&(A-=5,A-=l,u)){var j=30;A-=j}if(a&&(S-=5,S-=d,O+=d,O+=10,m)){var j=30;S-=j,O+=j}return S=Math.max(0,S),A=Math.max(0,A),{width:~~S,height:~~A,xOffset:~~O}}e.a=i},"./src/force-directed-graph/force-directed-graph.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/force-directed-graph/force-directed-graph.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/force-directed-graph/force-directed-graph.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n(0),o=(n.n(i),n(10)),r=(n.n(o),n("./src/common/charts/chart.component.ts")),s=n("./src/common/base-chart.component.ts"),a=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},p=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.force=n.i(o.forceSimulation)().force("charge",n.i(o.forceManyBody)()).force("collide",n.i(o.forceCollide)(5)).force("x",n.i(o.forceX)()).force("y",n.i(o.forceY)()),e.forceLink=n.i(o.forceLink)().id(function(t){return t.value}),e.legendTitle="Legend",e.nodes=[],e.links=[],e.activeEntries=[],e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[0,0,0,0],e.results=[],e.groupResultsBy=function(t){return t.value},e}return l(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(a.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="\n      translate("+(this.dims.xOffset+this.dims.width/2)+", "+(this.margin[0]+this.dims.height/2)+")\n    ",this.force&&this.force.nodes(this.nodes).force("link",this.forceLink.links(this.links)).alpha(.5).restart()},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.onActivate=function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.getSeriesDomain=function(){var t=this;return this.nodes.map(function(e){return t.groupResultsBy(e)}).reduce(function(t,e){return t.includes(e)?t:t.concat([e])},[]).sort()},e.prototype.trackLinkBy=function(t,e){return e.index},e.prototype.trackNodeBy=function(t,e){return e.value},e.prototype.setColors=function(){this.colors=new c.a(this.scheme,"ordinal",this.seriesDomain,this.customColors)},e.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors,title:this.legendTitle}},e.prototype.onDragStart=function(t,e){this.force.alphaTarget(.3).restart(),this.draggingNode=t,this.draggingStart={x:e.x-t.x,y:e.y-t.y},this.draggingNode.fx=e.x-this.draggingStart.x,this.draggingNode.fy=e.y-this.draggingStart.y},e.prototype.onDrag=function(t){this.draggingNode&&(this.draggingNode.fx=t.x-this.draggingStart.x,this.draggingNode.fy=t.y-this.draggingStart.y)},e.prototype.onDragEnd=function(t){this.draggingNode&&(this.force.alphaTarget(0),this.draggingNode.fx=void 0,this.draggingNode.fy=void 0,this.draggingNode=void 0)},e}(s.a);p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"force",void 0),p([n.i(i.Input)(),d("design:type",Object)],h.prototype,"forceLink",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"legend",void 0),p([n.i(i.Input)(),d("design:type",String)],h.prototype,"legendTitle",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"nodes",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"links",void 0),p([n.i(i.Input)(),d("design:type",Array)],h.prototype,"activeEntries",void 0),p([n.i(i.Input)(),d("design:type",Boolean)],h.prototype,"tooltipDisabled",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"activate",void 0),p([n.i(i.Output)(),d("design:type",i.EventEmitter)],h.prototype,"deactivate",void 0),p([n.i(i.ContentChild)("linkTemplate"),d("design:type",i.TemplateRef)],h.prototype,"linkTemplate",void 0),p([n.i(i.ContentChild)("nodeTemplate"),d("design:type",i.TemplateRef)],h.prototype,"nodeTemplate",void 0),p([n.i(i.ViewChild)(r.a,{read:i.ElementRef}),d("design:type",i.ElementRef)],h.prototype,"chart",void 0),p([n.i(i.Input)(),d("design:type",Function)],h.prototype,"groupResultsBy",void 0),p([n.i(i.HostListener)("document:mousemove",["$event"]),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",void 0)],h.prototype,"onDrag",null),p([n.i(i.HostListener)("document:mouseup",["$event"]),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",void 0)],h.prototype,"onDragEnd",null),h=p([n.i(i.Component)({selector:"ngx-charts-force-directed-graph",
template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="force-directed-graph chart">\n        <svg:g class="links">\n          <svg:g *ngFor="let link of links; trackBy:trackLinkBy">\n            <ng-template *ngIf="linkTemplate"\n              [ngTemplateOutlet]="linkTemplate"\n              [ngOutletContext]="{ $implicit: link }">\n            </ng-template>\n            <svg:line *ngIf="!linkTemplate"\n              strokeWidth="1" class="edge"\n              [attr.x1]="link.source.x"\n              [attr.y1]="link.source.y"\n              [attr.x2]="link.target.x"\n              [attr.y2]="link.target.y"\n            />\n          </svg:g>\n        </svg:g>\n        <svg:g class="nodes">\n          <svg:g *ngFor="let node of nodes; trackBy:trackNodeBy"\n            [attr.transform]="\'translate(\' + node.x + \',\' + node.y + \')\'"\n            [attr.fill]="colors.getColor(groupResultsBy(node))"\n            [attr.stroke]="colors.getColor(groupResultsBy(node))"\n            (mousedown)="onDragStart(node, $event)"\n            (click)="onClick({name: node.value})"\n            ngx-tooltip\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipPlacement]="\'top\'"\n            [tooltipType]="\'tooltip\'"\n            [tooltipTitle]="node.value">\n            <ng-template *ngIf="nodeTemplate"\n              [ngTemplateOutlet]="nodeTemplate"\n              [ngOutletContext]="{ $implicit: node }">\n            </ng-template>\n            <svg:circle *ngIf="!nodeTemplate" r="5" />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/force-directed-graph/force-directed-graph.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],h)},"./src/force-directed-graph/force-directed-graph.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return a});var i=n(0),o=(n.n(i),n("./src/force-directed-graph/force-directed-graph.component.ts")),r=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return o.a});var s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=function(){function t(){}return t}();a=s([n.i(i.NgModule)({imports:[r.a],declarations:[o.a],exports:[o.a]})],a)},"./src/force-directed-graph/index.ts":function(t,e,n){"use strict";var i=n("./src/force-directed-graph/force-directed-graph.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b});n("./src/force-directed-graph/force-directed-graph.component.ts")},"./src/gauge/gauge-arc.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n("./src/common/label.helper.ts")),r=n("./src/common/color.helper.ts"),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.isActive=!1,this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.tooltipText=function(t){var e,i=n.i(o.a)(t.data.name);return e=this.valueFormatting?this.valueFormatting(t.data.value):n.i(o.a)(t.data.value),'\n      <span class="tooltip-label">'+i+'</span>\n      <span class="tooltip-val">'+e+"</span>\n    "},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"backgroundArc",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"valueArc",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"cornerRadius",void 0),s([n.i(i.Input)(),a("design:type",r.a)],c.prototype,"colors",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"isActive",void 0),s([n.i(i.Input)(),a("design:type",Boolean)],c.prototype,"tooltipDisabled",void 0),s([n.i(i.Input)(),a("design:type",Function)],c.prototype,"valueFormatting",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"select",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"activate",void 0),s([n.i(i.Output)(),a("design:type",Object)],c.prototype,"deactivate",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-gauge-arc]",template:'\n    <svg:g ngx-charts-pie-arc\n        class="background-arc"\n        [startAngle]="0"\n        [endAngle]="backgroundArc.endAngle"\n        [innerRadius]="backgroundArc.innerRadius"\n        [outerRadius]="backgroundArc.outerRadius"\n        [cornerRadius]="cornerRadius"\n        [data]="backgroundArc.data"\n        [animate]="false"\n        [pointerEvents]="false">\n    </svg:g>\n    <svg:g ngx-charts-pie-arc\n        [startAngle]="0"\n        [endAngle]="valueArc.endAngle"\n        [innerRadius]="valueArc.innerRadius"\n        [outerRadius]="valueArc.outerRadius"\n        [cornerRadius]="cornerRadius"\n        [fill]="colors.getColor(valueArc.data.name)"\n        [data]="valueArc.data"\n        [animate]="true"\n        [isActive]="isActive"\n        (select)="select.emit($event)"\n        (activate)="activate.emit($event)"\n        (deactivate)="deactivate.emit($event)"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipTitle]="tooltipText(valueArc)">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],c)},"./src/gauge/gauge-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n(4)),r=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.rotate=""}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.rotationAngle=-90+this.startAngle,this.rotate="rotate("+this.rotationAngle+")",this.ticks=this.getTicks()},t.prototype.getTicks=function(){for(var t=this.angleSpan/this.bigSegments,e=t/this.smallSegments,n={big:[],small:[]},i=this.radius+10,o=i+20+10,r=0;r<=this.bigSegments;r++){var s=r*t,a=s*Math.PI/180,c=this.getTextAnchor(s),l=!1;if(0===r&&360===this.angleSpan&&(l=!0),!l){var p=Number.parseFloat(this.valueScale.invert(s).toString()).toLocaleString();this.tickFormatting&&(p=this.tickFormatting(p)),n.big.push({line:this.getTickPath(i,20,a),textAnchor:c,text:p,textTransform:"\n            translate("+o*Math.cos(a)+", "+o*Math.sin(a)+") rotate("+-this.rotationAngle+")\n          "})}if(r!==this.bigSegments)for(var d=1;d<=this.smallSegments;d++){var h=s+d*e,u=h*Math.PI/180;n.small.push({line:this.getTickPath(i,10,u)})}}return n},t.prototype.getTextAnchor=function(t){t=(this.startAngle+t)%360;var e="middle";return t>45&&t<=135?e="start":t>225&&t<=315&&(e="end"),e},t.prototype.getTickPath=function(t,e,i){var r=t*Math.sin(i),s=(t+e)*Math.sin(i),a=t*Math.cos(i),c=(t+e)*Math.cos(i),l=[{x:a,y:r},{x:c,y:s}];return n.i(o.line)().x(function(t){return t.x}).y(function(t){return t.y})(l)},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"bigSegments",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"smallSegments",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"min",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"max",void 0),r([n.i(i.Input)(),s("design:type",Number)],a.prototype,"angleSpan",void 0),r([n.i(i.Input)(),s("design:type",Number)],a.prototype,"startAngle",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"radius",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"valueScale",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"tickFormatting",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-gauge-axis]",template:'\n    <svg:g [attr.transform]="rotate">\n        <svg:g *ngFor="let tick of ticks.big"\n            class="gauge-tick gauge-tick-large">\n            <svg:path [attr.d]="tick.line" />\n        </svg:g>\n        <svg:g *ngFor="let tick of ticks.big"\n            class="gauge-tick gauge-tick-large">\n            <svg:text\n                [style.textAnchor]="tick.textAnchor"\n                [attr.transform]="tick.textTransform"\n                alignment-baseline="central">\n                {{tick.text}}\n            </svg:text>\n        </svg:g>\n        <svg:g *ngFor="let tick of ticks.small"\n            class="gauge-tick gauge-tick-small">\n            <svg:path [attr.d]="tick.line" />\n        </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],a)},"./src/gauge/gauge.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/gauge/gauge.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/gauge/gauge.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legend=!1,e.legendTitle="Legend",e.min=0,e.max=100,e.bigSegments=10,e.smallSegments=5,e.showAxis=!0,e.startAngle=-120,e.angleSpan=240,e.activeEntries=[],e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.resizeScale=1,e.rotation="",e.textTransform="scale(1, 1)",e.cornerRadius=10,e}return c(e,t),e.prototype.ngAfterViewInit=function(){var e=this;t.prototype.ngAfterViewInit.call(this),setTimeout(function(){return e.scaleText()})},e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions();var i=this.margin[3]+this.dims.width/2,o=this.margin[0]+this.dims.height/2;this.transform="translate("+i+", "+o+")",this.rotation="rotate("+this.startAngle+")",setTimeout(function(){return e.scaleText()},50)},e.prototype.getArcs=function(){var t=[],e=.7*this.outerRadius,n=Math.min(e/this.results.length,10),i=.7*n;this.textRadius=this.outerRadius-this.results.length*n,this.cornerRadius=Math.floor(i/2);for(var o=0,r=0,s=this.results;r<s.length;r++){var a=s[r],c=this.outerRadius-o*n,l=c-i,p={endAngle:this.angleSpan*Math.PI/180,innerRadius:l,outerRadius:c,data:{value:this.max,name:a.name}},d={endAngle:Math.min(this.valueScale(a.value),this.angleSpan)*Math.PI/180,innerRadius:l,outerRadius:c,data:{value:a.value,name:a.name}},h={backgroundArc:p,valueArc:d};t.push(h),o++}return t},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getValueDomain=function(){var t=this.results.map(function(t){return t.value}),e=Math.min.apply(Math,t),n=Math.max.apply(Math,t);return void 0!==this.min?this.min=Math.min(this.min,e):this.min=e,void 0!==this.max?this.max=Math.max(this.max,n):this.max=n,[this.min,this.max]},e.prototype.getValueScale=function(){return n.i(o.scaleLinear)().range([0,this.angleSpan]).nice().domain(this.valueDomain)},e.prototype.getDisplayValue=function(){var t=this.results.map(function(t){return t.value}).reduce(function(t,e){return t+e},0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(t):t.toLocaleString()},e.prototype.scaleText=function(t){var e=this;void 0===t&&(t=!0);var n=this.textEl.nativeElement.getBoundingClientRect().width,i=this.resizeScale;if(0===n)this.resizeScale=1;else{var o=this.textRadius;this.resizeScale=Math.floor(o/(n/this.resizeScale)*100)/100}this.resizeScale!==i&&(this.textTransform="scale("+this.resizeScale+", "+this.resizeScale+")",this.cd.markForCheck(),t&&setTimeout(function(){return e.scaleText(!1)},50))},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.getLegendOptions=function(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle}},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:event,entries:this.activeEntries})},e.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},e}(r.a);l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"legend",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"legendTitle",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"min",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"max",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"textValue",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"units",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"bigSegments",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"smallSegments",void 0),l([n.i(i.Input)(),p("design:type",Array)],d.prototype,"results",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"showAxis",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"startAngle",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"angleSpan",void 0),l([n.i(i.Input)(),p("design:type",Array)],d.prototype,"activeEntries",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"axisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipDisabled",void 0),l([n.i(i.Input)(),p("design:type",Function)],d.prototype,"valueFormatting",void 0),l([n.i(i.Input)(),p("design:type",Array)],d.prototype,"margin",void 0),l([n.i(i.Output)(),p("design:type",i.EventEmitter)],d.prototype,"activate",void 0),l([n.i(i.Output)(),p("design:type",i.EventEmitter)],d.prototype,"deactivate",void 0),l([n.i(i.ViewChild)("textEl"),p("design:type",i.ElementRef)],d.prototype,"textEl",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-gauge",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="gauge chart">\n        <svg:g *ngFor="let arc of arcs" [attr.transform]="rotation">\n          <svg:g ngx-charts-gauge-arc\n            [backgroundArc]="arc.backgroundArc"\n            [valueArc]="arc.valueArc"\n            [cornerRadius]="cornerRadius"\n            [colors]="colors"\n            [isActive]="isActive(arc.valueArc.data)"\n            [tooltipDisabled]="tooltipDisabled"\n            [valueFormatting]="valueFormatting"\n            (select)="onClick($event)"\n            (activate)="onActivate($event)"\n            (deactivate)="onDeactivate($event)">\n          </svg:g>\n        </svg:g>\n\n        <svg:g ngx-charts-gauge-axis\n          *ngIf="showAxis"\n          [bigSegments]="bigSegments"\n          [smallSegments]="smallSegments"\n          [min]="min"\n          [max]="max"\n          [radius]="outerRadius"\n          [angleSpan]="angleSpan"\n          [valueScale]="valueScale"\n          [startAngle]="startAngle"\n          [tickFormatting]="axisTickFormatting">\n        </svg:g>\n\n        <svg:text #textEl\n            [style.textAnchor]="\'middle\'"\n            [attr.transform]="textTransform"\n            alignment-baseline="central">\n          <tspan x="0" dy="0">{{displayValue}}</tspan>\n          <tspan x="0" dy="1.2em">{{units}}</tspan>\n        </svg:text>\n\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/gauge/gauge.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],d)},"./src/gauge/gauge.module.ts":function(t,e,n){"use strict";n.d(e,"e",function(){return h});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/gauge/linear-gauge.component.ts"),s=n("./src/gauge/gauge.component.ts"),a=n("./src/gauge/gauge-arc.component.ts"),c=n("./src/gauge/gauge-axis.component.ts"),l=n("./src/pie-chart/pie-chart.module.ts"),p=n("./src/bar-chart/bar-chart.module.ts");n.d(e,"a",function(){return s.a}),n.d(e,"b",function(){return a.a}),n.d(e,"c",function(){return c.a}),n.d(e,"d",function(){return r.a});var d=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},h=function(){function t(){}return t}();h=d([n.i(i.NgModule)({imports:[o.a,l.a,p.a],declarations:[r.a,s.a,a.a,c.a],exports:[r.a,s.a,a.a,c.a]})],h)},"./src/gauge/index.ts":function(t,e,n){"use strict";var i=n("./src/gauge/gauge.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d}),n.d(e,"e",function(){return i.e});n("./src/gauge/gauge.component.ts")},"./src/gauge/linear-gauge.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/gauge/linear-gauge.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/gauge/linear-gauge.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.min=0,e.max=100,e.value=0,e.margin=[10,20,10,20],e.valueResizeScale=1,e.unitsResizeScale=1,e.valueTextTransform="",e.valueTranslate="",e.unitsTextTransform="",e.unitsTranslate="",e}return c(e,t),e.prototype.ngAfterViewInit=function(){var e=this;t.prototype.ngAfterViewInit.call(this),setTimeout(function(){e.scaleText("value"),e.scaleText("units")})},e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();var i=this.margin[3]+this.dims.width/2,o=this.margin[0]+this.dims.height/2;this.transform="translate("+i+", "+o+")",this.transformLine="translate("+(this.margin[3]+this.valueScale(this.previousValue))+", "+o+")",this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",setTimeout(function(){return e.scaleText("value")},50),setTimeout(function(){return e.scaleText("units")},50)},e.prototype.getValueDomain=function(){return[this.min,this.max]},e.prototype.getValueScale=function(){return n.i(o.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain)},e.prototype.getDisplayValue=function(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleString()},e.prototype.scaleText=function(t,e){var n=this;void 0===e&&(e=!0);var i,o;"value"===t?(i=this.valueTextEl,o=this.valueResizeScale):(i=this.unitsTextEl,o=this.unitsResizeScale);var r=i.nativeElement.getBoundingClientRect(),s=r.width,a=r.height;if(0!==s&&0!==a){var c=o,l=this.dims.width,p=Math.max(this.dims.height/2-15,0),d=Math.floor(l/(s/o)*100)/100,h=Math.floor(p/(a/o)*100)/100;o=Math.min(h,d),o!==c&&("value"===t?(this.valueResizeScale=o,this.valueTextTransform="scale("+o+", "+o+")"):(this.unitsResizeScale=o,this.unitsTextTransform="scale("+o+", "+o+")"),this.cd.markForCheck(),e&&setTimeout(function(){n.scaleText(t,!1)},50))}},e.prototype.onClick=function(){this.select.emit({name:"Value",value:this.value})},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",[this.value],this.customColors)},e}(r.a);l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"min",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"max",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"value",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"units",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"previousValue",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"valueFormatting",void 0),l([n.i(i.ViewChild)("valueTextEl"),p("design:type",i.ElementRef)],d.prototype,"valueTextEl",void 0),l([n.i(i.ViewChild)("unitsTextEl"),p("design:type",i.ElementRef)],d.prototype,"unitsTextEl",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-linear-gauge",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false"\n      (click)="onClick()">\n      <svg:g class="linear-gauge chart">\n        <svg:g ngx-charts-bar\n          class="background-bar"\n          [width]="dims.width"\n          [height]="3"\n          [x]="margin[3]"\n          [y]="dims.height / 2 + margin[0] - 2"\n          [data]="{}"\n          [orientation]="\'horizontal\'"\n          [roundEdges]="true">\n        </svg:g>\n        <svg:g ngx-charts-bar\n          [width]="valueScale(value)"\n          [height]="3"\n          [x]="margin[3]"\n          [y]="dims.height / 2 + margin[0] - 2"\n          [fill]="colors.getColor(units)"\n          [data]="{}"\n          [orientation]="\'horizontal\'"\n          [roundEdges]="true">\n        </svg:g>\n\n        <svg:line\n          *ngIf="hasPreviousValue"\n          [attr.transform]="transformLine"\n          x1="0"\n          y1="5"\n          x2="0"\n          y2="15"\n          [attr.stroke]="colors.getColor(units)"\n        />\n\n        <svg:line\n          *ngIf="hasPreviousValue"\n          [attr.transform]="transformLine"\n          x1="0"\n          y1="-5"\n          x2="0"\n          y2="-15"\n          [attr.stroke]="colors.getColor(units)"\n        />\n\n        <svg:g [attr.transform]="transform">\n          <svg:g [attr.transform]="valueTranslate">\n            <svg:text #valueTextEl\n              class="value"\n              [style.textAnchor]="\'middle\'"\n              [attr.transform]="valueTextTransform"\n              alignment-baseline="after-edge">\n              {{displayValue}}\n            </svg:text>\n          </svg:g>\n\n          <svg:g [attr.transform]="unitsTranslate">\n            <svg:text #unitsTextEl\n              class="units"\n              [style.textAnchor]="\'middle\'"\n              [attr.transform]="unitsTextTransform"\n              alignment-baseline="before-edge">\n              {{units}}\n            </svg:text>\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/gauge/linear-gauge.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],d)},"./src/heat-map/heat-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n("./src/common/label.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.tooltipDisabled=!1,this.select=new i.EventEmitter}return t.prototype.ngOnInit=function(){this.tooltipText||(this.tooltipText=this.getTooltipText)},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cells=this.getCells()},t.prototype.getCells=function(){var t=this,e=[];return this.data.map(function(i){i.series.map(function(r){var s=r.value;e.push({row:i,cell:r,x:t.xScale(i.name),y:t.yScale(r.name),width:t.xScale.bandwidth(),height:t.yScale.bandwidth(),fill:t.colors.getColor(s),data:s,label:n.i(o.a)(r.name),series:i.name})})}),e},t.prototype.getTooltipText=function(t){var e=t.label,n=t.data;return'\n      <span class="tooltip-label">'+t.series+" • "+e+'</span>\n      <span class="tooltip-val">'+n.toLocaleString()+"</span>\n    "},t.prototype.trackBy=function(t,e){return e.tooltipText},t.prototype.onClick=function(t,e,n){this.select.emit({name:e,value:t,series:n})},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"data",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"colors",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"xScale",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"yScale",void 0),r([n.i(i.Input)(),s("design:type",Boolean)],a.prototype,"gradient",void 0),r([n.i(i.Input)(),s("design:type",Boolean)],a.prototype,"tooltipDisabled",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"tooltipText",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"select",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-heat-map-cell-series]",template:'\n    <svg:g\n      ngx-charts-heat-map-cell\n      *ngFor="let c of cells; trackBy:trackBy"\n      [x]="c.x"\n      [y]="c.y"\n      [width]="c.width"\n      [height]="c.height"\n      [fill]="c.fill"\n      [data]="c.data"\n      (select)="onClick($event, c.label, c.series)"\n      [gradient]="gradient"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="tooltipText(c)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],a)},"./src/heat-map/heat-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(5)),s=(n.n(r),n("./src/utils/id.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t,e){this.location=e,this.gradient=!1,this.select=new i.EventEmitter,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.transform="translate("+this.x+" , "+this.y+")";var e=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.startOpacity=.3,this.gradientId="grad"+n.i(s.a)().toString(),this.gradientUrl="url("+e+"#"+this.gradientId+")",this.gradientStops=this.getGradientStops(),this.loadAnimation()},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:1}]},t.prototype.loadAnimation=function(){n.i(r.select)(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()},t.prototype.animateToCurrentForm=function(){n.i(r.select)(this.element).select(".cell").attr("opacity",1)},t.prototype.onClick=function(){this.select.emit(this.data)},t}();a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"fill",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"x",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"y",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"width",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"height",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"data",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"label",void 0),a([n.i(i.Input)(),c("design:type",Boolean)],l.prototype,"gradient",void 0),a([n.i(i.Output)(),c("design:type",Object)],l.prototype,"select",void 0),l=a([n.i(i.Component)({selector:"g[ngx-charts-heat-map-cell]",
template:'\n    <svg:g [attr.transform]="transform" class="cell">\n      <defs *ngIf="gradient">\n        <svg:g ngx-charts-svg-linear-gradient\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:rect\n        [attr.fill]="gradient ? gradientUrl : fill"\n        rx="3"\n        [attr.width]="width"\n        [attr.height]="height"\n        class="cell"\n        style="cursor: pointer"\n        (click)="onClick()"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[i.ElementRef,o.LocationStrategy])],l)},"./src/heat-map/heat-map.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.innerPadding=8,e.tooltipDisabled=!1,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.scaleType="linear",e}return c(e,t),e.prototype.update=function(){if(t.prototype.update.call(this),this.formatDates(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.valueDomain=this.getValueDomain(),this.scaleType=this.getScaleType(this.valueDomain),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.scaleType}),"linear"===this.scaleType){var e=Math.min.apply(Math,[0].concat(this.valueDomain)),i=Math.max.apply(Math,this.valueDomain);this.valueDomain=[e,i]}this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.rects=this.getRects()},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.value)||t.push(s.value)}return t},e.prototype.getDimension=function(t,e,n,i){return void 0===e&&(e=0),"string"==typeof t&&(t=t.replace("[","").replace("]","").replace("px","").replace("'",""),t.includes(",")&&(t=t.split(","))),Array.isArray(t)&&"number"==typeof e?this.getDimension(t[e],null,n,i):"string"==typeof t&&t.includes("%")?+t.replace("%","")/100:n/(i/+t+1)},e.prototype.getXScale=function(){var t=this.getDimension(this.innerPadding,0,this.xDomain.length,this.dims.width);return n.i(o.scaleBand)().rangeRound([0,this.dims.width]).domain(this.xDomain).paddingInner(t)},e.prototype.getYScale=function(){var t=this.getDimension(this.innerPadding,1,this.yDomain.length,this.dims.height);return n.i(o.scaleBand)().rangeRound([this.dims.height,0]).domain(this.yDomain).paddingInner(t)},e.prototype.getRects=function(){var t=this,e=[];return this.xDomain.map(function(n){t.yDomain.map(function(i){e.push({x:t.xScale(n),y:t.yScale(i),rx:3,width:t.xScale.bandwidth(),height:t.yScale.bandwidth(),fill:"rgba(200,200,200,0.03)"})})}),e},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.getScaleType=function(t){for(var e=!0,n=0,i=t;n<i.length;n++){"number"!=typeof i[n]&&(e=!1)}return e?"linear":"ordinal"},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,this.scaleType,this.valueDomain)},e.prototype.getLegendOptions=function(){return{scaleType:this.scaleType,domain:this.valueDomain,colors:"ordinal"===this.scaleType?this.colors:this.colors.scale,title:"ordinal"===this.scaleType?this.legendTitle:void 0}},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e}(r.a);l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"legend",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"legendTitle",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxis",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxis",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"showXAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"showYAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxisLabel",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"gradient",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"innerPadding",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"xAxisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"yAxisTickFormatting",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipDisabled",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"tooltipText",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-heat-map",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="heat-map chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:rect *ngFor="let rect of rects"\n          [attr.x]="rect.x"\n          [attr.y]="rect.y"\n          [attr.rx]="rect.rx"\n          [attr.width]="rect.width"\n          [attr.height]="rect.height"\n          [attr.fill]="rect.fill"\n        />\n        <svg:g ngx-charts-heat-map-cell-series\n          [xScale]="xScale"\n          [yScale]="yScale"\n          [colors]="colors"\n          [data]="results"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipText]="tooltipText"\n          (select)="onClick($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None})],d)},"./src/heat-map/heat-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/heat-map/heat-map-cell.component.ts"),s=n("./src/heat-map/heat-map-cell-series.component.ts"),a=n("./src/heat-map/heat-map.component.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t}();l=c([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a,a.a],exports:[r.a,s.a,a.a]})],l)},"./src/heat-map/index.ts":function(t,e,n){"use strict";var i=n("./src/heat-map/heat-map.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/heat-map/heat-map.component.ts"),n("./src/heat-map/heat-map-cell.component.ts"),n("./src/heat-map/heat-map-cell-series.component.ts")},"./src/index.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("./src/ngx-charts.module.ts");n.d(e,"NgxChartsModule",function(){return i.a});var o=n("./src/common/index.ts");n.d(e,"ChartCommonModule",function(){return o.a}),n.d(e,"ColorHelper",function(){return o.b}),n.d(e,"AreaComponent",function(){return o.c}),n.d(e,"AreaTooltip",function(){return o.d}),n.d(e,"BaseChartComponent",function(){return o.e}),n.d(e,"CircleComponent",function(){return o.f}),n.d(e,"CircleSeriesComponent",function(){return o.g}),n.d(e,"gridSize",function(){return o.h}),n.d(e,"gridLayout",function(){return o.i}),n.d(e,"GridPanelComponent",function(){return o.j}),n.d(e,"GridPanelSeriesComponent",function(){return o.k}),n.d(e,"SvgLinearGradientComponent",function(){return o.l}),n.d(e,"SvgRadialGradientComponent",function(){return o.m}),n.d(e,"tickFormat",function(){return o.n}),n.d(e,"trimLabel",function(){return o.o}),n.d(e,"calculateViewDimensions",function(){return o.p}),n.d(e,"formatLabel",function(){return o.q}),n.d(e,"LegendComponent",function(){return o.r}),n.d(e,"ScaleLegendComponent",function(){return o.s}),n.d(e,"LegendEntryComponent",function(){return o.t}),n.d(e,"AdvancedLegendComponent",function(){return o.u}),n.d(e,"TooltipModule",function(){return o.v}),n.d(e,"TooltipService",function(){return o.w}),n.d(e,"TooltipContentComponent",function(){return o.x}),n.d(e,"TooltipDirective",function(){return o.y}),n.d(e,"StyleTypes",function(){return o.z}),n.d(e,"AlignmentTypes",function(){return o.A}),n.d(e,"ShowTypes",function(){return o.B}),n.d(e,"CountUpDirective",function(){return o.C}),n.d(e,"count",function(){return o.D}),n.d(e,"decimalChecker",function(){return o.E}),n.d(e,"Timeline",function(){return o.F}),n.d(e,"ChartComponent",function(){return o.G});var r=n("./src/area-chart/index.ts");n.d(e,"AreaChartComponent",function(){return r.a}),n.d(e,"AreaChartNormalizedComponent",function(){return r.b}),n.d(e,"AreaChartStackedComponent",function(){return r.c}),n.d(e,"AreaSeriesComponent",function(){return r.d}),n.d(e,"AreaChartModule",function(){return r.e});var s=n("./src/bar-chart/index.ts");n.d(e,"BarComponent",function(){return s.a}),n.d(e,"BarHorizontalComponent",function(){return s.b}),n.d(e,"BarHorizontal2DComponent",function(){return s.c}),n.d(e,"BarHorizontalNormalizedComponent",function(){return s.d}),n.d(e,"BarHorizontalStackedComponent",function(){return s.e}),n.d(e,"BarVerticalComponent",function(){return s.f}),n.d(e,"BarVertical2DComponent",function(){return s.g}),n.d(e,"BarVerticalNormalizedComponent",function(){return s.h}),n.d(e,"BarVerticalStackedComponent",function(){return s.i}),n.d(e,"SeriesHorizontal",function(){return s.j}),n.d(e,"SeriesVerticalComponent",function(){return s.k}),n.d(e,"BarChartModule",function(){return s.l});var a=n("./src/bubble-chart/index.ts");n.d(e,"BubbleChartComponent",function(){return a.a}),n.d(e,"BubbleSeriesComponent",function(){return a.b}),n.d(e,"BubbleChartModule",function(){return a.c});var c=n("./src/force-directed-graph/index.ts");n.d(e,"ForceDirectedGraphComponent",function(){return c.a}),n.d(e,"ForceDirectedGraphModule",function(){return c.b});var l=n("./src/heat-map/index.ts");n.d(e,"HeatMapCellComponent",function(){return l.a}),n.d(e,"HeatCellSeriesComponent",function(){return l.b}),n.d(e,"HeatMapComponent",function(){return l.c}),n.d(e,"HeatMapModule",function(){return l.d});var p=n("./src/line-chart/index.ts");n.d(e,"LineComponent",function(){return p.a}),n.d(e,"LineChartComponent",function(){return p.b}),n.d(e,"LineSeriesComponent",function(){return p.c}),n.d(e,"LineChartModule",function(){return p.d});var d=n("./src/polar-chart/index.ts");n.d(e,"PolarChartComponent",function(){return d.a}),n.d(e,"PolarSeriesComponent",function(){return d.b}),n.d(e,"PolarChartModule",function(){return d.c});var h=n("./src/number-card/index.ts");n.d(e,"CardComponent",function(){return h.a}),n.d(e,"CardSeriesComponent",function(){return h.b}),n.d(e,"NumberCardComponent",function(){return h.c}),n.d(e,"NumberCardModule",function(){return h.d});var u=n("./src/pie-chart/index.ts");n.d(e,"AdvancedPieChartComponent",function(){return u.a}),n.d(e,"PieLabelComponent",function(){return u.b}),n.d(e,"PieArcComponent",function(){return u.c}),n.d(e,"PieChartComponent",function(){return u.d}),n.d(e,"PieGridComponent",function(){return u.e}),n.d(e,"PieGridSeriesComponent",function(){return u.f}),n.d(e,"PieSeriesComponent",function(){return u.g}),n.d(e,"PieChartModule",function(){return u.h});var g=n("./src/tree-map/index.ts");n.d(e,"TreeMapCellComponent",function(){return g.a}),n.d(e,"TreeMapCellSeriesComponent",function(){return g.b}),n.d(e,"TreeMapComponent",function(){return g.c}),n.d(e,"TreeMapModule",function(){return g.d});var m=n("./src/gauge/index.ts");n.d(e,"GaugeComponent",function(){return m.a}),n.d(e,"GaugeArcComponent",function(){return m.b}),n.d(e,"GaugeAxisComponent",function(){return m.c}),n.d(e,"LinearGaugeComponent",function(){return m.d}),n.d(e,"GaugeModule",function(){return m.e})},"./src/line-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/line-chart/line-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/line-chart/line-chart.component.ts"),n("./src/line-chart/line.component.ts"),n("./src/line-chart/line-series.component.ts")},"./src/line-chart/line-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(1)),s=(n.n(r),n(4)),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),l=n("./src/common/base-chart.component.ts"),p=n("./src/utils/id.ts"),d=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=s.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.showSeriesOnHover=!0,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e.timelineHeight=50,e.timelinePadding=10,e}return d(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(a.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";var e=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.clipPathId="clip"+n.i(p.a)().toString(),this.clipPath="url("+e+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.width,this.legend&&(this.timelineWidth=this.dims.width),this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},e.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var c=Math.min.apply(Math,t),l=Math.max.apply(Math,t);a=[c,l]}else a=t;return this.xSet=t,a},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.indexOf(s.value)<0&&t.push(s.value),void 0!==s.min&&t.indexOf(s.min)<0&&t.push(s.min),void 0!==s.max&&t.indexOf(s.max)<0&&t.push(s.max)}var a=Math.min.apply(Math,t),c=Math.max.apply(Math,t);return this.autoScale||(a=Math.min(0,a)),[a,c]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var i;return"time"===this.scaleType?i=n.i(r.scaleTime)().range([0,e]).domain(t):"linear"===this.scaleType?(i=n.i(r.scaleLinear)().range([0,e]).domain(t),this.roundDomains&&(i=i.nice())):"ordinal"===this.scaleType&&(i=n.i(r.scalePoint)().range([0,e]).padding(.1).domain(t)),i},e.prototype.getYScale=function(t,e){var i=n.i(r.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?i.nice():i},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var r=o[i];this.isDate(r)||(e=!1),"number"!=typeof r&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.prototype.isDate=function(t){return t instanceof Date},e.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},e.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},e.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.trackBy=function(t,e){return e.name},e.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=this.showSeriesOnHover?[t].concat(this.activeEntries):this.activeEntries,this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e}(l.a);h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"legend",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"legendTitle",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxis",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showXAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"showYAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"autoScale",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"timeline",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"gradient",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"showGridLines",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"curve",void 0),h([n.i(i.Input)(),u("design:type",Array)],g.prototype,"activeEntries",void 0),h([n.i(i.Input)(),u("design:type",String)],g.prototype,"schemeType",void 0),h([n.i(i.Input)(),u("design:type",Number)],g.prototype,"rangeFillOpacity",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"xAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Object)],g.prototype,"yAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"roundDomains",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"tooltipDisabled",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],g.prototype,"showSeriesOnHover",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"activate",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],g.prototype,"deactivate",void 0),h([n.i(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],g.prototype,"hideCircles",null),g=h([n.i(i.Component)({selector:"ngx-charts-line-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="line-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-line-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [scaleType]="scaleType"\n              [curve]="curve"\n              [rangeFillOpacity]="rangeFillOpacity"\n            />\n          </svg:g>\n          <svg:g ngx-charts-area-tooltip\n            [xSet]="xSet"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [results]="results"\n            [height]="dims.height"\n            [colors]="colors"\n            [tooltipDisabled]="tooltipDisabled"\n            (hover)="updateHoveredVertical($event)"\n          />\n          <svg:g *ngFor="let series of results">\n            <svg:g ngx-charts-circle-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [scaleType]="scaleType"\n              [visibleValue]="hoveredVertical"\n              [activeEntries]="activeEntries"\n              [tooltipDisabled]="tooltipDisabled"\n              (select)="onClick($event, series)"\n              (activate)="onActivate($event)"\n              (deactivate)="onDeactivate($event)"\n            />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType === \'time\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [scaleType]="scaleType"\n        [legend]="legend"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-line-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [curve]="curve"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],g)},"./src/line-chart/line-chart.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/line-chart/line.component.ts"),s=n("./src/line-chart/line-chart.component.ts"),a=n("./src/line-chart/line-series.component.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t}();l=c([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a,a.a],exports:[r.a,s.a,a.a]})],l)},"./src/line-chart/line-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(4)),s=(n.n(r),n("./src/utils/id.ts")),a=n("./src/utils/sort.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function t(t){this.location=t}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.updateGradients();var t=this.getLineGenerator(),e=this.getAreaGenerator(),n=this.getRangeGenerator(),i=this.sortData(this.data.series);this.path=t(i)||"",this.outerPath=n(i)||"",this.areaPath=e(i)||""},t.prototype.getLineGenerator=function(){var t=this;return n.i(r.line)().x(function(e){var n=e.name;return"time"===t.scaleType?t.xScale(n):"linear"===t.scaleType?t.xScale(Number(n)):t.xScale(n)}).y(function(e){return t.yScale(e.value)}).curve(this.curve)},t.prototype.getRangeGenerator=function(){var t=this;return n.i(r.area)().x(function(e){var n=e.name;return"time"===t.scaleType?t.xScale(n):"linear"===t.scaleType?t.xScale(Number(n)):t.xScale(n)}).y0(function(e){return t.yScale(e.min?e.min:e.value)}).y1(function(e){return t.yScale(e.max?e.max:e.value)}).curve(this.curve)},t.prototype.getAreaGenerator=function(){var t=this,e=function(e){var n=e.name;return t.xScale(n)};return n.i(r.area)().x(e).y0(function(){return t.yScale.range()[0]}).y1(function(e){return t.yScale(e.value)}).curve(this.curve)},t.prototype.sortData=function(t){return t="linear"===this.scaleType?n.i(a.a)(t,"name"):"time"===this.scaleType?n.i(a.b)(t,"name"):n.i(a.c)(t,"name","asc",this.xScale.domain())},t.prototype.updateGradients=function(){if("linear"===this.colors.scaleType){this.hasGradient=!0;var t=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+n.i(s.a)().toString(),this.gradientUrl="url("+t+"#"+this.gradientId+")";var e=this.data.series.map(function(t){return t.value}),i=Math.max.apply(Math,e),r=Math.min.apply(Math,e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(e){return t.name===e.name})},t}();c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"data",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"xScale",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"yScale",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"colors",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"scaleType",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"curve",void 0),c([n.i(i.Input)(),l("design:type",Array)],p.prototype,"activeEntries",void 0),c([n.i(i.Input)(),l("design:type",Number)],p.prototype,"rangeFillOpacity",void 0),p=c([n.i(i.Component)({selector:"g[ngx-charts-line-series]",
template:'\n    <svg:g>\n      <defs>\n        <svg:g ngx-charts-svg-linear-gradient *ngIf="hasGradient"\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:g ngx-charts-area\n        class="line-highlight"\n        [data]="data"\n        [path]="areaPath"\n        [fill]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n        [opacity]="0.25"\n        [startOpacity]="0"\n        [gradient]="true"\n        [stops]="areaGradientStops"\n        [class.active]="isActive(data)"\n        [class.inactive]="isInactive(data)"\n      />\n      <svg:g ngx-charts-line\n        class="line-series"\n        [data]="data"\n        [path]="path"\n        [stroke]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n        [class.active]="isActive(data)"\n        [class.inactive]="isInactive(data)"\n      />\n     <svg:g ngx-charts-area\n        class="line-series-range"\n        [data]="data"\n        [path]="outerPath"\n        [fill]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n        [class.active]="isActive(data)"\n        [class.inactive]="isInactive(data)"\n        [opacity]="rangeFillOpacity"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),l("design:paramtypes",[o.LocationStrategy])],p)},"./src/line-chart/line.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n(3)),r=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.element=t,this.fill="none",this.select=new i.EventEmitter}return t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"path",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"stroke",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"data",void 0),r([n.i(i.Input)(),s("design:type",String)],a.prototype,"fill",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"select",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-line]",template:'\n    <svg:path\n      [@animationState]="\'active\'"\n      class="line"\n      [attr.d]="path"\n      [attr.fill]="fill"\n      [attr.stroke]="stroke"\n      stroke-width="1.5px"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[n.i(o.trigger)("animationState",[n.i(o.transition)("void => *",[n.i(o.style)({strokeDasharray:2e3,strokeDashoffset:2e3}),n.i(o.animate)(1e3,n.i(o.style)({strokeDashoffset:0}))])])]}),s("design:paramtypes",[i.ElementRef])],a)},"./src/ngx-charts.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/area-chart/area-chart.module.ts"),s=n("./src/bar-chart/bar-chart.module.ts"),a=n("./src/bubble-chart/bubble-chart.module.ts"),c=n("./src/force-directed-graph/force-directed-graph.module.ts"),l=n("./src/heat-map/heat-map.module.ts"),p=n("./src/line-chart/line-chart.module.ts"),d=n("./src/polar-chart/polar-chart.module.ts"),h=n("./src/number-card/number-card.module.ts"),u=n("./src/pie-chart/pie-chart.module.ts"),g=n("./src/tree-map/tree-map.module.ts"),m=n("./src/gauge/gauge.module.ts"),f=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},y=function(){function t(){}return t}();y=f([n.i(i.NgModule)({exports:[o.a,r.e,s.a,a.c,c.b,l.d,p.d,d.c,h.d,u.a,g.d,m.e]})],y)},"./src/number-card/card-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n("./src/utils/color-utils.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.zone=t,this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.select=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.data.length>2){var t=this.valueFormatting||function(t){return t.value.toLocaleString()},e=this.data.map(function(e){return e&&e.data&&void 0!==e.data.value&&null!==e.data.value?t({data:e.data,label:e?e.data.name:"",value:e&&e.data?e.data.value:""}).length:0}).sort(function(t,e){return e-t}),n=Math.ceil(this.data.length/2);this.medianSize=e[n]}var i=this.getCards();this.cards=i.filter(function(t){return null!==t.data.value}),this.emptySlots=i.filter(function(t){return null===t.data.value})},t.prototype.getCards=function(){var t=this,e="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],i="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map(function(r,s){var a=r.data.name;a=a&&"Date"===a.constructor.name?a.toLocaleDateString():a?a.toLocaleString():a,r.data.name=a;var c=r.data.value,l=a?t.colors.getColor(a):t.emptyColor,p=t.cardColor||l||"#000";return{x:r.x,y:r.y,width:r.width-i,height:r.height-e,color:p,bandColor:t.bandColor||l,textColor:t.textColor||n.i(o.a)(p),label:a,data:r.data,tooltipText:a+": "+c}})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.onClick=function(t){this.select.emit(t)},t}();r([n.i(i.Input)(),s("design:type",Array)],a.prototype,"data",void 0),r([n.i(i.Input)(),s("design:type",Array)],a.prototype,"slots",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"dims",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"colors",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"innerPadding",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"cardColor",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"bandColor",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"emptyColor",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"textColor",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"valueFormatting",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"labelFormatting",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"select",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-card-series]",template:'\n    <svg:rect\n      *ngFor="let c of emptySlots; trackBy:trackBy"\n      class="card-empty"\n      [attr.x]="c.x"\n      [attr.y]="c.y"\n      [style.fill]="emptyColor"\n      [attr.width]="c.width"\n      [attr.height]="c.height"\n      rx="3"\n      ry="3"\n    />\n    <svg:g ngx-charts-card *ngFor="let c of cards; trackBy:trackBy"\n      [x]="c.x"\n      [y]="c.y"\n      [width]="c.width"\n      [height]="c.height"\n      [color]="c.color"\n      [bandColor]="c.bandColor"\n      [textColor]="c.textColor"\n      [data]="c.data"\n      [medianSize]="medianSize"\n      [valueFormatting]="valueFormatting"\n      [labelFormatting]="labelFormatting"\n      (select)="onClick($event)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.NgZone])],a)},"./src/number-card/card.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/number-card/card.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/number-card/card.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n(0),o=(n.n(i),n("./src/common/trim-label.helper.ts")),r=n("./src/common/shape.helper.ts"),s=n("./src/common/count/index.ts"),a=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t,e,n){this.cd=e,this.zone=n,this.select=new i.EventEmitter,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,10,20],this.labelFontSize=12,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.update=function(){var t=this;this.zone.run(function(){var e=t.data&&void 0!==t.data.value,i=t.valueFormatting||function(t){return t.value.toLocaleString()},s=t.labelFormatting||function(t){return n.i(o.a)(t.label,55)};t.transform="translate("+t.x+" , "+t.y+")",t.textWidth=Math.max(0,t.width)-t.textPadding[1]-t.textPadding[3],t.cardWidth=Math.max(0,t.width),t.cardHeight=Math.max(0,t.height),t.label=t.data?t.data.name:"";var a={label:t.label,data:t.data,value:t.data.value};t.formattedLabel=s(a),t.transformBand="translate(0 , "+(t.cardHeight-t.bandHeight)+")";var c=e?i(a):"";t.value=t.paddedValue(c),t.setPadding(),t.bandPath=n.i(r.a)(0,0,t.cardWidth,t.bandHeight,3,!1,!1,!0,!0),setTimeout(function(){t.scaleText(),t.value=c,e&&!t.initialized&&setTimeout(function(){return t.startCount()},20)},8)})},t.prototype.paddedValue=function(t){return this.medianSize&&this.medianSize>t.length&&(t+=" ".repeat(this.medianSize-t.length)),t},t.prototype.startCount=function(){var t=this;if(!this.initialized){cancelAnimationFrame(this.animationReq);var e=this.data.value,i=n.i(s.b)(e),o=this.valueFormatting||function(t){return t.value.toLocaleString()},r=function(n){var i=n.value,r=n.finished;t.zone.run(function(){i=r?e:i,t.value=o({label:t.label,data:t.data,value:i}),r||(t.value=t.paddedValue(t.value)),t.cd.markForCheck()})};this.animationReq=n.i(s.c)(0,e,i,1,r),this.initialized=!0}},t.prototype.scaleText=function(){var t=this;this.zone.run(function(){var e=t.textEl.nativeElement.getBoundingClientRect(),n=e.width,i=e.height;if(0!==n&&0!==i){var o=t.textPadding[1]=t.textPadding[3]=t.cardWidth/8,r=t.cardWidth-2*o,s=t.cardHeight/3,a=Math.min(r/n,s/i);t.textFontSize=Math.floor(t.textFontSize*a),t.labelFontSize=Math.min(t.textFontSize,12),t.setPadding(),t.cd.markForCheck()}})},t.prototype.setPadding=function(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;var t=this.cardHeight/2;this.textPadding[0]=t-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=t-this.labelFontSize},t.prototype.onClick=function(){this.select.emit({name:this.data.name,value:this.data.value})},t}();a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"color",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"bandColor",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"textColor",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"x",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"y",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"width",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"height",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"label",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"data",void 0),a([n.i(i.Input)(),c("design:type",Number)],l.prototype,"medianSize",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"valueFormatting",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"labelFormatting",void 0),a([n.i(i.Output)(),c("design:type",Object)],l.prototype,"select",void 0),a([n.i(i.ViewChild)("textEl"),c("design:type",i.ElementRef)],l.prototype,"textEl",void 0),l=a([n.i(i.Component)({selector:"g[ngx-charts-card]",template:'\n    <svg:g\n      [attr.transform]="transform"\n      class="cell"\n      (click)="onClick()">\n      <svg:rect\n        class="card"\n        [style.fill]="color"\n        [attr.width]="cardWidth"\n        [attr.height]="cardHeight"\n        rx="3"\n        ry="3"\n      />\n      <svg:path\n        *ngIf="bandColor && bandColor !== color"\n        class="card-band"\n        [attr.fill]="bandColor"\n        [attr.transform]="transformBand"\n        stroke="none"\n        [attr.d]="bandPath"\n      />\n      <title>{{label}}</title>\n      <svg:foreignObject\n        class="trimmed-label"\n        x="5"\n        [attr.x]="textPadding[3]"\n        [attr.y]="cardHeight - textPadding[2]"\n        [attr.width]="textWidth"\n        [attr.height]="labelFontSize + textPadding[2]"\n        alignment-baseline="hanging">\n        <xhtml:p\n          [style.color]="textColor"\n          [style.fontSize.px]="labelFontSize"\n          [innerHTML]="formattedLabel">\n        </xhtml:p>\n      </svg:foreignObject>\n      <svg:text #textEl\n        class="value-text"\n        [attr.x]="textPadding[3]"\n        [attr.y]="textPadding[0]"\n        [style.fill]="textColor"\n        text-anchor="start"\n        alignment-baseline="hanging"\n        [style.font-size.pt]="textFontSize">\n        {{value}}\n      </svg:text>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[i.ElementRef,i.ChangeDetectorRef,i.NgZone])],l)},"./src/number-card/index.ts":function(t,e,n){"use strict";var i=n("./src/number-card/number-card.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/number-card/number-card.component.ts"),n("./src/number-card/card.component.ts"),n("./src/number-card/card-series.component.ts")},"./src/number-card/number-card.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n("./src/common/base-chart.component.ts")),r=n("./src/common/view-dimensions.helper.ts"),s=n("./src/common/color.helper.ts"),a=n("./src/common/grid-layout.helper.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.emptyColor="rgba(0, 0, 0, 0)",e.innerPadding=15,e.margin=[10,10,10,10],e}return c(e,t),Object.defineProperty(e.prototype,"clickable",{get:function(){return!!this.select.observers.length},enumerable:!0,configurable:!0}),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(r.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";for(var e=n.i(a.b)(this.dims,this.results.length,150),i=e[0]*e[1],o=this.results.slice();o.length<i;)o.push({value:null});this.data=n.i(a.a)(this.dims,o,150)},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new s.a(this.scheme,"ordinal",this.domain,this.customColors)},e}(o.a);l([n.i(i.Input)(),p("design:type",String)],d.prototype,"cardColor",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"bandColor",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"emptyColor",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"innerPadding",void 0),l([n.i(i.Input)(),p("design:type",String)],d.prototype,"textColor",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"valueFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"labelFormatting",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-number-card",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false">\n      <svg:g [attr.transform]="transform" class="number-card chart" [class.clickable]="clickable">\n        <svg:g ngx-charts-card-series\n          [colors]="colors"\n          [cardColor]="cardColor"\n          [bandColor]="bandColor"\n          [textColor]="textColor"\n          [emptyColor]="emptyColor"\n          [data]="data"\n          [dims]="dims"\n          [innerPadding]="innerPadding"\n          [valueFormatting]="valueFormatting"\n          [labelFormatting]="labelFormatting"\n          (select)="onClick($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/number-card/card.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],d)},"./src/number-card/number-card.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/number-card/card.component.ts"),s=n("./src/number-card/card-series.component.ts"),a=n("./src/number-card/number-card.component.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t}();l=c([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a,a.a],exports:[r.a,s.a,a.a]})],l)},"./src/pie-chart/advanced-pie-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/pie-chart/advanced-pie-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/pie-chart/advanced-pie-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),s=n("./src/common/base-chart.component.ts"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeEntries=[],e.tooltipDisabled=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[20,20,20,20],e}return a(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(o.a)({width:4*this.width/12,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.setColors();var e=this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.legendWidth=this.width-this.dims.width-this.margin[1],this.outerRadius=Math.min(this.dims.width,this.dims.height)/2.5,this.innerRadius=.75*this.outerRadius,this.transform="translate("+e+" , "+i+")"},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new r.a(this.scheme,"ordinal",this.domain,this.customColors)},e.prototype.onActivate=function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e}(s.a);c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"gradient",void 0),c([n.i(i.Input)(),l("design:type",Array)],p.prototype,"activeEntries",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"tooltipDisabled",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"tooltipText",void 0),c([n.i(i.Output)(),l("design:type",i.EventEmitter)],p.prototype,"activate",void 0),c([n.i(i.Output)(),l("design:type",i.EventEmitter)],p.prototype,"deactivate",void 0),p=c([n.i(i.Component)({selector:"ngx-charts-advanced-pie-chart",template:'\n    <div\n      [style.width.px]="width"\n      [style.height.px]="height">\n      <div class="advanced-pie chart"\n        [style.width.px]="dims.width"\n        [style.height.px]="dims.height">\n        <ngx-charts-chart\n          [view]="[width, height]"\n          [showLegend]="false">\n          <svg:g\n            [attr.transform]="transform"\n            class="pie chart">\n            <svg:g ngx-charts-pie-series\n              [colors]="colors"\n              [series]="results"\n              [innerRadius]="innerRadius"\n              [activeEntries]="activeEntries"\n              [outerRadius]="outerRadius"\n              [gradient]="gradient"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipText]="tooltipText"\n              (select)="onClick($event)">\n            </svg:g>\n          </svg:g>\n        </ngx-charts-chart>\n      </div>\n      <div\n        class="advanced-pie-legend-wrapper"\n        [style.width.px]="width - dims.width"\n        [style.height.px]="height">\n        <ngx-charts-advanced-legend\n          [data]="results"\n          [colors]="colors"\n          [width]="width - dims.width - margin[1]"\n          (select)="onClick($event)"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)">\n        </ngx-charts-advanced-legend>\n      </div>\n    </div>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/advanced-pie-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],p)},"./src/pie-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/pie-chart/pie-chart.module.ts");n.d(e,"a",function(){return i.b}),n.d(e,"b",function(){return i.c}),n.d(e,"c",function(){return i.d}),n.d(e,"d",function(){return i.e}),n.d(e,"e",function(){return i.f}),n.d(e,"f",function(){return i.g}),n.d(e,"g",function(){return i.h}),n.d(e,"h",function(){return i.a});n("./src/pie-chart/pie-chart.component.ts"),n("./src/pie-chart/pie-arc.component.ts"),n("./src/pie-chart/pie-grid.component.ts"),n("./src/pie-chart/pie-series.component.ts"),n("./src/pie-chart/pie-label.component.ts")},"./src/pie-chart/pie-arc.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(13)),s=(n.n(r),n(5)),a=(n.n(s),n(4)),c=(n.n(a),n("./src/utils/id.ts")),l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(){function t(t,e){this.location=e,this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this.calculateArc();this.path=t.startAngle(this.startAngle).endAngle(this.endAngle)(),this.startOpacity=.5;var e=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.radialGradientId="linearGrad"+n.i(c.a)().toString(),this.gradientFill="url("+e+"#"+this.radialGradientId+")",this.animate&&(this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0))},t.prototype.calculateArc=function(){var t=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(t=this.outerRadius*this.value/this.max),n.i(a.arc)().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)},t.prototype.loadAnimation=function(){var t=n.i(s.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().attrTween("d",function(t){this._current=this._current||t;var i=Object.assign({},t);i.endAngle=i.startAngle;var o=n.i(r.interpolate)(i,i);return this._current=o(0),function(t){return e(o(t))}}).transition().duration(0).attrTween("d",function(t){this._current=this._current||t;var i=n.i(r.interpolate)(this._current,t);return this._current=i(0),function(t){return e(i(t))}})},t.prototype.updateAnimation=function(){var t=n.i(s.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().duration(0).attrTween("d",function(t){this._current=this._current||t;var i=n.i(r.interpolate)(this._current,t);return this._current=i(0),function(t){return e(i(t))}})},t.prototype.onClick=function(){this.select.emit(this.data)},t}();l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"fill",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"startAngle",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"endAngle",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"innerRadius",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"outerRadius",void 0),l([n.i(i.Input)(),p("design:type",Number)],d.prototype,"cornerRadius",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"value",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"max",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"data",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"explodeSlices",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"gradient",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"animate",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"pointerEvents",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"isActive",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"select",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"activate",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"deactivate",void 0),d=l([n.i(i.Component)({selector:"g[ngx-charts-pie-arc]",template:'\n    <svg:g class="arc-group">\n      <svg:defs *ngIf="gradient">\n        <svg:g ngx-charts-svg-radial-gradient\n          [color]="fill"\n          orientation="vertical"\n          [name]="radialGradientId"\n          [startOpacity]="startOpacity"\n        />\n      </svg:defs>\n      <svg:path\n        [attr.d]="path"\n        class="arc"\n        [class.active]="isActive"\n        [attr.fill]="gradient ? gradientFill : fill"\n        (click)="onClick()"\n        (mouseenter)="activate.emit(data)"\n        (mouseleave)="deactivate.emit(data)"\n        [style.pointer-events]="pointerEvents ? \'auto\' : \'none\'"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),p("design:paramtypes",[i.ElementRef,o.LocationStrategy])],d)},"./src/pie-chart/pie-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/pie-chart/pie-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/pie-chart/pie-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),s=n("./src/common/base-chart.component.ts"),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labels=!1,e.legend=!1,e.legendTitle="Legend",e.explodeSlices=!1,e.doughnut=!1,e.arcWidth=.25,e.activeEntries=[],e.tooltipDisabled=!1,e.select=new i.EventEmitter,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[20,20,20,20],e}return a(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.labels&&(this.margin=[30,80,30,80]),this.dims=n.i(o.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend});var i=this.margin[3]+this.dims.width/2,r=this.margin[0]+this.dims.height/2;this.translation="translate("+i+", "+r+")",this.outerRadius=Math.min(this.dims.width,this.dims.height),this.labels?this.outerRadius/=3:this.outerRadius/=2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort(function(t,n){return e.domain.indexOf(t.name)-e.domain.indexOf(n.name)}),this.setColors(),this.legendOptions=this.getLegendOptions()},e.prototype.getDomain=function(){var t=[];return this.results.map(function(e){var n=e.name;n="Date"===n.constructor.name?n.toLocaleDateString():n.toLocaleString(),-1===t.indexOf(n)&&t.push(n)}),t},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new r.a(this.scheme,"ordinal",this.domain,this.customColors)},e.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle}},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})
;this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e}(s.a);c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"labels",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"legend",void 0),c([n.i(i.Input)(),l("design:type",String)],p.prototype,"legendTitle",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"explodeSlices",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"doughnut",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"arcWidth",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"gradient",void 0),c([n.i(i.Input)(),l("design:type",Array)],p.prototype,"activeEntries",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"tooltipDisabled",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"labelFormatting",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"tooltipText",void 0),c([n.i(i.Output)(),l("design:type",Object)],p.prototype,"select",void 0),c([n.i(i.Output)(),l("design:type",i.EventEmitter)],p.prototype,"activate",void 0),c([n.i(i.Output)(),l("design:type",i.EventEmitter)],p.prototype,"deactivate",void 0),p=c([n.i(i.Component)({selector:"ngx-charts-pie-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="translation" class="pie-chart chart">\n        <svg:g ngx-charts-pie-series\n          [colors]="colors"\n          [showLabels]="labels"\n          [labelFormatting]="labelFormatting"\n          [series]="data"\n          [activeEntries]="activeEntries"\n          [innerRadius]="innerRadius"\n          [outerRadius]="outerRadius"\n          [explodeSlices]="explodeSlices"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipText]="tooltipText"\n          (select)="onClick($event)"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],p)},"./src/pie-chart/pie-chart.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/pie-chart/advanced-pie-chart.component.ts"),s=n("./src/pie-chart/pie-label.component.ts"),a=n("./src/pie-chart/pie-arc.component.ts"),c=n("./src/pie-chart/pie-chart.component.ts"),l=n("./src/pie-chart/pie-grid.component.ts"),p=n("./src/pie-chart/pie-grid-series.component.ts"),d=n("./src/pie-chart/pie-series.component.ts");n.d(e,"b",function(){return r.a}),n.d(e,"c",function(){return s.a}),n.d(e,"d",function(){return a.a}),n.d(e,"e",function(){return c.a}),n.d(e,"f",function(){return l.a}),n.d(e,"g",function(){return p.a}),n.d(e,"h",function(){return d.a});var h=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t}();u=h([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a,a.a,c.a,l.a,p.a,d.a],exports:[r.a,s.a,a.a,c.a,l.a,p.a,d.a]})],u)},"./src/pie-chart/pie-grid-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),o=(n.n(i),n(4)),r=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.innerRadius=70,this.outerRadius=80,this.select=new i.EventEmitter,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.layout=n.i(o.pie)().value(function(t){return t.data.value}).sort(null),this.arcs=this.getArcs()},t.prototype.getArcs=function(){var t=this;return this.layout(this.data).map(function(e,n){var i=e.data.data.name,o=e.data.data.other;0===n&&(e.startAngle=0);var r=t.colors(i);return{data:e.data.data,class:"arc arc"+n,fill:r,startAngle:o?0:e.startAngle,endAngle:e.endAngle,animate:!o,pointerEvents:!o}})},t.prototype.onClick=function(t){this.select.emit({name:this.data[0].data.name,value:this.data[0].data.value})},t.prototype.trackBy=function(t,e){return e.data.name},t.prototype.label=function(t){return t.data.name},t.prototype.color=function(t){return this.colors(this.label(t))},t}();r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"colors",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"data",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"innerRadius",void 0),r([n.i(i.Input)(),s("design:type",Object)],a.prototype,"outerRadius",void 0),r([n.i(i.Output)(),s("design:type",Object)],a.prototype,"select",void 0),a=r([n.i(i.Component)({selector:"g[ngx-charts-pie-grid-series]",template:'\n    <svg:g class="pie-grid-arcs">\n      <svg:g ngx-charts-pie-arc *ngFor="let arc of arcs; trackBy:trackBy"\n        [attr.class]="arc.class"\n        [startAngle]="arc.startAngle"\n        [endAngle]="arc.endAngle"\n        [innerRadius]="innerRadius"\n        [outerRadius]="outerRadius"\n        [fill]="color(arc)"\n        [value]="arc.data.value"\n        [data]="arc.data"\n        [max]="max"\n        [gradient]="false"\n        [pointerEvents]="arc.pointerEvents"\n        [animate]="arc.animate"\n        (select)="onClick($event)">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.ElementRef])],a)},"./src/pie-chart/pie-grid.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/pie-chart/pie-grid.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/pie-chart/pie-grid.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i=n(0),o=(n.n(i),n(6)),r=(n.n(o),n(11)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=n("./src/common/trim-label.helper.ts"),p=n("./src/common/grid-layout.helper.ts"),d=n("./src/common/label.helper.ts"),h=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},g=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tooltipDisabled=!1,e.margin=[20,20,20,20],e}return h(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.data=n.i(p.a)(this.dims,this.results,150),this.transform="translate("+this.margin[3]+" , "+this.margin[0]+")",this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText},e.prototype.defaultTooltipText=function(t){var e=t.data;return'\n      <span class="tooltip-label">'+n.i(l.a)(n.i(d.a)(e.name))+'</span>\n      <span class="tooltip-val">'+e.value.toLocaleString()+"</span>\n    "},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getSeries=function(){var t=this,e=this.getTotal();return this.data.map(function(i){var s=i.data.name,a=n.i(d.a)(s),c=i.data.value,p=n.i(o.min)([i.width-10,i.height-20])/2-5,h=.9*p,u=0,g=function(){return u+=1,1===u?"rgba(100,100,100,0.3)":t.colorScale.getColor(a)};return{transform:"translate("+(i.x+(i.width-10)/2)+", "+(i.y+(i.height-20)/2)+")",colors:g,innerRadius:h,outerRadius:p,name:s,label:n.i(l.a)(a),total:c,value:c,percent:n.i(r.format)(".1%")(i.data.percent),data:[i,{data:{other:!0,value:e-c,name:i.data.name}}]}})},e.prototype.getTotal=function(){return this.results.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colorScale=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},e}(c.a);u([n.i(i.Input)(),g("design:type",Boolean)],m.prototype,"tooltipDisabled",void 0),u([n.i(i.Input)(),g("design:type",Function)],m.prototype,"tooltipText",void 0),m=u([n.i(i.Component)({selector:"ngx-charts-pie-grid",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false">\n      <svg:g [attr.transform]="transform" class="pie-grid chart">\n        <svg:g\n          *ngFor="let series of series"\n          class="pie-grid-item"\n          [attr.transform]="series.transform">\n          <svg:g ngx-charts-pie-grid-series\n            [colors]="series.colors"\n            [data]="series.data"\n            [innerRadius]="series.innerRadius"\n            [outerRadius]="series.outerRadius"\n            (select)="onClick($event)"\n            ngx-tooltip\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipPlacement]="\'top\'"\n            [tooltipType]="\'tooltip\'"\n            [tooltipTitle]="tooltipText({data: series})"\n          />\n          <svg:text\n            class="label percent-label"\n            dy="-0.5em"\n            x="0"\n            y="5"\n            ngx-charts-count-up\n            [countTo]="series.percent"\n            [countSuffix]="\'%\'"\n            text-anchor="middle">\n          </svg:text>\n          <svg:text\n            class="label"\n            dy="0.5em"\n            x="0"\n            y="5"\n            text-anchor="middle">\n            {{series.label}}\n          </svg:text>\n          <svg:text\n            class="label"\n            dy="1.23em"\n            x="0"\n            [attr.y]="series.outerRadius"\n            text-anchor="middle"\n            ngx-charts-count-up\n            [countTo]="series.total"\n            [countPrefix]="\'Total: \'">\n          </svg:text>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-grid.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],m)},"./src/pie-chart/pie-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n(0),o=(n.n(i),n(4)),r=(n.n(o),n("./src/common/trim-label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=r.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=(n.i(o.arc)().innerRadius(1.5*this.radius).outerRadius(1.5*this.radius),this.radius);this.explodeSlices&&(t=this.radius*this.value/this.max);var e=n.i(o.arc)().innerRadius(t).outerRadius(t),i=e.centroid(this.data),r=this.data.pos[1]/i[1];0!==this.data.pos[1]&&0!==i[1]||(r=1);var s=[r*i[0],r*i[1]];this.line="M"+i+"L"+s+"L"+this.data.pos},Object.defineProperty(t.prototype,"textX",{get:function(){return this.data.pos[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textY",{get:function(){return this.data.pos[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleTransform",{get:function(){return this.isIE?null:"translate3d("+this.textX+"px,"+this.textY+"px, 0)"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attrTransform",{get:function(){return this.isIE?"translate("+this.textX+","+this.textY+")":null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textTransition",{get:function(){return this.isIE?null:"transform 0.75s"},enumerable:!0,configurable:!0}),t.prototype.textAnchor=function(){return this.midAngle(this.data)<Math.PI?"start":"end"},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},t}();s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"data",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"radius",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"label",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"color",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"max",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"value",void 0),s([n.i(i.Input)(),a("design:type",Object)],c.prototype,"explodeSlices",void 0),c=s([n.i(i.Component)({selector:"g[ngx-charts-pie-label]",template:'\n    <title>{{label}}</title>\n    <svg:g\n      [attr.transform]="attrTransform"\n      [style.transform]="styleTransform"\n      [style.transition]="textTransition">\n      <svg:text\n        class="pie-label"\n        dy=".35em"\n        [style.textAnchor]="textAnchor()"\n        [style.shapeRendering]="\'crispEdges\'"\n        [style.textTransform]="\'uppercase\'">\n        {{trimLabel(label, 10)}}\n      </svg:text>\n    </svg:g>\n    <svg:path\n      [attr.d]="line"\n      [attr.stroke]="color"\n      fill="none"\n      class="pie-label-line line">\n    </svg:path>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],c)},"./src/pie-chart/pie-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n(0),o=(n.n(i),n(6)),r=(n.n(o),n(4)),s=(n.n(r),n("./src/common/label.helper.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=n.i(r.pie)().value(function(t){return t.value}).sort(null),e=t(this.series);this.max=n.i(o.max)(e,function(t){return t.value}),this.data=this.calculateLabelPositions(e),this.tooltipText=this.tooltipText||this.defaultTooltipText},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},t.prototype.outerArc=function(){return n.i(r.arc)().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)},t.prototype.calculateLabelPositions=function(t){var e=this,n=t;n.forEach(function(t){t.pos=e.outerArc().centroid(t),t.pos[0]=1.5*e.outerRadius*(e.midAngle(t)<Math.PI?1:-1)});for(var i=0;i<n.length-1;i++)for(var o=n[i],r=i+1;r<n.length;r++){var s=n[r];if(s.pos[0]*o.pos[0]>0){var a=10-Math.abs(s.pos[1]-o.pos[1]);a>0&&(s.pos[1]+=Math.sign(s.pos[0])*a)}}return n},t.prototype.labelVisible=function(t){return this.showLabels&&t.endAngle-t.startAngle>Math.PI/30},t.prototype.labelText=function(t){return this.labelFormatting?this.labelFormatting(t.data.name):this.label(t)},t.prototype.label=function(t){return n.i(s.a)(t.data.name)},t.prototype.defaultTooltipText=function(t){return'\n      <span class="tooltip-label">'+this.label(t)+'</span>\n      <span class="tooltip-val">'+n.i(s.a)(t.data.value)+"</span>\n    "},t.prototype.color=function(t){return this.colors.getColor(this.label(t))},t.prototype.trackBy=function(t,e){return e.data.name},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name&&t.series===e.series})},t}();a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"colors",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"series",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"dims",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"innerRadius",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"outerRadius",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"explodeSlices",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"showLabels",void 0),a([n.i(i.Input)(),c("design:type",Boolean)],l.prototype,"gradient",void 0),a([n.i(i.Input)(),c("design:type",Array)],l.prototype,"activeEntries",void 0),a([n.i(i.Input)(),c("design:type",Boolean)],l.prototype,"tooltipDisabled",void 0),a([n.i(i.Input)(),c("design:type",Object)],l.prototype,"labelFormatting",void 0),a([n.i(i.Input)(),c("design:type",Function)],l.prototype,"tooltipText",void 0),a([n.i(i.Output)(),c("design:type",Object)],l.prototype,"select",void 0),a([n.i(i.Output)(),c("design:type",Object)],l.prototype,"activate",void 0),a([n.i(i.Output)(),c("design:type",Object)],l.prototype,"deactivate",void 0),l=a([n.i(i.Component)({selector:"g[ngx-charts-pie-series]",template:'\n    <svg:g *ngFor="let arc of data; trackBy:trackBy">\n      <svg:g ngx-charts-pie-label\n        *ngIf="labelVisible(arc)"\n        [data]="arc"\n        [radius]="outerRadius"\n        [color]="color(arc)"\n        [label]="labelText(arc)"\n        [max]="max"\n        [value]="arc.value"\n        [explodeSlices]="explodeSlices">\n      </svg:g>\n      <svg:g\n        ngx-charts-pie-arc\n        [startAngle]="arc.startAngle"\n        [endAngle]="arc.endAngle"\n        [innerRadius]="innerRadius"\n        [outerRadius]="outerRadius"\n        [fill]="color(arc)"\n        [value]="arc.data.value"\n        [gradient]="gradient"\n        [data]="arc.data"\n        [max]="max"\n        [explodeSlices]="explodeSlices"\n        [isActive]="isActive(arc.data)"\n        (select)="onClick($event)"\n        (activate)="activate.emit($event)"\n        (deactivate)="deactivate.emit($event)"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipTitle]="tooltipText(arc)">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],l)},"./src/polar-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/polar-chart/polar-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c});n("./src/polar-chart/polar-chart.component.ts"),n("./src/polar-chart/polar-series.component.ts")},"./src/polar-chart/polar-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/polar-chart/polar-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/polar-chart/polar-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i=n(0),o=(n.n(i),n(1)),r=(n.n(o),n(4)),s=(n.n(r),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=n("./src/utils/types.ts"),p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},d=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},h=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=2*Math.PI,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=r.curveCardinalClosed,e.activeEntries=[],e.rangeFillOpacity=.15,e.roundDomains=!1,e.tooltipDisabled=!1,e.showSeriesOnHover=!0,e.gradient=!1,e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[10,20,10,20],e.xAxisHeight=0,e.yAxisWidth=0,e}return p(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.setDims(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.setTicks()},e.prototype.setDims=function(){this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType});var t=~~(this.dims.width/2),e=~~(this.dims.height/2),i=this.outerRadius=Math.min(e/1.5,t/1.5),o=Math.max(0,e-i);this.yAxisDims=d({},this.dims,{width:t}),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.transformYAxis="translate(0, "+o+")",this.labelOffset=this.dims.height+40,this.transformPlot="translate("+t+", "+e+")"},e.prototype.setScales=function(){var t=this.getXValues();this.scaleType=this.getScaleType(t),this.xDomain=this.filteredDomain||this.getXDomain(t),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,g),this.yScale=this.getYScale(this.yDomain,this.outerRadius),this.yAxisScale=this.getYScale(this.yDomain.reverse(),this.outerRadius)},e.prototype.setTicks=function(){var t,e=this;t=this.xAxisTickFormatting?this.xAxisTickFormatting:this.xScale.tickFormat?this.xScale.tickFormat.apply(this.xScale,[5]):function(t){return n.i(l.a)(t)?t.toLocaleDateString():t.toLocaleString()};var i=this.outerRadius;this.thetaTicks=this.xDomain.map(function(n){var o=e.xScale(n),r=1.1*i*(o>Math.PI?-1:1),s=t(n),a=[i*Math.sin(o),-i*Math.cos(o)];return{innerRadius:0,outerRadius:i,startAngle:o,endAngle:o,value:i,label:s,startPos:a,pos:[r,1.1*a[1]]}});for(var o=0;o<this.thetaTicks.length-1;o++)for(var r=this.thetaTicks[o],s=o+1;s<this.thetaTicks.length;s++){var a=this.thetaTicks[s];if(a.pos[0]*r.pos[0]>0){var c=10-Math.abs(a.pos[1]-r.pos[1]);c>0&&(a.pos[1]+=Math.sign(a.pos[0])*c)}}this.radiusTicks=this.yAxisScale.ticks(~~(this.dims.height/50)).map(function(t){return e.yScale(t)})},e.prototype.getXValues=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.includes(s.name)||t.push(s.name)}return t},e.prototype.getXDomain=function(t){if(void 0===t&&(t=this.getXValues()),"time"===this.scaleType){var e=Math.min.apply(Math,t),n=Math.max.apply(Math,t);return[e,n]}if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var e=Math.min.apply(Math,t),n=Math.max.apply(Math,t);return[e,n]}return t},e.prototype.getYValues=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=n[e],o=0,r=i.series;o<r.length;o++){var s=r[o];t.indexOf(s.value)<0&&t.push(s.value),void 0!==s.min&&t.indexOf(s.min)<0&&t.push(s.min),void 0!==s.max&&t.indexOf(s.max)<0&&t.push(s.max)}return t},e.prototype.getYDomain=function(t){void 0===t&&(t=this.getYValues());var e=Math.min.apply(Math,t),n=Math.max.apply(Math,t);return e=Math.max(0,e),this.autoScale||(e=Math.min(0,e)),[e,n]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){switch(this.scaleType){case"time":return n.i(o.scaleTime)().range([0,e]).domain(t);case"linear":var i=n.i(o.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?i.nice():i;default:return n.i(o.scalePoint)().range([0,e-g/t.length]).padding(0).domain(t)}},e.prototype.getYScale=function(t,e){var i=n.i(o.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?i.nice():i},e.prototype.getScaleType=function(t){for(var e=!0,i=!0,o=0,r=t;o<r.length;o++){var s=r[o];n.i(l.a)(s)||(e=!1),n.i(l.b)(s)||(i=!1)}return e?"time":i?"linear":"ordinal"},e.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},e.prototype.setColors=function(){var t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain.reverse();this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},e.prototype.getLegendOptions=function(){return"ordinal"===this.schemeType?{scaleType:this.schemeType,colors:this.colors,domain:this.seriesDomain,title:this.legendTitle}:{scaleType:this.schemeType,colors:this.colors.scale,domain:this.yDomain,title:void 0}},e.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},e.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},e.prototype.onActivate=function(t){this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=this.showSeriesOnHover?[t].concat(this.activeEntries):this.activeEntries,this.activate.emit({value:t,entries:this.activeEntries}))},e.prototype.onDeactivate=function(t){var e=this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value});this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},e.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},e}(c.a);h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"legend",void 0),h([n.i(i.Input)(),u("design:type",String)],m.prototype,"legendTitle",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"xAxis",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"yAxis",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"showXAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"showYAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",String)],m.prototype,"xAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",String)],m.prototype,"yAxisLabel",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"autoScale",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"showGridLines",void 0),h([n.i(i.Input)(),u("design:type",Object)],m.prototype,"curve",void 0),h([n.i(i.Input)(),u("design:type",Array)],m.prototype,"activeEntries",void 0),h([n.i(i.Input)(),u("design:type",String)],m.prototype,"schemeType",void 0),h([n.i(i.Input)(),u("design:type",Number)],m.prototype,"rangeFillOpacity",void 0),h([n.i(i.Input)(),u("design:type",Function)],m.prototype,"xAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Function)],m.prototype,"yAxisTickFormatting",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"roundDomains",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"tooltipDisabled",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"showSeriesOnHover",void 0),h([n.i(i.Input)(),u("design:type",Boolean)],m.prototype,"gradient",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],m.prototype,"activate",void 0),h([n.i(i.Output)(),u("design:type",i.EventEmitter)],m.prototype,"deactivate",void 0),m=h([n.i(i.Component)({selector:"ngx-charts-polar-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g class="polar-chart chart" [attr.transform]="transform">\n        <svg:g [attr.transform]="transformPlot">\n          <svg:circle\n            class="polar-chart-background"\n            cx="0" cy="0"\n            [attr.r]="this.outerRadius" />\n          <svg:g *ngIf="showGridLines">\n            <svg:circle\n              *ngFor="let r of radiusTicks"\n              class="gridline-path radial-gridline-path"\n              cx="0" cy="0"\n              [attr.r]="r" />\n          </svg:g>\n          <svg:g *ngIf="xAxis">\n            <svg:g ngx-charts-pie-label\n              *ngFor="let tick of thetaTicks"\n              [data]="tick"\n              [radius]="outerRadius"\n              [label]="tick.label"\n              [max]="outerRadius"\n              [value]="showGridLines ? 1 : outerRadius"\n              [explodeSlices]="true">\n            </svg:g>\n          </svg:g>\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          [attr.transform]="transformYAxis"\n          *ngIf="yAxis"\n          [yScale]="yAxisScale"\n          [dims]="yAxisDims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-axis-label\n          *ngIf="xAxis && showXAxisLabel"\n          [label]="xAxisLabel"\n          [offset]="labelOffset"\n          [orient]="\'bottom\'"\n          [height]="dims.height"\n          [width]="dims.width">\n        </svg:g>\n        <svg:g [attr.transform]="transformPlot">\n          <svg:g *ngFor="let series of results; trackBy: series?.name">\n            <svg:g ngx-charts-polar-series\n              [gradient]="gradient"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [scaleType]="scaleType"\n              [curve]="curve"\n              [rangeFillOpacity]="rangeFillOpacity"\n              [tooltipDisabled]="tooltipDisabled"\n            />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-chart.component.scss"),n("./src/polar-chart/polar-chart.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],m)},"./src/polar-chart/polar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"c",function(){return p});var i=n(0),o=(n.n(i),
n("./src/common/chart-common.module.ts")),r=n("./src/polar-chart/polar-chart.component.ts"),s=n("./src/polar-chart/polar-series.component.ts"),a=n("./src/pie-chart/index.ts"),c=n("./src/line-chart/index.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return s.a});var l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=function(){function t(){}return t}();p=l([n.i(i.NgModule)({imports:[o.a,a.h,c.d],declarations:[r.a,s.a],exports:[r.a,s.a]})],p)},"./src/polar-chart/polar-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(4)),s=(n.n(r),n("./src/utils/id.ts")),a=n("./src/utils/sort.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function t(t){this.location=t,this.tooltipDisabled=!1,this.gradient=!1,this.circleRadius=3}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this;this.updateGradients();var e=this.getLineGenerator(),n=this.sortData(this.data.series),i=this.data.name,o="linear"===this.colors.scaleType,r=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(o?r:i),this.path=e(n)||"",this.circles=n.map(function(e){var n=t.getAngle(e),r=t.getRadius(e),s=e.value,a=t.colors.getColor(o?Math.abs(s):i);return{cx:r*Math.sin(n),cy:-r*Math.cos(n),value:s,color:a,label:e.name}}),this.active=this.isActive(this.data),this.inactive=this.isInactive(this.data),this.tooltipText=this.tooltipText||function(e){return t.defaultTooltipText(e)}},t.prototype.getAngle=function(t){var e=t.name;return"time"===this.scaleType?this.xScale(e):"linear"===this.scaleType?this.xScale(Number(e)):this.xScale(e)},t.prototype.getRadius=function(t){return this.yScale(t.value)},t.prototype.getLineGenerator=function(){var t=this;return n.i(r.radialLine)().angle(function(e){return t.getAngle(e)}).radius(function(e){return t.getRadius(e)}).curve(this.curve)},t.prototype.sortData=function(t){return"linear"===this.scaleType?n.i(a.a)(t,"name"):"time"===this.scaleType?n.i(a.b)(t,"name"):n.i(a.c)(t,"name","asc",this.xScale.domain())},t.prototype.isActive=function(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.isInactive=function(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(e){return t.name===e.name})},t.prototype.defaultTooltipText=function(t){var e=t.label,n=t.value;return'\n      <span class="tooltip-label">'+this.data.name+" • "+e+'</span>\n      <span class="tooltip-val">'+n.toLocaleString()+"</span>\n    "},t.prototype.updateGradients=function(){if(this.hasGradient=this.gradient||"linear"===this.colors.scaleType,this.hasGradient){var t=this.location instanceof o.PathLocationStrategy?this.location.path():"";if(this.gradientId="grad"+n.i(s.a)().toString(),this.gradientUrl="url("+t+"#"+this.gradientId+")","linear"===this.colors.scaleType){var e=this.data.series.map(function(t){return t.value}),i=Math.max.apply(Math,e),r=Math.min.apply(Math,e);this.gradientStops=this.colors.getLinearGradientStops(i,r)}else this.gradientStops=void 0}},t}();c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"name",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"data",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"xScale",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"yScale",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"colors",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"scaleType",void 0),c([n.i(i.Input)(),l("design:type",Object)],p.prototype,"curve",void 0),c([n.i(i.Input)(),l("design:type",Array)],p.prototype,"activeEntries",void 0),c([n.i(i.Input)(),l("design:type",Number)],p.prototype,"rangeFillOpacity",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"tooltipDisabled",void 0),c([n.i(i.Input)(),l("design:type",Function)],p.prototype,"tooltipText",void 0),c([n.i(i.Input)(),l("design:type",Boolean)],p.prototype,"gradient",void 0),p=c([n.i(i.Component)({selector:"g[ngx-charts-polar-series]",template:'\n    <svg:g class="polar-charts-series">\n      <defs>\n        <svg:g ngx-charts-svg-radial-gradient *ngIf="hasGradient"\n          orientation="vertical"\n          [color]="seriesColor"\n          [name]="gradientId"\n          [startOpacity]="0.25"\n          [endOpacity]="1"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:g ngx-charts-line\n        class="polar-series-path"\n        [path]="path"\n        [stroke]="hasGradient ? gradientUrl : seriesColor"\n        [class.active]="active"\n        [class.inactive]="inactive"\n        [attr.fill-opacity]="rangeFillOpacity"\n        [fill]="hasGradient ? gradientUrl : seriesColor"\n      />\n      <svg:g ngx-charts-circle\n        *ngFor="let circle of circles"\n        class="circle"\n        [cx]="circle.cx"\n        [cy]="circle.cy"\n        [r]="circleRadius"\n        [fill]="circle.color"\n        [style.opacity]="inactive ? 0.2 : 1"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        tooltipType="tooltip"\n        [tooltipTitle]="tooltipText(circle)"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),l("design:paramtypes",[o.LocationStrategy])],p)},"./src/tree-map/index.ts":function(t,e,n){"use strict";var i=n("./src/tree-map/tree-map.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/tree-map/tree-map.component.ts"),n("./src/tree-map/tree-map-cell.component.ts"),n("./src/tree-map/tree-map-cell-series.component.ts")},"./src/tree-map/tree-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.tooltipDisabled=!1,this.gradient=!1,this.select=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.cells=this.getCells()},t.prototype.getCells=function(){var t=this;return this.data.children.filter(function(t){return 1===t.depth}).map(function(e,n){var i=e.id;return{x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,fill:t.colors.getColor(i),label:i,value:e.value,valueType:e.valueType}})},t.prototype.getTooltipText=function(t){return'\n      <span class="tooltip-label">'+t.label+'</span>\n      <span class="tooltip-val">'+t.value.toLocaleString()+"</span>\n    "},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.label},t}();o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"data",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"dims",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"colors",void 0),o([n.i(i.Input)(),r("design:type",Boolean)],s.prototype,"tooltipDisabled",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"valueFormatting",void 0),o([n.i(i.Input)(),r("design:type",Object)],s.prototype,"labelFormatting",void 0),o([n.i(i.Input)(),r("design:type",Boolean)],s.prototype,"gradient",void 0),o([n.i(i.Output)(),r("design:type",Object)],s.prototype,"select",void 0),s=o([n.i(i.Component)({selector:"g[ngx-charts-tree-map-cell-series]",template:'\n    <svg:g ngx-charts-tree-map-cell *ngFor="let c of cells; trackBy:trackBy"\n      [data]="c"\n      [x]="c.x"\n      [y]="c.y"\n      [width]="c.width"\n      [height]="c.height"\n      [fill]="c.fill"\n      [label]="c.label"\n      [value]="c.value"\n      [valueType]="c.valueType"\n      [valueFormatting]="valueFormatting"\n      [labelFormatting]="labelFormatting"\n      [gradient]="gradient"\n      (select)="onClick($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="getTooltipText(c)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],s)},"./src/tree-map/tree-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(2)),r=(n.n(o),n(5)),s=(n.n(r),n("./src/utils/color-utils.ts")),a=n("./src/common/trim-label.helper.ts"),c=n("./src/utils/id.ts"),l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(){function t(t,e){this.location=e,this.gradient=!1,this.select=new i.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(){this.update();this.data&&this.data.value;this.valueFormatting=this.valueFormatting||function(t){return t.value.toLocaleString()};var t=this.labelFormatting||function(t){return n.i(a.a)(t.label,55)},e={data:this.data,label:this.label,value:this.value};this.formattedLabel=t(e);var i=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+n.i(c.a)().toString(),this.gradientUrl="url("+i+"#"+this.gradientId+")",this.gradientStops=this.getGradientStops()},t.prototype.update=function(){this.initialized?this.animateToCurrentForm():(this.loadAnimation(),this.initialized=!0)},t.prototype.loadAnimation=function(){n.i(r.select)(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()},t.prototype.getTextColor=function(){return n.i(s.a)(this.fill)},t.prototype.animateToCurrentForm=function(){n.i(r.select)(this.element).select(".cell").attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height)},t.prototype.onClick=function(){this.select.emit({name:this.label,value:this.value})},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:.3},{offset:100,color:this.fill,opacity:1}]},t}();l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"data",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"fill",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"x",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"y",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"width",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"height",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"label",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"value",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"valueType",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"valueFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"labelFormatting",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"gradient",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"select",void 0),d=l([n.i(i.Component)({selector:"g[ngx-charts-tree-map-cell]",template:'\n    <svg:g>\n      <defs *ngIf="gradient">\n        <svg:g ngx-charts-svg-linear-gradient\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:rect\n        [attr.fill]="gradient ? gradientUrl : fill"\n        [attr.width]="width"\n        [attr.height]="height"\n        [style.cursor]="\'pointer\'"\n        class="cell"\n        (click)="onClick()"\n      />\n      <svg:foreignObject\n        *ngIf="width >= 70 && height >= 35"\n        [attr.x]="x"\n        [attr.y]="y"\n        [attr.width]="width"\n        [attr.height]="height"\n        class="label"\n        [style.pointer-events]="\'none\'">\n        <xhtml:p\n          [style.color]="getTextColor()"\n          [style.height]="height + \'px\'"\n          [style.width]="width + \'px\'">\n          <xhtml:span class="treemap-label" [innerHTML]="formattedLabel">\n          </xhtml:span>\n          <xhtml:br />\n          <xhtml:span \n            class="treemap-val" \n            ngx-charts-count-up \n            [countTo]="value"\n            [valueFormatting]="valueFormatting">\n          </xhtml:span>\n        </xhtml:p>\n      </svg:foreignObject>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),p("design:paramtypes",[i.ElementRef,o.LocationStrategy])],d)},"./src/tree-map/tree-map.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/tree-map/tree-map.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/tree-map/tree-map.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n(0),o=(n.n(i),n(12)),r=(n.n(o),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tooltipDisabled=!1,e.gradient=!1,e.select=new i.EventEmitter,e.margin=[10,10,10,10],e}return c(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=n.i(s.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=n.i(o.treemap)().size([this.dims.width,this.dims.height]);var e={name:"root",value:0,isRoot:!0},i=n.i(o.stratify)().id(function(t){var e=t.name;return e="Date"===e.constructor.name?e.toLocaleDateString():e.toLocaleString()}).parentId(function(t){return t.isRoot?null:"root"})([e].concat(this.results)).sum(function(t){return t.value});this.data=this.treemap(i),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},e.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.onClick=function(t){this.select.emit(t)},e.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},e}(r.a);l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"results",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"tooltipDisabled",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"valueFormatting",void 0),l([n.i(i.Input)(),p("design:type",Object)],d.prototype,"labelFormatting",void 0),l([n.i(i.Input)(),p("design:type",Boolean)],d.prototype,"gradient",void 0),l([n.i(i.Output)(),p("design:type",Object)],d.prototype,"select",void 0),d=l([n.i(i.Component)({selector:"ngx-charts-tree-map",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false">\n      <svg:g [attr.transform]="transform" class="tree-map chart">\n        <svg:g ngx-charts-tree-map-cell-series\n          [colors]="colors"\n          [data]="data"\n          [dims]="dims"\n          [tooltipDisabled]="tooltipDisabled"\n          [valueFormatting]="valueFormatting"\n          [labelFormatting]="labelFormatting"\n          [gradient]="gradient"\n          (select)="onClick($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/tree-map/tree-map.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],d)},"./src/tree-map/tree-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n(0),o=(n.n(i),n("./src/common/chart-common.module.ts")),r=n("./src/tree-map/tree-map-cell.component.ts"),s=n("./src/tree-map/tree-map-cell-series.component.ts"),a=n("./src/tree-map/tree-map.component.ts");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t}();l=c([n.i(i.NgModule)({imports:[o.a],declarations:[r.a,s.a,a.a],exports:[r.a,s.a,a.a]})],l)},"./src/utils/color-sets.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}]},"./src/utils/color-utils.ts":function(t,e,n){"use strict";function i(t){var e=r.rgb(t),n=e.r,i=e.g,s=e.b;return 0===e.opacity?e.toString():o(e,(299*n+587*i+114*s)/1e3>=128?-.8:.8)}function o(t,e){var n=t.r,i=t.g,o=t.b,r=e<0?0:255,s=e<0?-1*e:e;return n=Math.round((r-n)*s)+n,i=Math.round((r-i)*s)+i,o=Math.round((r-o)*s)+o,"rgb("+n+", "+i+", "+o+")"}e.a=i;var r=n(9);n.n(r)},"./src/utils/id.ts":function(t,e,n){"use strict";function i(){var t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,o[t]?i():(o[t]=!0,t)}e.a=i;var o={}},"./src/utils/index.ts":function(t,e,n){"use strict";var i=n("./src/utils/id.ts");n.d(e,"b",function(){return i.a});var o=(n("./src/utils/color-sets.ts"),n("./src/utils/sort.ts"),n("./src/utils/throttle.ts"),n("./src/utils/color-utils.ts"),n("./src/utils/visibility-observer.ts"));n.d(e,"a",function(){return o.a});n("./src/utils/types.ts")},"./src/utils/sort.ts":function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,i){return"asc"===n?t[e]-i[e]:i[e]-t[e]})}function o(t,e,n,i){return void 0===n&&(n="asc"),t.sort(function(t,o){var r=t[e],s=o[e],a=i.indexOf(r),c=i.indexOf(s);return"asc"===n?a-c:c-a})}function r(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,i){var o=t[e].getTime(),r=i[e].getTime();return"asc"===n?o>r?1:r>o?-1:0:o>r?-1:r>o?1:0})}e.a=i,e.c=o,e.b=r},"./src/utils/throttle.ts":function(t,e,n){"use strict";function i(t,e,n){function i(){c=!1===n.leading?0:+new Date,a=null,s=t.apply(o,r)}n=n||{};var o,r,s,a=null,c=0;return function(){var l=+new Date;c||!1!==n.leading||(c=l);var p=e-(l-c);return o=this,r=arguments,p<=0?(clearTimeout(a),a=null,c=l,s=t.apply(o,r)):a||!1===n.trailing||(a=setTimeout(i,p)),s}}function o(t,e){return function(n,o,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,o,{configurable:!0,enumerable:r.enumerable,value:i(r.value,t,e)}),this[o]}}}}e.a=o},"./src/utils/types.ts":function(t,e,n){"use strict";function i(t){return"[object Date]"===toString.call(t)}function o(t){return"number"==typeof t}e.a=i,e.b=o},"./src/utils/visibility-observer.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t,e){this.element=t,this.zone=e,this.visible=new i.EventEmitter,this.isVisible=!1,this.runCheck()}return t.prototype.destroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})},t.prototype.runCheck=function(){var t=this,e=function(){if(t.element){var n=t.element.nativeElement,i=n.offsetHeight,o=n.offsetWidth;i&&o?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},50)}))}};setTimeout(function(){return e()})},t}();o([n.i(i.Output)(),r("design:type",i.EventEmitter)],s.prototype,"visible",void 0)},0:function(t,e){t.exports=n},1:function(t,e){t.exports=d},10:function(t,e){t.exports=a},11:function(e,n){e.exports=t},12:function(t,e){t.exports=l},13:function(t,e){t.exports=p},14:function(t,e){t.exports=g},15:function(t,e){t.exports=m},16:function(t,e){t.exports=f},17:function(t,e){t.exports=y},2:function(t,n){t.exports=e},3:function(t,e){t.exports=c},4:function(t,e){t.exports=u},5:function(t,e){t.exports=h},6:function(t,e){t.exports=o},7:function(t,e){t.exports=i},8:function(t,e){t.exports=r},9:function(t,e){t.exports=s}})});
//# sourceMappingURL=release/index.js.map