forked from swimlane/ngx-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.min.js
1 lines (1 loc) · 429 KB
/
index.min.js
1
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/animations"),require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("d3-array"),require("d3-brush"),require("d3-color"),require("d3-force"),require("d3-format"),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",["@angular/animations","@angular/common","@angular/core","@angular/platform-browser","d3-array","d3-brush","d3-color","d3-force","d3-format","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("@angular/animations"),require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("d3-array"),require("d3-brush"),require("d3-color"),require("d3-force"),require("d3-format"),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["@angular/animations"],t["@angular/common"],t["@angular/core"],t["@angular/platform-browser"],t["d3-array"],t["d3-brush"],t["d3-color"],t["d3-force"],t["d3-format"],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,s,a,r,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.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/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/base-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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 -webkit-transition: opacity 100ms ease-in-out;\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 -webkit-transition: opacity 100ms ease-in-out;\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 .refline-path {\n stroke: #a8b2c7;\n stroke-width: 1;\n stroke-dasharray: 5;\n stroke-dashoffset: 5; }\n .ngx-charts .refline-label {\n font-size: 9px; }\n .ngx-charts .reference-area {\n fill-opacity: 0.05;\n fill: #000; }\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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/advanced-legend.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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 -webkit-transition: 0.2s;\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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/legend.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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: calc(100% - 10px); }\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 -webkit-transition: 0.2s;\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: calc(100% - 20px);\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/legend/scale-legend.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/timeline/timeline.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/common/tooltip/tooltip.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".ngx-charts-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-charts-tooltip-content.type-popover {\n background: #fff;\n color: #060709;\n border: 1px solid #72809b;\n -webkit-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 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-charts-tooltip-content.type-popover .tooltip-caret {\n position: absolute;\n z-index: 5001;\n width: 0;\n height: 0; }\n .ngx-charts-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-charts-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-charts-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-charts-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-charts-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-charts-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-charts-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-charts-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-charts-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-charts-tooltip-content .tooltip-label {\n display: block;\n line-height: 1em;\n padding: 8px 5px 5px 5px;\n font-size: 1em; }\n .ngx-charts-tooltip-content .tooltip-val {\n display: block;\n font-size: 1.3em;\n line-height: 1em;\n padding: 0 5px 8px 5px; }\n .ngx-charts-tooltip-content .tooltip-caret {\n position: absolute;\n z-index: 5001;\n width: 0;\n height: 0; }\n .ngx-charts-tooltip-content.position-right {\n -webkit-transform: translate3d(10px, 0, 0);\n transform: translate3d(10px, 0, 0); }\n .ngx-charts-tooltip-content.position-left {\n -webkit-transform: translate3d(-10px, 0, 0);\n transform: translate3d(-10px, 0, 0); }\n .ngx-charts-tooltip-content.position-top {\n -webkit-transform: translate3d(0, -10px, 0);\n transform: translate3d(0, -10px, 0); }\n .ngx-charts-tooltip-content.position-bottom {\n -webkit-transform: translate3d(0, 10px, 0);\n transform: translate3d(0, 10px, 0); }\n .ngx-charts-tooltip-content.animate {\n opacity: 1;\n -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;\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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/force-directed-graph/force-directed-graph.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".force-directed-graph .edge {\n stroke: #333; }\n",""])},'./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/gauge/gauge.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/gauge/linear-gauge.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/number-card/card.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/advanced-pie-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/pie-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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 -webkit-transition: d 750ms;\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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/pie-chart/pie-grid.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/polar-chart/polar-chart.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./src/tree-map/tree-map.component.scss':function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).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){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var s=i(o),a=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(a).concat([s]).join("\n")}return[n].join("\n")}function i(t){return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t)))))+" */"}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 s=this[o][0];"number"==typeof s&&(i[s]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},"./src/area-chart/area-chart-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n("@angular/core"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("@angular/common")),r=(n.n(a),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(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(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.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 n=this,i=0;i<this.xSet.length;i++)!function(t){for(var i=n.xSet[t],o=0,s=0,a=0,r=n.results;a<r.length;a++)(d=(p=r[a]).series.find(function(t){var n=t.name,o=i;return"time"===e.scaleType&&(n=n.valueOf(),o=o.valueOf()),n===o}))&&(s+=d.value);for(var c=0,l=n.results;c<l.length;c++){var p=l[c],d=p.series.find(function(t){var n=t.name,o=i;return"time"===e.scaleType&&(n=n.valueOf(),o=o.valueOf()),n===o});d?(d.d0=o,d.d1=o+d.value,o+=d.value):(d={name:i,value:0,d0:o,d1:o},p.series.push(d)),s>0?(d.d0=100*d.d0/s,d.d1=100*d.d1/s):(d.d0=0,d.d1=0)}}(i);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";var o=this.location instanceof a.PathLocationStrategy?this.location.path():"";this.clipPathId="clip"+Object(p.a)().toString(),this.clipPath="url("+o+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(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=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var r=Math.min.apply(Math,t),c=Math.max.apply(Math,t);a=[new Date(r),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})}else"linear"===this.scaleType?(t=t.map(function(t){return Number(t)}),a=[r=Math.min.apply(Math,t),c=Math.max.apply(Math,t)],this.xSet=t.slice().sort()):(a=t,this.xSet=t);return 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 n;return"time"===this.scaleType?n=Object(o.scaleTime)():"linear"===this.scaleType?n=Object(o.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(o.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},e.prototype.getYScale=function(t,e){var n=Object(o.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var s=o[i];this.isDate(s)||(e=!1),"number"!=typeof s&&(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=[]},h([Object(i.Input)(),u("design:type",Object)],e.prototype,"legend",void 0),h([Object(i.Input)(),u("design:type",String)],e.prototype,"legendTitle",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxis",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxis",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"showXAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"showYAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"timeline",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"gradient",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"showGridLines",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"curve",void 0),h([Object(i.Input)(),u("design:type",Array)],e.prototype,"activeEntries",void 0),h([Object(i.Input)(),u("design:type",String)],e.prototype,"schemeType",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"roundDomains",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),h([Object(i.Output)(),u("design:type",i.EventEmitter)],e.prototype,"activate",void 0),h([Object(i.Output)(),u("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),h([Object(i.ContentChild)("tooltipTemplate"),u("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),h([Object(i.ContentChild)("seriesTooltipTemplate"),u("design:type",i.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),h([Object(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],e.prototype,"hideCircles",null),e=h([Object(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\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [showPercentage]="true"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\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 [tooltipTemplate]="tooltipTemplate"\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>\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})],e)}(l.a)},"./src/area-chart/area-chart-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("d3-shape")),r=(n.n(a),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(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=a.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=Object(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.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 n=this,i=0;i<this.xSet.length;i++)!function(t){for(var i=n.xSet[t],o=0,s=0,a=n.results;s<a.length;s++){var r=a[s],c=r.series.find(function(t){var n=t.name,o=i;return"time"===e.scaleType&&(n=n.valueOf(),o=o.valueOf()),n===o});c?(c.d0=o,c.d1=o+c.value,o+=c.value):(c={name:i,value:0,d0:o,d1:o},r.series.push(c))}}(i);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"+Object(p.a)().toString(),this.clipPath="url("+s+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(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=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var r=Math.min.apply(Math,t),c=Math.max.apply(Math,t);a=[new Date(r),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})}else"linear"===this.scaleType?(t=t.map(function(t){return Number(t)}),a=[r=Math.min.apply(Math,t),c=Math.max.apply(Math,t)],this.xSet=t.slice().sort()):(a=t,this.xSet=t);return 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],s=0,a=0,r=n.results;a<r.length;a++){var c=r[a].series.find(function(e){var n=e.name,i=o;return"time"===t.scaleType&&(n=n.valueOf(),i=i.valueOf()),n===i});c&&(s+=c.value)}e.push(s)}(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 n;return"time"===this.scaleType?n=Object(s.scaleTime)():"linear"===this.scaleType?n=Object(s.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(s.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},e.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var s=o[i];this.isDate(s)||(e=!1),"number"!=typeof s&&(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=[]},h([Object(i.Input)(),u("design:type",Object)],e.prototype,"legend",void 0),h([Object(i.Input)(),u("design:type",String)],e.prototype,"legendTitle",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxis",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxis",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"showXAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"showYAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"timeline",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"gradient",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"showGridLines",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"curve",void 0),h([Object(i.Input)(),u("design:type",Array)],e.prototype,"activeEntries",void 0),h([Object(i.Input)(),u("design:type",String)],e.prototype,"schemeType",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"roundDomains",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),h([Object(i.Output)(),u("design:type",i.EventEmitter)],e.prototype,"activate",void 0),h([Object(i.Output)(),u("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),h([Object(i.ContentChild)("tooltipTemplate"),u("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),h([Object(i.ContentChild)("seriesTooltipTemplate"),u("design:type",i.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),h([Object(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],e.prototype,"hideCircles",null),e=h([Object(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\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\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 [tooltipTemplate]="tooltipTemplate"\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>\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})],e)}(l.a)},"./src/area-chart/area-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("d3-shape")),r=(n.n(a),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(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=a.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=Object(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.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"+Object(p.a)().toString(),this.clipPath="url("+e+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(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=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var r=Math.min.apply(Math,t),c=Math.max.apply(Math,t);a=[new Date(r),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})}else"linear"===this.scaleType?(t=t.map(function(t){return Number(t)}),a=[r=Math.min.apply(Math,t),c=Math.max.apply(Math,t)],this.xSet=t.slice().sort()):(a=t,this.xSet=t);return a},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.value)||t.push(s.value)}var a=Math.min.apply(Math,t),r=Math.max.apply(Math,t);return this.autoScale||(a=Math.min(0,a)),[a,r]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(s.scaleTime)():"linear"===this.scaleType?n=Object(s.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(s.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},e.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var s=o[i];this.isDate(s)||(e=!1),"number"!=typeof s&&(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=[]},h([Object(i.Input)(),u("design:type",Object)],e.prototype,"legend",void 0),h([Object(i.Input)(),u("design:type",String)],e.prototype,"legendTitle",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"state",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxis",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxis",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"autoScale",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"showXAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"showYAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxisLabel",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"timeline",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"gradient",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"showGridLines",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"curve",void 0),h([Object(i.Input)(),u("design:type",Array)],e.prototype,"activeEntries",void 0),h([Object(i.Input)(),u("design:type",String)],e.prototype,"schemeType",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),h([Object(i.Input)(),u("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"roundDomains",void 0),h([Object(i.Input)(),u("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),h([Object(i.Output)(),u("design:type",i.EventEmitter)],e.prototype,"activate",void 0),h([Object(i.Output)(),u("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),h([Object(i.ContentChild)("tooltipTemplate"),u("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),h([Object(i.ContentChild)("seriesTooltipTemplate"),u("design:type",i.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),h([Object(i.HostListener)("mouseleave"),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],e.prototype,"hideCircles",null),e=h([Object(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\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\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 [tooltipTemplate]="tooltipTemplate"\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>\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})],e)}(l.a)},"./src/area-chart/area-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("./src/area-chart/area-chart.component.ts")),s=n("./src/area-chart/area-chart-normalized.component.ts"),a=n("./src/area-chart/area-chart-stacked.component.ts"),r=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,"c",function(){return s.a}),n.d(e,"d",function(){return a.a}),n.d(e,"e",function(){return r.a});var l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},p=function(){function t(){}return t=l([Object(i.NgModule)({imports:[c.a],declarations:[o.a,s.a,a.a,r.a],exports:[o.a,s.a,a.a,r.a]})],t)}()},"./src/area-chart/area-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/utils/sort.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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,n,i=function(e){var n=e.name;return t.xScale(n)};this.stacked||this.normalized?(e=Object(o.area)().x(i).y0(function(e,n){return t.yScale(e.d0)}).y1(function(e,n){return t.yScale(e.d1)}),n=Object(o.area)().x(i).y0(function(e){return t.yScale.range()[0]}).y1(function(e){return t.yScale.range()[0]})):(e=Object(o.area)().x(i).y0(function(){return t.yScale.range()[0]}).y1(function(e){return t.yScale(e.value)}),n=Object(o.area)().x(i).y0(function(e){return t.yScale.range()[0]}).y1(function(e){return t.yScale.range()[0]})),e.curve(this.curve),n.curve(this.curve),this.opacity=.8;var a=this.data.series;a="linear"===this.scaleType?Object(s.c)(a,"name"):"time"===this.scaleType?Object(s.b)(a,"name"):Object(s.a)(a,"name","asc",this.xScale.domain()),this.path=e(a),this.startingPath=n(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})},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"stacked",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"normalized",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"gradient",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"curve",void 0),a([Object(i.Input)(),r("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"select",void 0),t=a([Object(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})],t)}()},"./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("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/bar-chart/bar.component.ts"),a=n("./src/bar-chart/bar-horizontal.component.ts"),r=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 s.a}),n.d(e,"d",function(){return a.a}),n.d(e,"c",function(){return r.a}),n.d(e,"e",function(){return c.a}),n.d(e,"f",function(){return l.a}),n.d(e,"h",function(){return p.a}),n.d(e,"g",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,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},y=function(){function t(){}return t=f([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a,r.a,c.a,l.a,p.a,d.a,h.a,u.a,g.a,m.a],exports:[s.a,a.a,r.a,c.a,l.a,p.a,d.a,h.a,u.a,g.a,m.a]})],t)}()},"./src/bar-chart/bar-horizontal-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.roundEdges=!0,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=Object(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.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 Object(s.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 Object(s.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},e.prototype.getValueScale=function(){var t=Object(s.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=0,o=n[e].series;i<o.length;i++){var s=o[i];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=0,o=n[e].series;i<o.length;i++){var s=o[i];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 r.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})},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"groupPadding",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"barPadding",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundEdges",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=p([Object(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 [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [roundEdges]="roundEdges"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-horizontal-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(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.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=0,o=n[e].series;i<o.length;i++){var s=o[i];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 Object(s.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},e.prototype.getXScale=function(){var t=Object(s.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 r.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})},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"barPadding",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=p([Object(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 [tooltipTemplate]="tooltipTemplate"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-horizontal-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(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.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=0,o=n[e].series;i<o.length;i++){var s=o[i];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=0,o=0,s=n[e].series;o<s.length;o++)i+=s[o].value;t.push(i)}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 Object(s.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},e.prototype.getXScale=function(){var t=Object(s.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 r.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})},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"barPadding",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=p([Object(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 [tooltipTemplate]="tooltipTemplate"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("@angular/core"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),r=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.roundEdges=!0,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=Object(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.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=Object(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 Object(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 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.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})},l([Object(i.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(i.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"roundEdges",void 0),l([Object(i.Output)(),p("design:type",i.EventEmitter)],e.prototype,"activate",void 0),l([Object(i.Output)(),p("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(i.ContentChild)("tooltipTemplate"),p("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(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 [tooltipTemplate]="tooltipTemplate"\n [activeEntries]="activeEntries"\n [roundEdges]="roundEdges"\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})],e)}(r.a)},"./src/bar-chart/bar-vertical-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.roundEdges=!0,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=Object(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.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 Object(s.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 Object(s.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},e.prototype.getValueScale=function(){var t=Object(s.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=0,o=n[e].series;i<o.length;i++){var s=o[i];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=0,o=n[e].series;i<o.length;i++){var s=o[i];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 r.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})},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"scaleType",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"groupPadding",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"barPadding",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundEdges",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=p([Object(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 [tooltipTemplate]="tooltipTemplate"\n [seriesName]="group.name"\n [roundEdges]="roundEdges"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-vertical-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(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.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=0,o=n[e].series;i<o.length;i++){var s=o[i];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 Object(s.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},e.prototype.getYScale=function(){var t=Object(s.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 r.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})},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"barPadding",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=p([Object(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 [tooltipTemplate]="tooltipTemplate"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-vertical-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(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.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=0,o=n[e].series;i<o.length;i++){var s=o[i];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=0,o=0,s=n[e].series;o<s.length;o++)i+=s[o].value;t.push(i)}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 Object(s.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},e.prototype.getYScale=function(){var t=Object(s.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 r.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})},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxis",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showXAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"showYAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisLabel",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"gradient",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"showGridLines",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"schemeType",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"barPadding",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"roundDomains",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=p([Object(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 [tooltipTemplate]="tooltipTemplate"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],e)}(c.a)},"./src/bar-chart/bar-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("@angular/core"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),r=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.roundEdges=!0,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=Object(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.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 Object(o.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.xDomain)},e.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=Object(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 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.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})},l([Object(i.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"showGridLines",void 0),l([Object(i.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"schemeType",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"barPadding",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"roundDomains",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"roundEdges",void 0),l([Object(i.Output)(),p("design:type",i.EventEmitter)],e.prototype,"activate",void 0),l([Object(i.Output)(),p("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(i.ContentChild)("tooltipTemplate"),p("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(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 [tooltipTemplate]="tooltipTemplate"\n [activeEntries]="activeEntries"\n [roundEdges]="roundEdges"\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})],e)}(r.a)},"./src/bar-chart/bar.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-selection")),a=(n.n(s),n("./src/common/shape.helper.ts")),r=n("./src/utils/id.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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"+Object(r.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=Object(s.select)(this.element).select(".bar"),e=this.getPath();t.transition().duration(500).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=Object(a.a)(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Object(a.a)(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=Object(a.a)(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=Object(a.a)(this.x,this.y,1,this.height,0,this.edges)),t},t.prototype.getPath=function(){var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Object(a.a)(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Object(a.a)(this.x,this.y,this.width,this.height,e,this.edges)):t=Object(a.a)(this.x,this.y,this.width,this.height,e,this.edges),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},Object.defineProperty(t.prototype,"edges",{get:function(){var t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},c([Object(i.Input)(),l("design:type",Object)],t.prototype,"fill",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"data",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"width",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"height",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"x",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"y",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"orientation",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"roundEdges",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"gradient",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"offset",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"isActive",void 0),c([Object(i.Input)(),l("design:type",Array)],t.prototype,"stops",void 0),c([Object(i.Output)(),l("design:type",Object)],t.prototype,"select",void 0),c([Object(i.Output)(),l("design:type",Object)],t.prototype,"activate",void 0),c([Object(i.Output)(),l("design:type",Object)],t.prototype,"deactivate",void 0),c([Object(i.HostListener)("mouseenter"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onMouseEnter",null),c([Object(i.HostListener)("mouseleave"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=c([Object(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])],t)}()},"./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.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.d(e,"f",function(){return i.f}),n.d(e,"g",function(){return i.g}),n.d(e,"h",function(){return i.h}),n.d(e,"i",function(){return i.i}),n.d(e,"j",function(){return i.j}),n.d(e,"k",function(){return i.k}),n.d(e,"l",function(){return i.l});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("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("./src/common/label.helper.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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=this;this.updateTooltipSettings();var e,n=0;"normalized"===this.type&&(e=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(i,o){var a=i.value,r=i.name,c=Object(s.a)(r),l={value:a,label:r,roundEdges:t.roundEdges,data:i,formattedLabel:c};if(l.height=t.yScale.bandwidth(),"standard"===t.type)l.width=Math.abs(t.xScale(a)-t.xScale(0)),l.x=a<0?t.xScale(a):t.xScale(0),l.y=t.yScale(r);else if("stacked"===t.type){d=(p=n)+a;n+=a,l.width=t.xScale(d)-t.xScale(p),l.x=t.xScale(p),l.y=0,l.offset0=p,l.offset1=d}else if("normalized"===t.type){var p=n,d=p+a;n+=a,e>0?(p=100*p/e,d=100*d/e):(p=0,d=0),l.width=t.xScale(d)-t.xScale(p),l.x=t.xScale(p),l.y=0,l.offset0=p,l.offset1=d,a=(d-p).toFixed(2)+"%"}"ordinal"===t.colors.scaleType?l.color=t.colors.getColor(r):"standard"===t.type?(l.color=t.colors.getColor(a),l.gradientStops=t.colors.getLinearGradientStops(a)):(l.color=t.colors.getColor(l.offset1),l.gradientStops=t.colors.getLinearGradientStops(l.offset1,l.offset0));var h=c;return t.seriesName&&(h=t.seriesName+" • "+c,l.data.series=t.seriesName),l.tooltipText=t.tooltipDisabled?void 0:'\n <span class="tooltip-label">'+h+'</span>\n <span class="tooltip-val">'+a.toLocaleString()+"</span>\n ",l})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},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)},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"dims",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"type",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"series",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(i.Input)(),r("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"seriesName",void 0),a([Object(i.Input)(),r("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"roundEdges",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(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]="tooltipPlacement"\n [tooltipType]="tooltipType"\n [tooltipTitle]="tooltipTemplate ? undefined : bar.tooltipText"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="bar.data">\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],t)}()},"./src/bar-chart/series-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("./src/common/label.helper.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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=this;this.updateTooltipSettings();var e;this.series.length&&(e=this.xScale.bandwidth());var n,i=0;"normalized"===this.type&&(n=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(o,a){var r=o.value,c=o.name,l=Object(s.a)(c),p={value:r,label:c,roundEdges:t.roundEdges,data:o,width:e,formattedLabel:l,height:0,x:0,y:0};if("standard"===t.type)p.height=Math.abs(t.yScale(r)-t.yScale(0)),p.x=t.xScale(c),p.y=r<0?t.yScale(0):t.yScale(r);else if("stacked"===t.type){h=(d=i)+r;i+=r,p.height=t.yScale(d)-t.yScale(h),p.x=0,p.y=t.yScale(h),p.offset0=d,p.offset1=h}else if("normalized"===t.type){var d=i,h=d+r;i+=r,n>0?(d=100*d/n,h=100*h/n):(d=0,h=0),p.height=t.yScale(d)-t.yScale(h),p.x=0,p.y=t.yScale(h),p.offset0=d,p.offset1=h,r=(h-d).toFixed(2)+"%"}"ordinal"===t.colors.scaleType?p.color=t.colors.getColor(c):"standard"===t.type?(p.color=t.colors.getColor(r),p.gradientStops=t.colors.getLinearGradientStops(r)):(p.color=t.colors.getColor(p.offset1),p.gradientStops=t.colors.getLinearGradientStops(p.offset1,p.offset0));var u=l;return t.seriesName&&(u=t.seriesName+" • "+l,p.data.series=t.seriesName),p.tooltipText=t.tooltipDisabled?void 0:'\n <span class="tooltip-label">'+u+'</span>\n <span class="tooltip-val">'+r.toLocaleString()+"</span>\n ",p})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},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},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"dims",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"type",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"series",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(i.Input)(),r("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"seriesName",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),r("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"roundEdges",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-series-vertical]",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]="\'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]="tooltipPlacement"\n [tooltipType]="tooltipType"\n [tooltipTitle]="tooltipTemplate ? undefined : bar.tooltipText"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="bar.data">\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],t)}()},"./src/bubble-chart/bubble-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/base-chart.component.ts")),r=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),l=n("./src/bubble-chart/bubble-chart.utils.ts"),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=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 p(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(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.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 c.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,s=this.data;o<s.length;o++)for(var a=0,r=s[o].series;a<r.length;a++){var c=r[a],l=this.rScale(c.r),p="linear"===this.xScaleType?this.xScale(Number(c.x)):this.xScale(c.x),d="linear"===this.yScaleType?this.yScale(Number(c.y)):this.yScale(c.y);e=Math.max(l-p,e),t=Math.max(l-d,t),n=Math.max(d+l,n),i=Math.max(p+l,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 Object(l.b)(t,[e,this.bubblePadding[0]],this.yScaleType,this.roundDomains)},e.prototype.getXScale=function(t,e){return Object(l.b)(t,[this.bubblePadding[3],e],this.xScaleType,this.roundDomains)},e.prototype.getRScale=function(t,e){var n=Object(s.scaleLinear)().range(e).domain(t);return this.roundDomains?n.nice():n},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,n=this.results;e<n.length;e++)for(var i=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.x)||t.push(s.x)}return this.xScaleType=Object(l.c)(t),Object(l.a)(t,this.xScaleType,this.autoScale)},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.y)||t.push(s.y)}return this.yScaleType=Object(l.c)(t),Object(l.a)(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=0,s=i[n].series;o<s.length;o++){var a=s[o],r=Number(a.r)||1;t=Math.min(t,r),e=Math.max(e,r)}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.prototype.trackBy=function(t,e){return e.name},d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"showGridLines",void 0),d([Object(i.Input)(),h("design:type",Object)],e.prototype,"legend",void 0),d([Object(i.Input)(),h("design:type",String)],e.prototype,"legendTitle",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"xAxis",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"yAxis",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"showXAxisLabel",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"showYAxisLabel",void 0),d([Object(i.Input)(),h("design:type",String)],e.prototype,"xAxisLabel",void 0),d([Object(i.Input)(),h("design:type",String)],e.prototype,"yAxisLabel",void 0),d([Object(i.Input)(),h("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),d([Object(i.Input)(),h("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"roundDomains",void 0),d([Object(i.Input)(),h("design:type",Object)],e.prototype,"maxRadius",void 0),d([Object(i.Input)(),h("design:type",Object)],e.prototype,"minRadius",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"autoScale",void 0),d([Object(i.Input)(),h("design:type",Object)],e.prototype,"schemeType",void 0),d([Object(i.Input)(),h("design:type",String)],e.prototype,"legendPosition",void 0),d([Object(i.Input)(),h("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),d([Object(i.Output)(),h("design:type",i.EventEmitter)],e.prototype,"activate",void 0),d([Object(i.Output)(),h("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),d([Object(i.ContentChild)("tooltipTemplate"),h("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),d([Object(i.HostListener)("mouseleave"),h("design:type",Function),h("design:paramtypes",[]),h("design:returntype",void 0)],e.prototype,"hideCircles",null),e=d([Object(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; trackBy:trackBy" [@animationState]="\'active\'">\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 [tooltipTemplate]="tooltipTemplate"\n (select)="onClick($event, series)"\n (activate)="onActivate($event)"\n (deactivate)="onDeactivate($event)" />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ',styles:[n("./src/common/base-chart.component.scss")],changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],e)}(a.a)},"./src/bubble-chart/bubble-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/bubble-chart/bubble-chart.component.ts"),a=n("./src/bubble-chart/bubble-series.component.ts");n.d(e,"a",function(){return s.a}),n.d(e,"c",function(){return a.a});var r=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},c=function(){function t(){}return t=r([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a],exports:[s.a,a.a]})],t)}()},"./src/bubble-chart/bubble-chart.utils.ts":function(t,e,n){"use strict";function i(t){return t instanceof Date}e.c=function(t){for(var e=!0,n=!0,o=0,s=t;o<s.length;o++){var a=s[o];i(a)||(e=!1),"number"!=typeof a&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.a=function(t,e,n){var i=[];if("time"===e)i=[o=Math.min.apply(Math,t),s=Math.max.apply(Math,t)];else if("linear"===e){t=t.map(function(t){return Number(t)});var o=Math.min.apply(Math,t),s=Math.max.apply(Math,t);n||(o=Math.min(0,o)),i=[o,s]}else i=t;return i},e.b=function(t,e,n,i){var s;return"time"===n?s=Object(o.scaleTime)().range(e).domain(t):"linear"===n?(s=Object(o.scaleLinear)().range(e).domain(t),i&&(s=s.nice())):"ordinal"===n&&(s=Object(o.scalePoint)().range([e[0],e[1]]).domain(t)),s};var o=n("d3-scale");n.n(o)},"./src/bubble-chart/bubble-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("./src/common/label.helper.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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(n,i){if(void 0!==n.y&&void 0!==n.x){var o=n.y,a=n.x,r=n.r,c=t.rScale(r||1),l=Object(s.a)(n.name),p="linear"===t.xScaleType?t.xScale(Number(a)):t.xScale(a),d="linear"===t.yScaleType?t.yScale(Number(o)):t.yScale(o),h="linear"===t.colors.scaleType?t.colors.getColor(r):t.colors.getColor(e),u=!t.activeEntries.length||t.isActive({name:e}),g=u?1:.3;return{data:{series:e,name:n.name,value:n.y,x:n.x,radius:n.r},x:a,y:o,r:r,classNames:["circle-data-"+i],value:o,label:a,cx:p,cy:d,radius:c,tooltipLabel:l,color:h,opacity:g,seriesName:e,isActive:u,transform:"translate("+p+","+d+")"}}}).filter(function(t){return void 0!==t})},t.prototype.getTooltipText=function(t){var e=void 0!==t.r,n=t.tooltipLabel&&t.tooltipLabel.length,i=t.seriesName&&t.seriesName.length,o=e?Object(s.a)(t.r):"",a=this.xAxisLabel&&""!==this.xAxisLabel?this.xAxisLabel+":":"",r=this.yAxisLabel&&""!==this.yAxisLabel?this.yAxisLabel+":":"",c=Object(s.a)(t.x),l=Object(s.a)(t.y),p=i&&n?t.seriesName+" • "+t.tooltipLabel:t.seriesName+t.tooltipLabel;return"\n "+(i||n?'<span class="tooltip-label">'+p+"</span>":"")+'\n <span class="tooltip-label">\n <label>'+a+"</label> "+c+"<br />\n <label>"+r+"</label> "+l+'\n </span>\n <span class="tooltip-val">\n '+o+"\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.prototype.trackBy=function(t,e){return e.data.series+" "+e.data.name},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"rScale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"xScaleType",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"yScaleType",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"visibleValue",void 0),a([Object(i.Input)(),r("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"xAxisLabel",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"yAxisLabel",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),r("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-bubble-series]",template:'\n <svg:g *ngFor="let circle of circles; trackBy: trackBy">\n <svg:g [attr.transform]="circle.transform">\n <svg:g ngx-charts-circle\n [@animationState]="\'active\'"\n class="circle"\n [cx]="0"\n [cy]="0"\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]="tooltipTemplate ? undefined : getTooltipText(circle)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="circle.data"\n />\n </svg:g>\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":enter",[Object(o.style)({opacity:0,transform:"scale(0)"}),Object(o.animate)(250,Object(o.style)({opacity:1,transform:"scale(1)"}))])])]})],t)}()},"./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.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("d3-selection")),s=(n.n(o),n("@angular/common")),a=(n.n(s),n("./src/utils/id.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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 s.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+Object(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.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)},t.prototype.animateToCurrentForm=function(){Object(o.select)(this.element).select(".area").transition().duration(750).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}]},r([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"path",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"startingPath",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"fill",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"opacity",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"startOpacity",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"endOpacity",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"activeLabel",void 0),r([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),r([Object(i.Input)(),c("design:type",Array)],t.prototype,"stops",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),t=r([Object(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,s.LocationStrategy])],t)}()},"./src/common/axes/axes.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("@angular/core"),o=(n.n(i),n("./src/common/axes/axis-label.component.ts")),s=n("./src/common/axes/x-axis.component.ts"),a=n("./src/common/axes/x-axis-ticks.component.ts"),r=n("./src/common/axes/y-axis.component.ts"),c=n("./src/common/axes/y-axis-ticks.component.ts"),l=n("@angular/common"),p=(n.n(l),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),d=function(){function t(){}return t=p([Object(i.NgModule)({imports:[l.CommonModule],declarations:[o.a,s.a,a.a,r.a,c.a],exports:[o.a,s.a,a.a,r.a,c.a]})],t)}()},"./src/common/axes/axis-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.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)"}},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"orient",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"label",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"offset",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"width",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"height",void 0),t=o([Object(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}),s("design:paramtypes",[i.ElementRef])],t)}()},"./src/common/axes/ticks.helper.ts":function(t,e,n){"use strict";e.a=function(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}},"./src/common/axes/x-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("./src/common/trim-label.helper.ts")),s=n("./src/common/axes/ticks.helper.ts"),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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=8*Math.min(this.maxTicksLength,this.maxAllowedLength),s=o,a=Math.floor(this.width/t.length);s>a&&e>-90;)e-=30,s=Math.cos(e*(Math.PI/180))*o;return e},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),n=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=Object(s.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)+")"},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"scale",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"orient",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"tickArguments",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"tickStroke",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"tickFormatting",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"showGridLines",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"gridLineHeight",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"width",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"dimensionsChanged",void 0),a([Object(i.ViewChild)("ticksel"),r("design:type",i.ElementRef)],t.prototype,"ticksElement",void 0),t=a([Object(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}),r("design:paramtypes",[])],t)}()},"./src/common/axes/x-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("./src/common/axes/x-axis-ticks.component.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function t(){this.showGridLines=!1,this.xOrient="bottom",this.dimensionsChanged=new i.EventEmitter,this.xAxisClassName="x axis",this.labelOffset=15,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.xAxisOffset=-50}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){"top"===this.xOrient?(this.transform="translate(0,"+this.xAxisOffset+")",this.labelOffset=65):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&&"top"===this.xOrient?(this.labelOffset=i,setTimeout(function(){e.dimensionsChanged.emit({height:n})},0)):i!==this.labelOffset&&(this.labelOffset=i,setTimeout(function(){e.dimensionsChanged.emit({height:n})},0))},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tickFormatting",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showGridLines",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showLabel",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"labelText",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"xAxisTickInterval",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"xAxisTickCount",void 0),s([Object(i.Input)(),a("design:type",String)],t.prototype,"xOrient",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"dimensionsChanged",void 0),s([Object(i.ViewChild)(o.a),a("design:type",o.a)],t.prototype,"ticksComponent",void 0),t=s([Object(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})],t)}()},"./src/common/axes/y-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("./src/common/trim-label.helper.ts")),s=n("./src/common/axes/ticks.helper.ts"),a=n("./src/common/shape.helper.ts"),r=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!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.referenceLineLength=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().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.showRefLines&&this.referenceLines&&this.setReferencelines(),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.setReferencelines=function(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(function(t){return t.value}))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(function(t){return t.value}))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Object(a.a)(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),n=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=Object(s.a)(t,e)),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)"},r([Object(i.Input)(),c("design:type",Object)],t.prototype,"scale",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"orient",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickArguments",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickValues",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickStroke",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickFormatting",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"showGridLines",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"gridLineWidth",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"height",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"referenceLines",void 0),r([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"showRefLabels",void 0),r([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"showRefLines",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"dimensionsChanged",void 0),r([Object(i.ViewChild)("ticksel"),c("design:type",i.ElementRef)],t.prototype,"ticksElement",void 0),t=r([Object(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\n <svg:path *ngIf="referenceLineLength > 1 && refMax && refMin && showRefLines"\n class="reference-area"\n [attr.d]="referenceAreaPath"\n [attr.transform]="gridLineTransform()"\n />\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 *ngIf="orient === \'left\'"\n class="gridline-path gridline-path-horizontal"\n x1="0"\n [attr.x2]="gridLineWidth" />\n <svg:line *ngIf="orient === \'right\'"\n class="gridline-path gridline-path-horizontal"\n x1="0"\n [attr.x2]="-gridLineWidth" />\n </svg:g>\n </svg:g>\n\n <svg:g *ngFor="let refLine of referenceLines">\n <svg:g *ngIf="showRefLines" [attr.transform]="transform(refLine.value)">\n <svg:line class="refline-path gridline-path-horizontal"\n x1="0"\n [attr.x2]="gridLineWidth"\n [attr.transform]="gridLineTransform()"/>\n <svg:g *ngIf="showRefLabels">\n <title>{{trimLabel(tickFormat(refLine.value))}}</title>\n <svg:text\n class="refline-label"\n [attr.dy]="dy"\n [attr.y]="-6"\n [attr.x]="gridLineWidth"\n [attr.text-anchor]="textAnchor" >\n {{refLine.name}}\n </svg:text>\n </svg:g>\n </svg:g>\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],t)}()},"./src/common/axes/y-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("./src/common/axes/y-axis-ticks.component.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function t(){this.showGridLines=!1,this.yOrient="left",this.dimensionsChanged=new i.EventEmitter,this.yAxisClassName="y axis",this.yAxisOffset=-5,this.labelOffset=15,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.labelOffset=65,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&&"right"===this.yOrient?(this.labelOffset=n+this.labelOffset,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0))},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tickFormatting",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showGridLines",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showLabel",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"labelText",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"yAxisTickInterval",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"yAxisTickCount",void 0),s([Object(i.Input)(),a("design:type",String)],t.prototype,"yOrient",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"referenceLines",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showRefLines",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showRefLabels",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"dimensionsChanged",void 0),s([Object(i.ViewChild)(o.a),a("design:type",o.a)],t.prototype,"ticksComponent",void 0),t=s([Object(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 [referenceLines]="referenceLines"\n [showRefLines]="showRefLines"\n [showRefLabels]="showRefLabels"\n [height]="dims.height"\n (dimensionsChanged)="emitTicksWidth($event)"\n />\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})],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("rxjs/Observable")),a=(n.n(s),n("rxjs/add/observable/fromEvent")),r=(n.n(a),n("rxjs/add/operator/debounceTime")),c=(n.n(r),n("./src/utils/index.ts")),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.scheme="cool",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.width=600),this.height||(this.height=400),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=s.Observable.fromEvent(window,"resize",null,null).debounceTime(200).subscribe(function(e){t.update(),t.cd&&t.cd.markForCheck()});this.resizeSubscription=e},t.prototype.cloneData=function(t){for(var e=[],n=0,i=t;n<i.length;n++){var o=i[n],s={name:o.name};if(void 0!==o.value&&(s.value=o.value),void 0!==o.series){s.series=[];for(var a=0,r=o.series;a<r.length;a++){var c=r[a],l=Object.assign({},c);s.series.push(l)}}void 0!==o.extra&&(s.extra=JSON.parse(JSON.stringify(o.extra))),e.push(s)}return e},l([Object(i.Input)(),p("design:type",Object)],t.prototype,"results",void 0),l([Object(i.Input)(),p("design:type",Array)],t.prototype,"view",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"scheme",void 0),l([Object(i.Input)(),p("design:type",String)],t.prototype,"schemeType",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"customColors",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"select",void 0),t=l([Object(i.Component)({selector:"base-chart",template:"<div></div>"}),p("design:paramtypes",[i.ElementRef,i.NgZone,i.ChangeDetectorRef,o.LocationStrategy])],t)}()},"./src/common/chart-common.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return j});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("./src/common/charts/chart.component.ts")),a=n("./src/common/legend/index.ts"),r=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/tooltip-area.component.ts"),b=n("./src/common/count/index.ts"),O=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},x=[y.a,r.a,b.a,v.a,s.a,a.b,a.c,a.d,d.a,p.a,h.a,u.a,g.a,m.a,f.a,a.a],j=function(){function t(){}return t=O([Object(i.NgModule)({providers:[o.Location,{provide:o.LocationStrategy,useClass:o.PathLocationStrategy}],imports:[o.CommonModule,c.a,l.f],declarations:x.slice(),exports:[o.CommonModule,c.a,l.f].concat(x)})],t)}()},"./src/common/charts/chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("./src/common/tooltip/index.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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"},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"view",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"showLegend",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"legendOptions",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"legendData",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"legendType",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Output)(),r("design:type",i.EventEmitter)],t.prototype,"legendLabelClick",void 0),a([Object(i.Output)(),r("design:type",i.EventEmitter)],t.prototype,"legendLabelActivate",void 0),a([Object(i.Output)(),r("design:type",i.EventEmitter)],t.prototype,"legendLabelDeactivate",void 0),t=a([Object(i.Component)({providers:[s.g],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:[Object(o.trigger)("animationState",[Object(o.transition)(":enter",[Object(o.style)({opacity:0}),Object(o.animate)("500ms 100ms",Object(o.style)({opacity:1}))])])]}),r("design:paramtypes",[i.ViewContainerRef,s.g])],t)}()},"./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("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("@angular/common")),a=(n.n(s),n("./src/common/label.helper.ts")),r=n("./src/utils/id.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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,this.barVisible=!1}return t.prototype.ngOnInit=function(){var t=this.location instanceof s.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+Object(r.a)().toString(),this.gradientFill="url("+t+"#"+this.gradientId+")"},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circles=this.getCircles(),this.circle=this.circles.find(function(t){return 0!==t.opacity})},t.prototype.getCircles=function(){var t=this,e=this.data.name;return this.data.series.map(function(n,i){var o=n.value,s=n.name,r=Object(a.a)(s);if(o){var c=void 0;c="time"===t.scaleType?t.xScale(s):"linear"===t.scaleType?t.xScale(Number(s)):t.xScale(s);var l=t.yScale("standard"===t.type?o:n.d1),p=t.yScale.range()[0]-l,d=0;s&&t.visibleValue&&s.toString()===t.visibleValue.toString()&&(d=1);var h=void 0;return h="linear"===t.colors.scaleType?"standard"===t.type?t.colors.getColor(o):t.colors.getColor(n.d1):t.colors.getColor(e),{classNames:["circle-data-"+i],value:o,label:s,data:{series:e,value:o,name:s},cx:c,cy:l,radius:5,height:p,tooltipLabel:r,color:h,opacity:d,seriesName:e,gradientStops:t.getGradientStops(h),min:n.min,max:n.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,s=t.max;return'\n <span class="tooltip-label">'+i+" • "+e+'</span>\n <span class="tooltip-val">'+n.toLocaleString()+this.getTooltipMinMaxText(o,s)+"</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.activateCircle=function(){this.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})},c([Object(i.Input)(),l("design:type",Object)],t.prototype,"data",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"type",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"xScale",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"yScale",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"colors",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"scaleType",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"visibleValue",void 0),c([Object(i.Input)(),l("design:type",Array)],t.prototype,"activeEntries",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),c([Object(i.Input)(),l("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),c([Object(i.Output)(),l("design:type",Object)],t.prototype,"select",void 0),c([Object(i.Output)(),l("design:type",Object)],t.prototype,"activate",void 0),c([Object(i.Output)(),l("design:type",Object)],t.prototype,"deactivate",void 0),t=c([Object(i.Component)({selector:"g[ngx-charts-circle-series]",template:'\n <svg:g *ngIf="circle">\n <defs>\n <svg:g ngx-charts-svg-linear-gradient\n orientation="vertical"\n [name]="gradientId"\n [stops]="circle.gradientStops"\n />\n </defs>\n <svg:rect\n *ngIf="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]="gradientFill"\n class="tooltip-bar"\n />\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 [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()"\n (deactivate)="deactivateCircle()"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'top\'"\n [tooltipType]="\'tooltip\'"\n [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(circle)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="circle.data"\n />\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":enter",[Object(o.style)({opacity:0}),Object(o.animate)(250,Object(o.style)({opacity:1}))])])]}),l("design:paramtypes",[s.LocationStrategy])],t)}()},"./src/common/circle.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.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"},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"cx",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"cy",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"r",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"fill",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"stroke",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"classNames",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"circleOpacity",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"pointerEvents",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"select",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"activate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"deactivate",void 0),o([Object(i.HostListener)("click"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onClick",null),o([Object(i.HostListener)("mouseenter"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onMouseEnter",null),o([Object(i.HostListener)("mouseleave"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=o([Object(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})],t)}()},"./src/common/color.helper.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("d3-array"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/utils/color-sets.ts")),a=function(){function t(t,e,n,i){"string"==typeof t&&(t=s.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,this.domain)}return t.prototype.generateColorScheme=function(t,e,n){"string"==typeof t&&(t=s.a.find(function(e){return e.name===t}));var a;if("quantile"===e)a=Object(o.scaleQuantile)().range(t.domain).domain(n);else if("ordinal"===e)a=Object(o.scaleOrdinal)().range(t.domain).domain(n);else if("linear"===e){var r=t.domain.slice();1===r.length&&(r.push(r[0]),this.colorDomain=r);var c=Object(i.range)(0,1,1/r.length);a=Object(o.scaleLinear)().domain(c).range(r)}return a},t.prototype.getColor=function(t){if("linear"===this.scaleType){var e=Object(o.scaleLinear)().domain(this.domain).range([0,1]);return this.scale(e(t))}var n=t.toString(),i=void 0;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(function(t){return t.name.toLowerCase()===n.toLowerCase()})),i?i.value:this.scale(t)},t.prototype.getLinearGradientStops=function(t,e){void 0===e&&(e=this.domain[0]);var n=Object(o.scaleLinear)().domain(this.domain).range([0,1]),i=Object(o.scaleBand)().domain(this.colorDomain).range([0,1]),s=this.getColor(t),a=n(e),r=this.getColor(e),c=n(t),l=1,p=a,d=[];for(d.push({color:r,offset:a,originalOffset:a,opacity:1});p<c&&l<this.colorDomain.length;){var h=this.colorDomain[l],u=i(h);if(u<=a)l++;else{if(u.toFixed(4)>=(c-i.bandwidth()).toFixed(4))break;d.push({color:h,offset:u,opacity:1}),p=u,l++}}if(d[d.length-1].offset<100&&d.push({color:s,offset:c,opacity:1}),c===a)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(var g=0,m=d;g<m.length;g++){var f=m[g];f.offset=(f.offset-a)/(c-a)*100}return d},t}()},"./src/common/count/count.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("./src/common/count/count.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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:Object(o.b)(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};this.animationReq=Object(o.a)(this.countFrom,this.countTo,this.countDecimals,this.countDuration,function(n){var i=n.value,o=n.progress,s=n.finished;t.value=e({value:i}),t.cd.markForCheck(),s||t.countChange.emit({value:i,progress:o}),s&&t.countFinish.emit({value:i,progress:o})})},s([Object(i.Input)(),a("design:type",Number)],t.prototype,"countDuration",void 0),s([Object(i.Input)(),a("design:type",String)],t.prototype,"countPrefix",void 0),s([Object(i.Input)(),a("design:type",String)],t.prototype,"countSuffix",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"valueFormatting",void 0),s([Object(i.Input)(),a("design:type",Number),a("design:paramtypes",[Number])],t.prototype,"countDecimals",null),s([Object(i.Input)(),a("design:type",Object),a("design:paramtypes",[Object])],t.prototype,"countTo",null),s([Object(i.Input)(),a("design:type",Object),a("design:paramtypes",[Object])],t.prototype,"countFrom",null),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"countChange",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"countFinish",void 0),t=s([Object(i.Component)({selector:"[ngx-charts-count-up]",template:"{{value}}"}),a("design:paramtypes",[i.ChangeDetectorRef,i.NgZone,i.ElementRef])],t)}()},"./src/common/count/count.helper.ts":function(t,e,n){"use strict";function i(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e}e.a=function(t,e,n,o,s){function a(t){var e,n=t-r;e=p?c-i(n,0,c-l,u):i(n,c,l-c,u),e=p?e<l?l:e:e>l?l:e,e=Math.round(e*h)/h;var o=n<u;if(s({value:e,progress:n,timestamp:t,finished:!o}),o)return requestAnimationFrame(function(t){return a(t)})}var r,c=Number(t),l=Number(e),p=c>l,d=Math.max(0,n),h=Math.pow(10,d),u=1e3*Number(o);return requestAnimationFrame(function(t){return r=t,a(t)})},e.b=function(t){var e=Number(t);return e%1!=0&&Math.abs(e)<=10?2:0}},"./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,s=t.width;t.height;if(s>n)for(;s/o<n;)i+=1,o=Math.ceil(e/i);return[o,i]}function o(t){return t.map(function(t){return t?t.value:0}).reduce(function(t,e){return t+e},0)}e.b=i,e.a=function(t,e,n){for(var a=Object(s.scaleBand)(),r=Object(s.scaleBand)(),c=t.width,l=t.height,p=i(t,e.length,n),d=p[0],h=p[1],u=[],g=[],m=0;m<h;m++)g.push(m);for(m=0;m<d;m++)u.push(m);a.domain(u),r.domain(g),a.rangeRound([0,c],.1),r.rangeRound([0,l],.1);for(var f=[],y=o(e),v=a.bandwidth(),b=r.bandwidth(),m=0;m<e.length;m++)f[m]={},f[m].data={name:e[m]?e[m].name:"",value:e[m]?e[m].value:void 0,extra:e[m]?e[m].extra:void 0},f[m].x=a(m%d),f[m].y=r(Math.floor(m/d)),f[m].width=v,f[m].height=b,f[m].data.percent=y>0?f[m].data.value/y:0,f[m].data.total=y;return f};var s=n("d3-scale");n.n(s)},"./src/common/grid-panel-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=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,s,a,r,c="odd";if("vertical"===t.orient){l=t.xScale(e.name);(p=Number.parseInt((l/t.xScale.step()).toString()))%2==1&&(c="even"),i=t.xScale.bandwidth()*t.xScale.paddingInner(),o=t.xScale.bandwidth()+i,s=t.dims.height,a=t.xScale(e.name)-i/2,r=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,s=t.yScale.bandwidth()+i,a=0,r=t.yScale(e.name)-i/2}return{name:e.name,class:c,height:s,width:o,x:a,y:r}})},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"orient",void 0),t=o([Object(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})],t)}()},"./src/common/grid-panel.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){}return o([Object(i.Input)(),s("design:type",Object)],t.prototype,"path",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"width",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"height",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"x",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"y",void 0),t=o([Object(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})],t)}()},"./src/common/index.ts":function(t,e,n){"use strict";var i=n("./src/common/chart-common.module.ts");n.d(e,"e",function(){return i.a});var o=n("./src/common/legend/index.ts");n.d(e,"a",function(){return o.a}),n.d(e,"m",function(){return o.b}),n.d(e,"n",function(){return o.c}),n.d(e,"o",function(){return o.d});var s=n("./src/common/tooltip/index.ts");n.d(e,"b",function(){return s.a}),n.d(e,"p",function(){return s.b}),n.d(e,"q",function(){return s.c}),n.d(e,"v",function(){return s.d}),n.d(e,"w",function(){return s.e}),n.d(e,"x",function(){return s.f}),n.d(e,"y",function(){return s.g});var a=n("./src/common/count/index.ts");n.d(e,"j",function(){return a.a}),n.d(e,"A",function(){return a.b}),n.d(e,"B",function(){return a.c});var r=n("./src/common/timeline/index.ts");n.d(e,"t",function(){return r.a});var c=n("./src/common/color.helper.ts");n.d(e,"i",function(){return c.a});var l=n("./src/common/charts/index.ts");n.d(e,"f",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/base-chart.component.ts");n.d(e,"d",function(){return d.a});var h=n("./src/common/circle.component.ts");n.d(e,"g",function(){return h.a});var u=n("./src/common/circle-series.component.ts");n.d(e,"h",function(){return u.a});var g=n("./src/common/grid-layout.helper.ts");n.d(e,"D",function(){return g.a}),n.d(e,"E",function(){return g.b});var m=n("./src/common/grid-panel.component.ts");n.d(e,"k",function(){return m.a});var f=n("./src/common/grid-panel-series.component.ts");n.d(e,"l",function(){return f.a});var y=n("./src/common/svg-linear-gradient.component.ts");n.d(e,"r",function(){return y.a});var v=n("./src/common/svg-radial-gradient.component.ts");n.d(e,"s",function(){return v.a});var b=n("./src/common/tooltip-area.component.ts");n.d(e,"u",function(){return b.a});var O=n("./src/common/tick-format.helper.ts");n.d(e,"F",function(){return O.a});var x=n("./src/common/trim-label.helper.ts");n.d(e,"G",function(){return x.a});var j=n("./src/common/view-dimensions.helper.ts");n.d(e,"z",function(){return j.a});var w=n("./src/common/label.helper.ts");n.d(e,"C",function(){return w.a})},"./src/common/label.helper.ts":function(t,e,n){"use strict";e.a=function(t){return t=t instanceof Date?t.toLocaleDateString():t.toLocaleString()}},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("./src/common/trim-label.helper.ts")),s=n("./src/common/label.helper.ts"),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.label="Total",this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.legendItems=[]}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,n){var i=Object(s.a)(e.name),a=e.value,r=a/t.total*100;return{value:a,color:t.colors.getColor(i),label:Object(o.a)(i,20),originalLabel:e.name,percentage:r}})},t.prototype.trackBy=function(t){return t.formattedLabel},a([Object(i.Input)(),r("design:type",Number)],t.prototype,"width",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"label",void 0),a([Object(i.Output)(),r("design:type",i.EventEmitter)],t.prototype,"select",void 0),a([Object(i.Output)(),r("design:type",i.EventEmitter)],t.prototype,"activate",void 0),a([Object(i.Output)(),r("design:type",i.EventEmitter)],t.prototype,"deactivate",void 0),t=a([Object(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 {{label}}\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})],t)}()},"./src/common/legend/index.ts":function(t,e,n){"use strict";var i=n("./src/common/legend/legend.component.ts");n.d(e,"b",function(){return i.a});var o=n("./src/common/legend/scale-legend.component.ts");n.d(e,"d",function(){return o.a});var s=n("./src/common/legend/legend-entry.component.ts");n.d(e,"c",function(){return s.a});var a=n("./src/common/legend/advanced-legend.component.ts");n.d(e,"a",function(){return a.a})},"./src/common/legend/legend-entry.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.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})},o([Object(i.Input)(),s("design:type",String)],t.prototype,"color",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"label",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"formattedLabel",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"isActive",void 0),o([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"select",void 0),o([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"activate",void 0),o([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"deactivate",void 0),o([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"toggle",void 0),o([Object(i.HostListener)("mouseenter"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onMouseEnter",null),o([Object(i.HostListener)("mouseleave"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=o([Object(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})],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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 r});var i=n("@angular/core"),o=(n.n(i),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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,n=0,i=this.data;n<i.length;n++)!function(n){var i=Object(o.a)(n);-1===t.findIndex(function(t){return t.label===i})&&t.push({label:n,formattedLabel:i,color:e.colors.getColor(n)})}(i[n]);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},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"title",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"height",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"width",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"activeEntries",void 0),s([Object(i.Output)(),a("design:type",i.EventEmitter)],t.prototype,"labelClick",void 0),s([Object(i.Output)(),a("design:type",i.EventEmitter)],t.prototype,"labelActivate",void 0),s([Object(i.Output)(),a("design:type",i.EventEmitter)],t.prototype,"labelDeactivate",void 0),t=s([Object(i.Component)({selector:"ngx-charts-legend",template:'\n <div [style.width.px]="width">\n <header class="legend-title">\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}),a("design:paramtypes",[i.ChangeDetectorRef,i.NgZone])],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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 r});var i=n("@angular/core"),o=(n.n(i),n("@angular/platform-browser")),s=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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(", ")},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"valueRange",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"height",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"width",void 0),t=s([Object(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}),a("design:paramtypes",[o.DomSanitizer])],t)}()},"./src/common/shape.helper.ts":function(t,e,n){"use strict";e.a=function(t,e,n,i,o,s){var a=s[0],r=s[1],c=s[2],l=s[3],p="";return p="M"+[t+o,e],p+="h"+(n-2*o),p+=r?"a"+[o,o]+" 0 0 1 "+[o,o]:"h"+o+"v"+o,p+="v"+(i-2*o),p+=l?"a"+[o,o]+" 0 0 1 "+[-o,o]:"v"+o+"h"+-o,p+="h"+(2*o-n),p+=c?"a"+[o,o]+" 0 0 1 "+[-o,-o]:"h"+-o+"v"+-o,p+="v"+(2*o-i),p+=a?"a"+[o,o]+" 0 0 1 "+[o,-o]:"v"+-o+"h"+o,p+="z"}},"./src/common/svg-linear-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.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%")},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"orientation",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"name",void 0),o([Object(i.Input)(),s("design:type",Array)],t.prototype,"stops",void 0),t=o([Object(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})],t)}()},"./src/common/svg-radial-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.endOpacity=1,this.cx=0,this.cy=0}return Object.defineProperty(t.prototype,"stops",{get:function(){return this.stopsInput||this.stopsDefault},set:function(t){this.stopsInput=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.r="30%",("color"in t||"startOpacity"in t||"endOpacity"in t)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])},o([Object(i.Input)(),s("design:type",String)],t.prototype,"color",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"name",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"startOpacity",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"endOpacity",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"cx",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"cy",void 0),o([Object(i.Input)(),s("design:type",Array),s("design:paramtypes",[Array])],t.prototype,"stops",null),t=o([Object(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})],t)}()},"./src/common/tick-format.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){return function(n){return"No Value"===n||"Other"===n?n:"date"===t&&"groupBy"===e?Object(i.timeFormat)("MM/DD/YYYY")(n):n.toString()}};var i=n("d3-time-format");n.n(i)},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-brush")),a=(n.n(s),n("d3-scale")),r=(n.n(a),n("d3-selection")),c=(n.n(r),n("./src/utils/index.ts")),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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"+Object(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=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.name)||t.push(s.name)}var a=[];if("time"===this.scaleType)a=[r=Math.min.apply(Math,t),c=Math.max.apply(Math,t)];else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)});var r=Math.min.apply(Math,t),c=Math.max.apply(Math,t);a=[r,c]}else a=t;return a},t.prototype.getXScale=function(){var t;return"time"===this.scaleType?t=Object(a.scaleTime)().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?t=Object(a.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(t=Object(a.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,n=this.view[0];this.brush=Object(s.brushX)().extent([[0,0],[n,e]]).on("brush end",function(){var e=(r.event.selection||t.xScale.range()).map(t.xScale.invert);t.onDomainChange.emit(e),t.cd.markForCheck()}),Object(r.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]]),Object(r.select)(this.element).select(".brush").call(this.brush),Object(r.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}},l([Object(i.Input)(),p("design:type",Object)],t.prototype,"view",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"state",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"results",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"scheme",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"customColors",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"legend",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"miniChart",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"autoScale",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"scaleType",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"height",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"select",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"onDomainChange",void 0),t=l([Object(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])],t)}()},"./src/common/tooltip-area.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function t(t){this.renderer=t,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new i.EventEmitter}return t.prototype.getValues=function(t){for(var e=[],n=0,i=this.results;n<i.length;n++){var o=i[n],s=o.series.find(function(e){return e.name.toString()===t.toString()}),a=o.name;if(a instanceof Date&&(a=a.toLocaleDateString()),s){var r=s.name;r instanceof Date&&(r=r.toLocaleDateString());var c=s.value;this.showPercentage&&(c=(s.d1-s.d0).toFixed(2)+"%");var l=void 0;if("linear"===this.colors.scaleType){var p=c;s.d1&&(p=s.d1),l=this.colors.getColor(p)}else l=this.colors.getColor(o.name);e.push({value:c,name:r,series:a,min:s.min,max:s.max,color:l})}}return e},t.prototype.mouseMove=function(t){var e=t.offsetX-this.dims.xOffset,n=this.findClosestPointIndex(e),i=this.xSet[n];if(this.anchorPos=this.xScale(i),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(i),this.anchorPos!==this.lastAnchorPos){var o=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[o]),this.anchorOpacity=.7,this.hover.emit({value:i}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}},t.prototype.findClosestPointIndex=function(t){for(var e=0,n=this.xSet.length-1,i=Number.MAX_VALUE,o=0;e<=n;){var s=(e+n)/2|0,a=this.xScale(this.xSet[s]),r=Math.abs(a-t);if(r<i&&(i=r,o=s),a<t)e=s+1;else{if(!(a>t)){i=0,o=s;break}n=s-1}}return o},t.prototype.showTooltip=function(){var t=new MouseEvent("mouseenter",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[t])},t.prototype.hideTooltip=function(){var t=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[t]),this.anchorOpacity=0,this.lastAnchorPos=-1},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},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"xSet",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"results",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"showPercentage",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(i.Input)(),a("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"hover",void 0),s([Object(i.ViewChild)("tooltipAnchor"),a("design:type",Object)],t.prototype,"tooltipAnchor",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-tooltip-area]",template:'\n <svg:g>\n <svg:rect\n class="tooltip-area"\n [attr.x]="0"\n y="0"\n [attr.width]="dims.width"\n [attr.height]="dims.height"\n style="opacity: 0; cursor: \'auto\';"\n (mousemove)="mouseMove($event)"\n (mouseleave)="hideTooltip()"\n />\n <xhtml:ng-template #defaultTooltipTemplate let-model="model">\n <xhtml:div class="area-tooltip-container">\n <xhtml:div\n *ngFor="let tooltipItem of model"\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 #tooltipAnchor\n [@animationState]="anchorOpacity !== 0 ? \'active\' : \'inactive\'"\n class="tooltip-anchor"\n [attr.x]="anchorPos"\n y="0"\n [attr.width]="1"\n [attr.height]="dims.height"\n [style.opacity]="anchorOpacity"\n [style.pointer-events]="\'none\'"\n ngx-tooltip\n [tooltipDisabled]="tooltipDisabled"\n [tooltipPlacement]="\'right\'"\n [tooltipType]="\'tooltip\'"\n [tooltipSpacing]="15"\n [tooltipTemplate]="tooltipTemplate ? tooltipTemplate: defaultTooltipTemplate"\n [tooltipContext]="anchorValues"\n [tooltipImmediateExit]="true"\n />\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)("inactive => active",[Object(o.style)({opacity:0}),Object(o.animate)(250,Object(o.style)({opacity:.7}))]),Object(o.transition)("active => inactive",[Object(o.style)({opacity:.7}),Object(o.animate)(250,Object(o.style)({opacity:0}))])])]}),a("design:paramtypes",[i.Renderer])],t)}()},"./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,"f",function(){return i.a});var o=n("./src/common/tooltip/tooltip.service.ts");n.d(e,"g",function(){return o.a});var s=n("./src/common/tooltip/tooltip.component.ts");n.d(e,"d",function(){return s.a});var a=n("./src/common/tooltip/tooltip.directive.ts");n.d(e,"e",function(){return a.a});var r=n("./src/common/tooltip/style.type.ts");n.d(e,"c",function(){return r.a});var c=n("./src/common/tooltip/alignment.type.ts");n.d(e,"a",function(){return c.a});var l=n("./src/common/tooltip/show.type.ts");n.d(e,"b",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);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 a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.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=0,i=Object.getOwnPropertyNames(e.inputs);n<i.length;n++){var o=i[n];t.instance[o]=e.inputs[o]}if(void 0!==e.outputs)for(var s=0,a=Object.getOwnPropertyNames(e.outputs);s<a.length;s++){var r=a[s];t.instance[r]=e.outputs[r]}}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).create(this.injector),o=this.applicationRef,s=this.getComponentRootNode(i);return this.projectComponentBindings(i,e),o.attachView(i.hostView),i.onDestroy(function(){o.detachView(i.hostView)}),i.instance.renderer.projectNodes(n,[s]),i},t=o([Object(i.Injectable)(),s("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector])],t)}()},"./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-a:"bottom"===n?t.top+t.height-e.height+a:"center"===n?t.top+t.height/2-e.height/2:void 0}function o(t,e,n){return"left"===n?t.left-a:"right"===n?t.left+t.width-e.width+a:"center"===n?t.left+t.width/2-e.width/2:void 0}n.d(e,"a",function(){return r});var s=n("./src/common/tooltip/position/placement.type.ts"),a=7,r=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 s;"top"===o&&(s=t.height/2-n.height/2+a),"bottom"===o&&(s=e.height-t.height/2-n.height/2-a),"center"===o&&(s=e.height/2-n.height/2);var r=i(t,e,o);return r+e.height>window.innerHeight&&(s+=r+e.height-window.innerHeight),s},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 s;"left"===i&&(s=t.width/2-n.width/2+a),"right"===i&&(s=e.width-t.width/2-n.width/2-a),"center"===i&&(s=e.width/2-n.width/2);var r=o(t,e,i);return r+e.width>window.innerWidth&&(s+=r+e.width-window.innerWidth),s},t.shouldFlip=function(t,e,n,s,a){var r=!1;if("right"===n&&(c=o(t,e,s))+e.width+a>window.innerWidth&&(r=!0),"left"===n&&(c=o(t,e,s))-a<0&&(r=!0),"top"===n&&t.top-e.height-a<0&&(r=!0),"bottom"===n){var c=i(t,e,s);c+e.height+a>window.innerHeight&&(r=!0)}return r},t.positionCaret=function(e,n,i,o,a){var r=0,c=0;return e===s.a.right?(c=-7,r=t.calculateVerticalCaret(i,n,o,a)):e===s.a.left?(c=n.width,r=t.calculateVerticalCaret(i,n,o,a)):e===s.a.top?(r=n.height,c=t.calculateHorizontalCaret(i,n,o,a)):e===s.a.bottom&&(r=-7,c=t.calculateHorizontalCaret(i,n,o,a)),{top:r,left:c}},t.positionContent=function(e,n,i,o,a){var r=0,c=0;return e===s.a.right?(c=i.left+i.width+o,r=t.calculateVerticalAlignment(i,n,a)):e===s.a.left?(c=i.left-n.width-o,r=t.calculateVerticalAlignment(i,n,a)):e===s.a.top?(r=i.top-n.height-o,c=t.calculateHorizontalAlignment(i,n,a)):e===s.a.bottom&&(r=i.top+i.height+o,c=t.calculateHorizontalAlignment(i,n,a)),{top:r,left:c}},t.determinePlacement=function(e,n,i,o,a){if(t.shouldFlip(i,n,e,a,o)){if(e===s.a.right)return s.a.left;if(e===s.a.left)return s.a.right;if(e===s.a.top)return s.a.bottom;if(e===s.a.bottom)return s.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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("./src/utils/throttle.ts")),s=n("./src/common/tooltip/position/index.ts"),a=(n("./src/common/tooltip/style.type.ts"),n("./src/common/tooltip/alignment.type.ts"),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),r=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-charts-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=s.b.positionContent(this.placement,n,e,this.spacing,this.alignment),o=i.top,a=i.left;this.renderer.setElementStyle(t,"top",o+"px"),this.renderer.setElementStyle(t,"left",a+"px")},t.prototype.positionCaret=function(t,e){var n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),o=s.b.positionCaret(this.placement,e,t,i,this.alignment),a=o.top,r=o.left;this.renderer.setElementStyle(n,"top",a+"px"),this.renderer.setElementStyle(n,"left",r+"px")},t.prototype.checkFlip=function(t,e){this.placement=s.b.determinePlacement(this.placement,e,t,this.spacing,this.alignment)},t.prototype.onWindowResize=function(){this.position()},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"host",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"showCaret",void 0),a([Object(i.Input)(),r("design:type",Number)],t.prototype,"type",void 0),a([Object(i.Input)(),r("design:type",Number)],t.prototype,"placement",void 0),a([Object(i.Input)(),r("design:type",Number)],t.prototype,"alignment",void 0),a([Object(i.Input)(),r("design:type",Number)],t.prototype,"spacing",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"cssClass",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"title",void 0),a([Object(i.ViewChild)("caretElm"),r("design:type",Object)],t.prototype,"caretElm",void 0),a([Object(i.HostBinding)("class"),r("design:type",String),r("design:paramtypes",[])],t.prototype,"cssClasses",null),a([Object(i.HostListener)("window:resize"),Object(o.a)(100),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"onWindowResize",null),t=a([Object(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 [ngTemplateOutletContext]="{ 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")]}),r("design:paramtypes",[i.ElementRef,i.Renderer])],t)}()},"./src/common/tooltip/tooltip.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("@angular/core"),o=(n.n(i),n("./src/common/tooltip/position/index.ts")),s=n("./src/common/tooltip/style.type.ts"),a=n("./src/common/tooltip/alignment.type.ts"),r=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,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=a.a.center,this.tooltipType=s.a.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=r.a.all,this.tooltipImmediateExit=!1,this.show=new i.EventEmitter,this.hide=new i.EventEmitter}return Object.defineProperty(t.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===r.a.all||this.tooltipShowEvent===r.a.focus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===r.a.all||this.tooltipShowEvent===r.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&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}},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(e.tooltipImmediateExit)})),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(void 0===t&&(t=!1),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}},l([Object(i.Input)(),p("design:type",String)],t.prototype,"tooltipCssClass",void 0),l([Object(i.Input)(),p("design:type",String)],t.prototype,"tooltipTitle",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"tooltipAppendToBody",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipSpacing",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"tooltipShowCaret",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipPlacement",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipAlignment",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipType",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"tooltipCloseOnClickOutside",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"tooltipCloseOnMouseLeave",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipHideTimeout",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipShowTimeout",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"tooltipTemplate",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"tooltipShowEvent",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"tooltipContext",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"tooltipImmediateExit",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"show",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"hide",void 0),l([Object(i.HostListener)("focusin"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],t.prototype,"onFocus",null),l([Object(i.HostListener)("blur"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],t.prototype,"onBlur",null),l([Object(i.HostListener)("mouseenter"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],t.prototype,"onMouseEnter",null),l([Object(i.HostListener)("mouseleave",["$event.target"]),p("design:type",Function),p("design:paramtypes",[Object]),p("design:returntype",void 0)],t.prototype,"onMouseLeave",null),l([Object(i.HostListener)("click"),p("design:type",Function),p("design:paramtypes",[]),p("design:returntype",void 0)],t.prototype,"onMouseClick",null),t=l([Object(i.Directive)({selector:"[ngx-tooltip]"}),p("design:paramtypes",[c.a,i.ViewContainerRef,i.Renderer,i.ElementRef,i.NgZone])],t)}()},"./src/common/tooltip/tooltip.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("./src/common/tooltip/tooltip.directive.ts")),a=n("./src/common/tooltip/tooltip.component.ts"),r=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,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},p=function(){function t(){}return t=l([Object(i.NgModule)({declarations:[a.a,s.a],providers:[c.a,r.a],exports:[a.a,s.a],imports:[o.CommonModule],entryComponents:[a.a]})],t)}()},"./src/common/tooltip/tooltip.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("./src/common/tooltip/injection.service.ts")),s=n("./src/common/tooltip/injection-registery.service.ts"),a=n("./src/common/tooltip/tooltip.component.ts"),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=a.a,n}return r(e,t),e=c([Object(i.Injectable)(),l("design:paramtypes",[o.a])],e)}(s.a)},"./src/common/trim-label.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){return void 0===e&&(e=16),"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}},"./src/common/view-dimensions.helper.ts":function(t,e,n){"use strict";e.a=function(t){var e=t.width,n=t.height,i=t.margins,o=t.showXAxis,s=void 0!==o&&o,a=t.showYAxis,r=void 0!==a&&a,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,O=t.columns,x=void 0===O?12:O,j=i[3],w=e,S=n-i[0]-i[2];if(y&&(x-="ordinal"===b?2:1),w=w*x/12,w=w-i[1]-i[3],s&&(S-=5,S-=l,u&&(S-=T=30)),r&&(w-=5,w-=d,j+=d,j+=10,m)){var T=30;w-=T,j+=T}return w=Math.max(0,w),S=Math.max(0,S),{width:~~w,height:~~S,xOffset:~~j}}},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("d3-force")),s=(n.n(o),n("./src/common/charts/chart.component.ts")),a=n("./src/common/base-chart.component.ts"),r=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(o.forceSimulation)().force("charge",Object(o.forceManyBody)()).force("collide",Object(o.forceCollide)(5)).force("x",Object(o.forceX)()).force("y",Object(o.forceY)()),e.forceLink=Object(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=Object(r.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)},p([Object(i.Input)(),d("design:type",Object)],e.prototype,"force",void 0),p([Object(i.Input)(),d("design:type",Object)],e.prototype,"forceLink",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"legend",void 0),p([Object(i.Input)(),d("design:type",String)],e.prototype,"legendTitle",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"nodes",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"links",void 0),p([Object(i.Input)(),d("design:type",Array)],e.prototype,"activeEntries",void 0),p([Object(i.Input)(),d("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"activate",void 0),p([Object(i.Output)(),d("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),p([Object(i.ContentChild)("linkTemplate"),d("design:type",i.TemplateRef)],e.prototype,"linkTemplate",void 0),p([Object(i.ContentChild)("nodeTemplate"),d("design:type",i.TemplateRef)],e.prototype,"nodeTemplate",void 0),p([Object(i.ContentChild)("tooltipTemplate"),d("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),p([Object(i.ViewChild)(s.a,{read:i.ElementRef}),d("design:type",i.ElementRef)],e.prototype,"chart",void 0),p([Object(i.Input)(),d("design:type",Function)],e.prototype,"groupResultsBy",void 0),p([Object(i.HostListener)("document:mousemove",["$event"]),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",void 0)],e.prototype,"onDrag",null),p([Object(i.HostListener)("document:mouseup",["$event"]),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",void 0)],e.prototype,"onDragEnd",null),e=p([Object(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 [ngTemplateOutletContext]="{ $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]="tooltipTemplate ? undefined : node.value"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="node">\n <ng-template *ngIf="nodeTemplate"\n [ngTemplateOutlet]="nodeTemplate"\n [ngTemplateOutletContext]="{ $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})],e)}(a.a)},"./src/force-directed-graph/force-directed-graph.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("./src/force-directed-graph/force-directed-graph.component.ts")),s=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return o.a});var a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=function(){function t(){}return t=a([Object(i.NgModule)({imports:[s.a],declarations:[o.a],exports:[o.a]})],t)}()},"./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("@angular/core"),o=(n.n(i),n("./src/common/label.helper.ts")),s=n("./src/common/color.helper.ts"),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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,n=Object(o.a)(t.data.name);return e=this.valueFormatting?this.valueFormatting(t.data.value):Object(o.a)(t.data.value),'\n <span class="tooltip-label">'+n+'</span>\n <span class="tooltip-val">'+e+"</span>\n "},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"backgroundArc",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"valueArc",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"cornerRadius",void 0),a([Object(i.Input)(),r("design:type",s.a)],t.prototype,"colors",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"isActive",void 0),a([Object(i.Input)(),r("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),r("design:type",Function)],t.prototype,"valueFormatting",void 0),a([Object(i.Input)(),r("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(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]="tooltipTemplate ? undefined : tooltipText(valueArc)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="valueArc.data">\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/gauge/gauge-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("d3-shape")),s=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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,s=0;s<=this.bigSegments;s++){var a=s*t,r=a*Math.PI/180,c=this.getTextAnchor(a),l=!1;if(0===s&&360===this.angleSpan&&(l=!0),!l){var p=Number.parseFloat(this.valueScale.invert(a).toString()).toLocaleString();this.tickFormatting&&(p=this.tickFormatting(p)),n.big.push({line:this.getTickPath(i,20,r),textAnchor:c,text:p,textTransform:"\n translate("+o*Math.cos(r)+", "+o*Math.sin(r)+") rotate("+-this.rotationAngle+")\n "})}if(s!==this.bigSegments)for(var d=1;d<=this.smallSegments;d++){var h=(a+d*e)*Math.PI/180;n.small.push({line:this.getTickPath(i,10,h)})}}return n},t.prototype.getTextAnchor=function(t){var e="middle";return(t=(this.startAngle+t)%360)>45&&t<=135?e="start":t>225&&t<=315&&(e="end"),e},t.prototype.getTickPath=function(t,e,n){var i=t*Math.sin(n),s=(t+e)*Math.sin(n),a=[{x:t*Math.cos(n),y:i},{x:(t+e)*Math.cos(n),y:s}];return Object(o.line)().x(function(t){return t.x}).y(function(t){return t.y})(a)},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"bigSegments",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"smallSegments",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"min",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"max",void 0),s([Object(i.Input)(),a("design:type",Number)],t.prototype,"angleSpan",void 0),s([Object(i.Input)(),a("design:type",Number)],t.prototype,"startAngle",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"radius",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"valueScale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tickFormatting",void 0),t=s([Object(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})],t)}()},"./src/gauge/gauge.component.scss":function(t,e,n){var i=n('./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),r=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(a.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 n=this.margin[3]+this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.transform="translate("+n+", "+i+")",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,s=0,a=this.results;s<a.length;s++){var r=a[s],c=this.outerRadius-o*n,l=c-i,p={backgroundArc:{endAngle:this.angleSpan*Math.PI/180,innerRadius:l,outerRadius:c,data:{value:this.max,name:r.name}},valueArc:{endAngle:Math.min(this.valueScale(r.value),this.angleSpan)*Math.PI/180,innerRadius:l,outerRadius:c,data:{value:r.value,name:r.name}}};t.push(p),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 Object(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 r.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})},l([Object(i.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"min",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"max",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"textValue",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"units",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"bigSegments",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"smallSegments",void 0),l([Object(i.Input)(),p("design:type",Array)],e.prototype,"results",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"showAxis",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"startAngle",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"angleSpan",void 0),l([Object(i.Input)(),p("design:type",Array)],e.prototype,"activeEntries",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"axisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(i.Input)(),p("design:type",Function)],e.prototype,"valueFormatting",void 0),l([Object(i.Input)(),p("design:type",Array)],e.prototype,"margin",void 0),l([Object(i.Output)(),p("design:type",i.EventEmitter)],e.prototype,"activate",void 0),l([Object(i.Output)(),p("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),l([Object(i.ContentChild)("tooltipTemplate"),p("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),l([Object(i.ViewChild)("textEl"),p("design:type",i.ElementRef)],e.prototype,"textEl",void 0),e=l([Object(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 [tooltipTemplate]="tooltipTemplate"\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})],e)}(s.a)},"./src/gauge/gauge.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return h});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/gauge/linear-gauge.component.ts"),a=n("./src/gauge/gauge.component.ts"),r=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,"c",function(){return a.a}),n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return c.a}),n.d(e,"e",function(){return s.a});var d=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},h=function(){function t(){}return t=d([Object(i.NgModule)({imports:[o.a,l.d,p.a],declarations:[s.a,a.a,r.a,c.a],exports:[s.a,a.a,r.a,c.a]})],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),r=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(a.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 n=this.margin[3]+this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.transform="translate("+n+", "+i+")",this.transformLine="translate("+(this.margin[3]+this.valueScale(this.previousValue))+", "+i+")",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 Object(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 s=i.nativeElement.getBoundingClientRect(),a=s.width,r=s.height;if(0!==a&&0!==r){var c=o,l=this.dims.width,p=Math.max(this.dims.height/2-15,0),d=Math.floor(l/(a/o)*100)/100,h=Math.floor(p/(r/o)*100)/100;(o=Math.min(h,d))!==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 r.a(this.scheme,"ordinal",[this.value],this.customColors)},l([Object(i.Input)(),p("design:type",Number)],e.prototype,"min",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"max",void 0),l([Object(i.Input)(),p("design:type",Number)],e.prototype,"value",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"units",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"previousValue",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"valueFormatting",void 0),l([Object(i.ViewChild)("valueTextEl"),p("design:type",i.ElementRef)],e.prototype,"valueTextEl",void 0),l([Object(i.ViewChild)("unitsTextEl"),p("design:type",i.ElementRef)],e.prototype,"unitsTextEl",void 0),e=l([Object(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})],e)}(s.a)},"./src/heat-map/heat-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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(n){n.series.map(function(i){var s=i.value;e.push({row:n,cell:i,x:t.xScale(n.name),y:t.yScale(i.name),width:t.xScale.bandwidth(),height:t.yScale.bandwidth(),fill:t.colors.getColor(s),data:s,label:Object(o.a)(i.name),series:n.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})},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tooltipText",void 0),s([Object(i.Input)(),a("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(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]="tooltipTemplate ? undefined : tooltipText(c)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="{series: c.series, name: c.label, value: c.data}">\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/heat-map/heat-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-selection")),a=(n.n(s),n("./src/utils/id.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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"+Object(a.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(){Object(s.select)(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()},t.prototype.animateToCurrentForm=function(){Object(s.select)(this.element).select(".cell").transition().duration(750).attr("opacity",1)},t.prototype.onClick=function(){this.select.emit(this.data)},r([Object(i.Input)(),c("design:type",Object)],t.prototype,"fill",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"x",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"y",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"width",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"height",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"label",void 0),r([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),t=r([Object(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])],t)}()},"./src/heat-map/heat-map.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("@angular/core"),o=(n.n(i),n("d3-scale")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),r=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(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.scaleType}),"linear"===this.scaleType){var e=Math.min.apply(Math,[0].concat(this.valueDomain)),n=Math.max.apply(Math,this.valueDomain);this.valueDomain=[e,n]}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=0,o=n[e].series;i<o.length;i++){var s=o[i];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=0,o=n[e].series;i<o.length;i++){var s=o[i];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("'","")).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 Object(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 Object(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 r.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()},l([Object(i.Input)(),p("design:type",Object)],e.prototype,"legend",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"legendTitle",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxis",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxis",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"showXAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"showYAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxisLabel",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisOrient",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"innerPadding",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"tooltipText",void 0),l([Object(i.ContentChild)("tooltipTemplate"),p("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(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 [xOrient]="xAxisOrient"\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 [tooltipTemplate]="tooltipTemplate"\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})],e)}(s.a)},"./src/heat-map/heat-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/heat-map/heat-map-cell.component.ts"),a=n("./src/heat-map/heat-map-cell-series.component.ts"),r=n("./src/heat-map/heat-map.component.ts");n.d(e,"b",function(){return s.a}),n.d(e,"a",function(){return a.a}),n.d(e,"c",function(){return r.a});var c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},l=function(){function t(){}return t=c([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a,r.a],exports:[s.a,a.a,r.a]})],t)}()},"./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.e}),n.d(e,"ColorHelper",function(){return o.i}),n.d(e,"ChartComponent",function(){return o.f}),n.d(e,"AreaComponent",function(){return o.c}),n.d(e,"BaseChartComponent",function(){return o.d}),n.d(e,"CircleComponent",function(){return o.g}),n.d(e,"CircleSeriesComponent",function(){return o.h}),n.d(e,"gridSize",function(){return o.E}),n.d(e,"gridLayout",function(){return o.D}),n.d(e,"GridPanelComponent",function(){return o.k}),n.d(e,"GridPanelSeriesComponent",function(){return o.l}),n.d(e,"SvgLinearGradientComponent",function(){return o.r}),n.d(e,"SvgRadialGradientComponent",function(){return o.s}),n.d(e,"TooltipArea",function(){return o.u}),n.d(e,"tickFormat",function(){return o.F}),n.d(e,"trimLabel",function(){return o.G}),n.d(e,"calculateViewDimensions",function(){return o.z}),n.d(e,"formatLabel",function(){return o.C}),n.d(e,"LegendComponent",function(){return o.m}),n.d(e,"ScaleLegendComponent",function(){return o.o}),n.d(e,"LegendEntryComponent",function(){return o.n}),n.d(e,"AdvancedLegendComponent",function(){return o.a}),n.d(e,"TooltipModule",function(){return o.x}),n.d(e,"TooltipService",function(){return o.y}),n.d(e,"TooltipContentComponent",function(){return o.v}),n.d(e,"TooltipDirective",function(){return o.w}),n.d(e,"StyleTypes",function(){return o.q}),n.d(e,"AlignmentTypes",function(){return o.b}),n.d(e,"ShowTypes",function(){return o.p}),n.d(e,"CountUpDirective",function(){return o.j}),n.d(e,"count",function(){return o.A}),n.d(e,"decimalChecker",function(){return o.B}),n.d(e,"Timeline",function(){return o.t});var s=n("./src/area-chart/index.ts");n.d(e,"AreaChartComponent",function(){return s.a}),n.d(e,"AreaChartNormalizedComponent",function(){return s.c}),n.d(e,"AreaChartStackedComponent",function(){return s.d}),n.d(e,"AreaSeriesComponent",function(){return s.e}),n.d(e,"AreaChartModule",function(){return s.b});var a=n("./src/bar-chart/index.ts");n.d(e,"BarComponent",function(){return a.b}),n.d(e,"BarHorizontalComponent",function(){return a.d}),n.d(e,"BarHorizontal2DComponent",function(){return a.c}),n.d(e,"BarHorizontalNormalizedComponent",function(){return a.e}),n.d(e,"BarHorizontalStackedComponent",function(){return a.f}),n.d(e,"BarVerticalComponent",function(){return a.h}),n.d(e,"BarVertical2DComponent",function(){return a.g}),n.d(e,"BarVerticalNormalizedComponent",function(){return a.i}),n.d(e,"BarVerticalStackedComponent",function(){return a.j}),n.d(e,"SeriesHorizontal",function(){return a.k}),n.d(e,"SeriesVerticalComponent",function(){return a.l}),n.d(e,"BarChartModule",function(){return a.a});var r=n("./src/bubble-chart/index.ts");n.d(e,"BubbleChartComponent",function(){return r.a}),n.d(e,"BubbleSeriesComponent",function(){return r.c}),n.d(e,"BubbleChartModule",function(){return r.b});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.b}),n.d(e,"HeatCellSeriesComponent",function(){return l.a}),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.c}),n.d(e,"LineChartComponent",function(){return p.a}),n.d(e,"LineSeriesComponent",function(){return p.d}),n.d(e,"LineChartModule",function(){return p.b});var d=n("./src/polar-chart/index.ts");n.d(e,"PolarChartComponent",function(){return d.a}),n.d(e,"PolarSeriesComponent",function(){return d.c}),n.d(e,"PolarChartModule",function(){return d.b});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.g}),n.d(e,"PieArcComponent",function(){return u.b}),n.d(e,"PieChartComponent",function(){return u.c}),n.d(e,"PieGridComponent",function(){return u.e}),n.d(e,"PieGridSeriesComponent",function(){return u.f}),n.d(e,"PieSeriesComponent",function(){return u.h}),n.d(e,"PieChartModule",function(){return u.d});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.c}),n.d(e,"GaugeArcComponent",function(){return m.a}),n.d(e,"GaugeAxisComponent",function(){return m.b}),n.d(e,"LinearGaugeComponent",function(){return m.e}),n.d(e,"GaugeModule",function(){return m.d})},"./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 m});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("@angular/common")),a=(n.n(s),n("d3-scale")),r=(n.n(a),n("d3-shape")),c=(n.n(r),n("./src/common/view-dimensions.helper.ts")),l=n("./src/common/color.helper.ts"),p=n("./src/common/base-chart.component.ts"),d=n("./src/utils/id.ts"),h=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.legendTitle="Legend",e.showGridLines=!0,e.curve=r.curveLinear,e.activeEntries=[],e.roundDomains=!1,e.tooltipDisabled=!1,e.showRefLines=!1,e.showRefLabels=!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 h(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(c.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 s.PathLocationStrategy?this.location.path():"";this.clipPathId="clip"+Object(d.a)().toString(),this.clipPath="url("+e+"#"+this.clipPathId+")"},e.prototype.updateTimeline=function(){this.timeline&&(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=0,o=n[e].series;i<o.length;i++){var s=o[i];t.includes(s.name)||t.push(s.name)}this.scaleType=this.getScaleType(t);var a=[];if("time"===this.scaleType){var r=Math.min.apply(Math,t),c=Math.max.apply(Math,t);a=[new Date(r),new Date(c)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return n>i?1:i>n?-1:0})}else"linear"===this.scaleType?(t=t.map(function(t){return Number(t)}),a=[r=Math.min.apply(Math,t),c=Math.max.apply(Math,t)],this.xSet=t.slice().sort()):(a=t,this.xSet=t);return a},e.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,o=n[e].series;i<o.length;i++){var s=o[i];t.indexOf(s.value)<0&&t.push(s.value),void 0!==s.min&&(this.hasRange=!0,t.indexOf(s.min)<0&&t.push(s.min)),void 0!==s.max&&(this.hasRange=!0,t.indexOf(s.max)<0&&t.push(s.max))}var a=Math.min.apply(Math,t),r=Math.max.apply(Math,t);return this.autoScale||(a=Math.min(0,a)),[a,r]},e.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},e.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(a.scaleTime)().range([0,e]).domain(t):"linear"===this.scaleType?(n=Object(a.scaleLinear)().range([0,e]).domain(t),this.roundDomains&&(n=n.nice())):"ordinal"===this.scaleType&&(n=Object(a.scalePoint)().range([0,e]).padding(.1).domain(t)),n},e.prototype.getYScale=function(t,e){var n=Object(a.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var s=o[i];this.isDate(s)||(e=!1),"number"!=typeof s&&(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 l.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.deactivateAll(),this.activeEntries.findIndex(function(e){return e.name===t.name&&e.value===t.value})>-1||(this.activeEntries=[t],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=[]},u([Object(i.Input)(),g("design:type",Object)],e.prototype,"legend",void 0),u([Object(i.Input)(),g("design:type",String)],e.prototype,"legendTitle",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"xAxis",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"yAxis",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"showXAxisLabel",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"showYAxisLabel",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"xAxisLabel",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"yAxisLabel",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"autoScale",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"timeline",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"gradient",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showGridLines",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"curve",void 0),u([Object(i.Input)(),g("design:type",Array)],e.prototype,"activeEntries",void 0),u([Object(i.Input)(),g("design:type",String)],e.prototype,"schemeType",void 0),u([Object(i.Input)(),g("design:type",Number)],e.prototype,"rangeFillOpacity",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"xAxisTickFormatting",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"yAxisTickFormatting",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"roundDomains",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showRefLines",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"referenceLines",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showRefLabels",void 0),u([Object(i.Output)(),g("design:type",i.EventEmitter)],e.prototype,"activate",void 0),u([Object(i.Output)(),g("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),u([Object(i.ContentChild)("tooltipTemplate"),g("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),u([Object(i.ContentChild)("seriesTooltipTemplate"),g("design:type",i.TemplateRef)],e.prototype,"seriesTooltipTemplate",void 0),u([Object(i.HostListener)("mouseleave"),g("design:type",Function),g("design:paramtypes",[]),g("design:returntype",void 0)],e.prototype,"hideCircles",null),e=u([Object(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 [referenceLines]="referenceLines"\n [showRefLines]="showRefLines"\n [showRefLabels]="showRefLabels"\n (dimensionsChanged)="updateYAxisWidth($event)">\n </svg:g>\n <svg:g [attr.clip-path]="clipPath">\n <svg:g *ngFor="let series of results; trackBy:trackBy" [@animationState]="\'active\'">\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 [hasRange]="hasRange"\n />\n </svg:g>\n\n <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n <svg:g ngx-charts-tooltip-area\n [dims]="dims"\n [xSet]="xSet"\n [xScale]="xScale"\n [yScale]="yScale"\n [results]="results"\n [colors]="colors"\n [tooltipDisabled]="tooltipDisabled"\n [tooltipTemplate]="seriesTooltipTemplate"\n (hover)="updateHoveredVertical($event)"\n />\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 [tooltipTemplate]="tooltipTemplate"\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>\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 [hasRange]="hasRange"\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:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],e)}(p.a)},"./src/line-chart/line-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/line-chart/line.component.ts"),a=n("./src/line-chart/line-chart.component.ts"),r=n("./src/line-chart/line-series.component.ts");n.d(e,"c",function(){return s.a}),n.d(e,"a",function(){return a.a}),n.d(e,"d",function(){return r.a});var c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},l=function(){function t(){}return t=c([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a,r.a],exports:[s.a,a.a,r.a]})],t)}()},"./src/line-chart/line-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/utils/id.ts")),r=n("./src/utils/sort.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";var n=this.getAreaGenerator();if(this.areaPath=n(t)||"",this.hasRange){var i=this.getRangeGenerator();this.outerPath=i(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;var o=this.data.series.map(function(t){return t.value}),s=Math.max.apply(Math,o);s===Math.min.apply(Math,o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)},t.prototype.getLineGenerator=function(){var t=this;return Object(s.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 Object(s.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;return Object(s.area)().x(function(e){var n=e.name;return t.xScale(n)}).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?Object(r.c)(t,"name"):"time"===this.scaleType?Object(r.b)(t,"name"):Object(r.a)(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"+Object(a.a)().toString(),this.gradientUrl="url("+t+"#"+this.gradientId+")";var e=this.data.series.map(function(t){return t.value}),n=Math.max.apply(Math,e),i=Math.min.apply(Math,e);this.gradientStops=this.colors.getLinearGradientStops(n,i),this.areaGradientStops=this.colors.getLinearGradientStops(n)}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})},c([Object(i.Input)(),l("design:type",Object)],t.prototype,"data",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"xScale",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"yScale",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"colors",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"scaleType",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"curve",void 0),c([Object(i.Input)(),l("design:type",Array)],t.prototype,"activeEntries",void 0),c([Object(i.Input)(),l("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"hasRange",void 0),t=c([Object(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]="stroke"\n [class.active]="isActive(data)"\n [class.inactive]="isInactive(data)"\n />\n <svg:g ngx-charts-area\n *ngIf="hasRange"\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])],t)}()},"./src/line-chart/line.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-selection")),a=(n.n(s),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.element=t,this.fill="none",this.select=new i.EventEmitter,this.initialized=!1}return t.prototype.ngOnChanges=function(t){this.initialized?this.animateToCurrentForm():(this.initialized=!0,this.initialPath=this.path)},t.prototype.animateToCurrentForm=function(){Object(s.select)(this.element.nativeElement).select(".line").transition().duration(750).attr("d",this.path)},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"path",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"stroke",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),r("design:type",String)],t.prototype,"fill",void 0),a([Object(i.Output)(),r("design:type",Object)],t.prototype,"select",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-line]",template:'\n <svg:path\n [@animationState]="\'active\'"\n class="line"\n [attr.d]="initialPath"\n [attr.fill]="fill"\n [attr.stroke]="stroke"\n stroke-width="1.5px"\n />\n ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":enter",[Object(o.style)({strokeDasharray:2e3,strokeDashoffset:2e3}),Object(o.animate)(1e3,Object(o.style)({strokeDashoffset:0}))])])]}),r("design:paramtypes",[i.ElementRef])],t)}()},"./src/ngx-charts.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i=n("./src/polyfills.ts"),o=(n.n(i),n("@angular/core")),s=(n.n(o),n("./src/common/chart-common.module.ts")),a=n("./src/area-chart/area-chart.module.ts"),r=n("./src/bar-chart/bar-chart.module.ts"),c=n("./src/bubble-chart/bubble-chart.module.ts"),l=n("./src/force-directed-graph/force-directed-graph.module.ts"),p=n("./src/heat-map/heat-map.module.ts"),d=n("./src/line-chart/line-chart.module.ts"),h=n("./src/polar-chart/polar-chart.module.ts"),u=n("./src/number-card/number-card.module.ts"),g=n("./src/pie-chart/pie-chart.module.ts"),m=n("./src/tree-map/tree-map.module.ts"),f=n("./src/gauge/gauge.module.ts"),y=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},v=function(){function t(){}return t=y([Object(o.NgModule)({exports:[s.a,a.b,r.a,c.b,l.b,p.d,d.b,h.b,u.d,g.d,m.d,f.d]})],t)}()},"./src/number-card/card-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("./src/utils/color-utils.ts")),s=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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],n="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map(function(i,s){var a=i.data.name;a=a&&"Date"===a.constructor.name?a.toLocaleDateString():a?a.toLocaleString():a,i.data.name=a;var r=i.data.value,c=a?t.colors.getColor(a):t.emptyColor,l=t.cardColor||c||"#000";return{x:i.x,y:i.y,width:i.width-n,height:i.height-e,color:l,bandColor:t.bandColor||c,textColor:t.textColor||Object(o.a)(l),label:a,data:i.data,tooltipText:a+": "+r}})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.onClick=function(t){this.select.emit(t)},s([Object(i.Input)(),a("design:type",Array)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Array)],t.prototype,"slots",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"innerPadding",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"cardColor",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"bandColor",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"emptyColor",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"textColor",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"valueFormatting",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"labelFormatting",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(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}),a("design:paramtypes",[i.NgZone])],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("./src/common/trim-label.helper.ts")),s=n("./src/common/shape.helper.ts"),a=n("./src/common/count/index.ts"),r=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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,n=t.valueFormatting||function(t){return t.value.toLocaleString()},i=t.labelFormatting||function(t){return Object(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=i(a),t.transformBand="translate(0 , "+(t.cardHeight-t.bandHeight)+")";var r=e?n(a):"";t.value=t.paddedValue(r),t.setPadding(),t.bandPath=Object(s.a)(0,0,t.cardWidth,t.bandHeight,3,[!1,!1,!0,!0]),setTimeout(function(){t.scaleText(),t.value=r,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,n=Object(a.c)(e),i=this.valueFormatting||function(t){return t.value.toLocaleString()};this.animationReq=Object(a.b)(0,e,n,1,function(n){var o=n.value,s=n.finished;t.zone.run(function(){o=s?e:o,t.value=i({label:t.label,data:t.data,value:o}),s||(t.value=t.paddedValue(t.value)),t.cd.markForCheck()})}),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,s=t.cardWidth-2*o,a=t.cardHeight/3,r=Math.min(s/n,a/i);t.textFontSize=Math.floor(t.textFontSize*r),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})},r([Object(i.Input)(),c("design:type",Object)],t.prototype,"color",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"bandColor",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"textColor",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"x",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"y",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"width",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"height",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"label",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),c("design:type",Number)],t.prototype,"medianSize",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"valueFormatting",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"labelFormatting",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),r([Object(i.ViewChild)("textEl"),c("design:type",i.ElementRef)],t.prototype,"textEl",void 0),t=r([Object(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])],t)}()},"./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("@angular/core"),o=(n.n(i),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),r=n("./src/common/grid-layout.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(s.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=Object(r.b)(this.dims,this.results.length,150),n=e[0]*e[1],i=this.results.slice();i.length<n;)i.push({value:null});this.data=Object(r.a)(this.dims,i,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 a.a(this.scheme,"ordinal",this.domain,this.customColors)},l([Object(i.Input)(),p("design:type",String)],e.prototype,"cardColor",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"bandColor",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"emptyColor",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"innerPadding",void 0),l([Object(i.Input)(),p("design:type",String)],e.prototype,"textColor",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"valueFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"labelFormatting",void 0),e=l([Object(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})],e)}(o.a)},"./src/number-card/number-card.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/number-card/card.component.ts"),a=n("./src/number-card/card-series.component.ts"),r=n("./src/number-card/number-card.component.ts");n.d(e,"a",function(){return s.a}),n.d(e,"b",function(){return a.a}),n.d(e,"c",function(){return r.a});var c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},l=function(){function t(){}return t=c([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a,r.a],exports:[s.a,a.a,r.a]})],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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.label="Total",e.activate=new i.EventEmitter,e.deactivate=new i.EventEmitter,e.margin=[20,20,20,20],e}return r(e,t),e.prototype.update=function(){t.prototype.update.call(this),this.dims=Object(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,n=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+" , "+n+")"},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.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})},c([Object(i.Input)(),l("design:type",Boolean)],e.prototype,"gradient",void 0),c([Object(i.Input)(),l("design:type",Array)],e.prototype,"activeEntries",void 0),c([Object(i.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"tooltipText",void 0),c([Object(i.Input)(),l("design:type",String)],e.prototype,"label",void 0),c([Object(i.Output)(),l("design:type",i.EventEmitter)],e.prototype,"activate",void 0),c([Object(i.Output)(),l("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),c([Object(i.ContentChild)("tooltipTemplate"),l("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=c([Object(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 [tooltipTemplate]="tooltipTemplate"\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 [label]="label"\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})],e)}(a.a)},"./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.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.d(e,"f",function(){return i.f}),n.d(e,"g",function(){return i.g}),n.d(e,"h",function(){return i.h});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("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-interpolate")),a=(n.n(s),n("d3-selection")),r=(n.n(a),n("d3-shape")),c=(n.n(r),n("./src/utils/id.ts")),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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"+Object(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),Object(r.arc)().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)},t.prototype.loadAnimation=function(){var t=Object(a.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 n=Object.assign({},t);n.endAngle=n.startAngle;var i=Object(s.interpolate)(n,n);return this._current=i(0),function(t){return e(i(t))}}).transition().duration(750).attrTween("d",function(t){this._current=this._current||t;var n=Object(s.interpolate)(this._current,t);return this._current=n(0),function(t){return e(n(t))}})},t.prototype.updateAnimation=function(){var t=Object(a.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().duration(750).attrTween("d",function(t){this._current=this._current||t;var n=Object(s.interpolate)(this._current,t);return this._current=n(0),function(t){return e(n(t))}})},t.prototype.onClick=function(){this.select.emit(this.data)},l([Object(i.Input)(),p("design:type",Object)],t.prototype,"fill",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"startAngle",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"endAngle",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"innerRadius",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"outerRadius",void 0),l([Object(i.Input)(),p("design:type",Number)],t.prototype,"cornerRadius",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"value",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"max",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"data",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"explodeSlices",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"gradient",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"animate",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"pointerEvents",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"isActive",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"select",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"activate",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"deactivate",void 0),t=l([Object(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])],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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 r(e,t),e.prototype.update=function(){var e=this;t.prototype.update.call(this),this.labels&&(this.margin=[30,80,30,80]),this.dims=Object(o.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend});var n=this.margin[3]+this.dims.width/2,i=this.margin[0]+this.dims.height/2;this.translation="translate("+n+", "+i+")",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 s.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})},c([Object(i.Input)(),l("design:type",Object)],e.prototype,"labels",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"legend",void 0),c([Object(i.Input)(),l("design:type",String)],e.prototype,"legendTitle",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"explodeSlices",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"doughnut",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"arcWidth",void 0),c([Object(i.Input)(),l("design:type",Boolean)],e.prototype,"gradient",void 0),c([Object(i.Input)(),l("design:type",Array)],e.prototype,"activeEntries",void 0),c([Object(i.Input)(),l("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"labelFormatting",void 0),c([Object(i.Input)(),l("design:type",Object)],e.prototype,"tooltipText",void 0),c([Object(i.Output)(),l("design:type",Object)],e.prototype,"select",void 0),c([Object(i.Output)(),l("design:type",i.EventEmitter)],e.prototype,"activate",void 0),c([Object(i.Output)(),l("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),c([Object(i.ContentChild)("tooltipTemplate"),l("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=c([Object(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 [tooltipTemplate]="tooltipTemplate"\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})],e)}(a.a)},"./src/pie-chart/pie-chart.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/pie-chart/advanced-pie-chart.component.ts"),a=n("./src/pie-chart/pie-label.component.ts"),r=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,"a",function(){return s.a}),n.d(e,"g",function(){return a.a}),n.d(e,"b",function(){return r.a}),n.d(e,"c",function(){return c.a}),n.d(e,"e",function(){return l.a}),n.d(e,"f",function(){return p.a}),n.d(e,"h",function(){return d.a});var h=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},u=function(){function t(){}return t=h([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a,r.a,c.a,l.a,p.a,d.a],exports:[s.a,a.a,r.a,c.a,l.a,p.a,d.a]})],t)}()},"./src/pie-chart/pie-grid-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("@angular/core"),o=(n.n(i),n("d3-shape")),s=(n.n(o),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=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=Object(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 s=t.colors(i);return{data:e.data.data,class:"arc arc"+n,fill:s,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))},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"innerRadius",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"outerRadius",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(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}),a("design:paramtypes",[i.ElementRef])],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("d3-array")),s=(n.n(o),n("d3-format")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),r=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(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(a.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.data=Object(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">'+Object(l.a)(Object(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(n){var i=n.data.name,a=Object(d.a)(i),r=n.data.value,c=Object(o.min)([n.width-10,n.height-20])/2-5,p=.9*c,h=0;return{transform:"translate("+(n.x+(n.width-10)/2)+", "+(n.y+(n.height-20)/2)+")",colors:function(){return 1===(h+=1)?"rgba(100,100,100,0.3)":t.colorScale.getColor(a)},innerRadius:p,outerRadius:c,name:i,label:Object(l.a)(a),total:r,value:r,percent:Object(s.format)(".1%")(n.data.percent),data:[n,{data:{other:!0,value:e-r,name:n.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 r.a(this.scheme,"ordinal",this.domain,this.customColors)},u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(i.Input)(),g("design:type",Function)],e.prototype,"tooltipText",void 0),u([Object(i.ContentChild)("tooltipTemplate"),g("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=u([Object(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]="tooltipTemplate ? undefined : tooltipText({data: series})"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="series.data[0].data"\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})],e)}(c.a)},"./src/pie-chart/pie-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/common/trim-label.helper.ts")),a=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},r=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=s.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){Object(o.arc)().innerRadius(1.5*this.radius).outerRadius(1.5*this.radius);var t=this.radius;this.explodeSlices&&(t=this.radius*this.value/this.max);var e=Object(o.arc)().innerRadius(t).outerRadius(t).centroid(this.data),n=this.data.pos[1]/e[1];0!==this.data.pos[1]&&0!==e[1]||(n=1);var i=[n*e[0],n*e[1]];this.line="M"+e+"L"+i+"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},a([Object(i.Input)(),r("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"radius",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"label",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"color",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"max",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"value",void 0),a([Object(i.Input)(),r("design:type",Object)],t.prototype,"explodeSlices",void 0),t=a([Object(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}),r("design:paramtypes",[])],t)}()},"./src/pie-chart/pie-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("d3-array")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/common/label.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(s.pie)().value(function(t){return t.value}).sort(null)(this.series);this.max=Object(o.max)(t,function(t){return t.value}),this.data=this.calculateLabelPositions(t),this.tooltipText=this.tooltipText||this.defaultTooltipText},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},t.prototype.outerArc=function(){return Object(s.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],s=i+1;s<n.length;s++){var a=n[s];if(a.pos[0]*o.pos[0]>0){var r=10-Math.abs(a.pos[1]-o.pos[1]);r>0&&(a.pos[1]+=Math.sign(a.pos[0])*r)}}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 Object(a.a)(t.data.name)},t.prototype.defaultTooltipText=function(t){return'\n <span class="tooltip-label">'+this.label(t)+'</span>\n <span class="tooltip-val">'+Object(a.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})},r([Object(i.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"series",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"dims",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"innerRadius",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"outerRadius",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"explodeSlices",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"showLabels",void 0),r([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),r([Object(i.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),r([Object(i.Input)(),c("design:type",Object)],t.prototype,"labelFormatting",void 0),r([Object(i.Input)(),c("design:type",Function)],t.prototype,"tooltipText",void 0),r([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),r([Object(i.Input)(),c("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),r([Object(i.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),t=r([Object(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]="tooltipTemplate ? undefined : tooltipText(arc)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="arc.data">\n </svg:g>\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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 f});var i=n("@angular/core"),o=(n.n(i),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("d3-shape")),r=(n.n(a),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/types.ts"),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=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},u=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},g=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=2*Math.PI,f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.legendTitle="Legend",e.showGridLines=!0,e.curve=a.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 d(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=Object(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});var t=~~(this.dims.width/2),e=~~(this.dims.height/2),n=this.outerRadius=Math.min(e/1.5,t/1.5),i=Math.max(0,e-n);this.yAxisDims=h({},this.dims,{width:t}),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.transformYAxis="translate(0, "+i+")",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,m),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 Object(p.a)(t)?t.toLocaleDateString():t.toLocaleString()};var n=this.outerRadius;this.thetaTicks=this.xDomain.map(function(i){var o=e.xScale(i),s=1.1*n*(o>Math.PI?-1:1),a=t(i),r=[n*Math.sin(o),-n*Math.cos(o)];return{innerRadius:0,outerRadius:n,startAngle:o,endAngle:o,value:n,label:a,startPos:r,pos:[s,1.1*r[1]]}});for(var i=0;i<this.thetaTicks.length-1;i++)for(var o=this.thetaTicks[i],s=i+1;s<this.thetaTicks.length;s++){var a=this.thetaTicks[s];if(a.pos[0]*o.pos[0]>0){var r=10-Math.abs(a.pos[1]-o.pos[1]);r>0&&(a.pos[1]+=Math.sign(a.pos[0])*r)}}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=0,o=n[e].series;i<o.length;i++){var s=o[i];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)return[e=Math.min.apply(Math,t),n=Math.max.apply(Math,t)];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=0,o=n[e].series;i<o.length;i++){var s=o[i];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 Object(s.scaleTime)().range([0,e]).domain(t);case"linear":var n=Object(s.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?n.nice():n;default:return Object(s.scalePoint)().range([0,e-m/t.length]).padding(0).domain(t)}},e.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?n.nice():n},e.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,o=t;i<o.length;i++){var s=o[i];Object(p.a)(s)||(e=!1),Object(p.b)(s)||(n=!1)}return e?"time":n?"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 c.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.prototype.trackBy=function(t,e){return e.name},u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"legend",void 0),u([Object(i.Input)(),g("design:type",String)],e.prototype,"legendTitle",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"xAxis",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"yAxis",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showXAxisLabel",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showYAxisLabel",void 0),u([Object(i.Input)(),g("design:type",String)],e.prototype,"xAxisLabel",void 0),u([Object(i.Input)(),g("design:type",String)],e.prototype,"yAxisLabel",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"autoScale",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showGridLines",void 0),u([Object(i.Input)(),g("design:type",Object)],e.prototype,"curve",void 0),u([Object(i.Input)(),g("design:type",Array)],e.prototype,"activeEntries",void 0),u([Object(i.Input)(),g("design:type",String)],e.prototype,"schemeType",void 0),u([Object(i.Input)(),g("design:type",Number)],e.prototype,"rangeFillOpacity",void 0),u([Object(i.Input)(),g("design:type",Function)],e.prototype,"xAxisTickFormatting",void 0),u([Object(i.Input)(),g("design:type",Function)],e.prototype,"yAxisTickFormatting",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"roundDomains",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"showSeriesOnHover",void 0),u([Object(i.Input)(),g("design:type",Boolean)],e.prototype,"gradient",void 0),u([Object(i.Output)(),g("design:type",i.EventEmitter)],e.prototype,"activate",void 0),u([Object(i.Output)(),g("design:type",i.EventEmitter)],e.prototype,"deactivate",void 0),u([Object(i.ContentChild)("tooltipTemplate"),g("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=u([Object(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:trackBy" [@animationState]="\'active\'">\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 [tooltipTemplate]="tooltipTemplate"\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,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],e)}(l.a)},"./src/polar-chart/polar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/polar-chart/polar-chart.component.ts"),a=n("./src/polar-chart/polar-series.component.ts"),r=n("./src/pie-chart/index.ts"),c=n("./src/line-chart/index.ts");n.d(e,"a",function(){return s.a}),n.d(e,"c",function(){return a.a});var l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},p=function(){function t(){}return t=l([Object(i.NgModule)({imports:[o.a,r.d,c.b],declarations:[s.a,a.a],exports:[s.a,a.a]})],t)}()},"./src/polar-chart/polar-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/utils/id.ts")),r=n("./src/utils/sort.ts"),c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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,s=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(o?s:i),this.path=e(n)||"",this.circles=n.map(function(e){var n=t.getAngle(e),s=t.getRadius(e),a=e.value,r=t.colors.getColor(o?Math.abs(a):i);return{data:{series:i,value:a,name:e.name},cx:s*Math.sin(n),cy:-s*Math.cos(n),value:a,color:r,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 Object(s.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?Object(r.c)(t,"name"):"time"===this.scaleType?Object(r.b)(t,"name"):Object(r.a)(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"+Object(a.a)().toString(),this.gradientUrl="url("+t+"#"+this.gradientId+")","linear"===this.colors.scaleType){var e=this.data.series.map(function(t){return t.value}),n=Math.max.apply(Math,e),i=Math.min.apply(Math,e);this.gradientStops=this.colors.getLinearGradientStops(n,i)}else this.gradientStops=void 0}},c([Object(i.Input)(),l("design:type",Object)],t.prototype,"name",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"data",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"xScale",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"yScale",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"colors",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"scaleType",void 0),c([Object(i.Input)(),l("design:type",Object)],t.prototype,"curve",void 0),c([Object(i.Input)(),l("design:type",Array)],t.prototype,"activeEntries",void 0),c([Object(i.Input)(),l("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),c([Object(i.Input)(),l("design:type",Function)],t.prototype,"tooltipText",void 0),c([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"gradient",void 0),c([Object(i.Input)(),l("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=c([Object(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]="tooltipTemplate ? undefined : tooltipText(circle)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="circle.data">\n </svg:g>\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush}),l("design:paramtypes",[o.LocationStrategy])],t)}()},"./src/polyfills.ts":function(t,e){void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)},"./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 a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.gradient=!1,this.tooltipDisabled=!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{data:{name:i,value:e.value},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},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"valueFormatting",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"labelFormatting",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"gradient",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),o([Object(i.Input)(),s("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"select",void 0),t=o([Object(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]="tooltipTemplate ? undefined : getTooltipText(c)"\n [tooltipTemplate]="tooltipTemplate"\n [tooltipContext]="c.data">\n </svg:g>\n ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/tree-map/tree-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("@angular/core"),o=(n.n(i),n("@angular/common")),s=(n.n(o),n("d3-selection")),a=(n.n(s),n("./src/utils/color-utils.ts")),r=n("./src/common/trim-label.helper.ts"),c=n("./src/utils/id.ts"),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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 Object(r.a)(t.label,55)},e={data:this.data,label:this.label,value:this.value};this.formattedLabel=t(e);var n=this.location instanceof o.PathLocationStrategy?this.location.path():"";this.gradientId="grad"+Object(c.a)().toString(),this.gradientUrl="url("+n+"#"+this.gradientId+")",this.gradientStops=this.getGradientStops()},t.prototype.update=function(){this.initialized?this.animateToCurrentForm():(this.loadAnimation(),this.initialized=!0)},t.prototype.loadAnimation=function(){Object(s.select)(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()},t.prototype.getTextColor=function(){return Object(a.a)(this.fill)},t.prototype.animateToCurrentForm=function(){Object(s.select)(this.element).select(".cell").transition().duration(750).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}]},l([Object(i.Input)(),p("design:type",Object)],t.prototype,"data",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"fill",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"x",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"y",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"width",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"height",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"label",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"value",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"valueType",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"valueFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],t.prototype,"labelFormatting",void 0),l([Object(i.Input)(),p("design:type",Boolean)],t.prototype,"gradient",void 0),l([Object(i.Output)(),p("design:type",Object)],t.prototype,"select",void 0),t=l([Object(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])],t)}()},"./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!./node_modules/sass-loader/lib/loader.js?{"sourceMap":true}!./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("@angular/core"),o=(n.n(i),n("d3-hierarchy")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),r=n("./src/common/color.helper.ts"),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},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=Object(a.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=Object(o.treemap)().size([this.dims.width,this.dims.height]);var e={name:"root",value:0,isRoot:!0},n=Object(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(n),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 r.a(this.scheme,"ordinal",this.domain,this.customColors)},l([Object(i.Input)(),p("design:type",Object)],e.prototype,"results",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"valueFormatting",void 0),l([Object(i.Input)(),p("design:type",Object)],e.prototype,"labelFormatting",void 0),l([Object(i.Input)(),p("design:type",Boolean)],e.prototype,"gradient",void 0),l([Object(i.Output)(),p("design:type",Object)],e.prototype,"select",void 0),l([Object(i.ContentChild)("tooltipTemplate"),p("design:type",i.TemplateRef)],e.prototype,"tooltipTemplate",void 0),e=l([Object(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 [tooltipTemplate]="tooltipTemplate"\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})],e)}(s.a)},"./src/tree-map/tree-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return l});var i=n("@angular/core"),o=(n.n(i),n("./src/common/chart-common.module.ts")),s=n("./src/tree-map/tree-map-cell.component.ts"),a=n("./src/tree-map/tree-map-cell-series.component.ts"),r=n("./src/tree-map/tree-map.component.ts");n.d(e,"a",function(){return s.a}),n.d(e,"b",function(){return a.a}),n.d(e,"c",function(){return r.a});var c=this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a},l=function(){function t(){}return t=c([Object(i.NgModule)({imports:[o.a],declarations:[s.a,a.a,r.a],exports:[s.a,a.a,r.a]})],t)}()},"./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,e){var n=t.r,i=t.g,o=t.b,s=e<0?0:255,a=e<0?-1*e:e;return n=Math.round((s-n)*a)+n,i=Math.round((s-i)*a)+i,o=Math.round((s-o)*a)+o,"rgb("+n+", "+i+", "+o+")"}e.a=function(t){var e=o.rgb(t),n=e.r,s=e.g,a=e.b;return 0===e.opacity?e.toString():i(e,(299*n+587*s+114*a)/1e3>=128?-.8:.8)};var o=n("d3-color");n.n(o)},"./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});n("./src/utils/color-sets.ts"),n("./src/utils/sort.ts"),n("./src/utils/throttle.ts"),n("./src/utils/color-utils.ts");var o=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";e.c=function(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]})},e.a=function(t,e,n,i){return void 0===n&&(n="asc"),t.sort(function(t,o){var s=t[e],a=o[e],r=i.indexOf(s),c=i.indexOf(a);return"asc"===n?r-c:c-r})},e.b=function(t,e,n){return void 0===n&&(n="asc"),t.sort(function(t,i){var o=t[e].getTime(),s=i[e].getTime();return"asc"===n?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}},"./src/utils/throttle.ts":function(t,e,n){"use strict";function i(t,e,n){function i(){c=!1===n.leading?0:+new Date,r=null,a=t.apply(o,s)}n=n||{};var o,s,a,r=null,c=0;return function(){var l=+new Date;c||!1!==n.leading||(c=l);var p=e-(l-c);return o=this,s=arguments,p<=0?(clearTimeout(r),r=null,c=l,a=t.apply(o,s)):r||!1===n.trailing||(r=setTimeout(i,p)),a}}e.a=function(t,e){return function(n,o,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,o,{configurable:!0,enumerable:s.enumerable,value:i(s.value,t,e)}),this[o]}}}}},"./src/utils/types.ts":function(t,e,n){"use strict";e.a=function(t){return"[object Date]"===toString.call(t)},e.b=function(t){return"number"==typeof t}},"./src/utils/visibility-observer.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),this&&this.__decorate||function(t,e,n,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}),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.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()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})},o([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"visible",void 0),t}()},"@angular/animations":function(e,n){e.exports=t},"@angular/common":function(t,n){t.exports=e},"@angular/core":function(t,e){t.exports=n},"@angular/platform-browser":function(t,e){t.exports=i},"d3-array":function(t,e){t.exports=o},"d3-brush":function(t,e){t.exports=s},"d3-color":function(t,e){t.exports=a},"d3-force":function(t,e){t.exports=r},"d3-format":function(t,e){t.exports=c},"d3-hierarchy":function(t,e){t.exports=l},"d3-interpolate":function(t,e){t.exports=p},"d3-scale":function(t,e){t.exports=d},"d3-selection":function(t,e){t.exports=h},"d3-shape":function(t,e){t.exports=u},"d3-time-format":function(t,e){t.exports=g},"rxjs/Observable":function(t,e){t.exports=m},"rxjs/add/observable/fromEvent":function(t,e){t.exports=f},"rxjs/add/operator/debounceTime":function(t,e){t.exports=y}})});