1(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9298],{82933:(tr,he,O)=>{"use strict";O.d(he,{x:()=>o});var R=O(5e3),U=O(49306);let o=(()=>{class it{constructor(ht){this._onboardingWalkthroughsService=ht}hideTabs(){var ht,Nt;const At=document.getElementById("myTabBar"),L=document.getElementById("home-page-days-header");this._onboardingWalkthroughsService.changeOnboardingFlagsChecked(!0),At&&"none"!==(null===(ht=At.style)||void 0===ht?void 0:ht.display)&&(At.style.display="none"),L&&"none"!==(null===(Nt=L.style)||void 0===Nt?void 0:Nt.display)&&(L.style.display="none")}showTabs(){var ht,Nt;const At=document.getElementById("myTabBar"),L=document.getElementById("home-page-days-header");At&&"flex"!==(null===(ht=null==At?void 0:At.style)||void 0===ht?void 0:ht.display)&&(At.style.display="flex"),L&&"flex"!==(null===(Nt=null==L?void 0:L.style)||void 0===Nt?void 0:Nt.display)&&(L.style.display="flex")}}return it.\u0275fac=function(ht){return new(ht||it)(R.LFG(U.G))},it.\u0275prov=R.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})()},29298:(tr,he,O)=>{"use strict";O.r(he),O.d(he,{TrackPageModule:()=>Je});var R=O(69808),U=O(90603),o=O(5e3),it=O(61135),H=O(56526),ht=O(68332);const Nt=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]];function L(p,w){return"rgba("+p.concat(w).join(",")+")"}function er(p,w){return Math.floor(Math.random()*(w-p+1))+p}function rr(p){return{backgroundColor:p.map(w=>L(w,.6)),borderColor:p.map(()=>
1"#fff"),pointBackgroundColor:p.map(w=>L(w,1)),pointBorderColor:p.map(()=>"#fff"),pointHoverBackgroundColor:p.map(w=>L(w,1)),pointHoverBorderColor:p.map(w=>L(w,1))}}function Fr(){return[er(0,255),er(0,255),er(0,255)]}function Lr(p){return Nt[p]||Fr()}function Re(p){const w=new Array(p);for(let d=0;d<p;d++)w[d]=Nt[d]||Fr();return w}let tn=(()=>{class p{constructor(){this.pColorschemesOptions={},this.colorschemesOptions=new it.X({})}setColorschemesOptions(d){this.pColorschemesOptions=d,this.colorschemesOptions.next(d)}getColorschemesOptions(){return this.pColorschemesOptions}}return p.\u0275fac=function(d){return new(d||p)},p.\u0275prov=(0,o.Yz7)({factory:function(){return new p},token:p,providedIn:"root"}),p})();const G={Default:0,Update:1,Refresh:2};G[G.Default]="Default",G[G.Update]="Update",G[G.Refresh]="Refresh";let Nr=(()=>{class p{constructor(d,m){this.element=d,this.themeService=m,this.options={},this.chartClick=new o.vpe,this.chartHover=new o.vpe,this.old={dataExists:!1,dataLength:0,datasetsExists:!1,datasetsLength:0,datasetsDataObjects:[],datasetsDataLengths:[],colorsExists:!1,colors:[],labelsExist:!1,labels:[],legendExists:!1,legend:{}},this.subs=[]}static registerPlugin(d){ht.pluginService.register(d)}static unregisterPlugin(d){ht.pluginService.unregister(d)}ngOnInit(){this.ctx=this.element.nativeElement.getContext("2d"),this.refresh(),this.subs.push(this.themeService.colorschemesOptions.subscribe(d=>this.themeChanged(d)))}themeChanged(d){this.refresh()}ngDoCheck(){if(!this.chart)return;let d=G.Default;const m=C=>{d=C>d?C:d};switch(!!this.data!==this.old.dataExists&&(this.propagateDataToDatasets(this.data),this.old.dataExists=!!this.data,m(G.Update)),this.data&&this.data.length!==this.old.dataLength&&(this.old.dataLength=this.data&&this.data.length||0,m(G.Update)),!!this.datasets!==this.old.datasetsExists&&(this.old.datasetsExists=!!this.datasets,m(G.Update)),this.datasets&&this.datasets.length!==this.old.datasetsLength&&(this.old.datasetsLength=this.datasets&&this.datasets.length||0,m(G.Update)),this.datasets&&this.datasets.filter((C,M)=>C.data!==this.old.datasetsDataObjects[M]).length&&(this.old.datasetsDataObjects=this.datasets.map(C=>C.data),m(G.Update)),this.datasets&&this.datasets.filter((C,M)=>C.data.length!==this.old.datasetsDataLengths[M]).length&&(this.old.datasetsDataLengths=this.datasets.map(C=>C.data.length),m(G.Update)),!!this.colors!==this.old.colorsExists&&(this.old.colorsExists=!!this.colors,this.updateColors(),m(G.Update)),this.colors&&this.colors.filter((C,M)=>!this.colorsEqual(C,this.old.colors[M])).length&&(this.old.colors=this.colors.map(C=>this.copyColor(C)),this.updateColors(),m(G.Update)),!!this.labels!==this.old.labelsExist&&(this.old.labelsExist=!!this.labels,m(G.Update)),this.labels&&this.labels.filter((C,M)=>!this.labelsEqual(C,this.old.labels[M])).length&&(this.old.labels=this.labels.map(C=>this.copyLabel(C)),m(G.Update)),!!this.options.legend!==this.old.legendExists&&(this.old.legendExists=!!this.options.legend,m(G.Refresh)),this.options.legend&&this.options.legend.position!==this.old.legend.position&&(this.old.legend.position=this.options.legend.position,m(G.Refresh)),d){case G.Default:break;case G.Update:this.update();break;case G.Refresh:this.refresh()}}copyLabel(d){return Array.isArray(d)?[...d]:d}labelsEqual(d,m){return Array.isArray(d)===Array.isArray(m)&&(Array.isArray(d)||d===m)&&(!Array.isArray(d)||d.length===m.length)&&(!Array.isArray(d)||0===d.filter((C,M)=>C!==m[M]).length)}copyColor(d){return{backgroundColor:d.backgroundColor,borderWidth:d.borderWidth,borderColor:d.borderColor,borderCapStyle:d.borderCapStyle,borderDash:d.borderDash,borderDashOffset:d.borderDashOffset,borderJoinStyle:d.borderJoinStyle,pointBorderColor:d.pointBorderColor,pointBackgroun
1dColor:d.pointBackgroundColor,pointBorderWidth:d.pointBorderWidth,pointRadius:d.pointRadius,pointHoverRadius:d.pointHoverRadius,pointHitRadius:d.pointHitRadius,pointHoverBackgroundColor:d.pointHoverBackgroundColor,pointHoverBorderColor:d.pointHoverBorderColor,pointHoverBorderWidth:d.pointHoverBorderWidth,pointStyle:d.pointStyle,hoverBackgroundColor:d.hoverBackgroundColor,hoverBorderColor:d.hoverBorderColor,hoverBorderWidth:d.hoverBorderWidth}}colorsEqual(d,m){return!d==!m&&(!d||d.backgroundColor===m.backgroundColor&&d.borderWidth===m.borderWidth&&d.borderColor===m.borderColor&&d.borderCapStyle===m.borderCapStyle&&d.borderDash===m.borderDash&&d.borderDashOffset===m.borderDashOffset&&d.borderJoinStyle===m.borderJoinStyle&&d.pointBorderColor===m.pointBorderColor&&d.pointBackgroundColor===m.pointBackgroundColor&&d.pointBorderWidth===m.pointBorderWidth&&d.pointRadius===m.pointRadius&&d.pointHoverRadius===m.pointHoverRadius&&d.pointHitRadius===m.pointHitRadius&&d.pointHoverBackgroundColor===m.pointHoverBackgroundColor&&d.pointHoverBorderColor===m.pointHoverBorderColor&&d.pointHoverBorderWidth===m.pointHoverBorderWidth&&d.pointStyle===m.pointStyle&&d.hoverBackgroundColor===m.hoverBackgroundColor&&d.hoverBorderColor===m.hoverBorderColor&&d.hoverBorderWidth===m.hoverBorderWidth)}updateColors(){this.datasets.forEach((d,m)=>{this.colors&&this.colors[m]?Object.assign(d,this.colors[m]):Object.assign(d,function At(p,w,d){if("pie"===p||"doughnut"===p)return rr(Re(d));if("polarArea"===p)return function Xi(p){return{backgroundColor:p.map(w=>L(w,.6)),borderColor:p.map(w=>L(w,1)),hoverBackgroundColor:p.map(w=>L(w,.8)),hoverBorderColor:p.map(w=>L(w,1))}}(Re(d));if("line"===p||"radar"===p)return function $i(p){return{backgroundColor:L(p,.4),borderColor:L(p,1),pointBackgroun
1dColor:L(p,1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:L(p,.8)}}(Lr(w));if("bar"===p||"horizontalBar"===p)return function Ki(p){return{backgroundColor:L(p,.6),borderColor:L(p,1),hoverBackgroundColor:L(p,.8),hoverBorderColor:L(p,1)}}(Lr(w));if("bubble"===p||"scatter"===p)return rr(Re(d));throw new Error("getColors - Unsupported chart type: "+p)}(this.chartType,m,d.data.length),Object.assign({},d))})}ngOnChanges(d){let m=G.Default;const C=M=>{m=M>m?M:m};switch(d.hasOwnProperty("data")&&d.data.currentValue&&(this.propagateDataToDatasets(d.data.currentValue),C(G.Update)),d.hasOwnProperty("datasets")&&d.datasets.currentValue&&(this.propagateDatasetsToData(d.datasets.currentValue),C(G.Update)),d.hasOwnProperty("labels")&&(this.chart&&(this.chart.data.labels=d.labels.currentValue),C(G.Update)),d.hasOwnProperty("legend")&&(this.chart&&(this.chart.config.options.legend.display=d.legend.currentValue,this.chart.generateLegend()),C(G.Update)),d.hasOwnProperty("options")&&C(G.Refresh),m){case G.Update:this.update();break;case G.Refresh:case G.Default:this.refresh()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(d=>d.unsubscribe())}update(d){if(this.chart)return this.chart.update(d)}hideDataset(d,m){this.chart.getDatasetMeta(d).hidden=m,this.chart.update()}isDatasetHidden(d){return this.chart.getDatasetMeta(d).hidden}toBase64Image(){return this.chart.toBase64Image()}getChartConfiguration(){const d=this.getDatasets(),m=Object.assign({},this.options);!1===this.legend&&(m.legend={display:!1}),m.hover=m.hover||{},m.hover.onHover||(m.hover.onHover=(M,A)=>{A&&!A.length||this.chartHover.emit({event:M,active:A})}),m.onClick||(m.onClick=(M,A)=>{this.chartClick.emit({event:M,active:A})});const C=this.smartMerge(m,this.themeService.getColorschemesOptions());return{type:this.chartType,data:{labels:this.labels||[],datasets:d},plugins:this.plugins,options:C}}getChartBuilder(d){const m=this.getChartConfiguration();return new ht.Chart(d,m)}smartMerge(d,m,C=0){if(0===C&&(d=(0,H.Z)(d)),Object.keys(m).forEach(A=>{if(Array.isArray(m[A])){const st=d[A];st&&st.forEach(D=>{this.smartMerge(D,m[A][0],C+1)})}else"object"==typeof m[A]?(A in d||(d[A]={}),this.smartMerge(d[A],m[A],C+1)):d[A]=m[A]}),0===C)return d}isMultiLineLabel(d){return Array.isArray(d)}joinLabel(d){return d?this.isMultiLineLabel(d)?d.join(" "):d:null}propagateDatasetsToData(d){this.data=this.datasets.map(m=>m.data),this.chart&&(this.chart.data.datasets=d),this.updateColors()}propagateDataToDatasets(d){this.isMultiDataSet(d)?this.datasets&&d.length===this.datasets.length?this.datasets.forEach((m,C)=>{m.data=d[C]}):(this.datasets=d.map((m,C)=>({data:m,label:this.joinLabel(this.labels[C])||`Label ${C}`})),this.chart&&(this.chart.data.datasets=this.datasets)):this.datasets?(this.datasets[0]||(this.datasets[0]={}),this.datasets[0].data=d,this.datasets.splice(1)):(this.datasets=[{data:d}],this.chart&&(this.chart.data.datasets=this.datasets)),this.updateColors()}isMultiDataSet(d){return Array.isArray(d[0])}getDatasets(){if(!this.datasets&&!this.data)throw new Error(`ng-charts configuration error, data or datasets field are required to render chart ${this.chartType}`);return this.datasets?(this.propagateDatasetsToData(this.datasets),this.datasets):this.data?(this.propagateDataToDatasets(this.data),this.datasets):void 0}refresh(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.ctx&&(this.chart=this.getChartBuilder(this.ctx))}}return p.\u0275fac=function(d){return new(d||p)(o.Y36(o.SBq),o.Y36(tn))},p.\u0275dir=o.lG2({type:p,selectors:[["canvas","baseChart",""]],inputs:{options:"options",data:"data",datasets:"datasets",labels:"labels",chartType:"chartType",colors:"colors",legend:"legend",plugins:"plugins"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[o.TTD]}),p})(),Er=(()=>{class p{}return p.\u0275fac=function(d){return new(d||p)},p.\u0275mod=o.oAB({type:p}),p.\u0275inj=o.cJS({imports:[[]]}),p})();var Wr=O(95998),Br=O(35503),Te=O(83691),et=O(97582),ge=O(15439),ft=O(89931),q=O(25720),Q=O(26997),ir=O(84878),Yt=O(11991
1),nr=O(89985),Rr=O(82933),Ur=O(57719),Zr=O(60006),ar=O(63426);function zr(p,w){if(1&p&&(o.TgZ(0,"div",7),o._uU(1),o.ALo(2,"number"),o.TgZ(3,"small"),o._uU(4),o.qZA()()),2&p){const d=o.oxw(2);o.xp6(1),o.hij(" ",o.xi3(2,2,d.value,"1.0-2"),""),o.xp6(3),o.Oqu(d.unit)}}function or(p,w){if(1&p&&(o.TgZ(0,"div",7),o._uU(1),o.ALo(2,"number"),o.TgZ(3,"small"),o._uU(4),o.qZA(),o._uU(5),o.ALo(6,"number"),o.TgZ(7,"small"),o._uU(8,"lb"),o.qZA()()),2&p){const d=o.oxw(2);o.xp6(1),o.hij(" ",o.xi3(2,3,d.weightStoneLbs1,"1.0-2")," "),o.xp6(3),o.hij("",d.WeightUnit.Stone,","),o.xp6(1),o.hij(" ",o.xi3(6,6,d.weightStoneLbs2,"1.0-2"),"")}}function Hr(p,w){if(1&p&&(o.ynx(0),o.YNc(1,zr,5,5,"div",6),o.YNc(2,or,9,9,"div",6),o.BQk()),2&p){const d=o.oxw();o.xp6(1),o.Q6J("ngIf",d.unit!==d.WeightUnit.Stone),o.xp6(1),o.Q6J("ngIf",d.unit===d.WeightUnit.Stone)}}function sr(p,w){if(1&p&&(o.TgZ(0,"div",8),o._uU(1," __"),o.TgZ(2,"small"),o._uU(3),o.qZA()()),2&p){const d=o.oxw();o.xp6(3),o.Oqu(d.unit)}}function qr(p,w){if(1&p&&(o.TgZ(0,"div",9),o._uU(1),o.qZA()),2&p){const d=o.oxw();o.xp6(1),o.hij(" ",d.description," ")}}function Gr(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(d),o.oxw().onUpdateGoalClick()}),o._uU(1," Update Goal "),o.qZA()}}let Bt=(()=>{class p{constructor(){this.single=!1,this.updateGoalClick=new o.vpe,this.WeightUnit=Q.Cp}get weightStoneLbs1(){if(this.unit===Q.Cp.Stone)return(0,Yt.eH)(this.value).split(" ")[0]}get weightStoneLbs2(){if(this.unit===Q.Cp.Stone)return(0,Yt.eH)(this.value).split(" ")[2]}onUpdateGoalClick(){this.updateGoalClick.emit()}}return p.\u0275fac=function(d){return new(d||p)},p.\u0275cmp=o.Xpm({type:p,selectors:[["app-track"]],inputs:{single:"single",text:"text",description:"description",value:"value",unit:"unit"},outputs:{updateGoalClick:"updateGoalClick"},decls:9,vars:9,consts:[[1,"track"],[1,"track__param"],[4,"ngIf"],["class","track__placeholder",4,"ngIf"],["class","track__status",4,"ngIf"],["class","button button_outline button_medium button_green-text",3,"click",4,"ngIf"],["class","track__value",4,"ngIf"],[1,"track__value"],[1,"track__placeholder"],[1,"track__status"],[1,"button","button_outline","button_medium","button_green-text",3,"click"]],template:function(d,m){1&d&&(o.TgZ(0,"section",0)(1,"div")(2,"div",1),o._uU(3),o.ALo(4,"uppercase"),o.qZA(),o.YNc(5,Hr,3,2,"ng-container",2),o.YNc(6,sr,4,1,"div",3),o.YNc(7,qr,2,1,"div",4),o.qZA(),o.YNc(8,Gr,2,0,"button",5),o.qZA()),2&d&&(o.ekj("track_single",m.single),o.xp6(3),o.Oqu(o.lcZ(4,7,m.text)),o.xp6(2),o.Q6J("ngIf",m.value),o.xp6(1),o.Q6J("ngIf",!m.value),o.xp6(1),o.Q6J("ngIf",!m.single),o.xp6(1),o.Q6J("ngIf",m.single))},directives:[R.O5],pipes:[R.gd,R.JJ],styles:['[_ngcontent-%COMP%]:root{--color-white: #fff;--color-black: #000;--color-dark: #262626;--color-light-green: #c8eee8;--color-lighter-green: #1dbbac;--color-green: #48a190;--color-mid-green: #509a8c;--color-dark-green: #367e70;--color-darkest-green: #24534a;--color-orange: #ff6820;--color-creame: #f9d6b4;--color-warning: #e67451;--color-danger: #cc273d;--color-lighter-red: #fce8e9;--color-gray-100: #f5f7f8;--color-gray-200: #ebeff4;--color-gray-300: #dee2e6;--color-gray-400: #ced4da;--color-gray-500: #a5a5a5;--color-gray-600: #676767;--color-gray-700: #484848;--color-gray-800: #343a40;--color-gray-900: #212529;--ion-font-family: "Source Sans Pro", sans-serif;--max-content-width: 1290px;--ion-grid-column-padding-xs: 8px;--ion-grid-column-padding: 8px;--ion-offset: 16px;--ion-color-primary: #367e70;--ion-color-primary-rgb: 56, 128, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #48a190;--ion-color-primary-tint: #40c3af;--ion-color-secondary: var(--color-gray-100);--ion-color-secondary-rgb: 61, 194, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: var(--color-gray-100);--ion-color-secondary-tint: var(--color-gray-100);--ion-color-tertiary: var(--color-dark-green);--ion-color-tertiary-rgb: 82, 96, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #4854e0;--ion-color-tertiary-tint: #6370ff;--ion-color-success: var(--color-green);--ion-color-success-rgb: 45, 211, 111;--ion-color-success-contrast: #ffffff;--ion-color-success-contrast-rgb: 255, 255, 255;--ion-color-success-shade: #28ba62;--ion-color-success-tint: #42d77d;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #eb445a;--ion-color-danger-rgb: 235, 68, 90;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;
1--ion-color-danger-shade: #cf3c4f;--ion-color-danger-tint: #ed576b;--ion-color-dark: #123a34;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #ffffff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e;--ion-color-medium: #92949c;--ion-color-medium-rgb: 146, 148, 156;--ion-color-medium-contrast: #ffffff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #808289;--ion-color-medium-tint: #9d9fa6;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-padding: 16px}body.dark[_ngcontent-%COMP%]{--ion-color-primary: #428cff;--ion-color-primary-rgb: 66, 140, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #3a7be0;--ion-color-primary-tint: #5598ff;--ion-color-secondary: #50c8ff;--ion-color-secondary-rgb: 80, 200, 255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #46b0e0;--ion-color-secondary-tint: #62ceff;--ion-color-tertiary: #6a64ff;--ion-color-tertiary-rgb: 106, 100, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #5d58e0;--ion-color-tertiary-tint: #7974ff;--ion-color-success: #2fdf75;--ion-color-success-rgb: 47, 223, 117;--ion-color-success-contrast: #000000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #29c467;--ion-color-success-tint: #44e283;--ion-color-warning: #ffd534;--ion-color-warning-rgb: 255, 213, 52;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0bb2e;--ion-color-warning-tint: #ffd948;--ion-color-danger: #ff4961;--ion-color-danger-rgb: 255, 73, 97;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #e04055;--ion-color-danger-tint: #ff5b71;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #ffffff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e}.ios[_ngcontent-%COMP%] body.dark[_ngcontent-%COMP%]{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-color-step-50: #0d0d0d;--ion-color-step-100: #1a1a1a;--ion-color-step-150: #262626;--ion-color-step-200: #333333;--ion-color-step-250: #404040;--ion-color-step-300: #4d4d4d;--ion-color-step-350: #595959;--ion-color-step-400: #666666;--ion-color-step-450: #737373;--ion-color-step-500: #808080;--ion-color-step-550: #8c8c8c;--ion-color-step-600: #999999;--ion-color-step-650: #a6a6a6;--ion-color-step-700: #b3b3b3;--ion-color-step-750: #bfbfbf;--ion-color-step-800: #cccccc;--ion-color-step-850: #d9d9d9;--ion-color-step-900: #e6e6e6;--ion-color-step-950: #f2f2f2;--ion-toolbar-background: #0d0d0d;--ion-item-background: #000000}.md[_ngcontent-%COMP%] body.dark[_ngcontent-%COMP%]{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-border-color: #222222;--ion-color-step-50: #1e1e1e;--ion-color-step-100: #2a2a2a;--ion-color-step-150: #363636;--ion-color-step-200: #414141;--ion-color-step-250: #4d4d4d;--ion-color-step-300: #595959;--ion-color-step-350: #656565;--ion-color-step-400: #717171;--ion-color-step-450: #7d7d7d;--ion-color-step-500: #898989;--ion-color-step-550: #949494;--ion-color-step-600: #a0a0a0;--ion-color-step-650: #acacac;--ion-color-step-700: #b8b8b8;--ion-color-step-750: #c4c4c4;--ion-color-step-800: #d0d0d0;--ion-color-step-850: #dbdbdb;--ion-color-step-900: #e7e7e7;--ion-color-step-950: #f3f3f3;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-item-background: #1e1e1e}.track[_ngcontent-%COMP%]{position:relative;height:100%;text-align:center;background:#fff;background:var(--color-white);border-radius:15px;padding:16px}.track_single[_ngcontent-%COMP%]{text-align:left}.track_single[_ngcontent-%COMP%] .track__status[_ngcontent-%COMP%]{font-size:14px}.track__param[_ngcontent-%COMP%]{font-size:12px;font-weight:600;line-height:1.6em;letter-spacing:1.5px;text-transform:uppercase;color:#676767;color:var(--color-gray-600)}.track__value[_ngcontent-%COMP%]{font-size:42px;line-height:50px;letter-spacing:-.5px;color:#262626;color:var(--color-dark);margin:13px 0 12px}.track__value[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:13px;line-height:1.6em;letter-spacing:.4px;color:#676767;color:var(--color-gray-600)}.track__placeholder[_ngcontent-%COMP%]{font-size:42px;line-height:50px;letter-spacing:-.5px;color:#c3c3c3;margin:13px 0 12px}.track__placeholder[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:13px;line-height:1.6em;letter-spacing:.4px;color:#676767;color:var(--color-gray-600)}.track__status[_ngcontent-%COMP%]{font-size:13px}@media only screen and (max-width: 991px){.track[_ngcontent-%COMP%] .button_medium[_ng
1content-%COMP%]{margin-right:0;font-size:14px}}@media only screen and (min-width: 1024px){.track[_ngcontent-%COMP%]{padding:28px}}']}),p})();function Se(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"ion-item",1),o.NdJ("click",function(){const M=o.CHM(d).$implicit;return o.oxw().onClick(M.value)}),o._uU(1),o.qZA()}if(2&p){const d=w.$implicit;o.ekj("item-lines-none",w.last),o.xp6(1),o.Oqu(d.text)}}let lr=(()=>{class p{constructor(d){this.popoverCtrl=d}onClick(d){this.popoverCtrl.dismiss(d)}}return p.\u0275fac=function(d){return new(d||p)(o.Y36(U.Dh))},p.\u0275cmp=o.Xpm({type:p,selectors:[["app-popover"]],decls:2,vars:1,consts:[[3,"item-lines-none","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(d,m){1&d&&(o.TgZ(0,"ion-list"),o.YNc(1,Se,2,3,"ion-item",0),o.qZA()),2&d&&(o.xp6(1),o.Q6J("ngForOf",m.options))},directives:[U.q_,R.sg,U.Ie],styles:[""]}),p})(),ur=(()=>{class p{constructor(d){this.popoverCtrl=d,this.optionClick=new o.vpe}open(d){return(0,et.mG)(this,void 0,void 0,function*(){const m=yield this.popoverCtrl.create({component:lr,componentProps:{options:this.options},event:d});yield m.present();const C=yield m.onDidDismiss();C.data&&this.optionClick.emit(C.data)})}}return p.\u0275fac=function(d){return new(d||p)(o.Y36(U.Dh))},p.\u0275cmp=o.Xpm({type:p,selectors:[["app-dropdown"]],inputs:{options:"options"},outputs:{optionClick:"optionClick"},decls:2,vars:0,consts:[["type","button",1,"button","button_icon",3,"click"],["src","assets/images/icons/options.svg","alt",""]],template:function(d,m){1&d&&(o.TgZ(0,"button",0),o.NdJ("click",function(M){return m.open(M)}),o._UZ(1,"img",1),o.qZA())},styles:[""]}),p})();var Mt=O(58442),Pe=O(82282),dr=O(86114),Z=O(85960),Dt=O(64662),ve=O(32420),X=O(52382),_t=O(77579),Vr=O(58147),Jr=O(9145),tt=(()=>{return(p=tt||(tt={})).Weight="Weight",p.Waist="Waist",tt;var p})();let pe=(()=>{class p{constructor(d){this.connectSvc=d}updateWeightGoal(d){return this.connectSvc.update("tracker/goals",d,!0)}updateWaistGoal(d){return this.connectSvc.update("tracker/goals",d,!0)}}return p.\u0275fac=function(d){return new(d||p)(o.LFG(Jr.F))},p.\u0275prov=o.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();var cr=O(26907),Et=O(21267),hr=O(78086),ne=O(30538),P=O(25730);function Ae(p,w){if(1&p&&(o.TgZ(0,"ion-select-option",20),o._uU(1),o.qZA()),2&p){const d=w.$implicit;o.Q6J("value",d),o.xp6(1),o.Oqu(d)}}function Yr(p,w){1&p&&(o.TgZ(0,"div",23),o._uU(1," Unit is required "),o.qZA())}function jr(p,w){if(1&p&&(o.TgZ(0,"div",21),o.YNc(1,Yr,2,0,"div",22),o.qZA()),2&p){const d=o.oxw(2);o.xp6(1),o.Q6J("ngIf",null==d.weightControls.unitControl?null:d.weightControls.unitControl.hasError("required"))}}function fr(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a valid number. "),o.qZA())}function Qr(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a whole number. "),o.qZA())}function $r(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a number greater than 0. "),o.qZA())}function Kr(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a value. "),o.qZA())}function Xr(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a value. "),o.qZA())}function ti(p,w){if(1&p&&(o.TgZ(0,"div"),o.YNc(1,fr,2,0,"div",10),o.YNc(2,Qr,2,0,"div",10),o.YNc(3,$r,2,0,"div",10),o.YNc(4,Kr,2,0,"div",10),o.YNc(5,Xr,2,0,"div",10),o.qZA()),2&p){const d=o.oxw(3);o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightControl||null==d.weightControls.weightControl.errors?null:d.weightControls.weightControl.errors.valid),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightControl||null==d.weightControls.weightControl.errors?null:d.weightControls.weightControl.errors.decimal),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightControl||null==d.weightControls.weightControl.errors?null:d.weightControls.weightControl.errors.min),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightControl||null==d.weightControls.weightControl.errors?null:d.weightControls.weightControl.errors.required),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightString||null==d.weightControls.weightString.errors?null:d.weightControls.weightString.errors.required)}}function ei(p,w){if(1&p&&(o.TgZ(0,"ion-col",24)(1,"ion-item")(2,"ion-label",14),o._uU(3),o.qZA(),o._UZ(4,"ion-input",25),o.qZA(),o.YNc(5,ti,6,5,"div",19),o.qZA()),2&p){const d=o.oxw(2);o.xp6(1),o.ekj("input-error",d.weightControlErrors.weightControlError),o.xp6(2),o.Oqu(d.weightControls.unitControl.value===d.WeightUnit.Stone?"Stone":"Weight"),o.xp6(2),o.Q6J("ngIf",(null==d.weightControls||null==d.weightControls.weightControl?null:d.weightControls.weightControl.touched)||(null==d.weightControls||null==d.weightControls.weightControl?null:d.weightControls.weightControl.dirty))}}function ri(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a valid number. "),o.qZA())}function g(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a whole number. "),o.qZA())}function ii(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a number greater than 0. "),o.qZA())}function ni(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a value. "),o.qZA())}function ai(p,w){if(1&p&&(o.TgZ(0,"div"),o.YNc(1,ri,2,0,"div",10),o.YNc(2,g,2,0,"div",10),o.YNc(3,ii,2,0,"div",10),o.YNc(4,ni,2,0,"div",10),o.qZA()),2&p){const d=o.oxw(3);o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightStoneControl||null==d.weightControls.weightStoneControl.errors?null:d.weightControls.weightStoneControl.errors.valid),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightStoneControl||null==d.weightControls.weightStoneControl.errors?null:d.weightControls.weightStoneControl.errors.decimal),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightStoneControl||null==d.weightControls.weightStoneControl.errors?null:d.weightControls.weightStoneControl.errors.min),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightStoneControl||null==d.weightControls.weightStoneControl.errors?null:d.weightControls.weightStoneControl.errors.required)}}function oi(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a valid number. "),o.qZA())}function si(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a whole number. "),o.qZA())}function li(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a number greater than 0. "),o.qZA())}function Ue(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a value. "),o.qZA())}function Rt(p,w){if(1&p&&(o.TgZ(0,"div"),o.YNc(1,oi,2,0,"div",10),o.YNc(2,si,2,0,"div",10),o.YNc(3,li,2,0,"div",10),o.YNc(4,Ue,2,0,"div",10),o.qZA()),2&p){const d=o.oxw(3);o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightLbsControl||null==d.weightControls.weightLbsControl.errors?null:d.weightControls.weightLbsControl.errors.valid),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightLbsControl||null==d.weightControls.weightLbsControl.errors?null:d.weightControls.weightLbsControl.errors.decimal),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightLbsControl||null==d.weightControls.weightLbsControl.errors?null:d.weightControls.weightLbsControl.errors.min),o.xp6(1),o.Q6J("ngIf",null==d.weightControls||null==d.weightControls.weightLbsControl||null==d.weightControls.weightLbsControl.errors?null:d.weightControls.weightLbsControl.errors.required)}}function Ze(p,w){if(1&p&&(o.ynx(0),o.TgZ(1,"ion-col",24)(2,"ion-item")(3,"ion-label",14),o._uU(4," Stone "),o.qZA(),o._UZ(5,"ion-input",27),o.qZA(),o.YNc(6,ai,5,4,"div",19),o.qZA(),o.TgZ(7,"ion-col",24)(8,"ion-item")(9,"ion-label",14),o._uU(10,"Lbs"),o.qZA(),o._UZ(11,"ion-input",28),o.qZA(),o.YNc(12,Rt,5,4,"div",19),o.qZA(),o.BQk()),2&p){const d=o.oxw(2);o.xp6(2),o.ekj("input-error",d.weightControlErrors.weightControlError),o.xp6(4),o.Q6J("ngIf",(null==d.weightControls||null==d.weightControls.weightStoneControl?null:d.weightControls.weightStoneControl.touched)||(null==d.weightControls||null==d.weightControls.weightStoneControl?null:d.weightControls.weightStoneControl.dirty)),o.xp6(2),o.ekj("input-error",d.weightControlErrors.weightControlError),o.xp6(4),o.Q6J("ngIf",(null==d.weightControls||null==d.weightControls.weightLbsControl?null:d.weightControls.weightLbsControl.touched)||(null==d.weightControls||null==d.weightControls.weightLbsControl?null:d.weightControls.weightLbsControl.dirty))}}function ze(p,w){if(1&p&&(o.TgZ(0,"div",12)(1,"div",13)(2,"ion-item")(3,"ion-label",14),o._uU(4,"Unit"),o.qZA(),o.TgZ(5,"ion-select",15),o.YNc(6,Ae,2,2,"ion-select-option",16),o.qZA()(),o.YNc(7,jr,2,1,"div",17),o.qZA(),o.TgZ(8,"ion-row"),o.YNc(9,ei,6,4,"ion-col",18),o.YNc(10,Ze,13,6,"ng-container",19),o.qZA()()),2&p){const d=o.oxw();o.xp6(2),o.ekj("input-error",d.weightControlErrors.unitControlError),o.xp6(4),o.Q6J("ngForOf",d.weightUnitOptions),o.xp6(1),o.Q6J("ngIf",d.weightControlErrors.unitControlError),o.xp6(2),o.Q6J("ngIf",d.weightControls.unitControl.value!==d.WeightUnit.Stone),o.xp6(1),o.Q6J("ngIf",d.weightControls.unitControl.value===d.WeightUnit.Stone)}}function He(p,w){if(1&p&&(o.TgZ(0,"ion-select-option",20),o._uU(1),o.qZA()),2&p){const d=w.$implicit;o.Q6J("value",d),o.xp6(1),o.Oqu(d)}}function ae(p,w){1&p&&(o.TgZ(0,"div",23),o._uU(1," Unit is required "),o.qZA())}function gr(p,w){if(1&p&&(o.TgZ(0,"div",21),o.YNc(1,ae,2,0,"div",22),o.qZA()),2&p){const d=o.oxw(2);
1o.xp6(1),o.Q6J("ngIf",null==d.waistControls.unitControl?null:d.waistControls.unitControl.hasError("required"))}}function ui(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a valid number. "),o.qZA())}function vr(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a whole number. "),o.qZA())}function qe(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a number greater than 0. "),o.qZA())}function Ot(p,w){1&p&&(o.TgZ(0,"div",26),o._uU(1," Please enter a value. "),o.qZA())}function Ut(p,w){if(1&p&&(o.TgZ(0,"div"),o.YNc(1,ui,2,0,"div",10),o.YNc(2,vr,2,0,"div",10),o.YNc(3,qe,2,0,"div",10),o.YNc(4,Ot,2,0,"div",10),o.qZA()),2&p){const d=o.oxw(2);o.xp6(1),o.Q6J("ngIf",null==d.waistControls||null==d.waistControls.valueControl||null==d.waistControls.valueControl.errors?null:d.waistControls.valueControl.errors.valid),o.xp6(1),o.Q6J("ngIf",null==d.waistControls||null==d.waistControls.valueControl||null==d.waistControls.valueControl.errors?null:d.waistControls.valueControl.errors.decimal),o.xp6(1),o.Q6J("ngIf",null==d.waistControls||null==d.waistControls.valueControl||null==d.waistControls.valueControl.errors?null:d.waistControls.valueControl.errors.min),o.xp6(1),o.Q6J("ngIf",null==d.waistControls||null==d.waistControls.valueControl||null==d.waistControls.valueControl.errors?null:d.waistControls.valueControl.errors.required)}}function pr(p,w){if(1&p&&(o.TgZ(0,"div",29)(1,"div")(2,"ion-item")(3,"ion-label",14),o._uU(4,"Unit"),o.qZA(),o.TgZ(5,"ion-select",15),o.YNc(6,He,2,2,"ion-select-option",16),o.qZA()(),o.YNc(7,gr,2,1,"div",17),o.qZA(),o.TgZ(8,"div")(9,"ion-item")(10,"ion-label",14),o._uU(11,"Waist"),o.qZA(),o._UZ(12,"ion-input",30),o.qZA(),o.YNc(13,Ut,5,4,"div",19),o.qZA()()),2&p){const d=o.oxw();o.xp6(2),o.ekj("input-error",d.waistControlErrors.unitControlError),o.xp6(4),o.Q6J("ngForOf",d.waistUnitOptions),o.xp6(1),o.Q6J("ngIf",d.waistControlErrors.unitControlError),o.xp6(2),o.ekj("input-error",d.waistControlErrors.valueControlError),o.xp6(4),o.Q6J("ngIf",(null==d.waistControls||null==d.waistControls.valueControl?null:d.waistControls.valueControl.touched)||(null==d.waistControls||null==d.waistControls.valueControl?null:d.waistControls.valueControl.dirty))}}function di(p,w){if(1&p&&(o.TgZ(0,"div",26)(1,"div",23),o._uU(2),o.qZA()()),2&p){const d=o.oxw();o.xp6(2),o.Oqu(d.errorMessage)}}let ci=(()=>{class p{constructor(d,m,C,M){this.goalSvc=d,this.alertSvc=m,this.navCtrl=C,this.profileSvc=M,this.closeEventEmitter=new o.vpe,this.done=new o.vpe,this.customAlertOptions=Vr.V,this.errorMessage=null,this.isSubmitted=!1,this.weightUnitOptions=Q.tP,this.waistUnitOptions=Q.nW,this.form=new X.cw({weight:new X.cw({unit:new X.NI(null,X.kI.required),weight_value:new X.NI(null,[(0,ne.q)(),X.kI.min(0)]),weight_stone_value:new X.NI(null,[(0,ne.q)(),(0,ne.R)(),X.kI.min(0)]),weight_lbs_value:new X.NI(null,[(0,ne.q)()]),weight_string:new X.NI(null,X.kI.required)}),waist:new X.cw({unit:new X.NI("",X.kI.required),value:new X.NI("",[X.kI.required,(0,ne.q)(),X.kI.min(0)])})}),this.Category=tt,this.WeightUnit=Q.Cp,this.WaistUnit=Q.wR,this.destroy$=new _t.x}get weightGroup(){return this.form.get("weight")}get weightControls(){return(0,Et.fs)(this.weightGroup)}get waistGroup(){return this.form.get("waist")}get waistControls(){return(0,Et.lh)(this.waistGroup)}get weightControlErrors(){return(0,Et.Uq)(this.weightControls,this.isSubmitted)}get waistControlErrors(){return(0,Et.An)(this.waistControls,this.isSubmitted)}get categoryGroup(){let d;switch(this.category){case tt.Weight:d=this.weightGroup;break;case tt.Waist:d=this.waistGroup}return d}ngOnInit(){(0,hr.F)(this.weightControls.unitControl,this.weightControls.weightControl,this.weightControls.weightStoneControl,this.weightControls.weightLbsControl,this.weightControls.weightString,this.destroy$),this.loadGoal(this.goal)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}dismiss(){this.closeEventEmitter.emit()}onSubmit(){return(0,et.mG)(this,void 0,void 0,function*(){if(this.form.markAllAsTouched(),this.requestState="none",this.categoryGroup.valid){this.requestState="loading",this.isSubmitted=!1;try{const d=yield this.updateGoal();this.requestState="success",null!==d&&this.done.emit(this.getUnit())}catch(d){this.requestState="error",this.errorMessage="Server Error"}}else this.isSubmitted=!0})}
1getUnit(){let d;switch(this.category){case tt.Weight:d=this.weightControls.unitControl.value;break;case tt.Waist:d=this.waistControls.unitControl.value}return d}loadGoal(d){switch(this.category){case tt.Weight:(0,Et.sC)(d,this.weightControls.unitControl,this.weightControls.weightControl,this.weightControls.weightStoneControl,this.weightControls.weightLbsControl);break;case tt.Waist:(0,Et.KK)(d,this.waistControls.unitControl,this.waistControls.valueControl)}}updateGoal(){return(0,et.mG)(this,void 0,void 0,function*(){let d=Promise.resolve({});switch(this.category){case tt.Weight:d=this.updateWeightGoal();break;case tt.Waist:d=this.updateWaistGoal()}return d})}updateWeightGoal(){return(0,et.mG)(this,void 0,void 0,function*(){const d=(0,Et.n3)(this.weightGroup);if((0,hr.K)(this.weightGroup,this.height)){const C=(0,cr.u)(this.profileSvc.profile.first_name);return(yield this.alertSvc.presentCustomConfirmation("Weight goal warning","",`Hi ${C}, for someone of your height, this goal weight would take you below the healthy weight range according to NHS\xa0guidelines. Please select a healthier goal weight. If you have set your height incorrectly, you can update it in your profile settings.`,"I think my height might be wrong","Set new goal","")).option||(this.closeEventEmitter.emit(),this.profileSvc.setFocusHeight(!0),this.navCtrl.navigateForward("profile")),null}{const C={goal:{weight_goal_gram:d}};return yield this.goalSvc.updateWeightGoal(C)}})}updateWaistGoal(){return(0,et.mG)(this,void 0,void 0,function*(){const m={goal:{waist_goal_cm:(0,Et.Tt)(this.waistGroup)}};return yield this.goalSvc.updateWaistGoal(m)})}}return p.\u0275fac=function(d){return new(d||p)(o.Y36(pe),o.Y36(P.c),o.Y36(U.SH),o.Y36(nr.H))},p.\u0275cmp=o.Xpm({type:p,selectors:[["app-goal-modal"]],inputs:{height:"height",category:"category",unit:"unit",goal:"goal"},outputs:{closeEventEmitter:"closeEventEmitter",done:"done"},decls:15,vars:6,consts:[[1,"popup"],[1,"popup__wrapper"],[1,"popup__header"],["type","button","id","close-button","tappable","",1,"button","button_icon","popup__close",3,"click"],["src","assets/images/icons/cross.svg","alt",""],[1,"popup__article"],[1,"popup__outer"],[3,"formGroup","submit"],["id","weight-form-group","formGroupName","weight",4,"ngIf"],["id","waist-form-group","formGroupName","waist",4,"ngIf"],["class","error",4,"ngIf"],["type","submit","expand","block",3,"disabled"],["id","weight-form-group","formGroupName","weight"],["id","weight-unit-field-container"],["position","stacked"],["formControlName","unit"],[3,"value",4,"ngFor","ngForOf"],["class","field-errors",4,"ngIf"],["id","weight-value-field-container",4,"ngIf"],[4,"ngIf"],[3,"value"],[1,"field-errors"],["class","error-message",4,"ngIf"],[1,"error-message"],["id","weight-value-field-container"],["type","number","formControlName","weight_value"],[1,"error"],["type","number","formControlName","weight_stone_value"],["type","number","formControlName","weight_lbs_value"],["id","waist-form-group","formGroupName","waist"],["type","number","formControlName","value"]],template:function(d,m){1&d&&(o.TgZ(0,"section",0)(1,"div",1)(2,"header",2)(3,"span"),o._uU(4),o.qZA(),o.TgZ(5,"button",3),o.NdJ("click",function(){return m.dismiss()}),o._UZ(6,"img",4),o.qZA()(),o.TgZ(7,"article",5)(8,"div",6)(9,"form",7),o.NdJ("submit",function(){return m.onSubmit()}),o.YNc(10,ze,11,6,"div",8),o.YNc(11,pr,14,7,"div",9),o.YNc(12,di,3,1,"div",10),o.TgZ(13,"ion-button",11),o._uU(14,"Update"),o.qZA()()()()()()),2&d&&(o.xp6(4),o.hij("Update ",m.category," Goal"),o.xp6(5),o.Q6J("formGroup",m.form),o.xp6(1),o.Q6J("ngIf",m.category===m.Category.Weight),o.xp6(1),o.Q6J("ngIf",m.category===m.Category.Waist),o.xp6(1),o.Q6J("ngIf","error"===m.requestState),o.xp6(1),o.Q6J("disabled","loading"===m.requestState))},directives:[X._Y,X.JL,X.sg,R.O5,X.x0,U.Ie,U.Q$,U.t9,U.QI,X.JJ,X.u,R.sg,U.n0,U.Nd,U.wI,U.pK,U.as,U.YG],styles:["ion-item[_ngcontent-%COMP%]{--padding-start: 0;--padding-end: 0;--inner-padding-start: 10px;--inner-padding-end: 10px}ion-button[_ngcontent-%COMP%]{margin-top:16px}ion-row[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}ion-row[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]:first-child{padding-left:0}ion-row[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]:last-child{padding-right:0}.input-error[_ngcontent-%COMP%]{color:var(--app-error-color)}.field-errors[_ngcontent-%COMP%]{padding-left:10px}.error-message[_ngcontent-%COMP%]{padding:2px 0;color:var(--ion-color-danger)}#photo-form-group[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin:0 0 8px}#photo-form-group[_ngcontent-%COMP%] ion-img[_ngcontent-%COMP%]{max-width:350px;margin:0 auto 8px}"]}),p})();var hi=O(25425);let mr=(()=>{class p{transform(d){return d?`${d/60>=1?Ge(Math.floor(d/60)).toString():"00"}:${d%60>=1?Ge(d%60).toString():"00"}`:null}}
1return p.\u0275fac=function(d){return new(d||p)},p.\u0275pipe=o.Yjl({name:"appTime",type:p,pure:!0}),p})();function Ge(p){return length=2,(new Array(length).join("0")+p).slice(-1*length)}const fi=["weightSegment"];function gi(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"button",31),o.NdJ("click",function(){const M=o.CHM(d).$implicit;return o.oxw().onCategorySelect(M)}),o._uU(1),o.qZA()}if(2&p){const d=w.$implicit,m=w.index,C=o.oxw();o.ekj("button_fill",C.isCategorySelected(d))("button_fill-dark-green",C.isCategorySelected(d))("button_outline",!C.isCategorySelected(d))("button_outline-green",!C.isCategorySelected(d))("button_green-text",!C.isCategorySelected(d))("ml-2",0!==m),o.xp6(1),o.hij(" ",d," ")}}function br(p,w){if(1&p&&o._UZ(0,"app-track",32),2&p){const d=o.oxw();o.Q6J("description",d.startingWeightDescription)("value",d.latestWeightInNumber)("unit",d.weightUnit)}}function _r(p,w){if(1&p&&o._UZ(0,"app-track",33),2&p){const d=o.oxw();o.Q6J("description",d.startingWaistDescription)("value",d.latestWaistInNumber)("unit",d.waistUnit)}}function vi(p,w){if(1&p&&o._UZ(0,"app-track",34),2&p){const d=o.oxw();o.Q6J("description",d.weightProgressDescription)("value",d.weightProgressValue)("unit",d.weightUnit)}}function pi(p,w){if(1&p&&o._UZ(0,"app-track",35),2&p){const d=o.oxw();o.Q6J("description",d.waistProgressDescription)("value",d.waistProgressValue)("unit",d.waistUnit)}}function yr(p,w){if(1&p&&(o.TgZ(0,"ion-col",12),o._UZ(1,"app-track",38),o.qZA()),2&p){const d=o.oxw(2);o.xp6(1),o.Q6J("value",d.bmi)}}function De(p,w){if(1&p){const d=o.EpF();o.ynx(0),o.YNc(1,yr,2,1,"ion-col",36),o.TgZ(2,"ion-col",12)(3,"app-track",37),o.NdJ("updateGoalClick",function(){o.CHM(d);const C=o.oxw();return C.onUpdateGoalClick(C.weightGoalValue)}),o.qZA()(),o.BQk()}if(2&p){const d=o.oxw();o.xp6(1),o.Q6J("ngIf",d.selectedCategory===d.Category.Weight&&d.weightGoal),o.xp6(2),o.Q6J("single",!0)("value",d.weightGoalValueInNumber)("unit",d.weightUnit)}}function xr(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"ion-col",39)(1,"app-track",40),o.NdJ("updateGoalClick",function(){o.CHM(d);const C=o.oxw();return C.onUpdateGoalClick(C.waistGoalValue)}),o.qZA()()}if(2&p){const d=o.oxw();o.xp6(1),o.Q6J("single",!0)("value",d.waistGoalValueInNumber)("unit",d.waistUnit)}}function wr(p,w){1&p&&(o.TgZ(0,"h4"),o._uU(1,"Progress over time"),o.qZA())}function mi(p,w){1&p&&o._UZ(0,"span")}function bi(p,w){if(1&p&&(o.TgZ(0,"ion-segment-button",44),o._uU(1),o.qZA()),2&p){const d=w.$implicit;o.Q6J("value",d),o.xp6(1),o.Oqu(d)}}function _i(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"ion-segment",41,42),o.NdJ("ionChange",function(C){return o.CHM(d),o.oxw().onWeightUnitChange(C)}),o.YNc(2,bi,2,2,"ion-segment-button",43),o.qZA()}if(2&p){const d=o.oxw();o.Q6J("value",d.weightUnit),o.xp6(2),o.Q6J("ngForOf",d.weightUnitOptions)}}function me(p,w){if(1&p&&(o.TgZ(0,"ion-segment-button",44),o._uU(1),o.qZA()),2&p){const d=w.$implicit;o.Q6J("value",d),o.xp6(1),o.Oqu(d)}}function yi(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"ion-segment",41),o.NdJ("ionChange",function(C){return o.CHM(d),o.oxw().onWaisUnitChange(C)}),o.YNc(1,me,2,2,"ion-segment-button",43),o.qZA()}if(2&p){const d=o.oxw();o.Q6J("value",d.waistUnit),o.xp6(1),o.Q6J("ngForOf",d.waistUnitOptions)}}function yt(p,w){if(1&p&&(o.TgZ(0,"ion-segment-button",44),o._uU(1),o.qZA()),2&p){const d=w.$implicit;o.Q6J("value",d.value),o.xp6(1),o.Oqu(d.viewValue)}}function xi(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"ion-segment",41),o.NdJ("ionChange",function(C){return o.CHM(d),o.oxw().onHba1cUnitChange(C)}),o.YNc(1,yt,2,2,"ion-segment-button",43),o.qZA()}if(2&p){const d=o.oxw();o.Q6J("value",d.hba1cUnit),o.xp6(1),o.Q6J("ngForOf",d.hba1cUnitOptions)}}function wi(p,w){if(1&p&&(o.TgZ(0,"div",45),o._UZ(1,"canvas",46,47),o.qZA()),2&p){const d=o.oxw();o.xp6(1),o.Q6J("legend",!1)("data",d.chartData)("options",d.chartOptions)("colors",d.charColors)}}function Ci(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"b"),o._uU(3),o.qZA(),o.TgZ(4,"div",51),o._uU(5),o.ALo(6,"appDate"),o.qZA()(),o.TgZ(7,"td",52),o._uU(8),o.ALo(9,"appDate"),o.qZA(),o.TgZ(10,"td")(11,"app-dropdown",53),o.NdJ("optionClick",function(C){const A=o.CHM(d).$implicit;return o.oxw(2).onItemDropdownOptionClick(C,A)}),o.qZA()()()}if(2&p){const d=w.$implicit,m=o.oxw(2);o.xp6(3),o.Oqu(d.measurement),o.xp6(2),o.Oqu(o.xi3(6,4,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Oqu(o.xi3(9,7,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Q6J("options",m.itemOptions)}}function ki(p,w){if(1&p&&(o.TgZ(0,"table",48)(1,"thead")(2,"tr")(3,"th"),o._uU(4,"WEIGHT"),o.qZA(),o.TgZ(5,"th",49),o._uU(6,"DATE (Preferred Timezone)"),o.qZA(),o._UZ(7,"th"),o.qZA()(),o.TgZ(8,"tbody"),o.YNc(9,Ci,12,10,"tr",50),o.qZA()()),2&p){const d=o.oxw();o.xp6(9),o.Q6J("ngForOf",d.weights)}}function be(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"b"),o._uU(3),o.qZA(),o.TgZ(4,"div",51),o._uU(5),o.ALo(6,"appDate"),o.qZA()(),o.TgZ(7,"td",52),o._uU(8),o.ALo(9,"appDate"),o.qZA(),o.TgZ(10,"td")(11,"app-dropdown",53),o.NdJ("optionClick",function(C){const A=o.CHM(d).$implicit;return o.oxw(2).onItemDropdownOptionClick(C,A)}),o.qZA()()()}if(2&p){const d=w.$implicit,m=o.oxw(2);o.xp6(3),o.Oqu(d.measurement),o.xp6(2),o.Oqu(o.xi3(6,4,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Oqu(o.xi3(9,7,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Q6J("options",m.itemOptions)}}function oe(p,w){if(1&p&&(o.TgZ(0,"table",48)(1,"thead")(2,"tr")(3,"th"),o._uU(4,"WAIST"),o.qZA(),o.TgZ(5,"th",49),o._uU(6,"DATE (Preferred Timezone)"),o.qZA(),o._UZ(7,"th"),o.qZA()(),o.TgZ(8,"tbody"),o.YNc(9,be,12,10,"tr",50),o.qZA()()),2&p){const d=o.oxw();o.xp6(9),o.Q6J("ngForOf",d.waists)}}function Mi(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"b"),o._uU(3),o.qZA(),o.TgZ(4,"div",51),o._uU(5),o.ALo(6,"appDate"),o.qZA()(),o.TgZ(7,"td",52),o._uU(8),o.ALo(9,"appDate"),o.qZA(),o.TgZ(10,"td")(11,"app-dropdown",53),o.NdJ("optionClick",function(C){const A=o.CHM(d).$implicit;return o.oxw(2).onItemDropdownOptionClick(C,A)}),o.qZA()()()}if(2&p){const d=w.$implicit,m=o.oxw(2);o.xp6(3),o.Oqu(d.measurement),o.xp6(2),o.Oqu(o.xi3(6,4,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Oqu(o.xi3(9,7,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Q6J("options",m.itemOptions)}}function Ti(p,w){if(1&p&&(o.TgZ(0,"table",48)(1,"thead")(2,"tr")(3,"th"),o._uU(4,"HBA1c"),o.qZA(),o.TgZ(5,"th",49),o._uU(6,"DATE (Preferred Timezone)"),o.qZA(),o._UZ(7,"th"),o.qZA()(),o.TgZ(8,"tbody"),o.YNc(9,Mi,12,10,"tr",50),o.qZA()()),2&p){const d=o.oxw();o.xp6(9),o.Q6J("ngForOf",d.hba1cs)}}function Si(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"b"),o._uU(3),o.ALo(4,"appTime"),o.qZA(),o.TgZ(5,"div",51),o._uU(6),o.ALo(7,"appDate"),o.qZA()(),o.TgZ(8,"td",52),o._uU(9),o.ALo(10,"appDate"),o.qZA(),o.TgZ(11,"td")(12,"app-dropdown",53),o.NdJ("optionClick",function(C){const A=o.CHM(d).$implicit;return o.oxw(2).onItemDropdownOptionClick(C,A)}),o.qZA()()()}if(2&p){const d=w.$implicit,m=o.oxw(2);o.xp6(3),o.AsE("",o.lcZ(4,5,d.time_slept_in_minutes)," - ",d.quality,""),o.xp6(3),o.Oqu(o.xi3(7,7,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Oqu(o.xi3(10,10,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Q6J("options",m.itemOptions)}}function Cr(p,w){if(1&p&&(o.TgZ(0,"table",54)(1,"thead")(2,"tr")(3,"th"),o._uU(4,"SLEEP TIME (hh:mm) - QUALITY"),o.qZA(),o.TgZ(5,"th",49),o._uU(6,"DATE (PREFERRED TIMEZONE)"),o.qZA(),o._UZ(7,"th"),o.qZA()(),o.TgZ(8,"tbody"),o.YNc(9,Si,13,13,"tr",50),o.qZA()()),2&p){const d=o.oxw();o.xp6(9),o.Q6J("ngForOf",d.sleeps)}}function Ve(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"tr")(1,"td")(2,"b"),o._uU(3),o.qZA(),o.TgZ(4,"div",51),o._uU(5),o.ALo(6,"appDate"),o.qZA()(),o.TgZ(7,"td",52),o._uU(8),o.ALo(9,"appDate"),o.qZA(),o.TgZ(10,"td")(11,"app-dropdown",53),o.NdJ("optionClick",function(C){const A=o.CHM(d).$implicit;return o.oxw(2).onItemDropdownOptionClick(C,A)}),o.qZA()()()}if(2&p){const d=w.$implicit,m=o.oxw(2);o.xp6(3),o.Oqu(d.quality),o.xp6(2),o.Oqu(o.xi3(6,4,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Oqu(o.xi3(9,7,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Q6J("options",m.itemOptions)}}function Pi(p,w){if(1&p&&(o.TgZ(0,"table",48)(1,"thead")(2,"tr")(3,"th"),o._uU(4,"Mood Quality"),o.qZA(),o.TgZ(5,"th",49),o._uU(6,"DATE (Preferred Timezone)"),o.qZA(),o._UZ(7,"th"),o.qZA()(),o.TgZ(8,"tbody"),o.YNc(9,Ve,12,10,"tr",50),o.qZA()()),2&p){const d=o.oxw();o.xp6(9),o.Q6J("ngForOf",d.moods)}}function Ai(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"tr")(1,"td"),o._UZ(2,"img",55),o.TgZ(3,"div",51),o._uU(4),o.ALo(5,"appDate"),o.qZA()(),o.TgZ(6,"td",52),o._uU(7),o.ALo(8,"appDate"),o.qZA(),o.TgZ(9,"td")(10,"app-dropdown",53),o.NdJ("optionClick",function(C){const A=o.CHM(d).$implicit;return o.oxw(2).onItemDropdownOptionClick(C,A)}),o.qZA()()()}if(2&p){const d=w.$implicit,m=o.oxw(2);o.xp6(2),o.Q6J("src",d.image_url,o.LSH),o.xp6(2),o.Oqu(o.xi3(5,4,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Oqu(o.xi3(8,7,d.recorded_at,"DD/MM/yyyy")),o.xp6(3),o.Q6J("options",m.photoItemOptions)}}function Oe(p,w){if(1&p&&(o.TgZ(0,"table",48)(1,"thead")(2,"tr")(3,"th"),o._uU(4,"Photo"),o.qZA(),o.TgZ(5,"th",49),o._uU(6,"DATE (Preferred Timezone)"),o.qZA(),o._UZ(7,"th"),o.qZA()(),o.TgZ(8,"tbody"),o.YNc(9,Ai,11,10,"tr",50),o.qZA()()),2&p){const d=o.oxw();o.xp6(9),o.Q6J("ngForOf",d.photos)}}function $t(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"app-track-modal",56),o.NdJ("closeEventEmitter",function(){return o.CHM(d),o.oxw().closeModal()})("done",function(C){return o.CHM(d),o.oxw().doneModal(C)}),o.qZA()}if(2&p){const d=o.oxw();o.Q6J("height",d.height)("category",d.selectedCategory)("unit",d.unit)("entry",d.entry)}}function qt(p,w){if(1&p){const d=o.EpF();o.TgZ(0,"app-goal-modal",57),o.NdJ("closeEventEmitter",function(){return o.CHM(d),o.oxw().closeGoalModal()})("done",function(C){return o.CHM(d),o.oxw().doneGoalModal(C)}),o.qZA()}if(2&p){const d=o.oxw();o.Q6J("height",d.height)("category",d.selectedCategory)("unit",d.unitGoal)("goal",d.goal)}}var mt=(()=>{return(p=mt||(mt={})).Edit="Edit",p.Remove="Remove",mt;var p})();const Ie="YYYY-MM-DD hh:mm:ss",Gt=[{path:"",component:(()=>{class p{constructor(d,m,C,M,A){this.router=d,this.trackSvc=m,this.profileSvc=C,this._tabsService=M,this.firebaseAnalyticsSvc=A,this.categories=[q.J.Weight,q.J.Waist,q.J.Hba1c,q.J.Sleep,q.J.Mood,q.J.Photo],this.selectedCategory=this.categories[0],this.showModal=!1,this.showGoalModal=!1,this.weightUnitOptions=Q.tP,this.waistUnitOptions=Q.nW,this.hba1cUnitOptions=Q.e_,this.hba1cUnit=Q.QK.Percent,this.itemOptions=[{value:mt.Edit,text:"Edit"},{value:mt.Remove,text:"Remove"}],this.photoItemOptions=[{value:mt.Edit,text:"View and edit"},{value:mt.Remove,text:"Remove"}],this.weightProgress=[],this.chartData=[],this.charColors=[{borderColor:"#6592D0",pointHitRadius:4,pointBackgroun
1dColor:"transparent",pointBorderColor:"transparent",pointBorderWidth:0,pointHoverBackgroundColor:"#000",pointHoverBorderColor:"transparent",pointHoverBorderWidth:0,pointHoverRadius:6}],this.chartOptions={responsive:!0,title:{display:!1,text:"Graph"},scales:{xAxes:[{display:!0,type:"time",time:{unit:"day",displayFormats:{day:"MMM DD"},tooltipFormat:"YYYY/MM/DD HH:mm:ss"}}],yAxes:[{position:"right",display:!0}]},elements:{line:{fill:!1}}},this.Category=q.J,this.WeightUnit=Q.Cp,this.WaistUnit=Q.wR}get weightGoalValue(){return this.weightGoal[this.weightUnit]}get waistGoalValue(){return this.waistGoal[this.waistUnit]}get weightGoalValueInNumber(){if(!this.weightGoalValue)return null;const d=this.weightGoalValue;return this.weightUnit===Q.Cp.Stone?(0,Yt.FO)(d):Number(d.split(" ")[0])}get waistGoalValueInNumber(){return this.waistGoalValue?Number(this.waistGoalValue.split(" ")[0]):null}get latestWeightInNumber(){if(!this.weights||0===this.weights.length)return null;const d=this.weights[0].measurement;if(this.weightUnit===Q.Cp.Stone)return(0,Yt.FO)(d);const m=d.split(" ");return Number(m[0])}get latestWaistInNumber(){if(!this.waists||0===this.waists.length)return null;const m=this.waists[0].measurement.split(" ");return Number(m[0])}get startingWeightWithUnit(){return 0===this.weights.length?"":this.weights[this.weights.length-1].measurement}get startingWaistWithUnit(){return 0===this.waists.length?"":this.waists[this.waists.length-1].measurement}get startingWeightInNumber(){if(0===this.weights.length)return null;const d=this.weights[this.weights.length-1].measurement;if(this.weightUnit===Q.Cp.Stone)return(0,Yt.FO)(d);const m=d.split(" ");return Number(m[0])}get startingWaistInNumber(){if(0===this.waists.length)return null;const m=this.waists[this.waists.length-1].measurement.split(" ");return Number(m[0])}get weightProgressValue(){return this.startingWeightInNumber&&this.latestWeightInNumber?Math.abs(this.startingWeightInNumber-this.latestWeightInNumber):null}get waistProgressValue(){return this.startingWaistInNumber&&this.latestWaistInNumber?Math.abs(this.startingWaistInNumber-this.latestWaistInNumber):null}get weightLeft(){return this.latestWeightInNumber&&this.weightGoalValueInNumber?Math.abs(this.weightGoalValueInNumber-this.latestWeightInNumber):null}get waistLeft(){return this.waistGoalValueInNumber&&this.latestWaistInNumber?Math.abs(this.waistGoalValueInNumber-this.latestWaistInNumber):null}get weightLeftWithUnit(){return this.weightLeft?this.weightUnit===Q.Cp.Stone?(0,Yt.eH)(this.weightLeft):(0,R.uf)(this.weightLeft,"en-US","1.1-2")+" "+this.weightUnit:null}get waistLeftWithUnit(){return this.waistLeft?(0,R.uf)(this.waistLeft,"en-US","1.1-2")+" "+this.waistUnit:null}get startingWeightDescription(){return this.startingWeightWithUnit?"Starting weight was "+this.startingWeightWithUnit:""}get startingWaistDescription(){return this.startingWaistWithUnit?"Starting waist was "+this.startingWaistWithUnit:""}get weightProgressDescription(){return this.weightLeftWithUnit&&this.weightGoalValue?`${this.weightLeftWithUnit} away from your goal of ${this.weightGoalValue}`:""}get waistProgressDescription(){return this.waistLeftWithUnit&&this.waistGoalValue?`${this.waistLeftWithUnit} away from your goal of ${this.waistGoalValue}`:""}get bmi(){if(!this.latestWeightInNumber||!this.profileSvc.profile.assessment.height.cm)return 0;let d=0;const C=Number(this.profileSvc.profile.assessment.height.cm.split(" ")[0])/100;switch(this.weightUnit){case Q.Cp.Stone:const M=Number(this.weights[0].measurement.split(" ")[0]),A=Number(this.weights[0].measurement.split(" ")[2]);d=(0,Yt.rV)(M,A);break;case Q.Cp.Kg:d=this.latestWeightInNumber;break;case Q.Cp.Lbs:d=(0,Yt.bD)(this.latestWeightInNumber)}return(0,ir.V)(d,C).toFixed(1)}ngOnInit(){this.subscription=this.router.events.subscribe(d=>{d instanceof Te.m2&&(d.url.startsWith("/tabs/track")||d.urlAfterRedirects.startsWith("/tabs/track"))&&this.fetchData()})}ngOnDestroy(){this.subscription.unsubscribe()}ionViewDidEnter(){this.firebaseAnalyticsSvc.logScreenViewEvent(ft.U.TRACK)}fetchData(){return(0,et.mG)(this,void 0,void 0,function*(){yield this.profileSvc.getProfile(),this.setAssessmentData(),this.loadData()})}setAssessmentData(){var d,m;return(0,et.mG)(this,void 0,void 0,function*(){const C=this.profileSvc.profile,M=C.assessment;this.height=M.height[Q.Z3.Cm],this.weightUnit=null!==(d=C.weight_tracker_unit)&&void 0!==d?d:Q.Cp.Kg,this.waistUnit=null!==(m=C.waist_tracker_unit)&&void 0!==m?m:Q.wR.Cm,M.hemoglobin_unit&&(this.hba1cUnit=M.hemoglobin_unit),this.weightGoal=M.weight_goal,this.waistGoal=M.waist_goal})}isCategorySelected(d){return this.selectedCategory===d}onCategorySelect(d){this.selectedCategory=d,this.loadData()}onUpdateGoalClick(d){this.setUnitGoal(),this.goal=d,this.showGoalModal=!0,this._tabsService.hideTabs(),this.firebaseAnalyticsSvc.logScreenViewEvent(ft.U.UPDATE_GOAL)}closeGoalModal(){this._closeGoalModal(),this._tabsService.showTabs()}doneGoalModal(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.profileSvc.getProfile();const m=this.profileSvc.profile.assessment;this.weightGoal=m.weight_goal,this.waistGoal=m.waist_goal,d&&(this.selectedCategory===q.J.Weight?(this.weightUnit=d,this.weightUnit=this.weightUnit):this.selectedCategory===q.J.Waist&&(this.waistUnit=d,this.waistUnit=this.waistUnit)),this.loadData(),this._closeGoalModal()})}addEntry(){return(0,et.mG)(this,void 0,void 0,function*(){this.setUnit(),this.showModal=!0,this._tabsService.hideTabs(),this.firebaseAnalyticsSvc.logScreenViewEvent(ft.U.ADD_TRACK_ENTRY)})}closeModal(){this.entry&&(this.entry=null),this._closeModal()}doneModal(d){d&&(this.selectedCategory===q.J.Weight?this.weightUnit=d:this.selectedCategory===q.J.Waist&&(this.waistUnit=d)),this.entry&&(this.entry=null),this.loadData(),this._closeModal()}onWeightUnitChange(d){this.weightUnit=d.detail.value,this.loadWeights(),this.loadWeightProgress()}onWaisUnitChange(d){this.waistUnit=d.detail.value,this.loadWaists()}onHba1cUnitChange(d){this.hba1cUnit=d.detail.value,this.loadHba1cs()}onItemDropdownOptionClick(d,m){d===mt.Remove?this.removeEntry(m.id):d===mt.Edit&&this.editEntry(m)}loadData(){switch(this.selectedCategory){case q.J.Weight:this.loadWeights(),this.loadWeightProgress();break;case q.J.Waist:this.loadWaists();break;case q.J.Hba1c:this.loadHba1cs();break;case q.J.Sleep:this.loadSleeps();break;case q.J.Mood:this.loadMoods();break;case q.J.Photo:this.loadPhotos()}}editEntry(d){this.entry=d,this.showModal=!0,this._tabsService.hideTabs(),this.firebaseAnalyticsSvc.logScreenViewEvent(ft.U.UPDATE_TRACK_ENTRY)}removeEntry(d){switch(this.selectedCategory){case q.J.Weight:this.removeWeight(d);break;case q.J.Waist:this.removeWaist(d);break;case q.J.Hba1c:this.removeHba1c(d);break;case q.J.Sleep:this.removeSleep(d);break;case q.J.Mood:this.removeMood(d);break;case q.J.Photo:this.removePhoto(d)}}loadWeights(){return(0,et.mG)(this,void 0,void 0,function*(){this.weights=yield this.trackSvc.getWeights(this.weightUnit),this.weightUnit=this.weightUnit})}removeWeight(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.trackSvc.removeWeight(d),this.weights=this.weights.filter(m=>m.id!==d),this.weightProgress=this.weightProgress.filter(m=>m.id!==d),this.setChartData()})}loadWaists(){return(0,et.mG)(this,void 0,void 0,function*(){this.waists=yield this.trackSvc.getWaists(this.waistUnit),this.waistUnit=this.waistUnit})}removeWaist(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.trackSvc.removeWaist(d),this.waists=this.waists.filter(m=>m.id!==d)})}loadHba1cs(){return(0,et.mG)(this,void 0,void 0,function*(){this.hba1cs=yield this.trackSvc.getHba1cs(this.hba1cUnit)})}removeHba1c(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.trackSvc.removeHba1c(d),this.hba1cs=this.hba1cs.filter(m=>m.id!==d)})}loadSleeps(){return(0,et.mG)(this,void 0,void 0,function*(){this.sleeps=yield this.trackSvc.getSleeps()})}removeSleep(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.trackSvc.removeSleep(d),this.sleeps=this.sleeps.filter(m=>m.id!==d)})}loadMoods(){return(0,et.mG)(this,void 0,void 0,function*(){this.moods=yield this.trackSvc.getMoods()})}removeMood(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.trackSvc.removeMood(d),this.moods=this.moods.filter(m=>m.id!==d)})}loadPhotos(){return(0,et.mG)(this,void 0,void 0,function*(){this.photos=yield this.trackSvc.getPhotos()})}removePhoto(d){return(0,et.mG)(this,void 0,void 0,function*(){yield this.trackSvc.removePhoto(d),this.photos=this.photos.filter(m=>m.id!==d)})}setUnit(){switch(this.selectedCategory){case q.J.Weight:this.unit=this.weightUnit;break;case q.J.Waist:this.unit=this.waistUnit;break;case q.J.Hba1c:this.unit=this.hba1cUnit}}setUnitGoal(){switch(this.selectedCategory){case q.J.Weight:this.unitGoal=this.weightUnit;break;case q.J.Waist:this.unitGoal=this.waistUnit}}loadWeightProgress(){return(0,et.mG)(this,void 0,void 0,function*(){const d=yield this.trackSvc.getWeightProgress(this.weightUnit);this.weightProgress=d,this.setChartData()})}setChartData(){this.chartData=this.weightProgress.sort((d,m)=>ge(d.recorded_at,Ie).unix()-ge(m.recorded_at,Ie).unix()).map(d=>({x:ge(d.recorded_at,Ie),y:d.measurement}))}_closeModal(){this.showModal=!1,this._tabsService.showTabs(),this.firebaseAnalyticsSvc.logScreenViewEvent(ft.U.TRACK)}_closeGoalModal(){this.showGoalModal=!1,this._tabsService.showTabs(),this.firebaseAnalyticsSvc.logScreenViewEvent(ft.U.TRACK)}}
1return p.\u0275fac=function(d){return new(d||p)(o.Y36(Te.F0),o.Y36(q.Q),o.Y36(nr.H),o.Y36(Rr.x),o.Y36(Ur.B))},p.\u0275cmp=o.Xpm({type:p,selectors:[["app-track-page"]],viewQuery:function(d,m){if(1&d&&o.Gf(fi,5),2&d){let C;o.iGM(C=o.CRH())&&(m.weightSegment=C.first)}},decls:63,vars:21,consts:[[1,"ion-hide-lg-up","ion-no-border"],[1,"container-fluid"],["size","12","size-lg","2",1,"ion-hide-lg-down"],[1,"sticky"],["href","#",1,"mt-2","ml-3"],["src","assets/images/logo.svg","alt",""],["size","12","size-lg","7"],[1,"page-header","ion-hide-lg-down"],[1,"page-header__title"],[1,"px-3"],["id","categories-container"],["type","button","class","button button_medium button_rounded",3,"button_fill","button_fill-dark-green","button_outline","button_outline-green","button_green-text","ml-2","click",4,"ngFor","ngForOf"],["size","6"],["text","Latest Weight","class","latest-weight",3,"description","value","unit",4,"ngIf"],["text","Latest Waist","class","latest-waist",3,"description","value","unit",4,"ngIf"],["text","Change","class","weight-change",3,"description","value","unit",4,"ngIf"],["text","Change","class","waist-change",3,"description","value","unit",4,"ngIf"],[4,"ngIf"],["size","12",4,"ngIf"],[1,"header-with-heading-button"],[1,"button","button_fill","button_fill-dark-green","button_small",3,"click"],[1,"filter-bar"],[3,"value","ionChange",4,"ngIf"],["class","graph-container",4,"ngIf"],[1,"table-container"],["class","common-table",4,"ngIf"],["class","common-table sleep-table",4,"ngIf"],["size","12","size-lg","3",1,"ion-hide-lg-down"],[1,"mb-2"],[3,"height","category","unit","entry","closeEventEmitter","done",4,"ngIf"],[3,"height","category","unit","goal","closeEventEmitter","done",4,"ngIf"],["type","button",1,"button","button_medium","button_rounded",3,"click"],["text","Latest Weight",1,"latest-weight",3,"description","value","unit"],["text","Latest Waist",1,"latest-waist",3,"description","value","unit"],["text","Change",1,"weight-change",3,"description","value","unit"],["text","Change",1,"waist-change",3,"description","value","unit"],["size","6",4,"ngIf"],["text","Your Goal",1,"weight-goal",3,"single","value","unit","updateGoalClick"],["text","Your BMI",3,"value"],["size","12"],["text","Your Goal",3,"single","value","unit","updateGoalClick"],[3,"value","ionChange"],["weightSegment",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"graph-container"],["baseChart","","chartType","line",3,"legend","data","options","colors"],["k10Chart",""],[1,"common-table"],[1,"ion-hide-lg-down"],[4,"ngFor","ngForOf"],[1,"text-smaller","ion-hide-lg-up"],[1,"smaller","ion-hide-lg-down"],[3,"options","optionClick"],[1,"common-table","sleep-table"],["alt","",3,"src"],[3,"height","category","unit","entry","closeEventEmitter","done"],[3,"height","category","unit","goal","closeEventEmitter","done"]],template:function(d,m){1&d&&(o.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),o._uU(3,"Track"),o.qZA()()(),o.TgZ(4,"ion-content")(5,"div",1)(6,"ion-grid")(7,"ion-row")(8,"ion-col",2)(9,"div",3)(10,"a",4),o._UZ(11,"img",5),o.qZA(),o._UZ(12,"app-navigation"),o.qZA()(),o.TgZ(13,"ion-col",6)(14,"section",7)(15,"h1",8),o._uU(16,"Track"),o.qZA()(),o.TgZ(17,"div",9)(18,"app-scrollable-content",10),o.YNc(19,gi,2,13,"button",11),o.qZA()(),o.TgZ(20,"ion-grid")(21,"ion-row")(22,"ion-col",12),o.YNc(23,br,1,3,"app-track",13),o.YNc(24,_r,1,3,"app-track",14),o.qZA(),o.TgZ(25,"ion-col",12),o.YNc(26,vi,1,3,"app-track",15),o.YNc(27,pi,1,3,"app-track",16),o.qZA()(),o.TgZ(28,"ion-row"),o.YNc(29,De,4,4,"ng-container",17),o.ynx(30),o.YNc(31,xr,2,3,"ion-col",18),o.BQk(),o.qZA()(),o.TgZ(32,"div",19),o.YNc(33,wr,2,0,"h4",17),o.YNc(34,mi,1,0,"span",17),o.TgZ(35,"button",20),o.NdJ("click",function(){return m.addEntry()}),o._uU(36," Add Entry "),o.qZA()(),o.TgZ(37,"div",21),o.YNc(38,_i,3,2,"ion-segment",22),o.YNc(39,yi,2,2,"ion-segment",22),o.YNc(40,xi,2,2,"ion-segment",22),o.qZA(),o.YNc(41,wi,3,4,"div",23),o.TgZ(42,"div",24),o.YNc(43,ki,10,1,"table",25),o.YNc(44,oe,10,1,"table",25),o.YNc(45,Ti,10,1,"table",25),o.YNc(46,Cr,10,1,"table",26),o.YNc(47,Pi,10,1,"table",25),o.YNc(48,Oe,10,1,"table",25),o.qZA()(),o.TgZ(49,"ion-col",27)(50,"div",3)(51,"div",28),o._UZ(52,"app-next-week-meal"),o.qZA(),o.TgZ(53,"div",28),o._UZ(54,"app-shopping-list"),o.qZA(),o.TgZ(55,"div",28),o._UZ(56,"app-weekly-goals"),o.qZA(),o.TgZ(57,"div",28),o._UZ(58,"app-faqs"),o.qZA(),o.TgZ(59,"div",28),o._UZ(60,"app-footer"),o.qZA()()()()()()(),o.YNc(61,$t,1,4,"a
1pp-track-modal",29),o.YNc(62,qt,1,4,"app-goal-modal",30)),2&d&&(o.xp6(19),o.Q6J("ngForOf",m.categories),o.xp6(4),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight&&m.weights),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Waist&&m.waists),o.xp6(2),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight&&m.weights),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Waist&&m.waists),o.xp6(2),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight&&m.weightGoal),o.xp6(2),o.Q6J("ngIf",m.selectedCategory===m.Category.Waist&&m.waistGoal),o.xp6(2),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight),o.xp6(1),o.Q6J("ngIf",m.selectedCategory!==m.Category.Weight),o.xp6(4),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Waist),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Hba1c),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight),o.xp6(2),o.Q6J("ngIf",m.selectedCategory===m.Category.Weight),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Waist),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Hba1c),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Sleep),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Mood),o.xp6(1),o.Q6J("ngIf",m.selectedCategory===m.Category.Photo),o.xp6(13),o.Q6J("ngIf",m.showModal),o.xp6(1),o.Q6J("ngIf",m.showGoalModal))},directives:[U.Gu,U.sr,U.wd,U.W2,U.jY,U.Nd,U.wI,Zr.J,ar.K,R.sg,R.O5,Bt,U.cJ,U.QI,U.GO,Nr,ur,Mt.x,Pe.k,dr.$,Z.t,Dt.c,ve.y,ci],pipes:[hi.u,mr],styles:['[_ngcontent-%COMP%]:root{--color-white: #fff;--color-black: #000;--color-dark: #262626;--color-light-green: #c8eee8;--color-lighter-green: #1dbbac;--color-green: #48a190;--color-mid-green: #509a8c;--color-dark-green: #367e70;--color-darkest-green: #24534a;--color-orange: #ff6820;--color-creame: #f9d6b4;--color-warning: #e67451;--color-danger: #cc273d;--color-lighter-red: #fce8e9;--color-gray-100: #f5f7f8;--color-gray-200: #ebeff4;--color-gray-300: #dee2e6;--color-gray-400: #ced4da;--color-gray-500: #a5a5a5;--color-gray-600: #676767;--color-gray-700: #484848;--color-gray-800: #343a40;--color-gray-900: #212529;--ion-font-family: "Source Sans Pro", sans-serif;--max-content-width: 1290px;--ion-grid-column-padding-xs: 8px;--ion-grid-column-padding: 8px;--ion-offset: 16px;--ion-color-primary: #367e70;--ion-color-primary-rgb: 56, 128, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #48a190;--ion-color-primary-tint: #40c3af;--ion-color-secondary: var(--color-gray-100);--ion-color-secondary-rgb: 61, 194, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: var(--color-gray-100);--ion-color-secondary-tint: var(--color-gray-100);--ion-color-tertiary: var(--color-dark-green);--ion-color-tertiary-rgb: 82, 96, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #4854e0;--ion-color-tertiary-tint: #6370ff;--ion-color-success: var(--color-green);--ion-color-success-rgb: 45, 211, 111;--ion-color-success-contrast: #ffffff;--ion-color-success-contrast-rgb: 255, 255, 255;--ion-color-success-shade: #28ba62;--ion-color-success-tint: #42d77d;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #eb445a;--ion-color-danger-rgb: 235, 68, 90;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #cf3c4f;--ion-color-danger-tint: #ed576b;--ion-color-dark: #123a34;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #ffffff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e;--ion-color-medium: #92949c;--ion-color-medium-rgb: 146, 148, 156;--ion-color-medium-contrast: #ffffff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #808289;--ion-color-medium-tint: #9d9fa6;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-padding: 16px}body.dark[_ngcontent-%COMP%]{--ion-color-primary: #428cff;--ion-color-primary-rgb: 66, 140, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #3a7be0;--ion-color-primary-tint: #5598ff;--ion-color-secondary: #50c8ff;--ion-color-secondary-rgb: 80, 200, 255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #46b0e0;--ion-color-secondary-tint: #62ceff;--ion-color-tertiary: #6a64ff;--ion-color-tertiary-rgb: 106, 100, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #5d58e0;--ion-color-tertiary-tint: #7974ff;--ion-color-success: #2fdf75;--ion-color-success-rgb: 47, 223, 117;--ion-color-success-contrast: #000000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #29c467;--ion-color-success-tint: #44e283;--ion-color-warning: #ffd534;--ion-color-warning-rgb: 255, 213, 52;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0bb2e;--ion-color-warning-tint: #ffd948;--ion-color-danger: #ff4961;--ion-color-danger-rgb: 255, 73, 97;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;
1--ion-color-danger-shade: #e04055;--ion-color-danger-tint: #ff5b71;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #ffffff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e}.ios[_ngcontent-%COMP%] body.dark[_ngcontent-%COMP%]{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-color-step-50: #0d0d0d;--ion-color-step-100: #1a1a1a;--ion-color-step-150: #262626;--ion-color-step-200: #333333;--ion-color-step-250: #404040;--ion-color-step-300: #4d4d4d;--ion-color-step-350: #595959;--ion-color-step-400: #666666;--ion-color-step-450: #737373;--ion-color-step-500: #808080;--ion-color-step-550: #8c8c8c;--ion-color-step-600: #999999;--ion-color-step-650: #a6a6a6;--ion-color-step-700: #b3b3b3;--ion-color-step-750: #bfbfbf;--ion-color-step-800: #cccccc;--ion-color-step-850: #d9d9d9;--ion-color-step-900: #e6e6e6;--ion-color-step-950: #f2f2f2;--ion-toolbar-background: #0d0d0d;--ion-item-background: #000000}.md[_ngcontent-%COMP%] body.dark[_ngcontent-%COMP%]{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-border-color: #222222;--ion-color-step-50: #1e1e1e;--ion-color-step-100: #2a2a2a;--ion-color-step-150: #363636;--ion-color-step-200: #414141;--ion-color-step-250: #4d4d4d;--ion-color-step-300: #595959;--ion-color-step-350: #656565;--ion-color-step-400: #717171;--ion-color-step-450: #7d7d7d;--ion-color-step-500: #898989;--ion-color-step-550: #949494;--ion-color-step-600: #a0a0a0;--ion-color-step-650: #acacac;--ion-color-step-700: #b8b8b8;--ion-color-step-750: #c4c4c4;--ion-color-step-800: #d0d0d0;--ion-color-step-850: #dbdbdb;--ion-color-step-900: #e7e7e7;--ion-color-step-950: #f3f3f3;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-item-background: #1e1e1e}.header-with-heading-button[_ngcontent-%COMP%]{height:44px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.header-with-heading-button[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:22px;line-height:112%;letter-spacing:.25px;color:#262626;text-transform:none}.filter-bar[_ngcontent-%COMP%]{display:flex;margin-bottom:8px}.filter-bar[_ngcontent-%COMP%] ion-segment[_ngcontent-%COMP%]{--background: none;border-radius:0;margin-left:auto;margin-right:auto;display:inline-flex;width:auto}.filter-bar[_ngcontent-%COMP%] ion-segment[_ngcontent-%COMP%] ion-segment-button[_ngcontent-%COMP%]{--indicator-box-shadow: none;--indicator-color: none;--color-checked: var(--ion-color-primary);--padding-top: 0;--padding-end: 12px;--padding-bottom: 0;--padding-start: 12px;--border-radius: 0;border-width:0 0 1px 0;border-color:transparent;border-style:solid;flex:none;margin:4px;min-width:0;min-height:28px;font-size:14px;line-height:150%;text-transform:lowercase}.filter-bar[_ngcontent-%COMP%] ion-segment[_ngcontent-%COMP%] ion-segment-button[_ngcontent-%COMP%]:before{display:none}.filter-bar[_ngcontent-%COMP%] ion-segment[_ngcontent-%COMP%] ion-segment-button.segment-button-checked[_ngcontent-%COMP%]{border-color:var(--color-checked)}.graph-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:15px;padding:16px;margin-left:8px;margin-right:8px;margin-bottom:16px}.table-container[_ngcontent-%COMP%]{padding:0 8px}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:48px;text-align:center}.table-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px;height:60px;margin:8px 0;-o-object-fit:cover;object-fit:cover}.sleep-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-transform:none}@media only screen and (max-width: 991px){[_nghost-%COMP%] .button_medium[_ng
1content-%COMP%]{font-size:14px;height:28px}}@media only screen and (max-width: 464px){[_nghost-%COMP%] .button_small[_ngcontent-%COMP%]{max-height:40px;min-height:32px;height:auto}}']}),p})()}];let Di=(()=>{class p{}return p.\u0275fac=function(d){return new(d||p)},p.\u0275mod=o.oAB({type:p}),p.\u0275inj=o.cJS({imports:[[Te.Bz.forChild(Gt)],Te.Bz]}),p})(),Je=(()=>{class p{}return p.\u0275fac=function(d){return new(d||p)},p.\u0275mod=o.oAB({type:p}),p.\u0275inj=o.cJS({imports:[[R.ez,U.Pc,Er,Di,Wr.K,Br.D]]}),p})()},26997:(tr,he,O)=>{"use strict";O.d(he,{nL:()=>R,Z3:()=>U,Cp:()=>o,wR:()=>it,QK:()=>H,tP:()=>ht,nW:()=>Nt,e_:()=>At});var R=(()=>{return(L=R||(R={})).Imperial="Imperial",L.Metric="Metric",R;var L})(),U=(()=>{return(L=U||(U={})).Ft="ft",L.Cm="cm",U;var L})(),o=(()=>{return(L=o||(o={})).Kg="kg",L.Lbs="lbs",L.Stone="stone",o;var L})(),it=(()=>{return(L=it||(it={})).In="in",L.Cm="cm",it;var L})(),H=(()=>{return(L=H||(H={})).Percent="percent",L.Mmol="mmol",H;var L})();const ht=[o.Kg,o.Lbs,o.Stone],Nt=[it.Cm,it.In],At=[{value:H.Percent,viewValue:"%"},{value:H.Mmol,viewValue:"mmol/mol"}]},68332:function(tr,he,O){tr.exports=function(R){"use strict";R=R&&R.hasOwnProperty("default")?R.default:R;var it={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87
vendor: 9,500 bytes, line 1
1],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},H=function U(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t){var e={};for(var r in it)it.hasOwnProperty(r)&&(e[it[r]]=r);var i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in i)if(i.hasOwnProperty(n)){if(!("channels"in i[n]))throw new Error("missing channels property: "+n);if(!("labels"in i[n]))throw new Error("missing channel labels property: "+n);if(i[n].labels.length!==i[n].channels)throw new Error("channel and label counts mismatch: "+n);var a=i[n].channels,s=i[n].labels;delete i[n].channels,delete i[n].labels,Object.defineProperty(i[n],"channels",{value:a}),Object.defineProperty(i[n],"labels",{value:s})}function u(l,c){return Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)+Math.pow(l[2]-c[2],2)}i.rgb.hsl=function(l){var y,k,c=l[0]/255,h=l[1]/255,f=l[2]/255,v=Math.min(c,h,f),b=Math.max(c,h,f),_=b-v;return b===v?y=0:c===b?y=(h-f)/_:h===b?y=2+(f-c)/_:f===b&&(y=4+(c-h)/_),(y=Math.min(60*y,360))<0&&(y+=360),k=(v+b)/2,[y,100*(b===v?0:k<=.5?_/(b+v):_/(2-b-v)),100*k]},i.rgb.hsv=function(l){var c,h,f,v,b,_=l[0]/255,y=l[1]/255,x=l[2]/255,k=Math.max(_,y,x),T=k-Math.min(_,y,x),S=function(N){return(k-N)/6/T+.5};return 0===T?v=b=0:(b=T/k,c=S(_),h=S(y),f=S(x),_===k?v=f-h:y===k?v=1/3+c-f:x===k&&(v=2/3+h-c),v<0?v+=1:v>1&&(v-=1)),[360*v,100*b,100*k]},i.rgb.hwb=function(l){var c=l[0],h=l[1],f=l[2];return[i.rgb.hsl(l)[0],1/255*Math.min(c,Math.min(h,f))*100,100*(f=1-1/255*Math.max(c,Math.max(h,f)))]},i.rgb.cmyk=function(l){var y,c=l[0]/255,h=l[1]/255,f=l[2]/255;return[100*((1-c-(y=Math.min(1-c,1-h,1-f)))/(1-y)||0),100*((1-h-y)/(1-y)||0),100*((1-f-y)/(1-y)||0),100*y]},i.rgb.keyword=function(l){var c=e[l];if(c)return c;var f,h=1/0;for(var v in it)if(it.hasOwnProperty(v)){var _=u(l,it[v]);_<h&&(h=_,f=v)}return f},i.keyword.rgb=function(l){return it[l]},i.rgb.xyz=function(l){var c=l[0]/255,h=l[1]/255,f=l[2]/255;return[100*(.4124*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)+.3576*(h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92)+.1805*(f=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92)),100*(.2126*c+.7152*h+.0722*f),100*(.0193*c+.1192*h+.9505*f)]},i.rgb.lab=function(l){var c=i.rgb.xyz(l),h=c[0],f=c[1],v=c[2];return f/=100,v/=108.883,h=(h/=95.047)>.008856?Math.pow(h,1/3):7.787*h+16/116,[116*(f=f>.008856?Math.pow(f,1/3):7.787*f+16/116)-16,500*(h-f),200*(f-(v=v>.008856?Math.pow(v,1/3):7.787*v+16/116))]},i.hsl.rgb=function(l){var v,b,_,y,x,c=l[0]/360,h=l[1]/100,f=l[2]/100;if(0===h)return[x=255*f,x,x];v=2*f-(b=f<.5?f*(1+h):f+h-f*h),y=[0,0,0];for(var k=0;k<3;k++)(_=c+1/3*-(k-1))<0&&_++,_>1&&_--,y[k]=255*(x=6*_<1?v+6*(b-v)*_:2*_<1?b:3*_<2?v+(b-v)*(2/3-_)*6:v);return y},i.hsl.hsv=function(l){var c=l[0],h=l[1]/100,f=l[2]/100,v=h,b=Math.max(f,.01);return h*=(f*=2)<=1?f:2-f,v*=b<=1?b:2-b,[c,100*(0===f?2*v/(b+v):2*h/(f+h)),(f+h)/2*100]},i.hsv.rgb=function(l){var c=l[0]/60,h=l[1]/100,f=l[2]/100,v=Math.floor(c)%6,b=c-Math.floor(c),_=255*f*(1-h),y=255*f*(1-h*b),x=255*f*(1-h*(1-b));switch(f*=255,v){case 0:return[f,x,_];case 1:return[y,f,_];case 2:return[_,f,x];case 3:return[_,y,f];case 4:return[x,_,f];case 5:return[f,_,y]}},i.hsv.hsl=function(l){var b,_,y,c=l[0],h=l[1]/100,f=l[2]/100,v=Math.max(f,.01);return y=(2-h)*f,_=h*v,[c,100*(_=(_/=(b=(2-h)*v)<=1?b:2-b)||0),100*(y/=2)]},i.hwb.rgb=function(l){var b,_,y,x,k,T,S,c=l[0]/360,h=l[1]/100,f=l[2]/100,v=h+f;switch(v>1&&(h/=v,f/=v),y=6*c-(b=Math.floor(6*c)),0!=(1&b)&&(y=1-y),x=h+y*((_=1-f)-h),b){default:case 6:case 0:k=_,T=x,S=h;break;case 1:k=x,T=_,S=h;break;case 2:k=h,T=_,S=x;break;case 3:k=h,T=x,S=_;break;case 4:k=x,T=h,S=_;break;case 5:k=_,T=h,S=x}return[255*k,255*T,255*S]},i.cmyk.rgb=function(l){var h=l[1]/100,f=l[2]/100,v=l[3]/100;return[255*(1-Math.min(1,l[0]/100*(1-v)+v)),255*(1-Math.min(1,h*(1-v)+v)),255*(1-Math.min(1,f*(1-v)+v))]},i.xyz.rgb=function(l){var v,b,_,c=l[0]/100,h=l[1]/100,f=l[2]/100;return b=-.9689*c+1.8758*h+.0415*f,_=.0557*c+-.204*h+1.057*f,v=(v=3.2406*c+-1.5372*h+-.4986*f)>.0031308?1.055*Math.pow(v,1/2.4)-.055:12.92*v,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,_=_>.0031308?1.055*Math.pow(_,1/2.4)-.055:12.92*_,[255*(v=Math.min(Math.max(0,v),1)),255*(b=Math.min(Math.max(0,b),1)),255*(_=Math.min(Math.max(0,_),1))]},i.xyz.lab=function(l){var c=l[0],h=l[1],f=l[2];return h/=100,f/=108.883,c=(c/=95.047)>.008856?Math.pow(c,1/3):7.787*c+16/116,[116*(h=h>.008856?Math.pow(h,1/3):7.787*h+16/116)-16,500*(c-h),200*(h-(f=f>.008856?Math.pow(f,1/3):7.787*f+16/116))]},i.lab.xyz=function(l){var v,b,_;v=l[1]/500+(b=(l[0]+16)/116),_=b-l[2]/200;var y=Math.pow(b,3),x=Math.pow(v,3),k=Math.pow(_,3);return b=y>.008856?y:(b-16/116)/7.787,v=x>.008856?x:(v-16/116)/7.787,_=k>.008856?k:(_-16/116)/7.787,[v*=95.047,b*=100,_*=108.883]},i.lab.lch=function(l){var b,c=l[0],h=l[1],f=l[2];return(b=360*Math.atan2(f,h)/2/Math.PI)<0&&(b+=360),[c,Math.sqrt(h*h+f*f),b]},i.lch.lab=function(l){var _,h=l[1];return _=l[2]/360*2*Math.PI,[l[0],h*Math.cos(_),h*Math.sin(_)]},i.rgb.ansi16=function(l){var c=l[0],h=l[1],f=l[2],v=1 in arguments?arguments[1]:i.rgb.hsv(l)[2];if(0===(v=Math.round(v/50)))return 30;var b=30+(Math.round(f/255)<<2|Math.round(h/255)<<1|Math.round(c/255));return 2===v&&(b+=60),b},i.hsv.ansi16=function(l){return i.rgb.ansi16(i.hsv.rgb(l),l[2])},i.rgb.ansi256=function(l){var c=l[0],h=l[1],f=l[2];return c===h&&h===f?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(h/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(l){var c=l%10;if(0===c||7===c)return l>50&&(c+=3.5),[c=c/10.5*255,c,c];var h=.5*(1+~~(l>50));return[(1&c)*h*255,(c>>1&1)*h*255,(c>>2&1)*h*255]},i.ansi256.rgb=function(l){if(l>=232){var c=10*(l-232)+8;return[c,c,c]}var h;return l-=16,[Math.floor(l/36)/5*255,Math.floor((h=l%36)/6)/5*255,h%6/5*255]},i.rgb.hex=function(l){var h=(((255&Math.round(l[0]))<<16)+((255&Math.round(l[1]))<<8)+(255&Math.round(l[2]))).toString(16).toUpperCase();return"000000".substring(h.length)+h},i.hex.rgb=function(l){var c=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var h=c[0];3===c[0].length&&(h=h.split("").map(function(y){return y+y}).join(""));var f=parseInt(h,16);return[f>>16&255,f>>8&255,255&f]},i.rgb.hcg=function(l){var x,c=l[0]/255,h=l[1]/255,f=l[2]/255,v=Math.max(Math.max(c,h),f),b=Math.min(Math.min(c,h),f),_=v-b;return x=_<=0?0:v===c?(h-f)/_%6:v===h?2+(f-c)/_:4+(c-h)/_+4,x/=6,[360*(x%=1),100*_,100*(_<1?b/(1-_):0)]},i.hsl.hcg=function(l){var f,c=l[1]/100,h=l[2]/100,v=0;return(f=h<.5?2*c*h:2*c*(1-h))<1&&(v=(h-.5*f)/(1-f)),[l[0],100*f,100*v]},i.hsv.hcg=function(l){var h=l[2]/100,f=l[1]/100*h,v=0;return f<1&&(v=(h-f)/(1-f)),[l[0],100*f,100*v]},i.hcg.rgb=function(l){var h=l[1]/100,f=l[2]/100;if(0===h)return[255*f,255*f,255*f];var x,v=[0,0,0],b=l[0]/360%1*6,_=b%1,y=1-_;switch(Math.floor(b)){case 0:v[0]=1,v[1]=_,v[2]=0;break;case 1:v[0]=y,v[1]=1,v[2]=0;break;case 2:v[0]=0,v[1]=1,v[2]=_;break;case 3:v[0]=0,v[1]=y,v[2]=1;break;case 4:v[0]=_,v[1]=0,v[2]=1;break;default:v[0]=1,v[1]=0,v[2]=y}return[255*(h*v[0]+(x=(1-h)*f)),255*(h*v[1]+x),255*(h*v[2]+x)]},i.hcg.hsv=function(l){var c=l[1]/100,f=c+l[2]/100*(1-c),v=0;return f>0&&(v=c/f),[l[0],100*v,100*f]},i.hcg.hsl=function(l){var c=l[1]/100,f=l[2]/100*(1-c)+.5*c,v=0;return f>0&&f<.5?v=c/(2*f):f>=.5&&f<1&&(v=c/(2*(1-f))),[l[0],100*v,100*f]},i.hcg.hwb=function(l){var c=l[1]/100,f=c+l[2]/100*(1-c);return[l[0],100*(f-c),100*(1-f)]},i.hwb.hcg=function(l){var f=1-l[2]/100,v=f-l[1]/100,b=0;return v<1&&(b=(f-v)/(1-v)),[l[0],100*v,100*b]},i.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},i.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},i.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},i.gray.hsl=i.gray.hsv=function(l){return[0,0,l[0]]},i.gray.hwb=function(l){return[0,100,l[0]]},i.gray.cmyk=function(l){return[0,0,0,l[0]]},i.gray.lab=function(l){return[l[0],0,0]},i.gray.hex=function(l){var c=255&Math.round(l[0]/100*255),f=((c<<16)+(c<<8)+c).toString(16).toUpperCase();return"000000".substring(f.length)+f},i.rgb.gray=function(l){return[(l[0]+l[1]+l[2])/3/255*100]}});function Er(t){var e=function Nr(){for(var t={},e=Object.keys(H),r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),n=Object.keys(H[i]),a=n.length,s=0;s<a;s++){var u=n[s],l=e[u];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(u))}return e}function en(t,e){return function(r){return e(t(r))}}function rn(t,e){for(var r=[e[t].parent,t],i=H[e[t].parent][t],n=e[t].parent;e[n].parent;)r.unshift(e[n].parent),i=en(H[e[n].parent][n],i),n=e[n].parent;return i.conversion=r,i}var fe={};
1Object.keys(H).forEach(function(t){fe[t]={},Object.defineProperty(fe[t],"channels",{value:H[t].channels}),Object.defineProperty(fe[t],"labels",{value:H[t].labels});var e=function(t){for(var e=Er(t),r={},i=Object.keys(e),n=i.length,a=0;a<n;a++){var s=i[a];null!==e[s].parent&&(r[s]=rn(s,e))}return r}(t);Object.keys(e).forEach(function(i){var n=e[i];fe[t][i]=function Te(t){var e=function(r){if(null==r)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var i=t(r);if("object"==typeof i)for(var n=i.length,a=0;a<n;a++)i[a]=Math.round(i[a]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}(n),fe[t][i].raw=function Br(t){var e=function(r){return null==r?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)})});var et=fe,ge={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ft={getRgba:q,getHsla:Q,getRgb:function Yt(t){var e=q(t);return e&&e.slice(0,3)},getHsl:function nr(t){var e=Q(t);return e&&e.slice(0,3)},getHwb:ir,getAlpha:function Rr(t){var e=q(t);return e||(e=Q(t))||(e=ir(t))?e[3]:void 0},hexString:function Ur(t,r){return r=void 0!==r&&3===t.length?r:t[3],"#"+Se(t[0])+Se(t[1])+Se(t[2])+(r>=0&&r<1?Se(Math.round(255*r)):"")},rgbString:function Zr(t,e){return e<1||t[3]&&t[3]<1?ar(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}
vendor: 14,022 bytes, line 1
1,rgbaString:ar,percentString:function zr(t,e){return e<1||t[3]&&t[3]<1?or(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:or,hslString:function Hr(t,e){return e<1||t[3]&&t[3]<1?sr(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:sr,hwbString:function qr(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function Gr(t){return lr[t.slice(0,3)]}};function q(t){if(t){var s=[0,0,0],u=1,l=t.match(/^#([a-fA-F0-9]{3,4})$/i),c="";if(l){c=(l=l[1])[3];for(var h=0;h<s.length;h++)s[h]=parseInt(l[h]+l[h],16);c&&(u=Math.round(parseInt(c+c,16)/255*100)/100)}else if(l=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(c=l[2],l=l[1],h=0;h<s.length;h++)s[h]=parseInt(l.slice(2*h,2*h+2),16);c&&(u=Math.round(parseInt(c,16)/255*100)/100)}else if(l=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(h=0;h<s.length;h++)s[h]=parseInt(l[h+1]);u=parseFloat(l[4])}else if(l=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(h=0;h<s.length;h++)s[h]=Math.round(2.55*parseFloat(l[h+1]));u=parseFloat(l[4])}else if(l=t.match(/(\w+)/)){if("transparent"==l[1])return[0,0,0,0];if(!(s=ge[l[1]]))return}for(h=0;h<s.length;h++)s[h]=Bt(s[h],0,255);return u=u||0==u?Bt(u,0,1):1,s[3]=u,s}}function Q(t){if(t){var r=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var i=parseFloat(r[4]);return[Bt(parseInt(r[1]),0,360),Bt(parseFloat(r[2]),0,100),Bt(parseFloat(r[3]),0,100),Bt(isNaN(i)?1:i,0,1)]}}}function ir(t){if(t){var r=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var i=parseFloat(r[4]);return[Bt(parseInt(r[1]),0,360),Bt(parseFloat(r[2]),0,100),Bt(parseFloat(r[3]),0,100),Bt(isNaN(i)?1:i,0,1)]}}}function ar(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function or(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function sr(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function Bt(t,e,r){return Math.min(Math.max(e,t),r)}function Se(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var lr={};for(var ur in ge)lr[ge[ur]]=ur;var Mt=function(t){return t instanceof Mt?t:this instanceof Mt?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=ft.getRgba(t))?this.setValues("rgb",e):(e=ft.getHsla(t))?this.setValues("hsl",e):(e=ft.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):(void 0!==e.c||void 0!==e.cyan)&&this.setValues("cmyk",e)))):new Mt(t);var e};Mt.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return ft.hexString(this.values.rgb)},rgbString:function(){return ft.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return ft.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return ft.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return ft.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return ft.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return ft.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return ft.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],r=0;r<t.length;r++){var i=t[r]/255;e[r]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,r=(e[0]+t)%360;return e[0]=r<0?360+r:r,this.setValues("hsl",e),this},mix:function(t,e){var r=this,i=t,n=void 0===e?.5:e,a=2*n-1,s=r.alpha()-i.alpha(),u=((a*s==-1?a:(a+s)/(1+a*s))+1)/2,l=1-u;return this.rgb(u*r.red()+l*i.red(),u*r.green()+l*i.green(),u*r.blue()+l*i.blue()).alpha(r.alpha()*n+i.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var i,n,t=new Mt,e=this.values,r=t.values;for(var a in e)e.hasOwnProperty(a)&&("[object Array]"===(n={}.toString.call(i=e[a]))?r[a]=i.slice(0):"[object Number]"===n?r[a]=i:console.error("unexpected color value:",i));return t}},Mt.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},Mt.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},Mt.prototype.getValues=function(t){for(var e=this.values,r={},i=0;i<t.length;i++)r[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(r.a=e.alpha),r},Mt.prototype.setValues=function(t,e){var s,l,r=this.values,i=this.spaces,n=this.maxes,a=1;if(this.valid=!0,"alpha"===t)a=e;else if(e.length)r[t]=e.slice(0,t.length),a=e[t.length];else if(void 0!==e[t.charAt(0)]){for(s=0;s<t.length;s++)r[t][s]=e[t.charAt(s)];a=e.a}else if(void 0!==e[i[t][0]]){var u=i[t];for(s=0;s<t.length;s++)r[t][s]=e[u[s]];a=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===a?r.alpha:a)),"alpha"===t)return!1;for(s=0;s<t.length;s++)l=Math.max(0,Math.min(n[t][s],r[t][s])),r[t][s]=Math.round(l);for(var c in i)c!==t&&(r[c]=et[t][c](r[t]));return!0},Mt.prototype.setSpace=function(t,e){var r=e[0];return void 0===r?this.getValues(t):("number"==typeof r&&(r=Array.prototype.slice.call(e)),this.setValues(t,r),this)},Mt.prototype.setChannel=function(t,e,r){var i=this.values[t];return void 0===r?i[e]:(r===i[e]||(i[e]=r,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=Mt);var Pe=Mt;function dr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}var t,Z={noop:function(){},uid:(t=0,function(){return t++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,r){return Z.valueOrDefault(Z.isArray(t)?t[e]:t,r)},callback:function(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)},each:function(t,e,r,i){var n,a,s;if(Z.isArray(t))if(a=t.length,i)for(n=a-1;n>=0;n--)e.call(r,t[n],n);else for(n=0;n<a;n++)e.call(r,t[n],n);else if(Z.isObject(t))for(a=(s=Object.keys(t)).length,n=0;n<a;n++)e.call(r,t[s[n]],s[n])},arrayEquals:function(t,e){var r,i,n,a;if(!t||!e||t.length!==e.length)return!1;for(r=0,i=t.length;r<i;++r)if(a=e[r],(n=t[r])instanceof Array&&a instanceof Array){if(!Z.arrayEquals(n,a))return!1}else if(n!==a)return!1;return!0},clone:function(t){if(Z.isArray(t))return t.map(Z.clone);if(Z.isObject(t)){for(var e=Object.create(t),r=Object.keys(t),i=r.length,n=0;n<i;++n)e[r[n]]=Z.clone(t[r[n]]);return e}return t},_merger:function(t,e,r,i){if(dr(t)){var n=e[t],a=r[t];Z.isObject(n)&&Z.isObject(a)?Z.merge(n,a,i):e[t]=Z.clone(a)}},_mergerIf:function(t,e,r){if(dr(t)){var i=e[t],n=r[t];Z.isObject(i)&&Z.isObject(n)?Z.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=Z.clone(n))}},merge:function(t,e,r){var a,s,u,l,c,i=Z.isArray(e)?e:[e],n=i.length;if(!Z.isObject(t))return t;for(a=(r=r||{}).merger||Z._merger,s=0;s<n;++s)if(Z.isObject(e=i[s]))for(c=0,l=(u=Object.keys(e)).length;c<l;++c)a(u[c],t,e,r);return t},mergeIf:function(t,e){return Z.merge(t,e,{merger:Z._mergerIf})},extend:Object.assign||function(t){return Z.merge(t,[].slice.call(arguments,1),{merger:function(e,r,i){r[e]=i[e]}})},inherits:function(t){var e=this,r=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=r};return i.prototype=e.prototype,r.prototype=new i,r.extend=Z.inherits,t&&Z.extend(r.prototype,t),r.__super__=e.prototype,r},_deprecated:function(t,e,r,i){void 0!==e&&console.warn(t+': "'+r+'" is deprecated. Please use "'+i+'" instead')}},Dt=Z;Z.callCallback=Z.callback,Z.indexOf=function(t,e,r){return Array.prototype.indexOf.call(t,e,r)},Z.getValueOrDefault=Z.valueOrDefault,Z.getValueAtIndexOrDefault=Z.valueAtIndexOrDefault;var ve={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,r=0,i=1;return 0===t?0:1===t?1:(r||(r=.3),i<1?(i=1,e=r/4):e=r/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},easeOutElastic:function(t){var e=1.70158,r=0,i=1;return 0===t?0:1===t?1:(r||(r=.3),i<1?(i=1,e=r/4):e=r/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},easeInOutElastic:function(t){var e=1.70158,r=0,i=1;return 0===t?0:2==(t/=.5)?1:(r||(r=.45),i<1?(i=1,e=r/4):e=r/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-ve.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*ve.easeInBounce(2*t):.5*ve.easeOutBounce(2*t-1)+.5}},X={effects:ve};
vendor: 4,657 bytes, line 1
1Dt.easingEffects=ve;var _t=Math.PI,Vr=_t/180,Jr=2*_t,tt=_t/2,pe=_t/4,cr=2*_t/3,Et={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,r,i,n,a){if(a){var s=Math.min(a,n/2,i/2),u=e+s,l=r+s,c=e+i-s,h=r+n-s;t.moveTo(e,l),u<c&&l<h?(t.arc(u,l,s,-_t,-tt),t.arc(c,l,s,-tt,0),t.arc(c,h,s,0,tt),t.arc(u,h,s,tt,_t)):u<c?(t.moveTo(u,r),t.arc(c,l,s,-tt,tt),t.arc(u,l,s,tt,_t+tt)):l<h?(t.arc(u,l,s,-_t,0),t.arc(u,h,s,0,_t)):t.arc(u,l,s,-_t,_t),t.closePath(),t.moveTo(e,r)}else t.rect(e,r,i,n)},drawPoint:function(t,e,r,i,n,a){var s,u,l,c,h,f=(a||0)*Vr;if(e&&"object"==typeof e&&("[object HTMLImageElement]"===(s=e.toString())||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(i,n),t.rotate(f),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(r)||r<=0)){switch(t.beginPath(),e){default:t.arc(i,n,r,0,Jr),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(f)*r,n-Math.cos(f)*r),f+=cr,t.lineTo(i+Math.sin(f)*r,n-Math.cos(f)*r),f+=cr,t.lineTo(i+Math.sin(f)*r,n-Math.cos(f)*r),t.closePath();break;case"rectRounded":c=r-(h=.516*r),u=Math.cos(f+pe)*c,l=Math.sin(f+pe)*c,t.arc(i-u,n-l,h,f-_t,f-tt),t.arc(i+l,n-u,h,f-tt,f),t.arc(i+u,n+l,h,f,f+tt),t.arc(i-l,n+u,h,f+tt,f+_t),t.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,t.rect(i-c,n-c,2*c,2*c);break}f+=pe;case"rectRot":u=Math.cos(f)*r,l=Math.sin(f)*r,t.moveTo(i-u,n-l),t.lineTo(i+l,n-u),t.lineTo(i+u,n+l),t.lineTo(i-l,n+u),t.closePath();break;case"crossRot":f+=pe;case"cross":u=Math.cos(f)*r,l=Math.sin(f)*r,t.moveTo(i-u,n-l),t.lineTo(i+u,n+l),t.moveTo(i+l,n-u),t.lineTo(i-l,n+u);break;case"star":u=Math.cos(f)*r,l=Math.sin(f)*r,t.moveTo(i-u,n-l),t.lineTo(i+u,n+l),t.moveTo(i+l,n-u),t.lineTo(i-l,n+u),f+=pe,u=Math.cos(f)*r,l=Math.sin(f)*r,t.moveTo(i-u,n-l),t.lineTo(i+u,n+l),t.moveTo(i+l,n-u),t.lineTo(i-l,n+u);break;case"line":u=Math.cos(f)*r,l=Math.sin(f)*r,t.moveTo(i-u,n-l),t.lineTo(i+u,n+l);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(f)*r,n+Math.sin(f)*r)}t.fill(),t.stroke()}},_isPointInArea:function(t,e){var r=1e-6;return t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,r,i){var n=r.steppedLine;if(n){if("middle"===n){var a=(e.x+r.x)/2;t.lineTo(a,i?r.y:e.y),t.lineTo(a,i?e.y:r.y)}else"after"===n&&!i||"after"!==n&&i?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}else r.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?r.controlPointNextX:r.controlPointPreviousX,i?r.controlPointNextY:r.controlPointPreviousY,r.x,r.y):t.lineTo(r.x,r.y)}},hr=Et;Dt.clear=Et.clear,Dt.drawRoundedRectangle=function(t){t.beginPath(),Et.roundedRect.apply(Et,arguments)};var ne={_set:function(t,e){return Dt.merge(this[t]||(this[t]={}),e)}};ne._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var P=ne,Ae=Dt.valueOrDefault;var jr={toLineHeight:function(t,e){var r=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,r,i,n;return Dt.isObject(t)?(e=+t.top||0,r=+t.right||0,i=+t.bottom||0,n=+t.left||0):e=r=i=n=+t||0,{top:e,right:r,bottom:i,left:n,height:e+i,width:n+r}},_parseFont:function(t){var e=P.global,r=Ae(t.fontSize,e.defaultFontSize),i={family:Ae(t.fontFamily,e.defaultFontFamily),lineHeight:Dt.options.toLineHeight(Ae(t.lineHeight,e.defaultLineHeight),r),size:r,style:Ae(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return i.string=function Yr(t){return!t||Dt.isNullOrUndef(t.size)||Dt.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i},resolve:function(t,e,r,i){var a,s,u,n=!0;for(a=0,s=t.length;a<s;++a)if(void 0!==(u=t[a])&&(void 0!==e&&"function"==typeof u&&(u=u(e),n=!1),void 0!==r&&Dt.isArray(u)&&(u=u[r],n=!1),void 0!==u))return i&&!n&&(i.cacheable=!1),u}},fr={_factorize:function(t){var i,e=[],r=Math.sqrt(t);for(i=1;i<r;i++)t%i==0&&(e.push(i),e.push(t/i));return r===(0|r)&&e.push(r),e.sort(function(n,a){return n-a}).pop(),e},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,r=Math.round(e);return t===Math.pow(10,r)?r:e}},Qr=fr;Dt.log10=fr.log10;var g=Dt,ni=hr,ai=jr,oi=Qr,si={getRtlAdapter:function(t,e,r){return t?function(t,e){return{x:function(r){return t+t+e-r},setWidth:function(r){e=r}
vendor: 4,454 bytes, line 1
1,textAlign:function(r){return"center"===r?r:"right"===r?"left":"right"},xPlus:function(r,i){return r-i},leftForLtr:function(r,i){return r-i}}}(e,r):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},overrideTextDirection:function(t,e){var r,i;("ltr"===e||"rtl"===e)&&(i=[(r=t.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=i)},restoreTextDirection:function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}};g.easing=X,g.canvas=ni,g.options=ai,g.math=oi,g.rtl=si;var Ue=function(t){g.extend(this,t),this.initialize.apply(this,arguments)};g.extend(Ue.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=g.extend({},t._model)),t._start={},t},transition:function(t){var e=this,r=e._model,i=e._start,n=e._view;return r&&1!==t?(n||(n=e._view={}),i||(i=e._start={}),function li(t,e,r,i){var a,s,u,l,c,h,f,v,b,n=Object.keys(r);for(a=0,s=n.length;a<s;++a)if(h=r[u=n[a]],e.hasOwnProperty(u)||(e[u]=h),(l=e[u])!==h&&"_"!==u[0]){if(t.hasOwnProperty(u)||(t[u]=l),(f=typeof h)==typeof(c=t[u]))if("string"===f){if((v=Pe(c)).valid&&(b=Pe(h)).valid){e[u]=b.mix(v,i).rgbString();continue}}else if(g.isFinite(c)&&g.isFinite(h)){e[u]=c+(h-c)*i;continue}e[u]=h}}(i,n,r,t),e):(e._view=g.extend({},r),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return g.isNumber(this._model.x)&&g.isNumber(this._model.y)}}),Ue.extend=g.inherits;var Rt=Ue,Ze=Rt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),ze=Ze;Object.defineProperty(Ze.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Ze.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),P._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:g.noop,onComplete:g.noop}});var He={animations:[],request:null,addAnimation:function(t,e,r,i){var a,s,n=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=r,i||(t.animating=!0),a=0,s=n.length;a<s;++a)if(n[a].chart===t)return void(n[a]=e);n.push(e),1===n.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=g.findIndex(this.animations,function(r){return r.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=g.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this;t.advance(),t.animations.length>0&&t.requestAnimationFrame()},advance:function(){for(var e,r,i,n,t=this.animations,a=0;a<t.length;)r=(e=t[a]).chart,i=e.numSteps,n=Math.floor((Date.now()-e.startTime)/e.duration*i)+1,e.currentStep=Math.min(n,i),g.callback(e.render,[r,e],r),g.callback(e.onAnimationProgress,[e],r),e.currentStep>=i?(g.callback(e.onAnimationComplete,[e],r),r.animating=!1,t.splice(a,1)):++a}},ae=g.options.resolve,gr=["push","pop","shift","splice","unshift"];function vr(t,e){var r=t._chartjs;if(r){var i=r.listeners,n=i.indexOf(e);-1!==n&&i.splice(n,1),!(i.length>0)&&(gr.forEach(function(a){delete t[a]}),delete t._chartjs)}}var qe=function(t,e){this.initialize(t,e)};g.extend(qe.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var r=this;r.chart=t,r.index=e,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),r=t.chart,i=r.scales,n=t.getDataset(),a=r.options.scales;(null===e.xAxisID||!(e.xAxisID in i)||n.xAxisID)&&(e.xAxisID=n.xAxisID||a.xAxes[0].id),(null===e.yAxisID||!(e.yAxisID in i)||n.yAxisID)&&(e.yAxisID=n.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID}
1,_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&vr(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,r=e.dataElementType;return r&&new r({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var n,a,t=this,e=t.getMeta(),r=t.getDataset().data||[],i=e.data;for(n=0,a=r.length;n<a;++n)i[n]=i[n]||t.createMetaData(n);e.dataset=e.dataset||t.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,e=t.getDataset(),r=e.data||(e.data=[]);t._data!==r&&(t._data&&vr(t._data,t),r&&Object.isExtensible(r)&&function ui(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),gr.forEach(function(r){var i="onData"+r.charAt(0).toUpperCase()+r.slice(1),n=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value:function(){var a=Array.prototype.slice.call(arguments),s=n.apply(this,a);return g.each(t._chartjs.listeners,function(u){"function"==typeof u[i]&&u[i].apply(u,a)}),s}})}))}(r,t),t._data=r),t.resyncElements()},_configure:function(){var t=this;t._config=g.merge(Object.create(null),[t.chart.options.datasets[t._type],t.getDataset()],{merger:function(e,r,i){"_meta"!==e&&"data"!==e&&g._merger(e,r,i)}})},_update:function(t){var e=this;e._configure(),e._cachedDataOpts=null,e.update(t)},update:g.noop,transition:function(t){for(var e=this.getMeta(),r=e.data||[],i=r.length,n=0;n<i;++n)r[n].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],r=e.length,i=0;for(t.dataset&&t.dataset.draw();i<r;++i)e[i].draw()},getStyle:function(t){var n,e=this,r=e.getMeta(),i=r.dataset;return e._configure(),(!1===(n=i&&void 0===t?e._resolveDatasetElementOptions(i||{}):e._resolveDataElementOptions(r.data[t=t||0]||{},t)).fill||null===n.fill)&&(n.backgroundColor=n.borderColor),n},_resolveDatasetElementOptions:function(t,e){var c,h,f,v,r=this,i=r.chart,n=r._config,a=t.custom||{},s=i.options.elements[r.datasetElementType.prototype._type]||{},u=r._datasetElementOptions,l={},b={chart:i,dataset:r.getDataset(),datasetIndex:r.index,hover:e};for(c=0,h=u.length;c<h;++c)f=u[c],v=e?"hover"+f.charAt(0).toUpperCase()+f.slice(1):f,l[f]=ae([a[v],n[v],s[v]],b);return l},_resolveDataElementOptions:function(t,e){var r=this,i=t&&t.custom,n=r._cachedDataOpts;if(n&&!i)return n;var v,b,_,y,a=r.chart,s=r._config,u=a.options.elements[r.dataElementType.prototype._type]||{},l=r._dataElementOptions,c={},h={chart:a,dataIndex:e,dataset:r.getDataset(),datasetIndex:r.index},f={cacheable:!i};if(i=i||{},g.isArray(l))for(b=0,_=l.length;b<_;++b)c[y=l[b]]=ae([i[y],s[y],u[y]],h,e,f);else for(b=0,_=(v=Object.keys(l)).length;b<_;++b)c[y=v[b]]=ae([i[y],s[l[y]],s[y],u[y]],h,e,f);return f.cacheable&&(r._cachedDataOpts=Object.freeze(c)),c},removeHoverStyle:function(t){g.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],r=t._index,i=t.custom||{},n=t._model,a=g.getHoverColor;t.$previousStyle={backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:n.borderWidth},n.backgroundColor=ae([i.hoverBackgroundColor,e.hoverBackgroundColor,a(n.backgroundColor)],void 0,r),n.borderColor=ae([i.hoverBorderColor,e.hoverBorderColor,a(n.borderColor)],void 0,r),n.borderWidth=ae([i.hoverBorderWidth,e.hoverBorderWidth,n.borderWidth],void 0,r)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var r,i,n,a,s,u,t=this.getMeta().dataset,e={};if(t){for(u=t._model,s=this._resolveDatasetElementOptions(t,!0),r=0,i=(a=Object.keys(s)).length;r<i;++r)e[n=a[r]]=u[n],u[n]=s[n];t.$previousStyle=e}},resyncElements:function(){var t=this,e=t.getMeta(),r=t.getDataset().data,i=e.data.length,n=r.length;n<i?e.data.splice(n,i-n):n>i&&t.insertElements(i,n-i)},insertElements:function(t,e){for(var r=0;r<e;++r)this.addElementAndReset(t+r)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),qe.extend=g.inherits;var Ot=qe,Ut=2*Math.PI;function pr(t,e){var r=e.startAngle,i=e.endAngle,n=e.pixelMargin,a=n/e.outerRadius,s=e.x,u=e.y;t.beginPath(),t.arc(s,u,e.outerRadius,r-a,i+a),e.innerRadius>n?t.arc(s,u,e.innerRadius-n,i+(a=n/e.innerRadius),r-a,!0):t.arc(s,u,n,i+Math.PI/2,r-Math.PI/2),t.closePath(),t.clip()}function ci(t,e,r){var i="inner"===e.borderAlign;i?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),r.fullCircles&&function di(t,e,r,i){var a,n=r.endAngle;
vendor: 6,047 bytes, line 1
1for(i&&(r.endAngle=r.startAngle+Ut,pr(t,r),r.endAngle=n,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=Ut,r.fullCircles--)),t.beginPath(),t.arc(r.x,r.y,r.innerRadius,r.startAngle+Ut,r.startAngle,!0),a=0;a<r.fullCircles;++a)t.stroke();for(t.beginPath(),t.arc(r.x,r.y,e.outerRadius,r.startAngle,r.startAngle+Ut),a=0;a<r.fullCircles;++a)t.stroke()}(t,e,r,i),i&&pr(t,r),t.beginPath(),t.arc(r.x,r.y,e.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.stroke()}P._set("global",{elements:{arc:{backgroundColor:P.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var hi=Rt.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var r=this._view;if(r){for(var i=g.getAngleFromPoint(r,{x:t,y:e}),n=i.angle,a=i.distance,s=r.startAngle,u=r.endAngle;u<s;)u+=Ut;for(;n>u;)n-=Ut;for(;n<s;)n+=Ut;return n>=s&&n<=u&&a>=r.innerRadius&&a<=r.outerRadius}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,r=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*r,y:t.y+Math.sin(e)*r}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,r=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*r,y:t.y+Math.sin(e)*r}},draw:function(){var n,t=this._chart.ctx,e=this._view,r="inner"===e.borderAlign?.33:0,i={x:e.x,y:e.y,innerRadius:e.innerRadius,outerRadius:Math.max(e.outerRadius-r,0),pixelMargin:r,startAngle:e.startAngle,endAngle:e.endAngle,fullCircles:Math.floor(e.circumference/Ut)};if(t.save(),t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+Ut,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),n=0;n<i.fullCircles;++n)t.fill();i.endAngle=i.startAngle+e.circumference%Ut}t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.fill(),e.borderWidth&&ci(t,e,i),t.restore()}}),mr=g.valueOrDefault,Ge=P.global.defaultColor;P._set("global",{elements:{line:{tension:.4,backgroundColor:Ge,borderWidth:3,borderColor:Ge,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var fi=Rt.extend({_type:"line",draw:function(){var c,h,f,t=this,e=t._view,r=t._chart.ctx,i=e.spanGaps,n=t._children.slice(),a=P.global,s=a.elements.line,u=-1,l=t._loop;if(n.length){if(t._loop){for(c=0;c<n.length;++c)if(h=g.previousItem(n,c),!n[c]._view.skip&&h._view.skip){n=n.slice(c).concat(n.slice(0,c)),l=i;break}l&&n.push(n[0])}for(r.save(),r.lineCap=e.borderCapStyle||s.borderCapStyle,r.setLineDash&&r.setLineDash(e.borderDash||s.borderDash),r.lineDashOffset=mr(e.borderDashOffset,s.borderDashOffset),r.lineJoin=e.borderJoinStyle||s.borderJoinStyle,r.lineWidth=mr(e.borderWidth,s.borderWidth),r.strokeStyle=e.borderColor||a.defaultColor,r.beginPath(),(f=n[0]._view).skip||(r.moveTo(f.x,f.y),u=0),c=1;c<n.length;++c)f=n[c]._view,h=-1===u?g.previousItem(n,c):n[u],f.skip||(u!==c-1&&!i||-1===u?r.moveTo(f.x,f.y):g.canvas.lineTo(r,h._view,f),u=c);l&&r.closePath(),r.stroke(),r.restore()}}}),gi=g.valueOrDefault,br=P.global.defaultColor;function _r(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}P._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:br,borderColor:br,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var pi=Rt.extend({_type:"point",inRange:function(t,e){var r=this._view;return!!r&&Math.pow(t-r.x,2)+Math.pow(e-r.y,2)<Math.pow(r.hitRadius+r.radius,2)},inLabelRange:_r,inXRange:_r,inYRange:function vi(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,r=this._chart.ctx,i=e.pointStyle,n=e.rotation,a=e.radius,s=e.x,u=e.y,l=P.global,c=l.defaultColor;e.skip||(void 0===t||g.canvas._isPointInArea(e,t))&&(r.strokeStyle=e.borderColor||c,r.lineWidth=gi(e.borderWidth,l.elements.point.borderWidth),r.fillStyle=e.backgroundColor||c,g.canvas.drawPoint(r,i,a,s,u,n))}}),yr=P.global.defaultColor;function De(t){return t&&void 0!==t.width}function xr(t){var e,r,i,n,a;return De(t)?(e=t.x-(a=t.width/2),r=t.x+a,i=Math.min(t.y,t.base),n=Math.max(t.y,t.base)):(a=t.height/2,e=Math.min(t.x,t.base),r=Math.max(t.x,t.base),i=t.y-a,n=t.y+a),{left:e,top:i,right:r,bottom:n}}function wr(t,e,r){return t===e?r:t===r?e:t}function bi(t,e,r){var a,s,u,l,i=t.borderWidth,n=function mi(t){var e=t.borderSkipped,r={};return e&&(t.horizontal?t.base>t.x&&(e=wr(e,"left","right")):t.base<t.y&&(e=wr(e,"bottom","top")),r[e]=!0),r}(t);return g.isObject(i)?(a=+i.top||0,s=+i.right||0,u=+i.bottom||0,l=+i.left||0):a=s=u=l=+i||0,{t:n.top||a<0?0:a>r?r:a,r:n.right||s<0?0:s>e?e:s,b:n.bottom||u<0?0:u>r?r:u,l:n.left||l<0?0:l>e?e:l}}function me(t,e,r){var i=null===e,n=null===r,a=!(!t||i&&n)&&xr(t);return a&&(i||e>=a.left&&e<=a.right)&&(n||r>=a.top&&r<=a.bottom)}P._set("global",{elements:{rectangle:{backgroundColor:yr,borderColor:yr,borderSkipped:"bottom",borderWidth:0}}});var yi=Rt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,r=function _i(t){var e=xr(t),r=e.right-e.left,i=e.bottom-e.top,n=bi(t,r/2,i/2);return{outer:{x:e.left,y:e.top,w:r,h:i},inner:{x:e.left+n.l,y:e.top+n.t,w:r-n.l-n.r,h:i-n.t-n.b}}}(e),i=r.outer,n=r.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),(i.w!==n.w||i.h!==n.h)&&(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(n.x,n.y,n.w,n.h),t.fill("evenodd"),t.restore(
vendor: 9,456 bytes, line 1
1))},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return me(this._view,t,e)},inLabelRange:function(t,e){var r=this._view;return De(r)?me(r,t,null):me(r,null,e)},inXRange:function(t){return me(this._view,t,null)},inYRange:function(t){return me(this._view,null,t)},getCenterPoint:function(){var e,r,t=this._view;return De(t)?(e=t.x,r=(t.y+t.base)/2):(e=(t.x+t.base)/2,r=t.y),{x:e,y:r}},getArea:function(){var t=this._view;return De(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),yt={},wi=fi,Ci=pi,ki=yi;yt.Arc=hi,yt.Line=wi,yt.Point=Ci,yt.Rectangle=ki;var be=g._deprecated,oe=g.valueOrDefault;function Ti(t,e,r){var u,l,i=r.barThickness,n=e.stackCount,a=e.pixels[t],s=g.isNullOrUndef(i)?function Mi(t,e){var i,n,a,s,r=t._length;for(a=1,s=e.length;a<s;++a)r=Math.min(r,Math.abs(e[a]-e[a-1]));for(a=0,s=t.getTicks().length;a<s;++a)n=t.getPixelForTick(a),r=a>0?Math.min(r,Math.abs(n-i)):r,i=n;return r}(e.scale,e.pixels):-1;return g.isNullOrUndef(i)?(u=s*r.categoryPercentage,l=r.barPercentage):(u=i*n,l=1),{chunk:u/n,ratio:l,start:a-u/2}}P._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),P._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Cr=Ot.extend({dataElementType:yt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,r,t=this;Ot.prototype.initialize.apply(t,arguments),(e=t.getMeta()).stack=t.getDataset().stack,e.bar=!0,r=t._getIndexScale().options,be("bar chart",r.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),be("bar chart",r.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),be("bar chart",r.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),be("bar chart",t._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),be("bar chart",r.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var i,n,e=this,r=e.getMeta().data;for(e._ruler=e.getRuler(),i=0,n=r.length;i<n;++i)e.updateElement(r[i],i,t)},updateElement:function(t,e,r){var i=this,n=i.getMeta(),a=i.getDataset(),s=i._resolveDataElementOptions(t,e);t._xScale=i.getScaleForId(n.xAxisID),t._yScale=i.getScaleForId(n.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderSkipped:s.borderSkipped,borderWidth:s.borderWidth,datasetLabel:a.label,label:i.chart.data.labels[e]},g.isArray(a.data[e])&&(t._model.borderSkipped=null),i._updateElementGeometry(t,e,r,s),t.pivot()},_updateElementGeometry:function(t,e,r,i){var n=this,a=t._model,s=n._getValueScale(),u=s.getBasePixel(),l=s.isHorizontal(),c=n._ruler||n.getRuler(),h=n.calculateBarValuePixels(n.index,e,i),f=n.calculateBarIndexPixels(n.index,e,c,i);a.horizontal=l,a.base=r?u:h.base,a.x=l?r?u:h.head:f.center,a.y=l?f.center:r?u:h.head,a.height=l?f.size:void 0,a.width=l?void 0:f.size},_getStacks:function(t){var u,l,r=this._getIndexScale(),i=r._getMatchingVisibleMetas(this._type),n=r.options.stacked,a=i.length,s=[];for(u=0;u<a&&(l=i[u],(!1===n||-1===s.indexOf(l.stack)||void 0===n&&void 0===l.stack)&&s.push(l.stack),l.index!==t);++u);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var r=this._getStacks(t),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i},getRuler:function(){var i,n,t=this,e=t._getIndexScale(),r=[];for(i=0,n=t.getMeta().data.length;i<n;++i)r.push(e.getPixelForValue(null,i,t.index));return{pixels:r,start:e._startPixel,end:e._endPixel,stackCount:t.getStackCount(),scale:e}},calculateBarValuePixels:function(t,e,r){var x,k,T,S,N,F,V,i=this,n=i.chart,a=i._getValueScale(),s=a.isHorizontal(),u=n.data.datasets,l=a._getMatchingVisibleMetas(i._type),c=a._parseValue(u[t].data[e]),h=r.minBarLength,f=a.options.stacked,v=i.getMeta().stack,b=void 0===c.start?0:c.max>=0&&c.min>=0?c.min:c.max,_=void 0===c.start?c.end:c.max>=0&&c.min>=0?c.max-c.min:c.min-c.max,y=l.length;if(f||void 0===f&&void 0!==v)for(x=0;x<y&&(k=l[x]).index!==t;++x)k.stack===v&&(T=void 0===(V=a._parseValue(u[k.index].data[e])).start?V.end:V.min>=0&&V.max>=0?V.max:V.min,(c.min<0&&T<0||c.max>=0&&T>0)&&(b+=T));return S=a.getPixelForValue(b),F=(N=a.getPixelForValue(b+_))-S,void 0!==h&&Math.abs(F)<h&&(F=h,N=_>=0&&!s||_<0&&s?S-h:S+h),{size:F,base:S,head:N,center:N+F/2}},calculateBarIndexPixels:function(t,e,r,i){var a="flex"===i.barThickness?function Si(t,e,r){var l,i=e.pixels,n=i[t],a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,u=r.categoryPercentage;return null===a&&(a=n-(null===s?e.end-e.start:s-n)),null===s&&(s=n+n-a),l=n-(n-Math.min(a,s))/2*u,{chunk:Math.abs(s-a)/2*u/e.stackCount,ratio:r.barPercentage,start:l}}(e,r,i):Ti(e,r,i),s=this.getStackIndex(t,this.getMeta().stack),u=a.start+a.chunk*s+a.chunk/2,l=Math.min(oe(i.maxBarThickness,1/0),a.chunk*a.ratio);return{base:u-l/2,head:u+l/2,center:u,size:l}},draw:function(){var t=this,e=t.chart,r=t._getValueScale(),i=t.getMeta().data,n=t.getDataset(),a=i.length,s=0;for(g.canvas.clipArea(e.ctx,e.chartArea);s<a;++s){var u=r._parseValue(n.data[s]);!isNaN(u.min)&&!isNaN(u.max)&&i[s].draw()}g.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var t=this,e=g.extend({},Ot.prototype._resolveDataElementOptions.apply(t,arguments)),r=t._getIndexScale().options,i=t._getValueScale().options;return e.barPercentage=oe(r.barPercentage,e.barPercentage),e.barThickness=oe(r.barThickness,e.barThickness),e.categoryPercentage=oe(r.categoryPercentage,e.categoryPercentage),e.maxBarThickness=oe(r.maxBarThickness,e.maxBarThickness),e.minBarLength=oe(i.minBarLength,e.minBarLength),e}}),Ve=g.valueOrDefault,Pi=g.options.resolve;P._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": ("+t.xLabel+", "+t.yLabel+", "+e.datasets[t.datasetIndex].data[t.index].r+")"}}}});var Ai=Ot.extend({dataElementType:yt.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,r=e.getMeta();g.each(r.data,function(n,a){e.updateElement(n,a,t)})},updateElement:function(t,e,r){var i=this,n=i.getMeta(),a=t.custom||{},s=i.getScaleForId(n.xAxisID),u=i.getScaleForId(n.yAxisID),l=i._resolveDataElementOptions(t,e),c=i.getDataset().data[e],h=i.index,f=r?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof c?c:NaN,e,h),v=r?u.getBasePixel():u.getPixelForValue(c,e,h);t._xScale=s,t._yScale=u,t._options=l,t._datasetIndex=h,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:r?0:l.radius,skip:a.skip||isNaN(f)||isNaN(v),x:f,y:v},t.pivot()},setHoverStyle:function(t){var e=t._model,r=t._options,i=g.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Ve(r.hoverBackgroundColor,i(r.backgroundColor)),e.borderColor=Ve(r.hoverBorderColor,i(r.borderColor)),e.borderWidth=Ve(r.hoverBorderWidth,r.borderWidth),e.radius=r.radius+r.hoverRadius},_resolveDataElementOptions:function(t,e){var r=this,i=r.chart,n=r.getDataset(),a=t.custom||{},s=n.data[e]||{},u=Ot.prototype._resolveDataElementOptions.apply(r,arguments),l={chart:i,dataIndex:e,dataset:n,datasetIndex:r.index};return r._cachedDataOpts===u&&(u=g.extend({},u)),u.radius=Pi([a.radius,s.r,r._config.radius,i.options.elements.point.radius],l,e),u}}),Oe=g.valueOrDefault,$t=Math.PI,qt=2*$t,mt=$t/2;P._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var a,s,u,e=document.createElement("ul"),r=t.data,i=r.datasets,n=r.labels;if(e.setAttribute("class",t.id+"-legend"),i.length)for(a=0,s=i[0].data.length;a<s;++a)(u=e.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[0].backgroundColor[a],n[a]&&u.appendChild(document.createTextNode(n[a]));return e.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(r,i){var n=t.getDatasetMeta(0),a=n.controller.getStyle(i);return{text:r,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(e.datasets[0].data[i])||n.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,a,s,r=e.index,i=this.chart;for(n=0,a=(i.data.datasets||[]).length;n<a;++n)(s=i.getDatasetMeta(n)).data[r]&&(s.data[r].hidden=!s.data[r].hidden);i.update()}},cutoutPercentage:50,rotation:-mt,circumference:qt,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var r=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return g.isArray(r)?(r=r.slice())[0]+=i:r+=i,r}}}});var Ie=Ot.extend({dataElementType:yt.Arc,linkScales:g.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,r=0;r<t;++r)this.chart.isDatasetVisible(r)&&++e;return e},update:function(t){var x,k,e=this,r=e.chart,i=r.chartArea,n=r.options,a=1,s=1,u=0,l=0,c=e.getMeta(),h=c.data,f=n.cutoutPercentage/100||0,v=n.circumference,b=e._getRingWeight(e.index);if(v<qt){var T=n.rotation%qt,S=(T+=T>=$t?-qt:T<-$t?qt:0)+v,N=Math.cos(T),F=Math.sin(T),V=Math.cos(S),z=Math.sin(S),j=T<=0&&S>=0||S>=qt,K=T<=mt&&S>=mt||S>=qt+mt,ct=T<=-mt&&S>=-mt||S>=$t+mt,ut=T===-$t||S>=$t?-1:Math.min(N,N*f,V,V*f),bt=ct?-1:Math.min(F,F*f,z,z*f),We=j?1:Math.max(N,N*f,V,V*f),Be=K?1:Math.max(F,F*f,z,z*f);a=(We-ut)/2,s=(Be-bt)/2,u=-(We+ut)/2,l=-(Be+bt)/2}for(x=0,k=h.length;x<k;++x)h[x]._options=e._resolveDataElementOptions(h[x],x);for(r.borderWidth=e.getMaxBorderWidth(),r.outerRadius=Math.max(Math.min((i.right-i.left-r.borderWidth)/a,(i.bottom-i.top-r.borderWidth)/s)/2,0),r.innerRadius=Math.max(r.outerRadius*f,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(e._getVisibleDatasetWeightTotal()||1),r.offsetX=u*r.outerRadius,r.offsetY=l*r.outerRadius,c.total=e.calculateTotal(),e.outerRadius=r.outerRadius-r.radiusLength*e._getRingWeightOffset(e.index),e.innerRadius=Math.max(e.outerRadius-r.radiusLength*b,0),x=0,k=h.length;x<k;++x)e.updateElement(h[x],x,t)},updateElement:function(t,e,r){var i=this,n=i.chart,a=n.chartArea,s=n.options,u=s.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,h=s.rotation,f=s.rotation,v=i.getDataset(),b=r&&u.animateRotate||t.hidden?0:i.calculateCircumference(v.data[e])*(s.circumference/qt),x=t._options||{};g.extend(t,{_datasetIndex:i.index,_index:e,_model:{backgroundColor:x.backgroundColor,borderColor:x.borderColor,borderWidth:x.borderWidth,borderAlign:x.borderAlign,x:l+n.offsetX,y:c+n.offsetY,startAngle:h,endAngle:f,circumference:b,outerRadius:r&&u.animateScale?0:i.outerRadius,innerRadius:r&&u.animateScale?0:i.innerRadius,label:g.valueAtIndexOrDefault(v.label,e,n.data.labels[e])}});var k=t._model;(!r||!u.animateRotate)&&(k.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,k.endAngle=k.startAngle+k.circumference),t.pivot()},calculateTotal:function(){var i,t=this.getDataset(),e=this.getMeta(),r=0;return g.each(e.data,function(n,a){i=t.data[a],!isNaN(i)&&!n.hidden&&(r+=Math.abs(i))}),r},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?qt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var n,a,s,u,l,c,h,f,r=0,i=this.chart;if(!t)for(n=0,a=i.data.datasets.length;n<a;++n)if(i.isDatasetVisible(n)){t=(s=i.getDatasetMeta(n)).data,n!==this.index&&(l=s.controller);break}if(!t)return 0;for(n=0,a=t.length;n<a;++n)u=t[n],l?(l._configure(),c=l._resolveDataElementOptions(u,n)):c=u._options,"inner"!==c.borderAlign&&(r=(f=c.hoverBorderWidth)>(r=(h=c.borderWidth)>r?h:r)?f:r);return r},setHoverStyle:function(t){var e=t._model,r=t._options,i=g.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Oe(r.hoverBackgroundColor,i(r.backgroundColor)),e.borderColor=Oe(r.hoverBorderColor,i(r.borderColor)),e.borderWidth=Oe(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e},_getRingWeight:function(t){return Math.max(Oe(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});P._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),P._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var an=Cr.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Gt=g.valueOrDefault,Di=g.options.resolve,Je=g.canvas._isPointInArea;function p(t,e){var r=t&&t.options.ticks||{},i=r.reverse,n=void 0===r.min?e:0,a=void 0===r.max?e:0;return{start:i?a:n,end:i?n:a}}function w(t,e,r){var i=r/2,n=p(t,i),a=p(e,i);return{top:a.end,right:n.end,bottom:a.start,left:n.start}}function d(t){var e,r,i,n;return g.isObject(t)?(e=t.top,r=t.right,i=t.bottom,n=t.left):e=r=i=n=t,{top:e,right:r,bottom:i,left:n}}P._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var m=Ot.extend({datasetElementType:yt.Line,dataElementType:yt.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var l,c,e=this,r=e.getMeta(),i=r.dataset,n=r.data||[],s=e._config,u=e._showLine=Gt(s.showLine,e.chart.options.showLines);for(e._xScale=e.getScaleForId(r.xAxisID),e._yScale=e.getScaleForId(r.yAxisID),u&&(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i._scale=e._yScale,i._datasetIndex=e.index,i._children=n,i._model=e._resolveDatasetElementOptions(i),i.pivot()),l=0,c=n.length;l<c;++l)e.updateElement(n[l],l,t);for(u&&0!==i._model.tension&&e.updateBezierControlPoints(),l=0,c=n.length;l<c;++l)n[l].pivot()},updateElement:function(t,e,r){var v,b,i=this,n=i.getMeta(),a=t.custom||{},s=i.getDataset(),u=i.index,l=s.data[e],c=i._xScale,h=i._yScale,f=n.dataset._model,_=i._resolveDataElementOptions(t,e);v=c.getPixelForValue("object"==typeof l?l:NaN,e,u),b=r?h.getBasePixel():i.calculatePointY(l,e,u),t._xScale=c,t._yScale=h,t._options=_,t._datasetIndex=u,t._index=e,t._model={x:v,y:b,skip:a.skip||isNaN(v)||isNaN(b),radius:_.radius,pointStyle:_.pointStyle,rotation:_.rotation,backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,tension:Gt(a.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:_.hitRadius}},_resolveDatasetElementOptions:function(t){var e=this,r=e._config,i=t.custom||{},n=e.chart.options,a=n.elements.line,s=Ot.prototype._resolveDatasetElementOptions.apply(e,arguments);return s.spanGaps=Gt(r.spanGaps,n.spanGaps),s.tension=Gt(r.lineTension,a.tension),s.steppedLine=Di([i.steppedLine,r.steppedLine,a.stepped]),s.clip=d(Gt(r.clip,w(e._xScale,e._yScale,s.borderWidth))),s},calculatePointY:function(t,e,r){var l,h,f,v,b,_,n=this.chart,a=this._yScale,s=0,u=0;if(a.options.stacked){for(v=+a.getRightValue(t),_=(b=n._getSortedVisibleDatasetMetas()).length,l=0;l<_&&(h=b[l]).index!==r;++l)"line"===h.type&&h.yAxisID===a.id&&((f=+a.getRightValue(n.data.datasets[h.index].data[e]))<0?u+=f||0:s+=f||0);return a.getPixelForValue(v<0?u+v:s+v)}return a.getPixelForValue(t)},updateBezierControlPoints:function(){var s,u,l,c,e=this.chart,r=this.getMeta(),i=r.dataset._model,n=e.chartArea,a=r.data||[];function h(f,v,b){return Math.max(Math.min(f,b),v)}if(i.spanGaps&&(a=a.filter(function(f){return!f._model.skip})),"monotone"===i.cubicInterpolationMode)g.splineCurveMonotone(a);else for(s=0,u=a.length;s<u;++s)l=a[s]._model,c=g.splineCurve(g.previousItem(a,s)._model,l,g.nextItem(a,s)._model,i.tension),l.controlPointPreviousX=c.previous.x,l.controlPointPreviousY=c.previous.y,l.controlPointNextX=c.next.x,l.controlPointNextY=c.next.y;if(e.options.elements.line.capBezierPoints)for(s=0,u=a.length;s<u;++s)Je(l=a[s]._model,n)&&(s>0&&Je(a[s-1]._model,n)&&(l.controlPointPreviousX=h(l.controlPointPreviousX,n.left,n.right),l.controlPointPreviousY=h(l.controlPointPreviousY,n.top,n.bottom)),s<a.length-1&&Je(a[s+1]._model,n)&&(l.controlPointNextX=h(l.controlPointNextX,n.left,n.right),l.controlPointNextY=h(l.controlPointNextY,n.top,n.bottom)))},draw:function(){var l,t=this,e=t.chart,r=t.getMeta(),i=r.data||[],n=e.chartArea,a=e.canvas,s=0,u=i.length;for(t._showLine&&(g.canvas.clipArea(e.ctx,{left:!1===(l=r.dataset._model.clip).left?0:n.left-l.left,right:!1===l.right?a.width:n.right+l.right,top:!1===l.top?0:n.top-l.top,bottom:!1===l.bottom?a.height:n.bottom+l.bottom}),r.dataset.draw(),g.canvas.unclipArea(e.ctx));s<u;++s)i[s].draw(n)},setHoverStyle:function(t){var e=t._model,r=t._options,i=g.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Gt(r.hoverBackgroundColor,i(r.backgroundColor)),e.borderColor=Gt(r.hoverBorderColor,i(r.borderColor)),e.borderWidth=Gt(r.hoverBorderWidth,r.borderWidth),e.radius=Gt(r.hoverRadius,r.radius)}}),C=g.options.resolve;P._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var a,s,u,e=document.createElement("ul"),r=t.data,i=r.datasets,n=r.labels;if(e.setAttribute("class",t.id+"-legend"),i.length)for(a=0,s=i[0].data.length;a<s;++a)(u=e.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[0].backgroundColor[a],n[a]&&u.appendChild(document.createTextNode(n[a]));return e.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(r,i){var n=t.getDatasetMeta(0),a=n.controller.getStyle(i);return{text:r,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(e.datasets[0].data[i])||n.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,a,s,r=e.index,i=this.chart;for(n=0,a=(i.data.datasets||[]).length;n<a;++n)(s=i.getDatasetMeta(n)).data[r].hidden=!s.data[r].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var M=Ot.extend({dataElementType:yt.Arc,linkScales:g.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var l,c,h,e=this,r=e.getDataset(),i=e.getMeta(),n=e.chart.options.startAngle||0,a=e._starts=[],s=e._angles=[],u=i.data;for(e._updateRadius(),i.count=e.countVisibleElements(),l=0,c=r.data.length;l<c;l++)a[l]=n,h=e._computeAngle(l),s[l]=h,n+=h;for(l=0,c=u.length;l<c;++l)u[l]._options=e._resolveDataElementOptions(u[l],l),e.updateElement(u[l],l,t)},_updateRadius:function(){var t=this,e=t.chart,r=e.chartArea,i=e.options,n=Math.min(r.right-r.left,r.bottom-r.top);e.outerRadius=Math.max(n/2,0),e.innerRadius=Math.max(i.cutoutPercentage?e.outerRadius/100*i.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,r){var i=this,n=i.chart,a=i.getDataset(),s=n.options,u=s.animation,l=n.scale,c=n.data.labels,h=l.xCenter,f=l.yCenter,v=s.startAngle,b=t.hidden?0:l.getDistanceFromCenterForValue(a.data[e]),_=i._starts[e],y=_+(t.hidden?0:i._angles[e]),x=u.animateScale?0:l.getDistanceFromCenterForValue(a.data[e]),k=t._options||{};g.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{backgroundColor:k.backgroundColor,borderColor:k.borderColor,borderWidth:k.borderWidth,borderAlign:k.borderAlign,x:h,y:f,innerRadius:0,outerRadius:r?x:b,startAngle:r&&u.animateRotate?v:_,endAngle:r&&u.animateRotate?v:y,label:g.valueAtIndexOrDefault(c,e,c[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),r=0;return g.each(e.data,function(i,n){!isNaN(t.data[n])&&!i.hidden&&r++}),r},setHoverStyle:function(t){var e=t._model,r=t._options,i=g.getHoverColor,n=g.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=n(r.hoverBackgroundColor,i(r.backgroundColor)),e.borderColor=n(r.hoverBorderColor,i(r.borderColor)),e.borderWidth=n(r.hoverBorderWidth,r.borderWidth)},_computeAngle:function(t){var e=this,r=this.getMeta().count,i=e.getDataset(),n=e.getMeta();return isNaN(i.data[t])||n.data[t].hidden?0:C([e.chart.options.elements.arc.angle,2*Math.PI/r],{chart:e.chart,dataIndex:t,dataset:i,datasetIndex:e.index},t)}});P._set("pie",g.clone(P.doughnut)),P._set("pie",{cutoutPercentage:0});var A=Ie,st=g.valueOrDefault;P._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var D=Ot.extend({datasetElementType:yt.Line,dataElementType:yt.Point,linkScales:g.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var u,l,e=this,r=e.getMeta(),i=r.dataset,n=r.data||[],a=e.chart.scale,s=e._config;for(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i._scale=a,i._datasetIndex=e.index,i._children=n,i._loop=!0,i._model=e._resolveDatasetElementOptions(i),i.pivot(),u=0,l=n.length;u<l;++u)e.updateElement(n[u],u,t);for(e.updateBezierControlPoints(),u=0,l=n.length;u<l;++u)n[u].pivot()},updateElement:function(t,e,r){var i=this,n=t.custom||{},a=i.getDataset(),s=i.chart.scale,u=s.getPointPositionForValue(e,a.data[e]),l=i._resolveDataElementOptions(t,e),c=i.getMeta().dataset._model,h=r?s.xCenter:u.x,f=r?s.yCenter:u.y;t._scale=s,t._options=l,t._datasetIndex=i.index,t._index=e,t._model={x:h,y:f,skip:n.skip||isNaN(h)||isNaN(f),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:st(n.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,r=t.chart.options,i=Ot.prototype._resolveDatasetElementOptions.apply(t,arguments);return i.spanGaps=st(e.spanGaps,r.spanGaps),i.tension=st(e.lineTension,r.elements.line.tension),i},updateBezierControlPoints:function(){var n,a,s,u,e=this.getMeta(),r=this.chart.chartArea,i=e.data||[];function l(c,h,f){return Math.max(Math.min(c,f),h)}for(e.dataset._model.spanGaps&&(i=i.filter(function(c){return!c._model.skip})),n=0,a=i.length;n<a;++n)s=i[n]._model,u=g.splineCurve(g.previousItem(i,n,!0)._model,s,g.nextItem(i,n,!0)._model,s.tension),s.controlPointPreviousX=l(u.previous.x,r.left,r.right),s.controlPointPreviousY=l(u.previous.y,r.top,r.bottom),s.controlPointNextX=l(u.next.x,r.left,r.right),s.controlPointNextY=l(u.next.y,r.top,r.bottom)},setHoverStyle:function(t){var e=t._model,r=t._options,i=g.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=st(r.hoverBackgroundColor,i(r.backgroundColor)),e.borderColor=st(r.hoverBorderColor,i(r.borderColor)),e.borderWidth=st(r.hoverBorderWidth,r.borderWidth),e.radius=st(r.hoverRadius,r.radius)}});P._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),P._set("global",{datasets:{scatter:{showLine:!1}}});var Y={bar:Cr,bubble:Ai,doughnut:Ie,horizontalBar:an,line:m,polarArea:M,pie:A,radar:D,scatter:m};function gt(t,e){return t.native?{x:t.x,y:t.y}:g.getRelativePosition(t,e)}function dt(t,e){var i,n,a,s,u,l,r=t._getSortedVisibleDatasetMetas();for(n=0,s=r.length;n<s;++n)for(a=0,u=(i=r[n].data).length;a<u;++a)(l=i[a])._view.skip||e(l)}function xt(t,e){var r=[];return dt(t,function(i){i.inRange(e.x,e.y)&&r.push(i)}),r}function lt(t,e,r,i){var n=Number.POSITIVE_INFINITY,a=[];return dt(t,function(s){if(!r||s.inRange(e.x,e.y)){var u=s.getCenterPoint(),l=i(e,u);l<n?(a=[s],n=l):l===n&&a.push(s)}}),a}function St(t){var e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(i,n){var a=e?Math.abs(i.x-n.x):0,s=r?Math.abs(i.y-n.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function nt(t,e,r){var i=gt(e,t);r.axis=r.axis||"x";var n=St(r.axis),a=r.intersect?xt(t,i):lt(t,i,!1,n),s=[];return a.length?(t._getSortedVisibleDatasetMetas().forEach(function(u){var l=u.data[a[0]._index];l&&!l._view.skip&&s.push(l)}),s):[]}var wt={modes:{single:function(t,e){var r=gt(e,t),i=[];return dt(t,function(n){if(n.inRange(r.x,r.y))return i.push(n),i}),i.slice(0,1)},label:nt,index:nt,dataset:function(t,e,r){var i=gt(e,t);r.axis=r.axis||"xy";var n=St(r.axis),a=r.intersect?xt(t,i):lt(t,i,!1,n);return a.length>0&&(a=t.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(t,e){return nt(t,e,{intersect:!1})},point:function(t,e){return xt(t,gt(e,t))},nearest:function(t,e,r){var i=gt(e,t);r.axis=r.axis||"xy";var n=St(r.axis);return lt(t,i,r.intersect,n)},x:function(t,e,r){var i=gt(e,t),n=[],a=!1;return dt(t,function(s){s.inXRange(i.x)&&n.push(s),s.inRange(i.x,i.y)&&(a=!0)}),r.intersect&&!a&&(n=[]),n},y:function(t,e,r){var i=gt(e,t),n=[],a=!1;return dt(t,function(s){s.inYRange(i.y)&&n.push(s),s.inRange(i.x,i.y)&&(a=!0)}),r.intersect&&!a&&(n=[]),n}}},Kt=g.extend;function Pt(t,e){return g.where(t,function(r){return r.pos===e})}function I(t,e){return t.sort(function(r,i){var n=e?i:r,a=e?r:i;return n.weight===a.weight?n.index-a.index:n.weight-a.weight})}function rt(t,e,r,i){return Math.max(t[r],e[r])+Math.max(t[i],e[i])}function Wt(t,e,r){var a,s,i=r.box,n=t.maxPadding;if(r.size&&(t[r.pos]-=r.size),r.size=r.horizontal?i.height:i.width,t[r.pos]+=r.size,i.getPadding){var u=i.getPadding();
1n.top=Math.max(n.top,u.top),n.left=Math.max(n.left,u.left),n.bottom=Math.max(n.bottom,u.bottom),n.right=Math.max(n.right,u.right)}if(a=e.outerWidth-rt(n,t,"left","right"),s=e.outerHeight-rt(n,t,"top","bottom"),a!==t.w||s!==t.h){t.w=a,t.h=s;var l=r.horizontal?[a,t.w]:[s,t.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function Vt(t,e){var r=e.maxPadding;return function i(n){var a={left:0,top:0,right:0,bottom:0};return n.forEach(function(s){a[s]=Math.max(e[s],r[s])}),a}(t?["left","right"]:["top","bottom"])}function Zt(t,e,r){var n,a,s,u,l,c,i=[];for(n=0,a=t.length;n<a;++n)(u=(s=t[n]).box).update(s.width||e.w,s.height||e.h,Vt(s.horizontal,e)),Wt(e,r,s)&&(c=!0,i.length&&(l=!0)),u.fullWidth||i.push(s);return l&&Zt(i,e,r)||c}function ye(t,e,r){var s,u,l,c,i=r.padding,n=e.x,a=e.y;for(s=0,u=t.length;s<u;++s)c=(l=t[s]).box,l.horizontal?(c.left=c.fullWidth?i.left:e.left,c.right=c.fullWidth?r.outerWidth-i.right:e.left+e.w,c.top=a,c.bottom=a+c.height,c.width=c.right-c.left,a=c.bottom):(c.left=n,c.right=n+c.width,c.top=e.top,c.bottom=e.top+e.h,c.height=c.bottom-c.top,n=c.right);e.x=n,e.y=a}P._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var J={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure:function(t,e,r){for(var s,i=["fullWidth","position","weight"],n=i.length,a=0;a<n;++a)r.hasOwnProperty(s=i[a])&&(e[s]=r[s])},update:function(t,e,r){if(t){var n=g.options.toPadding((t.options.layout||{}).padding),a=e-n.width,s=r-n.height,u=function Ct(t){var e=function jt(t){var r,i,n,e=[];for(r=0,i=(t||[]).length;r<i;++r)e.push({index:r,box:n=t[r],pos:n.position,horizontal:n.isHorizontal(),weight:n.weight});return e}(t),r=I(Pt(e,"left"),!0),i=I(Pt(e,"right")),n=I(Pt(e,"top"),!0),a=I(Pt(e,"bottom"));return{leftAndTop:r.concat(n),rightAndBottom:i.concat(a),chartArea:Pt(e,"chartArea"),vertical:r.concat(i),horizontal:n.concat(a)}}(t.boxes),l=u.vertical,c=u.horizontal,h=Object.freeze({outerWidth:e,outerHeight:r,padding:n,availableWidth:a,vBoxMaxWidth:a/2/l.length,hBoxMaxHeight:s/2}),f=Kt({maxPadding:Kt({},n),w:a,h:s,x:n.left,y:n.top},n);(function _e(t,e){var r,i,n;for(r=0,i=t.length;r<i;++r)(n=t[r]).width=n.horizontal?n.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,n.height=n.horizontal&&e.hBoxMaxHeight})(l.concat(c),h),Zt(l,f,h),Zt(c,f,h)&&Zt(l,f,h),function Xt(t){var e=t.maxPadding;function r(i){var n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}(f),ye(u.leftAndTop,f,h),f.x+=f.w,f.y+=f.h,ye(u.rightAndBottom,f,h),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h},g.each(u.chartArea,function(v){var b=v.box;Kt(b,t.chartArea),b.update(f.w,f.h)})}}},ot=function o(t){return t&&t.default||t}(Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"})),E="$chartjs",kt="chartjs-",zt=kt+"size-monitor",Jt=kt+"render-monitor",se=["animationstart","webkitAnimationStart"],Fe={touchstart:"mousedown",touchmove:"mou
1semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function te(t,e){var r=g.getStyle(t,e),i=r&&r.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var on=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(r){}return t}()&&{passive:!0};function Ye(t,e,r){t.addEventListener(e,r,on)}function Oi(t,e,r){t.removeEventListener(e,r,on)}function Ii(t,e,r,i,n){return{type:t,chart:e,native:n||null,x:void 0!==r?r:null,y:void 0!==i?i:null}}function je(t){var e=document.createElement("div");return e.className=t||"",e}function qn(t,e,r){var i=t[E]||(t[E]={}),n=i.resizer=function Zn(t){var e=1e6,r=je(zt),i=je(zt+"-expand"),n=je(zt+"-shrink");i.appendChild(je()),n.appendChild(je()),r.appendChild(i),r.appendChild(n),r._reset=function(){i.scrollLeft=e,i.scrollTop=e,n.scrollLeft=e,n.scrollTop=e};var a=function(){r._reset(),t()};return Ye(i,"scroll",a.bind(i,"expand")),Ye(n,"scroll",a.bind(n,"shrink")),r}(function Un(t,e){var r=!1,i=[];return function(){i=Array.prototype.slice.call(arguments),e=e||this,r||(r=!0,g.requestAnimFrame.call(window,function(){r=!1,t.apply(e,i)}))}}(function(){if(i.resizer){var a=r.options.maintainAspectRatio&&t.parentNode,s=a?a.clientWidth:0;e(Ii("resize",r)),a&&a.clientWidth<s&&r.canvas&&e(Ii("resize",r))}}));!function zn(t,e){var r=t[E]||(t[E]={}),i=r.renderProxy=function(n){"chartjs-render-animation"===n.animationName&&e()};g.each(se,function(n){Ye(t,n,i)}),r.reflow=!!t.offsetParent,t.classList.add(Jt)}(t,function(){if(i.resizer){var a=t.parentNode;a&&a!==n.parentNode&&a.insertBefore(n,a.firstChild),n._reset()}})}function Gn(t){var e=t[E]||{},r=e.resizer;delete e.resizer,function Hn(t){var e=t[E]||{},r=e.renderProxy;r&&(g.each(se,function(i){Oi(t,i,r)}),delete e.renderProxy),t.classList.remove(Jt)}(t),r&&r.parentNode&&r.parentNode.removeChild(r)}var sn={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document;!function Vn(t,e){var r=t[E]||(t[E]={});if(!r.containsStyles){r.containsStyles=!0,e="/* Chart.js */\n"+e;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(e)),t.appendChild(i)}}(e.host?e:document.head,ot)}},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(this._ensureLoaded(t),function kr(t,e){var r=t.style,i=t.getAttribute("height"),n=t.getAttribute("width");if(t[E]={initial:{height:i,width:n,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===n||""===n){var a=te(t,"width");void 0!==a&&(t.width=a)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=te(t,"height");void 0!==a&&(t.height=s)}return t}(t,e),r):null},releaseContext:function(t){var e=t.canvas;if(e[E]){var r=e[E].initial;["height","width"].forEach(function(i){var n=r[i];g.isNullOrUndef(n)?e.removeAttribute(i):e.setAttribute(i,n)}),g.each(r.style||{},function(i,n){e.style[n]=i}),e.width=e.width,delete e[E]}},addEventListener:function(t,e,r){var i=t.canvas;if("resize"!==e){var n=r[E]||(r[E]={});Ye(i,e,(n.proxies||(n.proxies={}))[t.id+"_"+e]=function(u){r(function Rn(t,e){var r=Fe[t.type]||t.type,i=g.getRelativePosition(t,e);return Ii(r,e,i.x,i.y,t)}(u,t))})}else qn(i,r,t)},removeEventListener:function(t,e,r){var i=t.canvas;if("resize"!==e){var s=((r[E]||{}).proxies||{})[t.id+"_"+e];!s||Oi(i,e,s)}else Gn(i)}};g.addEvent=Ye,g.removeEvent=Oi;var Le=g.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},sn._enabled?sn:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}});P._set("global",{plugins:{}});var $={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(r){-1===e.indexOf(r)&&e.push(r)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(r){var i=e.indexOf(r);-1!==i&&e.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,r){var a,s,u,l,c,i=this.descriptors(t),n=i.length;for(a=0;a<n;++a)if("function"==typeof(c=(u=(s=i[a]).plugin)[e])&&((l=[t].concat(r||[])).push(s.options),!1===c.apply(u,l)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var r=[],i=[],n=t&&t.config||{},a=n.options&&n.options.plugins||{};
vendor: 9,783 bytes, line 1
1return this._plugins.concat(n.plugins||[]).forEach(function(s){if(-1===r.indexOf(s)){var l=s.id,c=a[l];!1!==c&&(!0===c&&(c=g.clone(P.global.plugins[l])),r.push(s),i.push({plugin:s,options:c||{}}))}}),e.descriptors=i,e.id=this._cacheId,i},_invalidate:function(t){delete t.$plugins}},Qe={constructors:{},defaults:{},registerScaleType:function(t,e,r){this.constructors[t]=e,this.defaults[t]=g.clone(r)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?g.merge(Object.create(null),[P.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var r=this;r.defaults.hasOwnProperty(t)&&(r.defaults[t]=g.extend(r.defaults[t],e))},addScalesToLayout:function(t){g.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,J.addBox(t,e)})}},ee=g.valueOrDefault,Fi=g.rtl.getRtlAdapter;P._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:g.noop,title:function(t,e){var r="",i=e.labels,n=i?i.length:0;if(t.length>0){var a=t[0];a.label?r=a.label:a.xLabel?r=a.xLabel:n>0&&a.index<n&&(r=i[a.index])}return r},afterTitle:g.noop,beforeBody:g.noop,beforeLabel:g.noop,label:function(t,e){var r=e.datasets[t.datasetIndex].label||"";return r&&(r+=": "),g.isNullOrUndef(t.value)?r+=t.yLabel:r+=t.value,r},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:g.noop,afterBody:g.noop,beforeFooter:g.noop,footer:g.noop,afterFooter:g.noop}}});var ln={average:function(t){if(!t.length)return!1;var e,r,i=0,n=0,a=0;for(e=0,r=t.length;e<r;++e){var s=t[e];if(s&&s.hasValue()){var u=s.tooltipPosition();i+=u.x,n+=u.y,++a}}return{x:i/a,y:n/a}},nearest:function(t,e){var a,s,u,r=e.x,i=e.y,n=Number.POSITIVE_INFINITY;for(a=0,s=t.length;a<s;++a){var l=t[a];if(l&&l.hasValue()){var c=l.getCenterPoint(),h=g.distanceBetweenPoints(e,c);h<n&&(n=h,u=l)}}if(u){var f=u.tooltipPosition();r=f.x,i=f.y}return{x:r,y:i}}};function Qt(t,e){return e&&(g.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function re(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Yn(t){var e=t._xScale,r=t._yScale||t._scale,i=t._index,n=t._datasetIndex,a=t._chart.getDatasetMeta(n).controller,s=a._getIndexScale(),u=a._getValueScale();return{xLabel:e?e.getLabelForIndex(i,n):"",yLabel:r?r.getLabelForIndex(i,n):"",label:s?""+s.getLabelForIndex(i,n):"",value:u?""+u.getLabelForIndex(i,n):"",index:i,datasetIndex:n,x:t._model.x,y:t._model.y}}function un(t){var e=P.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:ee(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:ee(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:ee(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:ee(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:ee(t.titleFontStyle,e.defaultFontStyle),titleFontSize:ee(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:ee(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:ee(t.footerFontStyle,e.defaultFontStyle),footerFontSize:ee(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Mr(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function dn(t){return Qt([],re(t))}var Kn=Rt.extend({initialize:function(){this._model=un(this._options),this._lastActive=[]},getTitle:function(){var t=this,r=t._options.callbacks,i=r.beforeTitle.apply(t,arguments),n=r.title.apply(t,arguments),a=r.afterTitle.apply(t,arguments),s=[];return s=Qt(s,re(i)),s=Qt(s,re(n)),Qt(s,re(a))},getBeforeBody:function(){return dn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var r=this,i=r._options.callbacks,n=[];return g.each(t,function(a){var s={before:[],lines:[],after:[]};Qt(s.before,re(i.beforeLabel.call(r,a,e))),Qt(s.lines,i.label.call(r,a,e)),Qt(s.after,re(i.afterLabel.call(r,a,e))),n.push(s)}),n},getAfterBody:function(){return dn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,r=e.beforeFooter.apply(t,arguments),i=e.footer.apply(t,arguments),n=e.afterFooter.apply(t,arguments),a=[];return a=Qt(a,re(r)),a=Qt(a,re(i)),Qt(a,re(n))},update:function(t){var f,v,e=this,r=e._options,i=e._model,n=e._model=un(r),a=e._active,s=e._data,u={xAlign:i.xAlign,yAlign:i.yAlign},l={x:i.x,y:i.y},c={width:i.width,height:i.height},h={x:i.caretX,y:i.caretY};if(a.length){n.opacity=1;var b=[],_=[];h=ln[r.position].call(e,a,e._eventPosition);var y=[];for(f=0,v=a.length;f<v;++f)y.push(Yn(a[f]));r.filter&&(y=y.filter(function(x){return r.filter(x,s)})),r.itemSort&&(y=y.sort(function(x,k){return r.itemSort(x,k,s)})),g.each(y,function(x){b.push(r.callbacks.labelColor.call(e,x,e._chart)),_.push(r.callbacks.labelTextColor.call(e,x,e._chart))}),n.title=e.getTitle(y,s),n.beforeBody=e.getBeforeBody(y,s),n.body=e.getBody(y,s),n.afterBody=e.getAfterBody(y,s),n.footer=e.getFooter(y,s),n.x=h.x,n.y=h.y,n.caretPadding=r.caretPadding,n.labelColors=b,n.labelTextColors=_,n.dataPoints=y,l=function $n(t,e,r,i){var n=t.x,a=t.y,u=t.caretPadding,c=r.xAlign,h=r.yAlign,f=t.caretSize+u,v=t.cornerRadius+u;return"right"===c?n-=e.width:"center"===c&&((n-=e.width/2)+e.width>i.width&&(n=i.width-e.width),n<0&&(n=0)),"top"===h?a+=f:a-="bottom"===h?e.height+f:e.height/2,"center"===h?"left"===c?n+=f:"right"===c&&(n-=f):"left"===c?n-=v:"right"===c&&(n+=v),{x:n,y:a}}(n,c=function jn(t,e){var r=t._chart.ctx,i=2*e.yPadding,n=0,a=e.body,s=a.reduce(function(_,y){return _+y.before.length+y.lines.length+y.after.length},0),u=e.title.length,l=e.footer.length,c=e.titleFontSize,h=e.bodyFontSize,f=e.footerFontSize;i+=u*c,i+=u?(u-1)*e.titleSpacing:0,i+=u?e.titleMarginBottom:0,i+=(s+=e.beforeBody.length+e.afterBody.length)*h,i+=s?(s-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*f,i+=l?(l-1)*e.footerSpacing:0;var v=0,b=function(_){n=Math.max(n,r.measureText(_).width+v)};return r.font=g.fontString(c,e._titleFontStyle,e._titleFontFamily),g.each(e.title,b),r.font=g.fontString(h,e._bodyFontStyle,e._bodyFontFamily),g.each(e.beforeBody.concat(e.afterBody),b),v=e.displayColors?h+2:0,g.each(a,function(_){g.each(_.before,b),g.each(_.lines,b),g.each(_.after,b)}),v=0,r.font=g.fontString(f,e._footerFontStyle,e._footerFontFamily),g.each(e.footer,b),{width:n+=2*e.xPadding,height:i}}(this,n),u=function Qn(t,e){var r=t._model,i=t._chart,n=t._chart.chartArea,a="center",s="center";r.y<e.height?s="top":r.y>i.height-e.height&&(s="bottom");var u,l,c,h,f,v=(n.left+n.right)/2,b=(n.top+n.bottom)/2;"center"===s?(u=function(y){return y<=v},l=function(y){return y>v}):(u=function(y){return y<=e.width/2},l=function(y){return y>=i.width-e.width/2}),c=function(y){return y+e.width+r.caretSize+r.caretPadding>i.width},h=function(y){return y-e.width-r.caretSize-r.caretPadding<0},f=function(y){return y<=b?"top":"bottom"},u(r.x)?(a="left",c(r.x)&&(a="center",s=f(r.y))):l(r.x)&&(a="right",h(r.x)&&(a="center",s=f(r.y)));var _=t._options;return{xAlign:_.xAlign?_.xAlign:a,yAlign:_.yAlign?_.yAlign:s}}(this,c),e._chart)}else n.opacity=0;return n.xAlign=u.xAlign,n.yAlign=u.yAlign,n.x=l.x,n.y=l.y,n.width=c.width,n.height=c.height,n.caretX=h.x,n.caretY=h.y,e._model=n,t&&r.custom&&r.custom.call(e,n),e},drawCaret:function(t,e){var r=this._chart.ctx,n=this.getCaretPosition(t,e,this._view);r.lineTo(n.x1,n.y1),r.lineTo(n.x2,n.y2),r.lineTo(n.x3,n.y3)},getCaretPosition:function(t,e,r){var i,n,a,s,u,l,c=r.caretSize,h=r.cornerRadius,f=r.xAlign,v=r.yAlign,b=t.x,_=t.y,y=e.width,x=e.height;if("center"===v)u=_+x/2,"left"===f?(n=(i=b)-c,a=i,s=u+c,l=u-c):(n=(i=b+y)+c,a=i,s=u-c,l=u+c);else if("left"===f?(i=(n=b+h+c)-c,a=n+c):"right"===f?(i=(n=b+y-h-c)-c,a=n+c):(i=(n=r.caretX)-c,a=n+c),"top"===v)u=(s=_)-c,l=s;else{u=(s=_+x)+c,l=s;var k=a;a=i,i=k}return{x1:i,x2:n,x3:a,y1:s,y2:u,y3:l}},drawTitle:function(t,e,r){var a,s,u,i=e.title,n=i.length;if(n){var l=Fi(e.rtl,e.x,e.width);for(t.x=Mr(e,e._titleAlign),r.textAlign=l.textAlign(e._titleAlign),r.textBaseline="middle",a=e.titleFontSize,s=e.titleSpacing,r.fillStyle=e.titleFontColor,r.font=g.fontString(a,e._titleFontStyle,e._titleFontFamily),u=0;u<n;++u)r.fillText(i[u],l.x(t.x),t.y+a/2),t.y+=a+s,u+1===n&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,r){var v,b,_,y,x,k,T,S,i=e.bodyFontSize,n=e.bodySpacing,a=e._bodyAlign,s=e.body,u=e.displayColors,l=0,c=u?Mr(e,"left"):0,h=Fi(e.rtl,e.x,e.width),f=function(V){r.fillText(V,h.x(t.x+l),t.y+i/2),t.y+=i+n},N=h.textAlign(a);for(r.textAlign=a,r.textBaseline="middle",r.font=g.fontString(i,e._bodyFontStyle,e._body
1FontFamily),t.x=Mr(e,N),r.fillStyle=e.bodyFontColor,g.each(e.beforeBody,f),l=u&&"right"!==N?"center"===a?i/2+1:i+2:0,x=0,T=s.length;x<T;++x){for(v=s[x],_=e.labelColors[x],r.fillStyle=b=e.labelTextColors[x],g.each(v.before,f),k=0,S=(y=v.lines).length;k<S;++k){if(u){var F=h.x(c);r.fillStyle=e.legendColorBackground,r.fillRect(h.leftForLtr(F,i),t.y,i,i),r.lineWidth=1,r.strokeStyle=_.borderColor,r.strokeRect(h.leftForLtr(F,i),t.y,i,i),r.fillStyle=_.backgroundColor,r.fillRect(h.leftForLtr(h.xPlus(F,1),i-2),t.y+1,i-2,i-2),r.fillStyle=b}f(y[k])}g.each(v.after,f)}l=0,g.each(e.afterBody,f),t.y-=n},drawFooter:function(t,e,r){var a,s,i=e.footer,n=i.length;if(n){var u=Fi(e.rtl,e.x,e.width);for(t.x=Mr(e,e._footerAlign),t.y+=e.footerMarginTop,r.textAlign=u.textAlign(e._footerAlign),r.textBaseline="middle",a=e.footerFontSize,r.fillStyle=e.footerFontColor,r.font=g.fontString(a,e._footerFontStyle,e._footerFontFamily),s=0;s<n;++s)r.fillText(i[s],u.x(t.x),t.y+a/2),t.y+=a+e.footerSpacing}},drawBackground:function(t,e,r,i){r.fillStyle=e.backgroundColor,r.strokeStyle=e.borderColor,r.lineWidth=e.borderWidth;var n=e.xAlign,a=e.yAlign,s=t.x,u=t.y,l=i.width,c=i.height,h=e.cornerRadius;r.beginPath(),r.moveTo(s+h,u),"top"===a&&this.drawCaret(t,i),r.lineTo(s+l-h,u),r.quadraticCurveTo(s+l,u,s+l,u+h),"center"===a&&"right"===n&&this.drawCaret(t,i),r.lineTo(s+l,u+c-h),r.quadraticCurveTo(s+l,u+c,s+l-h,u+c),"bottom"===a&&this.drawCaret(t,i),r.lineTo(s+h,u+c),r.quadraticCurveTo(s,u+c,s,u+c-h),"center"===a&&"left"===n&&this.drawCaret(t,i),r.lineTo(s,u+h),r.quadraticCurveTo(s,u,s+h,u),r.closePath(),r.fill(),e.borderWidth>0&&r.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var r={width:e.width,height:e.height},i={x:e.x,y:e.y},n=Math.abs(e.opacity<.001)?0:e.opacity;this._options.enabled&&(e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length)&&(t.save(),t.globalAlpha=n,this.drawBackground(i,e,t,r),i.y+=e.yPadding,g.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),g.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var i,e=this,r=e._options;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,r.mode,r),r.reverse&&e._active.reverse()),(i=!g.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(r.enabled||r.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),i}}),Li=Kn;Li.positioners=ln;var Ni=g.valueOrDefault;function cn(){return g.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,r,i){if("xAxes"===t||"yAxes"===t){var a,s,u,n=r[t].length;for(e[t]||(e[t]=[]),a=0;a<n;++a)s=Ni((u=r[t][a]).type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),g.merge(e[t][a],!e[t][a].type||u.type&&u.type!==e[t][a].type?[Qe.getScaleDefaults(s),u]:u)}else g._merger(t,e,r,i)}})}function Ei(){return g.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,r,i){var n=e[t]||Object.create(null),a=r[t];"scales"===t?e[t]=cn(n,a):"scale"===t?e[t]=g.merge(n,[Qe.getScaleDefaults(a.type),a]):g._merger(t,e,r,i)}})}function ea(t){var e=t.options;g.each(t.scales,function(r){J.removeBox(t,r)}),e=Ei(P.global,P[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function hn(t,e,r){var i,n=function(a){return a.id===i};do{i=e+r++}while(g.findIndex(t,n)>=0);return i}function fn(t){return"top"===t||"bottom"===t}function gn(t,e){return function(r,i){return r[t]===i[t]?r[e]-i[e]:r[t]-i[t]}}P._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var le=function(t,e){return this.construct(t,e),this};g.extend(le.prototype,{construct:function(t,e){var r=this;e=function ta(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Ei(P.global,P[t.type],t.options||{}),t}(e);var i=Le.acquireContext(t,e),n=i&&i.canvas,a=n&&n.height,s=n&&n.width;
vendor: 4,534 bytes, line 1
1r.id=g.uid(),r.ctx=i,r.canvas=n,r.config=e,r.width=s,r.height=a,r.aspectRatio=a?s/a:null,r.options=e.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,le.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(u){r.config.data=u}}),i&&n?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return $.notify(t,"beforeInit"),g.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),$.notify(t,"afterInit"),t},clear:function(){return g.canvas.clear(this),this},stop:function(){return He.cancelAnimation(this),this},resize:function(t){var e=this,r=e.options,i=e.canvas,n=r.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(g.getMaximumWidth(i))),s=Math.max(0,Math.floor(n?a/n:g.getMaximumHeight(i)));if((e.width!==a||e.height!==s)&&(i.width=e.width=a,i.height=e.height=s,i.style.width=a+"px",i.style.height=s+"px",g.retinaScale(e,r.devicePixelRatio),!t)){var u={width:a,height:s};$.notify(e,"resize",[u]),r.onResize&&r.onResize(e,u),e.stop(),e.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},r=t.scale;g.each(e.xAxes,function(i,n){i.id||(i.id=hn(e.xAxes,"x-axis-",n))}),g.each(e.yAxes,function(i,n){i.id||(i.id=hn(e.yAxes,"y-axis-",n))}),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,r=t.scales||{},i=[],n=Object.keys(r).reduce(function(a,s){return a[s]=!1,a},{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map(function(a){return{options:a,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(a){return{options:a,dtype:"linear",dposition:"left"}}))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),g.each(i,function(a){var s=a.options,u=s.id,l=Ni(s.type,a.dtype);fn(s.position)!==fn(a.dposition)&&(s.position=a.dposition),n[u]=!0;var c=null;if(u in r&&r[u].type===l)(c=r[u]).options=s,c.ctx=t.ctx,c.chart=t;else{var h=Qe.getScaleConstructor(l);if(!h)return;c=new h({id:u,type:l,options:s,ctx:t.ctx,chart:t}),r[c.id]=c}c.mergeTicksOptions(),a.isDefault&&(t.scale=c)}),g.each(n,function(a,s){a||delete r[s]}),t.scales=r,Qe.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i,n,t=this,e=[],r=t.data.datasets;for(i=0,n=r.length;i<n;i++){var a=r[i],s=t.getDatasetMeta(i),u=a.type||t.config.type;if(s.type&&s.type!==u&&(t.destroyDatasetMeta(i),s=t.getDatasetMeta(i)),s.type=u,s.order=a.order||0,s.index=i,s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{var l=Y[s.type];if(void 0===l)throw new Error('"'+s.type+'" is not a chart type.');s.controller=new l(t,i),e.push(s.controller)}}return e},resetElements:function(){var t=this;g.each(t.data.datasets,function(e,r){t.getDatasetMeta(r).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var r,i,e=this;if((!t||"object"!=typeof t)&&(t={duration:t,lazy:arguments[1]}),ea(e),$._invalidate(e),!1!==$.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();for(r=0,i=e.data.datasets.length;r<i;r++)e.getDatasetMeta(r).controller.buildOrUpdateElements();e.updateLayout(),e.options.animation&&e.options.animation.duration&&g.each(n,function(a){a.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],$.notify(e,"afterUpdate"),e._layers.sort(gn("z","_idx")),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var t=this;!1!==$.notify(t,"beforeLayout")&&(J.update(this,this.width,this.height),t._layers=[],g.each(t.boxes,function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())},t),t._layers.forEach(function(e,r){e._idx=r}),$.notify(t,"afterScaleUpdate"),$.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==$.notify(t,"beforeDatasetsUpdate")){for(var e=0,r=t.data.datasets.length;e<r;++e)t.updateDataset(e);$.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,r=e.getDatasetMeta(t),i={meta:r,index:t};!1!==$.notify(e,"beforeDatasetUpdate",[i])&&(r.controller._update(),$.notify(e,"afterDatasetUpdate",[i]))},render:function(t){var e=this;(!t||"object"!=typeof t)&&(t={duration:t,lazy:arguments[1]});var r=e.options.animation,i=Ni(t.duration,r&&r.duration),n=t.lazy;if(!1!==$.notify(e,"beforeRender")){var a=function(u){$.notify(e,"afterRe
1nder"),g.callback(r&&r.onComplete,[u],e)};if(r&&i){var s=new ze({numSteps:i/16.66,easing:t.easing||r.easing,render:function(u,l){var h=l.currentStep,f=h/l.numSteps;u.draw((0,g.easing.effects[l.easing])(f),f,h)},onAnimationProgress:r.onProgress,onAnimationComplete:a});He.addAnimation(e,s,i,n)}else e.draw(),a(new ze({numSteps:0,chart:e}));return e}},draw:function(t){var r,i,e=this;if(e.clear(),g.isNullOrUndef(t)&&(t=1),e.transition(t),!(e.width<=0||e.height<=0)&&!1!==$.notify(e,"beforeDraw",[t])){for(i=e._layers,r=0;r<i.length&&i[r].z<=0;++r)i[r].draw(e.chartArea);for(e.drawDatasets(t);r<i.length;++r)i[r].draw(e.chartArea);e._drawTooltip(t),$.notify(e,"afterDraw",[t])}},transition:function(t){for(var e=this,r=0,i=(e.data.datasets||[]).length;r<i;++r)e.isDatasetVisible(r)&&e.getDatasetMeta(r).controller.transition(t);e.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var n,a,e=this,i=[];for(n=0,a=(e.data.datasets||[]).length;n<a;++n)(!t||e.isDatasetVisible(n))&&i.push(e.getDatasetMeta(n));return i.sort(gn("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var r,i,e=this;if(!1!==$.notify(e,"beforeDatasetsDraw",[t])){for(i=(r=e._getSortedVisibleDatasetMetas()).length-1;i>=0;--i)e.drawDataset(r[i],t);$.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i={meta:t,index:t.index,easingValue:e};!1!==$.notify(this,"beforeDatasetDraw",[i])&&(t.controller.draw(e),$.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this,r=e.tooltip,i={tooltip:r,easingValue:t};!1!==$.notify(e,"beforeTooltipDraw",[i])&&(r.draw(),$.notify(e,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return wt.modes.single(this,t)},getElementsAtEvent:function(t){return wt.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return wt.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,r){var i=wt.modes[e];return"function"==typeof i?i(this,t,r):[]},getDatasetAtEvent:function(t){return wt.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,r=e.data.datasets[t];r._meta||(r._meta={});var i=r._meta[e.id];return i||(i=r._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r.order||0,index:t}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,r=this.data.datasets.length;e<r;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,r=this.data.datasets[t],i=r._meta&&r._meta[e];i&&(i.controller.destroy(),delete r._meta[e])},destroy:function(){var r,i,t=this,e=t.canvas;for(t.stop(),r=0,i=t.data.datasets.length;r<i;++r)t.destroyDatasetMeta(r);e&&(t.unbindEvents(),g.canvas.clear(t),Le.releaseContext(t.ctx),t.canvas=null,t.ctx=null),$.notify(t,"destroy"),delete le.instances[t.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Li({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},r=function(){t.eventHandler.apply(t,arguments)};g.each(t.options.events,function(i){Le.addEventListener(t,i,r),e[i]=r}),t.options.responsive&&(r=function(){t.resize()},Le.addEventListener(t,"resize",r),e.resize=r)},unbindEvents:function(){var t=this,e=t._listeners;!e||(delete t._listeners,g.each(e,function(r,i){Le.removeEventListener(t,i,r)}))},updateHoverStyle:function(t,e,r){var n,a,s,i=r?"set":"remove";for(a=0,s=t.length;a<s;++a)(n=t[a])&&this.getDatasetMeta(n._datasetIndex).controller[i+"HoverStyle"](n);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+i+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,r=e.tooltip;if(!1!==$.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);r&&(i=r._start?r.handleEvent(t):i|r.handleEvent(t)),$.notify(e,"afterEvent",[t]);var n=e._bufferedRequest;return n?e.render(n):i&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var n,e=this,r=e.options||{},i=r.hover;return e.lastActive=e.lastActive||[],e.active="mouseout"===t.type?[]:e.getElementsAtEventForMode(t,i.mode,i),g.callback(r.onHover||r.hover.onHover,[t.native,e.active],e),("mouseup"===t.type||"click"===t.type)&&r.onClick&&r.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,i.mode,!1),e.active.length&&i.mode&&e.updateHoverStyle(e.active,i.mode,!0),n=!g.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,n}}),le.instances={};var B=le;le.Controller=le,le.types={},g.configMerge=Ei,g.scaleMerge=cn;function xe(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Tr(t){this.options=t||{}}g.extend(Tr.prototype,{formats:xe,parse:xe,format:xe,add:xe,diff:xe,startOf:xe,endOf:xe,_create:function(t){return t}}),Tr.override=function(t){g.extend(Tr.prototype,t)};var Wi={_date:Tr},$e={formatters:{values:function(t){return g.isArray(t)?t:""+t},linear:function(t,e,r){var i=r.length>3?r[2]-r[1]:r[1]-r[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var n=g.log10(Math.abs(i)),a="";if(0!==t)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var u=g.log10(Math.abs(t)),l=Math.floor(u)-Math.floor(n);l=Math.max(Math.min(l,20),0),a=t.toExponential(l)}else{var c=-1*Math.floor(n);c=Math.max(Math.min(c,20),0),a=t.toFixed(c)}else a="0";return a},logarithmic:function(t,e,r){var i=t/Math.pow(10,Math.floor(g.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===r.length-1?t.toExponential():""}}},we=g.isArray,Ke=g.isNullOrUndef,Ce=g.valueOrDefault,Ne=g.valueAtIndexOrDefault;function aa(t,e,r){var c,i=t.getTicks().length,n=Math.min(e,i-1),a=t.getPixelForTick(n),s=t._startPixel,u=t._endPixel,l=1e-6;if(!(r&&(c=1===i?Math.max(a-s,u-a):0===e?(t.getPixelForTick(1)-a)/2:(a-t.getPixelForTick(n-1))/2,a+=n<e?c:-c,a<s-l||a>u+l)))return a}function sa(t,e,r,i){var h,f,v,b,_,y,x,k,T,S,N,F,V,n=r.length,a=[],s=[],u=[],l=0,c=0;for(h=0;h<n;++h){if(b=r[h].label,t.font=y=(_=r[h].major?e.major:e.minor).string,x=i[y]=i[y]||{data:{},gc:[]},k=_.lineHeight,T=S=0,Ke(b)||we(b)){if(we(b))for(f=0,v=b.length;f<v;
vendor: 5,976 bytes, line 1
1++f)!Ke(N=b[f])&&!we(N)&&(T=g.measureText(t,x.data,x.gc,T,N),S+=k)}else T=g.measureText(t,x.data,x.gc,T,b),S=k;a.push(T),s.push(S),u.push(k/2),l=Math.max(T,l),c=Math.max(S,c)}function z(j){return{width:a[j]||0,height:s[j]||0,offset:u[j]||0}}return function oa(t,e){g.each(t,function(r){var a,i=r.gc,n=i.length/2;if(n>e){for(a=0;a<n;++a)delete r.data[i[a]];i.splice(0,n)}})}(i,n),F=a.indexOf(l),V=s.indexOf(c),{first:z(0),last:z(n-1),widest:z(F),highest:z(V)}}function Xe(t){return t.drawTicks?t.tickMarkLength:0}function Bi(t){var e,r;return t.display?(e=g.options._parseFont(t),r=g.options.toPadding(t.padding),e.lineHeight+r.height):0}function vn(t,e){return g.extend(g.options._parseFont({fontFamily:Ce(e.fontFamily,t.fontFamily),fontSize:Ce(e.fontSize,t.fontSize),fontStyle:Ce(e.fontStyle,t.fontStyle),lineHeight:Ce(e.lineHeight,t.lineHeight)}),{color:g.options.resolve([e.fontColor,t.fontColor,P.global.defaultFontColor])})}function Ri(t){var e=vn(t,t.minor);return{minor:e,major:t.major.enabled?vn(t,t.major):e}}function Ui(t){var r,i,n,e=[];for(i=0,n=t.length;i<n;++i)void 0!==(r=t[i])._index&&e.push(r);return e}function Sr(t,e,r,i){var u,l,c,h,n=Ce(r,0),a=Math.min(Ce(i,t.length),t.length),s=0;for(e=Math.ceil(e),i&&(e=(u=i-r)/Math.floor(u/e)),h=n;h<0;)s++,h=Math.round(n+s*e);for(l=Math.max(n,0);l<a;l++)c=t[l],l===h?(c._index=l,s++,h=Math.round(n+s*e)):delete c.label}P._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:$e.formatters.values,minor:{},major:{}}});var Zi=Rt.extend({zeroLineIndex:0,getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){g.callback(this.options.beforeUpdate,[this])},update:function(t,e,r){var s,u,l,c,h,i=this,n=i.options.ticks,a=n.sampleSize;if(i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=g.extend({left:0,right:0,top:0,bottom:0},r),i._ticks=null,i.ticks=null,i._labelSizes=null,i._maxLabelLines=0,i.longestLabelWidth=0,i.longestTextCache=i.longestTextCache||{},i._gridLineItems=null,i._labelItems=null,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeDataLimits(),i.determineDataLimits(),i.afterDataLimits(),i.beforeBuildTicks(),c=i.buildTicks()||[],(!(c=i.afterBuildTicks(c)||c)||!c.length)&&i.ticks)for(c=[],s=0,u=i.ticks.length;s<u;++s)c.push({value:i.ticks[s],major:!1});return i._ticks=c,l=i._convertTicksToLabels((h=a<c.length)?function na(t,e){for(var r=[],i=t.length/e,n=0,a=t.length;n<a;n+=i)r.push(t[Math.floor(n)]);return r}(c,a):c),i._configure(),i.beforeCalculateTickRotation(),i.calculateTickRotation(),i.afterCalculateTickRotation(),i.beforeFit(),i.fit(),i.afterFit(),i._ticksToDraw=n.display&&(n.autoSkip||"auto"===n.source)?i._autoSkip(c):c,h&&(l=i._convertTicksToLabels(i._ticksToDraw)),i.ticks=l,i.afterUpdate(),i.minSize},_configure:function(){var r,i,t=this,e=t.options.ticks.reverse;t.isHorizontal()?(r=t.left,i=t.right):(r=t.top,i=t.bottom,e=!e),t._startPixel=r,t._endPixel=i,t._reversePixels=e,t._length=i-r},afterUpdate:function(){g.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){g.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){g.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){g.callback(this.options.beforeDataLimits,[this])},determineDataLimits:g.noop,afterDataLimits:function(){g.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){g.callback(this.options.beforeBuildTicks,[this])},buildTicks:g.noop,afterBuildTicks:function(t){var e=this;return we(t)&&t.length?g.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=g.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){g.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){g.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){g.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var u,l,c,h,f,v,b,t=this,e=t.options,r=e.ticks,i=t.getTicks().length,n=r.minRotation||0,a=r.maxRotation,s=n;!t._isVisible()||!r.display||n>=a||i<=1||!t.isHorizontal()?t.labelRotation=n:(l=(u=t._getLabelSizes()).widest.width,c=u.highest.height-u.highest.offset,h=Math.min(t.maxWidth,t.chart.width-l),l+6>(f=e.offset?t.maxWidth/i:h/(i-1))&&(f=h/(i-(e.offset?.5:1)),v=t.maxHeight-Xe(e.gridLines)-r.padding-Bi(e.scaleLabel),b=Math.sqrt(l*l+c*c),s=g.toDegrees(Math.min(Math.asin(Math.min((u.highest.height+6)/f,1)),Math.asin(Math.min(v/b,1))-Math.asin(c/b))),s=Math.max(n,Math.min(a,s))),t.labelRotation=s)},afterCalculateTickRotation:function(){g.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){g.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},r=t.chart,i=t.options,n=i.ticks,a=i.scaleLabel,s=i.gridLines,u=t._isVisible(),l="bottom"===i.position,c=t.
1isHorizontal();if(c?e.width=t.maxWidth:u&&(e.width=Xe(s)+Bi(a)),c?u&&(e.height=Xe(s)+Bi(a)):e.height=t.maxHeight,n.display&&u){var h=Ri(n),f=t._getLabelSizes(),v=f.first,b=f.last,_=f.widest,y=f.highest,x=.4*h.minor.lineHeight,k=n.padding;if(c){var T=0!==t.labelRotation,S=g.toRadians(t.labelRotation),N=Math.cos(S),F=Math.sin(S);e.height=Math.min(t.maxHeight,e.height+(F*_.width+N*(y.height-(T?y.offset:0))+(T?0:x))+k);var K,pt,z=t.getPixelForTick(0)-t.left,j=t.right-t.getPixelForTick(t.getTicks().length-1);T?(K=l?N*v.width+F*v.offset:F*(v.height-v.offset),pt=l?F*(b.height-b.offset):N*b.width+F*b.offset):(K=v.width/2,pt=b.width/2),t.paddingLeft=Math.max((K-z)*t.width/(t.width-z),0)+3,t.paddingRight=Math.max((pt-j)*t.width/(t.width-j),0)+3}else e.width=Math.min(t.maxWidth,e.width+(n.mirror?0:_.width+k+x)),t.paddingTop=v.height/2,t.paddingBottom=b.height/2}t.handleMargins(),c?(t.width=t._length=r.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=r.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){g.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(Ke(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var r,i,n,e=this;for(e.ticks=t.map(function(a){return a.value}),e.beforeTickToLabelConversion(),r=e.convertTicksToLabels(t)||e.ticks,e.afterTickToLabelConversion(),i=0,n=t.length;i<n;++i)t[i].label=r[i];return r},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=sa(t.ctx,Ri(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,r,i,n;return we(t)?(e=+this.getRightValue(t[0]),r=+this.getRightValue(t[1]),i=Math.min(e,r),n=Math.max(e,r)):(e=void 0,r=t=+this.getRightValue(t),i=t,n=t),{min:i,max:n,start:e,end:r}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:g.noop,getPixelForValue:g.noop,getValueForPixel:g.noop,getPixelForTick:function(t){var e=this,r=e.options.offset,i=e._ticks.length,n=1/Math.max(i-(r?0:1),1);return t<0||t>i-1?null:e.getPixelForDecimal(t*n+(r?n/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,r=t.max;return t.beginAtZero?0:e<0&&r<0?r:e>0&&r>0?e:0},_autoSkip:function(t){var c,h,f,v,e=this,r=e.options.ticks,i=e._length,n=r.maxTicksLimit||i/e._tickSize()+1,a=r.major.enabled?function da(t){var r,i,e=[];for(r=0,i=t.length;r<i;r++)t[r].major&&e.push(r);return e}(t):[],s=a.length,u=a[0],l=a[s-1];if(s>n)return function ca(t,e,r){var a,s,i=0,n=e[0];for(r=Math.ceil(r),a=0;a<t.length;a++)s=t[a],a===n?(s._index=a,n=e[++i*r]):delete s.label}(t,a,s/n),Ui(t);if(f=function ua(t,e,r,i){var s,u,l,c,n=function la(t){var r,i,e=t.length;if(e<2)return!1;for(i=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==i)return!1;return i}(t),a=(e.length-1)/i;if(!n)return Math.max(a,1);for(l=0,c=(s=g.math._factorize(n)).length-1;l<c;l++)if((u=s[l])>a)return u;return Math.max(a,1)}(a,t,0,n),s>0){for(c=0,h=s-1;c<h;c++)Sr(t,f,a[c],a[c+1]);return Sr(t,f,g.isNullOrUndef(v=s>1?(l-u)/(s-1):null)?0:u-v,u),Sr(t,f,l,g.isNullOrUndef(v)?t.length:l+v),Ui(t)}return Sr(t,f),Ui(t)},_tickSize:function(){var t=this,e=t.options.ticks,r=g.toRadians(t.labelRotation),i=Math.abs(Math.cos(r)),n=Math.abs(Math.sin(r)),a=t._getLabelSizes(),s=e.autoSkipPadding||0,u=a?a.widest.width+s:0,l=a?a.highest.height+s:0;return t.isHorizontal()?l*i>u*n?u/i:l/n:l*n<u*i?l/i:u/n},_isVisible:function(){var i,n,a,t=this,e=t.chart,r=t.options.display;
1if("auto"!==r)return!!r;for(i=0,n=e.data.datasets.length;i<n;++i)if(e.isDatasetVisible(i)&&((a=e.getDatasetMeta(i)).xAxisID===t.id||a.yAxisID===t.id))return!0;return!1},_computeGridLineItems:function(t){var x,k,T,S,N,F,V,z,j,K,pt,ct,ut,bt,We,Be,Qi,e=this,r=e.chart,i=e.options,n=i.gridLines,a=i.position,s=n.offsetGridLines,u=e.isHorizontal(),l=e._ticksToDraw,c=l.length+(s?1:0),h=Xe(n),f=[],v=n.drawBorder?Ne(n.lineWidth,0,0):0,b=v/2,_=g._alignPixel,y=function(co){return _(r,co,v)};for("top"===a?(x=y(e.bottom),V=e.bottom-h,j=x-b,pt=y(t.top)+b,ut=t.bottom):"bottom"===a?(x=y(e.top),pt=t.top,ut=y(t.bottom)-b,V=x+b,j=e.top+h):"left"===a?(x=y(e.right),F=e.right-h,z=x-b,K=y(t.left)+b,ct=t.right):(x=y(e.left),K=t.left,ct=y(t.right)-b,F=x+b,z=e.left+h),k=0;k<c;++k)!(Ke((T=l[k]||{}).label)&&k<l.length)&&(k===e.zeroLineIndex&&i.offset===s?(bt=n.zeroLineWidth,We=n.zeroLineColor,Be=n.zeroLineBorderDash||[],Qi=n.zeroLineBorderDashOffset||0):(bt=Ne(n.lineWidth,k,1),We=Ne(n.color,k,"rgba(0,0,0,0.1)"),Be=n.borderDash||[],Qi=n.borderDashOffset||0),void 0!==(S=aa(e,T._index||k,s))&&(N=_(r,S,bt),u?F=z=K=ct=N:V=j=pt=ut=N,f.push({tx1:F,ty1:V,tx2:z,ty2:j,x1:K,y1:pt,x2:ct,y2:ut,width:bt,color:We,borderDash:Be,borderDashOffset:Qi})));return f.ticksLength=c,f.borderValue=x,f},_computeLabelItems:function(){var v,b,_,y,x,k,T,S,N,F,V,z,t=this,e=t.options,r=e.ticks,i=e.position,n=r.mirror,a=t.isHorizontal(),s=t._ticksToDraw,u=Ri(r),l=r.padding,c=Xe(e.gridLines),h=-g.toRadians(t.labelRotation),f=[];for("top"===i?(k=t.bottom-c-l,T=h?"left":"center"):"bottom"===i?(k=t.top+c+l,T=h?"right":"center"):"left"===i?(x=t.right-(n?0:c)-l,T=n?"left":"right"):(x=t.left+(n?0:c)+l,T=n?"right":"left"),v=0,b=s.length;v<b;++v)!Ke(y=(_=s[v]).label)&&(S=t.getPixelForTick(_._index||v)+r.labelOffset,F=(N=_.major?u.major:u.minor).lineHeight,V=we(y)?y.length:1,a?(x=S,z="top"===i?((h?1:.5)-V)*F:(h?0:.5)*F):(k=S,z=(1-V)*F/2),f.push({x,y:k,rotation:h,label:y,font:N,textOffset:z,textAlign:T}));return f},_drawGrid:function(t){var e=this,r=e.options.gridLines;if(r.display){var l,c,h,f,v,i=e.ctx,n=e.chart,a=g._alignPixel,s=r.drawBorder?Ne(r.lineWidth,0,0):0,u=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(h=0,f=u.length;h<f;++h)c=(v=u[h]).color,(l=v.width)&&c&&(i.save(),i.lineWidth=l,i.strokeStyle=c,i.setLineDash&&(i.setLineDash(v.borderDash),i.lineDashOffset=v.borderDashOffset),i.beginPath(),r.drawTicks&&(i.moveTo(v.tx1,v.ty1),i.lineTo(v.tx2,v.ty2)),r.drawOnChartArea&&(i.moveTo(v.x1,v.y1),i.lineTo(v.x2,v.y2)),i.stroke(),i.restore());
vendor: 16,292 bytes, line 1
1if(s){var x,k,T,S,b=s,_=Ne(r.lineWidth,u.ticksLength-1,1),y=u.borderValue;e.isHorizontal()?(x=a(n,e.left,b)-b/2,k=a(n,e.right,_)+_/2,T=S=y):(T=a(n,e.top,b)-b/2,S=a(n,e.bottom,_)+_/2,x=k=y),i.lineWidth=s,i.strokeStyle=Ne(r.color,0),i.beginPath(),i.moveTo(x,T),i.lineTo(k,S),i.stroke()}}},_drawLabels:function(){var t=this;if(t.options.ticks.display){var n,a,s,u,l,c,h,f,r=t.ctx,i=t._labelItems||(t._labelItems=t._computeLabelItems());for(n=0,s=i.length;n<s;++n){if(c=(l=i[n]).font,r.save(),r.translate(l.x,l.y),r.rotate(l.rotation),r.font=c.string,r.fillStyle=c.color,r.textBaseline="middle",r.textAlign=l.textAlign,f=l.textOffset,we(h=l.label))for(a=0,u=h.length;a<u;++a)r.fillText(""+h[a],0,f),f+=c.lineHeight;else r.fillText(h,0,f);r.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,r=t.options,i=r.scaleLabel;if(i.display){var h,f,n=Ce(i.fontColor,P.global.defaultFontColor),a=g.options._parseFont(i),s=g.options.toPadding(i.padding),u=a.lineHeight/2,l=r.position,c=0;if(t.isHorizontal())h=t.left+t.width/2,f="bottom"===l?t.bottom-u-s.bottom:t.top+u+s.top;else{var v="left"===l;h=v?t.left+u+s.top:t.right-u-s.top,f=t.top+t.height/2,c=v?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(h,f),e.rotate(c),e.textAlign="center",e.textBaseline="middle",e.fillStyle=n,e.font=a.string,e.fillText(i.labelString,0,0),e.restore()}},draw:function(t){var e=this;!e._isVisible()||(e._drawGrid(t),e._drawTitle(),e._drawLabels())},_layers:function(){var t=this,e=t.options,r=e.ticks&&e.ticks.z||0,i=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&r!==i&&t.draw===t._draw?[{z:i,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:r,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:r,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,r=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter(function(i){return(!t||i.type===t)&&(r?i.xAxisID===e.id:i.yAxisID===e.id)})}});Zi.prototype._draw=Zi.prototype.draw;var It=Zi,zi=g.isNullOrUndef,pn=It.extend({determineDataLimits:function(){var u,t=this,e=t._getLabels(),r=t.options.ticks,i=r.min,n=r.max,a=0,s=e.length-1;void 0!==i&&(u=e.indexOf(i))>=0&&(a=u),void 0!==n&&(u=e.indexOf(n))>=0&&(s=u),t.minIndex=a,t.maxIndex=s,t.min=e[a],t.max=e[s]},buildTicks:function(){var t=this,e=t._getLabels(),r=t.minIndex,i=t.maxIndex;t.ticks=0===r&&i===e.length-1?e:e.slice(r,i+1)},getLabelForIndex:function(t,e){var r=this,i=r.chart;return i.getDatasetMeta(e).controller._getValueScaleId()===r.id?r.getRightValue(i.data.datasets[e].data[t]):r._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,r=t.ticks;It.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),r&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(r.length-(e?0:1),1))},getPixelForValue:function(t,e,r){var n,a,s,i=this;return!zi(e)&&!zi(r)&&(t=i.chart.data.datasets[r].data[e]),zi(t)||(n=i.isHorizontal()?t.x:t.y),(void 0!==n||void 0!==t&&isNaN(e))&&(a=i._getLabels(),t=g.valueOrDefault(n,t),e=-1!==(s=a.indexOf(t))?s:e,isNaN(e)&&(e=t)),i.getPixelForDecimal((e-i._startValue)/i._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,r=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(r,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}});pn._defaults={position:"bottom"};var ke=g.isNullOrUndef;var Pr=It.extend({getRightValue:function(t){return"string"==typeof t?+t:It.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,r=t.options.ticks;if(r.beginAtZero){var i=g.sign(t.min),n=g.sign(t.max);i<0&&n<0?t.max=0:i>0&&n>0&&(t.min=0)}var a=void 0!==r.min||void 0!==r.suggestedMin,s=void 0!==r.max||void 0!==r.suggestedMax;void 0!==r.min?t.min=r.min:void 0!==r.suggestedMin&&(t.min=null===t.min?r.suggestedMin:Math.min(t.min,r.suggestedMin)),void 0!==r.max?t.max=r.max:void 0!==r.suggestedMax&&(t.max=null===t.max?r.suggestedMax:Math.max(t.max,r.suggestedMax)),a!==s&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,r.beginAtZero||t.min--)},getTickLimit:function(){var n,t=this,e=t.options.ticks,r=e.stepSize,i=e.maxTicksLimit;return r?n=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(n=t._computeTickLimit(),i=i||11),i&&(n=Math.min(i,n)),n},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:g.noop,buildTicks:function(){var t=this,r=t.options.ticks,i=t.getTickLimit(),n={maxTicks:i=Math.max(2,i),min:r.min,max:r.max,precision:r.precision,stepSize:g.valueOrDefault(r.fixedStepSize,r.stepSize)},a=t.ticks=function va(t,e){var b,_,y,x,r=[],n=t.stepSize,a=n||1,s=t.maxTicks-1,u=t.min,l=t.max,c=t.precision,h=e.min,f=e.max,v=g.niceNum((f-h)/s/a)*a;if(v<1e-14&&ke(u)&&ke(l))return[h,f];(x=Math.ceil(f/v)-Math.floor(h/v))>s&&(v=g.niceNum(x*v/s/a)*a),n||ke(c)?b=Math.pow(10,g._decimalPlaces(v)):(b=Math.pow(10,c),v=Math.ceil(v*b)/b),_=Math.floor(h/v)*v,y=Math.ceil(f/v)*v,n&&(!ke(u)&&g.almostWhole(u/v,v/1e3)&&(_=u),!ke(l)&&g.almostWhole(l/v,v/1e3)&&(y=l)),x=g.almostEquals(x=(y-_)/v,Math.round(x),v/1e3)?Math.round(x):Math.ceil(x),_=Math.round(_*b)/b,y=Math.round(y*b)/b,r.push(ke(u)?_:u);for(var k=1;k<x;++k)r.push(Math.round((_+k*v)*b)/b);return r.push(ke(l)?y:l),r}(n,t);t.handleDirectionalChanges(),t.max=g.max(a),t.min=g.min(a),r.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),It.prototype.convertTicksToLabels.call(t)},_configure:function(){var n,t=this,e=t.getTicks(),r=t.min,i=t.max;It.prototype._configure.call(t),t.options.offset&&e.length&&(r-=n=(i-r)/Math.max(e.length-1,1)/2,i+=n),t._startValue=r,t._endValue=i,t._valueRange=i-r}}),pa={position:"left",ticks:{callback:$e.formatters.linear}};function ya(t,e,r,i){var h,f,n=t.options,s=function _a(t,e,r){var i=[r.type,void 0===e&&void 0===r.stack?r.index:"",r.stack].join(".");return void 0===t[i]&&(t[i]={pos:[],neg:[]}),t[i]}(e,n.stacked,r),u=s.pos,l=s.neg,c=i.length;for(h=0;h<c;++h)f=t._parseValue(i[h]),!(isNaN(f.min)||isNaN(f.max)||r.data[h].hidden)&&(u[h]=u[h]||0,l[h]=l[h]||0,n.relativePoints?u[h]=100:f.min<0||f.max<0?l[h]+=f.min:u[h]+=f.max)}function xa(t,e,r){var n,a,i=r.length;for(n=0;n<i;++n)a=t._parseValue(r[n]),!(isNaN(a.min)||isNaN(a.max)||e.data[n].hidden)&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}var mn=Pr.extend({determineDataLimits:function(){var l,c,h,f,t=this,e=t.options,i=t.chart.data.datasets,n=t._getMatchingVisibleMetas(),a=e.stacked,s={},u=n.length;if(t.min=Number.POSITIVE_INFINITY,t.max=Number.NEGATIVE_INFINITY,void 0===a)for(l=0;!a&&l<u;++l)a=void 0!==(c=n[l]).stack;for(l=0;l<u;++l)h=i[(c=n[l]).index].data,a?ya(t,s,c,h):xa(t,c,h);g.each(s,function(v){f=v.pos.concat(v.neg),t.min=Math.min(t.min,g.min(f)),t.max=Math.max(t.max,g.max(f))}),t.min=g.isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=g.isFinite(t.max)&&!isNaN(t.max)?t.max:1,t.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=g.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this;return e.getPixelForDecimal((+e.getRightValue(t)-e._startValue)/e._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}});mn._defaults=pa;var Hi=g.valueOrDefault,Ft=g.math.log10;var ka={position:"left",ticks:{callback:$e.formatters.logarithmic}};function Ar(t,e){return g.isFinite(t)&&t>=0?t:e}var bn=It.extend({determineDataLimits:function(){var s,u,l,c,h,f,t=this,e=t.options,r=t.chart,i=r.data.datasets,n=t.isHorizontal();function a(x){return n?x.xAxisID===t.id:x.yAxisID===t.id}t.min=Number.POSITIVE_INFINITY,t.max=Number.NEGATIVE_INFINITY,t.minNotZero=Number.POSITIVE_INFINITY;var v=e.stacked;if(void 0===v)for(s=0;s<i.length;s++)if(u=r.getDatasetMeta(s),r.isDatasetVisible(s)&&a(u)&&void 0!==u.stack){v=!0;break}if(e.stacked||v){var b={};for(s=0;s<i.length;s++){var _=[(u=r.getDatasetMeta(s)).type,void 0===e.stacked&&void 0===u.stack?s:"",u.stack].join(".");if(r.isDatasetVisible(s)&&a(u))for(void 0===b[_]&&(b[_]=[]),h=0,f=(c=i[s].data).length;h<f;h++){var y=b[_];l=t._parseValue(c[h]),!(isNaN(l.min)||isNaN(l.max)||u.data[h].hidden||l.min<0||l.max<0)&&(y[h]=y[h]||0,y[h]+=l.max)}}g.each(b,function(x){if(x.length>0){var k=g.min(x),T=g.max(x);t.min=Math.min(t.min,k),t.max=Math.max(t.max,T)}})}else for(s=0;s<i.length;s++)if(u=r.getDatasetMeta(s),r.isDatasetVisible(s)&&a(u))for(h=0,f=(c=i[s].data).length;h<f;h++)l=t._parseValue(c[h]),!(isNaN(l.min)||isNaN(l.max)||u.data[h].hidden||l.min<0||l.max<0)&&(t.min=Math.min(l.min,t.min),t.max=Math.max(l.max,t.max),0!==l.min&&(t.minNotZero=Math.min(l.min,t.minNotZero)));t.min=g.isFinite(t.min)?t.min:null,t.max=g.isFinite(t.max)?t.max:null,t.minNotZero=g.isFinite(t.minNotZero)?t.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=Ar(e.min,t.min),t.max=Ar(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(Ft(t.min))-1),t.max=Math.pow(10,Math.floor(Ft(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(Ft(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(Ft(t.min))+1):10),null===t.minNotZero&&(t.minNotZero=t.min>0?t.min:t.max<1?Math.pow(10,Math.floor(Ft(t.max))):1)},buildTicks:function(){var t=this,e=t.options.ticks,r=!t.isHorizontal(),i={min:Ar(e.min),max:Ar(e.max)},n=t.ticks=function Ca(t,e){var s,u,r=[],i=Hi(t.min,Math.pow(10,Math.floor(Ft(e.min)))),n=Math.floor(Ft(e.max)),a=Math.ceil(e.max/Math.pow(10,n));0===i?(s=Math.floor(Ft(e.minNotZero)),u=Math.floor(e.minNotZero/Math.pow(10,s)),r.push(i),i=u*Math.pow(10,s)):(s=Math.floor(Ft(i)),u=Math.floor(i/Math.pow(10,s)));var l=s<0?Math.pow(10,Math.abs(s)):1;do{r.push(i),10==++u&&(u=1,l=++s>=0?1:l),i=Math.round(u*Math.pow(10,s)*l)/l}while(s<n||s===n&&u<a);var c=Hi(t.max,i);return r.push(c),r}(i,t);t.max=g.max(n),t.min=g.min(n),e.reverse?(r=!r,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),r&&n.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),It.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Ft(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,r=0;It.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),r=Hi(t.options.ticks.fontSize,P.global.defaultFontSize)/t._length),t._startValue=Ft(e),t._valueOffset=r,t._valueRange=(Ft(t.max)-Ft(e))/(1-r)},getPixelForValue:function(t){var e=this,r=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(r=(Ft(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(r)},getValueForPixel:function(t){var e=this,r=e.getDecimalForPixel(t);return 0===r&&0===e.min?0:Math.pow(10,e._startValue+(r-e._valueOffset)*e._valueRange)}});bn._defaults=ka;var Dr=g.valueOrDefault,qi=g.valueAtIndexOrDefault,_n=g.options.resolve,Ta={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:$e.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Gi(t){var e=t.ticks;return e.display&&t.display?Dr(e.fontSize,P.global.defaultFontSize)+2*e.backdropPaddingY:0}function Sa(t,e,r){return g.isArray(r)?{w:g.longestText(t,t.font,r),h:r.length*e}:{w:t.measureText(r).width,h:e}}function yn(t,e,r,i,n){return t===i||t===n?{start:e-r/2,end:e+r/2}:t<i||t>n?{start:e-r,end:e}:{start:e,end:e+r}}function Aa(t){return 0===t||180===t?"center":t<180?"left":"right"}function Da(t,e,r,i){var a,s,n=r.y+i/2;if(g.isArray(e))for(a=0,s=e.length;a<s;++a)t.fillText(e[a],r.x,n),n+=i;else t.fillText(e,r.x,n)}function Oa(t,e,r){90===t||270===t?r.y-=e.h/2:(t>270||t<90)&&(r.y-=e.h)}function Or(t){return g.isNumber(t)?t:0}var xn=Pr.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Gi(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;g.each(e.data.datasets,function(n,a){if(e.isDatasetVisible(a)){var s=e.getDatasetMeta(a);g.each(n.data,function(u,l){var c=+t.getRightValue(u);isNaN(c)||s.data[l].hidden||(r=Math.min(c,r),i=Math.max(c,i))})}}),t.min=r===Number.POSITIVE_INFINITY?0:r,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Gi(this.options))},convertTicksToLabels:function(){var t=this;Pr.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(function(){var e=g.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""})},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this,e=t.options;e.display&&e.pointLabels.display?function Pa(t){var n,a,s,e=g.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},i={};t.ctx.font=e.string,t._pointLabelSizes=[];var u=t.chart.data.labels.length;for(n=0;n<u;n++){s=t.getPointPosition(n,t.drawingArea+5),a=Sa(t.ctx,e.lineHeight,t.pointLabels[n]),t._pointLabelSizes[n]=a;var l=t.getIndexAngle(n),c=g.toDegrees(l)%360,h=yn(c,s.x,a.w,0,180),f=yn(c,s.y,a.h,90,270);h.start<r.l&&(r.l=h.start,i.l=l),h.end>r.r&&(r.r=h.end,i.r=l),f.start<r.t&&(r.t=f.start,i.t=l),f.end>r.b&&(r.b=f.end,i.b=l)}t.setReductions(t.drawingArea,r,i)}(t):t.setCenterPoint(0,0,0,0)},setReductions:function(t,e,r){var i=this,n=e.l/Math.sin(r.l),a=Math.max(e.r-i.width,0)/Math.sin(r.r),s=-e.t/Math.cos(r.t),u=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(r.b);n=Or(n),a=Or(a),s=Or(s),u=Or(u),i.drawingArea=Math.min(Math.floor(t-(n+a)/2),Math.floor(t-(s+u)/2)),i.setCenterPoint(n,a,s,u)},setCenterPoint:function(t,e,r,i){var n=this,u=r+n.drawingArea,l=n.height-n.paddingTop-i-n.drawingArea;n.xCenter=Math.floor((t+n.drawingArea+(n.width-e-n.drawingArea))/2+n.left),n.yCenter=Math.floor((u+l)/2+n.top+n.paddingTop)},getIndexAngle:function(t){var e=this.chart,a=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(a<0?a+360:a)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(g.isNullOrUndef(t))return NaN;var r=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*r:(t-e.min)*r},getPointPosition:function(t,e){var r=this,i=r.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(i)*e+r.xCenter,y:Math.sin(i)*e+r.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this,r=e.min,i=e.max;return e.getPointPositionForValue(t||0,e.beginAtZero?0:r<0&&i<0?i:r>0&&i>0?r:0)},_drawGrid:function(){var u,l,c,t=this,e=t.ctx,r=t.options,i=r.gridLines,n=r.angleLines,a=Dr(n.lineWidth,i.lineWidth),s=Dr(n.color,i.color);if(r.pointLabels.display&&function Ia(t){var e=t.ctx,r=t.options,i=r.pointLabels,n=Gi(r),a=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),s=g.options._parseFont(i);e.save(),e.font=s.string,e.textBaseline="middle";for(var u=t.chart.data.labels.length-1;u>=0;u--){var c=t.getPointPosition(u,a+(0===u?n/2:0)+5),h=qi(i.fontColor,u,P.global.defaultFontColor);e.fillStyle=h;var f=t.getIndexAngle(u),v=g.toDegrees(f);e.textAlign=Aa(v),Oa(v,t._pointLabelSizes[u],c),Da(e,t.pointLabels[u],c,s.lineHeight)}
1e.restore()}(t),i.display&&g.each(t.ticks,function(h,f){0!==f&&(l=t.getDistanceFromCenterForValue(t.ticksAsNumbers[f]),function Fa(t,e,r,i){var c,n=t.ctx,a=e.circular,s=t.chart.data.labels.length,u=qi(e.color,i-1),l=qi(e.lineWidth,i-1);if((a||s)&&u&&l){if(n.save(),n.strokeStyle=u,n.lineWidth=l,n.setLineDash&&(n.setLineDash(e.borderDash||[]),n.lineDashOffset=e.borderDashOffset||0),n.beginPath(),a)n.arc(t.xCenter,t.yCenter,r,0,2*Math.PI);else{c=t.getPointPosition(0,r),n.moveTo(c.x,c.y);for(var h=1;h<s;h++)c=t.getPointPosition(h,r),n.lineTo(c.x,c.y)}n.closePath(),n.stroke(),n.restore()}}(t,i,l,f))}),n.display&&a&&s){for(e.save(),e.lineWidth=a,e.strokeStyle=s,e.setLineDash&&(e.setLineDash(_n([n.borderDash,i.borderDash,[]])),e.lineDashOffset=_n([n.borderDashOffset,i.borderDashOffset,0])),u=t.chart.data.labels.length-1;u>=0;u--)l=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),c=t.getPointPosition(u,l),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(c.x,c.y),e.stroke();e.restore()}},_drawLabels:function(){var t=this,e=t.ctx,i=t.options.ticks;if(i.display){var u,l,n=t.getIndexAngle(0),a=g.options._parseFont(i),s=Dr(i.fontColor,P.global.defaultFontColor);e.save(),e.font=a.string,e.translate(t.xCenter,t.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",g.each(t.ticks,function(c,h){0===h&&!i.reverse||(u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[h]),i.showLabelBackdrop&&(l=e.measureText(c).width,e.fillStyle=i.backdropColor,e.fillRect(-l/2-i.backdropPaddingX,-u-a.size/2-i.backdropPaddingY,l+2*i.backdropPaddingX,a.size+2*i.backdropPaddingY)),e.fillStyle=s,e.fillText(c,0,-u))}),e.restore()}},_drawTitle:g.noop});xn._defaults=Ta;var Vi=g._deprecated,wn=g.options.resolve,Na=g.valueOrDefault,Cn=Number.MIN_SAFE_INTEGER||-9007199254740991,Ji=Number.MAX_SAFE_INTEGER||9007199254740991,Ir={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Lt=Object.keys(Ir);function kn(t,e){return t-e}function Mn(t){return g.valueOrDefault(t.time.min,t.ticks.min)}function Tn(t){return g.valueOrDefault(t.time.max,t.ticks.max)}function Ee(t,e,r,i){var n=function Ba(t,e,r){for(var a,s,u,i=0,n=t.length-1;i>=0&&i<=n;){if(u=t[a=i+n>>1],!(s=t[a-1]||null))return{lo:null,hi:u};if(u[e]<r)i=a+1;else{if(!(s[e]>r))return{lo:s,hi:u};n=a-1}}return{lo:u,hi:null}}(t,e,r),a=n.lo?n.hi?n.lo:t[t.length-2]:t[0],s=n.lo?n.hi?n.hi:t[t.length-1]:t[1],u=s[e]-a[e];return a[i]+(s[i]-a[i])*(u?(r-a[e])/u:0)}function Yi(t,e){var r=t._adapter,i=t.options.time,n=i.parser,a=n||i.format,s=e;return"function"==typeof n&&(s=n(s)),g.isFinite(s)||(s="string"==typeof a?r.parse(s,a):r.parse(s)),null!==s?+s:(!n&&"function"==typeof a&&(s=a(e),g.isFinite(s)||(s=r.parse(s))),s)}function Me(t,e){if(g.isNullOrUndef(e))return null;var r=t.options.time,i=Yi(t,t.getRightValue(e));return null===i||r.round&&(i=+t._adapter.startOf(i,r.round)),i}function Sn(t,e,r,i){var a,s,n=Lt.length;for(a=Lt.indexOf(t);a<n-1;++a)if((s=Ir[Lt[a]]).common&&Math.ceil((r-e)/((s.steps?s.steps:Ji)*s.size))<=i)return Lt[a];return Lt[n-1]}function Pn(t,e,r){var s,u,i=[],n={},a=e.length;for(s=0;s<a;++s)n[u=e[s]]=s,i.push({value:u,major:!1});return 0!==a&&r?function Ha(t,e,r,i){var u,l,n=t._adapter,a=+n.startOf(e[0].value,i),s=e[e.length-1].value;for(u=a;u<=s;u=+n.add(u,1,i))(l=r[u])>=0&&(e[l].major=!0);return e}(t,i,n,r):i}var An=It.extend({initialize:function(){this.mergeTicksOptions(),It.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,r=e.time||(e.time={}),i=t._adapter=new Wi._date(e.adapters.date);return Vi("time scale",r.format,"time.format","time.parser"),Vi("time scale",r.min,"time.min","ticks.min"),Vi("time scale",r.max,"time.max","ticks.max"),g.mergeIf(r.displayFormats,i.formats()),It.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),It.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var h,f,v,b,_,y,x,t=this,e=t.chart,r=t._adapter,i=t.options,n=i.time.unit||"day",a=Ji,s=Cn,u=[],l=[],c=[],k=t._getLabels();for(h=0,v=k.length;h<v;++h)c.push(Me(t,k[h]));for(h=0,v=(e.data.datasets||[]).length;h<v;++h)if(e.isDatasetVisible(h))if(g.isObject((_=e.data.datasets[h].data)[0]))for(l[h]=[],f=0,b=_.length;f<b;++f)y=Me(t,_[f]),u.push(y),l[h][f]=y;else l[h]=c.slice(0),x||(u=u.concat(c),x=!0);else l[h]=[];c.length&&(a=Math.min(a,c[0]),s=Math.max(s,c[c.length-1])),u.length&&(u=v>1?function Ea(t){var i,n,a,e={},r=[];for(i=0,n=t.length;i<n;++i)e[a=t[i]]||(e[a]=!0,r.push(a));return r}(u).sort(kn):u.sort(kn),a=Math.min(a,u[0]),s=Math.max(s,u[u.length-1])),a=Me(t,Mn(i))||a,s=Me(t,Tn(i))||s,a=a===Ji?+r.startOf(Date.now(),n):a,s=s===Cn?+r.endOf(Date.now(),n)+1:s,t.min=Math.min(a,s),t.max=Math.max(a+1,s),t._table=[],t._timestamps={data:u,datasets:l,labels:c}},buildTicks:function(){var f,v,b,t=this,e=t.min,r=t.max,i=t.options,n=i.ticks,a=i.time,s=t._timestamps,u=[],l=t.getLabelCapacity(e),c=n.source,h=i.distribution;for(s="data"===c||"auto"===c&&"series"===h?s.data:"labels"===c?s.labels:function Za(t,e,r,i){var v,n=t._adapter,a=t.options,s=a.time,u=s.unit||Sn(s.minUnit,e,r,i),l=wn([s.stepSize,s.unitStepSize,1]),c="week"===u&&s.isoWeekday,h=e,f=[];if(c&&(h=+n.startOf(h,"isoWeek",c)),h=+n.startOf(h,c?"day":u),n.diff(r,e,u)>1e5*l)throw e+" and "+r+" are too far apart with stepSize of "+l+" "+u;for(v=h;v<r;v=+n.add(v,l,u))f.push(v);return(v===r||"ticks"===a.bounds)&&f.push(v),f}(t,e,r,l),"ticks"===i.bounds&&s.length&&(e=s[0],r=s[s.length-1]),e=Me(t,Mn(i))||e,r=Me(t,Tn(i))||r,f=0,v=s.length;f<v;++f)(b=s[f])>=e&&b<=r&&u.push(b);return t.min=e,t.max=r,t._unit=a.unit||(n.autoSkip?Sn(a.minUnit,t.min,t.max,l):function Ra(t,e,r,i,n){var a,s;for(a=Lt.length-1;a>=Lt.indexOf(r);a--)if(Ir[s=Lt[a]].common&&t._adapter.diff(n,i,s)>=e-1)return s;return Lt[r?Lt.indexOf(r):0]}(t,u.length,a.minUnit,t.min,t.max)),t._majorUnit=n.major.enabled&&"year"!==t._unit?function Ua(t){for(var e=Lt.indexOf(t)+1,r=Lt.length;e<r;++e)if(Ir[Lt[e]].common)return Lt[e]}(t._unit):void 0,t._table=function Wa(t,e,r,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:r,pos:1}];var s,u,l,c,h,n=[],a=[e];for(s=0,u=t.length;s<u;++s)(c=t[s])>e&&c<r&&a.push(c);for(a.push(r),s=0,u=a.length;s<u;++s)h=a[s+1],c=a[s],(void 0===(l=a[s-1])||void 0===h||Math.round((h+l)/2)!==c)&&n.push({time:c,pos:s/(u-1)});return n}(t._timestamps.data,e,r,h),t._offsets=function za(t,e,r,i,n){var u,l,a=0,s=0;return n.offset&&e.length&&(u=Ee(t,"time",e[0],"pos"),a=1===e.length?1-u:(Ee(t,"time",e[1],"pos")-u)/2,l=Ee(t,"time",e[e.length-1],"pos"),s=1===e.length?l:(l-Ee(t,"time",e[e.length-2],"pos"))/2),{start:a,end:s,factor:1/(a+1+s)}}(t._table,u,0,0,i),n.reverse&&u.reverse(),Pn(t,u,t._majorUnit)},getLabelForIndex:function(t,e){var r=this,i=r._adapter,n=r.chart.data,a=r.options.time,s=n.labels&&t<n.labels.length?n.labels[t]:"",u=n.datasets[e].data[t];return g.isObject(u)&&(s=r.getRightValue(u)),a.tooltipFormat?i.format(Yi(r,s),a.tooltipFormat):"string"==typeof s?s:i.format(Yi(r,s),a.displayFormats.datetime)}
vendor: 11,130 bytes, line 1
1,tickFormatFunction:function(t,e,r,i){var n=this,s=n.options,u=s.time.displayFormats,c=n._majorUnit,h=u[c],f=r[e],v=s.ticks,b=c&&h&&f&&f.major,_=n._adapter.format(t,i||(b?h:u[n._unit])),y=b?v.major:v.minor,x=wn([y.callback,y.userCallback,v.callback,v.userCallback]);return x?x(_,e,r):_},convertTicksToLabels:function(t){var r,i,e=[];for(r=0,i=t.length;r<i;++r)e.push(this.tickFormatFunction(t[r].value,r,t));return e},getPixelForOffset:function(t){var e=this,r=e._offsets,i=Ee(e._table,"time",t,"pos");return e.getPixelForDecimal((r.start+i)*r.factor)},getPixelForValue:function(t,e,r){var i=this,n=null;if(void 0!==e&&void 0!==r&&(n=i._timestamps.datasets[r][e]),null===n&&(n=Me(i,t)),null!==n)return i.getPixelForOffset(n)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,r=e._offsets,i=e.getDecimalForPixel(t)/r.factor-r.end,n=Ee(e._table,"pos",i,"time");return e._adapter._create(n)},_getLabelSize:function(t){var e=this,r=e.options.ticks,i=e.ctx.measureText(t).width,n=g.toRadians(e.isHorizontal()?r.maxRotation:r.minRotation),a=Math.cos(n),s=Math.sin(n),u=Na(r.fontSize,P.global.defaultFontSize);return{w:i*a+u*s,h:i*s+u*a}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,r=e.options.time,i=r.displayFormats,n=i[r.unit]||i.millisecond,a=e.tickFormatFunction(t,0,Pn(e,[t],e._majorUnit),n),s=e._getLabelSize(a),u=Math.floor(e.isHorizontal()?e.width/s.w:e.height/s.h);return e.options.offset&&u--,u>0?u:1}});An._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Va={category:pn,linear:mn,logarithmic:bn,radialLinear:xn,time:An},Ja={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Wi._date.override("function"==typeof R?{_id:"moment",formats:function(){return Ja},parse:function(t,e){return"string"==typeof t&&"string"==typeof e?t=R(t,e):t instanceof R||(t=R(t)),t.isValid()?t.valueOf():null},format:function(t,e){return R(t).format(e)},add:function(t,e,r){return R(t).add(e,r).valueOf()},diff:function(t,e,r){return R(t).diff(R(e),r)},startOf:function(t,e,r){return t=R(t),"isoWeek"===e?t.isoWeekday(r).valueOf():t.startOf(e).valueOf()},endOf:function(t,e){return R(t).endOf(e).valueOf()},_create:function(t){return R(t)}}:{}),P._set("global",{plugins:{filler:{propagate:!0}}});var Ya={dataset:function(t){var e=t.fill,r=t.chart,i=r.getDatasetMeta(e),a=i&&r.isDatasetVisible(e)&&i.dataset._children||[],s=a.length||0;return s?function(u,l){return l<s&&a[l]._view||null}:null},boundary:function(t){var e=t.boundary,r=e?e.x:null,i=e?e.y:null;return g.isArray(e)?function(n,a){return e[a]}:function(n){return{x:null===r?n.x:r,y:null===i?n.y:i}}}};function ja(t,e,r){var a,i=t._model||{},n=i.fill;if(void 0===n&&(n=!!i.backgroundColor),!1===n||null===n)return!1;if(!0===n)return"origin";if(a=parseFloat(n,10),isFinite(a)&&Math.floor(a)===a)return("-"===n[0]||"+"===n[0])&&(a=e+a),!(a===e||a<0||a>=r)&&a;switch(n){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return n;default:return!1}}function Ka(t){return(t.el._scale||{}).getPointPositionForValue?function $a(t){var s,u,l,c,h,e=t.el._scale,r=e.options,i=e.chart.data.labels.length,n=t.fill,a=[];if(!i)return null;for(u=r.ticks.reverse?e.min:e.max,l=e.getPointPositionForValue(0,s=r.ticks.reverse?e.max:e.min),c=0;c<i;++c)h="start"===n||"end"===n?e.getPointPositionForValue(c,"start"===n?s:u):e.getBasePosition(c),r.gridLines.circular&&(h.cx=l.x,h.cy=l.y,h.angle=e.getIndexAngle(c)-Math.PI/2),a.push(h);return a}(t):function Qa(t){var a,e=t.el._model||{},r=t.el._scale||{},i=t.fill,n=null;if(isFinite(i))return null;if("start"===i?n=void 0===e.scaleBottom?r.bottom:e.scaleBottom:"end"===i?n=void 0===e.scaleTop?r.top:e.scaleTop:void 0!==e.scaleZero?n=e.scaleZero:r.getBasePixel&&(n=r.getBasePixel()),null!=n){if(void 0!==n.x&&void 0!==n.y)return n;if(g.isFinite(n))return{x:(a=r.isHorizontal())?n:null,y:a?null:n}}return null}(t)}function Xa(t,e,r){var s,n=t[e].fill,a=[e];if(!r)return n;for(;!1!==n&&-1===a.indexOf(n);){if(!isFinite(n))return n;if(!(s=t[n]))return!1;if(s.visible)return n;a.push(n),n=s.fill}return!1}function to(t){var e=t.fill,r="dataset";return!1===e?null:(isFinite(e)||(r="boundary"),Ya[r](t))}function Dn(t){return t&&!t.skip}function On(t,e,r,i,n){var a,s,u,l;if(i&&n){for(t.moveTo(e[0].x,e[0].y),a=1;a<i;++a)g.canvas.lineTo(t,e[a-1],e[a]);if(void 0!==r[0].angle){for(s=r[0].cx,u=r[0].cy,l=Math.sqrt(Math.pow(r[0].x-s,2)+Math.pow(r[0].y-u,2)),a=n-1;a>0;--a)t.arc(s,u,l,r[a].angle,r[a-1].angle,!0);return}for(t.lineTo(r[n-1].x,r[n-1].y),a=n-1;a>0;--a)g.canvas.lineTo(t,r[a],r[a-1],!0)}}function eo(t,e,r,i,n,a){var v,b,_,y,x,k,T,S,s=e.length,u=i.spanGaps,l=[],c=[],h=0,f=0;for(t.beginPath(),v=0,b=s;v<b;++v)x=r(y=e[_=v%s]._view,_,i),k=Dn(y),T=Dn(x),a&&void 0===S&&k&&(b=s+(S=v+1)),k&&T?(h=l.push(y),f=c.push(x)):h&&f&&(u?(k&&l.push(y),T&&c.push(x)):(On(t,l,c,h,f),h=f=0,l=[],c=[]));On(t,l,c,h,f),t.closePath(),t.fillStyle=n,t.fill()}var ro={id:"filler",afterDatasetsUpdate:function(t,e){var a,s,u,l,r=(t.data.datasets||[]).length,i=e.propagate,n=[];for(s=0;s<r;++s)l=null,(u=(a=t.getDatasetMeta(s)).dataset)&&u._model&&u instanceof yt.Line&&(l={visible:t.isDatasetVisible(s),fill:ja(u,s,r),chart:t,el:u}),a.$filler=l,n.push(l);for(s=0;s<r;++s)(l=n[s])&&(l.fill=Xa(n,s,i),l.boundary=Ka(l),l.mapper=to(l))},beforeDatasetsDraw:function(t){var i,n,a,s,u,l,c,e=t._getSortedVisibleDatasetMetas(),r=t.ctx;for(n=e.length-1;n>=0;--n)(i=e[n].$filler)&&i.visible&&(u=(a=i.el)._children||[],c=(s=a._view).backgroundColor||P.global.defaultColor,(l=i.mapper)&&c&&u.length&&(g.canvas.clipArea(r,t.chartArea),eo(r,u,l,s,c,a._loop),g.canvas.unclipArea(r)))}},io=g.rtl.getRtlAdapter,ue=g.noop,de=g.valueOrDefault;function ji(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}P._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var r=e.datasetIndex,i=this.chart,n=i.getDatasetMeta(r);n.hidden=null===n.hidden?!i.data.datasets[r].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,r=t.options.legend||{},i=r.labels&&r.labels.usePointStyle;return t._getSortedDatasetMetas().map(function(n){var a=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:a.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(t){var i,n,a,e=document.createElement("ul"),r=t.data.datasets;for(e.setAttribute("class",t.id+"-legend"),i=0,n=r.length;i<n;i++)(a=e.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[i].backgroundColor,r[i].label&&a.appendChild(document.createTextNode(r[i].label));return e.outerHTML}});var In=Rt.extend({initialize:function(t){var e=this;g.extend(e,t),e.legendHitBoxes=[],e._hoveredItem=null,e.doughnutMode=!1},beforeUpdate:ue,update:function(t,e,r){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=r,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ue,beforeSetDimensions:ue,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:ue,beforeBuildLabels:ue,buildLabels:function(){var t=this,e=t.options.labels||{},r=g.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(r=r.filter(function(i){return e.filter(i,t.chart.data)})),t.options.reverse&&r.reverse(),t.legendItems=r},afterBuildLabels:ue,beforeFit:ue,fit:function(){var t=this,e=t.options,r=e.labels,i=e.display,n=t.ctx,a=g.options._parseFont(r),s=a.size,u=t.legendHitBoxes=[],l=t.minSize,c=t.isHorizontal();if(c?(l.width=t.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=t.maxHeight),i){if(n.font=a.string,c){var h=t.lineWidths=[0],f=0;n.textAlign="left",n.textBaseline="middle",g.each(t.legendItems,function(T,S){var F=ji(r,s)+s/2+n.measureText(T.text).width;(0===S||h[h.length-1]+F+2*r.padding>l.width)&&(f+=s+r.padding,h[h.length-(S>0?0:1)]=0),u[S]={left:0,top:0,width:F,height:s},h[h.length-1]+=F+r.padding}),l.height+=f}else{var v=r.padding,b=t.columnWidths=[],_=t.columnHeights=[],y=r.padding,x=0,k=0;g.each(t.legendItems,function(T,S){var F=ji(r,s)+s/2+n.measureText(T.text).width;S>0&&k+s+2*v>l.height&&(y+=x+r.padding,b.push(x),_.push(k),x=0,k=0),x=Math.max(x,F),k+=s+v,u[S]={left:0,top:0,width:F,height:s}}),y+=x,b.push(x),_.push(k),l.width+=y}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:ue,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,r=e.labels,i=P.global,n=i.defaultColor,a=i.elements.line,s=t.height,u=t.columnHeights,l=t.width,c=t.lineWidths;if(e.display){var y,h=io(e.rtl,t.left,t.minSize.width),f=t.ctx,v=de(r.fontColor,i.defaultFontColor),b=g.options._parseFont(r),_=b.size;f.textAlign=h.textAlign("left"),f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=v,f.fillStyle=v,f.font=b.string;var x=ji(r,_),k=t.legendHitBoxes,N=function(z,j){switch(e.align){case"start":return r.padding;case"end":return z-j;default:return(z-j+r.padding)/2}},F=t.isHorizontal();y=F?{x:t.left+N(l,c[0]),y:t.top+r.padding,line:0}:{x:t.left+r.padding,y:t.top+N(s,u[0]),line:0},g.rtl.overrideTextDirection(t.ctx,e.textDirection);var V=_+r.padding;g.each(t.legendItems,function(z,j){var K=f.measureText(z.text).width,pt=x+_/2+K,ct=y.x,ut=y.y;h.setWidth(t.minSize.width),F?j>0&&ct+pt+r.padding>t.left+t.minSize.width&&(ut=y.y+=V,y.line++,ct=y.x=t.left+N(l,c[y.line])):j>0&&ut+V>t.top+t.minSize.height&&(ct=y.x=ct+t.columnWidths[y.line]+r.padding,y.line++,ut=y.y=t.top+N(s,u[y.line]));var bt=h.x(ct);(function(z,j,K){if(!(isNaN(x)||x<=0)){f.save();var pt=de(K.lineWidth,a.borderWidth);if(f.fillStyle=de(K.fillStyle,n),f.lineCap=de(K.lineCap,a.borderCapStyle),f.lineDashOffset=de(K.lineDashOffset,a.borderDashOffset),f.lineJoin=de(K.lineJoin,a.borderJoinStyle),f.lineWidth=pt,f.strokeStyle=de(K.strokeStyle,n),f.setLineDash&&f.setLineDash(de(K.lineDash,a.borderDash)),r&&r.usePointStyle){var ct=x*Math.SQRT2/2,ut=h.xPlus(z,x/2);g.canvas.drawPoint(f,K.pointStyle,ct,ut,j+_/2,K.rotation)}else f.fillRect(h.leftForLtr(z,x),j,x,_),0!==pt&&f.strokeRect(h.leftForLtr(z,x),j,x,_);
vendor: 5,306 bytes, line 1
1f.restore()}})(bt,ut,z),k[j].left=h.leftForLtr(bt,k[j].width),k[j].top=ut,function(z,j,K,pt){var ct=_/2,ut=h.xPlus(z,x+ct),bt=j+ct;f.fillText(K.text,ut,bt),K.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(ut,bt),f.lineTo(h.xPlus(ut,pt),bt),f.stroke())}(bt,ut,z,K),F?y.x+=pt+r.padding:y.y+=V}),g.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var i,n,a,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(a=r.legendHitBoxes,i=0;i<a.length;++i)if(t>=(n=a[i]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return r.legendItems[i];return null},handleEvent:function(t){var n,e=this,r=e.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}n=e._getLegendItemAt(t.x,t.y),"click"===i?n&&r.onClick&&r.onClick.call(e,t.native,n):(r.onLeave&&n!==e._hoveredItem&&(e._hoveredItem&&r.onLeave.call(e,t.native,e._hoveredItem),e._hoveredItem=n),r.onHover&&n&&r.onHover.call(e,t.native,n))}});function Fn(t,e){var r=new In({ctx:t.ctx,options:e,chart:t});J.configure(t,r,e),J.addBox(t,r),t.legend=r}var no={id:"legend",_element:In,beforeInit:function(t){var e=t.options.legend;e&&Fn(t,e)},beforeUpdate:function(t){var e=t.options.legend,r=t.legend;e?(g.mergeIf(e,P.global.legend),r?(J.configure(t,r,e),r.options=e):Fn(t,e)):r&&(J.removeBox(t,r),delete t.legend)},afterEvent:function(t,e){var r=t.legend;r&&r.handleEvent(e)}},ie=g.noop;P._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ln=Rt.extend({initialize:function(t){g.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:ie,update:function(t,e,r){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=r,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ie,beforeSetDimensions:ie,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:ie,beforeBuildLabels:ie,buildLabels:ie,afterBuildLabels:ie,beforeFit:ie,fit:function(){var a,t=this,e=t.options,r=t.minSize={},i=t.isHorizontal();e.display?(a=(g.isArray(e.text)?e.text.length:1)*g.options._parseFont(e).lineHeight+2*e.padding,t.width=r.width=i?t.maxWidth:a,t.height=r.height=i?a:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:ie,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,r=t.options;if(r.display){var f,v,b,i=g.options._parseFont(r),n=i.lineHeight,a=n/2+r.padding,s=0,u=t.top,l=t.left,c=t.bottom,h=t.right;e.fillStyle=g.valueOrDefault(r.fontColor,P.global.defaultFontColor),e.font=i.string,t.isHorizontal()?(v=l+(h-l)/2,b=u+a,f=h-l):(v="left"===r.position?l+a:h-a,b=u+(c-u)/2,f=c-u,s=Math.PI*("left"===r.position?-.5:.5)),e.save(),e.translate(v,b),e.rotate(s),e.textAlign="center",e.textBaseline="middle";var _=r.text;if(g.isArray(_))for(var y=0,x=0;x<_.length;++x)e.fillText(_[x],0,y,f),y+=n;else e.fillText(_,0,0,f);e.restore()}}});function Nn(t,e){var r=new Ln({ctx:t.ctx,options:e,chart:t});J.configure(t,r,e),J.addBox(t,r),t.titleBlock=r}var ce={},oo=ro,so=no,lo={id:"title",_element:Ln,beforeInit:function(t){var e=t.options.title;e&&Nn(t,e)},beforeUpdate:function(t){var e=t.options.title,r=t.titleBlock;e?(g.mergeIf(e,P.global.title),r?(J.configure(t,r,e),r.options=e):Nn(t,e)):r&&(J.removeBox(t,r),delete t.titleBlock)}};for(var En in ce.filler=oo,ce.legend=so,ce.title=lo,B.helpers=g,function(){function t(i,n,a){var s;return"string"==typeof i?(s=parseInt(i,10),-1!==i.indexOf("%")&&(s=s/100*n.parentNode[a])):s=i,s}function e(i){return null!=i&&"none"!==i}function r(i,n,a){var s=document.defaultView,u=g._getParentNode(i),l=s.getComputedStyle(i)[n],c=s.getComputedStyle(u)[n],h=e(l),f=e(c),v=Number.POSITIVE_INFINITY;return h||f?Math.min(h?t(l,i,a):v,f?t(c,u,a):v):"none"}g.where=function(i,n){if(g.isArray(i)&&Array.prototype.filter)return i.filter(n);var a=[];return g.each(i,function(s){n(s)&&a.push(s)}),a},g.findIndex=Array.prototype.findIndex?function(i,n,a){return i.findIndex(n,a)}:function(i,n,a){a=void 0===a?i:a;for(var s=0,u=i.length;s<u;++s)if(n.call(a,i[s],s,i))return s;return-1},g.findNextWhere=function(i,n,a){g.isNullOrUndef(a)&&(a=-1);for(var s=a+1;s<i.length;s++){var u=i[s];if(n(u))return u}},g.findPreviousWhere=function(i,n,a){g.isNullOrUndef(a)&&(a=i.length);for(var s=a-1;s>=0;s--){var u=i[s];if(n(u))return u}},g.isNumber=function(i){return!isNaN(parseFloat(i))&&isFinite(i)},g.almostEquals=function(i,n,a){return Math.abs(i-n)<a},g.almostWhole=function(i,n){var a=Math.round(i);return a-n<=i&&a+n>=i},g.max=function(i){return i.reduce(function(n,a){return isNaN(a)?n:Math.max(n,a)},Number.NEGATIVE_INFINITY)},g.min=function(i){return i.reduce(function(n,a){return isNaN(a)?n:Math.min(n,a)},Number.POSITIVE_INFINITY)},g.sign=Math.sign?function(i){return Math.sign(i)}:function(i){return 0==(i=+i)||isNaN(i)?i:i>0?1:-1},g.toRadians=function(i){return i*(Math.PI/180)},g.toDegrees=function(i){return i*(180/Math.PI)}
1,g._decimalPlaces=function(i){if(g.isFinite(i)){for(var n=1,a=0;Math.round(i*n)/n!==i;)n*=10,a++;return a}},g.getAngleFromPoint=function(i,n){var a=n.x-i.x,s=n.y-i.y,u=Math.sqrt(a*a+s*s),l=Math.atan2(s,a);return l<-.5*Math.PI&&(l+=2*Math.PI),{angle:l,distance:u}},g.distanceBetweenPoints=function(i,n){return Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2))},g.aliasPixel=function(i){return i%2==0?0:.5},g._alignPixel=function(i,n,a){var s=i.currentDevicePixelRatio,u=a/2;return Math.round((n-u)*s)/s+u},g.splineCurve=function(i,n,a,s){var u=i.skip?n:i,l=n,c=a.skip?n:a,h=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2)),f=Math.sqrt(Math.pow(c.x-l.x,2)+Math.pow(c.y-l.y,2)),v=h/(h+f),b=f/(h+f),_=s*(v=isNaN(v)?0:v),y=s*(b=isNaN(b)?0:b);return{previous:{x:l.x-_*(c.x-u.x),y:l.y-_*(c.y-u.y)},next:{x:l.x+y*(c.x-u.x),y:l.y+y*(c.y-u.y)}}},g.EPSILON=Number.EPSILON||1e-14,g.splineCurveMonotone=function(i){var s,u,l,c,f,v,b,_,y,n=(i||[]).map(function(x){return{model:x._model,deltaK:0,mK:0}}),a=n.length;for(s=0;s<a;++s)if(!(l=n[s]).model.skip){if(u=s>0?n[s-1]:null,(c=s<a-1?n[s+1]:null)&&!c.model.skip){var h=c.model.x-l.model.x;l.deltaK=0!==h?(c.model.y-l.model.y)/h:0}l.mK=!u||u.model.skip?l.deltaK:!c||c.model.skip?u.deltaK:this.sign(u.deltaK)!==this.sign(l.deltaK)?0:(u.deltaK+l.deltaK)/2}for(s=0;s<a-1;++s)if(c=n[s+1],!(l=n[s]).model.skip&&!c.model.skip){if(g.almostEquals(l.deltaK,0,this.EPSILON)){l.mK=c.mK=0;continue}f=l.mK/l.deltaK,v=c.mK/l.deltaK,!((_=Math.pow(f,2)+Math.pow(v,2))<=9)&&(b=3/Math.sqrt(_),l.mK=f*b*l.deltaK,c.mK=v*b*l.deltaK)}for(s=0;s<a;++s)!(l=n[s]).model.skip&&(c=s<a-1?n[s+1]:null,(u=s>0?n[s-1]:null)&&!u.model.skip&&(l.model.controlPointPreviousX=l.model.x-(y=(l.model.x-u.model.x)/3),l.model.controlPointPreviousY=l.model.y-y*l.mK),c&&!c.model.skip&&(l.model.controlPointNextX=l.model.x+(y=(c.model.x-l.model.x)/3),l.model.controlPointNextY=l.model.y+y*l.mK))},g.nextItem=function(i,n,a){return a?n>=i.length-1?i[0]:i[n+1]:n>=i.length-1?i[i.length-1]:i[n+1]},g.previousItem=function(i,n,a){return a?n<=0?i[i.length-1]:i[n-1]:n<=0?i[0]:i[n-1]},g.niceNum=function(i,n){var a=Math.floor(g.log10(i)),s=i/Math.pow(10,a);return(n?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*Math.pow(10,a)},g.requestAnimFrame="undefined"==typeof window?function(i){i()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(i){return window.setTimeout(i,1e3/60)},g.getRelativePosition=function(i,n){var a,s,u=i.originalEvent||i,l=i.target||i.srcElement,c=l.getBoundingClientRect(),h=u.touches;h&&h.length>0?(a=h[0].clientX,s=h[0].clientY):(a=u.clientX,s=u.clientY);var f=parseFloat(g.getStyle(l,"padding-left")),v=parseFloat(g.getStyle(l,"padding-top")),b=parseFloat(g.getStyle(l,"padding-right")),_=parseFloat(g.getStyle(l,"padding-bottom")),x=c.bottom-c.top-v-_;return{x:a=Math.round((a-c.left-f)/(c.right-c.left-f-b)*l.width/n.currentDevicePixelRatio),y:s=Math.round((s-c.top-v)/x*l.height/n.currentDevicePixelRatio)}},g.getConstraintWidth=function(i){return r(i,"max-width","clientWidth")},g.getConstraintHeight=function(i){return r(i,"max-height","clientHeight")},g._calculatePadding=function(i,n,a){return(n=g.getStyle(i,n)).indexOf("%")>-1?a*parseInt(n,10)/100:parseInt(n,10)},g._getParentNode=function(i){var n=i.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n},g.getMaximumWidth=function(i){var n=g._getParentNode(i);if(!n)return i.clientWidth;var a=n.clientWidth,l=a-g._calculatePadding(n,"padding-left",a)-g._calculatePadding(n,"padding-right",a),c=g.getConstraintWidth(i);return isNaN(c)?l:Math.min(l,c)},g.getMaximumHeight=function(i){var n=g._getParentNode(i);if(!n)return i.clientHeight;var a=n.clientHeight,l=a-g._calculatePadding(n,"padding-top",a)-g._calculatePadding(n,"padding-bottom",a),c=g.getConstraintHeight(i);return isNaN(c)?l:Math.min(l,c)},g.getStyle=function(i,n){return i.currentStyle?i.currentStyle[n]:document.defaultView.getComputedStyle(i,null).getPropertyValue(n)},g.retinaScale=function(i,n){var a=i.currentDevicePixelRatio=n||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==a){var s=i.canvas,u=i.height,l=i.width;s.height=u*a,s.width=l*a,i.ctx.scale(a,a),!s.style.height&&!s.style.width&&(s.style.height=u+"px",s.style.width=l+"px")}},g.fontString=function(i,n,a){return n+" "+i+"px "+a},g.longestText=function(i,n,a,s){var u=(s=s||{}).data=s.data||{},l=s.garbageCollect=s.garbageCollect||[];s.font!==n&&(u=s.data={},l=s.garbageCollect=[],s.font=n),i.font=n;var f,v,b,_,y,c=0,h=a.length;for(f=0;f<h;f++)if(null!=(_=a[f])&&!0!==g.isArray(_))c=g.measureText(i,u,l,c,_);else if(g.isArray(_))for(v=0,b=_.length;v<b;v++)null!=(y=_[v])&&!g.isArray(y)&&(c=g.measureText(i,u,l,c,y));var x=l.length/2;if(x>a.length){for(f=0;f<x;f++)delete u[l[f]];l.splice(0,x)}return c},g.measureText=function(i,n,a,s,u){var l=n[u];return l||(l=n[u]=i.measureText(u).width,a.push(u)),l>s&&(s=l),s},g.numberOfLabelLines=function(i){var n=1;return g.each(i,function(a){g.isArray(a)&&a.length>n&&(n=a.length)}),n},g.color=Pe?function(i){return i instanceof CanvasGradient&&(i=P.global.defaultColor),Pe(i)}:function(i){return console.error("Color.js not found!"),i},g.getHoverColor=function(i){return i instanceof CanvasPattern||i instanceof CanvasGradient?i:g.color(i).saturate(.5).darken(.1).rgbString()}}(),B._adapters=Wi,B.Animation=ze,B.animationService=He,B.controllers=Y,B.DatasetController=Ot,B.defaults=P,B.Element=Rt,B.elements=yt,B.Interaction=wt,B.layouts=J,B.platform=Le,B.plugins=$,B.Scale=It,B.scaleService=Qe,B.Ticks=$e,B.Tooltip=Li,B.helpers.each(Va,function(t,e){B.scaleService.registerScaleType(e,t,t._defaults)}),ce)ce.hasOwnProperty(En)&&B.plugins.register(ce[En]);B.platform.initialize();var uo=B;return"undefined"!=typeof window&&(window.Chart=B),B.Chart=B,B.Legend=ce.legend._element,B.Title=ce.title._element,B.pluginService=B.plugins,B.PluginBase=B.Element.extend({}),B.canvasHelpers=B.helpers.canvas,B.layoutService=B.layouts,B.LinearScaleBase=Pr,B.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(t){B[t]=function(e,r){return new B(e,B.helpers.merge(r||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}}),uo}(function(){try{return O(15439)}catch(o){}}())}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.