1(self.webpackChunknx1=self.webpackChunknx1||[]).push([[8782],{38782:(Gt,Nt,ut)=>{"use strict";ut.r(Nt),ut.d(Nt,{AdvancedEvaluationToolModule:()=>ho});var kt=ut(77339),Ot=ut(73032),Mt=ut(51188),_t=ut(21413),et=ut(7673),z=ut(983),q=ut(27468),tt=ut(5964),nt=ut(25558),ot=ut(96354),st=ut(88141),U=ut(70274),Q=ut(87083),Y=ut(31397),M=ut(99437),R=ut(24969),E=ut(87224),L=ut(28544),D=ut(43316),t=ut(54438),b=ut(58035),P=ut(67376),T=ut(96697),x=ut(74854),c=ut(20730),h=ut(56206),s=ut(60177),r=ut(85956),f=ut(43684),d=ut(68892),y=ut(79045),_=ut(46879),S=ut(68018),B=ut(21666);function V(m,at){if(1&m&&(t.j41(0,"div",15)(1,"span",16),t.EFF(2),t.nI1(3,"nx1date"),t.k0s(),t.nrm(4,"i",17),t.k0s()),2&m){const i=t.XpG(),p=t.sdS(13);t.R7$(2),t.JRh(t.i5U(3,2,i.lot.OpeningOfPricesDate.Date,"ShortDateTime")),t.R7$(2),t.Y8G("matMenuTriggerFor",p)}}function K(m,at){1&m&&(t.j41(0,"div",18),t.nrm(1,"i",19),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&m&&(t.R7$(3),t.JRh(t.bMT(4,1,"str_Tender_finalize_lots_quality_evaluation_no_date")))}let F=(()=>{class m{constructor(){this.setDateToNotSpecifiedLots=new t.bkB,this.setDateToAllLots=new t.bkB,this.toggleCheckBox=new t.bkB}ngOnInit(){}onToggleExpand(i){i.expanded=!i.expanded}onToggleCheck(i){i.checked=!i.checked,this.toggleCheckBox.emit()}applyDateToNotSpecifiedLots(){this.setDateToNotSpecifiedLots.emit()}applyDateToAllLots(){this.setDateToAllLots.emit()}static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-finalize-lot-quality-evaluation"]],inputs:{lot:"lot"},outputs:{setDateToNotSpecifiedLots:"setDateToNotSpecifiedLots",setDateToAllLots:"setDateToAllLots",toggleCheckBox:"toggleCheckBox"},decls:27,vars:18,consts:[["orgmenu","matMenu"],[1,"square-cell"],[3,"change","checked","disabled"],[1,"nxtable__body-cell","pointer","col-sm-9"],[1,"nxtable__body-cell","text--right","col-sm-3"],["class","date__specified",4,"ngIf"],["class","date__not-specified text--grey40a",4,"ngIf"],[1,"mdi","pointer","text--19px","text--grey40a","mdi-arrow",3,"click","ngClass"],["xPosition","before",3,"overlapTrigger"],[1,"switcher"],[1,"switcher__header"],[1,"switcher__title","text--14px"],[1,"switcher__close","mdi","mdi-close"],[1,"switcher__body"],[1,"switcher__applyTo","mat-menu-item",3,"click"],[1,"date__specified"],[1,"vertical--middle","display--inline-block"],[1,"mdi","padding--left-10","vertical--middle","pointer","mdi-dots-vertical","text--grey40a","text--18px",3,"matMenuTriggerFor"],[1,"date__not-specified","text--grey40a"],[1,"mdi","mdi-alert","text--lemon-2"]],template:function(p,g){if(1&p){const N=t.RV6();t.j41(0,"tr")(1,"td",1)(2,"mat-checkbox",2),t.bIt("change",function(){return t.eBV(N),t.Njj(g.onToggleCheck(g.lot))}),t.k0s()(),t.j41(3,"td",1),t.EFF(4),t.k0s(),t.j41(5,"td",3),t.EFF(6),t.k0s(),t.j41(7,"td",4),t.DNE(8,V,5,5,"div",5)(9,K,5,3,"div",6),t.k0s(),t.j41(10,"td",1)(11,"i",7),t.bIt("click",function(){return t.eBV(N),t.Njj(g.onToggleExpand(g.lot))}),t.k0s()(),t.j41(12,"mat-menu",8,0)(14,"div",9)(15,"div",10)(16,"div",11),t.EFF(17),t.nI1(18,"nx1date"),t.k0s(),t.nrm(19,"i",12),t.k0s(),t.j41(20,"div",13)(21,"button",14),t.bIt("click",function(){return t.eBV(N),t.Njj(g.applyDateToNotSpecifiedLots())}),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"button",14),t.bIt("click",function(){return t.eBV(N),t.Njj(g.applyDateToAllLots())}),t.EFF(25),t.nI1(26,"translate"),t.k0s()()()()()}2&p&&(t.R7$(2),t.Y8G("checked",g.lot.checked)("disabled",!g.lot.OpeningOfPricesDate.Date),t.R7$(2),t.JRh(g.lot.LotNumber),t.R7$(2),t.JRh(g.lot.TenderName),t.R7$(2),t.Y8G("ngIf",g.lot.OpeningOfPricesDate.Date),t.R7$(),t.Y8G("ngIf",!g.lot.OpeningOfPricesDate.Date),t.R7$(2),t.Y8G("ngClass",g.lot.expanded?"mdi-chevron-up":"mdi-chevron-down"),t.R7$(),t.Y8G("overlapTrigger",!0),t.R7$(5),t.SpI(" ",t.i5U(18,11,g.lot.OpeningOfPricesDate.Date,"ShortDateTime")," "),t.R7$(5),t.SpI(" ",t.bMT(23,14,"str_Tender_finalize_lots_quality_evaluation_apply")," "),t.R7$(3),t.SpI(" ",t.bMT(26,16,"str_Tender_finalize_lots_quality_evaluation_apply_all")," "))},dependencies:[s.YU,s.bT,f.NZ,_.pI,_.fS,S.D9,B.O],styles:[".square-cell[_ngcontent-%COMP%]{width:60px;min-width:60px;text-align:center;max-width:60px;padding:5px 0}.mdi-dots-vertical[_ngcontent-%COMP%]:hover, .mdi-arrow[_ngcontent-%COMP%]:hover{color:#000c}.date__not-specified[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;vertical-align:middle;margin-right:10px}.switcher[_ngcontent-%COMP%] .switcher__applyTo[_ngcontent-%COMP%]{padding:10px;line-height:normal;height:auto}.switcher[_ngcontent-%COMP%] .switcher__applyTo[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #d9d9d9}"],changeDetection:0})}}return m})();var k=ut(42957);function a(m,at){if(1&m&&(t.j41(0,"tr",16)(1,"td",17),t.EFF(2),t.k0s(),t.j41(3,"td",18),t.EFF(4),t.k0s()()),2&m){const i=at.$implicit;t.R7$(2),t.JRh(i.ParticipantName),t.R7$(2),t.JRh(i.OfferName)}
1}function e(m,at){if(1&m&&(t.j41(0,"table",10)(1,"thead",11)(2,"tr")(3,"th",12),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"th",13),t.EFF(7),t.nI1(8,"translate"),t.k0s()()(),t.j41(9,"tbody",14),t.DNE(10,a,5,2,"tr",15),t.k0s()()),2&m){const i=t.XpG();t.R7$(4),t.JRh(t.bMT(5,3,"str_Tender_finalize_lots_quality_evaluation_participant")),t.R7$(3),t.JRh(t.bMT(8,5,"str_Tender_finalize_lots_quality_evaluation_offer")),t.R7$(3),t.Y8G("ngForOf",i.lot.ProceedingOffers)}}function n(m,at){1&m&&t.nrm(0,"nx1-empty-content",19),2&m&&t.Y8G("isVertical",!1)}function o(m,at){if(1&m&&(t.j41(0,"tr",16)(1,"td",17),t.EFF(2),t.k0s(),t.j41(3,"td",18),t.EFF(4),t.k0s()()),2&m){const i=at.$implicit;t.R7$(2),t.JRh(i.ParticipantName),t.R7$(2),t.JRh(i.OfferName)}}function l(m,at){if(1&m&&(t.j41(0,"table",20)(1,"thead",21)(2,"tr")(3,"th",12),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"th",13),t.EFF(7),t.nI1(8,"translate"),t.k0s()()(),t.j41(9,"tbody",14),t.DNE(10,o,5,2,"tr",15),t.k0s()()),2&m){const i=t.XpG();t.R7$(4),t.JRh(t.bMT(5,3,"str_Tender_finalize_lots_quality_evaluation_participant")),t.R7$(3),t.JRh(t.bMT(8,5,"str_Tender_finalize_lots_quality_evaluation_offer")),t.R7$(3),t.Y8G("ngForOf",i.lot.DisqualifiedOffers)}}function u(m,at){1&m&&t.nrm(0,"nx1-empty-content",19),2&m&&t.Y8G("isVertical",!1)}let v=(()=>{class m{constructor(){}ngOnInit(){}static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-finalize-lot-quality-evaluation-expanded"]],inputs:{lot:"lot"},decls:18,vars:10,consts:[[1,"square-cell"],["colspan","2",1,"expandedLot"],[1,"wrapped_expandedLot"],[1,"proceedingOffers"],[1,"proceedingOffers__title","grayedTitle","text--10px","text--uppercase"],["class","nxtable proceedingOffers__card nxcard",4,"ngIf"],["class","noOffersFoundCard","iconClass","mdi-alert","primaryTextKeyword","str_Tender_finalize_lots_quality_evaluation_no_offers",3,"isVertical",4,"ngIf"],[1,"disqualifiedOffers"],[1,"disqualifiedOffers__title","grayedTitle","text--10px","text--uppercase"],["class","nxtable disqualifiedOffers__card nxcard",4,"ngIf"],[1,"nxtable","proceedingOffers__card","nxcard"],[1,"nxtable__header","proceedingOffers__card-header"],[1,"nxtable__header-title","col-sm-4","text--normal"],[1,"nxtable__header-title","col-sm-8","text--normal"],[1,"nxtable__body"],["class","border-top",4,"ngFor","ngForOf"],[1,"border-top"],[1,"nxtable__body-cell","col-sm-4"],[1,"nxtable__body-cell","col-sm-8"],["iconClass","mdi-alert","primaryTextKeyword","str_Tender_finalize_lots_quality_evaluation_no_offers",1,"noOffersFoundCard",3,"isVertical"],[1,"nxtable","disqualifiedOffers__card","nxcard"],[1,"nxtable__header","disqualifiedOffers__card-header"]],template:function(p,g){1&p&&(t.j41(0,"tr"),t.nrm(1,"td",0)(2,"td",0),t.j41(3,"td",1)(4,"div",2)(5,"div",3)(6,"div",4),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.DNE(9,e,11,7,"table",5)(10,n,1,1,"nx1-empty-content",6),t.k0s(),t.j41(11,"div",7)(12,"div",8),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.DNE(15,l,11,7,"table",9)(16,u,1,1,"nx1-empty-content",6),t.k0s()()(),t.nrm(17,"td"),t.k0s()),2&p&&(t.R7$(7),t.SpI(" ",t.bMT(8,6,"str_Tender_finalize_lots_quality_evaluation_proceeding")," "),t.R7$(2),t.Y8G("ngIf",g.lot.ProceedingOffers.length>0),t.R7$(),t.Y8G("ngIf",0===g.lot.ProceedingOffers.length),t.R7$(3),t.SpI(" ",t.bMT(14,8,"str_Tender_finalize_lots_quality_evaluation_disqualified")," "),t.R7$(2),t.Y8G("ngIf",g.lot.DisqualifiedOffers.length>0),t.R7$(),t.Y8G("ngIf",0===g.lot.DisqualifiedOffers.length))},dependencies:[s.Sq,s.bT,k.o,S.D9],styles:[".square-cell[_ngcontent-%COMP%]{width:60px;min-width:60px;text-align:center;max-width:60px}.wrapped_expandedLot[_ngcontent-%COMP%]{margin-right:15px;padding-left:12px;margin-top:-10px}.wrapped_expandedLot[_ngcontent-%COMP%] .noOffersFoundCard[_ngcontent-%COMP%]{border-radius:5px;border:1px solid rgba(0,0,0,.1);margin:3px 0 8px}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard[_ngcontent-%COMP%]{display:block;background:#f5f5f5;border:1px solid rgba(0,0,0,.1)}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard.proceedingOffers__card[_ngcontent-%COMP%]{margin:3px 0 8px}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard.disqualifiedOffers__card[_ngcontent-%COMP%]{margin:3px 0 20px}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard[_ngcontent-%COMP%] .nxtable__header[_ngcontent-%COMP%]{display:table;width:100%}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard[_ngcontent-%COMP%] .nxtable__header[_ngcontent-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:first-child{padding-left:16px}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%]{width:100%;display:table}.wrapped_expandedLot[_ngcontent-%COMP%] .nxcard[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%] .nxtable__body-cell[_ngcontent-%COMP%]:first-child{padding-left:16px}.wrapped_expandedLot[_ngcontent-%COMP%] .border-top[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.1)}.wrapped_expandedLot[_ngcontent-%COMP%] .grayedTitle[_ngcontent-%COMP%]{color:#80808080;font-weight:700}"],changeDetection:0})}}return m})();const C=(m,at)=>({"mdi-chevron-down":m,"mdi-chevron-up":at});function I(m,at){if(1&m&&t.nrm(0,"nx1-finalize-lot-quality-evaluation-expanded",25),2&m){const i=t.XpG().$implicit;t.Y8G("lot",i)}}function j(m,at){if(1&m){const i=t.RV6();t.qex(0),t.j41(1,"nx1-finalize-lot-quality-evaluation",23),t.bIt("toggleCheckBox",function(){t.eBV(i);
1const g=t.XpG(2);return t.Njj(g.checkLot())})("setDateToNotSpecifiedLots",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.applyDateToNotSpecifiedLots(g))})("setDateToAllLots",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.applyDateToAllLots(g))}),t.k0s(),t.qex(2),t.DNE(3,I,1,1,"nx1-finalize-lot-quality-evaluation-expanded",24),t.bVm()()}if(2&m){const i=at.$implicit;t.R7$(),t.AVh("isExpanded",i&&i.expanded),t.Y8G("lot",i),t.R7$(2),t.Y8G("ngIf",i.expanded)}}function $(m,at){if(1&m&&(t.j41(0,"ng-scrollbar",21),t.DNE(1,j,4,4,"ng-container",22),t.k0s()),2&m){const i=t.XpG();t.R7$(),t.Y8G("ngForOf",i.orderedLots)}}function X(m,at){1&m&&t.nrm(0,"nx1-content-loader",26)}function W(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",27)(1,"button",28),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.close())}),t.j41(2,"span",29),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"button",30),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.onProceed())}),t.j41(6,"span",29),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()}if(2&m){const i=t.XpG();t.R7$(3),t.JRh(t.bMT(4,3,"str_Common_cancel")),t.R7$(2),t.Y8G("disabled",!i.isMainCheckBoxChecked&&!i.isMainCheckBoxIndeterminate),t.R7$(2),t.JRh(t.bMT(8,5,"str_Tender_finalize_lots_quality_evaluation_confirm"))}}let G=(()=>{class m extends b.${constructor(i,p,g,N,lt,mt){super(mt),this.evaluationDialogRef=i,this.multilotTenderStoreService=p,this.changeDetectorRef=g,this.dialogService=N,this.tenderProcessPhaseTransitionStoreService=lt,this.proceed=new t.bkB,this.isChanged=!1,this.isMainCheckBoxChecked=!1,this.isMainCheckBoxIndeterminate=!1,this.isMainCheckBoxDisabled=!0,this.orderType="LotNumber",this.direction="asc",this.finalizeLots=[],this.isProceeding=!1,this.subscriptions=[]}ngOnInit(){this.isLoaded$=this.multilotTenderStoreService.getIsFinalizeLotQualityEvaluationOverviewsLoaded(),this.subscriptions.push(this.isLoaded$.pipe((0,nt.n)(i=>(i||this.multilotTenderStoreService.loadFinalizeLotQualityEvaluationOverviews(this.mainTenderId,this.tenderProcessRound.OrderNumber),this.multilotTenderStoreService.getFinalizeLotQualityEvaluationOverviews())),(0,tt.p)(i=>!!i&&i.length>0),(0,T.s)(1)).subscribe(i=>{this.finalizeLots=i.map(p=>({...p,expanded:!1,checked:!1})),this.setStatus(),this.changeDetectorRef.markForCheck()}))}ngOnDestroy(){this.subscriptions.forEach(i=>i.unsubscribe())}get orderedLots(){if("LotNumber"===this.orderType)return(0,P.orderBy)(this.finalizeLots,[i=>Number(i.LotNumber)],[this.direction])}sort(i){this.orderType=i,this.direction="asc"===this.direction?"desc":"asc"}isSortActive(i,p){return p?this.orderType===i&&this.direction===p:this.orderType===i}checkLot(){this.setStatus(),this.isChanged=!0}onToggleCheckAll(){this.isChanged=!0,this.isMainCheckBoxIndeterminate=!1,this.isMainCheckBoxChecked=!this.isMainCheckBoxChecked,this.finalizeLots=this.finalizeLots.map(i=>i.OpeningOfPricesDate.Date?{...i,checked:this.isMainCheckBoxChecked}:i)}applyDateToNotSpecifiedLots(i){this.finalizeLots=this.finalizeLots.map(p=>p.OpeningOfPricesDate.Date?p:{...p,OpeningOfPricesDate:{...p.OpeningOfPricesDate,Date:i.OpeningOfPricesDate.Date}}),this.setStatus(),this.isChanged=!0}applyDateToAllLots(i){this.finalizeLots=this.finalizeLots.map(p=>({...p,OpeningOfPricesDate:{...p.OpeningOfPricesDate,Date:i.OpeningOfPricesDate.Date}})),this.setStatus(),this.isChanged=!0}close(){this.isChanged?this.confirmCancel():this.evaluationDialogRef.close()}confirmCancel(){let i;i=this.dialogService.confirm({titleKeyword:"str_Common_are_you_sure",textContentKeyword:"str_Common_local_changes_will_be_lost",confirmationType:"alert",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_confirm",requirePassword:!1,showCheckbox:!1}).subscribe(p=>{p.confirmed&&this.evaluationDialogRef.close(),i.unsubscribe()})}onProceed(){const i=this.finalizeLots.filter(p=>p.checked);this.multilotTenderStoreService.finalizeLotQualityEvaluationOverviews(this.mainTenderId,i),this.subscriptions.push(this.tenderProcessPhaseTransitionStoreService.getTenderProcessPhaseTransitionState().subscribe(p=>{p?(this.proceed.emit(!0),this.isChanged=!1,this.close()):this.isProceeding=!0}))}setStatus(){const i=this.finalizeLots.filter(g=>g.OpeningOfPricesDate.Date),p=this.finalizeLots.filter(g=>g.checked);this.isMainCheckBoxDisabled=0===i.length,this.isMainCheckBoxChecked=0!==i.length&&p.length===i.length,this.isMainCheckBoxIndeterminate=0!==p.length&&p.length<i.length}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(x.RN),t.rXU(c.Rh7),t.rXU(t.gRc),t.rXU(h.o3),t.rXU(c.Ipo),t.rXU(t.c1b))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-finalize-lots-quality-evaluation"]],inputs:{mainTenderId:"mainTenderId",tenderProcessRound:"tenderProcessRound"},outputs:{proceed:"proceed"},features:[t.Vt3],decls:38,vars:33,consts:[[1,"nxcard","finalizeOverview-offers","bg--white","z1"],[1,"nxcard__header","border-bottom"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"nxcard__header-options"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-close"],[1,"warning_area","border-bottom","bg--lemon1"],[1,"nxcard__body"],[1,"nxtable","bg--white"],[1,"nxtable__header"],[1,"nxtable__header-row"],[1,"square-cell"],[3,"change","checked","indeterminate","disabled"],[1,"nxtable__header-title","nxtable__header-title--sortable","square-cell",3,"click"],[1,"mdi","mdi-chevron-up",3,"ngClass"],[1,"nxtable__header-title","col-sm-9","text--normal"],[1,"nxtable__header-title","text--right","col-sm-3","text--normal"],["class","nxtable__body",4,"ngIf"],["class","loaderBody",4,"ngIf"],["class","buttons",4,"ngIf"],[1,"nxtable__body"],[4,"ngFor","ngForOf"],[1,"nxtable__body-row",3,"toggleCheckBox","setDateToNotSpecifiedLots","setDateToAllLots","lot"],["class","expandedLot-row",3,"lot",4,"ngIf"],[1,"expandedLot-row",3,"lot"],[1,"loaderBody"],[1,"buttons"],["color","primary",1,"mat-button","mat-button-base",3,"click"],[1,"mat-button-wrapper"],["color","primary",1,"mat-button","mat-button-base","mat-primary",3,"click","disabled"]],template:function(p,g){1&p&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"div",4)(8,"button",5),t.bIt("click",function(){return g.close()}),t.nrm(9,"i",6),t.k0s()()(),t.j41(10,"div",7)(11,"span"),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr",11)(18,"th",12)(19,"mat-checkbox",13),t.nI1(20,"async"),t.bIt("change",function(){return g.onToggleCheckAll()}),t.k0s()(),t.j41(21,"th",14),t.bIt("click",function(){return g.sort("LotNumber")}),t.j41(22,"a"),t.EFF(23,"#"),t.k0s(),t.nrm(24,"i",15),t.k0s(),t.j41(25,"th",16),t.EFF(26),t.nI1(27,"translate"),t.k0s(),t.j41(28,"th",17),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.nrm(31,"th",12),t.k0s()(),t.DNE(32,$,2,1,"ng-scrollbar",18),t.nI1(33,"async"),t.DNE(34,X,1,0,"nx1-content-loader",19),t.nI1(35,"async"),t.k0s()(),t.DNE(36,W,9,7,"div",20),t.nI1(37,"async"),t.k0s()),2&p&&(t.R7$(5),t.JRh(t.bMT(6,14,"str_Tender_finalize_lots_quality_evaluation_title")),t.R7$(3),t.BMQ("id",g.getButtonId("close")),t.R7$(4),t.JRh(t.bMT(13,16,"str_Mnemonic_proceedtophasebeforeopeningofpricesfromevaluation_content")),t.R7$(7),t.Y8G("checked",g.isMainCheckBoxChecked)("indeterminate",g.isMainCheckBoxIndeterminate)("disabled",g.isMainCheckBoxDisabled||!t.bMT(20,18,g.isLoaded$)),t.R7$(2),t.AVh("nxtable__header-title--selected",g.isSortActive("LotNumber")),t.R7$(3),t.Y8G("ngClass",t.l_i(30,C,g.isSortActive("LotNumber","desc"),g.isSortActive("LotNumber","asc"))),t.R7$(2),t.SpI(" ",t.bMT(27,20,"str_Tender_finalize_lots_quality_evaluation_lot")," "),t.R7$(3),t.SpI(" ",t.bMT(30,22,"str_Tender_finalize_lots_quality_evaluation_date")," "),t.R7$(3),t.Y8G("ngIf",t.bMT(33,24,g.isLoaded$)&&!g.isProceeding),t.R7$(2),t.Y8G("ngIf",!1===t.bMT(35,26,g.isLoaded$)||g.isProceeding),t.R7$(2),t.Y8G("ngIf",t.bMT(37,28,g.isLoaded$)&&!g.isProceeding))},dependencies:[s.YU,s.Sq,s.bT,r.iV,f.NZ,d.Yh,y.G,F,v,s.Jj,S.D9],styles:[".finalizeOverview-offers[_ngcontent-%COMP%]{width:1050px;position:relative;height:626px}.finalizeOverview-offers[_ngcontent-%COMP%] .warning_area[_ngcontent-%COMP%]{height:55px;display:table;padding:0 15px;width:100%}.finalizeOverview-offers[_ngcontent-%COMP%] .warning_area[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.1)}.square-cell[_ngcontent-%COMP%]{width:60px;min-width:60px;text-align:center;max-width:60px}.loaderBody[_ngcontent-%COMP%]{height:418px}.nxcard__body[_ngcontent-%COMP%] .nxtable__header[_ngcontent-%COMP%] .nxtable__header-row[_ngcontent-%COMP%]{display:table}.nxcard__body[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%]{display:block;height:418px}.nxcard__body[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%] .nxtable__body-row[_ngcontent-%COMP%]{width:100%;display:table}.nxcard__body[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%] .nxtable__body-row[_ngcontent-%COMP%]:hover{background:transparent}.nxcard__body[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%] .nxtable__body-row.isExpanded[_ngcontent-%COMP%]{border-bottom:1px solid transparent}.nxcard__body[_ngcontent-%COMP%] .nxtable__body[_ngcontent-%COMP%] .expandedLot-row[_ngcontent-%COMP%]{width:100%;display:table;border-bottom:1px solid #e6e6e6}.buttons[_ngcontent-%COMP%]{height:60px;border-top:1px solid #e6e6e6;position:absolute;bottom:0;width:100%;padding:6px;display:flex;justify-content:flex-end}.buttons[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]:first-child{margin:0 6px}"],changeDetection:0})}}return m})();var w=ut(45312),A=ut(52512),Z=ut(84412),J=ut(61594);let it=(()=>{class m{static{this.BoxIdQueryParameter="boxId"}static{this.ViewBuyerEvaluationBoxContent="ViewBuyerEvaluationBoxContent"}static{this.FillOutRoundEvaluation="FillOutRoundEvaluation"}constructor(i,p,g){this.principalPermissionService=i,this.boxStoreService=p,this.tenderProcessStoreService=g,this.canViewEvaluationBoxContent=!1,this.canFillOutRoundEvaluation=!1}canActivate(i,p){const g=+i.parent.parent.paramMap.get(m.BoxIdQueryParameter);return this.box$=this.boxStoreService.getBoxById(g).pipe((0,tt.p)(N=>!!N)),this.tenderProcessRound$=this.box$.pipe((0,nt.n)(N=>this.tenderProcessStoreService.getProcessRound(N.TenderProcessRoundId))),this.evaluateHasPermissions()}evaluateHasPermissions(){const i=[m.ViewBuyerEvaluationBoxContent],p=[m.FillOutRoundEvaluation];return this.box$.pipe((0,U.H)(g=>{const N=this.principalPermissionService.getActionsToCheck(i,g.EntityId,g.Guid);return this.tenderProcessRound$.pipe((0,ot.T)(lt=>{const mt=this.principalPermissionService.getActionsToCheck(p,lt.EntityId,lt.Guid);return[...N,...mt]}),(0,U.H)(lt=>this.principalPermissionService.hasPermissions(lt)))}),(0,st.M)(g=>
1{this.canViewEvaluationBoxContent=g[m.ViewBuyerEvaluationBoxContent],this.canFillOutRoundEvaluation=g[m.FillOutRoundEvaluation]}),(0,ot.T)(()=>!0),(0,J.$)())}static{this.\u0275fac=function(p){return new(p||m)(t.KVO(c.N49),t.KVO(c.o2P),t.KVO(c.i_v))}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac})}}return m})();var ct=ut(99964),O=ut(11105);let H=(()=>{class m{constructor(i,p){this.callbackWrapper=p,this.nx1Service=i.get()}getEvaluatorsProgressByRoundId(i){return this.callbackWrapper.wrap(this.nx1Service.GetEvaluatorsProgressByRoundId,null,i)}getEvaluationOffersOverviewByRoundId(i){return this.callbackWrapper.wrap(this.nx1Service.GetEvaluationOffersOverviewByRoundId,null,i)}updateOfferInvitation(i){return this.callbackWrapper.wrap(this.nx1Service.UpdateOfferInvitation,null,i)}updateReasonOfDisqualification(i,p,g,N){return this.callbackWrapper.wrap(this.nx1Service.UpdateReasonOfDisqualification,null,i,p,g,N)}getOffersEvaluationProcessByRoundId(i){return this.callbackWrapper.wrap(this.nx1Service.GetOffersEvaluationProgressByRoundId,null,i)}getEvaluationParameters(i){return this.callbackWrapper.wrap(this.nx1Service.GetEvaluationParameters,null,i)}getEvaluationScoresBarChart(i,p,g){return this.callbackWrapper.wrap(this.nx1Service.GetEvaluationScoresBarChart,null,i,p,g)}getRegisterFinancialAuditRequest(i){return this.callbackWrapper.wrap(this.nx1Service.RegisterFinancialAuditRequest,null,i)}getFinancialAuditRequestExport(i,p=null){return this.callbackWrapper.wrap(this.nx1Service.GenerateFinancialAuditRequestExcelExport,p,i)}static{this.\u0275fac=function(p){return new(p||m)(t.KVO(c.B_y),t.KVO(c.GaR))}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac})}}return m})();var rt=ut(18904);let ht=(()=>{class m{static{this.ManageBuyerEvaluationBox="ManageBuyerEvaluationBox"}static{this.ViewRoundPriceOfferContent="ViewRoundPriceOfferContent"}static{this.ManageOfferResultsEvaluationBox="ManageOfferResultsEvaluationBox"}static{this.ManageOfferRanks="ManageOfferRanks"}static{this.DisqualifyOffers="DisqualifyOffers"}static{this.TenderProcessRoundIdQueryParameter="roundId"}constructor(i,p,g,N,lt){this.advancedEvaluationToolGuard=i,this.tenderGuard=p,this.tenderBuyerGuard=g,this.principalPermissionService=N,this.evaluationToolStoreService=lt,this.resolved=new Z.t(!1)}canActivate(i,p){return this.resolved.next(!1),this.setInitialState(),this.getPropertiesFromOtherGuards(),this.advancedEvaluationToolGuard.canViewEvaluationBoxContent?(this.evaluationToolStoreService.loadEvaluationOffers(+i.parent.parent.parent.params[m.TenderProcessRoundIdQueryParameter]),this.evaluateHasPermissions()):(this.evaluationToolStoreService.setIsLoadingEvaluationOffersState(!1),!0)}evaluateHasPermissions(){const i=[m.ViewRoundPriceOfferContent],p=[m.ManageOfferResultsEvaluationBox,m.ManageBuyerEvaluationBox,m.ManageOfferRanks,m.DisqualifyOffers];return this.box$.pipe((0,U.H)(g=>{const N=this.principalPermissionService.getActionsToCheck(p,g.EntityId,g.Guid);return this.tenderProcessRound$.pipe((0,ot.T)(lt=>{const mt=this.principalPermissionService.getActionsToCheck(i,lt.EntityId,lt.Guid);return[...N,...mt]}),(0,U.H)(lt=>this.principalPermissionService.hasPermissions(lt)))}),(0,st.M)(g=>{this.canViewRoundPriceOfferContent=g[m.ViewRoundPriceOfferContent],this.canManageOfferResultsEvaluationBox=g[m.ManageOfferResultsEvaluationBox],this.canManageBuyerEvaluationBox=g[m.ManageBuyerEvaluationBox],this.canManageOfferRanks=g[m.ManageOfferRanks],this.canDisqualifyOffers=g[m.DisqualifyOffers]}),(0,st.M)(g=>this.resolved.next(!0)),(0,ot.T)(g=>!0),(0,J.$)())}canDeactivate(i,p,g,N){return this.evaluationToolStoreService.clearEvaluationOffersState(),!0}setInitialState(){this.canEditTender=!1,this.canManageBuyerEvaluationBox=!1,this.canViewRoundPriceOfferContent=!1,this.canManageOfferResultsEvaluationBox=!1,this.canViewBuyerEvaluationBoxContent=!1,this.canManageOfferRanks=!1,this.canExecuteFinalizeEvaluation=!1}getPropertiesFromOtherGuards(){this.tender=this.tenderGuard.tenderInfo,this.tenderProcessRound$=this.advancedEvaluationToolGuard.tenderProcessRound$,this.box$=this.advancedEvaluationToolGuard.box$,this.canEditTender=this.tenderGuard.canEditTender,this.canViewBu
1yerEvaluationBoxContent=this.advancedEvaluationToolGuard.canViewEvaluationBoxContent,this.canExecuteFinalizeEvaluation=this.tenderBuyerGuard.canExecuteFinalizeEvaluation}static{this.\u0275fac=function(p){return new(p||m)(t.KVO(it),t.KVO(ct.U),t.KVO(O.V),t.KVO(c.N49),t.KVO(rt.h))}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac})}}return m})();var dt=ut(1776),ft=ut(4597),pt=ut(87088),vt=ut(12566),yt=ut(59596),Ct=ut(96680),xt=ut(45106),bt=ut(35056),Rt=ut(10872),Bt=ut(8173);let Et=(()=>{class m extends Ot.$G{constructor(i){super(i),this.selectSurveyLevel=new t.bkB}get path(){return[{name:this.requirementBoxName,SurveyLevelId:null},...this.surveyLevels.map(i=>({...i,name:`${i.DisplayNumber} ${i.Name}`}))]}get isNavigateBackButtonEnabled(){return 0!==this.surveyLevels.length}onChangePath(i){this.path.findIndex(N=>N.SurveyLevelId===i.SurveyLevelId)!==this.path.length-1&&this.selectSurveyLevel.emit(i)}navigateBack(){this.isNavigateBackButtonEnabled&&this.selectSurveyLevel.emit(this.path[this.path.length-2])}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-scores-bar-chart-breadcrump"]],inputs:{surveyLevels:"surveyLevels",requirementBoxName:"requirementBoxName"},outputs:{selectSurveyLevel:"selectSurveyLevel"},features:[t.Vt3],decls:6,vars:2,consts:[[1,"display--flex"],[1,"margin--left-10","margin--top-10","margin--bottom-10"],["mat-icon-button","",3,"click","disabled"],[1,"mdi","mdi-arrow-up"],[1,"nxcard__header-title"],[3,"changePath","path"]],template:function(p,g){1&p&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return g.navigateBack()}),t.nrm(3,"i",3),t.k0s()(),t.j41(4,"div",4)(5,"nx1-breadcrumb",5),t.bIt("changePath",function(lt){return g.onChangePath(lt)}),t.k0s()()()),2&p&&(t.R7$(2),t.Y8G("disabled",!g.isNavigateBackButtonEnabled),t.R7$(3),t.Y8G("path",g.path))},dependencies:[r.iV,Bt.D],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return m})();var Pt=ut(16790),Ft=ut(89417),$t=ut(16240);function ye(m,at){if(1&m){const i=t.RV6();t.j41(0,"li",8)(1,"label",9)(2,"span",10),t.EFF(3),t.k0s(),t.j41(4,"mat-checkbox",15),t.bIt("change",function(g){const N=t.eBV(i).$implicit,lt=t.XpG(2);return t.Njj(lt.onChange(g,N))}),t.k0s()()()}if(2&m){const i=at.$implicit,p=at.index,g=t.XpG(2);t.AVh("bg--clarityblue3",g.isSelected(i)),t.R7$(2),t.AVh("text--blueberry-1",g.isSelected(i)),t.R7$(),t.SpI(" ",i.OfferName," "),t.R7$(),t.Y8G("disabled",g.isDisabled(i))("checked",g.isSelected(i))("id",g.getCheckboxId("AllowAttachments",p)),t.BMQ("id",g.getCheckboxId("AllowAttachments",p))}}function be(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",1),t.bIt("clickOutside",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.clickedOutside())}),t.j41(1,"div",2),t.nrm(2,"span",3),t.j41(3,"button",4),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.clickedOutside())}),t.nrm(4,"i",5),t.k0s()(),t.j41(5,"form")(6,"ng-scrollbar",6)(7,"ul",7)(8,"li",8)(9,"label",9)(10,"span",10),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"mat-checkbox",11),t.bIt("change",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onChangeTopOffers(g))}),t.k0s()()(),t.DNE(14,ye,5,9,"li",12),t.k0s()()(),t.j41(15,"div",13)(16,"button",14),t.nI1(17,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.apply())}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()}if(2&m){const i=t.XpG();t.R7$(3),t.BMQ("id",i.getButtonId("clickedOutside")),t.R7$(5),t.AVh("bg--clarityblue3",i.currentAreSelectedTop),t.R7$(2),t.AVh("text--blueberry-1",i.currentAreSelectedTop),t.R7$(),t.SpI(" ",t.bMT(12,13,"str_Tender_evaluation_scores_bar_chart_filters_top_offers")," "),t.R7$(2),t.Y8G("checked",i.currentAreSelectedTop)("id",i.getCheckboxId("AllowAttachments")),t.BMQ("id",i.getCheckboxId("AllowAttachments")),t.R7$(),t.Y8G("ngForOf",i.offers),t.R7$(2),t.FS9("title",t.bMT(17,15,"str_Tender_evaluation_scores_bar_chart_set")),t.BMQ("id",i.getButtonId("apply")),t.R7$(2),t.SpI(" ",t.bMT(19,17,"str_Tender_evaluation_scores_bar_chart_set")," ")}}let Qt=(()=>{class m extends Pt.$G{set selectedOfferIds(i){this.currentSelectedOfferIds=[...i]}set areSelectedTop(i){this.currentAreSelectedTop=i}constructor(i,p){super(i),this.changeDetectorRef=p,this.close=new t.bkB,this.selectOffersId=new t.bkB}ngOnInit(){this.show=!0}onChange(i,p){this.currentAreSelectedTop=!1,i.checked?this.currentSelectedOfferIds.push(p.OfferId):i.checked||(this.currentSelectedOfferIds=this.currentSelectedOfferIds.filter(g=>g!==p.OfferId)),this.changeDetectorRef.markForCheck()}onChangeTopOffers(i){i.checked?(this.currentSelectedOfferIds=this.offers.map(p=>p.OfferId).slice(0,this.maxOffersCount),this.currentAreSelectedTop=!0):i.checked||(this.currentSelectedOfferIds=[],this.currentAreSelectedTop=!1),this.changeDetectorRef.markForCheck()}apply(){this.selectOffersId.emit({areSelectedTop:this.currentAreSelectedTop,selectedOfferIds:this.currentSelectedOfferIds}),this.clickedOutside()}clickedOutside(){this.show=!this.show,this.show&&this.close.emit()}isSelected(i){return!!this.currentSelectedOfferIds.find(p=>p===i.OfferId)}isDisabled(i){return!(this.isSelected(i)||this.currentSelectedOfferIds.length<this.maxOffersCount)}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-bar-chart-filter-offers"]],inputs:{parentId:"parentId",offers:"offers",selectedOfferIds:"selectedOfferIds",areSelectedTop:"areSelectedTop",maxOffersCount:"maxOffersCount"},outputs:{close:"close",selectOffersId:"selectOffersId"},features:[t.Vt3],decls:1,vars:1,consts:[[3,"clickOutside",4,"ngIf"],[3,"clickOutside"],[1,"display--flex","align--center","filters-title","border--bottom"],[1,"break-word","flex-grow--2","text--ellipsis","text--grey50","text--12px","padding--right-5"],["mat-icon-button","",1,"button--medium","shrink-0","text--16px",3,"click"],[1,"mdi","mdi-close"],[1,"filterlist-wrapper"],[1,"filterlist"],[1,"align--center","display--flex","border--bottom"],[1,"padding--10","pointer","display--flex","full-width"],[1,"align--center","display--flex","flex-grow--2","text--12px"],["labelPosition","before",3,"change","checked","id"],["class","align--center display--flex border--bottom",3,"bg--clarityblue3",4,"ngFor","ngForOf"],[1,"display--flex","content-end","apply-wrapper"],["mat-button","","color","primary",3,"click","title"],["labelPosition","before",3,"change","disabled","checked","id"]],template:function(p,g){1&p&&t.DNE(0,be,20,19,"div",0),2&p&&t.Y8G("ngIf",null==g.offers?null:g.offers.length)},dependencies:[s.Sq,s.bT,Ft.qT,Ft.cb,Ft.cV,r.iV,f.NZ,d.Yh,$t.z,S.D9],styles:["[_nghost-%COMP%]{display:block;position:absolute;right:0;
1width:200px;z-index:999999}.filterlist-wrapper[_ngcontent-%COMP%]{max-height:300px}.filterlist[_ngcontent-%COMP%]{list-style:none}.apply-wrapper[_ngcontent-%COMP%]{padding:4px}.filters-title[_ngcontent-%COMP%]{padding:4px 4px 4px 10px}"],changeDetection:0})}}return m})();function Ce(m,at){if(1&m){const i=t.RV6();t.j41(0,"nx1-bar-chart-filter-offers",11),t.nI1(1,"translate"),t.bIt("selectOffersId",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.selectOffersId(g))})("close",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.hideSelectOffersFilters())}),t.k0s()}if(2&m){const i=t.XpG();t.Y8G("title",t.bMT(1,5,"str_Tender_evaluation_scores_bar_chart_filter_offers"))("offers",i.offers)("selectedOfferIds",i.selectedOfferIds)("areSelectedTop",i.areSelectedTop)("maxOffersCount",i.maxOffersCount)}}function Te(m,at){if(1&m){const i=t.RV6();t.j41(0,"div")(1,"div",19)(2,"div",20)(3,"div",21)(4,"span",22),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"button",23),t.bIt("click",function(){t.eBV(i);const g=t.XpG(2);return t.Njj(g.removeTop())}),t.nrm(8,"i",24),t.k0s()()()()()}if(2&m){const i=t.XpG(2);t.R7$(5),t.SpI(" ",t.bMT(6,2,"str_Tender_evaluation_scores_bar_chart_filters_top_offers")," "),t.R7$(2),t.BMQ("id",i.getButtonId("removeTop"))}}function Se(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",19)(1,"div",20)(2,"div",21)(3,"span",27),t.EFF(4),t.k0s(),t.j41(5,"button",23),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(3);return t.Njj(N.removeCurrentOfferId(g.OfferId))}),t.nrm(6,"i",24),t.k0s()()()()}if(2&m){const i=at.$implicit,p=t.XpG(3);t.R7$(4),t.SpI(" ",null==i?null:i.OfferName," "),t.R7$(),t.BMQ("id",p.getButtonId("removeItem"))}}function Oe(m,at){if(1&m&&(t.j41(0,"div",25),t.DNE(1,Se,7,2,"div",26),t.k0s()),2&m){const i=t.XpG(2);t.R7$(),t.Y8G("ngForOf",i.selectedOffers)}}function Ie(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",12)(1,"div",13),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",14),t.DNE(5,Te,9,4,"div",15)(6,Oe,2,1,"div",16),t.k0s(),t.j41(7,"div",17)(8,"button",18),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.clearFilters())}),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()}if(2&m){const i=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,5,"str_Tender_evaluation_scores_bar_chart_filters_section")," "),t.R7$(3),t.Y8G("ngIf",i.areSelectedTop),t.R7$(),t.Y8G("ngIf",i.showSelected),t.R7$(2),t.BMQ("id",i.getButtonId("clearFilters")),t.R7$(),t.SpI(" ",t.bMT(10,7,"str_Tender_evaluation_scores_bar_chart_filters_clear")," ")}}let Ht=(()=>{class m extends Pt.$G{constructor(i,p){super(i),this.changeDetectorRef=p,this.closeFilter=new t.bkB(!1),this.selectOfferIds=new t.bkB,this.selectedOffersTags=[]}ngOnInit(){this.areSelectedTop=!0,this.closeSelectedOfferIds=this.selectedOfferIds,this.changeDetectorRef.markForCheck()}get selectedOffers(){return this.offers.filter(i=>this.selectedOfferIds.indexOf(i.OfferId)>=0)}showEvaluationTypeFilters(){this.evaluationTypesfiltersVisible=!0}hideSelectOffersFilters(){this.evaluationTypesfiltersVisible=!1}close(){this.selectOfferIds.emit(this.closeSelectedOfferIds),this.closeFilter.emit(!1)}removeTop(){this.areSelectedTop=!1,this.selectOfferIds.emit([]),this.changeDetectorRef.markForCheck()}removeCurrentOfferId(i){this.selectedOfferIds=this.selectedOfferIds.filter(p=>p!==i),this.isClear=!this.selectedOfferIds.length,this.selectOfferIds.emit(this.selectedOfferIds),this.changeDetectorRef.markForCheck()}clearFilters(){this.isClear=!0,this.areSelectedTop=!1,this.selectOfferIds.emit([]),this.changeDetectorRef.markForCheck()}selectOffersId(i){i.areSelectedTop?(this.showSelected=!1,this.areSelectedTop=!0):(this.showSelected=!0,this.areSelectedTop=!1),this.isClear=!i.selectedOfferIds.length,this.selectOfferIds.emit(i.selectedOfferIds),this.changeDetectorRef.markForCheck()}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-scores-bar-chart-filters"]],inputs:{offers:"offers",selectedOfferIds:"selectedOfferIds",maxOffersCount:"maxOffersCount"},outputs:{closeFilter:"closeFilter",selectOfferIds:"selectOfferIds"},features:[t.Vt3],decls:13,vars:7,consts:[[1,"nxcard","z3","bg--white","full-width","margin--bottom-15"],[1,"display--flex"],[1,"flex-grow--2","display--flex","flex-column","content-center"],[1,"display--flex","border--right","search-button-wrapper","pos--relative","test"],["mat-button","",3,"click"],[1,"mdi","mdi-chevron-down"],["class","bg--white z3 border--radius-3",3,"title","offers","selectedOfferIds","areSelectedTop","maxOffersCount","selectOffersId","close",4,"ngIf"],[1,"close-container"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-close"],["class","bg--clarityblue3 display--flex border--top filters-container",4,"ngIf"],[1,"bg--white","z3","border--radius-3",3,"selectOffersId","close","title","offers","selectedOfferIds","areSelectedTop","maxOffersCount"],[1,"bg--clarityblue3","display--flex","border--top","filters-container"],[1,"align--center","display--flex","text--blueberry-1","padding--left-20","padding--right-20","text--12px"],[1,"display--flex","flex-grow--2","align--center","flex-wrap"],[4,"ngIf"],["class","display--flex flex-grow--2 flex-wrap",4,"ngIf"],[1,"clear-filters-wrapper"],["mat-button","","color","primary",3,"click"],[1,"filter__tag"],[1,"bg--white","z1","border--radius-3"],[1,"display--flex","filter-wrap"],[1,"align--center","display--flex","no-wrap","padding--5","text--14px","text--seablue-1"],[1,"remove-filter-button","pointer","shrink-0",3,"click"],[1,"mdi","mdi-close","text--14px"],[1,"display--flex","flex-grow--2","flex-wrap"],["class","filter__tag",4,"ngFor","ngForOf"],[1,"display--flex","no-wrap","padding--5","text--14px","text--seablue-1"]],template:function(p,g){1&p&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"form",2),t.j41(3,"div",3)(4,"button",4),t.bIt("click",function(){return g.showEvaluationTypeFilters()}),t.EFF(5),t.nI1(6,"translate"),t.nrm(7,"i",5),t.k0s(),t.DNE(8,Ce,2,7,"nx1-bar-chart-filter-offers",6),t.k0s(),t.j41(9,"div",7)(10,"button",8),t.bIt("click",function(){return g.close()}),t.nrm(11,"i",9),t.k0s()()(),t.DNE(12,Ie,11,9,"div",10),t.k0s()),2&p&&(t.R7$(4),t.BMQ("id",g.getButtonId("showTypeFilters")),t.R7$(),t.SpI(" ",t.bMT(6,5,"str_Tender_evaluation_scores_bar_chart_filters_types")," "),t.R7$(3),t.Y8G("ngIf",g.evaluationTypesfiltersVisible),t.R7$(2),t.BMQ("id",g.getButtonId("closeFilter")),t.R7$(2),t.Y8G("ngIf",!g.isClear))},dependencies:[s.Sq,s.bT,Ft.qT,Ft.cb,Ft.cV,r.iV,Qt,S.D9],styles:[".filter__tag[_ngcontent-%COMP%]{padding:15px 4px 15px 2px;max-width:77vw}.filter__tag--mobile[_ngcontent-%COMP%]{max-width:77vw;padding:10px 4px 0 2px}[_nghost-%COMP%]{display:block}.search-button-wrapper[_ngcontent-%COMP%]{padding:6px}.clear-filters-wrapper[_ngcontent-%COMP%]{padding:10px}.filters-container[_ngcontent-%COMP%]{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.close-container[_ngcontent-%COMP%]{display:flex;padding:6px}.test[_ngcontent-%COMP%]{max-height:60px}"],changeDetection:0})}}return m})();var we=ut(21264),Kt=ut(10637),Jt=ut(51280),Zt=ut(60980);function ke(m,at){1&m&&t.nrm(0,"nx1-empty-content",2)}let te=(()=>{class m extends Ot.$G{constructor(i,p,g,N){super(i),this.localizationService=p,this.nx1ResultScorePipe=g,this.truncatePipe=N,this.changeSurveyLevel=new t.bkB(!1),this.mdiFolderIconHtml='<i class="mdi mdi-folder padding--right-5"></i>',this.colors=["#47c1cc","#ffe69c","#f5a4c7","#3fc97b","#72a58a","#7c90d0","#4d739c","#47abcc"],this.darkColors=new Map([["#47c1cc","#028596"],["#ffe69c","#ffe087"],["#f5a4c7","#f28db9"],["#3fc97b","#00af57"],["#72a58a","#4f8f6d"],["#7c90d0","#495a81"],["#4d739c","#215082"],["#47abcc","#003a51"]]),this.rgbaTransperantColors=new Map([["#47c1cc","rgba(71, 193, 204, 0.5)"],["#ffe69c","rgba(255, 230, 156, 0.5)"],["#f5a4c7","rgba(245, 164, 199, 0.5)"],["#3fc97b","rgba(63, 201, 123, 0.5)"],["#72a58a","rgba(114, 165, 138, 0.5)"],["#7c90d0","rgba(124, 144, 208, 0.5)"],["#4d739c","rgba(124, 144, 208, 0.5)"],["#47abcc","rgba(71, 171, 204, 0.5)"]])}ngOnInit(){if(this.chartIsEmpty=0===this.evaluationScores.SurveyLevels.length&&0===this.evaluationScores.SurveyQuestions.length,!this.chartIsEmpty){this.pointsTranslatedKeyword=this.localizationService.instant("str_Enum_qualityunit_points");const i=this.localizationService.instant("str_Tender_evaluation_scores_bar_chart_max_category"),p=this,g=this.offers.map(Tt=>{const wt=(0,Kt.vw3)(this.evaluationScores.SurveyQuestionResults.filter(St=>St.OfferId===Tt.OfferId).map(St=>{const At=null!==St.ExplicitScore?St.ExplicitScore:St.Score;return{...St,FinalScore:At}}),St=>St.SurveyQuestionId),Dt=(0,Kt.vw3)(this.evaluationScores.SurveyLevelResults.filter(St=>St.OfferId===Tt.OfferId).map(St=>({...St,Score:St.Score})),St=>St.SurveyLevelId);return{...Tt,SurveyQuestionResults:wt,SurveyLevelResults:Dt}}),N=this.getSurveyItems(),lt=this.getSeries(N,g,p),mt=g.map(Tt=>{const wt=this.getStrippedRichText(Tt.OfferName);
1return{name:`<span class="highchart-label" title="${this.getStrippedRichText(Tt.ParticipantName)} - ${wt}"><strong>${Tt.Rank}.</strong> ${wt}</span>`,showBothPointsInTooltip:!0}});mt.unshift({name:i,showBothPointsInTooltip:!1});const gt=this.getChartOptions(p,mt,lt);we.chart("evaluation-scores-bar-chart-content",gt)}}getSurveyItems(){let i=[];for(const p of this.evaluationScores.SurveyLevels){const N={Name:this.truncatePipe.transform(this.getStrippedRichText(p.Name),100),DisplayNumber:p.DisplayNumber,IsGroupingElement:!0,Weight:p.Weight,OrderNumber:p.OrderNumber,Id:p.SurveyLevelId,Color:null};i.push(N)}for(const p of this.evaluationScores.SurveyQuestions){const N={Name:this.truncatePipe.transform(this.getStrippedRichText(p.Text),100),DisplayNumber:p.DisplayNumber,IsGroupingElement:!1,Weight:p.Weight,OrderNumber:p.OrderNumber,Id:p.SurveyQuestionId,Color:null};i.push(N)}i=i.sort(p=>p.OrderNumber);for(let p=0;p<i.length;p++)i[p].Color=this.colors[p%this.colors.length];return i}getStrippedRichText(i){return c.Bm6.str
1ipRichText(i)}getColorChangeEvents(i,p=!1){let g;return{mouseOver:function(){g=this.color;const lt=p?g:i.darkColors.get(g);this.update({color:lt})},mouseOut:function(){this.update({color:g})}}}getSeries(i,p,g){const N=[];for(const lt of i){const mt={name:lt.Name,data:[],isGroupingElement:lt.IsGroupingElement,displayNumber:lt.DisplayNumber,cursor:lt.IsGroupingElement?"pointer":void 0},gt={y:lt.Weight,surveyItemId:lt.Id,isGroupingElement:lt.IsGroupingElement,marker:{states:{hover:{enabled:!1}}},color:this.rgbaTransperantColors.get(lt.Color),events:this.getColorChangeEvents(g,!lt.IsGroupingElement),originalColor:lt.Color};mt.data.push(gt);for(const Tt of p){let wt;wt=lt.IsGroupingElement?g.awardFormula===NX1.Model.Enums.Formula.MultiplePriceComponent?Number(Tt.SurveyLevelResults[lt.Id].Score.toFixed(2)):Tt.SurveyLevelResults[lt.Id].Score:g.awardFormula===NX1.Model.Enums.Formula.MultiplePriceComponent?Number(Tt.SurveyQuestionResults[lt.Id].FinalScore.toFixed(2)):Tt.SurveyQuestionResults[lt.Id].FinalScore;const Dt={y:wt,surveyItemId:lt.Id,isGroupingElement:lt.IsGroupingElement,totalSurveyItemWeight:lt.Weight,originalColor:lt.Color};Dt.events=this.getColorChangeEvents(g,!lt.IsGroupingElement),mt.data.push(Dt)}N.push(mt)}return N}getChartOptions(i,p,g){return{chart:{type:"column"},title:{text:null,style:{display:"none"}},subtitle:{text:null,style:{display:"none"}},credits:{enabled:!1},plotOptions:{column:{stacking:"normal"},series:{states:{inactive:{opacity:1}},point:{events:{click:function(){this.options.isGroupingElement&&i.onChangeSurveyLevel(this.options.surveyItemId)}}}}},xAxis:{categories:p,labels:{formatter:function(){return this.value.name},useHTML:!0},gridLineWidth:1},yAxis:{stackLabels:{enabled:!0,align:"center",formatter:function(){if(i.awardFormula===NX1.Model.Enums.Formula.MultiplePriceComponent)return this.total;let lt=i.nx1ResultScorePipe.transform(this.total,null,NX1.Model.Enums.QualityUnit.Points);return i.unit===NX1.Model.Enums.QualityUnit.PointsWithPercentages&&(lt+=` (${i.nx1ResultScorePipe.transform(this.total,i.totalWeight,NX1.Model.Enums.QualityUnit.PointsWithPercentages)})`),lt}},title:{text:null}},legend:{align:"left",verticalAlign:"bottom",x:0,y:0,useHTML:!0,symbolRadius:0,labelFormatter:function(){return`<span class="padding--right-5">${this.options.displayNumber}</span> ${this.options.isGroupingElement?i.mdiFolderIconHtml:""} ${this.name}`},title:{text:this.localizationService.instant("str_Tender_evaluation_scores_bar_chart_legend_title")},margin:25},colors:this.colors,series:g,tooltip:{backgroundColor:"white",useHTML:!0,formatter:function(){return i.getPointTooltipHtml(this.point.options.isGroupingElement,this.point.y,this.point.options.totalSurveyItemWeight,this.point.category.showBothPointsInTooltip,this.point.options.originalColor,this.series.options.displayNumber,this.series.name)}}}}getPointTooltipHtml(i,p,g,N,lt,mt,gt){const Tt=i?this.mdiFolderIconHtml:"",wt=this.nx1ResultScorePipe.transform(p,null,NX1.Model.Enums.QualityUnit.Points);let Dt="";if(N){let At;At=this.awardFormula===NX1.Model.Enums.Formula.MultiplePriceComponent?g:this.nx1ResultScorePipe.transform(g,null,NX1.Model.Enums.QualityUnit.Points),Dt=this.localizationService.instant("str_Tender_evaluation_scores_bar_chart_{{evaluatedPoints}}_of_{{totalSurveyItemWeight}}",{evaluatedPoints:wt,totalSurveyItemWeight:At})}else Dt=`${wt} ${this.pointsTranslatedKeyword}`;return`\n <div class="chart-tooltip">\n <div class="chart-tooltip__color" style="background-color:${lt};"></div>\n <div class="chart-tooltip__info">\n <div class="text--ellipsis full-width">\n <span class="text--grey40 padding--right-5">${mt}</span>${Tt}${gt}\n </div>\n <div class="text--grey40 text--ellipsis text--12px full-width">\n <span>\n ${Dt}\n </span>\n </div>\n </div>\n </div>\n `}onChangeSurveyLevel(i){const p=this.evaluationScores.SurveyLevels.find(g=>g.SurveyLevelId===i);this.changeSurveyLevel.emit(p)}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(c.PiF),t.rXU(Jt.R),t.rXU(Zt.H))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-scores-bar-chart"]],inputs:{offers:"offers",evaluationScores:"evaluationScores",totalWeight:"totalWeight",unit:"unit",awardFormula:"awardFormula"},outputs:{changeSurveyLevel:"changeSurveyLevel"},features:[t.Jv_([Jt.R,Zt.H]),t.Vt3],decls:2,vars:1,consts:[["iconClass","mdi-scale-balance","primaryTextKeyword","str_Tender_no_items_to_visualize_in_the_chart",4,"ngIf"],["id","evaluation-scores-bar-chart-content"],["iconClass","mdi-scale-balance","primaryTextKeyword","str_Tender_no_items_to_visualize_in_the_chart"]],template:function(p,g){1&p&&(t.DNE(0,ke,1,0,"nx1-empty-content",0),t.nrm(1,"div",1)),2&p&&t.Y8G("ngIf",g.chartIsEmpty)},dependencies:[s.bT,k.o],styles:["[_nghost-%COMP%] {display:block}
1[_nghost-%COMP%] .chart-tooltip{display:flex;padding:12px 8px;width:300px}[_nghost-%COMP%] .chart-tooltip__color{width:18px;height:18px;margin-right:15px;flex-shrink:0}[_nghost-%COMP%] .chart-tooltip__info{flex-grow:2;min-width:0;line-height:16px}[_nghost-%COMP%] .highchart-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}"],changeDetection:0})}}return m})();function Me(m,at){if(1&m){const i=t.RV6();t.j41(0,"nx1-evaluation-scores-bar-chart-filters",12),t.nI1(1,"translate"),t.bIt("closeFilter",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.closeSearchFilter())})("selectOfferIds",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.selectOfferIds(g))}),t.k0s()}if(2&m){const i=t.XpG();t.Y8G("title",t.bMT(1,4,"str_Tender_evaluation_scores_bar_chart_filters"))("offers",i.sortedOffers)("selectedOfferIds",i.selectedOfferIds)("maxOffersCount",i.maxOffersCount)}}function Ee(m,at){1&m&&t.nrm(0,"nx1-content-loader",13)}function Pe(m,at){if(1&m){const i=t.RV6();t.j41(0,"nx1-evaluation-scores-bar-chart",14),t.bIt("changeSurveyLevel",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onChangeSurveyLevel(g))}),t.k0s()}if(2&m){const i=t.XpG();t.Y8G("offers",i.barChartOffers)("evaluationScores",i.evaluationScores)("totalWeight",i.totalWeight)("unit",i.unit)("awardFormula",i.awardFormula)}}let Yt=(()=>{class m extends Ot.$G{constructor(i,p,g,N,lt){super(i),this.evaluationToolStoreService=p,this.changeDetectorRef=g,this.boxStoreService=N,this.awardMethodStoreService=lt,this.isOpenSearchFilter=!1,this.breadcrumbSurveyLevels=[],this.maxOffersCount=10,this.subscriptions=[]}ngOnInit(){this.sortedOffers=(0,P.orderBy)(this.offers,[p=>p.Rank]),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationScoresBarChartOfferIds().subscribe(p=>{this.selectedOfferIds=p,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationScoresBarChartSelectedSurveyLevel().subscribe(p=>{this.selectedSurveyLevel=p,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationScoresBarChartBreadcrumb().subscribe(p=>{this.breadcrumbSurveyLevels=p,this.changeDetectorRef.markForCheck()})),this.requirementBoxName$=this.boxStoreService.getCurrentTenderBoxByRoundIdAndBoxType(this.tenderProcessRoundId,NX1.Model.Enums.BoxType.Requirement).pipe((0,ot.T)(p=>p?.Name)),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationScoresBarChartScores().pipe((0,tt.p)(p=>!!p)).subscribe(p=>{this.evaluationScores=p,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationScoresBarChartIsLoading().subscribe(p=>{this.isLoading=p,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationScoresBarChartTotalWeight().subscribe(p=>{this.totalWeight=p,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.awardMethodStoreService.getQualityUnit().pipe((0,tt.p)(p=>!!p)).subscribe(p=>{this.unit=p,this.changeDetectorRef.markForCheck()}));const i=this.sortedOffers.slice(0,this.maxOffersCount);this.loadEvaluationScoresBarChart({SurveyLevelId:null},i.map(p=>p.OfferId),!0)}ngOnDestroy(){this.subscriptions.forEach(i=>i.unsubscribe()),this.evaluationToolStoreService.clearEvaluationScoresBarChartState()}get barChartOffers(){return this.sortedOffers.filter(i=>this.selectedOfferIds.some(p=>p===i.OfferId))}onChangeSurveyLevel(i){this.selectedSurveyLevel=i,this.loadEvaluationScoresBarChart(i,this.selectedOfferIds)}openSearchFilter(){!1===this.isOpenSearchFilter&&(this.isOpenSearchFilter=!0)}closeSearchFilter(){this.isOpenSearchFilter=!1}selectOfferIds(i){this.loadEvaluationScoresBarChart(this.selectedSurveyLevel,i)}loadEvaluationScoresBarChart(i,p,g=!1){this.evaluationToolStoreService.loadEvaluationScoresBarChart(this.evaluationBoxId,i,p,g)}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(rt.h),t.rXU(t.gRc),t.rXU(c.o2P),t.rXU(c.r2T))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-scores-bar-chart-wrapper"]],inputs:{offers:"offers",evaluationBoxId:"evaluationBoxId",tenderProcessRoundId:"tenderProcessRoundId",awardFormula:"awardFormula"},features:[t.Vt3],decls:17,vars:11,consts:[["contentTemplate",""],[1,"nxcard","bg--white","z1","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"nxcard__header-options"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-magnify"],[1,"nxcard__body","nxcard__body--no-scroll"],["class","bg--white z3 border--radius-3 margin--bottom-15 margin--right-20 margin--left-20 margin--top-15 ",3,"title","offers","selectedOfferIds","maxOffersCount","closeFilter","selectOfferIds",4,"ngIf"],[3,"selectSurveyLevel","surveyLevels","requirementBoxName"],["class","margin--bottom-50",4,"ngIf","ngIfElse"],[1,"bg--white","z3","border--radius-3","margin--bottom-15","margin--right-20","margin--left-20","margin--top-15",3,"closeFilter","selectOfferIds","title","offers","selectedOfferIds","maxOffersCount"],[1,"margin--bottom-50"],[3,"changeSurveyLevel","offers","evaluationScores","totalWeight","unit","awardFormula"]],template:function(p,g){if(1&p){const N=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"div",5)(8,"button",6),t.bIt("click",function(){return t.eBV(N),t.Njj(g.openSearchFilter())}),t.nrm(9,"i",7),t.k0s()()(),t.j41(10,"div",8),t.DNE(11,Me,2,6,"nx1-evaluation-scores-bar-chart-filters",9),t.j41(12,"nx1-evaluation-scores-bar-chart-breadcrump",10),t.nI1(13,"async"),t.bIt("selectSurveyLevel",function(mt){return t.eBV(N),t.Njj(g.onChangeSurveyLevel(mt))}),t.k0s(),t.DNE(14,Ee,1,0,"nx1-content-loader",11)(15,Pe,1,5,"ng-template",null,0,t.C5r),t.k0s()()}if(2&p){const N=t.sdS(16);t.R7$(5),t.JRh(t.bMT(6,7,"str_Tender_evaluation_scores_bar_chart_title")),t.R7$(3),t.BMQ("id",g.getButtonId("onOpenSearchAndFilter")),t.R7$(3),t.Y8G("ngIf",g.isOpenSearchFilter),t.R7$(),t.Y8G("surveyLevels",g.breadcrumbSurveyLevels)("requirementBoxName",t.bMT(13,9,g.requirementBoxName$)),t.R7$(2),t.Y8G("ngIf",g.isLoading)("ngIfElse",N)}},dependencies:[s.bT,r.iV,y.G,Et,Ht,te,s.Jj,S.D9],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return m})();var Re=ut(64779),Lt=ut(6669),Vt=ut(51220),Wt=ut(99413);const ee=m=>[m];function De(m,at){if(1&m&&(t.j41(0,"tr",17)(1,"td",18),t.EFF(2),t.k0s(),t.j41(3,"td",19),t.EFF(4),t.k0s(),t.j41(5,"td",20),t.EFF(6),t.nI1(7,"nx1Number"),t.j41(8,"span",21),t.EFF(9),t.nI1(10,"nx1Number"),t.k0s()(),t.j41(11,"td",20),t.EFF(12),t.nI1(13,"currencyConvert"),t.k0s(),t.j41(14,"td",20),t.EFF(15),t.nI1(16,"nx1Number"),t.k0s(),t.j41(17,"td",20),t.EFF(18),t.nI1(19,"currencyConvert"),t.k0s()()),2&m){const i=at.$implicit,p=at.index,g=t.XpG
1();t.R7$(),t.BMQ("id",g.getLabelId("rank",p)),t.R7$(),t.SpI(" ",i.Rank," "),t.R7$(),t.BMQ("id",g.getLabelId("offerName",p))("title",i.ParticipantName+" - "+i.OfferName),t.R7$(),t.SpI(" ",i.OfferName," "),t.R7$(),t.BMQ("id",g.getLabelId("quality",p)),t.R7$(),t.SpI(" ",null!==i.Quality?t.i5U(7,14,i.Quality,!0):"-"," "),t.R7$(3),t.SpI(" ",null!==i.QualityScorePercentage?"("+t.i5U(10,17,100*i.QualityScorePercentage,!0)+"%)":""," "),t.R7$(2),t.BMQ("id",g.getLabelId("price",p)),t.R7$(),t.SpI(" ",null!==i.Price?t.i5U(13,20,i.Price,null==g.currency?null:g.currency.Id):"-"," "),t.R7$(2),t.BMQ("id",g.getLabelId("qToOne",p)),t.R7$(),t.SpI(" ",null!==g.getQualityToBeBestBuyPercentage(i)?t.i5U(16,23,100*g.getQualityToBeBestBuyPercentage(i),!0)+"%":"-"," "),t.R7$(2),t.BMQ("id",g.getLabelId("tooExpensive",p)),t.R7$(),t.SpI(" ",null!==g.getTooExpensive(i)?t.i5U(19,26,g.getTooExpensive(i),null==g.currency?null:g.currency.Id):"-"," ")}}let ie=(()=>{class m extends Ot.$G{constructor(i,p,g){super(i),this.tenderStoreService=p,this.currenciesStoreService=g,this.offersRankProperties={},this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.tenderStoreService.getCurrentTender().pipe((0,tt.p)(i=>!!i),(0,U.H)(i=>this.currenciesStoreService.getCurrencyById(i.Currency))).subscribe(i=>{this.currency=i})),this.offers.forEach(i=>{const g=JSON.parse(i.RankProperties);this.offersRankProperties[i.OfferId]=g})}ngOnDestroy(){this.subscriptions.forEach(i=>i.unsubscribe())}getTooExpensive(i){if(i&&null!==i.Price){const p=this.offersRankProperties[i.OfferId].PriceToBeBestBuy;if(null!=p)return i.Price-p}return null}getQualityToBeBestBuyPercentage(i){if(i&&null!==i.QualityScorePercentage){const p=this.offersRankProperties[i.OfferId].QualityToBeBestBuy;if(null!=p)return p-i.QualityScorePercentage}return null}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(c.$gx),t.rXU(c.gW))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-utility-index-analysis"]],inputs:{parentId:"parentId",offers:"offers",priceQualityRatio:"priceQualityRatio"},features:[t.Vt3],decls:55,vars:60,consts:[[1,"nxcard","bg--white","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--ellipsis","text--11px","text--grey40a"],[1,"text--bold","text--grey40"],[1,"mdi","mdi-checkbox-blank-circle","dot-separator"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"nxtable","nxtable--scroll"],[1,"nxtable__header"],[1,"nxtable__header-title","col-sm-1",3,"title"],[1,"nxtable__header-title","col-sm-3",3,"title"],[1,"nxtable__header-title","col-sm-2","margin","text--right",3,"title"],[1,"nxtable__header-title","col-sm-2","margin","text--right"],["tooltip","",1,"mdi","mdi-alert-circle-outline",3,"tooltipMessages","tooltipPosition"],[1,"nxtable__body"],["class","nxtable__body-row",4,"ngFor","ngForOf"],[1,"nxtable__body-row"],[1,"nxtable__body-cell","col-sm-1"],[1,"nxtable__body-cell","text--ellipsis","col-sm-3"],[1,"nxtable__body-cell","col-sm-2","text--right"],[1,"text--bold","text--grey40","text--10px"]],template:function(p,g){1&p&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"span",5),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.nrm(10,"i",6),t.EFF(11),t.nI1(12,"translate"),t.j41(13,"span",5),t.EFF(14),t.nI1(15,"nx1Number"),t.nI1(16,"nx1Number"),t.k0s()()()()(),t.j41(17,"div",7)(18,"table",8)(19,"thead",9)(20,"tr")(21,"th",10),t.nI1(22,"translate"),t.j41(23,"span"),t.EFF(24),t.nI1(25,"translate"),t.k0s()(),t.j41(26,"th",11),t.nI1(27,"translate"),t.j41(28,"span"),t.EFF(29),t.nI1(30,"translate"),t.k0s()(),t.j41(31,"th",12),t.nI1(32,"translate"),t.j41(33,"span"),t.EFF(34),t.nI1(35,"translate"),t.k0s()(),t.j41(36,"th",12),t.nI1(37,"translate"),t.j41(38,"span"),t.EFF(39),t.nI1(40,"translate"),t.k0s()(),t.j41(41,"th",13)(42,"span"),t.EFF(43),t.nI1(44,"translate"),t.k0s(),t.nrm(45,"i",14),t.nI1(46,"translate"),t.k0s(),t.j41(47,"th",13)(48,"span"),t.EFF(49),t.nI1(50,"translate"),t.k0s(),t.nrm(51,"i",14),t.nI1(52,"translate"),t.k0s()()(),t.j41(53,"ng-scrollbar",15),t.DNE(54,De,20,29,"tr",16),t.k0s()()()()),2&p&&(t.R7$(4),t.BMQ("id",g.getLabelId("header")),t.R7$(),t.SpI(" ",t.bMT(6,20,"str_Tender_award_analysis_award_method"),": "),t.R7$(3),t.SpI(" ",t.bMT(9,22,"str_Tender_award_analysis_utility_index")," "),t.R7$(3),t.SpI(" ",t.bMT(12,24,"str_Tender_award_analysis_price_quality_ration"),": "),t.R7$(3),t.SpI(" ",null!==g.priceQualityRatio?t.i5U(15,26,100*g.priceQualityRatio,!0)+"/"+t.i5U(16,29,100*(1-g.priceQualityRatio),!0):"-"," "),t.R7$(7),t.FS9("title",t.bMT(22,32,"str_Tender_award_analysis_utility_rank")),t.R7$(3),t.JRh(t.bMT(25,34,"str_Tender_award_analysis_utility_rank")),t.R7$(2),t.FS9("title",t.bMT(27,36,"str_Tender_award_analysis_utility_offer_name")),t.R7$(3),t.JRh(t.bMT(30,38,"str_Tender_award_analysis_utility_offer_name")),t.R7$(2),t.FS9("title",t.bMT(32,40,"str_Tender_award_analysis_utility_quality")),t.R7$(3),t.JRh(t.bMT(35,42,"str_Tender_award_analysis_utility_quality")),t.R7$(2),t.FS9("title",t.bMT(37,44,"str_Tender_award_analysis_utility_price")),t.R7$(3),t.JRh(t.bMT(40,46,"str_Tender_award_analysis_utility_price")),t.R7$(4),t.JRh(t.bMT(44,48,"str_Tender_award_analysis_utility_q_to_one")),t.R7$(2),t.Y8G("tooltipMessages",t.eq3(56,ee,t.bMT(46,50,"str_Tender_award_analysis_low_too_expensive")))("tooltipPosition","top"),t.R7$(4),t.JRh(t.bMT(50,52,"str_Tender_award_analysis_utility_too_expensive")),t.R7$(2),t.Y8G("tooltipMessages",t.eq3(58,ee,t.bMT(52,54,"str_Tender_award_analysis_offerd_to_become_number_one")))("tooltipPosition","top"),t.R7$(3),t.Y8G("ngForOf",g.offers))},dependencies:[s.Sq,d.Yh,Vt.d,S.D9,Lt.v,Wt.V],styles:[".tooltip[_ngcontent-%COMP%]{z-index:10;background-color:#fff;position:absolute;color:#333;padding:8px 11px;border-radius:3px;box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f;min-width:150px;right:0;top:calc(100% + 10px)}.tooltip__message[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.margin[_ngcontent-%COMP%]{margin-left:10px}"],changeDetection:0})}}return m})();const ne=m=>[m];function Be(m,at){if(1&m&&(t.j41(0,"tr",18)(1,"td",19),t.EFF(2),t.k0s(),t.j41(3,"td",20),t.EFF(4),t.k0s(),t.j41(5,"td",21),t.EFF(6),t.nI1(7,"nx1Number"),t.k0s(),t.j41(8,"td",21),t.EFF(9),t.nI1(10,"nx1Number"),t.k0s(),t.j41(11,"td",21),t.EFF(12),t.nI1(13,"nx1Number"),t.k0s(),t.j41(14,"td",22),t.EFF(15),t.nI1(16,"nx1Number"),t.k0s(),t.j41(17,"td",22),t.EFF(18),t.nI1(19,"nx1Number"),t.k0s()()),2&m){const i=at.$implicit,p=at.index,g=t.XpG
1();t.R7$(),t.BMQ("id",g.getLabelId("rank",p)),t.R7$(),t.SpI(" ",i.Rank," "),t.R7$(),t.BMQ("id",g.getLabelId("offerName",p))("title",i.ParticipantName+" - "+i.OfferName),t.R7$(),t.SpI(" ",i.OfferName," "),t.R7$(),t.BMQ("id",g.getLabelId("priceScore",p)),t.R7$(),t.SpI(" ",null!=(null==g.offersRankProperties[i.OfferId]?null:g.offersRankProperties[i.OfferId].WeightedPriceScore)?t.i5U(7,15,100*(null==g.offersRankProperties[i.OfferId]?null:g.offersRankProperties[i.OfferId].WeightedPriceScore),!0)+"%":"-"," "),t.R7$(2),t.BMQ("id",g.getLabelId("quality",p)),t.R7$(),t.SpI(" ",null!=(null==g.offersRankProperties[i.OfferId]?null:g.offersRankProperties[i.OfferId].WeightedQualityScore)?t.i5U(10,18,100*(null==g.offersRankProperties[i.OfferId]?null:g.offersRankProperties[i.OfferId].WeightedQualityScore),!0)+"%":"-"," "),t.R7$(2),t.BMQ("id",g.getLabelId("totalscore",p)),t.R7$(),t.SpI(" ",null!==i.Score?t.i5U(13,21,100*i.Score,!0)+"%":"-"," "),t.R7$(2),t.BMQ("id",g.getLabelId("qToOne",p)),t.R7$(),t.SpI(" ",null!==g.getQualityToBeBestBuyPercentage(i)?t.i5U(16,24,100*g.getQualityToBeBestBuyPercentage(i),!0)+"%":"-"," "),t.R7$(2),t.BMQ("id",g.getLabelId("tooExpensive",p)),t.R7$(),t.SpI(" ",null!==g.getTooExpensivePercentage(i)?t.i5U(19,27,100*g.getTooExpensivePercentage(i),!0)+"%":"-"," ")}}let oe=(()=>{class m extends Ot.$G{constructor(i){super(i),this.offersRankProperties={}}ngOnInit(){this.offers.forEach(i=>{const g=JSON.parse(i.RankProperties);this.offersRankProperties[i.OfferId]=g})}ngOnDestroy(){}getTooExpensivePercentage(i){if(i&&i.Price){const p=this.offersRankProperties[i.OfferId].PriceToBeBestBuy;if(null!=p)return(i.Price-p)/i.Price}return null}getQualityToBeBestBuyPercentage(i){if(i&&null!==i.QualityScorePercentage){const p=this.offersRankProperties[i.OfferId].QualityToBeBestBuy;if(null!=p)return p-i.QualityScorePercentage}return null}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-low-bid-scoring-analysis"]],inputs:{parentId:"parentId",offers:"offers",priceQualityRatio:"priceQualityRatio"},features:[t.Vt3],decls:60,vars:66,consts:[[1,"nxcard","bg--white","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--ellipsis","text--11px","text--grey40a"],[1,"text--bold","text--grey40"],[1,"mdi","mdi-checkbox-blank-circle","dot-separator"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"nxtable","nxtable--scroll"],[1,"nxtable__header"],[1,"nxtable__header-title","col-sm-1",3,"title"],[1,"nxtable__header-title","col-sm-3",3,"title"],[1,"nxtable__header-title","col-sm-2","text--right",3,"title"],[1,"nxtable__header-title","col-sm-1","text--right"],["tooltip","",1,"mdi","mdi-alert-circle-outline",3,"tooltipMessages","tooltipPosition"],[1,"nxtable__header-title","col-sm-1","margin","text--right"],[1,"nxtable__body"],["class","nxtable__body-row",4,"ngFor","ngForOf"],[1,"nxtable__body-row"],[1,"nxtable__body-cell","col-sm-1"],[1,"nxtable__body-cell","col-sm-3","text--ellipsis"],[1,"nxtable__body-cell","col-sm-2","text--right"],[1,"nxtable__body-cell","col-sm-1","text--right"]],template:function(p,g){1&p&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"span",5),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.nrm(10,"i",6),t.EFF(11),t.nI1(12,"translate"),t.j41(13,"span",5),t.EFF(14),t.nI1(15,"nx1Number"),t.nI1(16,"nx1Number"),t.k0s()()()()(),t.j41(17,"div",7)(18,"table",8)(19,"thead",9)(20,"tr")(21,"th",10),t.nI1(22,"translate"),t.j41(23,"span"),t.EFF(24),t.nI1(25,"translate"),t.k0s()(),t.j41(26,"th",11),t.nI1(27,"translate"),t.j41(28,"span"),t.EFF(29),t.nI1(30,"translate"),t.k0s()(),t.j41(31,"th",12),t.nI1(32,"translate"),t.j41(33,"span"),t.EFF(34),t.nI1(35,"translate"),t.k0s()(),t.j41(36,"th",12),t.nI1(37,"translate"),t.j41(38,"span"),t.EFF(39),t.nI1(40,"translate"),t.k0s()(),t.j41(41,"th",12),t.nI1(42,"translate"),t.j41(43,"span"),t.EFF(44),t.nI1(45,"translate"),t.k0s()(),t.j41(46,"th",13)(47,"span"),t.EFF(48),t.nI1(49,"translate"),t.k0s(),t.nrm(50,"i",14),t.nI1(51,"translate"),t.k0s(),t.j41(52,"th",15)(53,"span"),t.EFF(54),t.nI1(55,"translate"),t.k0s(),t.nrm(56,"i",14),t.nI1(57,"translate"),t.k0s()()(),t.j41(58,"ng-scrollbar",16),t.DNE(59,Be,20,30,"tr",17),t.k0s()()()()),2&p&&(t.R7$(4),t.BMQ("id",g.getLabelId("header")),t.R7$(),t.SpI("",t.bMT(6,22,"str_Tender_award_analysis_award_method"),": "),t.R7$(3),t.SpI(" ",t.bMT(9,24,"str_Tender_award_analysis_low_bid_scoring"),""),t.R7$(3),t.SpI(" ",t.bMT(12,26,"str_Tender_award_analysis_price_quality_ration"),"; "),t.R7$(3),t.SpI(" ",null!==g.priceQualityRatio?t.i5U(15,28,100*g.priceQualityRatio,!0)+"/"+t.i5U(16,31,100*(1-g.priceQualityRatio),!0):"-"," "),t.R7$(7),t.FS9("title",t.bMT(22,34,"str_Tender_award_analysis_score_rank")),t.R7$(3),t.JRh(t.bMT(25,36,"str_Tender_award_analysis_score_rank")),t.R7$(2),t.FS9("title",t.bMT(27,38,"str_Tender_award_analysis_score_offer_name")),t.R7$(3),t.JRh(t.bMT(30,40,"str_Tender_award_analysis_score_offer_name")),t.R7$(2),t.FS9("title",t.bMT(32,42,"str_Tender_award_analysis_score_price")),t.R7$(3),t.JRh(t.bMT(35,44,"str_Tender_award_analysis_score_price")),t.R7$(2),t.FS9("title",t.bMT(37,46,"str_Tender_award_analysis_score_quality")),t.R7$(3),t.JRh(t.bMT(40,48,"str_Tender_award_analysis_score_quality")),t.R7$(2),t.FS9("title",t.bMT(42,50,"str_Tender_award_analysis_score_total")),t.R7$(3),t.JRh(t.bMT(45,52,"str_Tender_award_analysis_score_total")),t.R7$(4),t.JRh(t.bMT(49,54,"str_Tender_award_analysis_score_q_to_one")),t.R7$(2),t.Y8G("tooltipMessages",t.eq3(62,
1ne,t.bMT(51,56,"str_Tender_award_analysis_supplier_to_become_number_one")))("tooltipPosition","top"),t.R7$(4),t.JRh(t.bMT(55,58,"str_Tender_award_analysis_score_too_expensive")),t.R7$(2),t.Y8G("tooltipMessages",t.eq3(64,ne,t.bMT(57,60,"str_Tender_award_analysis_offerd_to_become_number_one")))("tooltipPosition","top"),t.R7$(3),t.Y8G("ngForOf",g.offers))},dependencies:[s.Sq,d.Yh,Vt.d,S.D9,Lt.v],styles:[".tooltip[_ngcontent-%COMP%]{z-index:10;background-color:#fff;position:absolute;color:#333;padding:8px 11px;border-radius:3px;box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f;min-width:150px;right:0;top:calc(100% + 10px)}.tooltip__message[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.margin[_ngcontent-%COMP%]{margin-left:10px}"],changeDetection:0})}}return m})();function Ae(m,at){if(1&m&&t.nrm(0,"nx1-utility-index-analysis",10),2&m){const i=t.XpG(2);t.Y8G("parentId",i.parentId)("offers",i.offers)("priceQualityRatio",i.priceQualityRatio)}}function Fe(m,at){if(1&m&&t.nrm(0,"nx1-low-bid-scoring-analysis",10),2&m){const i=t.XpG(2);t.Y8G("parentId",i.parentId)("offers",i.offers)("priceQualityRatio",i.priceQualityRatio)}}function Le(m,at){if(1&m&&(t.j41(0,"div"),t.DNE(1,Ae,1,3,"nx1-utility-index-analysis",9)(2,Fe,1,3,"nx1-low-bid-scoring-analysis",9),t.k0s()),2&m){const i=t.XpG();t.R7$(),t.Y8G("ngIf",i.nXUtilityIndex),t.R7$(),t.Y8G("ngIf",i.lowBidScoring)}}let re=(()=>{class m extends Ot.$G{constructor(i,p){super(i),this.dialogRef=p,this.nXUtilityIndex=!1,this.lowBidScoring=!1}ngOnInit(){this.awardFormula===NX1.Model.Enums.Formula.NXUtilityIndex&&(this.nXUtilityIndex=!0),this.awardFormula===NX1.Model.Enums.Formula.LowBidScoring&&(this.lowBidScoring=!0)}ngOnDestroy(){}onCancel(){this.toggleClose(!1)}toggleClose(i){this.dialogRef.close(i)}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(x.RN))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-formula-analysis-dialog"]],inputs:{parentId:"parentId",offers:"offers",awardFormula:"awardFormula",priceQualityRatio:"priceQualityRatio"},features:[t.Vt3],decls:11,vars:6,consts:[[1,"nxcard","bg--white"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--ellipsis","text--uppercase"],[1,"nxcard__header-options"],["mat-icon-button","",1,"dialog__footer-cancelbutton",3,"click"],[1,"mdi","mdi-close"],[4,"ngIf"],[3,"parentId","offers","priceQualityRatio",4,"ngIf"],[3,"parentId","offers","priceQualityRatio"]],template:function(p,g){1&p&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"div",5)(8,"button",6),t.bIt("click",function(){return g.onCancel()}),t.nrm(9,"i",7),t.k0s()()(),t.DNE(10,Le,3,2,"div",8),t.k0s()),2&p&&(t.R7$(4),t.BMQ("id",g.getLabelId("header")),t.R7$(),t.JRh(t.bMT(6,4,"str_Tender_analysis_dialog")),t.R7$(3),t.BMQ("id",g.getButtonId("cancel")),t.R7$(2),t.Y8G("ngIf",g.offers.length))},dependencies:[s.bT,r.iV,ie,oe,S.D9],styles:["[_nghost-%COMP%]{display:block;width:1000px}"],changeDetection:0})}}return m})();var je=ut(17432);const jt=(m,at)=>({"mdi-chevron-down":m,"mdi-chevron-up":at}),se=(m,at,i)=>({"col-sm-2":m,"col-sm-4":at,"nxtable__header-title--selected":i}),ae=m=>({"nxtable__body-cell--button pointer":m}),Ut=m=>[m],le=m=>({digits:m}),Ge=()=>["str_Tender_cannot_export_offer_while_its_still_encrypted"],Ne=()=>["str_Tender_cannot_view_evaluations_while_the_offer_is_encrypted"];function $e(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",11)(1,"button",12),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.onOpenFormulaAnalysisDialog())}),t.nrm(2,"i",13),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&m){const i=t.XpG();t.R7$(),t.BMQ("id",i.getButtonId("analysis")),t.R7$(2),t.SpI(" ",t.bMT(4,2,"str_Tender_analysis")," ")}}function Xe(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",11)(1,"button",12),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.onNavigateToEvaluation())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&m){const i=t.XpG();t.R7$(),t.BMQ("id",i.getButtonId("evaluate")),t.R7$(),t.SpI(" ",t.bMT(3,2,"str_Tender_evaluate")," ")}}function Ve(m,at){if(1&m&&(t.j41(0,"div",14)(1,"div",15)(2,"figure",16),t.qSk(),t.j41(3,"svg",17),t.nrm(4,"circle",18),t.k0s(),t.joV(),t.nrm(5,"i",19),t.k0s(),t.j41(6,"h2",20),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()),2&m){const i=t.XpG();t.R7$(6),t.BMQ("id",i.getLabelId("noSuppliers")),t.R7$(),t.SpI(" ",t.bMT(8,2,"str_Tender_evaluation_no_offers")," ")}}function ze(m,at){if(1&m){const i=t.RV6();t.j41(0,"th",39),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG(2);return t.Njj(g.sort("Quality"))}),t.j41(2,"a"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"i",29),t.k0s()}if(2&m){const i=t.XpG(2);t.AVh("nxtable__header-title--selected",i.isSortActive("Quality")),t.FS9("title",t.bMT(1,5,i.qualityOrMultiPriceKeyword)),t.R7$(3),t.JRh(t.bMT(4,7,i.qualityOrMultiPriceKeyword)),t.R7$(2),t.Y8G("ngClass",t.l_i(9,jt,i.isSortActive("Quality","desc"),i.isSortActive("Quality","asc")))}}function Ye(m,at){if(1&m){const i=t.RV6();t.j41(0,"th",40),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG(2);return t.Njj(g.sort("Price"))}),t.j41(2,"a"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"i",29),t.k0s()}if(2&m){const i=t.XpG(2);t.AVh("col-sm-2",i.showAuctionPrice)("col-sm-3",!i.showAuctionPrice),t.FS9("title",t.bMT(1,7,"str_Common_offer_price")),t.R7$(3),t.JRh(t.bMT(4,9,"str_Common_offer_price")),t.R7$(2),t.Y8G("ngClass",t.l_i(11,jt,i.isSortActive("Price","desc"),i.isSortActive("Price","asc")))}}function We(m,at){if(1&m){const i=t.RV6();t.j41(0,"th",41),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG(2);return t.Njj(g.sort("AuctionPrice"))}),t.j41(2,"a"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"i",29),t.k0s()}if(2&m){const i=t.XpG(2);t.AVh("col-sm-2",i.showAuctionPrice)("col-sm-3",!i.showAuctionPrice),t.FS9("title",t.bMT(1,7,i.auctionPriceKeyword)),t.R7$(3),t.JRh(t.bMT(4,9,i.auctionPriceKeyword)),t.R7$(2),t.Y8G("ngClass",t.l_i(11,jt,i.isSortActive("AuctionPrice","desc"),i.isSortActive("AuctionPrice","asc")))}}function Ue(m,at){1&m&&(t.nrm(0,"i",61),t.nI1(1,"translate")),2&m&&t.Y8G("tooltipMessages",t.eq3(4,Ut,t.bMT(1,2,"str_Common_rank_calculated_by_auction_formula")))("tooltipPosition","top")}function qe(m,at){if(1&m&&(t.j41(0,"div")(1,"div",62),t.EFF(2),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("participant",g)),t.R7$(),t.BMQ("id",N.getLabelId("participantName",g)),t.R7$(),t.SpI(" ",p.ParticipantName," ")}}function Qe(m,at){if(1&m&&(t.j41(0,"div")(1,"div",62),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("participant",g)),t.R7$(),t.BMQ("id",N.getLabelId("participantName",g)),t.R7$(),t.Lme(" ",t.bMT(3,4,"str_Tender_private_user")," - ",p.ParticipantName," ")}}function He(m,at){if(1&m&&(t.j41(0,"td",63)(1,"div"),t.EFF(2),t.nI1(3,"nx1Number"),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.R7$(),t.BMQ("id",N.getLabelId("offerQuality",g)),t.R7$(),t.SpI(" ",null!==p.Quality?t.ii3(3,2,p.Quality,!0,!0,2):"0"," ")}}function Ke(m,at){if(1&m&&(t.j41(0,"td",63)(1,"div"),t.EFF(2),t.nI1(3,"nx1Number"),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.R7$(),t.BMQ("id",N.getLabelId("offerQuality",g)),t.R7$(),t.SpI(" ",null!==p.Quality?t.i5U(3,2,p.Quality,!0):"0"," ")}}function Je(m,at){if(1&m&&t.nrm(0,"i",61),2&m){const i=t.XpG(3).$implicit,p=t.XpG(2);t.Y8G("tooltipMessages",p.getPriceDistanceFromOverageTooltipMessage(i))("tooltipPosition","top")}}function Ze(m,at){if(1&m&&(t.j41(0,"div"),t.DNE(1,Je,1,2,"i",44),t.EFF(2),t.nI1(3,"currencyConvert"),t.k0s()),2&m){const i=t.XpG(2),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("offerPrice",g)),t.R7$(),t.Y8G("ngIf",null!==N.getPriceDistanceFromAverage(p)),t.R7$(),t.SpI(" ",t.brH(3,3,null==p?null:p.Price,null==N.tender?null:N.tender.Currency,t.eq3(7,le,null==N.tender?null:N.tender.DecimalDigits))," ")}}function ti(m,at){if(1&m&&t.nrm(0,"i",65),2&m){const i=t.XpG(4);t.Y8G("tooltipKeywords",t.eq3(1,Ut,i.canNotViewPriceKeyword))}}function ei(m,at){if(1&m&&(t.j41(0,"td",63),t.DNE(1,Ze,4,9,"div",10)(2,ti,1,3,"i",64),t.k0s()),2&m){const i=t.XpG().$implicit;t.AVh("nxtable__body-cell--icon",!i.CanViewPrice),t.R7$(),t.Y8G("ngIf",i.CanViewPrice),t.R7$(),t.Y8G("ngIf",!i.CanViewPrice)}}function ii(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"currencyConvert"),t.k0s()),2&m){const i=t.XpG(2),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("auctionPrice",g)),t.R7$(),t.SpI(" ",t.brH(2,2,null==p?null:p.AuctionPrice,null==p?null:p.AuctionPriceCurrency,t.eq3(6,le,null==N.tender?null:N.tender.DecimalDigits))," ")}}function ni(m,at){if(1&m&&t.nrm(0,"i",65),2&m){const i=t.XpG(4);
1t.Y8G("tooltipKeywords",t.eq3(1,Ut,i.canNotViewPriceKeyword))}}function oi(m,at){if(1&m&&(t.j41(0,"td",63),t.DNE(1,ii,3,8,"div",10)(2,ni,1,3,"i",64),t.k0s()),2&m){const i=t.XpG().$implicit;t.AVh("nxtable__body-cell--icon",!i.CanViewPrice),t.R7$(),t.Y8G("ngIf",i.CanViewPrice),t.R7$(),t.Y8G("ngIf",!i.CanViewPrice)}}function ri(m,at){if(1&m&&(t.j41(0,"button",66),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getButtonId("unansweredQuestions",g)),t.R7$(),t.SpI(" ",p.UnansweredQuestions," ")}}function si(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("unansweredQuestions",g)),t.R7$(),t.SpI(" ",p.UnansweredQuestions," ")}}function ai(m,at){if(1&m&&(t.j41(0,"button",66),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getButtonId("offerMissedKnockouts",g)),t.R7$(),t.SpI(" ",p.MissedKnockouts," ")}}function li(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("offerMissedKnockouts",g)),t.R7$(),t.SpI(" ",p.MissedKnockouts," ")}}function ci(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",56),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG(2);return t.Njj(N.onRequestOfferContentsDownload(g.OfferId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG().index,p=t.XpG(2);t.BMQ("id",p.getButtonId("menuExportOffer",i)),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Tender_export_offer_content")," ")}}function hi(m,at){if(1&m&&(t.j41(0,"div",67)(1,"button",68),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&m){const i=t.XpG().index,p=t.XpG(2);t.Y8G("tooltipKeywords",t.lJ4(6,Ge)),t.R7$(),t.Y8G("disabled",!0),t.BMQ("id",p.getButtonId("menuExportOffer",i)),t.R7$(),t.SpI(" ",t.bMT(3,4,"str_Tender_export_offer_content")," ")}}function di(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",56),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG(2);return t.Njj(N.onRequestOfferProductListComparisonDownload(g.OfferId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG().index,p=t.XpG(2);t.BMQ("id",p.getButtonId("menuExportProductListComparison",i)),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Tender_compare_prices_with_FA_excel_export")," ")}}function ui(m,at){if(1&m&&(t.j41(0,"button",68),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&m){const i=t.XpG().index,p=t.XpG(2);t.Y8G("disabled",!0),t.BMQ("id",p.getButtonId("menuExportProductListComparison",i)),t.R7$(),t.SpI(" ",t.bMT(2,3,"str_Tender_compare_prices_with_FA_excel_export")," ")}}function pi(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",56),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG(2);return t.Njj(N.onViewOfferEvaluationResults(g.OfferId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG().index,p=t.XpG(2);t.BMQ("id",p.getButtonId("menuViewResults",i)),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Tender_view_offer_evaluation_results")," ")}}function fi(m,at){if(1&m&&(t.j41(0,"div",67)(1,"button",68),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&m){const i=t.XpG().index,p=t.XpG(2);t.Y8G("tooltipKeywords",t.lJ4(6,Ne)),t.R7$(),t.Y8G("disabled",!0),t.BMQ("id",p.getButtonId("menuViewResults",i)),t.R7$(),t.SpI(" ",t.bMT(3,4,"str_Tender_view_offer_evaluation_results")," ")}}function gi(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",56),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG(2);return t.Njj(N.disqualifyOffer(g))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG().index,p=t.XpG(2);t.BMQ("id",p.getButtonId("menuDisqualifyOffer",i)),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Common_disqualify")," ")}}function mi(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG(2);return t.Njj(N.onRequestFinancialAudit(g.TenderParticipantId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.Y8G("disabled",!p.MakeFinancialAuditRequest),t.BMQ("id",N.getButtonId("menuRequestFinancialAudit",g)),t.R7$(),t.SpI(" ",t.bMT(2,3,"str_Tender_make_financial_audit_request")," ")}}function vi(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG().$implicit,N=t.XpG(2);return t.Njj(N.onFinancialAuditRequestExcelDownload(g.TenderParticipantId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.Y8G("disabled",!p.DownloadFinancialAuditRequest),t.BMQ("id",N.getButtonId("menuRequestExcelDownload",g)),t.R7$(),t.SpI(" ",t.bMT(2,3,"str_Tender_downaload_export_financial_audit_request_excel")," ")}}function _i(m,at){if(1&m){const i=t.RV6();t.j41(0,"tr",42)(1,"td",43),t.EFF(2),t.DNE(3,Ue,2,6,"i",44),t.k0s(),t.j41(4,"td",45),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.onViewOfferDetails(g.OfferId))}),t.DNE(5,qe,3,3,"div",10)(6,Qe,4,6,"div",10),t.k0s(),t.j41(7,"td",45),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.onViewOfferDetails(g.OfferId))}),t.j41(8,"div"),t.EFF(9),t.k0s()(),t.j41(10,"td",46)(11,"nx1-offer-details-evaluation-status",47),t.bIt("statusChanged",function(g){const N=t.eBV(i).$implicit,lt=t.XpG(2);return t.Njj(lt.onUpdateOfferEvaluationStatus(N,g))}),t.k0s()(),t.DNE(12,He,4,7,"td",48)(13,Ke,4,5,"td",48)(14,ei,3,4,"td",49)(15,oi,3,4,"td",49),t.j41(16,"td",50),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.onGetUnansweredQuestionsForOffer(g))}),t.DNE(17,ri,2,2,"button",51)(18,si,2,2,"ng-template",null,0,t.C5r),t.k0s(),t.j41(20,"td",50),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.onGetMissedKnockoutsForOffer(g))}),t.DNE(21,ai,2,2,"button",51)(22,li,2,2,"ng-template",null,1,t.C5r),t.k0s(),t.j41(24,"td",52)(25,"button",53),t.nrm(26,"i",54),t.k0s(),t.j41(27,"mat-menu",55,2)(29,"button",56),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.onViewOfferDetails(g.OfferId))}),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.DNE(32,ci,3,4,"button",57)(33,hi,4,7,"div",58)(34,di,3,4,"button",57)(35,ui,3,5,"button",59)(36,pi,3,4,"button",57)(37,fi,4,7,"div",58)(38,gi,3,4,"button",57)(39,mi,3,5,"button",60)(40,vi,3,5,"button",60),t.k0s()()()}if(2&m){const i=at.$implicit,p=at.last,g=at.index,N=t.sdS(19),lt=t.sdS(23),mt=t.sdS(28),gt=t.XpG(2);t.AVh("no-border",p),t.R7$(2),t.SpI(" ",i.Rank," "),t.R7$(),t.Y8G("ngIf",null!==gt.getIsCalculatedByAuctionFormula(i)),t.R7$(2),t.Y8G("ngIf",!i.IsPrivateUser),t.R7$(),t.Y8G("ngIf",i.IsPrivateUser),t.R7$(2),t.BMQ("id",gt.getLabelId("offerName",g)),t.R7$(),t.SpI(" ",i.OfferName," "),t.R7$(2),t.Y8G("parentId",gt.getId(g))("evaluationState",i.EvaluationState)("readMode",!gt.canUpdateOfferStatus)("showColors",!1)("notAllowedEvaluationStates",gt.notAllowedEvaluationStates),t.R7$(),t.Y8G("ngIf",gt.showRanking&>.isQualityVisible&>.showMultiplePriceColumn),t.R7$(),t.Y8G("ngIf",gt.showRanking&>.isQualityVisible&&!gt.showMultiplePriceColumn),t.R7$(),t.Y8G("ngIf",gt.showRanking),t.R7$(),t.Y8G("ngIf",gt.showRanking&>.showAuctionPrice),t.R7$(),t.Y8G("ngClass",t.eq3(39,ae,i.UnansweredQuestions)),t.R7$(),t.Y8G("ngIf",i.UnansweredQuestions)("ngIfElse",N),t.R7$(3),t.Y8G("ngClass",t.eq3(41,ae,i.MissedKnockouts)),t.R7$(),t.Y8G("ngIf",i.MissedKnockouts)("ngIfElse",lt),t.R7$(4),t.Y8G("matMenuTriggerFor",mt),t.BMQ("id",gt.getButtonId("offerOptions",g)),t.R7$(2),t.Y8G("overlapTrigger",!0),t.R7$(2),t.BMQ("id",gt.getButtonId("menuViewOffer",g)),t.R7$(),t.SpI(" ",t.bMT(31,37,"str_Common_view")," "),t.R7$(2),t.Y8G("ngIf",i.IsOfferOpened),t.R7$(),t.Y8G("ngIf",!i.IsOfferOpened),t.R7$(),t.Y8G("ngIf",i.IsOfferOpened&>.isMiniCompetitionWithinFA),t.R7$(),t.Y8G("ngIf",!i.IsOfferOpened&>.isMiniCompetitionWithinFA),t.R7$(),t.Y8G("ngIf",i.IsOfferOpened),t.R7$(),t.Y8G("ngIf",!i.IsOfferOpened),t.R7$(),t.Y8G("ngIf",gt.canDisqualifyOffer),t.R7$(),t.Y8G("ngIf",null==gt.tender?null:gt.tender.EnableFinancialAudit),t.R7$(),t.Y8G("ngIf",null==gt.tender?null:gt.tender.EnableFinancialAudit)}}function xi(m,at){if(1&m){const i=t.RV6();t.qex(0),t.j41(1,"ul",21)(2,"li",22),t.nI1(3,"translate"),t.j41(4,"span",23),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"li",24),t.nI1(8,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.changeRoute("progress"))}),t.j41(9,"span",23),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"li",24),t.nI1(13,"translate"),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG();return t.Njj(g.onNavigateToScores())}),t.j41(14,"span",23),t.EFF(15),t.nI1(16,"translate"),t.k0s()()(),t.j41(17,"table",25)(18,"thead",26)(19,"tr",27)(20,"th",28),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.sort("Rank"))}),t.j41(21,"a"),t.EFF(22,"#"),t.k0s(),t.nrm(23,"i",29),t.k0s(),t.j41(24,"th",30),t.nI1(25,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.sort("ParticipantName"))}),t.j41(26,"a"),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.nrm(29,"i",29),t.k0s(),t.j41(30,"th",30),t.nI1(31,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.sort("OfferName"))}),t.j41(32,"a"),t.EFF(33),t.nI1(34,"translate"),t.k0s(),t.nrm(35,"i",29),t.k0s(),t.j41(36,"th",31),t.nI1(37,"translate"),t.j41(38,"a"),t.EFF(39),t.nI1(40,"translate"),t.k0s()(),t.DNE(41,ze,6,12,"th",32)(42,Ye,6,14,"th",33)(43,We,6,14,"th",34),t.j41(44,"th",35),t.nI1(45,"translate"),t.j41(46,"a"),t.EFF(47),t.nI1(48,"translate"),t.k0s()(),t.j41(49,"th",35),t.nI1(50,"translate"),t.j41(51,"a"),t.EFF(52),t.nI1(53,"translate"),t.k0s()(),t.nrm(54,"th",36),t.k0s()(),t.j41(55,"tbody",37),t.DNE(56,_i,41,43,"tr",38),t.k0s()(),t.bVm()}if(2&m){const i=t.XpG();t.R7$(2),t.BMQ("title",t.bMT(3,28,"str_Tender_evaluation_tool_navigate_offers")),t.R7$(3),t.JRh(t.bMT(6,30,"str_Tender_evaluation_tool_navigate_offers")),t.R7$(2),t.BMQ("title",t.bMT(8,32,"str_Tender_evaluation_tool_navigate_progress")),t.R7$(3),t.JRh(t.bMT(11,34,"str_Tender_evaluation_tool_navigate_progress")),t.R7$(2),t.BMQ("id",i.getLinkId("navigateToScores"))("title",t.bMT(13,36,"str_Tender_evaluation_tool_scores")),t.R7$(3),t.JRh(t.bMT(16,38,"str_Tender_evaluation_tool_scores")),t.R7$(5),t.AVh("nxtable__header-title--selected",i.isSortActive("Rank")),t.R7$(3),t.Y8G("ngClass",t.l_i(60,jt,i.isSortActive("Rank","desc"),i.isSortActive("Rank","asc"))),t.R7$(),t.FS9("title",t.bMT(25,40,"str_Common_organization_ppa")),t.Y8G("ngClass",t.sMw(63,se,i.showRanking,!i.showRanking,i.isSortActive("ParticipantName"))),t.R7$(3),t.JRh(t.bMT(28,42,"str_Common_organization_ppa")),t.R7$(2),t.Y8G("ngClass",t.l_i(67,jt,i.isSortActive("ParticipantName","desc"),i.isSortActive("ParticipantName","asc"))),t.R7$(),t.FS9("title",t.bMT(31,44,"str_Common_offer_name_ppa")),t.Y8G("ngClass",t.sMw(70,se,i.showRanking,!i.showRanking,i.isSortActive("OfferName"))),t.R7$(3),t.JRh(t.bMT(34,46,"str_Common_offer_name_ppa")),t.R7$(2),t.Y8G("ngClass",t.l_i(74,jt,i.isSortActive("OfferName","desc"),i.isSortActive("OfferName","asc"))),t.R7$(),t.FS9("title",t.bMT(37,48,"str_Common_status")),t.R7$(3),t.JRh(t.bMT(40,50,"str_Common_status")),t.R7$(2),t.Y8G("ngIf",i.showRanking&&i.isQualityVisible),t.R7$(),t.Y8G("ngIf",i.showRanking),t.R7$(),t.Y8G("ngIf",i.showRanking&&i.showAuctionPrice),t.R7$(),t.FS9("title",t.bMT(45,52,"str_Survey_unanswered")),t.R7$(3),t.JRh(t.bMT(48,54,"str_Survey_unanswered")),t.R7$(2),t.FS9("title",t.bMT(50,56,"str_Survey_ko")),t.R7$(3),t.JRh(t.bMT(53,58,"str_Survey_ko")),t.R7$(4),t.Y8G("ngForOf",i.orderedOffers)}}let ce=(()=>{class m extends Ot.$G{set offers(i){this._offers=i,this.showAuctionPrice=this.offers.some(p=>!!p.AuctionPrice),this.showMultiplePriceColumn=this.offers.some(p=>this.getIsCalculatedByMultiplePriceFormula(p))}get offers(){return this._offers}get canViewAnalysisButton(){return!(this.awardFormula!==NX1.Model.Enums.Formula.NXUtilityIndex&&this.awardFormula!==NX1.Model.Enums.Formula.LowBidScoring||!this.offers||!(this.offers.length>0)||this.offers.some(i=>this.getIsCalculatedByAuctionFormula(i)))}get auctionPriceKeyword(){return this.offers&&this.offers.length>0&&this.offers.some(i=>this.getIsCustomBiddingResult(i))?"str_Common_auction_custom_unit_result":"str_Common_auction_price"}constructor(i,p,g,N,lt,mt,gt,Tt){super(i),this.route=p,this.evaluationToolService=g,this.advancedEvaluationToolGuard=N,this.router=lt,this.dialogService=mt,this.nx1NumberPipe=gt,this.localizationService=Tt,this.exportOffer=new t.bkB(!1),this.exportProductListComparison=new t.bkB(!1),this.viewOfferDetails=new t.bkB(!1),this.changeOfferInvitationState=new t.bkB(!1),this.openReasonOfDisqualificationDialog=new t.bkB(!1),this.viewOfferEvaluationResults=new t.bkB(!1),this.getMissedKnockoutsForOffer=new t.bkB(!1),this.getUnansweredQuestionsForOffer=new t.bkB(!1),this.requestFinancialAudit=new t.bkB(!1),this.downloadFinancialAuditRequestExcelExport=new t.bkB(!1),this.notAllowedEvaluationStates=[NX1.Model.Enums.EvaluationState.Disqualified
1],this.direction="asc",this.orderType="Rank",this.showAuctionPrice=!1,this.showMultiplePriceColumn=!1,this.subscriptions=[]}ngOnInit(){this.qualityOrMultiPriceKeyword=this.showMultiplePriceColumn?"str_Tender_awardmethod_multiple_price_components_column":"str_Common_offer_quality",this.canFillOutRoundEvaluation=this.advancedEvaluationToolGuard.canFillOutRoundEvaluation,this.box$=this.advancedEvaluationToolGuard.box$,this.isMiniCompetitionWithinFA=this.tender.ProcedureType==NX1.Model.Enums.ProcedureType.MiniCompetitionWithinFA}ngOnDestroy(){for(const i of this.subscriptions)i.unsubscribe()}get canUpdateOfferStatus(){return this.canManageBuyerEvaluationBox&&this.requirementsType!==NX1.Model.Enums.TenderRequirementsType.Surveys}get orderedOffers(){return"Rank"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.Rank)],[this.direction]):"ParticipantName"===this.orderType?(0,P.orderBy)(this.offers,[i=>i.ParticipantName],[this.direction]):"OfferName"===this.orderType?(0,P.orderBy)(this.offers,[i=>i.OfferName],[this.direction]):"Quality"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.Quality)],[this.direction]):"Price"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.Price)],[this.direction]):"AuctionPrice"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.AuctionPrice)],[this.direction]):void 0}sort(i){this.orderType=i,this.direction="asc"===this.direction?"desc":"asc"}isSortActive(i,p){return p?this.orderType===i&&this.direction===p:this.orderType===i}changeRoute(i){this.router.navigate(["./",i],{relativeTo:this.route})}onViewOfferDetails(i){this.viewOfferDetails.emit(i)}onViewOfferEvaluationResults(i){this.viewOfferEvaluationResults.emit(i)}onUpdateOfferEvaluationStatus(i,p){this.changeOfferInvitationState.emit({OfferInvitationState:{OfferInvitationId:i.OfferInvitationId,OfferInvitationVersion:i.OfferInvitationVersion,Notes:null,EvaluationState:p},OfferId:i.OfferId,SnackbarKeyword:"str_Tender_evaluation_change_offer_evaluation_state"})}disqualifyOffer(i){this.openReasonOfDisqualificationDialog.emit({offer:i,isReadOnly:!1,isDisqualifying:!0})}onGetMissedKnockoutsForOffer(i){this.getMissedKnockoutsForOffer.emit(i)}onGetUnansweredQuestionsForOffer(i){i.UnansweredQuestions&&this.getUnansweredQuestionsForOffer.emit(i)}onRequestOfferContentsDownload(i){this.exportOffer.emit(i)}onRequestOfferProductListComparisonDownload(i){this.exportProductListComparison.emit(i)}onRequestFinancialAudit(i){this.requestFinancialAudit.emit(i)}onFinancialAuditRequestExcelDownload(i){this.downloadFinancialAuditRequestExcelExport.emit(i)}onNavigateToEvaluation(){let i;i=(0,Re.y)(this.box$.pipe((0,nt.n)(p=>this.evaluationToolService.getEvaluationParameters(p.TenderProcessRoundId))),this.box$).subscribe(([p,g])=>{const N=p.OfferId?`&offerId=${p.OfferId}`:"",lt=`/tender/${g.TenderId}/buyer/${g.TenderProcessRoundId}/evaluations/${g.Id}/evaluator/${p.EmployeeId}/init?returnUrl=${encodeURIComponent(this.router.url)}${N}`;this.router.navigateByUrl(lt),i.unsubscribe()})}onOpenFormulaAnalysisDialog(){const i=new h.Pe;i.viewContainerRef=this.viewContainerRef,this.formulaAnalysisDialogRef=this.dialogService.open(re,i),this.formulaAnalysisDialogRef.componentInstance.offers=(0,P.orderBy)(this.offers,g=>g.Rank),this.formulaAnalysisDialogRef.componentInstance.awardFormula=this.awardFormula,this.formulaAnalysisDialogRef.componentInstance.priceQualityRatio=this.priceQualityRatio;const p=this.formulaAnalysisDialogRef.afterClosed().subscribe(()=>{this.formulaAnalysisDialogRef=null});this.subscriptions.push(p)}onNavigateToScores(){this.router.navigate(["scores"],{relativeTo:this.route})}getPriceDistanceFromAverage(i){const p=JSON.parse(i.RankProperties);return p&&null!=p.PriceDistanceFromAverage?p.PriceDistanceFromAverage:null}getIsCalculatedByAuctionFormula(i){const p=JSON.parse(i.RankProperties);return p&&null!=p.IsCalculatedByAuctionFormula?p.IsCalculatedByAuctionFormula:null}getIsCalculatedByMultiplePriceFormula(i){const p=JSON.parse(i.RankProperties);return p&&null!=p.IsCalculatedByMultiplePriceComponentFormula?p.IsCalculatedByMultiplePriceComponentFormula:null}getIsCustomBiddingResult(i){const p=JSON.parse(i.RankProperties);return p&&null!=p.IsCustomBiddingResult?p.IsCustomBiddingResult:null}getPriceDistanceFromOverageTooltipMessage(i){return[this.localizationService.instant("str_Tender_evaluation_price_distance_from_average_{{percentage}}",{percentage:this.nx1NumberPipe.transform(100*this.getPriceDistanceFromAverage(i),!0)})]}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(Mt.nX),t.rXU(H),t.rXU(it),t.rXU(Mt.Ix),t.rXU(h.o3),t.rXU(Lt.v),t.rXU(c.PiF))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-offers"]],inputs:{canManageBuyerEvaluationBox:"canManageBuyerEvaluationBox",canViewBu
1yerEvaluationBoxContent:"canViewBuyerEvaluationBoxContent",canExecuteFinalizeEvaluation:"canExecuteFinalizeEvaluation",offers:"offers",tender:"tender",showRanking:"showRanking",canNotViewPriceKeyword:"canNotViewPriceKeyword",isQualityVisible:"isQualityVisible",awardFormula:"awardFormula",priceQualityRatio:"priceQualityRatio",requirementsType:"requirementsType",canDisqualifyOffer:"canDisqualifyOffer"},outputs:{exportOffer:"exportOffer",exportProductListComparison:"exportProductListComparison",viewOfferDetails:"viewOfferDetails",changeOfferInvitationState:"changeOfferInvitationState",openReasonOfDisqualificationDialog:"openReasonOfDisqualificationDialog",viewOfferEvaluationResults:"viewOfferEvaluationResults",getMissedKnockoutsForOffer:"getMissedKnockoutsForOffer",getUnansweredQuestionsForOffer:"getUnansweredQuestionsForOffer",requestFinancialAudit:"requestFinancialAudit",downloadFinancialAuditRequestExcelExport:"downloadFinancialAuditRequestExcelExport"},features:[t.Jv_([Lt.v]),t.Vt3],decls:12,vars:7,consts:[["readOnlyTemplateUnanswered",""],["readOnlyTemplate",""],["menu","matMenu"],[1,"nxcard","bg--white","z1","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content","flex-row","align--center","flex-grow--2"],["class","nxcard__header-options",4,"ngIf"],[1,"nxcard__body","nxcard__body--no-scroll"],["class","bg--grey5a no-contents-container text--center text--grey30 no-contents--animate",4,"ngIf"],[4,"ngIf"],[1,"nxcard__header-options"],["mat-button","","color","primary",3,"click"],[1,"mdi","mdi-arrow-expand"],[1,"bg--grey5a","no-contents-container","text--center","text--grey30","no-contents--animate"],[1,"align--center","display--flex","flex-column"],["data-percent","100",1,"chart"],["width","110","height","110"],["cx","55","cy","55","r","50","transform","rotate(-90 55 55)",1,"outer"],[1,"mdi","mdi-clock-outline"],[1,"text--bold","margin--bottom-10"],[1,"nxtabs","border--bottom"],[1,"nxtab","nxtab--active"],[1,"nxtab__name"],[1,"nxtab",3,"click"],[1,"nxtable"],[1,"nxtable__header"],[1,"nxtable__header-row"],[1,"nxtable__header-title","nxtable__header-title--sortable","offer-rank-cell",3,"click"],[1,"mdi",3,"ngClass"],[1,"nxtable__header-title","nxtable__header-title--sortable",3,"click","title","ngClass"],[1,"nxtable__header-title","col-sm-1",3,"title"],["class","nxtable__header-title col-sm-1 text--right nxtable__header-title--sortable",3,"title","nxtable__header-title--selected","click",4,"ngIf"],["class","nxtable__header-title col-sm-2 text--right nxtable__header-title--sortable",3,"col-sm-2","col-sm-3","title","click",4,"ngIf"],["class","nxtable__header-title text--right nxtable__header-title--sortable",3,"col-sm-2","col-sm-3","title","click",4,"ngIf"],[1,"nxtable__header-title","text--right","col-sm-1",3,"title"],[1,"nxtable__header-title","nxtable__header-title--option"],[1,"nxtable__body"],["class","nxtable__body-row",3,"no-border",4,"ngFor","ngForOf"],[1,"nxtable__header-title","col-sm-1","text--right","nxtable__header-title--sortable",3,"click","title"],[1,"nxtable__header-title","col-sm-2","text--right","nxtable__header-title--sortable",3,"click","title"],[1,"nxtable__header-title","text--right","nxtable__header-title--sortable",3,"click","title"],[1,"nxtable__body-row"],[1,"nxtable__body-cell","offer-rank-cell"],["class","mdi mdi-alert pointer text--lemon-2","tooltip","",3,"tooltipMessages","tooltipPosition",4,"ngIf"],[1,"nxtable__body-cell","pointer",3,"click"],[1,"nxtable__body-cell","text--left"],[1,"mobile__button--collapse",3,"statusChanged","parentId","evaluationState","readMode","showColors","notAllowedEvaluationStates"],["class","nxtable__body-cell text--right",4,"ngIf"],["class","nxtable__body-cell text--right",3,"nxtable__body-cell--icon",4,"ngIf"],[1,"nxtable__body-cell","text--right",3,"click","ngClass"],["class","button--table text--right",4,"ngIf","ngIfElse"],[1,"nxtable__body-cell","nxtable__body-cell--button","text--right"],["mat-icon-button","","disableRipple","",1,"button--medium","button--table",3,"matMenuTriggerFor"],[1,"mdi","mdi-dots-vertical"],["xPosition","before",3,"overlapTrigger"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["tooltip","","tooltipPosition","left",3,"tooltipKeywords",4,"ngIf"],["mat-menu-item","",3,"disabled",4,"ngIf"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["tooltip","",1,"mdi","mdi-alert","pointer","text--lemon-2",3,"tooltipMessages","tooltipPosition"],[1,"padding--top-5"],[1,"nxtable__body-cell","text--right"],["class","mdi mdi-lock text--18px text--grey60","tooltip","","tooltipPosition","top",3,"tooltipKeywords",4,"ngIf"],["tooltip","","tooltipPosition","top",1,"mdi","mdi-lock","text--18px","text--grey60",3,"tooltipKeywords"],[1,"button--table","text--right"],["tooltip","","tooltipPosition","left",3,"tooltipKeywords"],["mat-menu-item","",3,"disabled"],["mat-menu-item","",3,"click","disabled"]],template:function(p,g){1&p&&(t.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.DNE(7,$e,5,4,"div",7)(8,Xe,4,4,"div",7),t.k0s(),t.j41(9,"div",8),t.DNE(10,Ve,9,4,"div",9)(11,xi,57,77,"ng-container",10),t.k0s()()),2&p&&(t.R7$(5),t.JRh(t.bMT(6,5,"str_Tender_offers_in_evaluation")),t.R7$(2),t.Y8G("ngIf",g.canViewAnalysisButton),t.R7$(),t.Y8G("ngIf",g.canFillOutRoundEvaluation),t.R7$(2),t.Y8G("ngIf",!(null!=g.offers&&g.offers.length)),t.R7$(),t.Y8G("ngIf",null==g.offers?null:g.offers.length))},dependencies:[s.YU,s.Sq,s.bT,r.iV,_.pI,_.gy,_.fS,Vt.d,je.u,S.D9,Lt.v,Wt.V],styles:["[_nghost-%COMP%]{display:block}.offer-rank-cell[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;padding:5px 12px 5px 20px}@media only screen and (max-width: 767px){[_nghost-%COMP%] .nxtable__body-cell[_ngcontent-%COMP%]:first-child, .nxtable__header-title[_ngcontent-%COMP%]:first-child{display:none}[_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(3), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(3), [_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(4), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(4), [_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(6), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(6), [_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(5), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(5){display:none}[_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:last-child{width:50px}[_nghost-%COMP%] .nxtable__body-cell[_ngcontent-%COMP%]{max-width:none!important}}"],changeDetection:0})}}return m})();const yi=(m,at,i)=>({"col-sm-3":m,"col-sm-4":at,"nxtable__header-title--selected":i}),Xt=(m,at)=>({"mdi-chevron-down":m,"mdi-chevron-up":at}),bi=(m,at,i)=>({"col-sm-2":m,"col-sm-4":at,"nxtable__header-title--selected":i}),he=m=>({"nxtable__body-cell--button pointer":m}),de=m=>({digits:m}),ue=m=>[m];function Ci(m,at){if(1&m){const i=t.RV6();t.j41(0,"th",21),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG();return t.Njj(g.sort("Quality"))}),t.j41(2,"a"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"i",12),t.k0s()}if(2&m){const i=t.XpG();t.AVh("nxtable__header-title--selected",i.isSortActive("Quality")),t.FS9("title",t.bMT(1,5,i.qualityOrMultiPriceKeyword)),t.R7$(3),t.JRh(t.bMT(4,7,i.qualityOrMultiPriceKeyword)),t.R7$(2),t.Y8G("ngClass",t.l_i(9,Xt,i.isSortActive("Quality","asc"),i.isSortActive("Quality","desc")))}}function Ti(m,at){if(1&m){const i=t.RV6();t.j41(0,"th",22),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.sort("Price"))}),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"i",12),t.k0s()}if(2&m){const i=t.XpG();t.AVh("col-sm-2",i.showAuctionPrice)("col-sm-3",!i.showAuctionPrice),t.FS9("title",t.bMT(1,7,"str_Common_offer_price")),t.R7$(3),t.JRh(t.bMT(4,9,"str_Common_offer_price")),t.R7$(2),t.Y8G("ngClass",t.l_i(11,Xt,i.isSortActive("Price","asc"),i.isSortActive("Price","desc")))}}function Si(m,at){if(1&m){const i=t.RV6();t.j41(0,"th",22),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.sort("AuctionPrice"))}),t.j41(2,"a"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"i",12),t.k0s()}if(2&m){const i=t.XpG();t.AVh("col-sm-1",i.showAuctionPrice)("col-sm-2",!i.showAuctionPrice),t.FS9("title",t.bMT(1,7,i.auctionPriceKeyword)),t.R7$(3),t.JRh(t.bMT(4,9,i.auctionPriceKeyword)),t.R7$(2),t.Y8G("ngClass",t.l_i(11,Xt,i.isSortActive("AuctionPrice","desc"),i.isSortActive("AuctionPrice","asc")))}}function Oi(m,at){if(1&m&&(t.j41(0,"div")(1,"div",39),t.EFF(2),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getLabelId("participant",g)),t.R7$(),t.BMQ("id",N.getLabelId("participantName",g)),t.R7$(),t.SpI(" ",p.ParticipantName," ")}}function Ii(m,at){if(1&m&&(t.j41(0,"div")(1,"div",39),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getLabelId("participant",g)),t.R7$(),t.BMQ("id",N.getLabelId("participantName",g)),t.R7$(),t.Lme(" ",t.bMT(3,4,"str_Tender_private_user")," - ",p.ParticipantName," ")}}function wi(m,at){if(1&m&&(t.j41(0,"td",40)(1,"div"),t.EFF(2," - "),t.k0s()()),2&m){const i=t.XpG().index,p=t.XpG();t.R7$(),t.BMQ("id",p.getLabelId("offerQuality",i))}}function ki(m,at){if(1&m&&(t.j41(0,"td",40)(1,"div"),t.EFF(2),t.nI1(3,"nx1Number"),t.k0s()()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.R7$(),t.BMQ("id",N.getLabelId("offerQuality",g)),t.R7$(),t.SpI(" ",null!==p.Quality?t.i5U(3,2,p.Quality,!0):"0"," ")}}function Mi(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"currencyConvert"),t.k0s()),2&m){const i=t.XpG(2),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getLabelId("offerPrice",g)),t.R7$(),t.SpI(" ",null!==p.Price?t.brH(2,2,null==p?null:p.Price,null==N.tender?null:N.tender.Currency,t.eq3(6,de,null==N.tender?null:N.tender.DecimalDigits)):"-"," ")}}function Ei(m,at){if(1&m&&t.nrm(0,"i",42),2&m){const i=t.XpG(3);t.Y8G("tooltipKeywords",t.eq3(1,ue,i.canNotViewPriceKeyword))}}function Pi(m,at){if(1&m&&(t.j41(0,"td",40),t.DNE(1,Mi,3,8,"div",25)(2,Ei,1,3,"i",41),t.k0s()),2&m){const i=t.XpG().$implicit;t.AVh("nxtable__body-cell--icon",!i.CanViewPrice),t.R7$(),t.Y8G("ngIf",i.CanViewPrice),t.R7$(),t.Y8G("ngIf",!i.CanViewPrice)}}function Ri(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"currencyConvert"),t.k0s()),2&m){const i=t.XpG(2),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getLabelId("auctionPrice",g)),t.R7$(),t.SpI(" ",t.brH(2,2,null==p?null:p.AuctionPrice,null==N.tender?null:N.tender.Currency,t.eq3(6,de,null==N.tender?null:N.tender.DecimalDigits))," ")}}function Di(m,at){if(1&m&&t.nrm(0,"i",42),2&m){const i=t.XpG(3);t.Y8G("tooltipKeywords",t.eq3(1,ue,i.canNotViewPriceKeyword))}}function Bi(m,at){if(1&m&&(t.j41(0,"td",40),t.DNE(1,Ri,3,8,"div",25)(2,Di,1,3,"i",41),t.k0s()),2&m){const i=t.XpG().$implicit;t.AVh("nxtable__body-cell--icon",!i.CanViewPrice),t.R7$(),t.Y8G("ngIf",i.CanViewPrice),t.R7$(),t.Y8G("ngIf",!i.CanViewPrice)}}function Ai(m,at){if(1&m&&(t.j41(0,"button",43),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getButtonId("unansweredQuestions",g)),t.R7$(),t.SpI(" ",p.UnansweredQuestions," ")}}function Fi(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getLabelId("unansweredQuestions",g)),t.R7$(),t.SpI(" ",p.UnansweredQuestions," ")}}function Li(m,at){if(1&m&&(t.j41(0,"button",43),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getButtonId("offerMissedKnockouts",g)),t.R7$(),t.SpI(" ",p.MissedKnockouts," ")}}function ji(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.BMQ("id",N.getLabelId("offerMissedKnockouts",g)),t.R7$(),t.SpI(" ",p.MissedKnockouts," ")}}function Gi(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",36),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG().$implicit,N=t.XpG();return t.Njj(N.onOpenReasonOfDisqualificationDialog(g,!1))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG().index,p=t.XpG();t.BMQ("id",p.getButtonId("menuEditDisqulificationReason",i)),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Tender_evaluation_edit_reason_of_disqualification")," ")}}function Ni(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",36),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG();return t.Njj(N.qualifyOffer(g))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG().index,p=t.XpG();t.BMQ("id",p.getButtonId("menuDisqualifyOffer",i)),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Common_qualify")," ")}}function $i(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",44),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG();return t.Njj(N.onRequestFinancialAudit(g.TenderParticipantId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.Y8G("disabled",!p.MakeFinancialAuditRequest),t.BMQ("id",N.getButtonId("menuRequestFinancialAudit",g)),t.R7$(),t.SpI(" ",t.bMT(2,3,"str_Tender_make_financial_audit_request")," ")}}function Xi(m,at){if(1&m){const i=t.RV6();t.j41(0,"button",44),t.bIt("click",function(){t.eBV(i);const g=t.XpG().$implicit,N=t.XpG();return t.Njj(N.onFinancialAuditRequestExcelDownload(g.TenderParticipantId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG();t.Y8G("disabled",!p.DownloadFinancialAuditRequest),t.BMQ("id",N.getButtonId("menuRequestExcelDownload",g)),t.R7$(),t.SpI(" ",t.bMT(2,3,"str_Tender_downaload_export_financial_audit_request_excel")," ")}}function Vi(m,at){if(1&m){const i=t.RV6();t.j41(0,"tr",23)(1,"td",24),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG();return t.Njj(N.onViewOfferDetails(g.OfferId))}),t.DNE(2,Oi,3,3,"div",25)(3,Ii,4,6,"div",25),t.k0s(),t.j41(4,"td",24),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG();return t.Njj(N.onViewOfferDetails(g.OfferId))}),t.j41(5,"div"),t.EFF(6),t.k0s()(),t.j41(7,"td",26),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG();return t.Njj(N.onOpenReasonOfDisqualificationDialog(g,!0))}),t.nrm(8,"i",27),t.k0s(),t.DNE(9,wi,3,1,"td",28)(10,ki,4,5,"td",28)(11,Pi,3,4,"td",29)(12,Bi,3,4,"td",29),t.j41(13,"td",30),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG();return t.Njj(N.onGetUnansweredQuestionsForOffer(g))}),t.DNE(14,Ai,2,2,"button",31)(15,Fi,2,2,"ng-template",null,0,t.C5r),t.k0s(),t.j41(17,"td",30),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG();return t.Njj(N.onGetMissedKnockoutsForOffer(g))}),t.DNE(18,Li,2,2,"button",31)(19,ji,2,2,"ng-template",null,1,t.C5r),t.k0s(),t.j41(21,"td",32)(22,"button",33),t.nrm(23,"i",34),t.k0s(),t.j41(24,"mat-menu",35,2)(26,"button",36),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG();return t.Njj(N.onRequestOfferContentsDownload(g.OfferId))}),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.DNE(29,Gi,3,4,"button",37)(30,Ni,3,4,"button",37)(31,$i,3,5,"button",38)(32,Xi,3,5,"button",38),t.k0s()()()}if(2&m){const i=at.$implicit,p=at.last,g=at.index,N=t.sdS(16),lt=t.sdS(20),mt=t.sdS(25),gt=t.XpG();t.AVh("no-border",p),t.R7$(2),t.Y8G("ngIf",!i.IsPrivateUser),t.R7$(),t.Y8G("ngIf",i.IsPrivateUser),t.R7$(2),t.BMQ("id",gt.getLabelId("offerName",g)),t.R7$(),t.SpI(" ",i.OfferName," "),t.R7$(3),t.Y8G("ngIf",gt.showRanking&>.isQualityVisible&>.showMultiplePriceColumn),t.R7$(),t.Y8G("ngIf",gt.showRanking&>.isQualityVisible&&!gt.showMultiplePriceColumn),t.R7$(),t.Y8G("ngIf",gt.showRanking),t.R7$(),t.Y8G("ngIf",gt.showRanking&>.showAuctionPrice),t.R7$(),t.Y8G("ngClass",t.eq3(27,he,i.UnansweredQuestions)),t.R7$(),t.Y8G("ngIf",i.UnansweredQuestions)("ngIfElse",N),t.R7$(3),t.Y8G("ngClass",t.eq3(29,he,i.MissedKnockouts)),t.R7$(),t.Y8G("ngIf",i.MissedKnockouts)("ngIfElse",lt),t.R7$(4),t.Y8G("matMenuTriggerFor",mt),t.BMQ("id",gt.getButtonId("offerOptions",g)),t.R7$(2),t.Y8G("overlapTrigger",!0),t.R7$(2),t.BMQ("id",gt.getButtonId("menuExportOffer",g)),t.R7$(),t.SpI(" ",t.bMT(28,25,"str_Tender_export_offer_content")," "),t.R7$(2),t.Y8G("ngIf",gt.canQualifyOffer),t.R7$(),t.Y8G("ngIf",gt.canQualifyOffer),t.R7$(),t.Y8G("ngIf",null==gt.tender?null:gt.tender.EnableFinancialAudit),t.R7$(),t.Y8G("ngIf",null==gt.tender?null:gt.tender.EnableFinancialAudit)}}let pe=(()=>{class m extends Ot.$G{set offers(i){this._offers=i,this.showAuctionPrice=this.offers.some(p=>!!p.AuctionPrice),this.showMultiplePriceColumn=this.offers.some(p=>this.getIsCalculatedByMultiplePriceFormula(p))}get offers(){return this._offers}get auctionPriceKeyword(){return this.offers&&this.offers.length>0&&this.offers.some(i=>this.getIsCustomBiddingResult(i))?"str_Common_auction_custom_unit_result":"str_Common_auction_price"}constructor(i){super(i),this.exportOffer=new t.bkB(!1),this.changeOfferInvitationState=new t.bkB(!1),this.viewOfferDetails=new t.bkB(!1),this.openReasonOfDisqualificationDialog=new t.bkB(!1),this.getMissedKnockoutsForOffer=new t.bkB(!1),this.getUnansweredQuestionsForOffer=new t.bkB(!1),this.requestFinancialAudit=new t.bkB(!1),this.downloadFinancialAuditRequestExcelExport=new t.bkB(!1),this.direction="asc",this.orderType="ParticipantName",this.showAuctionPrice=!1,this.showMultiplePriceColumn=!1,this.subscriptions=[]}
1ngOnInit(){this.qualityOrMultiPriceKeyword=this.showMultiplePriceColumn?"str_Tender_awardmethod_multiple_price_components_column":"str_Common_offer_quality"}ngOnDestroy(){for(const i of this.subscriptions)i.unsubscribe()}get canQualifyOffer(){return this.canManageBuyerEvaluationBox&&this.canExecuteFinalizeEvaluation}get orderedOffers(){return"ParticipantName"===this.orderType?(0,P.orderBy)(this.offers,[i=>i.ParticipantName],[this.direction]):"OfferName"===this.orderType?(0,P.orderBy)(this.offers,[i=>i.OfferName],[this.direction]):"Quality"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.Quality)],[this.direction]):"Price"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.Price)],[this.direction]):"AuctionPrice"===this.orderType?(0,P.orderBy)(this.offers,[i=>Number(i.AuctionPrice)],[this.direction]):void 0}sort(i){this.orderType=i,this.direction="asc"===this.direction?"desc":"asc"}isSortActive(i,p){return p?this.orderType===i&&this.direction===p:this.orderType===i}onViewOfferDetails(i){this.viewOfferDetails.emit(i)}onOpenReasonOfDisqualificationDialog(i,p){this.openReasonOfDisqualificationDialog.emit({offer:i,isReadOnly:p,isDisqualifying:!1})}qualifyOffer(i){const p={OfferInvitationState:{OfferInvitationId:i.OfferInvitationId,OfferInvitationVersion:i.OfferInvitationVersion,Notes:null,EvaluationState:NX1.Model.Enums.EvaluationState.ReadyForEvaluation},OfferId:i.OfferId,SnackbarKeyword:"str_Tender_evaluation_qualify_offer",ShouldReloadOffers:!0};this.changeOfferInvitationState.emit(p)}onGetMissedKnockoutsForOffer(i){this.getMissedKnockoutsForOffer.emit(i)}onGetUnansweredQuestionsForOffer(i){i.UnansweredQuestions&&this.getUnansweredQuestionsForOffer.emit(i)}onRequestOfferContentsDownload(i){this.exportOffer.emit(i)}onRequestFinancialAudit(i){this.requestFinancialAudit.emit(i)}onFinancialAuditRequestExcelDownload(i){this.downloadFinancialAuditRequestExcelExport.emit(i)}getIsCustomBiddingResult(i){const p=JSON.parse(i.RankProperties);return p&&null!=p.IsCustomBiddingResult?p.IsCustomBiddingResult:null}getIsCalculatedByMultiplePriceFormula(i){const p=JSON.parse(i.RankProperties);return p&&null!=p.IsCalculatedByMultiplePriceComponentFormula?p.IsCalculatedByMultiplePriceComponentFormula:null}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-disqualified-offers"]],inputs:{canManageBuyerEvaluationBox:"canManageBuyerEvaluationBox",canViewBuyerEvaluationBoxContent:"canViewBuyerEvaluationBoxContent",canExecuteFinalizeEvaluation:"canExecuteFinalizeEvaluation",offers:"offers",tender:"tender",showRanking:"showRanking",canNotViewPriceKeyword:"canNotViewPriceKeyword",isQualityVisible:"isQualityVisible"},outputs:{exportOffer:"exportOffer",changeOfferInvitationState:"changeOfferInvitationState",viewOfferDetails:"viewOfferDetails",openReasonOfDisqualificationDialog:"openReasonOfDisqualificationDialog",getMissedKnockoutsForOffer:"getMissedKnockoutsForOffer",getUnansweredQuestionsForOffer:"getUnansweredQuestionsForOffer",requestFinancialAudit:"requestFinancialAudit",downloadFinancialAuditRequestExcelExport:"downloadFinancialAuditRequestExcelExport"},features:[t.Vt3],decls:40,vars:49,consts:[["readOnlyTemplateUnanswered",""],["readOnlyTemplate",""],["menu","matMenu"],[1,"nxcard","bg--white","z1","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content","flex-row","align--center","flex-grow--2"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"nxtable"],[1,"nxtable__header"],[1,"nxtable__header-row"],[1,"nxtable__header-title","nxtable__header-title--sortable",3,"click","title","ngClass"],[1,"mdi",3,"ngClass"],[1,"nxtable__header-title","col-sm-1"],["class","nxtable__header-title col-sm-1 text--right nxtable__header-title--sortable",3,"title","nxtable__header-title--selected","click",4,"ngIf"],["class","nxtable__header-title text--right nxtable__header-title--sortable",3,"col-sm-2","col-sm-3","title","click",4,"ngIf"],["class","nxtable__header-title text--right nxtable__header-title--sortable",3,"col-sm-1","col-sm-2","title","click",4,"ngIf"],[1,"nxtable__header-title","text--right","col-sm-1",3,"title"],[1,"nxtable__header-title","nxtable__header-title--option"],[1,"nxtable__body"],["class","nxtable__body-row",3,"no-border",4,"ngFor","ngForOf"],[1,"nxtable__header-title","col-sm-1","text--right","nxtable__header-title--sortable",3,"click","title"],[1,"nxtable__header-title","text--right","nxtable__header-title--sortable",3,"click","title"],[1,"nxtable__body-row"],[1,"nxtable__body-cell","pointer",3,"click"],[4,"ngIf"],[1,"nxtable__body-cell","padding--1","pointer","text--center",3,"click"],[1,"mdi","mdi-message-text","text--clarityblue0","text--18px"],["class","nxtable__body-cell text--right",4,"ngIf"],["class","nxtable__body-cell text--right",3,"nxtable__body-cell--icon",4,"ngIf"],[1,"nxtable__body-cell","text--right",3,"click","ngClass"],["class","button--table text--right",4,"ngIf","ngIfElse"],[1,"nxtable__body-cell","nxtable__body-cell--button","text--right"],["mat-icon-button","","disableRipple","",1,"button--medium","button--table",3,"matMenuTriggerFor"],[1,"mdi","mdi-dots-vertical"],["xPosition","before",3,"overlapTrigger"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],[1,"padding--top-5"],[1,"nxtable__body-cell","text--right"],["class","mdi mdi-lock text--18px text--grey60","tooltip","","tooltipPosition","top",3,"tooltipKeywords",4,"ngIf"],["tooltip","","tooltipPosition","top",1,"mdi","mdi-lock","text--18px","text--grey60",3,"tooltipKeywords"],[1,"button--table","text--right"],["mat-menu-item","",3,"click","disabled"]],template:function(p,g){1&p&&(t.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()(),t.j41(7,"div",7)(8,"table",8)(9,"thead",9)(10,"tr",10)(11,"th",11),t.nI1(12,"translate"),t.bIt("click",function(){return g.sort("ParticipantName")}
1),t.j41(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.nrm(16,"i",12),t.k0s(),t.j41(17,"th",11),t.nI1(18,"translate"),t.bIt("click",function(){return g.sort("OfferName")}),t.j41(19,"span"),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.nrm(22,"i",12),t.k0s(),t.nrm(23,"th",13),t.DNE(24,Ci,6,12,"th",14)(25,Ti,6,14,"th",15)(26,Si,6,14,"th",16),t.j41(27,"th",17),t.nI1(28,"translate"),t.j41(29,"span"),t.EFF(30),t.nI1(31,"translate"),t.k0s()(),t.j41(32,"th",17),t.nI1(33,"translate"),t.j41(34,"span"),t.EFF(35),t.nI1(36,"translate"),t.k0s()(),t.nrm(37,"th",18),t.k0s()(),t.j41(38,"tbody",19),t.DNE(39,Vi,33,31,"tr",20),t.k0s()()()()),2&p&&(t.R7$(5),t.JRh(t.bMT(6,17,"str_Tender_disqualified_offers")),t.R7$(6),t.FS9("title",t.bMT(12,19,"str_Common_organization_ppa")),t.Y8G("ngClass",t.sMw(35,yi,g.showRanking,!g.showRanking,g.isSortActive("ParticipantName"))),t.R7$(3),t.JRh(t.bMT(15,21,"str_Common_organization_ppa")),t.R7$(2),t.Y8G("ngClass",t.l_i(39,Xt,g.isSortActive("ParticipantName","asc"),g.isSortActive("ParticipantName","desc"))),t.R7$(),t.FS9("title",t.bMT(18,23,"str_Common_offer_name_ppa")),t.Y8G("ngClass",t.sMw(42,bi,g.showRanking,!g.showRanking,g.isSortActive("OfferName"))),t.R7$(3),t.JRh(t.bMT(21,25,"str_Common_offer_name_ppa")),t.R7$(2),t.Y8G("ngClass",t.l_i(46,Xt,g.isSortActive("OfferName","asc"),g.isSortActive("OfferName","desc"))),t.R7$(2),t.Y8G("ngIf",g.showRanking&&g.isQualityVisible),t.R7$(),t.Y8G("ngIf",g.showRanking),t.R7$(),t.Y8G("ngIf",g.showRanking&&g.showAuctionPrice),t.R7$(),t.FS9("title",t.bMT(28,27,"str_Survey_unanswered")),t.R7$(3),t.JRh(t.bMT(31,29,"str_Survey_unanswered")),t.R7$(2),t.FS9("title",t.bMT(33,31,"str_Survey_ko")),t.R7$(3),t.JRh(t.bMT(36,33,"str_Survey_ko")),t.R7$(4),t.Y8G("ngForOf",g.orderedOffers))},dependencies:[s.YU,s.Sq,s.bT,r.iV,_.pI,_.gy,_.fS,Vt.d,S.D9,Lt.v,Wt.V],styles:["[_nghost-%COMP%]{display:block}@media only screen and (max-width: 767px){[_nghost-%COMP%] .nxtable__body-cell[_ngcontent-%COMP%]:first-child, .nxtable__header-title[_ngcontent-%COMP%]:first-child{display:none}[_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(3), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(3), [_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(4), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(4), [_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(6), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(6), [_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:nth-child(5), .nxtable__body-cell[_ngcontent-%COMP%]:nth-child(5){display:none}[_nghost-%COMP%] .nxtable__header-title[_ngcontent-%COMP%]:last-child{width:50px}[_nghost-%COMP%] .nxtable__body-cell[_ngcontent-%COMP%]{max-width:none!important}}"],changeDetection:0})}}return m})();function zi(m,at){1&m&&(t.j41(0,"div",3),t.nrm(1,"mat-spinner",4),t.k0s()),2&m&&(t.R7$(),t.Y8G("diameter",60))}function Yi(m,at){if(1&m&&(t.qex(0),t.nrm(1,"nx1-tender-explicite-status",18),t.bVm()),2&m){const i=t.XpG(2);t.R7$(),t.Y8G("tender",i.tender)("isBuyer",i.isBuyer)}}function Wi(m,at){if(1&m){const i=t.RV6();t.j41(0,"nx1-box-guidance-message",21),t.nI1(1,"translate"),t.bIt("emitButtonClick",function(){t.eBV(i);const g=t.XpG(3);return t.Njj(g.openOffers())}),t.k0s()}if(2&m){const i=t.XpG(3);t.Y8G("box",i.box)("actionMnemonicNoButton","ViewOpenUsingPrivateKeysGuidance")("translatedTextNoButton",t.bMT(1,5,"str_Offerbox_open_offers_message"))("buttonKeyword","str_Offerbox_open_offers")("isActionButton",!0)}}function Ui(m,at){if(1&m){const i=t.RV6();t.j41(0,"nx1-box-guidance-message",21),t.nI1(1,"translate"),t.bIt("emitButtonClick",function(){t.eBV(i);const g=t.XpG(3);return t.Njj(g.openOffers(!0))}),t.k0s()}if(2&m){const i=t.XpG(3);t.Y8G("box",i.box)("actionMnemonicNoButton","ViewOpenPriceOfferUsingPrivateKeysGuidance")("translatedTextNoButton",t.bMT(1,5,"str_Offerbox_price_open_offers_message"))("buttonKeyword","str_Offerbox_open_offers")("isActionButton",!0)}}function qi(m,at){if(1&m&&(t.qex(0),t.nrm(1,"nx1-box-guidance-message",19)(2,"nx1-box-guidance-message",19),t.DNE(3,Wi,2,7,"nx1-box-guidance-message",20),t.nI1(4,"async"),t.DNE(5,Ui,2,7,"nx1-box-guidance-message",20),t.nI1(6,"async"),t.bVm()),2&m){const i=t.XpG(2);
1t.R7$(),t.Y8G("box",i.box)("actionMnemonic","ViewEvaluationBoxGuidance")("messageKeyword","str_Evaluationbox_guidance_message")("buttonKeyword","str_Evaluationbox_go_to_awarding")("link",i.guidanceLink),t.R7$(),t.Y8G("box",i.box)("actionMnemonic","ViewEvaluationBoxOpenVaultGuidance")("messageKeyword","str_Evaluationbox_open_vault_guidance_message")("buttonKeyword","str_Evaluationbox_go_to_offers")("link",i.guidanceLinkOffers),t.R7$(),t.Y8G("ngIf",!1===t.bMT(4,12,i.isDecryptLoading$)),t.R7$(2),t.Y8G("ngIf",!1===t.bMT(6,14,i.isDecryptLoading$))}}function Qi(m,at){if(1&m){const i=t.RV6();t.j41(0,"nx1-evaluation-disqualified-offers",22),t.bIt("exportOffer",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onRequestOfferContentsDownload(g))})("changeOfferInvitationState",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onChangeOfferInvitationState(g))})("viewOfferDetails",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onViewOfferDetails(g))})("openReasonOfDisqualificationDialog",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onOpenReasonOfDisqualificationDialog(g))})("getMissedKnockoutsForOffer",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onGetMissedKnockoutsForOffer(g))})("getUnansweredQuestionsForOffer",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onGetUnansweredQuestionsForOffer(g))})("requestFinancialAudit",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.onRequestFinancialAudit(g))})("downloadFinancialAuditRequestExcelExport",function(g){t.eBV(i);const N=t.XpG(2);return t.Njj(N.ondownloadFinancialAuditRequestExcelExport(g))}),t.k0s()}if(2&m){const i=t.XpG(2);t.Y8G("canManageBuyerEvaluationBox",i.canManageBuyerEvaluationBox)("canViewBuyerEvaluationBoxContent",i.canViewBuyerEvaluationBoxContent)("canExecuteFinalizeEvaluation",i.canExecuteFinalizeEvaluation)("offers",i.disqualifiedOffers)("tender",i.tender)("showRanking",i.showRanking)("canNotViewPriceKeyword",i.canNotViewPriceKeyword)("isQualityVisible",i.isQualityVisible)}}function Hi(m,at){if(1&m&&t.nrm(0,"nx1-evaluation-scores-bar-chart-wrapper",23),2&m){const i=t.XpG(2);t.Y8G("offers",i.openedOffers)("evaluationBoxId",null==i.box?null:i.box.Id)("tenderProcessRoundId",null==i.tenderProcessRound?null:i.tenderProcessRound.Id)("awardFormula",i.awardFormula)}}function Ki(m,at){if(1&m&&t.nrm(0,"nx1-tender-announcements",24),2&m){const i=t.XpG(2);t.Y8G("boxId$",i.boxId$)("canEdit",i.canManageBuyerEvaluationBox)("keywords",i.announcementKeywords)}}function Ji(m,at){if(1&m&&t.nrm(0,"nx1-document-editor-documents-list",25),2&m){const i=t.XpG(2);t.Y8G("canManage",i.canManageDocumentBuilderDocument)("titleKeyword","str_Tender_document_editor_evaluation_box")("scopeObject",i.box)("canPublishDocument",i.canCreateTenderAnnouncement)("templateType",i.documentEditorTemplateType.EvaluationBox)("canSendMessage",i.canSendMessage)}}function Zi(m,at){if(1&m){const i=t.RV6();t.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"nx1-tool-breadcrumb",10),t.bIt("nameEdit",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onEditName(g))}),t.k0s()()()()(),t.nrm(6,"nx1-tender-buyer-box-status",11),t.k0s(),t.DNE(7,Yi,2,2,"ng-container",12)(8,qi,7,16,"ng-container",12),t.nrm(9,"nx1-decrypt-offer-loader"),t.j41(10,"nx1-evaluation-offers",13),t.bIt("exportOffer",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onRequestOfferContentsDownload(g))})("exportProductListComparison",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onRequestOfferProductListComparisonDownload(g))})("changeOfferInvitationState",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onChangeOfferInvitationState(g))})("viewOfferDetails",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onViewOfferDetails(g))})("openReasonOfDisqualificationDialog",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onOpenReasonOfDisqualificationDialog(g))})("viewOfferEvaluationResults",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onViewOfferEvaluationResultsDialog(g))})("getMissedKnockoutsForOffer",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onGetMissedKnockoutsForOffer(g))})("getUnansweredQuestionsForOffer",function(g){t.eBV(i);const N=t.XpG();
1return t.Njj(N.onGetUnansweredQuestionsForOffer(g))})("requestFinancialAudit",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.onRequestFinancialAudit(g))})("downloadFinancialAuditRequestExcelExport",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.ondownloadFinancialAuditRequestExcelExport(g))}),t.k0s(),t.DNE(11,Qi,1,8,"nx1-evaluation-disqualified-offers",14)(12,Hi,1,4,"nx1-evaluation-scores-bar-chart-wrapper",15)(13,Ki,1,3,"nx1-tender-announcements",16)(14,Ji,1,6,"ng-template",null,1,t.C5r),t.j41(16,"nx1-finalize-footer",17),t.bIt("executeTransition",function(g){t.eBV(i);const N=t.XpG();return t.Njj(N.executeTransition(g))}),t.k0s()}if(2&m){const i=t.sdS(15),p=t.XpG();t.R7$(5),t.Y8G("breadcrumbPath",p.toolBreadcrumbPath)("canEdit",p.canEditTender)("nameEditMaxLength",p.stringType.NormalText),t.R7$(),t.Y8G("box",p.box)("titleKeyword","str_Evaluations_visibility")("visibleKeyword","")("notVisibleKeyword","str_Evaluations_not_visible_for_suppliers")("actionMnemonic","ViewSupplierEvaluationBoxContent")("requirePassword",!1)("showLocks",null==p.tender?null:p.tender.ShowLocks),t.R7$(),t.Y8G("ngIf",(null==p.tender?null:p.tender.IsArchived)||(null==p.tender?null:p.tender.IsCanceled)||(null==p.tender?null:p.tender.IsPaused)),t.R7$(),t.Y8G("ngIf",!(null!=p.tender&&p.tender.IsArchived||null!=p.tender&&p.tender.IsCanceled||null!=p.tender&&p.tender.IsPaused)&&p.canViewBuyerEvaluationBoxContent),t.R7$(2),t.Y8G("canManageBuyerEvaluationBox",p.canManageBuyerEvaluationBox)("canViewBuyerEvaluationBoxContent",p.canViewBuyerEvaluationBoxContent)("canExecuteFinalizeEvaluation",p.canExecuteFinalizeEvaluation)("canDisqualifyOffer",p.canDisqualifyOffer)("offers",p.offers)("tender",p.tender)("showRanking",p.showRanking)("canNotViewPriceKeyword",p.canNotViewPriceKeyword)("awardFormula",p.awardFormula)("priceQualityRatio",p.priceQualityRatio)("isQualityVisible",p.isQualityVisible)("requirementsType",p.requirementsType),t.R7$(),t.Y8G("ngIf",null==p.disqualifiedOffers?null:p.disqualifiedOffers.length),t.R7$(),t.Y8G("ngIf",null==p.offers?null:p.offers.length),t.R7$(),t.Y8G("ngIf",!(null!=p.tenderProcessRound&&p.tenderProcessRound.EnableDocumentEditorInEvaluation))("ngIfElse",i),t.R7$(3),t.Y8G("box",p.box)("endDate",p.evaluationEndDate$)("showCreateContractBtn",!1)}}let fe=(()=>{class m extends Ot.$G{static{this.FinalizeEvaluationMnemonic="FinalizeEvaluation"}static{this.ProceedToPhaseBeforeOpeningOfPricesFromEvaluationMnemonic="ProceedToPhaseBeforeOpeningOfPricesFromEvaluation"}static{this.CreateTenderAnnouncementMnemonic="CreateTenderAnnouncement"}static{this.ManageDocumentBuilderDocumentsMnemonic="ManageDocumentBuilderDocuments"}static{this.SendTenderMessagesMnemonic="SendTenderMessages"}static{this.ViewFinancialAuditRequestMnemonic="ViewFinancialAuditRequest"}constructor(i,p,g,N,lt,mt,gt,Tt,wt,Dt,St,At,uo,po,fo,go,mo,vo,_o,xo,yo,bo,Co,To){super(i),this.boxStoreService=p,this.multilotTenderStoreService=g,this.tenderProcessStoreService=N,this.tenderPlanningDateStoreService=lt,this.scrollService=mt,this.dialogService=gt,this.localizationService=Tt,this.tenderProcessPhaseTransitionStoreService=wt,this.offerStoreService=Dt,this.evaluationOffersPageGuard=St,this.loaderService=At,this.changeDetectorRef=uo,this.tasksService=po,this.notificationsService=fo,this.evaluationToolStoreService=go,this.principalPermissionService=mo,this.route=vo,this.advancedEvaluationToolGuard=_o,this.router=xo,this.exportService=yo,this.tenderGuard=bo,this.defaultDocumentService=Co,this.evaluationToolService=To,this.isExecutingTransition=!1,this.stringType=Ot.cT,this.toolBreadcrumbPath=[],this.guidanceLink=[],this.guidanceLinkOffers=[],this.announcementKeywords={header:"str_Common_statements",noStatementMessage:"str_Tender_evaluation_no_statements"},this.documentEditorTemplateType=NX1.Model.Enums.DocumentBuilderTemplateType,this.canManageDocumentBuilderDocument=!1,this.subscriptions=[],this.evaluateDocumentEditorPermissions$=new _t.B}ngOnInit(){this.subscriptions.push(this.evaluationOffersPageGuard.resolved.pipe((0,tt.p)(i=>i)).subscribe(()=>{this.canViewRoundPriceOfferContent=this.evaluationOffersPageGuard.canViewRoundPriceOfferContent,this.canManageBuyerEvaluationBox=this.evaluationOffersPageGuard.canManageBuyerEvaluationBox,this.canViewBu
1yerEvaluationBoxContent=this.evaluationOffersPageGuard.canViewBuyerEvaluationBoxContent,this.canManageOfferResultsEvaluationBox=this.evaluationOffersPageGuard.canManageOfferResultsEvaluationBox,this.canEditTender=this.evaluationOffersPageGuard.canEditTender,this.canExecuteFinalizeEvaluation=this.evaluationOffersPageGuard.canExecuteFinalizeEvaluation,this.canDisqualifyOffer=this.evaluationOffersPageGuard.canDisqualifyOffers,this.changeDetectorRef.markForCheck()})),this.offerStoreService.loadLegalDisqualifyReasons(),this.isBuyer=this.tenderGuard.isBuyer,this.tender=this.evaluationOffersPageGuard.tender,this.tenderDecimalDigits=this.evaluationOffersPageGuard.tender.DecimalDigits,this.tenderCurrency=this.evaluationOffersPageGuard.tender.Currency,this.isLoading$=this.evaluationToolStoreService.isLoadingEvaluationOffers(),this.subscriptions.push(this.isLoading$.subscribe(i=>{this.isLoading=i,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getEvaluationOffers().pipe((0,nt.n)(i=>(this.offers=i.filter(g=>g.EvaluationState!==NX1.Model.Enums.EvaluationState.Disqualified),this.openedOffers=this.offers.filter(g=>g.IsOfferOpened),this.disqualifiedOffers=i.filter(g=>g.EvaluationState===NX1.Model.Enums.EvaluationState.Disqualified),[...this.offers,...this.disqualifiedOffers]))).subscribe(()=>{this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationOffersPageGuard.tenderProcessRound$.pipe((0,tt.p)(i=>!!i)).subscribe(i=>{this.tenderProcessRound=i,this.isOpeningOfPriceSeparately=this.tenderProcessRound.OpeningOfPriceSeparately,this.requirementsType=i.RequirementsType,this.showRanking=this.tenderProcessRound.EvaluationApproach===NX1.Model.Enums.EvaluationApproach.UseRanking,this.changeDetectorRef.markForCheck()})),this.isDecryptLoading$=this.offerStoreService.getDecryptOffersLoading(),this.box$=this.evaluationOffersPageGuard.box$,this.boxId$=this.box$.pipe((0,ot.T)(i=>i.Id)),this.evaluationEndDate$=this.box$.pipe((0,nt.n)(i=>this.tenderPlanningDateStoreService.getEvaluationEndDate(i.TenderProcessRoundId))),this.subscriptions.push(this.box$.pipe((0,st.M)(i=>{this.box=i,this.setBreadcrumb(),this.changeDetectorRef.markForCheck()}),(0,nt.n)(i=>this.tenderPlanningDateStoreService.getIsEvaluationEndDateLoaded(i.TenderProcessRoundId))).subscribe(i=>{i||this.tenderPlanningDateStoreService.loadEvaluationEndDate(this.box.TenderProcessRoundId)}
1)),this.subscriptions.push(this.boxStoreService.getSelectedProcessRoundBoxesByTenderIdAndBoxType(this.tender.Id,NX1.Model.Enums.BoxType.Award).pipe((0,ot.T)(i=>i[0]),(0,tt.p)(i=>!!i)).subscribe(i=>{this.guidanceLink=["../../../awards/",i.Id],this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.boxStoreService.getSelectedProcessRoundBoxesByTenderIdAndBoxType(this.tender.Id,NX1.Model.Enums.BoxType.Offer).pipe((0,ot.T)(i=>i[0]),(0,tt.p)(i=>!!i)).subscribe(i=>{this.guidanceLinkOffers=["../../../offers/",i.Id],this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getAwardMethodFormula().subscribe(i=>{this.awardFormula=i,this.isQualityVisible=i!==NX1.Model.Enums.Formula.PriceOnly,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluationToolStoreService.getPriceQualityRatio().subscribe(i=>{this.priceQualityRatio=i,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.tender.LotNumber||this.tender.IsCommonPart?this.multilotTenderStoreService.getMultilotMainTender().pipe((0,nt.n)(i=>this.principalPermissionService.hasPermission(m.CreateTenderAnnouncementMnemonic,i.TenderGuid,this.tender.EntityId))).subscribe(i=>{this.canCreateTenderAnnouncement=i,this.changeDetectorRef.markForCheck()}):this.principalPermissionService.hasPermission(m.CreateTenderAnnouncementMnemonic,this.tender.Guid,this.tender.EntityId).subscribe(i=>{this.canCreateTenderAnnouncement=i,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.principalPermissionService.hasPermission(m.SendTenderMessagesMnemonic,this.tender.Guid,this.tender.EntityId).subscribe(i=>{this.canSendMessage=i,this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.evaluateDocumentEditorPermissions$.pipe((0,U.H)(()=>this.principalPermissionService.hasPermission(m.ManageDocumentBuilderDocumentsMnemonic,this.box.Guid,this.box.EntityId))).subscribe(i=>{this.canManageDocumentBuilderDocument=i,this.changeDetectorRef.markForCheck()})),this.evaluateDocumentEditorPermissions$.next()}ngOnDestroy(){for(const i of this.subscriptions)i.unsubscribe();this.destroyRef(this.reasonOfDisqualificationDialogRef),this.destroyRef(this.offerEvaluationResultsDialogRef),this.destroyRef(this.missedKnockoutsDialogRef)}get canNotViewPriceKeyword(){return this.canViewRoundPriceOfferContent?"str_Tender_cannot_view_price_content":this.isOpeningOfPriceSeparately?"str_Tender_open_price_vault_first":"str_Tender_open_quality_first"}openOffers(i=!1){let p;p=this.dialogService.confirm({titleKeyword:"str_Mnemonic_Tender_buyer_open_offers_title",textContentKeyword:"str_Mnemonic_Tender_buyer_open_offers_content",confirmationType:"lock-open",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_ok",requirePassword:!1,showCheckbox:!1}).subscribe(g=>{g.confirmed&&(this.offerStoreService.openOffers(this.tender.Id,!0,this.box.Id),this.openLoader(i?"str_Tender_decrypting_price":"str_Tender_decrypting_offers")),p.unsubscribe()})}onViewOfferEvaluationResultsDialog(i){this.destroyRef(this.offerEvaluationResultsDialogRef);const p=new h.Pe;p.viewContainerRef=this.viewContainerRef,p.disableClose=!0,this.offerEvaluationResultsDialogRef=this.dialogService.open(L.I,p),this.offerEvaluationResultsDialogRef.componentInstance.offerId=i,this.offerEvaluationResultsDialogRef.componentInstance.roundId=this.tenderProcessRound.Id,this.subscriptions.push(this.offerEvaluationResultsDialogRef.componentInstance.overruleFinalResult.asObservable().subscribe(g=>{this.explicitScoreHasBeenUpdated=!0})),this.subscriptions.push(this.offerEvaluationResultsDialogRef.afterClosed().subscribe(()=>{this.explicitScoreHasBeenUpdated&&(this.evaluationToolStoreService.loadEvaluationOffers(this.tenderProcessRound.Id),this.explicitScoreHasBeenUpdated=!1)}))}onViewOfferDetails(i){this.router.navigate(["../offer",i],{relativeTo:this.route})}onChangeOfferInvitationState(i){this.evaluationToolStoreService.updateOfferInvitationState(i,this.tenderProcessRound.Id),this.offerStoreService.loadBoxOfferWrappers(this.box.Id)}executeTransition(i){if(i.Mnemonic===m.FinalizeEvaluationMnemonic){const p=this.offers.filter(N=>N.EvaluationState===NX1.Model.Enums.EvaluationState.InEvaluation),g=this.offers.filter(N=>N.EvaluationState===NX1.Model.Enums.EvaluationState.ReadyForEvaluation);if(p.length>0||g.length>0){const N=`${this.localizationService.instant("str_Tender_evaluation_box_warning_you_have")} ${g.length>0?this.localizationService.instant("str_Tender_evaluation_box_warning_explanation_ready_for_evaluation_{{count}}",{count:g.length}):""} ${p.length>0&&g.length>0?", ":""} ${p.length>0?this.localizationService.instant("str_Tender_evaluation_box_warning_explanation_in_evaluation_{{count}}",{count:p.length}):""}`,lt=new h.Pe;
1lt.viewContainerRef=this.viewContainerRef,this.warningRef=this.dialogService.open(R.P,lt),this.warningRef.componentInstance.title="str_Tender_evaluation_box_warning_message_title",this.warningRef.componentInstance.alert="str_Tender_evaluation_box_warning_message_alert",this.warningRef.componentInstance.explanations=[N];const mt=this.warningRef.componentInstance.close.subscribe(gt=>{gt&&this.execute(i)});this.subscriptions.push(mt)}else this.execute(i)}else if(i.Mnemonic===m.ProceedToPhaseBeforeOpeningOfPricesFromEvaluationMnemonic&&this.tender.MainTenderId&&this.tender.VaultOpening===NX1.Model.Enums.VaultOpening.TroughPlanning){const p=new h.Pe;p.viewContainerRef=this.viewContainerRef,this.phaseBeforeOpeningOfPricesEvaluationDialogRef=this.dialogService.open(G,p),this.phaseBeforeOpeningOfPricesEvaluationDialogRef.componentInstance.mainTenderId=this.tender.MainTenderId,this.phaseBeforeOpeningOfPricesEvaluationDialogRef.componentInstance.tenderProcessRound=this.tenderProcessRound;const g=this.phaseBeforeOpeningOfPricesEvaluationDialogRef.componentInstance.proceed.pipe((0,Q.K)(this.evaluationOffersPageGuard.evaluateHasPermissions())).subscribe(N=>{this.tenderProcessStoreService.loadTenderProcessRoundAction(this.tenderProcessRound.Id),this.evaluationToolStoreService.loadEvaluationOffers(this.tenderProcessRound.Id),this.scrollService.scrollToTop(),this.tenderPlanningDateStoreService.loadEvaluationEndDate(this.box.TenderProcessRoundId),this.isExecutingTransition=!1,this.evaluateDocumentEditorPermissions$.next(),this.changeDetectorRef.markForCheck(),g.unsubscribe()})}else this.execute(i)}setBreadcrumb(){this.toolBreadcrumbPath=[{title:this.box.Name,url:["./"]}]}onEditName(i){this.boxStoreService.update({...this.box,Name:i})}execute(i){const p=w.c.tender.tenderProcessPhaseTransitionsToNotifyBuyers.findIndex(lt=>i.Mnemonic===lt)>=0,g=w.c.tender.tenderProcessPhaseTransitionsToNotifySuppliers.findIndex(lt=>i.Mnemonic===lt)>=0;let N;N=this.dialogService.confirm({titleKeyword:"str_Mnemonic_"+i.Mnemonic.toLowerCase()+"_title",textContentKeyword:"str_Mnemonic_"+i.Mnemonic.toLowerCase()+"_content",confirmationType:"lock-open",cancelKeyword:"str_Common_cancel",okKeyword:"str_Mnemonic_"+i.Mnemonic.toLowerCase()+"_button",requirePassword:!1,showCheckbox:p||g,checkboxKeyword:"str_Send_notification_to_buyers"}).pipe((0,Y.Z)(lt=>(lt.confirmed&&(this.isExecutingTransition=!0,this.tenderProcessPhaseTransitionStoreService.executeTenderProcessPhaseTransition(this.box.TenderId,i,lt.checkboxValue&&g,lt.checkboxValue&&p)),(0,et.of)(lt.confirmed))),(0,Y.Z)(lt=>lt?this.tenderProcessPhaseTransitionStoreService.getTenderProcessPhaseTransitionState():z.w),(0,tt.p)(lt=>!!lt),(0,Y.Z)(()=>(0,q.p)([this.advancedEvaluationToolGuard.evaluateHasPermissions(),this.evaluationOffersPageGuard.evaluateHasPermissions()]))).subscribe(lt=>{i.Mnemonic===m.FinalizeEvaluationMnemonic&&this.scrollService.scrollToTop(),i.Mnemonic===m.ProceedToPhaseBeforeOpeningOfPricesFromEvaluationMnemonic&&(this.tenderProcessStoreService.loadTenderProcessRoundAction(this.tenderProcessRound.Id),this.evaluationToolStoreService.loadEvaluationOffers(this.tenderProcessRound.Id),this.scrollService.scrollToTop()),this.tenderPlanningDateStoreService.loadEvaluationEndDate(this.box.TenderProcessRoundId),this.isExecutingTransition=!1,this.evaluateDocumentEditorPermissions$.next(),this.changeDetectorRef.markForCheck(),N.unsubscribe()})}onOpenReasonOfDisqualificationDialog(i){this.destroyRef(this.reasonOfDisqualificationDialogRef);const p=new h.Pe;p.viewContainerRef=this.viewContainerRef,p.disableClose=!0,this.reasonOfDisqualificationDialogRef=this.dialogService.open(E.mq,p),this.reasonOfDisqualificationDialogRef.componentInstance.parentId=this.id,this.reasonOfDisqualificationDialogRef.componentInstance.title="str_Tender_reason_of_disqualification",this.reasonOfDisqualificationDialogRef.componentInstance.content=i.offer.OfferInvitationNotes,this.reasonOfDisqualificationDialogRef.componentInstance.legalDisqualifyReasonId=i.offer.LegalDisqualifyReasonId,this.reasonOfDisqualificationDialogRef.componentInstance.validators=[c.Bm6.maxLength(Ot.cT.HugeText)],this.reasonOfDisqualificationDialogRef.componentInstance.canEdit=!i.isReadOnly,this.reasonOfDisqualificationDialogRef.componentInstance.isReadOnly=i.isReadOnly,this.changeDetectorRef.markForCheck(),this.reasonOfDisqualificationDialogRef.afterClosed().toPromise().then(()=>{this.reasonOfDisqualificationDialogRef=null,this.offerStoreService.loadBoxOfferWrappers(this.box.Id)}),this.subscriptions.push(this.reasonOfDisqualificationDialogRef.componentInstance.saveEvent.asObservable().subscribe(g=>{if(i.isDisqualifying){const N={OfferInvitationState:{OfferInvitationId:i.offer.OfferInvitationId,OfferInvitationVersion:i.offer.OfferInvitationVersion,Notes:g.content,LegalDisqualifyReasonId:g.legalDisqualifyReason,EvaluationState:NX1.Model.Enums.EvaluationState.Disqualified},OfferId:i.offer.OfferId,SnackbarKeyword:"str_Tender_evaluation_disqualify_offer",ShouldReloadOffers:!0};this.onChangeOfferInvitationState(N)}else this.evaluationToolStoreService.updateReasonOfDisqualification(g.content,g.legalDisqualifyReason,i.offer.OfferInvitationId,i.offer.OfferInvitationVersion,i.offer.OfferId)}))}onGetMissedKnockoutsForOffer(i){if(i.MissedKnockouts){this.destroyRef(this.missedKnockoutsDialogRef);const p=new h.Pe;
1p.viewContainerRef=this.viewContainerRef,this.missedKnockoutsDialogRef=this.dialogService.open(D.c,p),this.missedKnockoutsDialogRef.componentInstance.offerId=i.OfferId}}onGetUnansweredQuestionsForOffer(i){if(i.UnansweredQuestions){this.destroyRef(this.unansweredDialogRef);const p=new h.Pe;p.viewContainerRef=this.viewContainerRef,this.unansweredDialogRef=this.dialogService.open(A.$,p),this.unansweredDialogRef.componentInstance.offerId=i.OfferId}}onRequestOfferContentsDownload(i){this.openLoader("str_Tender_export_offer_content");const p=this.exportService.generateExportAndDownload(this.tasksService.zipOfferContents.bind(this.tasksService),[i,this.box.Id]).pipe((0,M.W)(g=>(this.closeLoader(),this.notificationsService.open("str_Common_export_error","",{},g),z.w))).subscribe(()=>{this.closeLoader(),this.notificationsService.open("str_Common_export_success","",{}),p.unsubscribe()})}onRequestOfferProductListComparisonDownload(i){this.openLoader("str_Tender_export_product_lists_to_excel");const p=this.exportService.generateExportAndDownload(this.tasksService.offerProductListComparisonExcel.bind(this.tasksService),[i,this.box.Id]).pipe((0,M.W)(g=>(this.closeLoader(),this.notificationsService.open("str_Common_export_error","",{},g),z.w))).subscribe(()=>{this.closeLoader(),this.notificationsService.open("str_Common_export_success","",{}),p.unsubscribe()})}onRequestFinancialAudit(i){this.openLoader("str_Tender_financial_audit_request");const p=this.evaluationToolService.getRegisterFinancialAuditRequest(i).pipe((0,M.W)(g=>(this.closeLoader(),this.notificationsService.open("str_Tender_FinancialAuditRequest_create_error","",{},g),z.w))).subscribe(()=>{this.closeLoader(),this.notificationsService.open("str_Tender_FinancialAuditRequest_create_success","",{}),p.unsubscribe()})}ondownloadFinancialAuditRequestExcelExport(i){this.openLoader("str_Tender_export_financial_audit_request"),this.evaluationToolService.getFinancialAuditRequestExport(i).subscribe(g=>{this.closeLoader(),this.defaultDocumentService.downloadDocumentBySignedUrl(g)},g=>{this.closeLoader(),this.notificationsService.open("str_Common_export_error","",{})})}openLoader(i){this.loader=this.loaderService.openLoader(),this.loader.instance.type="spinner",this.loader.instance.keyword=i}closeLoader(){this.loaderService.close()}destroyRef(i){i&&(i.close(),i=null)}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(c.o2P),t.rXU(c.Rh7),t.rXU(c.i_v),t.rXU(c.gQP),t.rXU(c.bk9),t.rXU(h.o3),t.rXU(c.PiF),t.rXU(c.Ipo),t.rXU(c.fRX),t.rXU(ht),t.rXU(c.ZCd),t.rXU(t.gRc),t.rXU(c.w9v),t.rXU(c.I2c),t.rXU(rt.h),t.rXU(c.N49),t.rXU(Mt.nX),t.rXU(it),t.rXU(Mt.Ix),t.rXU(c._Th),t.rXU(ct.U),t.rXU(c.sO9),t.rXU(H))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-offers-page"]],features:[t.Vt3],decls:3,vars:2,consts:[["offersPageContent",""],["documentEditor",""],["class","display--flex align--center content-center flex-grow--2 full-width full-height",4,"ngIf","ngIfElse"],[1,"display--flex","align--center","content-center","flex-grow--2","full-width","full-height"],[3,"diameter"],[1,"display--flex","margin--bottom-20"],[1,"nxcard","bg--white","z1","margin--right-20","flex-grow--2"],[1,"nxcard__header","nxcard__header--no-border"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content","flex-row","align--center","flex-grow--2"],[3,"nameEdit","breadcrumbPath","canEdit","nameEditMaxLength"],[3,"box","titleKeyword","visibleKeyword","notVisibleKeyword","actionMnemonic","requirePassword","showLocks"],[4,"ngIf"],[1,"margin--bottom-20",3,"exportOffer","exportProductListComparison","changeOfferInvitationState","viewOfferDetails","openReasonOfDisqualificationDialog","viewOfferEvaluationResults","getMissedKnockoutsForOffer","getUnansweredQuestionsForOffer","requestFinancialAudit","downloadFinancialAuditRequestExcelExport","canManageBuyerEvaluationBox","canViewBuyerEvaluationBoxContent","canExecuteFinalizeEvaluation","canDisqualifyOffer","offers","tender","showRanking","canNotViewPriceKeyword","awardFormula","priceQualityRatio","isQualityVisible","requirementsType"],["class","margin--bottom-20",3,"canManageBuyerEvaluationBox","canViewBu
1yerEvaluationBoxContent","canExecuteFinalizeEvaluation","offers","tender","showRanking","canNotViewPriceKeyword","isQualityVisible","exportOffer","changeOfferInvitationState","viewOfferDetails","openReasonOfDisqualificationDialog","getMissedKnockoutsForOffer","getUnansweredQuestionsForOffer","requestFinancialAudit","downloadFinancialAuditRequestExcelExport",4,"ngIf"],["class","margin--bottom-20",3,"offers","evaluationBoxId","tenderProcessRoundId","awardFormula",4,"ngIf"],["class","margin--bottom-20",3,"boxId$","canEdit","keywords",4,"ngIf","ngIfElse"],[3,"executeTransition","box","endDate","showCreateContractBtn"],[1,"margin--top-20",3,"tender","isBuyer"],[3,"box","actionMnemonic","messageKeyword","buttonKeyword","link"],[3,"box","actionMnemonicNoButton","translatedTextNoButton","buttonKeyword","isActionButton","emitButtonClick",4,"ngIf"],[3,"emitButtonClick","box","actionMnemonicNoButton","translatedTextNoButton","buttonKeyword","isActionButton"],[1,"margin--bottom-20",3,"exportOffer","changeOfferInvitationState","viewOfferDetails","openReasonOfDisqualificationDialog","getMissedKnockoutsForOffer","getUnansweredQuestionsForOffer","requestFinancialAudit","downloadFinancialAuditRequestExcelExport","canManageBuyerEvaluationBox","canViewBuyerEvaluationBoxContent","canExecuteFinalizeEvaluation","offers","tender","showRanking","canNotViewPriceKeyword","isQualityVisible"],[1,"margin--bottom-20",3,"offers","evaluationBoxId","tenderProcessRoundId","awardFormula"],[1,"margin--bottom-20",3,"boxId$","canEdit","keywords"],[1,"margin--bottom-20",3,"canManage","titleKeyword","scopeObject","canPublishDocument","templateType","canSendMessage"]],template:function(p,g){if(1&p&&t.DNE(0,zi,2,1,"div",2)(1,Zi,17,31,"ng-template",null,0,t.C5r),2&p){const N=t.sdS(2);t.Y8G("ngIf",g.isExecutingTransition||g.isLoading)("ngIfElse",N)}},dependencies:[s.bT,dt.wS,ft.x,pt._,vt.E,yt.x,Ct.W,xt.h,bt.y,Rt.m,Yt,ce,pe,s.Jj,S.D9],styles:["[_nghost-%COMP%]{display:block;height:100%}"],changeDetection:0})}}return m})();var tn=ut(76939),en=ut(16119),nn=ut(88018);let zt=(()=>{class m{static{this.ViewEvaluationTool="ViewEvaluators"}constructor(i,p,g,N){this.router=i,this.principalPermissionService=p,this.evaluationToolStoreService=g,this.tenderProcessStoreService=N,this.canViewEvaluationTool=!1}canActivate(i,p){const g=+i.parent.parent.parent.paramMap.get("roundId"),N=this.tenderProcessStoreService.getProcessRound(g);return this.evaluationToolStoreService.loadEvaluatorProgressOverview(g),N.pipe((0,tt.p)(lt=>!!lt),(0,J.$)(),(0,U.H)(lt=>this.principalPermissionService.hasPermissions(this.principalPermissionService.getActionsToCheck([m.ViewEvaluationTool],lt.EntityId,lt.Guid))),(0,ot.T)(lt=>(this.canViewEvaluationTool=lt[m.ViewEvaluationTool],this.canViewEvaluationTool)),(0,J.$)())}canDeactivate(){return this.evaluationToolStoreService.clearEvaluationState(),!0}static{this.\u0275fac=function(p){return new(p||m)(t.KVO(Mt.Ix),t.KVO(c.N49),t.KVO(rt.h),t.KVO(c.i_v))}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac})}}return m})();var on=ut(55904),rn=ut(47987),ge=ut(83860),sn=ut(77913),an=ut(54549);function ln(m,at){1&m&&t.nrm(0,"nx1-content-loader",4)}function cn(m,at){if(1&m&&(t.qex(0),t.nrm(1,"nx1-tender-explicite-status",18),t.bVm()),2&m){const i=t.XpG(2);t.R7$(),t.Y8G("tender",i.tender)("isBuyer",i.isBuyer)}}function hn(m,at){if(1&m&&(t.j41(0,"th",22),t.nI1(1,"nx1EnumTranslate"),t.nI1(2,"translate"),t.j41(3,"span"),t.EFF(4),t.nI1(5,"nx1EnumTranslate"),t.nI1(6,"translate"),t.k0s()()),2&m){const i=t.XpG(3);t.FS9("title",t.bMT(2,5,t.i5U(1,2,i.roundEvaluationDeclaration,i.evaluationDeclarationEnum))),t.R7$(4),t.JRh(t.bMT(6,10,t.i5U(5,7,i.roundEvaluationDeclaration,i.evaluationDeclarationEnum)))}}function dn(m,at){1&m&&(t.j41(0,"th",25),t.nI1(1,"translate"),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&m&&(t.FS9("title",t.bMT(1,2,"str_Tender_evaluation_tool_quality_progress")),t.R7$(3),t.JRh(t.bMT(4,4,"str_Tender_evaluation_tool_quality_progress")))}function un(m,at){1&m&&(t.j41(0,"th",25),t.nI1(1,"translate"),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&m&&(t.FS9("title",t.bMT(1,2,"str_Tender_evaluation_tool_price_progress")),t.R7$(3),t.JRh(t.bMT(4,4,"str_Tender_evaluation_tool_price_progress")))}function pn(m,at){if(1&m){const i=t.RV6();t.j41(0,"a",43),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG(3).$implicit,N=t.XpG(3);return t.Njj(N.onOpenDeclarationDialog(g.EmployeeId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG(6);t.BMQ("id",i.getLinkId("viewDeclaration")),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Tender_evaluation_tool_view")," ")}}function fn(m,at){if(1&m){const i=t.RV6();t.qex(0),t.j41(1,"div",37)(2,"div",38),t.bIt("click",function(){t.eBV(i);const g=t.XpG(2).$implicit,N=t.XpG(3);return t.Njj(N.openSignatureDetails(g.EmployeeId))}),t.nrm(3,"i",39),t.j41(4,"span",40),t.EFF(5),t.k0s()(),t.DNE(6,pn,3,4,"a",41),t.k0s(),t.nrm(7,"nx1-timestamp-date",42),t.bVm()}if(2&m){const i=t.XpG(2),p=i.$implicit,g=i.index,N=t.XpG(3);t.R7$(4),t.BMQ("id",N.getLabelId("signatureName",g)),t.R7$(),t.SpI(" ",p.EvaluatorDeclarationSignedByName," "),t.R7$(),t.Y8G("ngIf",N.isEvaluationNoteDecisionFilled),t.R7$(),t.Y8G("dateTime",null==p?null:p.DigitalSignaturesDate)("textClasses","text--12px")}}function gn(m,at){if(1&m){const i=t.RV6();t.j41(0,"a",43),t.bIt("click",function(){t.eBV(i);const g=t.XpG(3).$implicit,N=t.XpG(3);return t.Njj(N.onOpenDeclarationDialog(g.EmployeeId,!1))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&m){const i=t.XpG(6);t.BMQ("id",i.getLinkId("viewDeclaration")),t.R7$(),t.SpI(" ",t.bMT(2,2,"str_Tender_evaluation_tool_view")," ")}}function mn(m,at){if(1&m&&(t.j41(0,"span",40),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.DNE(3,gn,3,4,"a",41)),2&m){const i=t.XpG(5);t.R7$(),t.JRh(t.bMT(2,2,"str_Tender_evaluation_tool_not_signed_yet")),t.R7$(2),t.Y8G("ngIf",i.isEvaluationNoteDecisionFilled)}}function vn(m,at){if(1&m&&(t.j41(0,"td",36),t.DNE(1,fn,8,5,"ng-container",17)(2,mn,4,4,"ng-template",null,2,t.C5r),t.k0s()),2&m){const i=t.sdS(3),p=t.XpG(),g=p.$implicit,N=p.index,lt=t.XpG(3);t.BMQ("id",lt.getLabelId("getSigner",N)),t.R7$(),t.Y8G("ngIf",g.EvaluatorDeclarationSignedByName)("ngIfElse",i)}}function _n(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"uppercase"),t.k0s()),2&m){const i=t.XpG().$implicit,p=t.XpG(3);t.ZvI("pull-right evaluation-statistic wrap-text ",p.isEvaluationCompleted(i.CompletedQualitiesCount,i.TotalQualitiesCount)?"evaluation-statistic--completed":"evaluation-statistic--pending",""),t.R7$(),t.E5c(" ",i.CompletedQualitiesCount," / ",i.TotalQualitiesCount," ",t.bMT(3,8,t.bMT(2,6,p.evaluationOrderOfferByOffer?"str_Common_evaluation_order_offers":"str_Common_evaluation_order_questions"))," ")}}function xn(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"uppercase"),t.k0s()),2&m){const i=t.XpG(2).$implicit,p=t.XpG(3);t.ZvI("pull-right evaluation-statistic wrap-text ",p.isEvaluationCompleted(i.CompletedPricesCount,i.TotalPricesCount)?"evaluation-statistic--completed":"evaluation-statistic--pending",""),t.R7$(),t.E5c(" ",i.CompletedPricesCount," / ",i.TotalPricesCount," ",t.bMT(3,8,t.bMT(2,6,p.evaluationOrderOfferByOffer?"str_Common_evaluation_order_offers":"str_Common_evaluation_order_questions"))," ")}}function yn(m,at){if(1&m&&(t.j41(0,"td",33),t.DNE(1,xn,4,10,"div",34),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(3);t.BMQ("id",N.getLabelId("priceProgress",g)),t.R7$(),t.Y8G("ngIf",null!==p.TotalPricesCount)}}function bn(m,at){if(1&m&&(t.j41(0,"tr",28)(1,"td",29)(2,"div",30),t.nrm(3,"nx1-image-loader",31),t.EFF(4),t.k0s()(),t.DNE(5,vn,4,3,"td",32),t.j41(6,"td",33),t.DNE(7,_n,4,10,"div",34),t.k0s(),t.DNE(8,yn,2,2,"td",35),t.j41(9,"td",33)(10,"div"),t.EFF(11),t.nI1(12,"nx1date"),t.k0s()()()),2&m){const i=at.$implicit,p=at.index,g=t.XpG(3);t.R7$(),t.BMQ("id",g.getLabelId("evaluatorsName",p)),t.R7$(2),t.Y8G("source",null==i?null:i.ImageUrl)("displayName",i.EvaluatorName)("iconShow",null===i.ImageUrl)("iconClass","text--16px text--grey50a")("width",30)("isRound",!0)("imageBorder",!0)("parentId","defaultContactAvatar"),t.R7$(),t.SpI(" ",i.EvaluatorName," "),t.R7$(),t.Y8G("ngIf",g.isEnabledEvaluationDeclaration),t.R7$(),t.BMQ("id",g.getLabelId("qualityProgress",p)),t.R7$(),t.Y8G("ngIf",null!==i.TotalQualitiesCount),t.R7$(),t.Y8G("ngIf",g.canViewCompletedPrices),t.R7$(),t.BMQ("id",g.getLabelId("evaluationStartDate",p)),t.R7$(2),t.SpI(" ",t.i5U(12,16,i.EvaluationStartDate,"ShortDateTime")," ")}}function Cn(m,at){if(1&m&&(t.j41(0,"div")(1,"table",19)(2,"thead",20)(3,"tr",21)(4,"th",22),t.nI1(5,"translate"),t.j41(6,"span"),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.DNE(9,hn,7,12,"th",23)(10,dn,5,6,"th",24)(11,un,5,6,"th",24),t.j41(12,"th",25),t.nI1(13,"translate"),t.j41(14,"span"),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()(),t.j41(17,"tbody",26),t.DNE(18,bn,13,19,"tr",27),t.k0s()()()),2&m){const i=t.XpG(2);t.R7$(4),t.FS9("title",t.bMT(5,8,"str_Tender_evaluation_tool_evaluators")),t.R7$(3),t.JRh(t.bMT(8,10,"str_Tender_evaluation_tool_evaluators")),t.R7$(2),t.Y8G("ngIf",i.isEnabledEvaluationDeclaration),t.R7$(),t.Y8G("ngIf",i.canViewCompletedQualities),t.R7$(),t.Y8G("ngIf",i.canViewCompletedPrices),t.R7$(),t.FS9("title",t.bMT(13,12,"str_Tender_evaluation_tool_evaluation_star_date")),t.R7$(3),t.JRh(t.bMT(16,14,"str_Tender_evaluation_tool_evaluation_star_date")),t.R7$(3),t.Y8G("ngForOf",i.evaluatorProgressOverview)}}function Tn(m,at){1&m&&t.nrm(0,"nx1-empty-content",44)}function Sn(m,at){if(1&m){const i=t.RV6();t.DNE(0,cn,2,2,"ng-container",5),t.j41(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()(),t.j41(8,"div",10)(9,"button",11),t.bIt("click",function(){t.eBV(i);
1const g=t.XpG();return t.Njj(g.navigateToEvaluationOffersProgress())}),t.EFF(10),t.nI1(11,"translate"),t.k0s()()(),t.j41(12,"div",12)(13,"ul",13)(14,"li",14),t.nI1(15,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.navigateToOffers())}),t.j41(16,"span",15),t.EFF(17),t.nI1(18,"translate"),t.k0s()(),t.j41(19,"li",16),t.nI1(20,"translate"),t.j41(21,"span",15),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.j41(24,"li",14),t.nI1(25,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.onNavigateToScores())}),t.j41(26,"span",15),t.EFF(27),t.nI1(28,"translate"),t.k0s()()(),t.DNE(29,Cn,19,16,"div",17)(30,Tn,1,0,"ng-template",null,1,t.C5r),t.k0s()()}if(2&m){const i=t.sdS(31),p=t.XpG();t.Y8G("ngIf",p.tender.IsArchived||p.tender.IsCanceled||p.tender.IsPaused),t.R7$(6),t.JRh(t.bMT(7,13,"str_Tender_progress_in_evaluation")),t.R7$(3),t.BMQ("id",p.getButtonId("navigateToEvaluationOffersProgress")),t.R7$(),t.SpI(" ",t.bMT(11,15,"str_Tender_progress_in_evaluation_offers_progress")," "),t.R7$(4),t.BMQ("title",t.bMT(15,17,"str_Tender_evaluation_tool_offers_keyword")),t.R7$(3),t.JRh(t.bMT(18,19,"str_Tender_evaluation_tool_offers_keyword")),t.R7$(2),t.BMQ("title",t.bMT(20,21,"str_Tender_evaluation_tool_progress_keyword")),t.R7$(3),t.JRh(t.bMT(23,23,"str_Tender_evaluation_tool_progress_keyword")),t.R7$(2),t.BMQ("id",p.getLinkId("navigateToScores"))("title",t.bMT(25,25,"str_Tender_evaluation_tool_scores")),t.R7$(3),t.JRh(t.bMT(28,27,"str_Tender_evaluation_tool_scores")),t.R7$(2),t.Y8G("ngIf",null==p.evaluatorProgressOverview?null:p.evaluatorProgressOverview.length)("ngIfElse",i)}}let me=(()=>{class m extends Ot.$G{constructor(i,p,g,N,lt,mt,gt,Tt,wt,Dt,St){super(i),this.evaluatorsToolStoreService=p,this.evaluationProgressPageGuard=g,this.tenderProcessStoreService=N,this.changeDetectorRef=lt,this.dialogService=mt,this.evaluatorDeclarationService=gt,this.router=Tt,this.route=wt,this.overlay=Dt,this.tenderGuard=St,this.canViewCompletedPrices=!1,this.canViewCompletedQualities=!1,this.evaluationDeclarationEnum=NX1.Model.Enums.EvaluationDeclaration,this.subscriptions=[],this.round$=this.tenderProcessStoreService.getSelectedProcessRound()}ngOnInit(){this.isBuyer=this.tenderGuard.isBuyer,this.tender=this.tenderGuard.tenderInfo;const i=this.round$.pipe((0,tt.p)(N=>!!N)).subscribe(N=>{this.canViewCompletedPrices=N.OpeningOfPriceSeparately,this.canView=this.evaluationProgressPageGuard.canViewEvaluationTool,this.tenderProcessRoundId=N.Id,this.roundEvaluationDeclaration=N.EvaluationDeclaration,this.evaluationOrderOfferByOffer=N.EvaluationOrder===NX1.Model.Enums.EvaluationOrder.EvaluatePerOffer,this.changeDetectorRef.markForCheck()}),p=this.evaluatorsToolStoreService.getEvaluationProgressIsLoading().subscribe(N=>{this.isLoading=N,this.changeDetectorRef.markForCheck()}),g=this.evaluatorsToolStoreService.getEvaluatorProgress().pipe((0,tt.p)(N=>!!N),(0,ot.T)(N=>this.evaluatorProgressOverview=N)).subscribe(()=>{this.evaluatorProgressOverview.length&&(this.canViewCompletedQualities=null!==this.evaluatorProgressOverview[0].TotalQualitiesCount,this.evaluatorProgressOverview.forEach(N=>{this.isEvaluationNoteDecisionFilled=N.IsEvaluationNoteDecisionFilled,this.changeDetectorRef.markForCheck()}))});this.subscriptions.push(i,g,p)}ngOnDestroy(){for(const i of this.subscriptions)i&&i.unsubscribe()}navigateToOffers(){this.router.navigate(["."],{relativeTo:this.route.parent})}navigateToEvaluationOffersProgress(){this.router.navigate(["./offerprogress"],{relativeTo:this.route.parent})}onOpenDeclarationDialog(i,p=!0){this.destroyEvaluatorDeclarationDialogRef(),this.overlayRef=this.overlay.create({width:"100%",height:"100%"});const g=new tn.A8(en.H,this.viewContainerRef,this.viewContainerRef.injector);let N;this.evaluatorDeclarationDialogRef=this.overlayRef.attach(g),this.evaluatorDeclarationDialogRef.instance.canEdit=!1,this.evaluatorDeclarationDialogRef.instance.employeeId=i,this.evaluatorDeclarationDialogRef.instance.roundId=this.tenderProcessRoundId,this.evaluatorDeclarationDialogRef.instance.isSigned=p,N=this.evaluatorDeclarationDialogRef.instance.close.subscribe(()=>{this.destroyEvaluatorDeclarationDialogRef(),N.unsubscribe()})}destroyEvaluatorDeclarationDialogRef(){this.evaluatorDeclarationDialogRef&&(this.evaluatorDeclarationDialogRef.destroy(),this.evaluatorDeclarationDialogRef=null),this.overlayRef&&this.overlayRef.hasAttached&&(this.overlayRef.detach(),this.overlayRef.dispose())}openSignatureDetails(i){this.destroySignatureDetails();const p=new h.Pe;
1p.viewContainerRef=this.viewContainerRef,this.digitalSignatureDetailsRef=this.dialogService.open(nn.S,p),this.subscriptions.push(this.evaluatorDeclarationService.getEvaluatorDeclaration(this.tenderProcessRoundId,i).subscribe(g=>{this.evaluatorDeclaration=g,this.evaluatorDeclaration&&(this.digitalSignatureDetailsRef.componentInstance.signature=this.evaluatorDeclaration.DigitalSignature.DigitalSignatureDetail)}))}isEvaluationCompleted(i,p){return"number"==typeof i&&"number"==typeof p&&i===p}get isEnabledEvaluationDeclaration(){return this.roundEvaluationDeclaration!==NX1.Model.Enums.EvaluationDeclaration.None&&this.roundEvaluationDeclaration!==NX1.Model.Enums.EvaluationDeclaration.NotEnabled}onNavigateToScores(){this.router.navigate(["../scores"],{relativeTo:this.route})}destroySignatureDetails(){this.digitalSignatureDetailsRef&&(this.digitalSignatureDetailsRef.close(),this.digitalSignatureDetailsRef=null)}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(rt.h),t.rXU(zt),t.rXU(c.i_v),t.rXU(t.gRc),t.rXU(h.o3),t.rXU(on.W),t.rXU(Mt.Ix),t.rXU(Mt.nX),t.rXU(rn.hJ),t.rXU(ct.U))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-progress-page"]],features:[t.Vt3],decls:3,vars:2,consts:[["contentTemplate",""],["noContentTemplate",""],["notSignedDeclarationTemplate",""],["class","full-height",4,"ngIf","ngIfElse"],[1,"full-height"],[4,"ngIf"],[1,"nxcard","bg--white","z1","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"nxcard__header-options"],["mat-button","",3,"click"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"nxtabs","border--bottom"],[1,"nxtab",3,"click"],[1,"nxtab__name"],[1,"nxtab","nxtab--active"],[4,"ngIf","ngIfElse"],[3,"tender","isBuyer"],[1,"nxtable"],[1,"nxtable__header"],[1,"nxtable__header-row"],[1,"nxtable__header-title","col-sm-3",3,"title"],["class","nxtable__header-title col-sm-3",3,"title",4,"ngIf"],["class","nxtable__header-title col-sm-2 text--right",3,"title",4,"ngIf"],[1,"nxtable__header-title","col-sm-2","text--right",3,"title"],[1,"nxtable__body"],["class","nxtable__body-row",4,"ngFor","ngForOf"],[1,"nxtable__body-row"],[1,"nxtable__body-cell"],[1,"display--flex","align--center"],[1,"radius-circle","margin--right-5","pull-left","shrink-0","stacked-avatar",2,"width","30px","height","30px",3,"source","displayName","iconShow","iconClass","width","isRound","imageBorder","parentId"],["class","nxtable__body-cell nxtable__body-cell--avatar",4,"ngIf"],[1,"nxtable__body-cell","text--right"],[3,"class",4,"ngIf"],["class","nxtable__body-cell text--right",4,"ngIf"],[1,"nxtable__body-cell","nxtable__body-cell--avatar"],[1,"display--flex"],[1,"display--flex",3,"click"],[1,"pointer","mdi","mdi-certificate","text--clarityblue0","padding--right-5","text--16px"],[1,"padding--right-10"],["class","text--underline text--seablue0",3,"click",4,"ngIf"],[3,"dateTime","textClasses"],[1,"text--underline","text--seablue0",3,"click"],["iconClass","mdi-message-bulleted-off","primaryTextKeyword","str_Tender_no_evaluators"]],template:function(p,g){if(1&p&&t.DNE(0,ln,1,0,"nx1-content-loader",3)(1,Sn,32,29,"ng-template",null,0,t.C5r),2&p){const N=t.sdS(2);t.Y8G("ngIf",g.isLoading)("ngIfElse",N)}},dependencies:[s.Sq,s.bT,r.iV,ge.y,y.G,k.o,yt.x,sn.s,s.Pc,S.D9,an.R9,B.O],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return m})();var On=ut(73752),In=ut(66906);const wn=m=>({"button--table pointer display--flex align--center":m});function kn(m,at){if(1&m&&(t.qex(0),t.nrm(1,"nx1-tender-explicite-status",9),t.bVm()),2&m){const i=t.XpG();t.R7$(),t.Y8G("tender",i.tender)("isBuyer",i.isBuyer)}}function Mn(m,at){1&m&&(t.j41(0,"th",19),t.nI1(1,"translate"),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&m&&(t.FS9("title",t.bMT(1,2,"str_Tender_evaluation_tool_price_progress")),t.R7$(3),t.JRh(t.bMT(4,4,"str_Tender_evaluation_tool_price_progress")))}function En(m,at){if(1&m&&(t.j41(0,"span",37),t.EFF(1),t.k0s()),2&m){const i=t.XpG().$implicit,p=t.XpG().index,g=t.XpG(2);t.BMQ("id",g.getLabelId("evaluatorName",p)),t.R7$(),t.SpI(" ",i.DisplayName," ")}}function Pn(m,at){if(1&m&&(t.j41(0,"span",38)(1,"span",39),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&m){const i=t.XpG(2).$implicit,p=t.XpG(2);t.R7$(2),t.Lme(" + ",p.getMoreEvaluatorsCount(i.OfferId)," ",t.bMT(3,2,"str_Tender_evaluation_tool_more")," ")}}function Rn(m,at){if(1&m&&(t.qex(0),t.nrm(1,"nx1-image-loader",34),t.DNE(2,En,2,2,"span",35)(3,Pn,4,4,"span",36),t.bVm()),2&m){const i=at.$implicit,p=at.index,g=at.last,N=t.XpG().$implicit,lt=t.XpG
1(2);t.R7$(),t.Y8G("source",i.ImageUrl)("displayName",i.DisplayName)("iconShow",null===i.ImageUrl)("iconClass","text--16px text--grey50a")("width",30)("isRound",!0)("imageBorder",!0)("parentId","evaluator"),t.R7$(),t.Y8G("ngIf",0===p&&g),t.R7$(),t.Y8G("ngIf",g&<.getEvaluatorsByOfferId(N.OfferId).length>lt.evaluatorViewCount)}}function Dn(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"uppercase"),t.k0s()),2&m){const i=t.XpG().$implicit,p=t.XpG(2);t.ZvI("pull-right evaluation-statistic wrap-text ",i.CompletedQuestionsCount===p.evaluatorOfferProgressOverview.TotalQualityQuestionsCount?"evaluation-statistic--completed":"evaluation-statistic--pending",""),t.R7$(),t.E5c(" ",i.CompletedQuestionsCount," / ",p.evaluatorOfferProgressOverview.TotalQualityQuestionsCount," ",t.bMT(3,8,t.bMT(2,6,"str_Common_evaluation_order_questions"))," ")}}function Bn(m,at){if(1&m&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"uppercase"),t.k0s()),2&m){const i=t.XpG(2).$implicit,p=t.XpG(2);t.ZvI("pull-right evaluation-statistic wrap-text ",i.CompletedPriceQuestionsCount===p.evaluatorOfferProgressOverview.TotalPriceQuestionsCount?"evaluation-statistic--completed":"evaluation-statistic--pending",""),t.R7$(),t.E5c(" ",i.CompletedPriceQuestionsCount," / ",p.evaluatorOfferProgressOverview.TotalPriceQuestionsCount," ",t.bMT(3,8,t.bMT(2,6,"str_Common_evaluation_order_questions"))," ")}}function An(m,at){if(1&m&&(t.j41(0,"td",31),t.DNE(1,Bn,4,10,"div",32),t.k0s()),2&m){const i=t.XpG(),p=i.$implicit,g=i.index,N=t.XpG(2);t.BMQ("id",N.getLabelId("priceprogress",g)),t.R7$(),t.Y8G("ngIf",0!==p.CompletedPriceQuestionsCount||0!==N.evaluatorOfferProgressOverview.TotalPriceQuestionsCount)}}function Fn(m,at){if(1&m){const i=t.RV6();t.j41(0,"tr",24)(1,"td",25),t.EFF(2),t.k0s(),t.j41(3,"td",26)(4,"div",27),t.bIt("click",function(){const g=t.eBV(i).$implicit,N=t.XpG(2);return t.Njj(N.openOfferEvaluatorsDialog(N.getEvaluatorsByOfferId(g.OfferId)))}),t.j41(5,"div",28)(6,"div",29),t.DNE(7,Rn,4,10,"ng-container",30),t.k0s()()()(),t.j41(8,"td",31),t.DNE(9,Dn,4,10,"div",32),t.k0s(),t.DNE(10,An,2,2,"td",33),t.j41(11,"td",31),t.EFF(12),t.nI1(13,"nx1date"),t.k0s()()}if(2&m){const i=at.$implicit,p=at.index,g=t.XpG(2);t.R7$(),t.BMQ("id",g.getLabelId("offerName",p)),t.R7$(),t.SpI(" ",i.OfferName," "),t.R7$(4),t.Y8G("ngClass",t.eq3(12,wn,0!==g.getOfferEvaluatorsByViewCount(i.OfferId).length)),t.R7$(),t.Y8G("ngForOf",g.getOfferEvaluatorsByViewCount(i.OfferId)),t.R7$(),t.BMQ("id",g.getLabelId("progress",p)),t.R7$(),t.Y8G("ngIf",0!==i.CompletedQuestionsCount||0!==g.evaluatorOfferProgressOverview.TotalQualityQuestionsCount),t.R7$(),t.Y8G("ngIf",g.canViewCompletedPrices),t.R7$(),t.BMQ("id",g.getLabelId("startDate",p)),t.R7$(),t.SpI(" ",t.i5U(13,9,null==i?null:i.EvaluationStartDate,"ShortDateTime")," ")}}function Ln(m,at){if(1&m){const i=t.RV6();t.qex(0),t.j41(1,"ul",10)(2,"li",11),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.navigateToOffers())}),t.j41(4,"span",12),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"li",13),t.nI1(8,"translate"),t.j41(9,"span",12),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"li",11),t.nI1(13,"translate"),t.bIt("click",function(){t.eBV(i);const g=t.XpG();return t.Njj(g.onNavigateToScores())}),t.j41(14,"span",12),t.EFF(15),t.nI1(16,"translate"),t.k0s()()(),t.j41(17,"div")(18,"table",14)(19,"thead",15)(20,"tr",16)(21,"th",17),t.nI1(22,"translate"),t.j41(23,"span"),t.EFF(24),t.nI1(25,"translate"),t.k0s()(),t.j41(26,"th",18),t.nI1(27,"translate"),t.j41(28,"span"),t.EFF(29),t.nI1(30,"translate"),t.k0s()(),t.j41(31,"th",19),t.nI1(32,"translate"),t.j41(33,"span"),t.EFF(34),t.nI1(35,"translate"),t.k0s()(),t.DNE(36,Mn,5,6,"th",20),t.j41(37,"th",21),t.nI1(38,"translate"),t.j41(39,"span"),t.EFF(40),t.nI1(41,"translate"),t.k0s()()()(),t.j41(42,"tbody",22),t.DNE(43,Fn,14,14,"tr",23),t.k0s()()(),t.bVm()}if(2&m){const i=t.XpG();t.R7$(2),t.BMQ("title",t.bMT(3,17,"str_Tender_evaluation_tool_offers_keyword")),t.R7$(3),t.JRh(t.bMT(6,19,"str_Tender_evaluation_tool_offers_keyword")),t.R7$(2),t.BMQ("title",t.bMT(8,21,"str_Tender_evaluation_tool_progress_keyword")),t.R7$(3),t.JRh(t.bMT(11,23,"str_Tender_evaluation_tool_progress_keyword")),t.R7$(2),t.BMQ("id",i.getLinkId("navigateToScores"))("title",t.bMT(13,25,"str_Tender_evaluation_tool_scores")),t.R7$(3),t.JRh(t.bMT(16,27,"str_Tender_evaluation_tool_scores")),t.R7$(6),t.FS9("title",t.bMT(22,29,"str_Tender_evaluation_tool_evaluators_offers_name")),t.R7$(3),t.JRh(t.bMT(25,31,"str_Tender_evaluation_tool_evaluators_offers_name")),t.R7$(2),t.FS9("title",t.bMT(27,33,"str_Tender_evaluation_evaluators")),t.R7$(3),t.JRh(t.bMT(30,35,"str_Tender_evaluation_tool_evaluators")),t.R7$(2),t.FS9("title",t.bMT(32,37,"str_Tender_evaluation_tool_qual
1ity_progress")),t.R7$(3),t.JRh(t.bMT(35,39,"str_Tender_evaluation_tool_quality_progress")),t.R7$(2),t.Y8G("ngIf",i.canViewCompletedPrices),t.R7$(),t.FS9("title",t.bMT(38,41,"str_Tender_evaluation_start_date")),t.R7$(3),t.JRh(t.bMT(41,43,"str_Tender_evaluation_tool_start_date")),t.R7$(3),t.Y8G("ngForOf",i.evaluatorOfferProgressOverview.Offers)}}function jn(m,at){1&m&&t.nrm(0,"nx1-empty-content",40)}function Gn(m,at){1&m&&t.nrm(0,"nx1-content-loader")}let ve=(()=>{class m extends Ot.$G{constructor(i,p,g,N,lt,mt,gt,Tt,wt){super(i),this.changeDetectorRef=p,this.tenderProcessStoreService=g,this.evaluatorsToolStoreService=N,this.tenderBuyerGuard=lt,this.router=mt,this.route=gt,this.dialogService=Tt,this.tenderGuard=wt,this.evaluatorViewCount=3,this.canViewCompletedPrices=!1,this.round$=this.tenderProcessStoreService.getSelectedProcessRound(),this.subscriptions=[]}ngOnInit(){this.isBuyer=this.tenderGuard.isBuyer,this.tender=this.tenderGuard.tenderInfo;const i=this.round$.pipe((0,tt.p)(N=>!!N)).subscribe(N=>{this.canViewCompletedPrices=N.OpeningOfPriceSeparately,this.round=N,this.changeDetectorRef.markForCheck()}),p=this.evaluatorsToolStoreService.getEvaluationProgressIsLoading().subscribe(N=>{this.isLoading=N,this.changeDetectorRef.markForCheck()}),g=this.evaluatorsToolStoreService.getEvaluationOffersProgress().pipe((0,tt.p)(N=>!!N)).subscribe(N=>{this.evaluatorOfferProgressOverview=N,this.changeDetectorRef.markForCheck()});this.subscriptions.push(i,p,g)}getEvaluatorsByOfferId(i){return this.evaluatorOfferProgressOverview.Evaluators.filter(p=>p.OfferIds.indexOf(i)>-1)}ngOnDestroy(){for(const i of this.subscriptions)i&&i.unsubscribe()}navigateToOffers(){this.router.navigate(["."],{relativeTo:this.route.parent})}navigateToEvaluationProgress(){this.router.navigate(["./progress"],{relativeTo:this.route.parent})}getOfferEvaluatorsByViewCount(i){return this.getEvaluatorsByOfferId(i).slice(0,this.evaluatorViewCount)}getMoreEvaluatorsCount(i){return this.getEvaluatorsByOfferId(i).length-this.evaluatorViewCount}openOfferEvaluatorsDialog(i){if(this.destroyOfferEvaluatorsDialog(),i.length){const p=new h.Pe;p.viewContainerRef=this.viewContainerRef,this.offerEvaluatorsDialogRef=this.dialogService.open(On.S,p),this.offerEvaluatorsDialogRef.componentInstance.offerEvaluators=i,this.offerEvaluatorsDialogRef.componentInstance.isEvaluationNoteDecisionFilled=this.evaluatorOfferProgressOverview.IsEvaluationNoteDecisionFilled,this.offerEvaluatorsDialogRef.componentInstance.round=this.round}}destroyOfferEvaluatorsDialog(){this.offerEvaluatorsDialogRef&&(this.offerEvaluatorsDialogRef.close(),this.offerEvaluatorsDialogRef=null)}onNavigateToScores(){this.router.navigate(["../scores"],{relativeTo:this.route})}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b),t.rXU(t.gRc),t.rXU(In.i),t.rXU(rt.h),t.rXU(O.V),t.rXU(Mt.Ix),t.rXU(Mt.nX),t.rXU(h.o3),t.rXU(ct.U))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-evaluation-offer-progress-page"]],features:[t.Vt3],decls:17,vars:11,consts:[[4,"ngIf"],[1,"nxcard","bg--white","z1","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content","flex-row","align--center","flex-grow--2"],[1,"nxcard__header-options"],["mat-button","",3,"click"],[1,"nxcard__body","nxcard__body--no-scroll"],["iconClass","mdi-message-bulleted-off","primaryTextKeyword","str_Tender_no_evaluators",4,"ngIf"],[1,"margin--top-20",3,"tender","isBuyer"],[1,"nxtabs","border--bottom"],[1,"nxtab",3,"click"],[1,"nxtab__name"],[1,"nxtab","nxtab--active"],[1,"nxtable"],[1,"nxtable__header"],[1,"nxtable__header-row"],[1,"nxtable__header-title","col-sm-3",3,"title"],[1,"nxtable__header-title","col-sm-2",3,"title"],[1,"nxtable__header-title","col-sm-2","text--right",3,"title"],["class","nxtable__header-title col-sm-2 text--right",3,"title",4,"ngIf"],[1,"nxtable__header-title","col-sm-3","text--right",3,"title"],[1,"nxtable__body"],["class","nxtable__body-row",4,"ngFor","ngForOf"],[1,"nxtable__body-row"],[1,"nxtable__body-cell"],[1,"nxtable__body-cell","nxtable__body-cell"],[3,"click"],[1,"display--flex","align--center"],[3,"ngClass"],[4,"ngFor","ngForOf"],[1,"nxtable__body-cell","text--right"],[3,"class",4,"ngIf"],["class","nxtable__body-cell text--right",4,"ngIf"],[1,"radius-circle","pull-left","shrink-0","stacked-avatar",2,"width","30px","height","30px",3,"source","displayName","iconShow","iconClass","width","isRound","imageBorder","parentId"],["class","margin--left-5 wrap-text",4,"ngIf"],["class","more-evaluators-label text--ellipsis margin--left-5",4,"ngIf"],[1,"margin--left-5","wrap-text"],[1,"more-evaluators-label","text--ellipsis","margin--left-5"],[1,"text--ellipsis"],["
1iconClass","mdi-message-bulleted-off","primaryTextKeyword","str_Tender_no_evaluators"]],template:function(p,g){1&p&&(t.j41(0,"div"),t.DNE(1,kn,2,2,"ng-container",0),t.k0s(),t.j41(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",5)(10,"button",6),t.bIt("click",function(){return g.navigateToEvaluationProgress()}),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()(),t.j41(13,"div",7),t.DNE(14,Ln,44,45,"ng-container",0),t.k0s()(),t.DNE(15,jn,1,0,"nx1-empty-content",8)(16,Gn,1,0,"nx1-content-loader",0)),2&p&&(t.R7$(),t.Y8G("ngIf",(null==g.tender?null:g.tender.IsArchived)||(null==g.tender?null:g.tender.IsCanceled)||(null==g.tender?null:g.tender.IsPaused)),t.R7$(6),t.JRh(t.bMT(8,7,"str_Tender_progress_in_evaluation_offers_progress_tittle")),t.R7$(3),t.BMQ("id",g.getButtonId("navigateToEvaluationProgress")),t.R7$(),t.SpI(" ",t.bMT(12,9,"str_Tender_progress_in_evaluation_progress")," "),t.R7$(3),t.Y8G("ngIf",!g.isLoading&&g.evaluatorOfferProgressOverview),t.R7$(),t.Y8G("ngIf",!g.evaluatorOfferProgressOverview&&!g.isLoading),t.R7$(),t.Y8G("ngIf",g.isLoading))},dependencies:[s.YU,s.Sq,s.bT,r.iV,ge.y,y.G,k.o,yt.x,s.Pc,S.D9,B.O],styles:["[_nghost-%COMP%]{display:block}.more-evaluators-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;height:26px;border-radius:12px;background-color:#ccc;font-size:12px;padding:4px 6px}"],changeDetection:0})}}return m})(),_e=(()=>{class m extends Ot.$G{constructor(i){super(i)}ngOnInit(){}static{this.\u0275fac=function(p){return new(p||m)(t.rXU(t.c1b))}}static{this.\u0275cmp=t.VBU({type:m,selectors:[["nx1-advanced-evaluation-tool"]],features:[t.Vt3],decls:1,vars:0,template:function(p,g){1&p&&t.nrm(0,"router-outlet")},dependencies:[Mt.n3],styles:["[_nghost-%COMP%] {display:block;height:100%}[_nghost-%COMP%] .evaluation-statistic{padding:2px 6px;border-radius:3px;font-size:13px;font-weight:700}[_nghost-%COMP%] .evaluation-statistic--completed{color:#fff;background-color:#74d49f}[_nghost-%COMP%] .evaluation-statistic--pending{color:#0006;background-color:#ffe087}"],changeDetection:0})}}return m})(),qt=(()=>{class m{static{this.ViewEvaluationTool="ViewEvaluators"}constructor(i,p,g){this.principalPermissionService=i,this.evaluationToolStoreService=p,this.tenderProcessStoreService=g,this.canViewEvaluationTool=!1}canActivate(i,p){const g=+i.parent.parent.parent.paramMap.get("roundId"),N=this.tenderProcessStoreService.getProcessRound(g);return this.evaluationToolStoreService.loadEvaluationOffersProgress(g),N.pipe((0,tt.p)(lt=>!!lt),(0,J.$)(),(0,U.H)(lt=>this.principalPermissionService.hasPermissions(this.principalPermissionService.getActionsToCheck([m.ViewEvaluationTool],lt.EntityId,lt.Guid))),(0,ot.T)(lt=>(this.canViewEvaluationTool=lt[m.ViewEvaluationTool],this.canViewEvaluationTool)),(0,J.$)())}canDeactivate(){return this.evaluationToolStoreService.clearEvaluationOffersProgreessState(),!0}static{this.\u0275fac=function(p){return new(p||m)(t.KVO(c.N49),t.KVO(rt.h),t.KVO(c.i_v))}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac})}}return m})();const Nn=[{path:"",component:_e,canActivate:[it],children:[{path:"",pathMatch:"full",component:fe,canActivate:[ht],canDeactivate:[ht]},{path:"progress",component:me,canActivate:[zt],canDeactivate:[zt]},{path:"offerprogress",component:ve,canActivate:[qt],canDeactivate:[qt]},{path:"scores",loadChildren:()=>Promise.all([ut.e(2076),ut.e(1125)]).then(ut.bind(ut,61125)).then(m=>m.EvaluationScoresModule)}]}];let $n=(()=>{class m{static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275mod=t.$C({type:m})}static{this.\u0275inj=t.G2t({providers:[it,ht,zt,qt],imports:[Mt.iI.forChild(Nn),Mt.iI]})}}return m})();var Xn=ut(31594),Vn=ut(68789),zn=ut(37735),Yn=ut(22843),Wn=ut(77783),Un=ut(40759),qn=ut(93218),xe=ut(78317),Qn=ut(84367),Hn=ut(83223),Kn=ut(70152),Jn=ut(65245),Zn=ut(56977),to=ut(53993),It=ut(60146),eo=ut(82607);let io=(()=>{class m{constructor(i,p,g,N){this.actions$=i,this.evaluationToolService=p,this.notificationsService=g,this.tenderStoreService=N,this.loadEvaluatorProgressOverview$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(It.Tk),(0,U.H)(lt=>this.evaluationToolService.getEvaluatorsProgressByRoundId(lt.payload.roundId).pipe((0,ot.T)(mt=>
1new It.FJ(lt.payload.roundId,mt)),(0,M.W)(mt=>(0,et.of)(new It.Io(mt))))))),this.loadEvaluationOffers$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(It.gy),(0,U.H)(lt=>this.evaluationToolService.getEvaluationOffersOverviewByRoundId(lt.payload.roundId).pipe((0,ot.T)(mt=>new It.fV(mt)),(0,M.W)(mt=>(0,et.of)(new It.QX(mt))))))),this.updateOfferInvitation$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(It.$5),(0,ot.T)(lt=>lt.payload),(0,U.H)(lt=>this.evaluationToolService.updateOfferInvitation(lt.updateOfferInvitation.OfferInvitationState).pipe((0,Y.Z)(mt=>{lt.updateOfferInvitation.OfferInvitationState.OfferInvitationVersion=mt,this.notificationsService.open(`${lt.updateOfferInvitation.SnackbarKeyword}_success`,"",{});const gt=[new It.Qu(lt.updateOfferInvitation.OfferInvitationState,lt.updateOfferInvitation.OfferId)];return lt.updateOfferInvitation.ShouldReloadOffers&>.push(new It.kC(lt.tenderProcessRoundId)),gt}),(0,M.W)(mt=>(this.notificationsService.open(`${lt.updateOfferInvitation.SnackbarKeyword}_error`,"",{},mt),(0,et.of)(new It.Nr(mt)))))))),this.updateReasonOfDisqualification$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(It.fp),(0,ot.T)(lt=>lt.payload),(0,U.H)(lt=>this.evaluationToolService.updateReasonOfDisqualification(lt.reasonOfDisqualification,lt.legalDisqualifyReasonId,lt.offerInvitationId,lt.offerInvitationVersion).pipe((0,ot.T)(mt=>(this.notificationsService.open("str_Tender_evaluation_edit_reason_of_disqualification_success","",{}),new It.hG(lt.reasonOfDisqualification,lt.legalDisqualifyReasonId,mt,lt.offerId))),(0,M.W)(mt=>(this.notificationsService.open("str_Tender_evaluation_edit_reason_of_disqualification_error","",{},mt),(0,et.of)(new It.Q9(mt)))))))),this.loadOffersEvaluationProcess$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(It.y),(0,U.H)(lt=>this.evaluationToolService.getOffersEvaluationProcessByRoundId(lt.payload.roundId).pipe((0,ot.T)(mt=>
1new It.o7(lt.payload.roundId,mt)),(0,M.W)(mt=>(0,et.of)(new It.$p(mt))))))),this.getEvaluationScoresBarChart$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(It.pN),(0,Kn.B)(300),(0,U.H)(lt=>{const mt=this.actions$.pipe((0,kt.gp)(It.pN),(0,Jn.i)(1));return this.evaluationToolService.getEvaluationScoresBarChart(lt.payload.evaluationBoxId,lt.payload.parentSurveyLevel?lt.payload.parentSurveyLevel.SurveyLevelId:null,lt.payload.offerIds).pipe((0,Zn.Q)(mt),(0,Y.Z)(gt=>{const St=[];let At=lt.payload.loadMoreIfNeeded;return lt.payload.loadMoreIfNeeded&&null===lt.payload.parentSurveyLevel.SurveyLevelId&&(gt.SurveyLevels.length||gt.SurveyQuestions.length)&&1===gt.SurveyLevels.length&&0===gt.SurveyQuestions.length?St.push(new It.rL(lt.payload.evaluationBoxId,gt.SurveyLevels[0],lt.payload.offerIds,!1)):At=!1,St.push(new It.sn(gt,lt.payload.parentSurveyLevel,At)),St}),(0,M.W)(gt=>(0,et.of)(new It.FO(gt))))}))),this.reloadEvaluationOffersOnOpenOffersSuccess$=(0,kt.EH)(()=>this.actions$.pipe((0,kt.gp)(eo.zt),(0,to.E)(this.tenderStoreService.getCurrentTenderProcessRound()),(0,U.H)(([lt,mt])=>lt.payload.shouldReloadEvaluationOffers&&mt?(0,et.of)(new It.kC(mt.Id)):z.w)))}static{this.\u0275fac=function(p){return new(p||m)(t.KVO(kt.En),t.KVO(H),t.KVO(c.I2c),t.KVO(c.$gx))}}static{this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac})}}return m})();var no=ut(5299);let oo=(()=>{class m{static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275mod=t.$C({type:m})}static{this.\u0275inj=t.G2t({imports:[Ot.Gg,xe.f]})}}return m})();var ro=ut(34777),so=ut(94109);let ao=(()=>{class m{static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275mod=t.$C({type:m})}static{this.\u0275inj=t.G2t({imports:[Ot.Gg]})}}return m})();var lo=ut(96335);let co=(()=>{class m{static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275mod=t.$C({type:m})}static{this.\u0275inj=t.G2t({imports:[Ot.Gg]})}}return m})(),ho=(()=>{class m{static{this.\u0275fac=function(p){return new(p||m)}}static{this.\u0275mod=t.$C({type:m})}static{this.\u0275inj=t.G2t({providers:[rt.h,H,ro.W],imports:[Ot.Gg,$n,Xn.CR,zn.p,Wn.h,Yn.i,Vn.y,Un.y,qn.P,xe.f,Qn.J,no.l,co,lo.u,Hn.f,so.d,oo,ao,kt.Vm.forFeature([io])]})}}return m})()},21264:function(Gt,Nt,ut){var Ot,Mt,_t,kt=ut(97466);Mt=typeof window<"u"?window:this,_t=function(Mt){function _t(z,q,tt,nt){z.hasOwnProperty(q)||(z[q]=nt.apply(null,tt))}var et={};return _t(et,"Core/Globals.js",[],function(){var z=typeof Mt<"u"?Mt:typeof window<"u"?window:{},q=z.document,tt=z.navigator&&z.navigator.userAgent||"",nt=q&&q.createElementNS&&!!q.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,ot=/(edge|msie|trident)/i.test(tt)&&!z.opera,st=-1!==tt.indexOf("Firefox"),U=-1!==tt.indexOf("Chrome"),Q=st&&4>parseInt(tt.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.2.2",deg2rad:2*Math.PI/360,doc:q,hasBidiBug:Q,hasTouch:!!z.TouchEvent,isMS:ot,isWebKit:-1!==tt.indexOf("AppleWebKit"),isFirefox:st,isChrome:U,isSafari:!U&&-1!==tt.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(tt),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:nt,win:z,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),_t(et,"Core/Utilities.js",[et["Core/Globals.js"]],function(z){function q(O,H,rt,ht){var dt=H?"Highcharts error":"Highcharts warning";32===O&&(O=dt+": Deprecated member");var ft=b(O),pt=ft?dt+" #"+O+": www.highcharts.com/errors/"+O+"/":O.toString();if(dt=function(){if(H)throw Error(pt);M.console&&-1===q.messages.indexOf(pt)&&kt.log(pt)},typeof ht<"u"){var vt="";ft&&(pt+="?"),$(ht,function(yt,Ct){vt+="\n - "+Ct+": "+yt,ft&&(pt+=encodeURI(Ct)+"="+encodeURI(yt))}),pt+=vt}rt?G(rt,"displayError",{code:O,message:pt,params:ht},dt):dt(),q.messages.push(pt)}function tt(){var O,H=arguments,rt={},ht=function(ft,pt){return"object"!=typeof ft&&(ft={}),$(pt,function(vt,yt){ft[yt]=!nt(vt,!0)||t(vt)||D(vt)?pt[yt]:ht(ft[yt]||{},vt)}),ft};!0===H[0]&&(rt=H[1],H=Array.prototype.slice.call(H,2));var dt=H.length;for(O=0;O<dt;O++)rt=ht(rt,H[O]);return rt}function nt(O,H){return!(!O||"object"!=typeof O||H&&L(O))}function ot(O,H,rt){var ht;return E(H)?T(rt)?O.setAttribute(H,rt):O&&O.getAttribute&&((ht=O.getAttribute(H))||"class"!==
1H||(ht=O.getAttribute(H+"Name"))):$(H,function(dt,ft){O.setAttribute(ft,dt)}),ht}function st(){for(var O=arguments,H=O.length,rt=0;rt<H;rt++){var ht=O[rt];if(typeof ht<"u"&&null!==ht)return ht}}function U(O,H){if(!O)return H;var rt=O.split(".").reverse();if(1===rt.length)return H[O];for(O=rt.pop();typeof O<"u"&&typeof H<"u"&&null!==H;)H=H[O],O=rt.pop();return H}z.timers=[];var Q=z.charts,Y=z.doc,M=z.win;(q||(q={})).messages=[],z.error=q,z.merge=tt;var R=z.pInt=function(O,H){return parseInt(O,H||10)},E=z.isString=function(O){return"string"==typeof O},L=z.isArray=function(O){return"[object Array]"===(O=Object.prototype.toString.call(O))||"[object Array Iterator]"===O};z.isObject=nt;var D=z.isDOMElement=function(O){return nt(O)&&"number"==typeof O.nodeType},t=z.isClass=function(O){var H=O&&O.constructor;return!(!nt(O,!0)||D(O)||!H||!H.name||"Object"===H.name)},b=z.isNumber=function(O){return"number"==typeof O&&!isNaN(O)&&1/0>O&&-1/0<O},P=z.erase=function(O,H){for(var rt=O.length;rt--;)if(O[rt]===H){O.splice(rt,1);break}},T=z.defined=function(O){return typeof O<"u"&&null!==O};z.attr=ot;var x=z.splat=function(O){return L(O)?O:[O]},c=z.syncTimeout=function(O,H,rt){return 0<H?setTimeout(O,H,rt):(O.call(0,rt),-1)},h=z.clearTimeout=function(O){T(O)&&clearTimeout(O)},s=z.extend=function(O,H){var rt;for(rt in O||(O={}),H)O[rt]=H[rt];return O};z.pick=st;var r=z.css=function(O,H){z.isMS&&!z.svg&&H&&typeof H.opacity<"u"&&(H.filter="alpha(opacity="+100*H.opacity+")"),s(O.style,H)},f=z.createElement=function(O,H,rt,ht,dt){return O=Y.createElement(O),H&&s(O,H),dt&&r(O,{padding:"0",border:"none",margin:"0"}),rt&&r(O,rt),ht&&ht.appendChild(O),O},d=z.extendClass=function(O,H){var rt=function(){};return rt.prototype=new O,s(rt.prototype,H),rt},y=z.pad=function(O,H,rt){return Array((H||2)+1-String(O).replace("-","").length).join(rt||"0")+O},_=z.relativeLength=function(O,H,rt){return/%$/.test(O)?H*parseFloat(O)/100+(rt||0):parseFloat(O)},S=z.wrap=function(O,H,rt){var ht=O[H];O[H]=function(){var dt=Array.prototype.slice.call(arguments),ft=arguments,pt=this;return pt.proceed=function(){ht.apply(pt,arguments.length?arguments:ft)},dt.unshift(ht),dt=rt.apply(this,dt),pt.proceed=null,dt}},B=z.format=function(O,H,rt){var ht="{",dt=!1,ft=[],pt=/f$/,vt=/\.([0-9])/,yt=z.defaultOptions.lang,Ct=rt&&rt.time||z.time;for(rt=rt&&rt.numberFormatter||u;O;){var xt=O.indexOf(ht);if(-1===xt)break;var bt=O.slice(0,xt);if(dt){if(ht=U((bt=bt.split(":")).shift()||"",H),bt.length&&"number"==typeof ht)if(bt=bt.join(":"),pt.test(bt)){var Rt=parseInt((bt.match(vt)||["","-1"])[1],10);null!==ht&&(ht=rt(ht,Rt,yt.decimalPoint,-1<bt.indexOf(",")?yt.thousandsSep:""))}else ht=Ct.dateFormat(bt,ht);ft.push(ht)}else ft.push(bt);O=O.slice(xt+1),ht=(dt=!dt)?"}":"{"}return ft.push(O),ft.join("")},V=z.getMagnitude=function(O){return Math.pow(10,Math.floor(Math.log(O)/Math.LN10))},K=z.normalizeTickInterval=function(O,H,rt,ht,dt){var ft=O,pt=O/(rt=st(rt,1));for(H||(H=dt?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===ht&&(1===rt?H=H.filter(function(vt){return vt%1==0}):.1>=rt&&(H=[1/rt]))),ht=0;ht<H.length&&(ft=H[ht],!(dt&&ft*rt>=O||!dt&&pt<=(H[ht]+(H[ht+1]||H[ht]))/2));ht++);return o(ft*rt,-Math.round(Math.log(.001)/Math.LN10))},F=z.stableSort=function(O,H){var ht,dt,rt=O.length;for(dt=0;dt<rt;dt++)O[dt].safeI=dt;for(O.sort(function(ft,pt){return 0===(ht=H(ft,pt))?ft.safeI-pt.safeI:ht}),dt=0;dt<rt;dt++)delete O[dt].safeI},k=z.arrayMin=function(O){for(var H=O.length,rt=O[0];H--;)O[H]<rt&&(rt=O[H]);return rt},a=z.arrayMax=function(O){for(var H=O.length,rt=O[0];H--;)O[H]>rt&&(rt=O[H]);return rt},e=z.destroyObjectProperties=function(O,H){$(O,function(rt,ht){rt&&rt!==H&&rt.destroy&&rt.destroy(),delete O[ht]})},n=z.discardElement=function(O){var H=z.garbageBin;H||(H=f("div")),O&&H.appendChild(O),H.innerHTML=""},o=z.correctFloat=function(O,H){return parseFloat(O.toPrecision(H||14))},l=z.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},u=z.numberFormat=function(O,H,rt,ht){H=+H;var dt=z.defaultOptions.lang,ft=((O=+O||0).toString().split(".")[1]||"").split("e")[0].length,pt=O.toString().split("e");if(-1===H)H=Math.min(ft,20);else if(b(H)){if(H&&pt[1]&&0>pt[1]){var vt=H+ +pt[1];0<=vt?(pt[0]=(+pt[0]).toExponential(vt).split("e")[0],H=vt):(pt[0]=pt[0].split(".")[0]||0,O=20>H?(pt[0]*Math.pow(10,pt[1])).toFixed(H):0,pt[1]=0)}}else H=2;var yt=(Math.abs(pt[1]?pt[0]:O)+Math.pow(10,-Math.max(H,ft)-1)).toFixed(H);return vt=3<(ft=String(R(yt))).length?ft.length%3:0,rt=st(rt,dt.decimalPoint),ht=st(ht,dt.thous
1andsSep),O=(0>O?"-":"")+(vt?ft.substr(0,vt)+ht:""),O+=ft.substr(vt).replace(/(\d{3})(?=\d)/g,"$1"+ht),H&&(O+=rt+yt.slice(-H)),pt[1]&&0!=+O&&(O+="e"+pt[1]),O};Math.easeInOutSine=function(O){return-.5*(Math.cos(Math.PI*O)-1)};var v=z.getStyle=function(O,H,rt){return"width"===H?(H=Math.min(O.offsetWidth,O.scrollWidth),(rt=O.getBoundingClientRect&&O.getBoundingClientRect().width)<H&&rt>=H-1&&(H=Math.floor(rt)),Math.max(0,H-z.getStyle(O,"padding-left")-z.getStyle(O,"padding-right"))):"height"===H?Math.max(0,Math.min(O.offsetHeight,O.scrollHeight)-z.getStyle(O,"padding-top")-z.getStyle(O,"padding-bottom")):(M.getComputedStyle||q(27,!0),(O=M.getComputedStyle(O,void 0))&&(O=O.getPropertyValue(H),st(rt,"opacity"!==H)&&(O=R(O))),O)},C=z.inArray=function(O,H,rt){return q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),H.indexOf(O,rt)},I=z.find=Array.prototype.find?function(O,H){return O.find(H)}:function(O,H){var rt,ht=O.length;for(rt=0;rt<ht;rt++)if(H(O[rt],rt))return O[rt]};z.keys=function(O){return q(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(O)};var j=z.offset=function(O){var H=Y.documentElement;return{top:(O=O.parentElement||O.parentNode?O.getBoundingClientRect():{top:0,left:0}).top+(M.pageYOffset||H.scrollTop)-(H.clientTop||0),left:O.left+(M.pageXOffset||H.scrollLeft)-(H.clientLeft||0)}},$=z.objectEach=function(O,H,rt){for(var ht in O)Object.hasOwnProperty.call(O,ht)&&H.call(rt||O[ht],O[ht],ht,O)};$({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(O,H){z[H]=function(rt){var ht;return q(32,!1,void 0,((ht={})["Highcharts."+H]="use Array."+O,ht)),Array.prototype[O].apply(rt,[].slice.call(arguments,1))}});var w,O,H,X=z.addEvent=function(O,H,rt,ht){void 0===ht&&(ht={});var dt=O.addEventListener||z.addEventListenerPolyfill,ft="function"==typeof O&&O.prototype?O.prototype.protoEvents=O.prototype.protoEvents||{}:O.hcEvents=O.hcEvents||{};return z.Point&&O instanceof z.Point&&O.series&&O.series.chart&&(O.series.chart.runTrackerClick=!0),dt&&dt.call(O,H,rt,!1),ft[H]||(ft[H]=[]),ft[H].push({fn:rt,order:"number"==typeof ht.order?ht.order:1/0}),ft[H].sort(function(pt,vt){return pt.order-vt.order}),function(){W(O,H,rt)}},W=z.removeEvent=function(O,H,rt){function ht(pt,vt){var yt=O.removeEventListener||z.removeEventListenerPolyfill;yt&&yt.call(O,pt,vt,!1)}function dt(pt){var vt;if(O.nodeName){if(H){var yt={};yt[H]=!0}else yt=pt;$(yt,function(Ct,xt){if(pt[xt])for(vt=pt[xt].length;vt--;)ht(xt,pt[xt][vt].fn)})}}var ft;["protoEvents","hcEvents"].forEach(function(pt,vt){var yt=(vt=vt?O:O.prototype)&&vt[pt];yt&&(H?(ft=yt[H]||[],rt?(yt[H]=ft.filter(function(Ct){return rt!==Ct.fn}),ht(H,rt)):(dt(yt),yt[H]=[])):(dt(yt),vt[pt]={}))})},G=z.fireEvent=function(O,H,rt,ht){var dt;if(rt=rt||{},Y.createEvent&&(O.dispatchEvent||O.fireEvent)){var ft=Y.createEvent("Events");ft.initEvent(H,!0,!0),s(ft,rt),O.dispatchEvent?O.dispatchEvent(ft):O.fireEvent(H,ft)}else rt.target||s(rt,{preventDefault:function(){rt.defaultPrevented=!0},target:O,type:H}),function(pt,vt){void 0===pt&&(pt=[]),void 0===vt&&(vt=[]);var yt=0,Ct=0,xt=pt.length+vt.length;for(dt=0;dt<xt;dt++)!1===(pt[yt]?vt[Ct]?pt[yt].order<=vt[Ct].order?pt[yt++]:vt[Ct++]:pt[yt++]:vt[Ct++]).fn.call(O,rt)&&rt.preventDefault()}(O.protoEvents&&O.protoEvents[H],O.hcEvents&&O.hcEvents[H]);ht&&!rt.defaultPrevented&&ht.call(O,rt)},A=z.uniqueKey=(O=Math.random().toString(36).substring(2,9)+"-",H=0,function(){return"highcharts-"+(w?"":O)+H++}),Z=z.useSerialIds=function(O){return w=st(O,w)},J=z.isFunction=function(O){return"function"==typeof O},it=z.getOptions=function(){return z.defaultOptions},ct=z.setOptions=function(O){return z.defaultOptions=tt(!0,z.defaultOptions,O),(O.time||O.global)&&z.time.update(tt(z.defaultOptions.global,z.defaultOptions.time,O.global,O.time)),z.defaultOptions};return M.jQuery&&(M.jQuery.fn.highcharts=function(){var O=[].slice.call(arguments);if(this[0])return O[0]?(new(z[E(O[0])?O.shift():"Chart"])(this[0],O[0],O[1]),this):Q[ot(this[0],"data-highcharts-chart")]}),{addEvent:X,arrayMax:a,arrayMin:k,attr:ot,clamp:function(O,H,rt){return O>H?O<rt?O:rt:H},clearTimeout:h,correctFloat:o,createElement:f,css:r,defined:T,destroyObjectProperties:e,discardElement:n,erase:P,error:q,extend:s,extendClass:d,find:I,fireEvent:G,format:B,getMagnitude:V,getNestedProperty:U,getOptions:it,getStyle:v,inArray:C,isArray:L,isClass:t,isDOMElement:D,isFunction:J,isNumber:b,isObject:nt,isString:E,merge:tt,normalizeTickInterval:K,numberFormat:u,objectEach:$,offset:j,pad:y,pick:st,pInt:R,relativeLength:_,removeEvent:W,setOptions:ct,splat:x,stableSort:F,syncTimeout:c,timeUnits:l,uniqueKey:A,useSerialIds:Z,wrap:S}}),_t(et,"Core/Color/Color.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.isNumber,nt=q.merge,ot=q.pInt;return q=function(){function st(U){return this.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(Q){return[ot(Q[1]),ot(Q[2]),ot(Q[3]),parseFloat(Q[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(Q){return[ot(Q[1]),ot(Q[2]),ot(Q[3]),1]}}],this.rgba=[],z.Color!==st?new z.Color(U):this instanceof st?void this.init(U):new st(U)}return st.parse=function(U){return new st(U)},st.prototype.init=function(U){var Q,Y;if((this.input=U=st.names[U&&U.toLowerCase?U.toLowerCase():""]||U)&&U.stops)this.stops=U.stops.map(function(E){return new st(E[1])});else{if(U&&U.charAt&&"#"===U.charAt()){var M=U.length;
1U=parseInt(U.substr(1),16),7===M?Q=[(16711680&U)>>16,(65280&U)>>8,255&U,1]:4===M&&(Q=[(3840&U)>>4|(3840&U)>>8,(240&U)>>4|240&U,(15&U)<<4|15&U,1])}if(!Q)for(Y=this.parsers.length;Y--&&!Q;){var R=this.parsers[Y];(M=R.regex.exec(U))&&(Q=R.parse(M))}}this.rgba=Q||[]},st.prototype.get=function(U){var Q=this.input,Y=this.rgba;if(typeof this.stops<"u"){var M=nt(Q);M.stops=[].concat(M.stops),this.stops.forEach(function(R,E){M.stops[E]=[M.stops[E][0],R.get(U)]})}else M=Y&&tt(Y[0])?"rgb"===U||!U&&1===Y[3]?"rgb("+Y[0]+","+Y[1]+","+Y[2]+")":"a"===U?Y[3]:"rgba("+Y.join(",")+")":Q;return M},st.prototype.brighten=function(U){var Q,Y=this.rgba;if(this.stops)this.stops.forEach(function(M){M.brighten(U)});else if(tt(U)&&0!==U)for(Q=0;3>Q;Q++)Y[Q]+=ot(255*U),0>Y[Q]&&(Y[Q]=0),255<Y[Q]&&(Y[Q]=255);return this},st.prototype.setOpacity=function(U){return this.rgba[3]=U,this},st.prototype.tweenTo=function(U,Q){var Y=this.rgba,M=U.rgba;return M.length&&Y&&Y.length?((U=1!==M[3]||1!==Y[3])?"rgba(":"rgb(")+Math.round(M[0]+(Y[0]-M[0])*(1-Q))+","+Math.round(M[1]+(Y[1]-M[1])*(1-Q))+","+Math.round(M[2]+(Y[2]-M[2])*(1-Q))+(U?","+(M[3]+(Y[3]-M[3])*(1-Q)):"")+")":U.input||"none"},st.names={white:"#ffffff",black:"#000000"},st}(),z.Color=q,z.color=q.parse,q}),_t(et,"Core/Animation/Fx.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=z.win,nt=q.isNumber,ot=q.objectEach;return q=function(){function st(U,Q,Y){this.pos=NaN,this.options=Q,this.elem=U,this.prop=Y}return st.prototype.dSetter=function(){var U=this.paths,Q=U&&U[0];U=U&&U[1];var Y=[],M=this.now||0;if(1!==M&&Q&&U)if(Q.length===U.length&&1>M)for(var R=0;R<U.length;R++){for(var E=Q[R],L=U[R],D=[],t=0;t<L.length;t++){var b=E[t],P=L[t];D[t]="number"==typeof b&&"number"==typeof P&&("A"!==L[0]||4!==t&&5!==t)?b+M*(P-b):P}Y.push(D)}else Y=U;else Y=this.toD||[];this.elem.attr("d",Y,void 0,!0)},st.prototype.update=function(){var U=this.elem,Q=this.prop,Y=this.now,M=this.options.step;this[Q+"Setter"]?this[Q+"Setter"]():U.attr?U.element&&U.attr(Q,Y,null,!0):U.style[Q]=Y+this.unit,M&&M.call(U,Y,this)},st.prototype.run=function(U,Q,Y){var M=this,R=M.options,E=function(t){return!E.stopped&&M.step(t)},L=tt.requestAnimationFrame||function(t){setTimeout(t,13)},D=function(){for(var t=0;t<z.timers.length;t++)z.timers[t]()||z.timers.splice(t--,1);z.timers.length&&L(D)};U!==Q||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=U,this.end=Q,this.unit=Y,this.now=this.start,this.pos=0,E.elem=this.elem,E.prop=this.prop,E()&&1===z.timers.push(E)&&L(D)):(delete R.curAnim[this.prop],R.complete&&0===Object.keys(R.curAnim).length&&R.complete.call(this.elem))},st.prototype.step=function(U){var Q=+new Date,Y=this.options,M=this.elem,R=Y.complete,E=Y.duration,L=Y.curAnim;if(M.attr&&!M.element)U=!1;else if(U||Q>=E+this.startTime){this.now=this.end,this.pos=1,this.update();var D=L[this.prop]=!0;ot(L,function(t){!0!==t&&(D=!1)}),D&&R&&R.call(M),U=!1}else this.pos=Y.easing((Q-this.startTime)/E),this.now=this.start+(this.end-this.start)*this.pos,this.update(),U=!0;return U},st.prototype.initPath=function(U,Q,Y){function M(x,c){for(;x.length<T;){var h=x[0],s=c[T-x.length];s&&"M"===h[0]&&(x[0]="C"===s[0]?["C",h[1],h[2],h[1],h[2],h[1],h[2]]:["L",h[1],h[2]]),x.unshift(h),D&&x.push(x[x.length-1])}}function R(x,c){for(;x.length<T;)if("C"===(c=x[x.length/t-1].slice())[0]&&(c[1]=c[5],c[2]=c[6]),D){var h=x[x.length/t].slice();x.splice(x.length/2,0,c,h)}else x.push(c)}var E=U.startX,L=U.endX;Q=Q&&Q.slice(),Y=Y.slice();var D=U.isArea,t=D?2:1;if(!Q)return[Y,Y];if(E&&L){for(U=0;U<E.length;U++){if(E[U]===L[0]){var b=U;break}if(E[0]===L[L.length-E.length+U]){b=U;var P=!0;break}if(E[E.length-1]===L[L.length-E.length+U]){b=E.length-U;break}}typeof b>"u"&&(Q=[])}if(Q.length&&nt(b)){var T=Y.length+b*t;P?(M(Q,Y),R(Y,Q)):(M(Y,Q),R(Q,Y))}return[Q,Y]},st.prototype.fillSetter=function(){st.prototype.strokeSetter.apply(this,arguments)},st.prototype.strokeSetter=function(){this.elem.attr(this.prop,z.color(this.start).tweenTo(z.color(this.end),this.pos),null,!0)},st}(),z.Fx=q}
1),_t(et,"Core/Animation/AnimationUtilities.js",[et["Core/Animation/Fx.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt){var nt=tt.defined,ot=tt.getStyle,st=tt.isArray,U=tt.isNumber,Q=tt.isObject,Y=tt.merge,M=tt.objectEach,R=tt.pick;tt=q.setAnimation=function(b,P){P.renderer.globalAnimation=R(b,P.options.chart.animation,!0)};var E=q.animObject=function(b){return Q(b)?q.merge({duration:500,defer:0},b):{duration:b?500:0,defer:0}},L=q.getDeferredAnimation=function(b,P,T){var x=E(P),c=0,h=0;return(T?[T]:b.series).forEach(function(s){s=E(s.options.animation),c=P&&nt(P.defer)?x.defer:Math.max(c,s.duration+s.defer),h=Math.min(x.duration,s.duration)}),b.renderer.forExport&&(c=0),{defer:Math.max(0,c-h),duration:Math.min(c,h)}},D=q.animate=function(b,P,T){var x,h,s,c="";if(!Q(T)){var r=arguments;T={duration:r[2],easing:r[3],complete:r[4]}}U(T.duration)||(T.duration=400),T.easing="function"==typeof T.easing?T.easing:Math[T.easing]||Math.easeInOutSine,T.curAnim=Y(P),M(P,function(f,d){t(b,d),s=new z(b,T,d),h=null,"d"===d&&st(P.d)?(s.paths=s.initPath(b,b.pathArray,P.d),s.toD=P.d,x=0,h=1):b.attr?x=b.attr(d):(x=parseFloat(ot(b,d))||0,"opacity"!==d&&(c="px")),h||(h=f),h&&h.match&&h.match("px")&&(h=h.replace(/px/g,"")),s.run(x,h,c)})},t=q.stop=function(b,P){for(var T=q.timers.length;T--;)q.timers[T].elem!==b||P&&P!==q.timers[T].prop||(q.timers[T].stopped=!0)};return{animate:D,animObject:E,getDeferredAnimation:L,setAnimation:tt,stop:t}}),_t(et,"Core/Renderer/SVG/SVGElement.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt,nt){var ot=z.animate,st=z.animObject,U=z.stop,Q=tt.deg2rad,Y=tt.doc,M=tt.hasTouch,R=tt.isFirefox,E=tt.noop,L=tt.svg,D=tt.SVG_NS,t=tt.win,b=nt.attr,P=nt.createElement,T=nt.css,x=nt.defined,c=nt.erase,h=nt.extend,s=nt.fireEvent,r=nt.isArray,f=nt.isFunction,d=nt.isNumber,y=nt.isString,_=nt.merge,S=nt.objectEach,B=nt.pick,V=nt.pInt,K=nt.syncTimeout,F=nt.uniqueKey;return z=function(){function k(){this.height=this.element=void 0,this.opacity=1,this.renderer=void 0,this.SVG_NS=D,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY roun
1ded".split(" "),this.width=void 0}return k.prototype._defaultGetter=function(a){return a=B(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},k.prototype._defaultSetter=function(a,e,n){n.setAttribute(e,a)},k.prototype.add=function(a){var e=this.renderer,n=this.element;if(a&&(this.parentGroup=a),this.parentInverted=a&&a.inverted,typeof this.textStr<"u"&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var o=this.zIndexSetter();return o||(a?a.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},k.prototype.addClass=function(a,e){var n=e?"":this.attr("class")||"";return(a=(a||"").split(/ /g).reduce(function(o,l){return-1===n.indexOf(l)&&o.push(l),o},n?[n]:[]).join(" "))!==n&&this.attr("class",a),this},k.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},k.prototype.align=function(a,e,n){var o,C,I,l={},u=this.renderer,v=u.alignedObjects;a?(this.alignOptions=a,this.alignByTranslate=e,(!n||y(n))&&(this.alignTo=o=n||"renderer",c(v,this),v.push(this),n=void 0)):(a=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),n=B(n,u[o],u),u=a.verticalAlign,v=(n.x||0)+(a.x||0);var j=(n.y||0)+(a.y||0);return"right"===(o=a.align)?C=1:"center"===o&&(C=2),C&&(v+=(n.width-(a.width||0))/C),l[e?"translateX":"x"]=Math.round(v),"bottom"===u?I=1:"middle"===u&&(I=2),I&&(j+=(n.height-(a.height||0))/I),l[e?"translateY":"y"]=Math.round(j),this[this.placed?"animate":"attr"](l),this.placed=!0,this.alignAttr=l,this},k.prototype.alignSetter=function(a){var e={left:"start",center:"middle",right:"end"};e[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",e[a]))},k.prototype.animate=function(a,e,n){var o=this,l=st(B(e,this.renderer.globalAnimation,!0));return e=l.defer,B(Y.hidden,Y.msHidden,Y.webkitHidden,!1)&&(l.duration=0),0!==l.duration?(n&&(l.complete=n),K(function(){o.element&&ot(o,a,l)},e)):(this.attr(a,void 0,n),S(a,function(u,v){l.step&&l.step.call(this,u,{prop:v,pos:1})},this)),this},k.prototype.applyTextOutline=function(a){var n,e=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var o=(a=a.split(" "))[a.length-1];if((n=a[0])&&"none"!==n&&tt.svg){this.fakeTS=!0,a=[].slice.call(e.getElementsByTagName("tspan")),this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(v,C,I){return 2*C+I}),this.removeTextOutline(a);var l=!!e.textContent&&/^[\u0591-\u065F\u066A-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(e.textContent),u=e.firstChild;a.forEach(function(v,C){0===C&&(v.setAttribute("x",e.getAttribute("x")),C=e.getAttribute("y"),v.setAttribute("y",C||0),null===C&&e.setAttribute("y",0)),C=v.cloneNode(!0),b(l&&!R?v:C,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":n,"stroke-linejoin":"round"}),e.insertBefore(C,u)}),l&&R&&a[0]&&((a=a[0].cloneNode(!0)).textContent=" ",e.insertBefore(a,u))}},k.prototype.attr=function(a,e,n,o){var u,C,I,l=this.element,v=this,j=this.symbolCustomAttribs;if("string"==typeof a&&typeof e<"u"){var $=a;(a={})[$]=e}return"string"==typeof a?v=(this[a+"Getter"]||this._defaultGetter).call(this,a,l):(S(a,function(X,W){C=!1,o||U(this,W),this.symbolName&&-1!==j.indexOf(W)&&(u||(this.symbolAttr(a),u=!0),C=!0),!this.rotation||"x"!==W&&"y"!==W||(this.doTransform=!0),C||((I=this[W+"Setter"]||this._defaultSetter).call(this,X,W,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(W)&&this.updateShadows(W,X,I))},this),this.afterSetters()),n&&n.call(this),v},k.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},k.prototype.crisp=function(a,e){e=e||a.strokeWidth||0;var n=Math.round(e)%2/2;return a.x=Math.floor(a.x||this.x||0)+n,a.y=Math.floor(a.y||this.y||0)+n,a.width=Math.floor((a.width||this.width||0)-2*n),a.height=Math.floor((a.height||this.height||0)-2*n),x(a.strokeWidth)&&(a.strokeWidth=e),a},k.prototype.complexColor=function(a,e,n){var l,u,v,C,I,j,$,X,W,G,A,o=this.renderer,w=[];s(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?u="radialGradient":a.linearGradient&&(u="linearGradient"),u){if(I=o.gradients,j=a.stops,W=n.radialReference,r(v=a[u])&&(a[u]=v={x1:v[0],y1:v[1],x2:v[2],y2:v[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===u&&W&&!x(v.gradientUnits)&&(v=_(v,o.getRadialAttr(W,C=v),{gradientUnits:"userSpaceOnUse"})),S(v,function(J,it){"id"!==it&&w.push(it,J)}),S(j,function(J){w.push(J)}),w=w.join(","),I[w])G=I[w].attr("id");else{v.id=G=F();var Z=I[w]=o.createElement(u).attr(v).add(o.defs);
1Z.radAttr=C,Z.stops=[],j.forEach(function(J){0===J[1].indexOf("rgba")?(l=q.parse(J[1]),$=l.get("rgb"),X=l.get("a")):($=J[1],X=1),J=o.createElement("stop").attr({offset:J[0],"stop-color":$,"stop-opacity":X}).add(Z),Z.stops.push(J)})}n.setAttribute(e,A="url("+o.url+"#"+G+")"),n.gradient=w,a.toString=function(){return A}}})},k.prototype.css=function(a){var e=this.styles,n={},o=this.element,l="",u=!e,v=["textOutline","textOverflow","width"];if(a&&a.color&&(a.fill=a.color),e&&S(a,function(j,$){e&&e[$]!==j&&(n[$]=j,u=!0)}),u){if(e&&(a=h(e,n)),a)if(null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&a.width)var C=this.textWidth=V(a.width);if(this.styles=a,C&&!L&&this.renderer.forExport&&delete a.width,o.namespaceURI===this.SVG_NS){var I=function(j,$){return"-"+$.toLowerCase()};S(a,function(j,$){-1===v.indexOf($)&&(l+=$.replace(/([A-Z])/g,I)+":"+j+";")}),l&&b(o,"style",l)}else T(o,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))}return this},k.prototype.dashstyleSetter=function(a){var e=this["stroke-width"];if("inherit"===e&&(e=1),a=a&&a.toLowerCase()){var n=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=n.length;a--;)n[a]=""+V(n[a])*B(e,NaN);a=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},k.prototype.destroy=function(){var a=this,e=a.element||{},n=a.renderer,o=n.isSVG&&"SPAN"===e.nodeName&&a.parentGroup||void 0,l=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,U(a),a.clipPath&&l){var u=a.clipPath;[].forEach.call(l.querySelectorAll("[clip-path],[CLIP-PATH]"),function(v){-1<v.getAttribute("clip-path").indexOf(u.element.id)&&v.removeAttribute("clip-path")}),a.clipPath=u.destroy()}if(a.stops){for(l=0;l<a.stops.length;l++)a.stops[l].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(e),n.styledMode||a.destroyShadows();o&&o.div&&0===o.div.childNodes.length;)e=o.parentGroup,a.safeRemoveChild(o.div),delete o.div,o=e;a.alignTo&&c(n.alignedObjects,a),S(a,function(v,C){a[C]&&a[C].parentGroup===a&&a[C].destroy&&a[C].destroy(),delete a[C]})},k.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},k.prototype.destroyTextPath=function(a,e){var n=a.getElementsByTagName("text")[0];if(n){if(n.removeAttribute("dx"),n.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&n.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)n.appendChild(a[0]);n.removeChild(this.textPathWrapper.element)}}else(a.getAttribute("dx")||a.getAttribute("dy"))&&(a.removeAttribute("dx"),a.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},k.prototype.dSetter=function(a,e,n){r(a)&&("string"==typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(o,l,u){return l&&l.join?(u?o+" ":"")+l.join(" "):(l||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[e]!==a&&(n.setAttribute(e,a),this[e]=a)},k.prototype.fadeOut=function(a){var e=this;e.animate({opacity:0}
1,{duration:B(a,150),complete:function(){e.attr({y:-9999}).hide()}})},k.prototype.fillSetter=function(a,e,n){"string"==typeof a?n.setAttribute(e,a):a&&this.complexColor(a,e,n)},k.prototype.getBBox=function(a,e){var n,o=this.renderer,l=this.element,u=this.styles,v=this.textStr,C=o.cache,I=o.cacheKeys,j=l.namespaceURI===this.SVG_NS;e=B(e,this.rotation,0);var $=o.styledMode?l&&k.prototype.getStyle.call(l,"font-size"):u&&u.fontSize;if(x(v)){var X=v.toString();-1===X.indexOf("<")&&(X=X.replace(/[0-9]/g,"0")),X+=["",e,$,this.textWidth,u&&u.textOverflow,u&&u.fontWeight].join()}if(X&&!a&&(n=C[X]),!n){if(j||o.forExport){try{var W=this.fakeTS&&function(G){[].forEach.call(l.querySelectorAll(".highcharts-text-outline"),function(w){w.style.display=G})};f(W)&&W("none"),n=l.getBBox?h({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight},f(W)&&W("")}catch{}(!n||0>n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(o.isSVG&&(a=n.width,o=n.height,j&&(n.height=o={"11px,17":14,"13px,20":16}[u&&u.fontSize+","+Math.round(o)]||o),e&&(u=e*Q,n.width=Math.abs(o*Math.sin(u))+Math.abs(a*Math.cos(u)),n.height=Math.abs(o*Math.cos(u))+Math.abs(a*Math.sin(u)))),X&&0<n.height){for(;250<I.length;)delete C[I.shift()];C[X]||I.push(X),C[X]=n}}return n},k.prototype.getStyle=function(a){return t.getComputedStyle(this.element||this,"").getPropertyValue(a)},k.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)},k.prototype.hide=function(a){return this.attr(a?{y:-9999}:{visibility:"hidden"}),this},k.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},k.prototype.init=function(a,e){this.element="span"===e?P(e):Y.createElementNS(this.SVG_NS,e),this.renderer=a,s(this,"afterInit")},k.prototype.invert=function(a){return this.inverted=a,this.updateTransform(),this},k.prototype.on=function(a,e){var n,o,u,l=this.element;return M&&"click"===a?(l.ontouchstart=function(v){n=v.touches[0].clientX,o=v.touches[0].clientY},l.ontouchend=function(v){n&&4<=Math.sqrt(Math.pow(n-v.changedTouches[0].clientX,2)+Math.pow(o-v.changedTouches[0].clientY,2))||e.call(l,v),u=!0,!1!==v.cancelable&&v.preventDefault()},l.onclick=function(v){u||e.call(l,v)}):l["on"+a]=e,this},k.prototype.opacitySetter=function(a,e,n){this.opacity=a=Number(Number(a).toFixed(3)),n.setAttribute(e,a)},k.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(y(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())},k.prototype.removeTextOutline=function(a){for(var n,e=a.length;e--;)"highcharts-text-outline"===(n=a[e]).getAttribute("class")&&c(a,this.element.removeChild(n))},k.prototype.safeRemoveChild=function(a){var e=a.parentNode;e&&e.removeChild(a)}
1,k.prototype.setRadialReference=function(a){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(a,e.radAttr)),this},k.prototype.setTextPath=function(a,e){var n=this.element,o={textAnchor:"text-anchor"},l=!1,u=this.textPathWrapper,v=!u,C=(e=_(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e)).attributes;if(a&&e&&e.enabled){u&&null===u.element.parentNode?(v=!0,u=u.destroy()):u&&this.removeTextOutline.call(u.parentGroup,[].slice.call(n.getElementsByTagName("tspan"))),this.options&&this.options.padding&&(C.dx=-this.options.padding),u||(this.textPathWrapper=u=this.renderer.createElement("textPath"),l=!0);var I=u.element;if((e=a.element.getAttribute("id"))||a.element.setAttribute("id",e=F()),v)for(a=n.getElementsByTagName("tspan");a.length;)a[0].setAttribute("y",0),d(C.dx)&&a[0].setAttribute("x",-C.dx),I.appendChild(a[0]);l&&u&&u.add({element:this.text?this.text.element:n}),I.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+e),x(C.dy)&&(I.parentNode.setAttribute("dy",C.dy),delete C.dy),x(C.dx)&&(I.parentNode.setAttribute("dx",C.dx),delete C.dx),S(C,function(j,$){I.setAttribute(o[$]||$,j)}),n.removeAttribute("transform"),this.removeTextOutline.call(u,[].slice.call(n.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=E}else u&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(n,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},k.prototype.shadow=function(a,e,n){var I,o=[],l=this.element,u=!1,v=this.oldShadowOptions,C={color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:3};if(!0===a?I=C:"object"==typeof a&&(I=h(C,a)),I&&(I&&v&&S(I,function(G,w){G!==v[w]&&(u=!0)}),u&&this.destroyShadows(),this.oldShadowOptions=I),I){if(!this.shadows){var j=I.opacity/I.width,$=this.parentInverted?"translate(-1,-1)":"translate("+I.offsetX+", "+I.offsetY+")";for(C=1;C<=I.width;C++){var X=l.cloneNode(!1),W=2*I.width+1-2*C;b(X,{stroke:a.color||"#000000","stroke-opacity":j*C,"stroke-width":W,transform:$,fill:"none"}),X.setAttribute("class",(X.getAttribute("class")||"")+" highcharts-shadow"),n&&(b(X,"height",Math.max(b(X,"height")-W,0)),X.cutHeight=W),e?e.element.appendChild(X):l.parentNode&&l.parentNode.insertBefore(X,l),o.push(X)}this.shadows=o}}else this.destroyShadows();return this},k.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})},k.prototype.strokeSetter=function(a,e,n){this[e]=a,this.stroke&&this["stroke-width"]?(k.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===a&&this.hasStroke?(n.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},k.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),e=0;if(a.indexOf("px")===a.length-2)e=V(a);else if(""!==a){var n=Y.createElementNS(D,"rect");b(n,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(n),e=n.getBBox().width,n.parentNode.removeChild(n)}return e},k.prototype.symbolAttr=function(a){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(n){e[n]=B(a[n],e[n])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},k.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},k.prototype.titleSetter=function(a){var e=this.element.getElementsByTagName("title")[0];e||(e=Y.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(Y.createTextNode(String(B(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")))}
1,k.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},k.prototype.translate=function(a,e){return this.attr({translateX:a,translateY:e})},k.prototype.updateShadows=function(a,e,n){var o=this.shadows;if(o)for(var l=o.length;l--;)n.call(o[l],"height"===a?Math.max(e-(o[l].cutHeight||0),0):"d"===a?this.d:e,a,o[l])},k.prototype.updateTransform=function(){var a=this.translateX||0,e=this.translateY||0,n=this.scaleX,o=this.scaleY,l=this.inverted,u=this.rotation,v=this.matrix,C=this.element;l&&(a+=this.width,e+=this.height),a=["translate("+a+","+e+")"],x(v)&&a.push("matrix("+v.join(",")+")"),l?a.push("rotate(90) scale(-1,1)"):u&&a.push("rotate("+u+" "+B(this.rotationOriginX,C.getAttribute("x"),0)+" "+B(this.rotationOriginY,C.getAttribute("y")||0)+")"),(x(n)||x(o))&&a.push("scale("+B(n,1)+" "+B(o,1)+")"),a.length&&C.setAttribute("transform",a.join(" "))},k.prototype.visibilitySetter=function(a,e,n){"inherit"===a?n.removeAttribute(e):this[e]!==a&&n.setAttribute(e,a),this[e]=a},k.prototype.xGetter=function(a){return"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy")),this._defaultGetter(a)},k.prototype.zIndexSetter=function(a,e){var n=this.renderer,o=this.parentGroup,l=(o||n).element||n.box,u=this.element,v=!1;n=l===n.box;var I,C=this.added;if(x(a)?(u.setAttribute("data-z-index",a),this[e]===(a=+a)&&(C=!1)):x(this[e])&&u.removeAttribute("data-z-index"),this[e]=a,C){for((a=this.zIndex)&&o&&(o.handleZ=!0),I=(e=l.childNodes).length-1;0<=I&&!v;I--){C=(o=e[I]).getAttribute("data-z-index");var j=!x(C);o!==u&&(0>a&&j&&!n&&!I?(l.insertBefore(u,e[I]),v=!0):(V(C)<=a||j&&(!x(a)||0<=a))&&(l.insertBefore(u,e[I+1]||null),v=!0))}v||(l.insertBefore(u,e[n?3:0]||null),v=!0)}return v},k}(),z.prototype["stroke-widthSetter"]=z.prototype.strokeSetter,z.prototype.yGetter=z.prototype.xGetter,z.prototype.matrixSetter=z.prototype.rotationOriginXSetter=z.prototype.rotationOriginYSetter=z.prototype.rotationSetter=z.prototype.scaleXSetter=z.prototype.scaleYSetter=z.prototype.translateXSetter=z.prototype.translateYSetter=z.prototype.verticalAlignSetter=function(k,a){this[a]=k,this.doTransform=!0},tt.SVGElement=z,tt.SVGElement}),_t(et,"Core/Renderer/SVG/SVGLabel.js",[et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(z,q){var tt=this&&this.__extends||function(){var Y=function(M,R){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var D in L)L.hasOwnProperty(D)&&(E[D]=L[D])})(M,R)};return function(M,R){function E(){this.constructor=M}Y(M,R),M.prototype=null===R?Object.create(R):(E.prototype=R.prototype,new E)}}(),nt=q.defined,ot=q.extend,st=q.isNumber,U=q.merge,Q=q.removeEvent;return function(Y){function M(R,E,L,D,t,b,P,T,x,c){var h=Y.call(this)||this;if(h.init(R,"g"),h.textStr=E,h.x=L,h.y=D,h.anchorX=b,h.anchorY=P,h.baseline=x,h.className=c,"button"!==c&&h.addClass("highcharts-label"),c&&h.addClass("highcharts-"+c),h.text=R.text("",0,0,T).attr({zIndex:1}),"string"==typeof t){var s=/^url\((.*?)\)$/.test(t);(h.renderer.symbols[t]||s)&&(h.symbolKey=t)}return h.bBox=M.emptyBBox,h.padding=3,h.paddingLeft=0,h.baselineOffset=0,h.needsBox=R.styledMode||s,h.deferredAttr={},h.alignFactor=0,h}return tt(M,Y),M.prototype.alignSetter=function(R){(R={left:0,center:.5,right:1}[R])!==this.alignFactor&&(this.alignFactor=R,this.bBox&&st(this.xSetting)&&this.attr({x:this.xSetting}))},M.prototype.anchorXSetter=function(R,E){this.anchorX=R,this.boxAttr(E,Math.round(R)-this.getCrispAdjust()-this.xSetting)},M.prototype.anchorYSetter=function(R,E){this.anchorY=R,this.boxAttr(E,R-this.ySetting)},M.prototype.boxAttr=function(R,E){this.box?this.box.attr(R,E):this.deferredAttr[R]=E},M.prototype.css=function(R){if(R){var E={};R=U(R),M.textProps.forEach(function(D){typeof R[D]<"u"&&(E[D]=R[D],delete R[D])}),this.text.css(E);var L="fontSize"in E||"fontWeight"in E;("width"in E||L)&&(this.updateBoxSize(),L&&this.updateTextPadding())}return z.prototype.css.call(this,R)},M.prototype.destroy=function(){Q(this.element,"mouseenter"),Q(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),z.prototype.destroy.call(this)},M.prototype.fillSetter=function(R,E){R&&(this.needsBox=!0),this.fill=R,this.boxAttr(E,R)},M.prototype.getBBox=function(){var R=this.bBox,E=this.padding;return{width:R.width+2*E,height:R.height+2*E,x:R.x-E,y:R.y-E}},M.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},M.prototype.heightSetter=function(R){this.heightSetting=R},M.prototype.on=function(R,E){var L=this,D=L.text,t=D&&"SPAN"===D.element.tagName?D:void 0;
1if(t){var b=function(P){("mouseenter"===R||"mouseleave"===R)&&P.relatedTarget instanceof Element&&(L.element.contains(P.relatedTarget)||t.element.contains(P.relatedTarget))||E.call(L.element,P)};t.on(R,b)}return z.prototype.on.call(L,R,b||E),L},M.prototype.onAdd=function(){var R=this.textStr;this.text.add(this),this.attr({text:nt(R)?R:"",x:this.x,y:this.y}),this.box&&nt(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},M.prototype.paddingSetter=function(R){nt(R)&&R!==this.padding&&(this.padding=R,this.updateTextPadding())},M.prototype.paddingLeftSetter=function(R){nt(R)&&R!==this.paddingLeft&&(this.paddingLeft=R,this.updateTextPadding())},M.prototype.rSetter=function(R,E){this.boxAttr(E,R)},M.prototype.shadow=function(R){return R&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(R)),this},M.prototype.strokeSetter=function(R,E){this.stroke=R,this.boxAttr(E,R)},M.prototype["stroke-widthSetter"]=function(R,E){R&&(this.needsBox=!0),this["stroke-width"]=R,this.boxAttr(E,R)},M.prototype["text-alignSetter"]=function(R){this.textAlign=R},M.prototype.textSetter=function(R){typeof R<"u"&&this.text.attr({text:R}),this.updateBoxSize(),this.updateTextPadding()},M.prototype.updateBoxSize=function(){var R=this.text.element.style,E={},L=this.padding,D=this.paddingLeft,t=st(this.widthSetting)&&st(this.heightSetting)&&!this.textAlign||!nt(this.text.textStr)?M.emptyBBox:this.text.getBBox();this.width=(this.widthSetting||t.width||0)+2*L+D,this.height=(this.heightSetting||t.height||0)+2*L,this.baselineOffset=L+Math.min(this.renderer.fontMetrics(R&&R.fontSize,this.text).b,t.height||1/0),this.needsBox&&(this.box||((R=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),R.add(this),R=this.getCrispAdjust(),E.x=R,E.y=(this.baseline?-this.baselineOffset:0)+R),E.width=Math.round(this.width),E.height=Math.round(this.height),this.box.attr(ot(E,this.deferredAttr)),this.deferredAttr={}),this.bBox=t},M.prototype.updateTextPadding=function(){var R=this.text,E=this.baseline?0:this.baselineOffset,L=this.paddingLeft+this.padding;nt(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(L+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(L!==R.x||E!==R.y)&&(R.attr("x",L),R.hasBoxWidthChanged&&(this.bBox=R.getBBox(!0),this.updateBoxSize()),typeof E<"u"&&R.attr("y",E)),R.x=L,R.y=E},M.prototype.widthSetter=function(R){this.widthSetting=st(R)?R:void 0},M.prototype.xSetter=function(R){this.x=R,this.alignFactor&&(R-=this.alignFactor*((this.widthSetting||this.bBox.width)+2*this.padding),this["forceAnimate:x"]=!0),this.xSetting=Math.round(R),this.attr("translateX",this.xSetting)},M.prototype.ySetter=function(R){this.ySetting=this.y=Math.round(R),this.attr("translateY",this.ySetting)},M.emptyBBox={width:0,height:0,x:0,y:0},M.textProps="color cursor direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),M}(z)}),_t(et,"Core/Renderer/SVG/SVGRenderer.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGLabel.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot){var st=ot.addEvent,U=ot.attr,Q=ot.createElement,Y=ot.css,M=ot.defined,R=ot.destroyObjectProperties,E=ot.extend,L=ot.isArray,D=ot.isNumber,t=ot.isObject,b=ot.isString,P=ot.merge,T=ot.objectEach,x=ot.pick,c=ot.pInt,h=ot.splat,s=ot.uniqueKey,r=q.charts,f=q.deg2rad,d=q.doc,y=q.isFirefox,_=q.isMS,S=q.isWebKit;ot=q.noop;var B=q.svg,V=q.SVG_NS,K=q.symbolSizes,F=q.win,k=function(){function a(e,n,o,l,u,v,C){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(e,n,o,l,u,v,C)}return a.prototype.init=function(e,n,o,l,u,v,C){var j,I=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});C||I.css(this.getStyle(l)),e.appendChild(l=I.element),U(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&U(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=I,this.alignedObjects=[],this.url=(y||S)&&d.getElementsByTagName("base").length?F.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 8.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=v,this.forExport=u,this.styledMode=C,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(n,o,!1),y&&e.getBoundingClientRect&&((n=function(){Y(e,{left
1:0,top:0}),j=e.getBoundingClientRect(),Y(e,{left:Math.ceil(j.left)-j.left+"px",top:Math.ceil(j.top)-j.top+"px"})})(),this.unSubPixelFix=st(F,"resize",n))},a.prototype.definition=function(e){var o=this;return function n(l,u){var v;return h(l).forEach(function(C){var I=o.createElement(C.tagName),j={};T(C,function($,X){"tagName"!==X&&"children"!==X&&"textContent"!==X&&(j[X]=$)}),I.attr(j),I.add(u||o.defs),C.textContent&&I.element.appendChild(d.createTextNode(C.textContent)),n(C.children||[],I),v=I}),v}(e)},a.prototype.getStyle=function(e){return this.style=E({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},a.prototype.setStyle=function(e){this.boxWrapper.css(this.getStyle(e))},a.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},a.prototype.destroy=function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),R(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},a.prototype.createElement=function(e){var n=new this.Element;return n.init(this,e),n},a.prototype.getRadialAttr=function(e,n){return{cx:e[0]-e[2]/2+n.cx*e[2],cy:e[1]-e[2]/2+n.cy*e[2],r:n.r*e[2]}},a.prototype.truncate=function(e,n,o,l,u,v,C){var $,J,I=this,j=e.rotation,X=l?1:0,W=(o||l).length,G=W,w=[],A=function(ct){n.firstChild&&n.removeChild(n.firstChild),ct&&n.appendChild(d.createTextNode(ct))},Z=function(ct,O){if(typeof w[O=O||ct]>"u")if(n.getSubStringLength)try{w[O]=u+n.getSubStringLength(0,l?O+1:O)}catch{}else I.getSpanWidth&&(A(C(o||l,ct)),w[O]=u+I.getSpanWidth(e,n));return w[O]};e.rotation=0;var it=Z(n.textContent.length);if(J=u+it>v){for(;X<=W;)G=Math.ceil((X+W)/2),l&&($=C(l,G)),it=Z(G,$&&$.length-1),X===W?X=W+1:it>v?W=G-1:X=G;0===W?A(""):o&&W===o.length-1||A($||C(o||l,G))}return l&&l.splice(0,G),e.actualWidth=it,e.rotation=j,J},a.prototype.buildText=function(e){var I,J,n=e.element,o=this,l=o.forExport,u=x(e.textStr,"").toString(),v=-1!==u.indexOf("<"),C=n.childNodes,j=U(n,"x"),$=e.styles,X=e.textWidth,W=$&&$.lineHeight,G=$&&$.textOutline,w=$&&"ellipsis"===$.textOverflow,A=$&&"nowrap"===$.whiteSpace,Z=$&&$.fontSize,it=C.length;$=X&&!e.added&&this.box;var ct=function(dt){var ft;return o.styledMode||(ft=/(px|em)$/.test(dt&&dt.style.fontSize)?dt.style.fontSize:Z||o.style.fontSize||12),W?c(W):o.fontMetrics(ft,dt.getAttribute("style")?dt:n).h},O=function(dt,ft){return T(o.escapes,function(pt,vt){ft&&-1!==ft.indexOf(pt)||(dt=dt.toString().replace(new RegExp(pt,"g"),vt))}),dt},H=function(dt,ft){var pt=dt.indexOf("<");if(-1!==(pt=(dt=dt.substring(pt,dt.indexOf(">")-pt)).indexOf(ft+"="))&&('"'===(ft=dt.charAt(pt=pt+ft.length+1))||"'"===ft))return(dt=dt.substring(pt+1)).substring(0,dt.indexOf(ft))},rt=/<br.*?>/g,ht=[u,w,A,W,G,Z,X].join();if(ht!==e.textCache){for(e.textCache=ht;it--;)n.removeChild(C[it]);v||G||w||X||-1!==u.indexOf(" ")&&(!A||rt.test(u))?($&&$.appendChild(n),(u=(u=v?(u=o.styledMode?u.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):u.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(rt):[u]).filter(function(dt){return""!==dt})).forEach(function(dt,ft){var pt=0,vt=0,yt=(dt=dt.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");yt.forEach(function(Ct){if(""!==Ct||1===yt.length){var Rt,Bt,xt={},bt=d.createElementNS(o.SVG_NS,"tspan");if((Rt=H(Ct,"class"))&&U(bt,"class",Rt),(Rt=H(Ct,"style"))&&(Rt=Rt.replace(/(;| |^)color([ :])/,"$1fill$2"),U(bt,"style",Rt)),(Bt=H(Ct,"href"))&&!l&&-1===Bt.split(":")[0].toLowerCase().indexOf("javascript")){var Et=d.createElementNS(o.SVG_NS,"a");U(Et,"href",Bt),U(bt,"class","highcharts-anchor"),Et.appendChild(bt),o.styledMode||Y(bt,{cursor:"pointer"})}if(" "!==(Ct=O(Ct.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(bt.appendChild(d.createTextNode(Ct)),pt?xt.dx=0:ft&&null!==j&&(xt.x=j),U(bt,xt),n.appendChild(Et||bt),
1!pt&&J&&(!B&&l&&Y(bt,{display:"block"}),U(bt,"dy",ct(bt))),X){var Pt=Ct.replace(/([^\^])-/g,"$1- ").split(" ");if(xt=!A&&(1<yt.length||ft||1<Pt.length),Et=0,Bt=ct(bt),w)I=o.truncate(e,bt,Ct,void 0,0,Math.max(0,X-parseInt(Z||12,10)),function(Ft,$t){return Ft.substring(0,$t)+"\u2026"});else if(xt)for(;Pt.length;)Pt.length&&!A&&0<Et&&(bt=d.createElementNS(V,"tspan"),U(bt,{dy:Bt,x:j}),Rt&&U(bt,"style",Rt),bt.appendChild(d.createTextNode(Pt.join(" ").replace(/- /g,"-"))),n.appendChild(bt)),o.truncate(e,bt,null,Pt,0===Et?vt:0,X,function(Ft,$t){return Pt.slice(0,$t).join(" ").replace(/- /g,"-")}),vt=e.actualWidth,Et++}pt++}}}),J=J||n.childNodes.length}),w&&I&&e.attr("title",O(e.textStr||"",["<",">"])),$&&$.removeChild(n),b(G)&&e.applyTextOutline&&e.applyTextOutline(G)):n.appendChild(d.createTextNode(O(u)))}},a.prototype.getContrast=function(e){return(e=z.parse(e).rgba)[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?"#000000":"#FFFFFF"},a.prototype.button=function(e,n,o,l,u,v,C,I,j,$){var X=this.label(e,n,o,j,void 0,void 0,$,void 0,"button"),W=0,G=this.styledMode;if(e=(u=u&&P(u))&&u.style||{},u&&u.style&&delete u.style,X.attr(P({padding:8,r:2},u)),!G){var w=(u=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:e},u)).style;delete u.style;var A=(v=P(u,{fill:"#e6e6e6"},v)).style;delete v.style;var Z=(C=P(u,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},C)).style;delete C.style;var J=(I=P(u,{style:{color:"#cccccc"}},I)).style;delete I.style}return st(X.element,_?"mouseover":"mouseenter",function(){3!==W&&X.setState(1)}),st(X.element,_?"mouseout":"mouseleave",function(){3!==W&&X.setState(W)}),X.setState=function(it){1!==it&&(X.state=W=it),X.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][it||0]),G||X.attr([u,v,C,I][it||0]).css([w,A,Z,J][it||0])},G||X.attr(u).css(E({cursor:"default"},w)),X.on("click",function(it){3!==W&&l.call(X,it)})},a.prototype.crispLine=function(e,n,o){void 0===o&&(o="round");var l=e[0],u=e[1];return l[1]===u[1]&&(l[1]=u[1]=Math[o](l[1])-n%2/2),l[2]===u[2]&&(l[2]=u[2]=Math[o](l[2])+n%2/2),e},a.prototype.path=function(e){var n=this.styledMode?{}:{fill:"none"};return L(e)?n.d=e:t(e)&&E(n,e),this.createElement("path").attr(n)},a.prototype.circle=function(e,n,o){return e=t(e)?e:typeof e>"u"?{}:{x:e,y:n,r:o},(n=this.createElement("circle")).xSetter=n.ySetter=function(l,u,v){v.setAttribute("c"+u,l)},n.attr(e)},a.prototype.arc=function(e,n,o,l,u,v){return t(e)?(n=(l=e).y,o=l.r,e=l.x):l={innerR:l,start:u,end:v},(e=this.symbol("arc",e,n,o,o,l)).r=o,e},a.prototype.rect=function(e,n,o,l,u,v){u=t(e)?e.r:u;var C=this.createElement("rect");return e=t(e)?e:typeof e>"u"?{}:{x:e,y:n,width:Math.max(o,0),height:Math.max(l,0)},this.styledMode||(typeof v<"u"&&(e.strokeWidth=v,e=C.crisp(e)),e.fill="none"),u&&(e.r=u),C.rSetter=function(I,j,$){C.r=I,U($,{rx:I,ry:I})},C.rGetter=function(){return C.r},C.attr(e)},a.prototype.setSize=function(e,n,o){var l=this.alignedObjects,u=l.length;for(this.width=e,this.height=n,this.boxWrapper.animate({width:e,height:n},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:x(o,!0)?void 0:0});u--;)l[u].align()},a.prototype.g=function(e){var n=this.createElement("g");return e?n.attr({class:"highcharts-"+e}):n},a.prototype.image=function(e,n,o,l,u,v){var C={preserveAspectRatio:"none"},I=function(X,W){X.setAttributeNS?X.setAttributeNS("http://www.w3.org/1999/xlink","href",W):X.setAttribute("hc-svg-href",W)},j=function(X){I($.element,e),v.call($,X)};1<arguments.length&&E(C,{x:n,y:o,width:l,height:u});var $=this.createElement("image").attr(C);return v?(I($.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),C=new F.Image,st(C,"load",j),C.src=e,C.complete&&j({})):I($.element,e),$},a.prototype.symbol=function(e,n,o,l,u,v){var W,C=this,I=/^url\((.*?)\)$/,j=I.test(e),$=!j&&(this.symbols[e]?e:"circle"),X=$&&this.symbols[$];if(X){"number"==typeof n&&(W=X.call(this.symbols,Math.round(n||0),Math.round(o||0),l||0,u||0,v));var G=this.path(W);C.styledMode||G.attr("fill","none"),E(G,{symbolName:$,x:n,y:o,width:l,height:u}),v&&E(G,v)}else if(j){var w=e.match(I)[1];(G=this.image(w)).imgwidth=x(K[w]&&K[w].width,v&&v.width),G.imgheight=x(K[w]&&K[w].height,v&&v.height);var A=function(){G.attr({width:G.width,height:G.height})};["width","height"].forEach(function(Z){G[Z+"Setter"]=function(J,it){var ct={},O=this["img"+it],H="width"===it?"translateX":"translateY";this[it]=J,M(O)&&(v&&"within"===v.backgroundSize&&this.width&&this.height&&(O=Math.round(O*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(it,O),this.alignByTranslate||(ct[H]=((this[it]||0)-O)/2,this.attr(ct)))}}),M(n)&&G.attr({x:n,y:o}),G.isImg=!0,M(G.imgwidth)&&M(G.imgheight)?A():(G.attr({width:0,height:0}),Q("img",{onload:function(){var Z=r[C.chartIndex];0===this.width&&(Y(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this)),K[w]={width:this.width,height:this.height},G.imgwidth=this.width,G.imgheight=this.height,G.element&&A(),this.parentNode&&this.parentNode.removeChild(this),C.imgCount--,!C.imgCount&&Z&&!Z.hasLoaded&&Z.onload()},src:w}),this.imgCount++)}return G},a.prototype.clipRect=function(e,n,o,l){var u=s()+"-",v=this.createElement("clipPath").attr({id:u}).add(this.defs);return(e=this.rect(e,n,o,l,0).add(v)).id=u,e.clipPath=v,e.count=0,e},a.prototype.text=function(e,n,o,l){var u={};return!l||!this.allowHTML&&this.forExport?(u.x=Math.round(n||0),o&&(u.y=Math.round(o)),M(e)&&(u.text=e),e=this.createElement("text").attr(u),l||(e.xSetter=function(v,C,I){var X,j=I.getElementsByTagName("tspan"),$=I.getAttribute(C);for(X=0;X<j.length;X++){var W=j[X];W.getAttribute(C)===$&&W.setAttribute(C,v)}I.setAttribute(C,v)}),e):this.html(e,n,o)},a.prototype.fontMetrics=function(e,n){return e=!this.styledMode&&/px/.test(e)||!F.getComputedStyle?e||n&&n.style&&n.style.fontSize||this.style&&this.style.fontSize:n&&tt.prototype.getStyle.call(n,"font-size"),{h:n=24>(e=/px/.test(e)?c(e):12)?e+3:Math.round(1.2*e),b:Math.round(.8*n),f:e}}
1,a.prototype.rotCorr=function(e,n,o){var l=e;return n&&o&&(l=Math.max(l*Math.cos(n*f),4)),{x:-e/3*Math.sin(n*f),y:l}},a.prototype.pathToSegments=function(e){for(var n=[],o=[],l={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},u=0;u<e.length;u++)b(o[0])&&D(e[u])&&o.length===l[o[0].toUpperCase()]&&e.splice(u,0,o[0].replace("M","L").replace("m","l")),"string"==typeof e[u]&&(o.length&&n.push(o.slice(0)),o.length=0),o.push(e[u]);return n.push(o.slice(0)),n},a.prototype.label=function(e,n,o,l,u,v,C,I,j){return new nt(this,e,n,o,l,u,v,C,I,j)},a}();return k.prototype.Element=tt,k.prototype.SVG_NS=V,k.prototype.draw=ot,k.prototype.escapes={"&":"&","<":"<",">":">","'":"'",'"':"""},k.prototype.symbols={circle:function(a,e,n,o){return this.arc(a+n/2,e+o/2,n/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(a,e,n,o){return[["M",a,e],["L",a+n,e],["L",a+n,e+o],["L",a,e+o],["Z"]]},triangle:function(a,e,n,o){return[["M",a+n/2,e],["L",a+n,e+o],["L",a,e+o],["Z"]]},"triangle-down":function(a,e,n,o){return[["M",a,e],["L",a+n,e],["L",a+n/2,e+o],["Z"]]},diamond:function(a,e,n,o){return[["M",a+n/2,e],["L",a+n,e+o/2],["L",a+n/2,e+o],["L",a,e+o/2],["Z"]]},arc:function(a,e,n,o,l){var u=[];if(l){var v=l.start||0,C=l.end||0,I=l.r||n;n=l.r||o||n;var j=.001>Math.abs(C-v-2*Math.PI);C-=.001,o=l.innerR,j=x(l.open,j);var $=Math.cos(v),X=Math.sin(v),W=Math.cos(C),G=Math.sin(C);v=x(l.longArc,.001>C-v-Math.PI?0:1),u.push(["M",a+I*$,e+n*X],["A",I,n,0,v,x(l.clockwise,1),a+I*W,e+n*G]),M(o)&&u.push(j?["M",a+o*W,e+o*G]:["L",a+o*W,e+o*G],["A",o,o,0,v,M(l.clockwise)?1-l.clockwise:0,a+o*$,e+o*X]),j||u.push(["Z"])}return u},callout:function(a,e,n,o,l){var u=Math.min(l&&l.r||0,n,o),v=u+6,C=l&&l.anchorX||0;l=l&&l.anchorY||0;var I=[["M",a+u,e],["L",a+n-u,e],["C",a+n,e,a+n,e,a+n,e+u],["L",a+n,e+o-u],["C",a+n,e+o,a+n,e+o,a+n-u,e+o],["L",a+u,e+o],["C",a,e+o,a,e+o,a,e+o-u],["L",a,e+u],["C",a,e,a,e,a+u,e]];return C&&C>n?l>e+v&&l<e+o-v?I.splice(3,1,["L",a+n,l-6],["L",a+n+6,l],["L",a+n,l+6],["L",a+n,e+o-u]):I.splice(3,1,["L",a+n,o/2],["L",C,l],["L",a+n,o/2],["L",a+n,e+o-u]):C&&0>C?l>e+v&&l<e+o-v?I.splice(7,1,["L",a,l+6],["L",a-6,l],["L",a,l-6],["L",a,e+u]):I.splice(7,1,["L",a,o/2],["L",C,l],["L",a,o/2],["L",a,e+u]):l&&l>o&&C>a+v&&C<a+n-v?I.splice(5,1,["L",C+6,e+o],["L",C,e+o+6],["L",C-6,e+o],["L",a+u,e+o]):l&&0>l&&C>a+v&&C<a+n-v&&I.splice(1,1,["L",C-6,e],["L",C,e-6],["L",C+6,e],["L",n-u,e]),I}},q.SVGRenderer=k,q.Renderer=q.SVGRenderer,q.Renderer}),_t(et,"Core/Renderer/HTML/HTMLElement.js",[et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(z,q,tt){var nt=tt.css,ot=tt.defined,st=tt.extend,U=tt.pick,Q=tt.pInt,Y=z.isFirefox;return st(q.prototype,{htmlCss:function(M){var R="SPAN"===this.element.tagName&&M&&"width"in M,E=U(R&&M.width,void 0);if(R){delete M.width,this.textWidth=E;var L=!0}return M&&"ellipsis"===M.textOverflow&&(M.whiteSpace="nowrap",M.overflow="hidden"),this.styles=st(this.styles,M),nt(this.element,M),L&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var M=this.element;return{x:M.offsetLeft,y:M.offsetTop,width:M.offsetWidth,height:M.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var M=this.renderer,R=this.element,E=this.translateX||0,L=this.translateY||0,D=this.x||0,t=this.y||0,b=this.textAlign||"left",P={left:0,center:.5,right:1}[b],T=this.styles,x=T&&T.whiteSpace;if(nt(R,{marginLeft:E,marginTop:L}),!M.styledMode&&this.shadows&&this.shadows.forEach(function(r){nt(r,{marginLeft:E+1,marginTop:L+1})}),this.inverted&&[].forEach.call(R.childNodes,function(r){M.invertChild(r,R)}),"SPAN"===R.tagName){T=this.rotation;var s,c=this.textWidth&&Q(this.textWidth),h=[T,b,R.innerHTML,this.textWidth,this.textAlign].join();(s=c!==this.oldTextWidth)&&!(s=c>this.oldTextWidth)&&((s=this.textPxLength)||(nt(R,{width:"",whiteSpace:x||"nowrap"}),s=R.offsetWidth),s=s>c),s&&(/[ \-]/.test(R.textContent||R.innerText)||"ellipsis"===R.style.textOverflow)?(nt(R,{width:c+"px",display:"block",whiteSpace:x||"normal"}),this.oldTextWidth=c,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,h!==this.cTT&&(x=M.fontMetrics(R.style.fontSize,R).b,!ot(T)||T===(this.oldRotation||0)&&b===this.oldAlign||this.setSpanRotation(T,P,x),this.get
1SpanCorrection(!ot(T)&&this.textPxLength||R.offsetWidth,x,P,T,b)),nt(R,{left:D+(this.xCorr||0)+"px",top:t+(this.yCorr||0)+"px"}),this.cTT=h,this.oldRotation=T,this.oldAlign=b}}else this.alignOnAdd=!0},setSpanRotation:function(M,R,E){var L={},D=this.renderer.getTransformKey();L[D]=L.transform="rotate("+M+"deg)",L[D+(Y?"Origin":"-origin")]=L.transformOrigin=100*R+"% "+E+"px",nt(this.element,L)},getSpanCorrection:function(M,R,E){this.xCorr=-M*E,this.yCorr=-R}}),q}),_t(et,"Core/Renderer/HTML/HTMLRenderer.js",[et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Utilities.js"]],function(z,q,tt,nt){var ot=z.isFirefox,st=z.isMS,U=z.isWebKit,Q=z.win,Y=nt.attr,M=nt.createElement,R=nt.extend,E=nt.pick;return R(tt.prototype,{getTransformKey:function(){return st&&!/Edge/.test(Q.navigator.userAgent)?"-ms-transform":U?"-webkit-transform":ot?"MozTransform":Q.opera?"-o-transform":""},html:function(L,D,t){var b=this.createElement("span"),P=b.element,T=b.renderer,x=T.isSVG,c=function(h,s){["opacity","visibility"].forEach(function(r){h[r+"Setter"]=function(f,d,y){var _=h.div?h.div.style:s;q.prototype[r+"Setter"].call(this,f,d,y),_&&(_[d]=f)}}),h.addedSetters=!0};return b.textSetter=function(h){h!==P.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=h,P.innerHTML=E(h,""),b.doTransform=!0},x&&c(b,b.element.style),b.xSetter=b.ySetter=b.alignSetter=b.rotationSetter=function(h,s){"align"===s?b.alignValue=b.textAlign=h:b[s]=h,b.doTransform=!0},b.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},b.attr({text:L,x:Math.round(D),y:Math.round(t)}).css({position:"absolute"}),T.styledMode||b.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),P.style.whiteSpace="nowrap",b.css=b.htmlCss,x&&(b.add=function(h){var s=T.box.parentNode,r=[];if(this.parentGroup=h){var f=h.div;if(!f){for(;h;)r.push(h),h=h.parentGroup;r.reverse().forEach(function(d){function y(B,V){d[V]=B,"translateX"===V?S.left=B+"px":S.top=B+"px",d.doTransform=!0}var _=Y(d.element,"class"),S=(f=d.div=d.div||M("div",_?{className:_}:void 0,{position:"absolute",left:(d.translateX||0)+"px",top:(d.translateY||0)+"px",display:d.display,opacity:d.opacity,pointerEvents:d.styles&&d.styles.pointerEvents},f||s)).style;R(d,{classSetter:function(B){return function(V){this.element.setAttribute("class",V),B.className=V}}(f),on:function(){return r[0].div&&b.on.apply({element:r[0].div},arguments),d},translateXSetter:y,translateYSetter:y}),d.addedSetters||c(d)})}}else f=s;return f.appendChild(P),b.added=!0,b.alignOnAdd&&b.htmlUpdateTransform(),b}),b}}),tt}),_t(et,"Core/Axis/Tick.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.clamp,nt=q.correctFloat,ot=q.defined,st=q.destroyObjectProperties,U=q.extend,Q=q.fireEvent,Y=q.isNumber,M=q.merge,R=q.objectEach,E=q.pick,L=z.deg2rad;return q=function(){function D(t,b,P,T,x){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=b,this.type=P||"",this.parameters=x||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,Q(this,"init"),P||T||this.addLabel()}return D.prototype.addLabel=function(){var t=this,b=t.axis,P=b.options,T=b.chart,x=b.categories,c=b.logarithmic,h=b.names,s=t.pos,r=E(t.options&&t.options.labels,P.labels),f=b.tickPositions,d=s===f[0],y=s===f[f.length-1];h=this.parameters.category||(x?E(x[s],h[s],s):s);var S,B,_=t.label;if(x=(!r.step||1===r.step)&&1===b.tickInterval,f=f.info,b.dateTime&&f)var V=T.time.resolveDTLFormat(P.dateTimeLabelFormats[!P.grid&&f.higherRanks[s]||f.unitName]),K=V.main;t.isFirst=d,t.isLast=y,t.formatCtx={axis:b,chart:T,isFirst:d,isLast:y,dateTimeLabelFormat:K,tickPositionInfo:f,value:c?nt(c.lin2log(h)):h,pos:s},P=b.labelFormatter.call(t.formatCtx,this.formatCtx),(B=V&&V.list)&&(t.shortenLabel=function(){for(S=0;S<B.length;S++)if(_.attr({text:b.labelFormatter.call(U(t.formatCtx,{dateTimeLabelFormat:B[S]}))}),_.getBBox().width<b.getSlotWidth(t)-2*E(r.padding,5))return;_.attr({text:""})}),x&&b._addedPlotLB&&t.moveLabel(P,r),ot(_)||t.movedLabel?_&&_.textStr!==P&&!x&&(!_.textWidth||r.style&&r.style.width||_.styles.width||_.css({width:null}),_.attr({text:P}),_.textPxLength=_.getBBox().width):(t.label=_=t.createLabel({x:0,y:0},P,r),t.rotation=0)},D.prototype.createLabel=function(t,b,P){var T=this.axis,x=T.chart;return(t=ot(b)&&P.enabled?x.renderer.text(b,t.x,t.y,P.useHTML).add(T.labelGroup):null)&&(x.styledMode||t.css(M(P.style)),t.textPxLength=t.getBBox().width),t},D.prototype.destroy=function(){st(this,this.axis)},D.prototype.getPosition=function(t,b,P,T){var x=this.axis,c=x.chart,h=T&&c.oldChartHeight||c.chartHe
1ight;return(t={x:t?nt(x.translate(b+P,null,null,T)+x.transB):x.left+x.offset+(x.opposite?(T&&c.oldChartWidth||c.chartWidth)-x.right-x.left:0),y:t?h-x.bottom+x.offset-(x.opposite?x.height:0):nt(h-x.translate(b+P,null,null,T)-x.transB)}).y=tt(t.y,-1e5,1e5),Q(this,"afterGetPosition",{pos:t}),t},D.prototype.getLabelPosition=function(t,b,P,T,x,c,h,s){var r=this.axis,f=r.transA,d=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,y=r.staggerLines,_=r.tickRotCorr||{x:0,y:0},S=x.y,B=T||r.reserveSpaceDefault?0:-r.labelOffset*("center"===r.labelAlign?.5:1),V={};return ot(S)||(S=0===r.side?P.rotation?-8:-P.getBBox().height:2===r.side?_.y+8:Math.cos(P.rotation*L)*(_.y-P.getBBox(!1,0).height/2)),b=b+S-(c&&!T?c*f*(d?1:-1):0),y&&(P=h/(s||1)%y,r.opposite&&(P=y-P-1),b+=r.labelOffset/y*P),V.x=t=t+x.x+B+_.x-(c&&T?c*f*(d?-1:1):0),V.y=Math.round(b),Q(this,"afterGetLabelPosition",{pos:V,tickmarkOffset:c,index:h}),V},D.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},D.prototype.getMarkPath=function(t,b,P,T,x,c){return c.crispLine([["M",t,b],["L",t+(x?0:-P),b+(x?P:0)]],T)},D.prototype.handleOverflow=function(t){var b=this.axis,P=b.options.labels,T=t.x,x=b.chart.chartWidth,c=b.chart.spacing,h=E(b.labelLeft,Math.min(b.pos,c[3]));
1c=E(b.labelRight,Math.max(b.isRadial?0:b.pos+b.len,x-c[1]));var B,s=this.label,r=this.rotation,f={left:0,center:.5,right:1}[b.labelAlign||s.attr("align")],d=s.getBBox().width,y=b.getSlotWidth(this),_=y,S=1,V={};r||"justify"!==E(P.overflow,"justify")?0>r&&T-f*d<h?B=Math.round(T/Math.cos(r*L)-h):0<r&&T+f*d>c&&(B=Math.round((x-T)/Math.cos(r*L))):(x=T+(1-f)*d,T-f*d<h?_=t.x+_*(1-f)-h:x>c&&(_=c-t.x+_*f,S=-1),(_=Math.min(y,_))<y&&"center"===b.labelAlign&&(t.x+=S*(y-_-f*(y-Math.min(d,_)))),(d>_||b.autoRotation&&(s.styles||{}).width)&&(B=_)),B&&(this.shortenLabel?this.shortenLabel():(V.width=Math.floor(B)+"px",(P.style||{}).textOverflow||(V.textOverflow="ellipsis"),s.css(V)))},D.prototype.moveLabel=function(t,b){var P=this,T=P.label,x=!1,c=P.axis,h=c.reversed;if(T&&T.textStr===t?(P.movedLabel=T,x=!0,delete P.label):R(c.ticks,function(r){x||r.isNew||r===P||!r.label||r.label.textStr!==t||(P.movedLabel=r.label,x=!0,r.labelPos=P.movedLabel.xy,delete r.label)}),!x&&(P.labelPos||T)){var s=P.labelPos||T.xy;P.movedLabel=P.createLabel({x:T=c.horiz?h?0:c.width+c.left:s.x,y:c=c.horiz?s.y:h?c.width+c.left:0},t,b),P.movedLabel&&P.movedLabel.attr({opacity:0})}},D.prototype.render=function(t,b,P){var T=this.axis,x=T.horiz,c=this.pos,h=E(this.tickmarkOffset,T.tickmarkOffset);h=(c=this.getPosition(x,c,h,b)).x,T=x&&h===T.pos+T.len||!x&&c.y===T.pos?-1:1,P=E(P,1),this.isActive=!0,this.renderGridLine(b,P,T),this.renderMark(c,P,T),this.renderLabel(c,b,P,t),this.isNew=!1,Q(this,"afterRender")},D.prototype.renderGridLine=function(t,b,P){var T=this.axis,x=T.options,c=this.gridLine,h={},s=this.pos,r=this.type,f=E(this.tickmarkOffset,T.tickmarkOffset),d=T.chart.renderer,y=r?r+"Grid":"grid",_=x[y+"LineWidth"],S=x[y+"LineColor"];x=x[y+"LineDashStyle"],c||(T.chart.styledMode||(h.stroke=S,h["stroke-width"]=_,x&&(h.dashstyle=x)),r||(h.zIndex=1),t&&(b=0),this.gridLine=c=d.path().attr(h).addClass("highcharts-"+(r?r+"-":"")+"grid-line").add(T.gridGroup)),c&&(P=T.getPlotLinePath({value:s+f,lineWidth:c.strokeWidth()*P,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:P,opacity:b})},D.prototype.renderMark=function(t,b,P){var T=this.axis,x=T.options,c=T.chart.renderer,h=this.type,s=h?h+"Tick":"tick",r=T.tickSize(s),f=this.mark,d=!f,y=t.x;t=t.y;var _=E(x[s+"Width"],!h&&T.isXAxis?1:0);x=x[s+"Color"],r&&(T.opposite&&(r[0]=-r[0]),d&&(this.mark=f=c.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(T.axisGroup),T.chart.styledMode||f.attr({stroke:x,"stroke-width":_})),f[d?"attr":"animate"]({d:this.getMarkPath(y,t,r[0],f.strokeWidth()*P,T.horiz,c),opacity:b}))},D.prototype.renderLabel=function(t,b,P,T){var x=this.axis,c=x.horiz,h=x.options,s=this.label,r=h.labels,f=r.step;x=E(this.tickmarkOffset,x.tickmarkOffset);var d=!0,y=t.x;t=t.y,s&&Y(y)&&(s.xy=t=this.getLabelPosition(y,t,s,c,r,x,T,f),this.isFirst&&!this.isLast&&!E(h.showFirstLabel,1)||this.isLast&&!this.isFirst&&!E(h.showLastLabel,1)?d=!1:!c||r.step||r.rotation||b||0===P||this.handleOverflow(t),f&&T%f&&(d=!1),d&&Y(t.y)?(t.opacity=P,s[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},D.prototype.replaceMovedLabel=function(){var t=this.label,b=this.axis,P=b.reversed;t&&!this.isNew&&(t.animate({x:b.horiz?P?b.left:b.width+b.left:t.xy.x,y:P=b.horiz?t.xy.y:P?b.width+b.top:b.top,opacity:0},void 0,t.destroy),delete this.label),b.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},D}(),z.Tick=q,z.Tick}),_t(et,"Core/Time.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.defined,nt=q.error,ot=q.extend,st=q.isObject,U=q.merge,Q=q.objectEach,Y=q.pad,M=q.pick,R=q.splat,E=q.timeUnits,L=z.win;return q=function(){function D(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=L.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return D.prototype.get=function(t,b){if(this.variableTimezone||this.timezoneOffset){var P=b.getTime(),T=P-this.getTimezoneOffset(b);return b.setTime(T),t=b["getUTC"+t](),b.setTime(P),t}return this.useUTC?b["getUTC"+t]():b["get"+t]()},D.prototype.set=function(t,b,P){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return b["setUTC"+t](P);var T=this.getTimezoneOffset(b);
1return T=b.getTime()-T,b.setTime(T),b["setUTC"+t](P),t=this.getTimezoneOffset(b),T=b.getTime()+t,b.setTime(T)}return this.useUTC?b["setUTC"+t](P):b["set"+t](P)},D.prototype.update=function(t){var b=M(t&&t.useUTC,!0);this.options=t=U(!0,this.options||{},t),this.Date=t.Date||L.Date||Date,this.timezoneOffset=(this.useUTC=b)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(b&&!t.getTimezoneOffset&&!t.timezone)},D.prototype.makeTime=function(t,b,P,T,x,c){if(this.useUTC){var h=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(h),r=this.getTimezoneOffset(h+=s);s!==r?h+=r-s:s-36e5!==this.getTimezoneOffset(h-36e5)||z.isSafari||(h-=36e5)}else h=new this.Date(t,b,M(P,1),M(T,0),M(x,0),M(c,0)).getTime();return h},D.prototype.timezoneOffsetFunction=function(){var t=this,b=this.options,P=b.moment||L.moment;if(!this.useUTC)return function(T){return 6e4*new Date(T.toString()).getTimezoneOffset()};if(b.timezone){if(P)return function(T){return 6e4*-P.tz(T,b.timezone).utcOffset()};nt(25)}return this.useUTC&&b.getTimezoneOffset?function(T){return 6e4*b.getTimezoneOffset(T.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},D.prototype.dateFormat=function(t,b,P){var T;if(!tt(b)||isNaN(b))return(null===(T=z.defaultOptions.lang)||void 0===T?void 0:T.invalidDate)||"";t=M(t,"%Y-%m-%d %H:%M:%S");var x=this;T=new this.Date(b);var c=this.get("Hours",T),h=this.get("Day",T),s=this.get("Date",T),r=this.get("Month",T),f=this.get("FullYear",T),d=z.defaultOptions.lang,y=d?.weekdays,_=d?.shortWeekdays;return T=ot({a:_?_[h]:y[h].substr(0,3),A:y[h],d:Y(s),e:Y(s,2," "),w:h,b:d.shortMonths[r],B:d.months[r],m:Y(r+1),o:r+1,y:f.toString().substr(2,2),Y:f,H:Y(c),k:c,I:Y(c%12||12),l:c%12||12,M:Y(this.get("Minutes",T)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:Y(T.getSeconds()),L:Y(Math.floor(b%1e3),3)},z.dateFormats),Q(T,function(S,B){for(;-1!==t.indexOf("%"+B);)t=t.replace("%"+B,"function"==typeof S?S.call(x,b):S)}),P?t.substr(0,1).toUpperCase()+t.substr(1):t},D.prototype.resolveDTLFormat=function(t){return st(t,!0)?t:{main:(t=R(t))[0],from:t[1],to:t[2]}},D.prototype.getTimeTicks=function(t,b,P,T){var d,x=this,c=[],h={},s=new x.Date(b),r=t.unitRange,f=t.count||1;if(T=M(T,1),tt(b)){if(x.set("Milliseconds",s,r>=E.second?0:f*Math.floor(x.get("Milliseconds",s)/f)),r>=E.second&&x.set("Seconds",s,r>=E.minute?0:f*Math.floor(x.get("Seconds",s)/f)),r>=E.minute&&x.set("Minutes",s,r>=E.hour?0:f*Math.floor(x.get("Minutes",s)/f)),r>=E.hour&&x.set("Hours",s,r>=E.day?0:f*Math.floor(x.get("Hours",s)/f)),r>=E.day&&x.set("Date",s,r>=E.month?1:Math.max(1,f*Math.floor(x.get("Date",s)/f))),r>=E.month){x.set("Month",s,r>=E.year?0:f*Math.floor(x.get("Month",s)/f));var y=x.get("FullYear",s)}r>=E.year&&x.set("FullYear",s,y-y%f),r===E.week&&(y=x.get("Day",s),x.set("Date",s,x.get("Date",s)-y+T+(y<T?-7:0))),y=x.get("FullYear",s),T=x.get("Month",s);var _=x.get("Date",s),S=x.get("Hours",s);for(b=s.getTime(),x.variableTimezone&&(d=P-b>4*E.month||x.getTimezoneOffset(b)!==x.getTimezoneOffset(P)),b=s.getTime(),s=1;b<P;)c.push(b),b=r===E.year?x.makeTime(y+s*f,0):r===E.month?x.makeTime(y,T+s*f):!d||r!==E.day&&r!==E.week?d&&r===E.hour&&1<f?x.makeTime(y,T,_,S+s*f):b+r*f:x.makeTime(y,T,_+s*f*(r===E.day?1:7)),s++;c.push(b),r<=E.hour&&1e4>c.length&&c.forEach(function(B){B%18e5==0&&"000000000"===x.dateFormat("%H%M%S%L",B)&&(h[B]="day")})}return c.info=ot(t,{higherRanks:h,totalRange:r*f}),c},D}(),z.Time=q,z.Time}),_t(et,"Core/Options.js",[et["Core/Globals.js"],et["Core/Color/Color.js"],et["Core/Time.js"],et["Core/Utilities.js"]],function(z,q,tt,nt){var ot=z.isTouchDevice,st=z.svg;return q=q.parse,nt=nt.merge,z.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbol
1s:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:st,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:ot?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:q("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},z.time=new tt(nt(z.defaultOptions.global,z.defaultOptions.time)),z.dateFormat=function(U,Q,Y){return z.time.dateFormat(U,Q,Y)},{dateFormat:z.dateFormat,defaultOptions:z.defaultOptions,time:z.time}}),_t(et,"Core/Axis/Axis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Axis/Tick.js"],et["Core/Utilities.js"],et["Core/Options.js"]],function(z,q,tt,nt,ot,st){var U=z.animObject,Q=ot.addEvent,Y=ot.arrayMax,M=ot.arrayMin,R=ot.clamp,E=ot.correctFloat,L=ot.defined,D=ot.destroyObjectProperties,t=ot.error,b=ot.extend,P=ot.fireEvent,T=ot.format,x=ot.getMagnitude,c=ot.isArray,h=ot.isFunction,s=ot.isNumber,r=ot.isString,f=ot.merge,d=ot.normalizeTickInterval,y=ot.objectEach,_=ot.pick,S=ot.relativeLength,B=ot.removeEvent,V=ot.splat,K=ot.syncTimeout,F=st.defaultOptions,k=tt.deg2rad;return z=function(){function a(e,n){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.oldMin=this.oldMax=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(e,n)}return a.prototype.init=function(e,n){var o=n.isX,l=this;l.chart=e,l.horiz=e.inverted&&!l.isZAxis?!o:o,l.isXAxis=o,l.coll=l.coll||(o?"xAxis":"yAxis"),P(this,"init",{userOptions:n}),l.opposite=n.opposite,l.side=n.side||(l.horiz?l.opposite?0:2:l.opposite?1:3),l.setOptions(n);var u=this.options,v=u.type;l.labelFormatter=u.labels.formatter||l.defaultLabelFormatter,l.userOptions=n,l.minPixelPadding=0,l.reversed=u.reversed,l.visible=!1!==u.visible,l.zoomEnabled=!1!==u.zoomEnabled,l.hasNames="category"===v||!0===u.categories,l.categories=u.categories||l.hasNames,l.names||(l.names=[],l.names.keys={}),l.plotLinesAndBandsGroups={},l.positiveValuesOnly=!!l.logarithmic,l.isLinked=L(u.linkedTo),l.ticks={},l.labelEdge=[],l.minorTicks={},l.plotLinesAndBands=[],l.alternateBands={},l.len=0,l.minRange=l.userMinRange=u.minRange||u.maxZoom,l.range=u.range,l.offset=u.offset||0,l.max=null,l.min=null,l.crosshair=_(u.crosshair,V(e.options.tooltip.crosshairs)[o?0:1],!1),n=l.options.events,-1===e.axes.indexOf(l)&&(o?e.axes.splice(e.xAxis.length,0,l):e.axes.push(l),e[l.coll].push(l)),l.series=l.series||[],e.inverted&&!l.isZAxis&&o&&typeof l.reversed>"u"&&(l.reversed=!0),l.labelRotation=l.options.labels.rotation,y(n,function(C,I){h(C)&&Q(l,I,C)}),P(this,"afterInit")},a.prototype.setOptions=function(e){this.options=f(a.defaultOptions,"yAxis"===this.coll&&a.defaultYAxisOptions,[a.defaultTopAxisOptions,a.defaultRightAxisOptions,a.defaultBottomAxisOptions,a.defaultLeftAxisOptions][this.side],f(F[this.coll],e)),P(this,"afterSetOptions",{userOptions:e})},a.prototype.defaultLabelFormatter=function(){var e=this.axis,n=s(this.value)?this.value:NaN,o=e.chart.time,l=e.categories,u=this.dateTimeLabelFormat,v=F.lang,C=v.numericSymbol
1s;v=v.numericSymbolMagnitude||1e3;var I=C&&C.length,j=e.options.labels.format;e=e.logarithmic?Math.abs(n):e.tickInterval;var $=this.chart,X=$.numberFormatter;if(j)var W=T(j,this,$);else if(l)W=""+this.value;else if(u)W=o.dateFormat(u,n);else if(I&&1e3<=e)for(;I--&&typeof W>"u";)e>=(o=Math.pow(v,I+1))&&10*n%o==0&&null!==C[I]&&0!==n&&(W=X(n/o,-1)+C[I]);return typeof W>"u"&&(W=1e4<=Math.abs(n)?X(n,-1):X(n,-1,void 0,"")),W},a.prototype.getSeriesExtremes=function(){var o,e=this,n=e.chart;P(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach(function(l){if(l.visible||!n.options.chart.ignoreHiddenSeries){var u=l.options,v=u.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=v&&(v=null),e.isXAxis){if((u=l.xData).length){u=e.logarithmic?u.filter(e.validatePositiveValue):u;var C=(o=l.getXExtremes(u)).min,I=o.max;s(C)||C instanceof Date||(u=u.filter(s),C=(o=l.getXExtremes(u)).min,I=o.max),u.length&&(e.dataMin=Math.min(_(e.dataMin,C),C),e.dataMax=Math.max(_(e.dataMax,I),I))}}else l=l.applyExtremes(),s(l.dataMin)&&(C=l.dataMin,e.dataMin=Math.min(_(e.dataMin,C),C)),s(l.dataMax)&&(I=l.dataMax,e.dataMax=Math.max(_(e.dataMax,I),I)),L(v)&&(e.threshold=v),(!u.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),P(this,"afterGetSeriesExtremes")},a.prototype.translate=function(e,n,o,l,u,v){var C=this.linkedParent||this,I=1,j=0,$=l?C.oldTransA:C.transA;l=l?C.oldMin:C.min;var X=C.minPixelPadding;return u=(C.isOrdinal||C.brokenAxis&&C.brokenAxis.hasBreaks||C.logarithmic&&u)&&C.lin2val,$||($=C.transA),o&&(I*=-1,j=C.len),C.reversed&&(j-=(I*=-1)*(C.sector||C.len)),n?(e=(e*I+j-X)/$+l,u&&(e=C.lin2val(e))):(u&&(e=C.val2lin(e)),e=s(l)?I*(e-l)*$+j+I*X+(s(v)?$*v:0):void 0),e},a.prototype.toPixels=function(e,n){return this.translate(e,!1,!this.horiz,null,!0)+(n?0:this.pos)},a.prototype.toValue=function(e,n){return this.translate(e-(n?0:this.pos),!0,!this.horiz,null,!0)},a.prototype.getPlotLinePath=function(e){function n(O,H,rt){return("pass"!==X&&O<H||O>rt)&&(X?O=R(O,H,rt):it=!0),O}var W,G,w,A,it,o=this,l=o.chart,u=o.left,v=o.top,C=e.old,I=e.value,j=e.translatedValue,$=e.lineWidth,X=e.force,Z=C&&l.oldChartHeight||l.chartHeight,J=C&&l.oldChartWidth||l.chartWidth,ct=o.transB;return P(this,"getPlotLinePath",e={value:I,lineWidth:$,old:C,force:X,acrossPanes:e.acrossPanes,translatedValue:j},function(O){j=_(j,o.translate(I,null,null,C)),j=R(j,-1e5,1e5),W=w=Math.round(j+ct),G=A=Math.round(Z-j-ct),s(j)?o.horiz?(G=v,A=Z-o.bottom,W=w=n(W,u,u+o.width)):(W=u,w=J-o.right,G=A=n(G,v,v+o.height)):(it=!0,X=!1),O.path=it&&!X?null:l.renderer.crispLine([["M",W,G],["L",w,A]],$||1)}),e.path},a.prototype.getLinearTickPositions=function(e,n,o){var l=E(Math.floor(n/e)*e);o=E(Math.ceil(o/e)*e);var v,u=[];if(E(l+e)===l&&(v=20),this.single)return[n];for(n=l;n<=o&&(u.push(n),(n=E(n+e,v))!==C);)var C=n;return u},a.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?_(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval},a.prototype.getMinorTickPositions=function(){var e=this.options,n=this.tickPositions,o=this.minorTickInterval,l=[],u=this.pointRangePadding||0,v=this.min-u,C=(u=this.max+u)-v;if(C&&C/o<this.len/3){var I=this.logarithmic;if(I)this.paddedTicks.forEach(function(j,$,X){$&&l.push.apply(l,I.getLogTickPositions(o,X[$-1],X[$],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(o),v,u,e.startOfWeek));else for(e=v+(n[0]-v)%o;e<=u&&e!==l[0];e+=o)l.push(e)}return 0!==l.length&&this.trimTicks(l),l},a.prototype.adjustForMinRange=function(){var u,v,C,I,e=this.options,n=this.min,o=this.max,l=this.logarithmic;if(this.isXAxis&&typeof this.minRange>"u"&&!l&&(L(e.min)||L(e.max)?this.minRange=null:(this.series.forEach(function(G){for(I=G.xData,v=G.xIncrement?1:I.length-1;0<v;v--)C=I[v]-I[v-1],(typeof u>"u"||C<u)&&(u=C)}),this.minRange=Math.min(5*u,this.dataMax-this.dataMin))),o-n<this.minRange){var $=this.dataMax-this.dataMin>=this.minRange,X=this.minRange,W=(X-o+n)/2;W=[n-W,_(e.min,n-W)],$&&(W[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),o=[(n=Y(W))+X,_(e.max,n+X)],$&&(o[2]=l?l.log2lin(this.dataMax):this.dataMax),(o=M(o))-n<X&&(W[0]=o-X,W[1]=_(e.min,o-X),n=Y(W))}this.min=n,this.max=o},a.prototype.getClosest=function(){var e;
1return this.categories?e=1:this.series.forEach(function(n){var o=n.closestPointRange,l=n.visible||!n.chart.options.chart.ignoreHiddenSeries;!n.noSharedTooltip&&L(o)&&l&&(e=L(e)?Math.min(e,o):o)}),e},a.prototype.nameToX=function(e){var n=c(this.categories),o=n?this.categories:this.names,l=e.options.x;if(e.series.requireSorting=!1,L(l)||(l=!1===this.options.uniqueNames?e.series.autoIncrement():n?o.indexOf(e.name):_(o.keys[e.name],-1)),-1===l){if(!n)var u=o.length}else u=l;return typeof u<"u"&&(this.names[u]=e.name,this.names.keys[e.name]=u),u},a.prototype.updateNames=function(){var e=this,n=this.names;0<n.length&&(Object.keys(n.keys).forEach(function(o){delete n.keys[o]}),n.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(o){o.xIncrement=null,(!o.points||o.isDirtyData)&&(e.max=Math.max(e.max,o.xData.length-1),o.processData(),o.generatePoints()),o.data.forEach(function(l,u){if(l&&l.options&&typeof l.name<"u"){var v=e.nameToX(l);typeof v<"u"&&v!==l.x&&(l.x=v,o.xData[u]=v)}})}))},a.prototype.setAxisTranslation=function(e){var n=this,o=n.max-n.min,l=n.axisPointRange||0,u=0,v=0,C=n.linkedParent,I=!!n.categories,j=n.transA,$=n.isXAxis;if($||I||l){var X=n.getClosest();C?(u=C.minPointOffset,v=C.pointRangePadding):n.series.forEach(function(W){var G=I?1:$?_(W.options.pointRange,X,0):n.axisPointRange||0,w=W.options.pointPlacement;l=Math.max(l,G),(!n.single||I)&&(W=W.is("xrange")?!$:$,u=Math.max(u,W&&r(w)?0:G/2),v=Math.max(v,W&&"on"===w?0:G))}),n.minPointOffset=u*=C=n.ordinal&&n.ordinal.slope&&X?n.ordinal.slope/X:1,n.pointRangePadding=v*=C,n.pointRange=Math.min(l,n.single&&I?1:o),$&&(n.closestPointRange=X)}e&&(n.oldTransA=j),n.translationSlope=n.transA=j=n.staticScale||n.len/(o+v||1),n.transB=n.horiz?n.left:n.bottom,n.minPixelPadding=j*u,P(this,"afterSetAxisTranslation")},a.prototype.minFromRange=function(){return this.max-this.range},a.prototype.setTickInterval=function(e){var n=this,o=n.chart,l=n.logarithmic,u=n.options,v=n.isXAxis,C=n.isLinked,I=u.maxPadding,j=u.minPadding,$=u.tickInterval,X=u.tickPixelInterval,W=n.categories,G=s(n.threshold)?n.threshold:null,w=n.softThreshold;n.dateTime||W||C||this.getTickAmount();var A=_(n.userMin,u.min),Z=_(n.userMax,u.max);if(C){n.linkedParent=o[n.coll][u.linkedTo];var J=n.linkedParent.getExtremes();n.min=_(J.min,J.dataMin),n.max=_(J.max,J.dataMax),u.type!==n.linkedParent.options.type&&t(11,1,o)}else{if(w&&L(G))if(n.dataMin>=G)J=G,j=0;else if(n.dataMax<=G){var it=G;I=0}n.min=_(A,J,n.dataMin),n.max=_(Z,it,n.dataMax)}l&&(n.positiveValuesOnly&&!e&&0>=Math.min(n.min,_(n.dataMin,n.min))&&t(10,1,o),n.min=E(l.log2lin(n.min),16),n.max=E(l.log2lin(n.max),16)),n.range&&L(n.max)&&(n.userMin=n.min=A=Math.max(n.dataMin,n.minFromRange()),n.userMax=Z=n.max,n.range=null),P(n,"foundExtremes"),n.beforePadding&&n.beforePadding(),n.adjustForMinRange(),!(W||n.axisPointRange||n.stacking&&n.stacking.usePercentage||C)&&L(n.min)&&L(n.max)&&(o=n.max-n.min)&&(!L(A)&&j&&(n.min-=o*j),!L(Z)&&I&&(n.max+=o*I)),s(n.userMin)||(s(u.softMin)&&u.softMin<n.min&&(n.min=A=u.softMin),s(u.floor)&&(n.min=Math.max(n.min,u.floor))),s(n.userMax)||(s(u.softMax)&&u.softMax>n.max&&(n.max=Z=u.softMax),s(u.ceiling)&&(n.max=Math.min(n.max,u.ceiling))),w&&L(n.dataMin)&&(G=G||0,!L(A)&&n.min<G&&n.dataMin>=G?n.min=n.options.minRange?Math.min(G,n.max-n.minRange):G:!L(Z)&&n.max>G&&n.dataMax<=G&&(n.max=n.options.minRange?Math.max(G,n.min+n.minRange):G)),n.tickInterval=n.min===n.max||typeof n.min>"u"||typeof n.max>"u"?1:C&&!$&&X===n.linkedParent.options.tickPixelInterval?$=n.linkedParent.tickInterval:_($,this.tickAmount?(n.max-n.min)/Math.max(this.tickAmount-1,1):void 0,W?1:(n.max-n.min)*X/Math.max(n.len,X)),v&&!e&&n.series.forEach(function(ct){ct.processData(n.min!==n.oldMin||n.max!==n.oldMax)}),n.setAxisTranslation(!0),P(this,"initialAxisTranslation"),n.pointRange&&!$&&(n.tickInterval=Math.max(n.pointRange,n.tickInterval)),e=_(u.minTickInterval,n.dateTime&&!n.series.some(function(ct){return ct.noSharedTooltip})?n.closestPointRange:0),!$&&n.tickInterval<e&&(n.tickInterval=e),n.dateTime||n.logarithmic||$||(n.tickInterval=d(n.tickInterval,void 0,x(n.tickInterval),_(u.allowDecimals,.5>n.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(n.tickInterval=n.unsquish()),this.setTickPositions()},a.prototype.setTickPositions=function(){var e=this.options,n=e.tickPositions,o=this.getMinorTickInterval(),l=e.tickPositioner,u=this.hasVerticalPanning(),v="colorAxis"===this.coll,C=(v||!u)&&e.startOnTick;u=(v||!u)&&e.endOnTick,this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===o&&this.tickInterval?this.tickInterval/5:o,this.single=this.min===this.max&&L(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=o=n&&n.slice(),!o&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?o=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(o=[this.min,this.max],t(19,!1,this.chart)),o.length>this.len&&(o=[o[0],o.pop()])[0]===o[1]&&(o.length=1),this.tickPositions=o,l&&(l=l.apply(this,[this.min,this.max])))&&
1(this.tickPositions=o=l),this.paddedTicks=o.slice(0),this.trimTicks(o,C,u),this.isLinked||(this.single&&2>o.length&&!this.categories&&!this.series.some(function(I){return I.is("heatmap")&&"between"===I.options.pointPlacement})&&(this.min-=.5,this.max+=.5),n||l||this.adjustTickAmount()),P(this,"afterSetTickPositions")},a.prototype.trimTicks=function(e,n,o){var l=e[0],u=e[e.length-1],v=!this.isOrdinal&&this.minPointOffset||0;if(P(this,"trimTicks"),!this.isLinked){if(n&&l!==-1/0)this.min=l;else for(;this.min-v>e[0];)e.shift();if(o)this.max=u;else for(;this.max+v<e[e.length-1];)e.pop();0===e.length&&L(l)&&!this.options.tickPositions&&e.push((u+l)/2)}},a.prototype.alignToOthers=function(){var n,e={},o=this.options;return!1===this.chart.options.chart.alignTicks||!1===o.alignTicks||!1===o.startOnTick||!1===o.endOnTick||this.logarithmic||this.chart[this.coll].forEach(function(l){var u=l.options;u=[l.horiz?u.left:u.top,u.width,u.height,u.pane].join(),l.series.length&&(e[u]?n=!0:e[u]=1)}),n},a.prototype.getTickAmount=function(){var e=this.options,n=e.tickAmount,o=e.tickPixelInterval;!L(e.tickInterval)&&!n&&this.len<o&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/o)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},a.prototype.adjustTickAmount=function(){var I,e=this.options,n=this.tickInterval,o=this.tickPositions,l=this.tickAmount,u=this.finalTickAmt,v=o&&o.length,C=_(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(v<l){for(I=this.min;o.length<l;)o.length%2||I===C?o.push(E(o[o.length-1]+n)):o.unshift(E(o[0]-n));this.transA*=(v-1)/(l-1),this.min=e.startOnTick?o[0]:Math.min(this.min,o[0]),this.max=e.endOnTick?o[o.length-1]:Math.max(this.max,o[o.length-1])}else v>l&&(this.tickInterval*=2,this.setTickPositions());if(L(u)){for(n=e=o.length;n--;)(3===u&&n%2==1||2>=u&&0<n&&n<e-1)&&o.splice(n,1);this.finalTickAmt=void 0}}},a.prototype.setScale=function(){var e,n=!1,o=!1;this.series.forEach(function(l){var u;n=n||l.isDirtyData||l.isDirty,o=o||(null===(u=l.xAxis)||void 0===u?void 0:u.isDirty)||!1}),this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(e=this.len!==this.oldAxisLength)||n||o||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.stacking&&this.stacking.cleanStacks(),n&&this.panningState&&(this.panningState.isDirty=!0),P(this,"afterSetScale")},a.prototype.setExtremes=function(e,n,o,l,u){var v=this,C=v.chart;o=_(o,!0),v.series.forEach(function(I){delete I.kdTree}),u=b(u,{min:e,max:n}),P(v,"setExtremes",u,function(){v.userMin=e,v.userMax=n,v.eventArgs=u,o&&C.redraw(l)})},a.prototype.zoom=function(e,n){var o=this,l=this.dataMin,u=this.dataMax,v=this.options,C=Math.min(l,_(v.min,l)),I=Math.max(u,_(v.max,u));return P(this,"zoom",e={newMin:e,newMax:n},function(j){var $=j.newMin,X=j.newMax;($!==o.min||X!==o.max)&&(o.allowZoomOutside||(L(l)&&($<C&&($=C),$>I&&($=I)),L(u)&&(X<C&&(X=C),X>I&&(X=I))),o.displayBtn=typeof $<"u"||typeof X<"u",o.setExtremes($,X,!1,void 0,{trigger:"zoom"})),j.zoomed=!0}),e.zoomed},a.prototype.setAxisSize=function(){var e=this.chart,n=this.options,o=n.offsets||[0,0,0,0],l=this.horiz,u=this.width=Math.round(S(_(n.width,e.plotWidth-o[3]+o[1]),e.plotWidth)),v=this.height=Math.round(S(_(n.height,e.plotHeight-o[0]+o[2]),e.plotHeight)),C=this.top=Math.round(S(_(n.top,e.plotTop+o[0]),e.plotHeight,e.plotTop));n=this.left=Math.round(S(_(n.left,e.plotLeft+o[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-v-C,this.right=e.chartWidth-u-n,this.len=Math.max(l?u:v,0),this.pos=l?n:C},a.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?E(e.lin2log(this.min)):this.min,max:e?E(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},a.prototype.getThreshold=function(e){var n=this.logarithmic,o=n?n.lin2log(this.min):this.min;return n=n?n.lin2log(this.max):this.max,null===e||e===-1/0?e=o:e===1/0?e=n:o>e?e=o:n<e&&(e=n),this.translate(e,0,1,0,1)},a.prototype.autoLabelAlign=function(e){var n=(_(e,0)-90*this.side+720)%360;return P(this,"autoLabelAlign",e={align:"center"},function(o){15<n&&165>n?o.align="right":195<n&&345>n&&(o.align="left")}),e.align},a.prototype.tickSize=function(e){var n=this.options,o=n["tick"===e?"tickLength":"minorTickLength"],l=_(n["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0);if(l&&o){"inside"===n[e+"Position"]&&(o=-o);var u=[o,l]}return P(this,"afterTickSize",e={tickSize:u}),e.tickSize},a.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},a.prototype.unsquish=function(){var v,j,X,e=this.options.labels,n=this.horiz,o=this.tickInterval,l=o,u=this.len/(((this.categories?1:0)+this.max-this.min)/o),C=e.rotation,I=this.labelMetrics(),$=Number.MAX_VALUE,W=this.max-this.min,G=function(w){var A=w/(u||1);return(A=1<A?Math.ceil(A):1)*o>W&&w!==1/0&&u!==1/0&&W&&(A=Math.ceil(W/o)),E(A*o)};return n?(X=!e.staggerLines&&!e.step&&(L(C)?[C]:u<_(e.autoRotationLimit,80)&&e.autoRotation))&&X.forEac
1h(function(w){if(w===C||w&&-90<=w&&90>=w){var A=(j=G(Math.abs(I.h/Math.sin(k*w))))+Math.abs(w/360);A<$&&($=A,v=w,l=j)}}):e.step||(l=G(I.h)),this.autoRotation=X,this.labelRotation=_(v,C),l},a.prototype.getSlotWidth=function(e){var n,o=this.chart,l=this.horiz,u=this.options.labels,v=Math.max(this.tickPositions.length-(this.categories?0:1),1),C=o.margin[3];if(e&&s(e.slotWidth))return e.slotWidth;if(l&&u&&2>(u.step||0))return u.rotation?0:(this.staggerLines||1)*this.len/v;if(!l){if(void 0!==(e=null===(n=u?.style)||void 0===n?void 0:n.width))return parseInt(e,10);if(C)return C-o.spacing[3]}return.33*o.chartWidth},a.prototype.renderUnsquish=function(){var e=this.chart,n=e.renderer,o=this.tickPositions,l=this.ticks,u=this.options.labels,v=u&&u.style||{},C=this.horiz,I=this.getSlotWidth(),j=Math.max(1,Math.round(I-2*(u.padding||5))),$={},X=this.labelMetrics(),W=u.style&&u.style.textOverflow,G=0;if(r(u.rotation)||($.rotation=u.rotation||0),o.forEach(function(J){(J=l[J]).movedLabel&&J.replaceMovedLabel(),J&&J.label&&J.label.textPxLength>G&&(G=J.label.textPxLength)}),this.maxLabelLength=G,this.autoRotation)G>j&&G>X.h?$.rotation=this.labelRotation:this.labelRotation=0;else if(I){var w=j;if(!W){var A="clip";for(j=o.length;!C&&j--;){var Z=o[j];(Z=l[Z].label)&&(Z.styles&&"ellipsis"===Z.styles.textOverflow?Z.css({textOverflow:"clip"}):Z.textPxLength>I&&Z.css({width:I+"px"}),Z.getBBox().height>this.len/o.length-(X.h-X.f)&&(Z.specificTextOverflow="ellipsis"))}}}$.rotation&&(w=G>.5*e.chartHeight?.33*e.chartHeight:G,W||(A="ellipsis")),(this.labelAlign=u.align||this.autoLabelAlign(this.labelRotation))&&($.align=this.labelAlign),o.forEach(function(J){var it=(J=l[J])&&J.label,ct=v.width,O={};it&&(it.attr($),J.shortenLabel?J.shortenLabel():w&&!ct&&"nowrap"!==v.whiteSpace&&(w<it.textPxLength||"SPAN"===it.element.tagName)?(O.width=w+"px",W||(O.textOverflow=it.specificTextOverflow||A),it.css(O)):it.styles&&it.styles.width&&!O.width&&!ct&&it.css({width:null}),delete it.specificTextOverflow,J.rotation=$.rotation)},this),this.tickRotCorr=n.rotCorr(X.b,this.labelRotation||0,0!==this.side)},a.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&L(this.min)&&L(this.max)},a.prototype.addTitle=function(e){var v,l=this.opposite,u=this.options.title,C=this.chart.styledMode;this.axisTitle||((v=u.textAlign)||(v=(this.horiz?{low:"left",middle:"center",high:"right"}
1:{low:l?"right":"left",middle:"center",high:l?"left":"right"})[u.align]),this.axisTitle=this.chart.renderer.text(u.text,0,0,u.useHTML).attr({zIndex:7,rotation:u.rotation||0,align:v}).addClass("highcharts-axis-title"),C||this.axisTitle.css(f(u.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),C||u.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)},a.prototype.generateTick=function(e){var n=this.ticks;n[e]?n[e].addLabel():n[e]=new nt(this,e)},a.prototype.getOffset=function(){var $,e=this,n=e.chart,o=n.renderer,l=e.options,u=e.tickPositions,v=e.ticks,C=e.horiz,I=e.side,j=n.inverted&&!e.isZAxis?[1,0,3,2][I]:I,X=0,W=0,G=l.title,w=l.labels,A=0,Z=n.axisOffset;n=n.clipOffset;var J=[-1,1,1,-1][I],it=l.className,ct=e.axisParent,O=e.hasData();if(e.showAxis=$=O||_(l.showEmpty,!0),e.staggerLines=e.horiz&&w.staggerLines,e.axisGroup||(e.gridGroup=o.g("grid").attr({zIndex:l.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(it||"")).add(ct),e.axisGroup=o.g("axis").attr({zIndex:l.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(it||"")).add(ct),e.labelGroup=o.g("axis-labels").attr({zIndex:w.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels "+(it||"")).add(ct)),O||e.isLinked?(u.forEach(function(rt,ht){e.generateTick(rt,ht)}),e.renderUnsquish(),e.reserveSpaceDefault=0===I||2===I||{1:"left",3:"right"}[I]===e.labelAlign,_(w.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&u.forEach(function(rt){A=Math.max(v[rt].getLabelSize(),A)}),e.staggerLines&&(A*=e.staggerLines),e.labelOffset=A*(e.opposite?-1:1)):y(v,function(rt,ht){rt.destroy(),delete v[ht]}),G&&G.text&&!1!==G.enabled&&(e.addTitle($),$&&!1!==G.reserveSpace)){e.titleOffset=X=e.axisTitle.getBBox()[C?"height":"width"];var H=G.offset;W=L(H)?0:_(G.margin,C?5:10)}e.renderLine(),e.offset=J*_(l.offset,Z[I]?Z[I]+(l.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},o=0===I?-e.labelMetrics().h:2===I?e.tickRotCorr.y:0,W=Math.abs(A)+W,A&&(W=W-o+J*(C?_(w.y,e.tickRotCorr.y+8*J):w.x)),e.axisTitleMargin=_(H,W),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(v,u)),C=this.tickSize("tick"),Z[I]=Math.max(Z[I],e.axisTitleMargin+X+J*e.offset,W,u&&u.length&&C?C[0]+J*e.offset:0),l=l.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),n[j]=Math.max(n[j],l),P(this,"afterGetOffset")},a.prototype.getLinePath=function(e){var n=this.chart,o=this.opposite,l=this.offset,u=this.horiz,v=this.left+(o?this.width:0)+l;return l=n.chartHeight-this.bottom-(o?this.height:0)+l,o&&(e*=-1),n.renderer.crispLine([["M",u?this.left:v,u?l:this.top],["L",u?n.chartWidth-this.right:v,u?l:n.chartHeight-this.bottom]],e)},a.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},a.prototype.getTitlePosition=function(){var e=this.horiz,n=this.left,o=this.top,l=this.len,u=this.options.title,v=e?n:o,C=this.opposite,I=this.offset,j=u.x||0,$=u.y||0,X=this.axisTitle,W=this.chart.renderer.fontMetrics(u.style&&u.style.fontSize,X);return X=Math.max(X.getBBox(null,0).height-W.h-1,0),l={low:v+(e?0:l),middle:v+l/2,high:v+(e?l:0)}[u.align],n=(e?o+this.height:n)+(e?1:-1)*(C?-1:1)*this.axisTitleMargin+[-X,X,W.f,-X][this.side],P(this,"afterGetTitlePosition",{titlePosition:e={x:e?l+j:n+(C?this.width:0)+I+j,y:e?n+$-(C?this.height:0)+I:l+$}}),e},a.prototype.renderMinorTick=function(e){var n=this.chart.hasRendered&&s(this.oldMin),o=this.minorTicks;o[e]||(o[e]=new nt(this,e,"minor")),n&&o[e].isNew&&o[e].render(null,!0),o[e].render(null,!1,1)},a.prototype.renderTick=function(e,n){var o,l=this.isLinked,u=this.ticks,v=this.chart.hasRendered&&s(this.oldMin);(!l||e>=this.min&&e<=this.max||null!==(o=this.grid)&&void 0!==o&&o.isColumn)&&(u[e]||(u[e]=new nt(this,e)),v&&u[e].isNew&&u[e].render(n,!0,-1),u[e].render(n))},a.prototype.render=function(){var J,it,e=this,n=e.chart,o=e.logarithmic,l=e.options,u=e.isLinked,v=e.tickPositions,C=e.axisTitle,I=e.ticks,j=e.minorTicks,$=e.alternateBands,X=l.stackLabels,W=l.alternateGridColor,G=e.tickmarkOffset,w=e.axisLine,A=e.showAxis,Z=U(n.renderer.globalAnimation);e.labelEdge.length=0,e.overlap=!1,[I,j,$].forEach(function(ct){y(ct,function(O){O.isActive=!1})}),(e.hasData()||u)&&(e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEac
1h(function(ct){e.renderMinorTick(ct)}),v.length&&(v.forEach(function(ct,O){e.renderTick(ct,O)}),G&&(0===e.min||e.single)&&(I[-1]||(I[-1]=new nt(e,-1,null,!0)),I[-1].render(-1))),W&&v.forEach(function(ct,O){it=typeof v[O+1]<"u"?v[O+1]+G:e.max-G,O%2==0&&ct<e.max&&it<=e.max+(n.polar?-G:G)&&($[ct]||($[ct]=new tt.PlotLineOrBand(e)),J=ct+G,$[ct].options={from:o?o.lin2log(J):J,to:o?o.lin2log(it):it,color:W,className:"highcharts-alternate-grid"},$[ct].render(),$[ct].isActive=!0)}),e._addedPlotLB||((l.plotLines||[]).concat(l.plotBands||[]).forEach(function(ct){e.addPlotBandOrLine(ct)}),e._addedPlotLB=!0)),[I,j,$].forEach(function(ct){var O,H=[],rt=Z.duration;y(ct,function(ht,dt){ht.isActive||(ht.render(dt,!1,0),ht.isActive=!1,H.push(dt))}),K(function(){for(O=H.length;O--;)ct[H[O]]&&!ct[H[O]].isActive&&(ct[H[O]].destroy(),delete ct[H[O]])},ct!==$&&n.hasRendered&&rt?rt:0)}),w&&(w[w.isPlaced?"animate":"attr"]({d:this.getLinePath(w.strokeWidth())}),w.isPlaced=!0,w[A?"show":"hide"](A)),C&&A&&(l=e.getTitlePosition(),s(l.y)?(C[C.isNew?"attr":"animate"](l),C.isNew=!1):(C.attr("y",-9999),C.isNew=!0)),X&&X.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.isDirty=!1,P(this,"afterRender")},a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps},a.prototype.destroy=function(e){var l,n=this,o=n.plotLinesAndBands;if(P(this,"destroy",{keepEvents:e}),e||B(n),[n.ticks,n.minorTicks,n.alternateBands].forEach(function(u){D(u)}),o)for(e=o.length;e--;)o[e].destroy();for(l in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(u){n[u]&&(n[u]=n[u].destroy())}),n.plotLinesAndBandsGroups)n.plotLinesAndBandsGroups[l]=n.plotLinesAndBandsGroups[l].destroy();y(n,function(u,v){-1===n.getKeepProps().indexOf(v)&&delete n[v]})},a.prototype.drawCrosshair=function(e,n){var u,o=this.crosshair,l=_(o.snap,!0),v=this.cross,C=this.chart;if(P(this,"drawCrosshair",{e,point:n}),e||(e=this.cross&&this.cross.e),this.crosshair&&!1!==(L(n)||!l)){if(l?L(n)&&(u=_("colorAxis"!==this.coll?n.crosshairPos:null,this.isXAxis?n.plotX:this.len-n.plotY)):u=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),L(u)){var I={value:n&&(this.isXAxis?n.x:_(n.stackY,n.y)),translatedValue:u};C.polar&&b(I,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:n}),I=this.getPlotLinePath(I)||null}if(!L(I))return void this.hideCrosshair();l=this.categories&&!this.isRadial,v||(this.cross=v=C.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+o.className).attr({zIndex:_(o.zIndex,2)}).add(),C.styledMode||(v.attr({stroke:o.color||(l?q.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":_(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&v.attr({dashstyle:o.dashStyle}))),v.show().attr({d:I}),l&&!o.width&&v.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();P(this,"afterDrawCrosshair",{e,point:n})},a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),P(this,"afterHideCrosshair")},a.prototype.hasVerticalPanning=function(){var e,n;return/y/.test((null===(n=null===(e=this.chart.options.chart)||void 0===e?void 0:e.panning)||void 0===n?void 0:n.type)||"")},a.prototype.validatePositiveValue=function(e){return s(e)&&0<e},a.defaultOptions={dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},a.defaultYAxisOptions={endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},a.keepProps="extKey hcEvents names series userMax userMin".split(" "),a}(),tt.Axis=z,tt.Axis}),_t(et,"Core/Axis/DateTimeAxis.js",[et["Core/Axis/Axis.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.addEvent,nt=q.getMagnitude,ot=q.normalizeTickInterval,st=q.timeUnits,U=function(){function Q(Y){this.axis=Y}return Q.prototype.normalizeTimeTickInterval=function(Y,M){var D,R=M||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],E=st[(M=R[R.length-1])[0]],L=M[1];for(D=0;D<R.length&&(E=st[(M=R[D])[0]],L=M[1],!(R[D+1]&&Y<=(E*L[L.length-1]+st[R[D+1][0]])/2));D++);return E===st.year&&Y<5*E&&(L=[1,2,5]),{unitRange:E,count:Y=ot(Y/E,L,"year"===M[0]?Math.max(nt(Y/E),1):1),unitName:M[0]}},Q}();return q=function(){function Q(){}return Q.compose=function(Y){Y.keepProps.push("dateTime"),Y.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},tt(Y,"init",function(M){"datetime"!==M.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new U(this))})},Q.AdditionsClass=U,Q}(),q.compose(z),q}),_t(et,"Core/Axis/LogarithmicAxis.js",[et["Core/Axis/Axis.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.addEvent,nt=q.getMagnitude,ot=q.normalizeTickInterval,st=q.pick,U=function(){function Q(Y){this.axis=Y}return Q.prototype.getLogTickPositions=function(Y,M,R,E){var L=this.axis,D=L.len,t=L.options,b=[];if(E||(this.minorAutoInterval=void 0),.5<=Y)Y=Math.round(Y),b=L.getLinearTickPositions(Y,M,R);else if(.08<=Y){var P,T;for(t=Math.floor(M),D=.3<Y?[1,2,4]:.15<Y?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];t<R+1&&!T;t++){var x=D.length;for(P=0;P<x&&!T;P++){var c=this.log2lin(this.lin2log(t)*D[P]);c>M&&(!E||h<=R)&&typeof h<"u"&&b.push(h),h>R&&(T=!0);var h=c}}}else M=this.lin2log(M),R=this.lin2log(R),Y=E?L.getMinorTickInterval():t.tickInterval,Y=st("auto"===Y?null:Y,this.minorAutoInterval,t.tickPixelInterval/(E?5:1)*(R-M)/((E?D/L.tickPositions.length:D)||1)),Y=ot(Y,void 0,nt(Y)),b=L.getLinearTickPositions(Y,M,R).map(this.log2lin),E||(this.minorAutoInterval=Y/5);return E||(L.tickInterval=Y),b},Q.prototype.lin2log=function(Y){return Math.pow(10,Y)},Q.prototype.log2lin=function(Y){return Math.log(Y)/Math.LN10},Q}();return(q=function(){function Q(){}return Q.compose=function(Y){Y.keepProps.push("logarithmic");var M=Y.prototype,R=U.prototype;M.log2lin=R.log2lin,M.lin2log=R.lin2log,tt(Y,"init",function(E){var L=this.logarithmic;"logarithmic"!==E.userOptions.type?this.logarithmic=void 0:(L||(L=this.logarithmic=new U(this)),this.log2lin!==L.log2lin&&(L.log2lin=this.log2lin.bind(this)),this.lin2log!==L.lin2log&&(L.lin2log=this.lin2log.bind(this)))}),tt(Y,"afterInit",function(){var E=this.logarithmic;E&&(this.lin2val=function(L){return E.lin2log(L)},this.val2lin=function(L){return E.log2lin(L)})})},Q}()).compose(z),q}),_t(et,"Core/Axis/PlotLineOrBand.js",[et["Core/Axis/Axis.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt){var nt=tt.arrayMax,ot=tt.arrayMin,st=tt.defined,U=tt.destroyObjectProperties,Q=tt.erase,Y=tt.extend,M=tt.merge,R=tt.objectEach,E=tt.pick;return tt=function(){function L(D,t){this.axis=D,t&&(this.options=t,this.id=t.id)}return L.prototype.render=function(){q.fireEvent(this,"render");var D=this,t=D.axis,b=t.horiz,P=t.logarithmic,T=D.options,x=T.label,c=D.label,h=T.to,s=T.from,r=T.value,f=st(s)&&st(h),d=st(r),y=D.svgElem,_=!y,S=[],B=T.color,V=E(T.zIndex,0),K=T.events;S={class:"highcharts-plot-"+(f?"band ":"line ")+(T.className||"")};var F={},k=t.chart.renderer,a=f?"bands":"lines";if(P&&(s=P.log2lin(s),h=P.log2lin(h),r=P.log2lin(r)),t.chart.styledMode||(d?(S.stroke=B||"#999999",S["stroke-width"]=E(T.width,1),T.dashStyle&&(S.dashstyle=T.dashStyle)):f&&(S.fill=B||"#e6ebf5",T.borderWidth&&(S.stroke=T.borderColor,S["stroke-width"]=T.borderWidth))
1),F.zIndex=V,(P=t.plotLinesAndBandsGroups[a+="-"+V])||(t.plotLinesAndBandsGroups[a]=P=k.g("plot-"+a).attr(F).add()),_&&(D.svgElem=y=k.path().attr(S).add(P)),d)S=t.getPlotLinePath({value:r,lineWidth:y.strokeWidth(),acrossPanes:T.acrossPanes});else{if(!f)return;S=t.getPlotBandPath(s,h,T)}return!D.eventsAdded&&K&&(R(K,function(e,n){y.on(n,function(o){K[n].apply(D,[o])})}),D.eventsAdded=!0),(_||!y.d)&&S&&S.length?y.attr({d:S}):y&&(S?(y.show(!0),y.animate({d:S})):y.d&&(y.hide(),c&&(D.label=c=c.destroy()))),x&&(st(x.text)||st(x.formatter))&&S&&S.length&&0<t.width&&0<t.height&&!S.isFlat?(x=M({align:b&&f&&"center",x:b?!f&&4:10,verticalAlign:!b&&f&&"middle",y:b?f?16:10:f?6:-4,rotation:b&&!f&&90},x),this.renderLabel(x,S,f,V)):c&&c.hide(),D},L.prototype.renderLabel=function(D,t,b,P){var T=this.label,x=this.axis.chart.renderer;T||((T={align:D.textAlign||D.align,rotation:D.rotation,class:"highcharts-plot-"+(b?"band":"line")+"-label "+(D.className||"")}).zIndex=P,P=this.getLabelText(D),this.label=T=x.text(P,0,0,D.useHTML).attr(T).add(),this.axis.chart.styledMode||T.css(D.style)),x=t.xBounds||[t[0][1],t[1][1],b?t[2][1]:t[0][1]],t=t.yBounds||[t[0][2],t[1][2],b?t[2][2]:t[0][2]],b=ot(x),P=ot(t),T.align(D,!1,{x:b,y:P,width:nt(x)-b,height:nt(t)-P}),T.show(!0)},L.prototype.getLabelText=function(D){return st(D.formatter)?D.formatter.call(this):D.text},L.prototype.destroy=function(){Q(this.axis.plotLinesAndBands,this),delete this.axis,U(this)},L}(),Y(z.prototype,{getPlotBandPath:function(L,D,t){void 0===t&&(t=this.options);var b=this.getPlotLinePath({value:D,force:!0,acrossPanes:t.acrossPanes});t=this.getPlotLinePath({value:L,force:!0,acrossPanes:t.acrossPanes});var P=[],T=this.horiz,x=1;if(L=L<this.min&&D<this.min||L>this.max&&D>this.max,t&&b){if(L){var c=t.toString()===b.toString();x=0}for(L=0;L<t.length;L+=2){var h=t[L+1],s=b[L],r=b[L+1];"M"!==(D=t[L])[0]&&"L"!==D[0]||"M"!==h[0]&&"L"!==h[0]||"M"!==s[0]&&"L"!==s[0]||"M"!==r[0]&&"L"!==r[0]||(T&&s[1]===D[1]?(s[1]+=x,r[1]+=x):T||s[2]!==D[2]||(s[2]+=x,r[2]+=x),P.push(["M",D[1],D[2]],["L",h[1],h[2]],["L",r[1],r[2]],["L",s[1],s[2]],["Z"])),P.isFlat=c}}return P},addPlotBand:function(L){return this.addPlotBandOrLine(L,"plotBands")},addPlotLine:function(L){return this.addPlotBandOrLine(L,"plotLines")},addPlotBandOrLine:function(L,D){var t=new q.PlotLineOrBand(this,L),b=this.userOptions;if(this.visible&&(t=t.render()),t){if(D){var P=b[D]||[];P.push(L),b[D]=P}this.plotLinesAndBands.push(t),this._addedPlotLB=!0}return t},removePlotBandOrLine:function(L){for(var D=this.plotLinesAndBands,t=this.options,b=this.userOptions,P=D.length;P--;)D[P].id===L&&D[P].destroy();[t.plotLines||[],b.plotLines||[],t.plotBands||[],b.plotBands||[]].forEach(function(T){for(P=T.length;P--;)(T[P]||{}).id===L&&Q(T,T[P])})},removePlotBand:function(L){this.removePlotBandOrLine(L)},removePlotLine:function(L){this.removePlotBandOrLine(L)}}),q.PlotLineOrBand=tt,q.PlotLineOrBand}),_t(et,"Core/Tooltip.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=z.doc,nt=q.clamp,ot=q.css,st=q.defined,U=q.discardElement,Q=q.extend,Y=q.fireEvent,M=q.format,R=q.isNumber,E=q.isString,L=q.merge,D=q.pick,t=q.splat,b=q.syncTimeout,P=q.timeUnits,T=function(){function x(c,h){this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=c,this.init(c,h)}return x.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",id:"drop-shadow-"+c.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),c.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+c.index+"{filter:url(#drop-shadow-"+c.index+")}"})},x.prototype.bodyFormatter=function(c){return c.map(function(h){var s=h.series.tooltipOptions;return(s[(h.point.formatPrefix||"point")+"Formatter"]||h.point.tooltipFormatter).call(h.point,s[(h.point.formatPrefix||"point")+"Format"]||"")})}
1,x.prototype.cleanSplit=function(c){this.chart.series.forEach(function(h){var s=h&&h.tt;s&&(!s.isActive||c?h.tt=s.destroy():s.isActive=!1)})},x.prototype.defaultFormatter=function(c){var h=this.points||t(this),s=[c.tooltipFooterHeaderFormatter(h[0])];return(s=s.concat(c.bodyFormatter(h))).push(c.tooltipFooterHeaderFormatter(h[0],!0)),s},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),U(this.container)),q.clearTimeout(this.hideTimer),q.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(c,h){var B,V,s=this.chart,r=s.pointer,f=s.inverted,d=s.plotTop,y=s.plotLeft,_=0,S=0;return c=t(c),this.followPointer&&h?(typeof h.chartX>"u"&&(h=r.normalize(h)),c=[h.chartX-y,h.chartY-d]):c[0].tooltipPos?c=c[0].tooltipPos:(c.forEach(function(K){B=K.series.yAxis,V=K.series.xAxis,_+=K.plotX+(!f&&V?V.left-y:0),S+=(K.plotLow?(K.plotLow+K.plotHigh)/2:K.plotY)+(!f&&B?B.top-d:0)}),_/=c.length,S/=c.length,c=[f?s.plotWidth-S:_,this.shared&&!f&&1<c.length&&h?h.chartY-d:f?s.plotHeight-_:S]),c.map(Math.round)},x.prototype.getDateFormat=function(c,h,s,r){var f=this.chart.time,d=f.dateFormat("%m-%d %H:%M:%S.%L",h),y={millisecond:15,second:12,minute:9,hour:6,day:3},_="millisecond";for(S in P){if(c===P.week&&+f.dateFormat("%w",h)===s&&"00:00:00.000"===d.substr(6)){var S="week";break}if(P[S]>c){S=_;break}if(y[S]&&d.substr(y[S])!=="01-01 00:00:00.000".substr(y[S]))break;"week"!==S&&(_=S)}if(S)var B=f.resolveDTLFormat(r[S]).main;return B},x.prototype.getLabel=function(){var c,h,S,s=this,r=this.chart.renderer,f=this.chart.styledMode,d=this.options,y="tooltip"+(st(d.className)?" "+d.className:""),_=(null===(c=d.style)||void 0===c?void 0:c.pointerEvents)||(!this.followPointer&&d.stickOnContact?"auto":"none");if(c=function(){s.inContact=!0},!this.label){if(this.outside&&(this.container=S=z.doc.createElement("div"),S.className="highcharts-tooltip-container",ot(S,{position:"absolute",top:"1px",pointerEvents:_,zIndex:3}),z.doc.body.appendChild(S),this.renderer=r=new z.Renderer(S,0,0,null===(h=this.chart.options.chart)||void 0===h?void 0:h.style,void 0,void 0,r.styledMode)),this.split?this.label=r.g(y):(this.label=r.label("",0,0,d.shape||"callout",null,null,d.useHTML,null,y).attr({padding:d.padding,r:d.borderRadius}),f||this.label.attr({fill:d.backgroundColor,"stroke-width":d.borderWidth}).css(d.style).css({pointerEvents:_}).shadow(d.shadow)),f&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),s.outside&&!s.split){var V=this.label,K=V.xSetter,F=V.ySetter;V.xSetter=function(k){K.call(V,s.distance),S.style.left=k+"px"},V.ySetter=function(k){F.call(V,s.distance),S.style.top=k+"px"}}this.label.on("mouseenter",c).on("mouseleave",function(){var k=s.chart.hoverSeries;s.inContact=!1,k&&k.onMouseOut&&k.onMouseOut()}).attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(c,h,s){var _,r=this.chart,f=this.distance,d={},y=r.inverted&&s.h||0,S=this.outside,B=S?tt.documentElement.clientWidth-2*f:r.chartWidth,V=S?Math.max(tt.body.scrollHeight,tt.documentElement.scrollHeight,tt.body.offsetHeight,tt.documentElement.offsetHeight,tt.documentElement.clientHeight):r.chartHeight,K=r.pointer.getChartPosition(),F=r.containerScaling,k=function(j){return F?j*F.scaleX:j},a=function(j){return F?j*F.scaleY:j},e=function(j){var $="x"===j;return[j,$?B:V,$?c:h].concat(S?[$?k(c):a(h),$?K.left-f+k(s.plotX+r.plotLeft):K.top-f+a(s.plotY+r.plotTop),0,$?B:V]:[$?c:h,$?s.plotX+r.plotLeft:s.plotY+r.plotTop,$?r.plotLeft:r.plotTop,$?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},n=e("y"),o=e("x"),l=!this.followPointer&&D(s.ttBelow,!r.inverted==!!s.negative),u=function(j,$,X,W,G,w,A){var Z="y"===j?a(f):k(f),J=(X-W)/2,it=W<G-f,ct=G+f+W<$,O=G-Z-X+J;if(G=G+Z-J,l&&ct)d[j]=G;else if(!l&&it)d[j]=O;else if(it)d[j]=Math.min(A-W,0>O-y?O:O-y);else{if(!ct)return!1;d[j]=Math.max(w,G+y+X>$?G:G+y)}},v=function(j,$,X,W,G){var w;return G<f||G>$-f?w=!1:d[j]=G<X/2?1:G>$-W/2?$-W-2:G-X/2,w},C=function(j){var $=n;n=o,o=$,_=j},I=function(){!1!==u.apply(0,n)?!1!==v.apply(0,o)||_||(C(!0),I()):_?d.x=d.y=0:(C(!0),I())};return(r.inverted||1<this.len)&&C(),I(),d},x.prototype.getXDateFormat=function(c,h,s){h=h.dateTimeLabelFormats;var r=s&&s.closestPointRange;return(r?this.getDateFormat(r,c.x,s.options.startOfWeek,h):h.day)||h.year},x.prototype.hide=function(c){var h=this;q.clearTimeout(this.hideTimer),c=D(c,this.options.hideDelay,500),this.isHidden||(this.hideTimer=b
1(function(){h.getLabel().fadeOut(c&&void 0),h.isHidden=!0},c))},x.prototype.init=function(c,h){this.chart=c,this.options=h,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=h.split&&!c.inverted&&!c.polar,this.shared=h.shared||this.split,this.outside=D(h.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))},x.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)},x.prototype.move=function(c,h,s,r){var f=this,d=f.now,y=!1!==f.options.animation&&!f.isHidden&&(1<Math.abs(c-d.x)||1<Math.abs(h-d.y)),_=f.followPointer||1<f.len;Q(d,{x:y?(2*d.x+c)/3:c,y:y?(d.y+h)/2:h,anchorX:_?void 0:y?(2*d.anchorX+s)/3:s,anchorY:_?void 0:y?(d.anchorY+r)/2:r}),f.getLabel().attr(d),f.drawTracker(),y&&(q.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){f&&f.move(c,h,s,r)},32))},x.prototype.refresh=function(c,h){var s=this.chart,r=this.options,f=c,d={},y=[],_=r.formatter||this.defaultFormatter;d=this.shared;var S=s.styledMode;if(r.enabled){q.clearTimeout(this.hideTimer),this.followPointer=t(f)[0].series.tooltipOptions.followPointer;var B=this.getAnchor(f,h);h=B[0];var V=B[1];!d||f.series&&f.series.noSharedTooltip?d=f.getLabelConfig():(s.pointer.applyInactiveState(f),f.forEach(function(K){K.setState("hover"),y.push(K.getLabelConfig())}),(d={x:f[0].category,y:f[0].y}).points=y,f=f[0]),this.len=y.length,s=_.call(d,this),this.distance=D((_=f.series).tooltipOptions.distance,16),!1===s?this.hide():(this.split?this.renderSplit(s,t(c)):(c=this.getLabel(),r.style.width&&!S||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:s&&s.join?s.join(""):s}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+D(f.colorIndex,_.colorIndex)),S||c.attr({stroke:r.borderColor||f.color||_.color||"#666666"}),this.updatePosition({plotX:h,plotY:V,negative:f.negative,ttBelow:f.ttBelow,h:B[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),Y(this,"refresh")}},x.prototype.renderSplit=function(c,h){function s(X,W,G,w,A){return void 0===A&&(A=!0),G?(W=C?0:$,X=nt(X-w/2,u.left,u.right-w)):(W-=I,X=nt(X=A?X-w-n:X+n,A?X:u.left,u.right)),{x:X,y:W}}var r=this,f=r.chart,d=r.chart,y=d.plotHeight,_=d.plotLeft,S=d.plotTop,B=d.pointer,V=d.renderer,K=d.scrollablePixelsY,F=void 0===K?0:K,k=(K=void 0===(K=d.scrollingContainer)?{scrollLeft:0,scrollTop:0}:K).scrollLeft,a=K.scrollTop,e=d.styledMode,n=r.distance,o=r.options,l=r.options.positioner,u={left:k,right:k+d.chartWidth,top:a,bottom:a+d.chartHeight},v=r.getLabel(),C=!(!f.xAxis[0]||!f.xAxis[0].opposite),I=S+a,j=0,$=y-F;E(c)&&(c=[!1,c]),c=c.slice(0,h.length+1).reduce(function(X,W,G){if(!1!==W&&""!==W){var w=(G=h[G-1]||{isHeader:!0,plotX:h[0].plotX,plotY:y,series:{}}).isHeader,A=w?r:G.series,Z=A.tt,J=G.isHeader,it=G.series,ct="highcharts-color-"+D(G.colorIndex,it.colorIndex,"none");Z||(Z={padding:o.padding,r:o.borderRadius},e||(Z.fill=o.backgroundColor,Z["stroke-width"]=o.borderWidth),Z=V.label("",0,0,o[J?"headerShape":"shape"]||"callout",void 0,void 0,o.useHTML).addClass((J?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+ct).attr(Z).add(v)),Z.isActive=!0,Z.attr({text:W}),e||Z.css(o.style).shadow(o.shadow).attr({stroke:o.borderColor||G.color||it.color||"#333333"}),W=A.tt=Z,A=(J=W.getBBox()).width+W.strokeWidth(),w&&($+=j=J.height,C&&(I-=j)),it=void 0===(it=G.plotX)?0:it,ct=void 0===(ct=G.plotY)?0:ct;var O=G.series;if(G.isHeader){it=_+it;var H=S+y/2}else Z=O.xAxis,O=O.yAxis,it=Z.pos+nt(it,-n,Z.len+n),O.pos+ct>=a+S&&O.pos+ct<=a+S+y-F&&(H=O.pos+ct);
1it=nt(it,u.left-n,u.right+n),"number"==typeof H?(J=J.height+1,ct=l?l.call(r,A,J,G):s(it,H,w,A),X.push({align:l?0:void 0,anchorX:it,anchorY:H,boxWidth:A,point:G,rank:D(ct.rank,w?1:0),size:J,target:ct.y,tt:W,x:ct.x})):W.isActive=!1}return X},[]),!l&&c.some(function(X){return X.x<u.left})&&(c=c.map(function(X){var W=s(X.anchorX,X.anchorY,X.point.isHeader,X.boxWidth,!1);return Q(X,{target:W.y,x:W.x})})),r.cleanSplit(),z.distribute(c,$),c.forEach(function(X){var W=X.pos;X.tt.attr({visibility:typeof W>"u"?"hidden":"inherit",x:X.x,y:W+I,anchorX:X.anchorX,anchorY:X.anchorY})}),c=r.container,f=r.renderer,r.outside&&c&&f&&(d=v.getBBox(),f.setSize(d.width+d.x,d.height+d.y,!1),B=B.getChartPosition(),c.style.left=B.left+"px",c.style.top=B.top+"px")},x.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var c=this.chart,h=this.label,s=c.hoverPoint;if(h&&s){var r={x:0,y:0,width:0,height:0};s=this.getAnchor(s);var f=h.getBBox();s[0]+=c.plotLeft-h.translateX,s[1]+=c.plotTop-h.translateY,r.x=Math.min(0,s[0]),r.y=Math.min(0,s[1]),r.width=0>s[0]?Math.max(Math.abs(s[0]),f.width-s[0]):Math.max(Math.abs(s[0]),f.width),r.height=0>s[1]?Math.max(Math.abs(s[1]),f.height-Math.abs(s[1])):Math.max(Math.abs(s[1]),f.height),this.tracker?this.tracker.attr(r):(this.tracker=h.renderer.rect(r).addClass("highcharts-tracker").add(h),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},x.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},x.prototype.tooltipFooterHeaderFormatter=function(c,h){var s=h?"footer":"header",r=c.series,f=r.tooltipOptions,d=f.xDateFormat,y=r.xAxis,_=y&&"datetime"===y.options.type&&R(c.key),S=f[s+"Format"];return Y(this,"headerFormatter",h={isFooter:h,labelConfig:c},function(B){_&&!d&&(d=this.getXDateFormat(c,f,y)),_&&d&&(c.point&&c.point.tooltipDateKeys||["key"]).forEac
1h(function(V){S=S.replace("{point."+V+"}","{point."+V+":"+d+"}")}),r.chart.styledMode&&(S=this.styledModeFormat(S)),B.text=M(S,{point:c,series:r},this.chart)}),h.text},x.prototype.update=function(c){this.destroy(),L(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,L(!0,this.options,c))},x.prototype.updatePosition=function(c){var h=this.chart,s=h.pointer,r=this.getLabel(),f=c.plotX+h.plotLeft,d=c.plotY+h.plotTop;if(s=s.getChartPosition(),c=(this.options.positioner||this.getPosition).call(this,r.width,r.height,c),this.outside){var y=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(r.width+y,r.height+y,!1),(h=h.containerScaling)&&(ot(this.container,{transform:"scale("+h.scaleX+", "+h.scaleY+")"}),f*=h.scaleX,d*=h.scaleY),f+=s.left-c.x,d+=s.top-c.y}this.move(Math.round(c.x),Math.round(c.y||0),f,d)},x}();return z.Tooltip=T,z.Tooltip}),_t(et,"Core/Pointer.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Tooltip.js"],et["Core/Utilities.js"]],function(z,q,tt,nt){var ot=z.parse,st=q.charts,U=q.noop,Q=nt.addEvent,Y=nt.attr,M=nt.css,R=nt.defined,E=nt.extend,L=nt.find,D=nt.fireEvent,t=nt.isNumber,b=nt.isObject,P=nt.objectEach,T=nt.offset,x=nt.pick,c=nt.splat;return z=function(){function h(s,r){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=s,this.hasDragged=!1,this.options=r,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(s,r)}return h.prototype.applyInactiveState=function(s){var f,r=[];(s||[]).forEach(function(d){r.push(f=d.series),f.linkedParent&&r.push(f.linkedParent),f.linkedSeries&&(r=r.concat(f.linkedSeries)),f.navigatorSeries&&r.push(f.navigatorSeries)}),this.chart.series.forEach(function(d){-1===r.indexOf(d)?d.setState("inactive",!0):d.options.inactiveOtherPoints&&d.setAllPointsToState("inactive")})},h.prototype.destroy=function(){var s=this;typeof s.unDocMouseMove<"u"&&s.unDocMouseMove(),this.unbindContainerMouseLeave(),q.chartCount||(q.unbindDocumentMouseUp&&(q.unbindDocumentMouseUp=q.unbindDocumentMouseUp()),q.unbindDocumentTouchEnd&&(q.unbindDocumentTouchEnd=q.unbindDocumentTouchEnd())),clearInterval(s.tooltipTimeout),P(s,function(r,f){s[f]=void 0})},h.prototype.drag=function(s){var r=this.chart,f=r.options.chart,d=s.chartX,y=s.chartY,_=this.zoomHor,S=this.zoomVert,B=r.plotLeft,V=r.plotTop,K=r.plotWidth,F=r.plotHeight,k=this.selectionMarker,a=this.mouseDownX||0,e=this.mouseDownY||0,n=b(f.panning)?f.panning&&f.panning.enabled:f.panning,o=f.panKey&&s[f.panKey+"Key"];if((!k||!k.touch)&&(d<B?d=B:d>B+K&&(d=B+K),y<V?y=V:y>V+F&&(y=V+F),this.hasDragged=Math.sqrt(Math.pow(a-d,2)+Math.pow(e-y,2)),10<this.hasDragged)){var l=r.isInsidePlot(a-B,e-V);r.hasCartesianSeries&&(this.zoomX||this.zoomY)&&l&&!o&&!k&&(this.selectionMarker=k=r.renderer.rect(B,V,_?1:K,S?1:F,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||k.attr({fill:f.selectionMarkerFill||ot("#335cad").setOpacity(.25).get()})),k&&_&&(d-=a,k.attr({width:Math.abs(d),x:(0<d?0:d)+a})),k&&S&&(d=y-e,k.attr({height:Math.abs(d),y:(0<d?0:d)+e})),l&&!k&&n&&r.pan(s,f.panning)}},h.prototype.dragStart=function(s){var r=this.chart;r.mouseIsDown=s.type,r.cancelClick=!1,r.mouseDownX=this.mouseDownX=s.chartX,r.mouseDownY=this.mouseDownY=s.chartY},h.prototype.drop=function(s){var r=this,f=this.chart,d=this.hasPinched;if(this.selectionMarker){var F,y={originalEvent:s,xAxis:[],yAxis:[]},_=this.selectionMarker,S=_.attr?_.attr("x"):_.x,B=_.attr?_.attr("y"):_.y,V=_.attr?_.attr("width"):_.width,K=_.attr?_.attr("height"):_.height;(this.hasDragged||d)&&(f.axes.forEach(function(k){if(k.zoomEnabled&&R(k.min)&&(d||r[{xAxis:"zoomX",yAxis:"zoomY"}[k.coll]])&&t(S)&&t(B)){var a=k.horiz,e="touchend"===s.type?k.minPixelPadding:0,n=k.toValue((a?S:B)+e);a=k.toValue((a?S+V:B+K)-e),y[k.coll].push({axis:k,min:Math.min(n,a),max:Math.max(n,a)}),F=!0}}),F&&D(f,"selection",y,function(k){f.zoom(E(k,d?{animation:!1}:null))})),t(f.index)&&(this.selectionMarker=this.selectionMarker.destroy()),d&&this.scaleGroups()}f&&t(f.index)&&(M(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},h.prototype.findNearestKDPoint=function(s,r,f){var _,d=this.chart,y=d.hoverPoint;return d=d.tooltip,y&&d&&d.isStickyOnContact()?y:(s.forEach(function(S){var B=!(S.noSharedTooltip&&r)&&0>S.options.findNearestPointBy.indexOf("y");if(S=S.searchPoint(f,B),(B=b(S,!0))&&!(B=!b(_,!0))){var V=_.dist-S.dist,K=(S.series.group&&S.series.group.zIndex)-(_.series.group&&_.series.group.zIndex);B=0<(0!=(B=_.distX-S.distX)&&r?B:0!==V?V:0!==K?K:_.series.index>S.series.index?-1:1)}
1B&&(_=S)}),_)},h.prototype.getChartCoordinatesFromPoint=function(s,r){var f=s.series,d=f.xAxis;f=f.yAxis;var y=x(s.clientX,s.plotX),_=s.shapeArgs;return d&&f?r?{chartX:d.len+d.pos-y,chartY:f.len+f.pos-s.plotY}:{chartX:y+d.pos,chartY:s.plotY+f.pos}:_&&_.x&&_.y?{chartX:_.x,chartY:_.y}:void 0},h.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=T(this.chart.container))},h.prototype.getCoordinates=function(s){var r={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(f){r[f.isXAxis?"xAxis":"yAxis"].push({axis:f,value:f.toValue(s[f.horiz?"chartX":"chartY"])})}),r},h.prototype.getHoverData=function(s,r,f,d,y,_){var S,B=[];d=!(!d||!s);var V=r&&!r.stickyTracking,K={chartX:_?_.chartX:void 0,chartY:_?_.chartY:void 0,shared:y};return D(this,"beforeGetHoverData",K),V=V?[r]:f.filter(function(F){return K.filter?K.filter(F):F.visible&&!(!y&&F.directTouch)&&x(F.options.enableMouseTracking,!0)&&F.stickyTracking}),r=(S=d||!_?s:this.findNearestKDPoint(V,y,_))&&S.series,S&&(y&&!r.noSharedTooltip?(V=f.filter(function(F){return K.filter?K.filter(F):F.visible&&!(!y&&F.directTouch)&&x(F.options.enableMouseTracking,!0)&&!F.noSharedTooltip})).forEach(function(F){var k=L(F.points,function(a){return a.x===S.x&&!a.isNull});b(k)&&(F.chart.isBoosting&&(k=F.getPoint(k)),B.push(k))}):B.push(S)),D(this,"afterGetHoverData",K={hoverPoint:S}),{hoverPoint:K.hoverPoint,hoverSeries:r,hoverPoints:B}},h.prototype.getPointFromEvent=function(s){s=s.target;for(var r;s&&!r;)r=s.point,s=s.parentNode;return r},h.prototype.onTrackerMouseOut=function(s){s=s.relatedTarget||s.toElement;var r=this.chart.hoverSeries;this.isDirectTouch=!1,!r||!s||r.stickyTracking||this.inClass(s,"highcharts-tooltip")||this.inClass(s,"highcharts-series-"+r.index)&&this.inClass(s,"highcharts-tracker")||r.onMouseOut()},h.prototype.inClass=function(s,r){for(var f;s;){if(f=Y(s,"class")){if(-1!==f.indexOf(r))return!0;if(-1!==f.indexOf("highcharts-container"))return!1}s=s.parentNode}},h.prototype.init=function(s,r){this.options=r,this.chart=s,this.runChartClick=r.chart.events&&!!r.chart.events.click,this.pinchDown=[],this.lastValidTouch={},tt&&(s.tooltip=new tt(s,r.tooltip),this.followTouchMove=x(r.tooltip.followTouchMove,!0)),this.setDOMEvents()},h.prototype.normalize=function(s,r){var f=s.touches,d=f?f.length?f.item(0):x(f.changedTouches,s.changedTouches)[0]:s;return r||(r=this.getChartPosition()),f=d.pageX-r.left,r=d.pageY-r.top,(d=this.chart.containerScaling)&&(f/=d.scaleX,r/=d.scaleY),E(s,{chartX:Math.round(f),chartY:Math.round(r)})},h.prototype.onContainerClick=function(s){var r=this.chart,f=r.hoverPoint;s=this.normalize(s);var d=r.plotLeft,y=r.plotTop;r.cancelClick||(f&&this.inClass(s.target,"highcharts-tracker")?(D(f.series,"click",E(s,{point:f})),r.hoverPoint&&f.firePointEvent("click",s)):(E(s,this.getCoordinates(s)),r.isInsidePlot(s.chartX-d,s.chartY-y)&&D(r,"click",s)))},h.prototype.onContainerMouseDown=function(s){var r=!(1&~(s.buttons||s.button));s=this.normalize(s),q.isFirefox&&0!==s.button&&this.onContainerMouseMove(s),(typeof s.button>"u"||r)&&(this.zoomOption(s),r&&s.preventDefault&&s.preventDefault(),this.dragStart(s))},h.prototype.onContainerMouseLeave=function(s){var r=st[x(q.hoverChartIndex,-1)],f=this.chart.tooltip;s=this.normalize(s),r&&(s.relatedTarget||s.toElement)&&(r.pointer.reset(),r.pointer.chartPosition=void 0),f&&!f.isHidden&&this.reset()},h.prototype.onContainerMouseEnter=function(s){delete this.chartPosition},h.prototype.onContainerMouseMove=function(s){var r=this.chart;s=this.normalize(s),this.setHoverChartIndex(),s.preventDefault||(s.returnValue=!1),"mousedown"===r.mouseIsDown&&this.drag(s),r.openMenu||!this.inClass(s.target,"highcharts-tracker")&&!r.isInsidePlot(s.chartX-r.plotLeft,s.chartY-r.plotTop)||this.runPointActions(s)},h.prototype.onDocumentTouchEnd=function(s){st[q.hoverChartIndex]&&st[q.hoverChartIndex].pointer.drop(s)},h.prototype.onContainerTouchMove=function(s){this.touch(s)},h.prototype.onContainerTouchStart=function(s){this.zoomOption(s),this.touch(s,!0)},h.prototype.onDocumentMouseMove=function(s){var r=this.chart,f=this.chartPosition;s=this.normalize(s,f);var d=r.tooltip;!f||d&&d.isStickyOnContact()||r.isInsidePlot(s.chartX-r.plotLeft,s.chartY-r.plotTop)||this.inClass(s.target,"highcharts-tracker")||this.reset()},h.prototype.onDocumentMouseUp=function(s){var r=st[x(q.hoverChartIndex,-1)];r&&r.pointer.drop(s)},h.prototype.pinch=function(s){var r=this,f=r.chart,d=r.pinchDown,y=s.touches||[],_=y.length,S=r.lastValidTouch,B=r.hasZoom,V=r.selectionMarker,K={},F=1===_&&(r.inClass(s.target,"highcharts-tracker")&&f.runTrackerClick||r.runChartClick),k={};1<_&&(r.initiated=!0),B&&r.initiated&&!F&&!1!==s.cancelable&&s.preventDefault(),[].map.call(y,function(a){return r.normalize(a)}),"touchstart"===s.type?([].forEach.call(y,function(a,e){d[e]={chartX:a.chartX,chartY:a.chartY}}),S.x=[d[0].chartX,d[1]&&d[1].chartX],S.y=[d[0].chartY,d[1]&&d[1].chartY],f.axes.forEac
1h(function(a){if(a.zoomEnabled){var e=f.bounds[a.horiz?"h":"v"],n=a.minPixelPadding,o=a.toPixels(Math.min(x(a.options.min,a.dataMin),a.dataMin)),l=a.toPixels(Math.max(x(a.options.max,a.dataMax),a.dataMax)),u=Math.max(o,l);e.min=Math.min(a.pos,Math.min(o,l)-n),e.max=Math.max(a.pos+a.len,u+n)}}),r.res=!0):r.followTouchMove&&1===_?this.runPointActions(r.normalize(s)):d.length&&(V||(r.selectionMarker=V=E({destroy:U,touch:!0},f.plotBox)),r.pinchTranslate(d,y,K,V,k,S),r.hasPinched=B,r.scaleGroups(K,k),r.res&&(r.res=!1,this.reset(!1,0)))},h.prototype.pinchTranslate=function(s,r,f,d,y,_){this.zoomHor&&this.pinchTranslateDirection(!0,s,r,f,d,y,_),this.zoomVert&&this.pinchTranslateDirection(!1,s,r,f,d,y,_)},h.prototype.pinchTranslateDirection=function(s,r,f,d,y,_,S,B){var n,o,V=this.chart,K=s?"x":"y",F=s?"X":"Y",k="chart"+F,a=s?"width":"height",e=V["plot"+(s?"Left":"Top")],l=B||1,u=V.inverted,v=V.bounds[s?"h":"v"],C=1===r.length,I=r[0][k],j=f[0][k],$=!C&&r[1][k],X=!C&&f[1][k];if((f=function(){"number"==typeof X&&20<Math.abs(I-$)&&(l=B||Math.abs(j-X)/Math.abs(I-$)),o=(e-j)/l+I,n=V["plot"+(s?"Width":"Height")]/l})(),(r=o)<v.min){r=v.min;var W=!0}else r+n>v.max&&(r=v.max-n,W=!0);W?(j-=.8*(j-S[K][0]),"number"==typeof X&&(X-=.8*(X-S[K][1])),f()):S[K]=[j,X],u||(_[K]=o-e,_[a]=n),_=u?1/l:l,y[a]=n,y[K]=r,d[u?s?"scaleY":"scaleX":"scale"+F]=l,d["translate"+F]=_*e+(j-_*I)},h.prototype.reset=function(s,r){var f=this.chart,d=f.hoverSeries,y=f.hoverPoint,_=f.hoverPoints,S=f.tooltip,B=S&&S.shared?_:y;s&&B&&c(B).forEach(function(V){V.series.isCartesian&&typeof V.plotX>"u"&&(s=!1)}),s?S&&B&&c(B).length&&(S.refresh(B),S.shared&&_?_.forEach(function(V){V.setState(V.state,!0),V.series.isCartesian&&(V.series.xAxis.crosshair&&V.series.xAxis.drawCrosshair(null,V),V.series.yAxis.crosshair&&V.series.yAxis.drawCrosshair(null,V))}):y&&(y.setState(y.state,!0),f.axes.forEach(function(V){V.crosshair&&y.series[V.coll]===V&&V.drawCrosshair(null,y)}))):(y&&y.onMouseOut(),_&&_.forEach(function(V){V.setState()}),d&&d.onMouseOut(),S&&S.hide(r),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),f.axes.forEach(function(V){V.hideCrosshair()}),this.hoverX=f.hoverPoints=f.hoverPoint=null)},h.prototype.runPointActions=function(s,r){var f=this.chart,d=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,y=!!d&&d.shared,_=r||f.hoverPoint,S=_&&_.series||f.hoverSeries;_=(S=this.getHoverData(_,S,f.series,(!s||"touchmove"!==s.type)&&(!!r||S&&S.directTouch&&this.isDirectTouch),y,s)).hoverPoint;var B=S.hoverPoints;if(r=(S=S.hoverSeries)&&S.tooltipOptions.followPointer,y=y&&S&&!S.noSharedTooltip,_&&(_!==f.hoverPoint||d&&d.isHidden)){if((f.hoverPoints||[]).forEach(function(V){-1===B.indexOf(V)&&V.setState()}),f.hoverSeries!==S&&S.onMouseOver(),this.applyInactiveState(B),(B||[]).forEach(function(V){V.setState("hover")}),f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut"),!_.series)return;f.hoverPoints=B,f.hoverPoint=_,_.firePointEvent("mouseOver"),d&&d.refresh(y?B:_,s)}else r&&d&&!d.isHidden&&(_=d.getAnchor([{}],s),d.updatePosition({plotX:_[0],plotY:_[1]}));this.unDocMouseMove||(this.unDocMouseMove=Q(f.container.ownerDocument,"mousemove",function(V){var K=st[q.hoverChartIndex];K&&K.pointer.onDocumentMouseMove(V)})),f.axes.forEach(function(V){var F,K=x((V.crosshair||{}).snap,!0);K&&((F=f.hoverPoint)&&F.series[V.coll]===V||(F=L(B,function(k){return k.series[V.coll]===V}))),F||!K?V.drawCrosshair(s,F):V.hideCrosshair()})},h.prototype.scaleGroups=function(s,r){var d,f=this.chart;f.series.forEach(function(y){d=s||y.getPlotBox(),y.xAxis&&y.xAxis.zoomEnabled&&y.group&&(y.group.attr(d),y.markerGroup&&(y.markerGroup.attr(d),y.markerGroup.clip(r?f.clipRect:null)),y.dataLabelsGroup&&y.dataLabelsGroup.attr(d))}),f.clipRect.attr(r||f.clipBox)},h.prototype.setDOMEvents=function(){var s=this.chart.container,r=s.ownerDocument;s.onmousedown=this.onContainerMouseDown.bind(this),s.onmousemove=this.onContainerMouseMove.bind(this),s.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=Q(s,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=Q(s,"mouseleave",this.onContainerMouseLeave.bind(this)),q.unbindDocumentMouseUp||(q.unbindDocumentMouseUp=Q(r,"mouseup",this.onDocumentMouseUp.bind(this))),q.hasTouch&&(Q(s,"touchstart",this.onContainerTouchStart.bind(this)),Q(s,"touchmove",this.onContainerTouchMove.bind(this)),q.unbindDocumentTouchEnd||(q.unbindDocumentTouchEnd=Q(r,"touchend",this.onDocumentTouchEnd.bind(this))))},h.prototype.setHoverChartIndex=function(){var s=this.chart,r=q.charts[x(q.hoverChartIndex,-1)];r&&r!==s&&r.pointer.onContainerMouseLeave({relatedTarget:!0}),r&&r.mouseIsDown||(q.hoverChartIndex=s.index)},h.prototype.touch=function(s,r){var f=this.chart;if(this.setHoverChartIndex(),1===s.touches.length)if(s=this.normalize(s),f.isInsidePlot(s.chartX-f.plotLeft,s.chartY-f.plotTop)&&!f.openMenu){if(r&&this.runPointActions(s),"touchmove"===s.type)var y=!!(r=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(r[0].chartX-s.chartX,2)+Math.pow(r[0].chartY-s.chartY,2));x(y,!0)&&this.pinch(s)}else r&&this.reset();else 2===s.touches.length&&this.pinch(s)},h.prototype.zoomOption=function(s){var r=this.chart,f=r.options.chart,d=f.zoomType||"";r=r.inverted,/touch/.test(s.type)&&(d=x(f.pinchType,d)),this.zoomX=s=/x
1/.test(d),this.zoomY=d=/y/.test(d),this.zoomHor=s&&!r||d&&r,this.zoomVert=d&&!r||s&&r,this.hasZoom=s||d},h}(),q.Pointer=z}),_t(et,"Core/MSPointer.js",[et["Core/Globals.js"],et["Core/Pointer.js"],et["Core/Utilities.js"]],function(z,q,tt){function nt(){var b=[];return b.item=function(P){return this[P]},E(D,function(P){b.push({pageX:P.pageX,pageY:P.pageY,target:P.target})}),b}function ot(b,P,T,x){"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!U[z.hoverChartIndex]||(x(b),(x=U[z.hoverChartIndex].pointer)[P]({type:T,target:b.currentTarget,preventDefault:Y,touches:nt()}))}var st=this&&this.__extends||function(){var b=function(P,T){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,c){x.__proto__=c}||function(x,c){for(var h in c)c.hasOwnProperty(h)&&(x[h]=c[h])})(P,T)};return function(P,T){function x(){this.constructor=P}b(P,T),P.prototype=null===T?Object.create(T):(x.prototype=T.prototype,new x)}}(),U=z.charts,Q=z.doc,Y=z.noop,M=tt.addEvent,R=tt.css,E=tt.objectEach,L=tt.removeEvent,D={},t=!!z.win.PointerEvent;return function(b){function P(){return null!==b&&b.apply(this,arguments)||this}return st(P,b),P.prototype.batchMSEvents=function(T){T(this.chart.container,t?"pointerdown":"MSPointerDown",this.onContainerPointerDown),T(this.chart.container,t?"pointermove":"MSPointerMove",this.onContainerPointerMove),T(Q,t?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},P.prototype.destroy=function(){this.batchMSEvents(L),b.prototype.destroy.call(this)},P.prototype.init=function(T,x){b.prototype.init.call(this,T,x),this.hasZoom&&R(T.container,{"-ms-touch-action":"none","touch-action":"none"})},P.prototype.onContainerPointerDown=function(T){ot(T,"onContainerTouchStart","touchstart",function(x){D[x.pointerId]={pageX:x.pageX,pageY:x.pageY,target:x.currentTarget}})},P.prototype.onContainerPointerMove=function(T){ot(T,"onContainerTouchMove","touchmove",function(x){D[x.pointerId]={pageX:x.pageX,pageY:x.pageY},D[x.pointerId].target||(D[x.pointerId].target=x.currentTarget)})},P.prototype.onDocumentPointerUp=function(T){ot(T,"onDocumentTouchEnd","touchend",function(x){delete D[x.pointerId]})},P.prototype.setDOMEvents=function(){b.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(M)},P}(q)}),_t(et,"Core/Legend.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt){var nt=z.animObject,ot=z.setAnimation,st=tt.addEvent,U=tt.css,Q=tt.defined,Y=tt.discardElement,M=tt.find,R=tt.fireEvent,E=tt.format,L=tt.isNumber,D=tt.merge,t=tt.pick,b=tt.relativeLength,P=tt.stableSort,T=tt.syncTimeout;z=tt.wrap,tt=q.isFirefox;var x=q.marginNames,c=q.win,h=function(){function s(r,f){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=r,this.init(r,f)}return s.prototype.init=function(r,f){this.chart=r,this.setOptions(f),f.enabled&&(this.render(),st(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=st(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},s.prototype.setOptions=function(r){var f=t(r.padding,8);this.options=r,this.chart.styledMode||(this.itemStyle=r.itemStyle,this.itemHiddenStyle=D(this.itemStyle,r.itemHiddenStyle)),this.itemMarginTop=r.itemMarginTop||0,this.itemMarginBottom=r.itemMarginBottom||0,this.padding=f,this.initialItemY=f-5,this.symbolWidth=t(r.symbolWidth,16),this.pages=[],this.proximate="proximate"===r.layout&&!this.chart.inverted,this.baseline=void 0},s.prototype.update=function(r,f){var d=this.chart;this.setOptions(D(!0,this.options,r)),this.destroy(),d.isDirtyLegend=d.isDirtyBox=!0,t(f,!0)&&d.redraw(),R(this,"afterUpdate")},s.prototype.colorizeItem=function(r,f){if(r.legendGroup[f?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var d=this.options,y=r.legendItem,_=r.legendLine,S=r.legendSymbol,B=this.itemHiddenStyle.color;d=f?d.itemStyle.color:B;var V=f&&r.color||B,K=r.options&&r.options.marker,F={fill:V};y&&y.css({fill:d,color:d}),_&&_.attr({stroke:V}),S&&(K&&S.isMarker&&(F=r.pointAttribs(),f||(F.stroke=F.fill=B)),S.attr(F))}R(this,"afterColorizeItem",{item:r,visible:f})}
1,s.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},s.prototype.positionItem=function(r){var f=this,d=this.options,y=d.symbolPadding,_=!d.rtl,S=r._legendItemPos;d=S[0],S=S[1];var B=r.checkbox,V=r.legendGroup;V&&V.element&&(y={translateX:_?d:this.legendWidth-d-2*y-4,translateY:S},_=function(){R(f,"afterPositionItem",{item:r})},Q(V.translateY)?V.animate(y,void 0,_):(V.attr(y),_())),B&&(B.x=d,B.y=S)},s.prototype.destroyItem=function(r){var f=r.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(d){r[d]&&(r[d]=r[d].destroy())}),f&&Y(r.checkbox)},s.prototype.destroy=function(){function r(f){this[f]&&(this[f]=this[f].destroy())}this.getAllItems().forEach(function(f){["legendItem","legendGroup"].forEach(r,f)}),"clipRect up down pager nav box title group".split(" ").forEach(r,this),this.display=null},s.prototype.positionCheckboxes=function(){var r=this.group&&this.group.alignAttr,f=this.clipHeight||this.legendHeight,d=this.titleHeight;if(r){var y=r.translateY;this.allItems.forEach(function(_){var S=_.checkbox;if(S){var B=y+d+S.y+(this.scrollOffset||0)+3;U(S,{left:r.translateX+_.checkboxOffset+S.x-20+"px",top:B+"px",display:this.proximate||B>y-6&&B<y+f-6?"":"none"})}},this)}},s.prototype.renderTitle=function(){var r=this.options,f=this.padding,d=r.title,y=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,f-3,f-4,null,null,null,r.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),y=(r=this.title.getBBox()).height,this.offsetWidth=r.width,this.contentGroup.attr({translateY:y})),this.titleHeight=y},s.prototype.setText=function(r){var f=this.options;r.legendItem.attr({text:f.labelFormat?E(f.labelFormat,r,this.chart):f.labelFormatter.call(r)})},s.prototype.renderItem=function(r){var f=this.chart,d=f.renderer,y=this.options,_=this.symbolWidth,S=y.symbolPadding,B=this.itemStyle,V=this.itemHiddenStyle,K="horizontal"===y.layout?t(y.itemDistance,20):0,F=!y.rtl,k=r.legendItem,a=!r.series,e=!a&&r.series.drawLegendSymbol?r.series:r,n=e.options;K=_+S+K+((n=this.createCheckboxForItem&&n&&n.showCheckbox)?20:0);var o=y.useHTML,l=r.options.className;k||(r.legendGroup=d.g("legend-item").addClass("highcharts-"+e.type+"-series highcharts-color-"+r.colorIndex+(l?" "+l:"")+(a?" highcharts-series-"+r.index:"")).attr({zIndex:1}).add(this.scrollGroup),r.legendItem=k=d.text("",F?_+S:-S,this.baseline||0,o),f.styledMode||k.css(D(r.visible?B:V)),k.attr({align:F?"left":"right",zIndex:2}).add(r.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(f.styledMode?12:B.fontSize,k),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,k.attr("y",this.baseline)),this.symbolHeight=y.symbolHeight||this.fontMetrics.f,e.drawLegendSymbol(this,r),this.setItemEvents&&this.setItemEvents(r,k,o)),n&&!r.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(r),this.colorizeItem(r,r.visible),!f.styledMode&&B.width||k.css({width:(y.itemWidth||this.widthOption||f.spacingBox.width)-K+"px"}),this.setText(r),f=k.getBBox(),r.itemWidth=r.checkboxOffset=y.itemWidth||r.legendItemWidth||f.width+K,this.maxItemWidth=Math.max(this.maxItemWidth,r.itemWidth),this.totalItemWidth+=r.itemWidth,this.itemHeight=r.itemHeight=Math.round(r.legendItemHeight||f.height||this.symbolHeight)},s.prototype.layoutItem=function(r){var f=this.options,d=this.padding,y="horizontal"===f.layout,_=r.itemHeight,S=this.itemMarginBottom,B=this.itemMarginTop,V=y?t(f.itemDistance,20):0,K=this.maxLegendWidth;f=f.alignColumns&&this.totalItemWidth>K?this.maxItemWidth:r.itemWidth,y&&this.itemX-d+f>K&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=B+this.lastLineHeight+S),this.lastLineHeight=0),this.lastItemY=B+this.itemY+S,this.lastLineHeight=Math.max(_,this.lastLineHeight),r._legendItemPos=[this.itemX,this.itemY],y?this.itemX+=f:(this.itemY+=B+_+S,this.lastLineHeight=_),this.offsetWidth=this.widthOption||Math.max((y?this.itemX-d-(r.checkbox?0:V):f)+d,this.offsetWidth)},s.prototype.getAllItems=function(){var r=[];
1return this.chart.series.forEach(function(f){var d=f&&f.options;f&&t(d.showInLegend,!Q(d.linkedTo)&&void 0,!0)&&(r=r.concat(f.legendItems||("point"===d.legendType?f.data:f)))}),R(this,"afterGetAllItems",{allItems:r}),r},s.prototype.getAlignment=function(){var r=this.options;return this.proximate?r.align.charAt(0)+"tv":r.floating?"":r.align.charAt(0)+r.verticalAlign.charAt(0)+r.layout.charAt(0)},s.prototype.adjustMargins=function(r,f){var d=this.chart,y=this.options,_=this.getAlignment();_&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(S,B){S.test(_)&&!Q(r[B])&&(d[x[B]]=Math.max(d[x[B]],d.legend[(B+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][B]*y[B%2?"x":"y"]+t(y.margin,12)+f[B]+(d.titleOffset[B]||0)))})},s.prototype.proximatePositions=function(){var r=this.chart,f=[],d="left"===this.options.align;this.allItems.forEach(function(y){var _,S=d;if(y.yAxis){y.xAxis.options.reversed&&(S=!S),y.points&&(_=M(S?y.points:y.points.slice(0).reverse(),function(V){return L(V.plotY)})),S=this.itemMarginTop+y.legendItem.getBBox().height+this.itemMarginBottom;var B=y.yAxis.top-r.plotTop;y.visible?(_=_?_.plotY:y.yAxis.height,_+=B-.3*S):_=B+y.yAxis.height,f.push({target:_,size:S,item:y})}},this),q.distribute(f,r.plotHeight),f.forEach(function(y){y.item._legendItemPos[1]=r.plotTop-r.spacing[0]+y.pos})},s.prototype.render=function(){var r=this.chart,f=r.renderer,d=this.group,y=this.box,_=this.options,S=this.padding;this.itemX=S,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=b(_.width,r.spacingBox.width-S);var B=r.spacingBox.width-2*S-_.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(B/=2),this.maxLegendWidth=this.widthOption||B,d||(this.group=d=f.g("legend").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(d),this.scrollGroup=f.g().add(this.contentGroup)),this.renderTitle();var V=this.getAllItems();P(V,function(F,k){return(F.options&&F.options.legendIndex||0)-(k.options&&k.options.legendIndex||0)}),_.reversed&&V.reverse(),this.allItems=V,this.display=B=!!V.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,V.forEach(this.renderItem,this),V.forEach(this.layoutItem,this),V=(this.widthOption||this.offsetWidth)+S;var K=this.lastItemY+this.lastLineHeight+this.titleHeight;K=this.handleOverflow(K),K+=S,y||(this.box=y=f.rect().addClass("highcharts-legend-box").attr({r:_.borderRadius}).add(d),y.isNew=!0),r.styledMode||y.attr({stroke:_.borderColor,"stroke-width":_.borderWidth||0,fill:_.backgroundColor||"none"}).shadow(_.shadow),0<V&&0<K&&(y[y.isNew?"attr":"animate"](y.crisp.call({},{x:0,y:0,width:V,height:K},y.strokeWidth())),y.isNew=!1),y[B?"show":"hide"](),r.styledMode&&"none"===d.getStyle("display")&&(V=K=0),this.legendWidth=V,this.legendHeight=K,B&&this.align(),this.proximate||this.positionItems(),R(this,"afterRender")},s.prototype.align=function(r){void 0===r&&(r=this.chart.spacingBox);var f=this.chart,d=this.options,y=r.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<f.titleOffset[0]?y+=f.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<f.titleOffset[2]&&(y-=f.titleOffset[2]),y!==r.y&&(r=D(r,{y})),this.group.align(D(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,r)},s.prototype.handleOverflow=function(r){var f=this,d=this.chart,y=d.renderer,_=this.options,S=_.y,B=this.padding;S=d.spacingBox.height+("top"===_.verticalAlign?-S:S)-B;var K,l,V=_.maxHeight,F=this.clipRect,k=_.navigation,a=t(k.animation,!0),e=k.arrowSize||12,n=this.nav,o=this.pages,u=this.allItems,v=function(I){"number"==typeof I?F.attr({height:I}):F&&(f.clipRect=F.destroy(),f.contentGroup.clip()),f.contentGroup.div&&(f.contentGroup.div.style.clip=I?"rect("+B+"px,9999px,"+(B+I)+"px,0)":"auto")},C=function(I){return f[I]=y.circle(0,0,1.3*e).translate(e/2,e/2).add(n),d.styledMode||f[I].attr("fill","rgba(0,0,0,0.0001)"),f[I]};return"horizontal"!==_.layout||"middle"===_.verticalAlign||_.floating||(S/=2),V&&(S=Math.min(S,V)),o.length=0,r>S&&!1!==k.enabled?(this.clipHeight=K=Math.max(S-20-this.titleHeight-B,0),this.currentPage=t(this.currentPage,1),this.fullHeight=r,u.forEach(function(I,j){var $=I._legendItemPos[1],X=Math.round(I.legendItem.getBBox().height),W=o.length;(!W||$-o[W-1]>K&&(l||$)!==o[W-1])&&(o.push(l||$),W++),I.pageIx=W-1,l&&(u[j-1].pageIx=W-1),j===u.length-1&&$+X-o[W-1]>K&&$!==l&&(o.push($),I.pageIx=W),$!==l&&(l=$)}),F||(F=f.clipRect=y.clipRect(0,B,9999,0),f.contentGroup.clip(F)),v(K),n||(this.nav=n=y.g().attr({zIndex:1}).add(this.group),this.up=y.symbol("triangle",0,0,e,e).add(n),C("upTracker").on("click",function(){f.scroll(-1,a)}),this.pager=y.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(k.style),this.pager.add(n),this.down=y.symbol("triangle-down",0,0,e,e).add(n),C("downTracker").on("click",function(){f.scroll(1,a)})),f.scroll(0),r=S):n&&(v(),this.nav=n.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),r},s.prototype.scroll=function(r,f){var d=this,y=this.chart,_=this.pages,S=_.length,B=this.currentPage+r;r=this.clipHeight;var V=this.options.navigation,K=this.pager,F=this.padding;B>S&&(B=S),0<B&&(typeof f<"u"&&ot(f,y),this.nav.attr({translateX:F,translateY:r+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(k){k.attr({class:1===B?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),K.attr({text:B+"/"+S}),[this.down,this.downTracker].forEach(function(k){k.attr({x:18+this.pager.getBBox().width,class:B===S?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),y.styledMode||(this.up.attr({fill:1===B?V.inactiveColor:V.activeColor}),this.upTracker.css({cursor:1===B?"default":"pointer"}),this.down.attr({fill:B===S?V.inactiveColor:V.activeColor}),this.downTracker.css({cursor:B===S?"default":"pointer"})),this.scrollOffset=-_[B-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=B,this.positionCheckboxes(),f=nt(t(f,y.renderer.globalAnimation,!0)),T(function(){R(d,"afterScroll",{currentPage:B})},f.duration))},s}();return(/Trident\/7\.0/.test(c.navigator&&c.navigator.userAgent)||tt)&&z(h.prototype,"positionItem",function(s,r){var f=this,d=function(){r._legendItemPos&&s.call(f,r)};d(),f.bubbleLegend||setTimeout(d)}),q.Legend=h,q.Legend}
1),_t(et,"Core/Series/Point.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt){var nt=z.animObject,ot=tt.defined,st=tt.erase,U=tt.extend,Q=tt.fireEvent,Y=tt.format,M=tt.getNestedProperty,R=tt.isArray,E=tt.isNumber,L=tt.isObject,D=tt.syncTimeout,t=tt.pick,b=tt.removeEvent,P=tt.uniqueKey;return z=function(){function T(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return T.prototype.animateBeforeDestroy=function(){var x=this,c={x:x.startXPos,opacity:0},s=x.getGraphicalProps();s.singular.forEach(function(r){x[r]=x[r].animate("dataLabel"===r?{x:x[r].startXPos,y:x[r].startYPos,opacity:0}:c)}),s.plural.forEach(function(r){x[r].forEach(function(f){f.element&&f.animate(U({x:x.startXPos},f.startYPos?{x:f.startXPos,y:f.startYPos}:{}))})})},T.prototype.applyOptions=function(x,c){var h=this.series,s=h.options.pointValKey||h.pointValKey;return x=T.prototype.optionsToObject.call(this,x),U(this,x),this.options=this.options?U(this.options,x):x,x.group&&delete this.group,x.dataLabels&&delete this.dataLabels,s&&(this.y=T.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=t(this.isValid&&!this.isValid(),null===this.x||!E(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof c>"u"&&h.xAxis&&h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this)),typeof this.x>"u"&&h&&(this.x=typeof c>"u"?h.autoIncrement(this):c),this},T.prototype.destroy=function(){function x(){for(d in(c.graphic||c.dataLabel||c.dataLabels)&&(b(c),c.destroyElements()),c)c[d]=null}var c=this,h=c.series,s=h.chart;h=h.options.dataSorting;var d,r=s.hoverPoints,f=nt(c.series.chart.renderer.globalAnimation);c.legendItem&&s.legend.destroyItem(c),r&&(c.setState(),st(r,c),r.length||(s.hoverPoints=null)),c===s.hoverPoint&&c.onMouseOut(),h&&h.enabled?(this.animateBeforeDestroy(),D(x,f.duration)):x(),s.pointCount--},T.prototype.destroyElements=function(x){var c=this;(x=c.getGraphicalProps(x)).singular.forEach(function(h){c[h]=c[h].destroy()}),x.plural.forEach(function(h){c[h].forEach(function(s){s.element&&s.destroy()}),delete c[h]})},T.prototype.firePointEvent=function(x,c,h){var s=this,r=this.series.options;(r.point.events[x]||s.options&&s.options.events&&s.options.events[x])&&s.importEvents(),"click"===x&&r.allowPointSelect&&(h=function(f){s.select&&s.select(null,f.ctrlKey||f.metaKey||f.shiftKey)}),Q(s,x,c,h)},T.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},T.prototype.getGraphicalProps=function(x){var s,c=this,h=[],r={singular:[],plural:[]};for((x=x||{graphic:1,dataLabel:1}).graphic&&h.push("graphic","shadowGroup"),x.dataLabel&&h.push("dataLabel","dataLabelUpper","connector"),s=h.length;s--;){var f=h[s];c[f]&&r.singular.push(f)}return["dataLabel","connector"].forEach(function(d){var y=d+"s";x[d]&&c[y]&&r.plural.push(y)}),r},T.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},T.prototype.getNestedProperty=function(x){if(x)return 0===x.indexOf("custom.")?M(x,this.options):this[x]},T.prototype.getZone=function(){var x=this.series,c=x.zones;x=x.zoneAxis||"y";var s,h=0;for(s=c[h];this[x]>=s.value;)s=c[++h];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=s&&s.color&&!this.options.color?s.color:this.nonZonedColor,s},T.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},T.prototype.init=function(x,c,h){return this.series=x,this.applyOptions(c,h),this.id=ot(this.id
1)?this.id:P(),this.resolveColor(),x.chart.pointCount++,Q(this,"afterInit"),this},T.prototype.optionsToObject=function(x){var c={},h=this.series,s=h.options.keys,r=s||h.pointArrayMap||["y"],f=r.length,d=0,y=0;if(E(x)||null===x)c[r[0]]=x;else if(R(x))for(!s&&x.length>f&&("string"==(h=typeof x[0])?c.name=x[0]:"number"===h&&(c.x=x[0]),d++);y<f;)s&&typeof x[d]>"u"||(0<r[y].indexOf(".")?T.prototype.setNestedProperty(c,x[d],r[y]):c[r[y]]=x[d]),d++,y++;else"object"==typeof x&&(c=x,x.dataLabels&&(h._hasPointLabels=!0),x.marker&&(h._hasPointMarkers=!0));return c},T.prototype.resolveColor=function(){var x=this.series,c=x.chart.options.chart.colorCount,h=x.chart.styledMode;delete this.nonZonedColor,h||this.options.color||(this.color=x.color),x.options.colorByPoint?(h||(c=x.options.colors||x.chart.options.colors,this.color=this.color||c[x.colorCounter],c=c.length),h=x.colorCounter,x.colorCounter++,x.colorCounter===c&&(x.colorCounter=0)):h=x.colorIndex,this.colorIndex=t(this.colorIndex,h)},T.prototype.setNestedProperty=function(x,c,h){return h.split(".").reduce(function(s,r,f,d){return s[r]=d.length-1===f?c:L(s[r],!0)?s[r]:{},s[r]},x),x},T.prototype.tooltipFormatter=function(x){var c=this.series,h=c.tooltipOptions,s=t(h.valueDecimals,""),r=h.valuePrefix||"",f=h.valueSuffix||"";return c.chart.styledMode&&(x=c.chart.tooltip.styledModeFormat(x)),(c.pointArrayMap||["y"]).forEac
1h(function(d){d="{point."+d,(r||f)&&(x=x.replace(RegExp(d+"}","g"),r+d+"}"+f)),x=x.replace(RegExp(d+"}","g"),d+":,."+s+"f}")}),Y(x,{point:this,series:this.series},c.chart)},T}(),q.Point=z}),_t(et,"Core/Series/Series.js",[et["Core/Globals.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(z,q,tt){var nt=tt.error,ot=tt.extendClass,st=tt.fireEvent,U=tt.getOptions,Q=tt.isObject,Y=tt.merge,M=tt.objectEach;return(tt=function(){function R(E,L){var D=Y(R.defaultOptions,L);this.chart=E,this._i=E.series.length,E.series.push(this),this.options=D,this.userOptions=Y(L)}return R.addSeries=function(E,L){R.seriesTypes[E]=L},R.cleanRecursively=function(E,L){var D={};return M(E,function(t,b){Q(E[b],!0)&&!E.nodeType&&L[b]?(t=R.cleanRecursively(E[b],L[b]),Object.keys(t).length&&(D[b]=t)):(Q(E[b])||E[b]!==L[b])&&(D[b]=E[b])}),D},R.getSeries=function(E,L){void 0===L&&(L={});var D=E.options.chart,t=R.seriesTypes[D=L.type||D.type||D.defaultSeriesType||""];return t||nt(17,!0,E,{missingModuleFor:D}),new t(E,L)},R.seriesType=function(E,L,D,t,b){var P=U().plotOptions||{},T=R.seriesTypes;return P[E]=Y(P[L=L||""],D),R.addSeries(E,ot(T[L]||function(){},t)),T[E].prototype.type=E,b&&(T[E].prototype.pointClass=ot(q,b)),T[E]},R.prototype.update=function(E,L){void 0===L&&(L=!0);var D=this,t=(E=R.cleanRecursively(E,this.userOptions)).type;return typeof t<"u"&&t!==D.type&&(D=R.getSeries(D.chart,E)),st(D,"update",{newOptions:E}),D.userOptions=Y(E),st(D,"afterUpdate",{newOptions:E}),L&&D.chart.redraw(),D},R.defaultOptions={type:"base"},R.seriesTypes={},R}()).prototype.pointClass=q,z.seriesType=tt.seriesType,z.seriesTypes=tt.seriesTypes,tt}),_t(et,"Core/Chart/Chart.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Series/Series.js"],et["Core/Globals.js"],et["Core/Legend.js"],et["Core/MSPointer.js"],et["Core/Options.js"],et["Core/Pointer.js"],et["Core/Time.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot,st,U,Q,Y,M){var R=z.animate,E=z.animObject,L=z.setAnimation,D=nt.charts,t=nt.doc,b=nt.win,P=U.defaultOptions,T=M.addEvent,x=M.attr,c=M.createElement,h=M.css,s=M.defined,r=M.discardElement,f=M.erase,d=M.error,y=M.extend,_=M.find,S=M.fireEvent,B=M.getStyle,V=M.isArray,K=M.isFunction,F=M.isNumber,k=M.isObject,a=M.isString,e=M.merge,n=M.numberFormat,o=M.objectEach,l=M.pick,u=M.pInt,v=M.relativeLength,C=M.removeEvent,I=M.splat,j=M.syncTimeout,$=M.uniqueKey,X=nt.marginNames,W=function(){function G(w,A,Z){this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.getArgs(w,A,Z)}return G.prototype.getArgs=function(w,A,Z){a(w)||w.nodeName?(this.renderTo=w,this.init(A,Z)):this.init(w,A)},G.prototype.init=function(w,A){var Z,J=w.series,it=w.plotOptions||{};S(this,"init",{args:arguments},function(){w.series=null;var ct=(Z=e(P,w)).chart||{};o(Z.plotOptions,function(rt,ht){k(rt)&&(rt.tooltip=it[ht]&&e(it[ht].tooltip)||void 0)}),Z.tooltip.userOptions=w.chart&&w.chart.forExport&&w.tooltip.userOptions||w.tooltip,Z.series=w.series=J,this.userOptions=w;var O=ct.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=A,this.isResizing=0,this.options=Z,this.axes=[],this.series=[],this.time=w.time&&Object.keys(w.time).length?new Y(w.time):nt.time,this.numberFormatter=ct.numberFormatter||n,this.styledMode=ct.styledMode,this.hasCartesianSeries=ct.showAxes;var H=this;H.index=D.length,D.push(H),nt.chartCount++,O&&o(O,function(rt,ht){K(rt)&&T(H,ht,rt)}),H.xAxis=[],H.yAxis=[],H.pointCount=H.colorCounter=H.symbolCounter=0,S(H,"afterInit"),H.firstRender()})},G.prototype.initSeries=function(w){var A=this.options.chart,Z=tt.seriesTypes[A=w.type||A.type||A.defaultSeriesType];return Z||d(17,!0,this,{missingModuleFor:A}),"function"==typeof(A=new Z(this,w)).init&&A.init(this,w),A}
1,G.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(w){w.points||w.data||!w.enabledDataSorting||w.setData(w.options.data,!1)})},G.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(w,A){return w.linkedSeries.length||A.linkedSeries.length?A.linkedSeries.length-w.linkedSeries.length:0})},G.prototype.orderSeries=function(w){var A=this.series;for(w=w||0;w<A.length;w++)A[w]&&(A[w].index=w,A[w].name=A[w].getName())},G.prototype.isInsidePlot=function(w,A,Z){var J=Z?A:w;return S(this,"afterIsInsidePlot",J={x:J,y:w=Z?w:A,isInsidePlot:0<=J&&J<=this.plotWidth&&0<=w&&w<=this.plotHeight}),J.isInsidePlot},G.prototype.redraw=function(w){S(this,"beforeRedraw");var A=this,Z=A.axes,J=A.series,it=A.pointer,ct=A.legend,O=A.userOptions.legend,H=A.isDirtyLegend,rt=A.hasCartesianSeries,ht=A.isDirtyBox,dt=A.renderer,ft=dt.isHidden(),pt=[];for(A.setResponsive&&A.setResponsive(!1),L(!!A.hasRendered&&w,A),ft&&A.temporaryDisplay(),A.layOutTitles(),w=J.length;w--;){var vt=J[w];if(vt.options.stacking){var yt=!0;if(vt.isDirty){var Ct=!0;break}}}if(Ct)for(w=J.length;w--;)(vt=J[w]).options.stacking&&(vt.isDirty=!0);J.forEach(function(xt){xt.isDirty&&("point"===xt.options.legendType?("function"==typeof xt.updateTotals&&xt.updateTotals(),H=!0):O&&(O.labelFormatter||O.labelFormat)&&(H=!0)),xt.isDirtyData&&S(xt,"updatedData")}),H&&ct&&ct.options.enabled&&(ct.render(),A.isDirtyLegend=!1),yt&&A.getStacks(),rt&&Z.forEach(function(xt){A.isResizing&&F(xt.min)||(xt.updateNames(),xt.setScale())}),A.getMargins(),rt&&(Z.forEach(function(xt){xt.isDirty&&(ht=!0)}),Z.forEach(function(xt){var bt=xt.min+","+xt.max;xt.extKey!==bt&&(xt.extKey=bt,pt.push(function(){S(xt,"afterSetExtremes",y(xt.eventArgs,xt.getExtremes())),delete xt.eventArgs})),(ht||yt)&&xt.redraw()})),ht&&A.drawChartBox(),S(A,"predraw"),J.forEach(function(xt){(ht||xt.isDirty)&&xt.visible&&xt.redraw(),xt.isDirtyData=!1}),it&&it.reset(!0),dt.draw(),S(A,"redraw"),S(A,"render"),ft&&A.temporaryDisplay(!0),pt.forEach(function(xt){xt.call()})},G.prototype.get=function(w){function A(ct){return ct.id===w||ct.options&&ct.options.id===w}var J,Z=this.series,it=_(this.axes,A)||_(this.series,A);for(J=0;!it&&J<Z.length;J++)it=_(Z[J].points||[],A);return it},G.prototype.getAxes=function(){var w=this,A=this.options,Z=A.xAxis=I(A.xAxis||{});A=A.yAxis=I(A.yAxis||{}),S(this,"getAxes"),Z.forEach(function(J,it){J.index=it,J.isX=!0}),A.forEach(function(J,it){J.index=it}),Z.concat(A).forEach(function(J){new q(w,J)}),S(this,"afterGetAxes")},G.prototype.getSelectedPoints=function(){var w=[];return this.series.forEach(function(A){w=w.concat(A.getPointsCollection().filter(function(Z){return l(Z.selectedStaging,Z.selected)}))}),w},G.prototype.getSelectedSeries=function(){return this.series.filter(function(w){return w.selected})},G.prototype.setTitle=function(w,A,Z){this.applyDescription("title",w),this.applyDescription("subtitle",A),this.applyDescription("caption",void 0),this.layOutTitles(Z)},G.prototype.applyDescription=function(w,A){var Z=this,J="title"===w?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};J=this.options[w]=e(!this.styledMode&&{style:J},this.options[w],A);var it=this[w];it&&A&&(this[w]=it=it.destroy()),J&&!it&&((it=this.renderer.text(J.text,0,0,J.useHTML).attr({align:J.align,class:"highcharts-"+w,zIndex:J.zIndex||4}).add()).update=function(ct){Z[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[w]](ct)},this.styledMode||it.css(J.style),this[w]=it)},G.prototype.layOutTitles=function(w){var A=[0,0,0],Z=this.renderer,J=this.spacingBox;["title","subtitle","caption"].forEach(function(ct){var O=this[ct],H=this.options[ct],rt=H.verticalAlign||"top";if(ct="title"===ct?-3:"top"===rt?A[0]+2:0,O){if(!this.styledMode)var ht=H.style.fontSize;ht=Z.fontMetrics(ht,O).b,O.css({width:(H.width||J.width+(H.widthAdjust||0))+"px"});var dt=Math.round(O.getBBox(H.useHTML).height);O.align(y({y:"bottom"===rt?ht:ct+ht,height:dt},H),!1,"spacingBox"),H.floating||("top"===rt?A[0]=Math.ceil(A[0]+dt):"bottom"===rt&&(A[2]=Math.ceil(A[2]+dt)))}},this),A[0]&&"top"===(this.options.title.verticalAlign||"top")&&(A[0]+=this.options.title.margin),A[2]&&"bottom"===this.options.caption.verticalAlign&&(A[2]+=this.options.caption.margin);var it=!this.titleOffset||this.titleOffset.join(",")!==A.join(",");this.titleOffset=A,S(this,"afterLayOutTitles"),!this.isDirtyBox&&it&&(this.isDirtyBox=this.isDirtyLegend=it,this.hasRendered&&l(w,!0)&&this.isDirtyBox&&this.redraw())},G.prototype.getChartSize=function(){var w=this.options.chart,A=w.width;w=w.height;var Z=this.renderTo;s(A)||(this.containerWidth=B(Z,"width")),s(w)||(this.containerHeight=B(Z,"height")),this.chartWidth=Math.max(0,A||this.containerWidth||600),this.chartHe
1ight=Math.max(0,v(w,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},G.prototype.temporaryDisplay=function(w){var A=this.renderTo;if(w)for(;A&&A.style;)A.hcOrigStyle&&(h(A,A.hcOrigStyle),delete A.hcOrigStyle),A.hcOrigDetached&&(t.body.removeChild(A),A.hcOrigDetached=!1),A=A.parentNode;else for(;A&&A.style&&(t.body.contains(A)||A.parentNode||(A.hcOrigDetached=!0,t.body.appendChild(A)),("none"===B(A,"display",!1)||A.hcOricDetached)&&(A.hcOrigStyle={display:A.style.display,height:A.style.height,overflow:A.style.overflow},w={display:"block",overflow:"hidden"},A!==this.renderTo&&(w.height=0),h(A,w),A.offsetWidth||A.style.setProperty("display","block","important")),(A=A.parentNode)!==t.body););},G.prototype.setClassName=function(w){this.container.className="highcharts-container "+(w||"")},G.prototype.getContainer=function(){var it,ct,w=this.options,A=w.chart,Z=this.renderTo,J=$();Z||(this.renderTo=Z=A.renderTo),a(Z)&&(this.renderTo=Z=t.getElementById(Z)),Z||d(13,!0,this);var O=u(x(Z,"data-highcharts-chart"));F(O)&&D[O]&&D[O].hasRendered&&D[O].destroy(),x(Z,"data-highcharts-chart",this.index),Z.innerHTML="",A.skipClone||Z.offsetWidth||this.temporaryDisplay(),this.getChartSize(),O=this.chartWidth;var H=this.chartHeight;if(h(Z,{overflow:"hidden"}),this.styledMode||(it=y({position:"relative",overflow:"hidden",width:O+"px",height:H+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none"},A.style)),this.container=Z=c("div",{id:J},it,Z),this._cursor=Z.style.cursor,this.renderer=new(nt[A.renderer]||nt.Renderer)(Z,O,H,null,A.forExport,w.exporting&&w.exporting.allowHTML,this.styledMode),L(void 0,this),this.setClassName(A.className),this.styledMode)for(ct in w.defs)this.renderer.definition(w.defs[ct]);else this.renderer.setStyle(A.style);this.renderer.chartIndex=this.index,S(this,"afterGetContainer")},G.prototype.getMargins=function(w){var A=this.spacing,Z=this.margin,J=this.titleOffset;this.resetMargins(),J[0]&&!s(Z[0])&&(this.plotTop=Math.max(this.plotTop,J[0]+A[0])),J[2]&&!s(Z[2])&&(this.marginBottom=Math.max(this.marginBottom,J[2]+A[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Z,A),S(this,"getMargins"),w||this.getAxisMargins()},G.prototype.getAxisMargins=function(){var w=this,A=w.axisOffset=[0,0,0,0],Z=w.colorAxis,J=w.margin,it=function(ct){ct.forEach(function(O){O.visible&&O.getOffset()})};w.hasCartesianSeries?it(w.axes):Z&&Z.length&&it(Z),X.forEach(function(ct,O){s(J[O])||(w[ct]+=A[O])}),w.setChartSize()},G.prototype.reflow=function(w){var A=this,Z=A.options.chart,J=A.renderTo,it=s(Z.width)&&s(Z.height),ct=Z.width||B(J,"width");Z=Z.height||B(J,"height"),J=w?w.target:b,!it&&!A.isPrinting&&ct&&Z&&(J===b||J===t)&&((ct!==A.containerWidth||Z!==A.containerHeight)&&(M.clearTimeout(A.reflowTimeout),A.reflowTimeout=j(function(){A.container&&A.setSize(void 0,void 0,!1)},w?100:0)),A.containerWidth=ct,A.containerHeight=Z)},G.prototype.setReflow=function(w){var A=this;!1===w||this.unbindReflow?!1===w&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=T(b,"resize",function(Z){A.options&&A.reflow(Z)}),T(this,"destroy",this.unbindReflow))},G.prototype.setSize=function(w,A,Z){var J=this,it=J.renderer;J.isResizing+=1,L(Z,J),Z=it.globalAnimation,J.oldChartHeight=J.chartHeight,J.oldChartWidth=J.chartWidth,typeof w<"u"&&(J.options.chart.width=w),typeof A<"u"&&(J.options.chart.height=A),J.getChartSize(),J.styledMode||(Z?R:h)(J.container,{width:J.chartWidth+"px",height:J.chartHeight+"px"},Z),J.setChartSize(!0),it.setSize(J.chartWidth,J.chartHeight,Z),J.axes.forEach(function(ct){ct.isDirty=!0,ct.setScale()}),J.isDirtyLegend=!0,J.isDirtyBox=!0,J.layOutTitles(),J.getMargins(),J.redraw(Z),J.oldChartHeight=null,S(J,"resize"),j(function(){J&&S(J,"endResize",null,function(){--J.isResizing})},E(Z).duration)},G.prototype.setChartSize=function(w){var rt,ht,dt,ft,A=this.inverted,Z=this.renderer,J=this.chartWidth,it=this.chartHeight,ct=this.options.chart,O=this.spacing,H=this.clipOffset;this.plotLeft=rt=Math.round(this.plotLeft),this.plotTop=ht=Math.round(this.plotTop),this.plotWidth=dt=Math.max(0,Math.round(J-rt-this.marginRight)),this.plotHeight=ft=Math.max(0,Math.round(it-ht-this.marginBottom)),this.plotSizeX=A?ft:dt,this.plotSizeY=A?dt:ft,this.plotBorderWidth=ct.plotBorderWidth||0,this.spacingBox=Z.spacingBox={x:O[3],y:O[0],width:J-O[3]-O[1],height:it-O[0]-O[2]},this.plotBox=Z.plotBox={x:rt,y:ht,width:dt,height:ft},J=2*Math.floor(this.plotBorderWidth/2),A=Math.ceil(Math.max(J,H[3])/2),Z=Math.ceil(Math.max(J,H[0])/2),this.clipBox={x:A,y:Z,width:Math.floor(this.plotSizeX-Math.max(J,H[1])/2-A),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(J,H[2])/2-Z))}
1,w||this.axes.forEach(function(pt){pt.setAxisSize(),pt.setAxisTranslation()}),S(this,"afterSetChartSize",{skipAxes:w})},G.prototype.resetMargins=function(){S(this,"resetMargins");var w=this,A=w.options.chart;["margin","spacing"].forEach(function(Z){var J=A[Z],it=k(J)?J:[J,J,J,J];["Top","Right","Bottom","Left"].forEach(function(ct,O){w[Z][O]=l(A[Z+ct],it[O])})}),X.forEach(function(Z,J){w[Z]=l(w.margin[J],w.spacing[J])}),w.axisOffset=[0,0,0,0],w.clipOffset=[0,0,0,0]},G.prototype.drawChartBox=function(){var pt,w=this.options.chart,A=this.renderer,Z=this.chartWidth,J=this.chartHeight,it=this.chartBackground,ct=this.plotBackground,O=this.plotBorder,H=this.styledMode,rt=this.plotBGImage,ht=w.backgroundColor,dt=w.plotBackgroundColor,ft=w.plotBackgroundImage,vt=this.plotLeft,yt=this.plotTop,Ct=this.plotWidth,xt=this.plotHeight,bt=this.plotBox,Rt=this.clipRect,Bt=this.clipBox,Et="animate";if(it||(this.chartBackground=it=A.rect().addClass("highcharts-background").add(),Et="attr"),H)var Pt=pt=it.strokeWidth();else pt=(Pt=w.borderWidth||0)+(w.shadow?8:0),ht={fill:ht||"none"},(Pt||it["stroke-width"])&&(ht.stroke=w.borderColor,ht["stroke-width"]=Pt),it.attr(ht).shadow(w.shadow);it[Et]({x:pt/2,y:pt/2,width:Z-pt-Pt%2,height:J-pt-Pt%2,r:w.borderRadius}
1),Et="animate",ct||(Et="attr",this.plotBackground=ct=A.rect().addClass("highcharts-plot-background").add()),ct[Et](bt),H||(ct.attr({fill:dt||"none"}).shadow(w.plotShadow),ft&&(rt?(ft!==rt.attr("href")&&rt.attr("href",ft),rt.animate(bt)):this.plotBGImage=A.image(ft,vt,yt,Ct,xt).add())),Rt?Rt.animate({width:Bt.width,height:Bt.height}):this.clipRect=A.clipRect(Bt),Et="animate",O||(Et="attr",this.plotBorder=O=A.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),H||O.attr({stroke:w.plotBorderColor,"stroke-width":w.plotBorderWidth||0,fill:"none"}),O[Et](O.crisp({x:vt,y:yt,width:Ct,height:xt},-O.strokeWidth())),this.isDirtyBox=!1,S(this,"afterDrawChartBox")},G.prototype.propFromSeries=function(){var Z,it,ct,w=this,A=w.options.chart,J=w.options.series;["inverted","angular","polar"].forEach(function(O){for(Z=tt.seriesTypes[A.type||A.defaultSeriesType],ct=A[O]||Z&&Z.prototype[O],it=J&&J.length;!ct&&it--;)(Z=tt.seriesTypes[J[it].type])&&Z.prototype[O]&&(ct=!0);w[O]=ct})},G.prototype.linkSeries=function(){var w=this,A=w.series;A.forEach(function(Z){Z.linkedSeries.length=0}),A.forEach(function(Z){var J=Z.options.linkedTo;a(J)&&(J=":previous"===J?w.series[Z.index-1]:w.get(J))&&J.linkedParent!==Z&&(J.linkedSeries.push(Z),Z.linkedParent=J,J.enabledDataSorting&&Z.setDataSortingOptions(),Z.visible=l(Z.options.visible,J.options.visible,Z.visible))}),S(this,"afterLinkSeries")},G.prototype.renderSeries=function(){this.series.forEach(function(w){w.translate(),w.render()})},G.prototype.renderLabels=function(){var w=this,A=w.options.labels;A.items&&A.items.forEach(function(Z){var J=y(A.style,Z.style),it=u(J.left)+w.plotLeft,ct=u(J.top)+w.plotTop+12;delete J.left,delete J.top,w.renderer.text(Z.html,it,ct).attr({zIndex:2}).css(J).add()})},G.prototype.render=function(){var w=this.axes,A=this.colorAxis,Z=this.renderer,J=this.options,it=0,ct=function(ht){ht.forEach(function(dt){dt.visible&&dt.render()})};this.setTitle(),this.legend=new ot(this,J.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),J=this.plotWidth,w.some(function(ht){if(ht.horiz&&ht.visible&&ht.options.labels.enabled&&ht.series.length)return it=21,!0});var O=this.plotHeight=Math.max(this.plotHeight-it,0);w.forEach(function(ht){ht.setScale()}),this.getAxisMargins();var H=1.1<J/this.plotWidth,rt=1.05<O/this.plotHeight;(H||rt)&&(w.forEach(function(ht){(ht.horiz&&H||!ht.horiz&&rt)&&ht.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?ct(w):A&&A.length&&ct(A),this.seriesGroup||(this.seriesGroup=Z.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},G.prototype.addCredits=function(w){var A=this,Z=e(!0,this.options.credits,w);Z.enabled&&!this.credits&&(this.credits=this.renderer.text(Z.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Z.href&&(b.location.href=Z.href)}).attr({align:Z.position.align,zIndex:8}),A.styledMode||this.credits.css(Z.style),this.credits.add().align(Z.position),this.credits.update=function(J){A.credits=A.credits.destroy(),A.addCredits(J)})},G.prototype.updateContainerScaling=function(){var w=this.container;if(2<w.offsetWidth&&2<w.offsetHeight&&w.getBoundingClientRect){var A=w.getBoundingClientRect(),Z=A.width/w.offsetWidth;w=A.height/w.offsetHeight,1!==Z||1!==w?this.containerScaling={scaleX:Z,scaleY:w}:delete this.containerScaling}},G.prototype.destroy=function(){var it,w=this,A=w.axes,Z=w.series,J=w.container,ct=J&&J.parentNode;for(S(w,"destroy"),w.renderer.forExport?f(D,w):D[w.index]=void 0,nt.chartCount--,w.renderTo.removeAttribute("data-highcharts-chart"),C(w),it=A.length;it--;)A[it]=A[it].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),it=Z.length;it--;)Z[it]=Z[it].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(O){var H=w[O];H&&H.destroy&&(w[O]=H.destroy())}),J&&(J.innerHTML="",C(J),ct&&r(J)),o(w,function(O,H){delete w[H]})},G.prototype.firstRender=function(){var w=this,A=w.options;(!w.isReadyToRender||w.isReadyToRender())&&(w.getContainer(),w.resetMargins(),w.setChartSize(),w.propFromSeries(),w.getAxes(),(V(A.series)?A.series:[]).forEach(function(Z){w.initSeries(Z)}),w.linkSeries(),w.setSeriesData(),S(w,"beforeRender"),Q&&(w.pointer=nt.hasTouch||!b.PointerEvent&&!b.MSPointerEvent?new Q(w,A):new st(w,A)),w.render(),!w.renderer.imgCount&&!w.hasLoaded&&w.onload(),w.temporaryDisplay(!0))},G.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(w){w&&typeof this.index<"u"&&w.apply(this,[this])},this),S(this,"load"),S(this,"render"),s(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},G}();return W.prototype.callbacks=[],nt.chart=function(G,w,A){return new W(G,w,A)},nt.Chart=W}),_t(et,"Extensions/ScrollablePlotArea.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Chart/Chart.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt,nt){var ot=z.stop,st=nt.addEvent,U=nt.createElement,Q=nt.pick;st(q,"afterSetChartSize",function(Y){var M=this.options.chart.scrollablePlotArea,R=M&&M.minWidth;if(M=M&&M.minHeight,!this.renderer.forExport){if(R){if(this.scrollablePixelsX=R=Math.max(0,R-this.chartWidth)){this.plotWidth+=R,this.inverted?(this.clipBox.height+=R,this.plotBox.height+=R):(this.clipBox.width+=R,this.plotBox.width+=R);var E={1:{name:"right",value:R}}}}else M&&(this.scrollablePixelsY=R=Math.max(0,M-this.chartHeight))&&(this.plotHeight+=R,this.inverted?(this.clipBox.width+=R,this.plotBox.width+=R):(this.clipBox.height+=R,this.plotBox.height+=R),E={2:{name:"bottom",value:R}});E&&!Y.skipAxes&&this.axes.forEach(function(L){E[L.side]?L.getPlotLinePath=function(){var D=E[L.side].name,t=this[D];this[D]=t-E[L.side].value;var b=tt.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[D]=t,b}:(L.setAxisSize(),L.setAxisTranslation())})}}),st(q,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),q.prototype.setUpScrolling=function(){var Y=this,M={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(M.overflowX="auto"),this.scrollablePixelsY&&(M.overflowY="auto"),this.scrollingParent=U("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=U("div",{className:"highcharts-scrolling"},M,this.scrollingParent),st(this.scrollingContainer,"scroll",function(){Y.pointer&&delete Y.pointer.chartPosition}),this.innerContainer=U("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},q.prototype.moveFixedElements=function(){var E,Y=this.container,M=this.fixedRenderer,R=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?E=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?E=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(E=".highcharts-yaxis"),R.push(E,E+"-labels"),R.forEach(function(L){[].forEach.call(Y.querySelectorAll(L),function(D){(D.namespaceURI===M.SVG_NS?M.box:M.box.parentNode).appendChild(D),D.style.pointerEvents="auto"})})},q.prototype.applyFixed=function(){var Y,M,R=!this.fixedDiv,E=this.options.chart.scrollablePlotArea;R?(this.fixedDiv=U("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2,top:0},null,!0),null===(Y=this.scrollingContainer)||void 0===Y||Y.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=Y=new tt.Renderer(this.fixedDiv,this.chartWidth,this.chartHe
1ight,null===(M=this.options.chart)||void 0===M?void 0:M.style),this.scrollableMask=Y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":Q(E.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),st(this,"afterShowResetZoom",this.moveFixedElements),st(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),M=this.chartWidth+(this.scrollablePixelsX||0),Y=this.chartHeight+(this.scrollablePixelsY||0),ot(this.container),this.container.style.width=M+"px",this.container.style.height=Y+"px",this.renderer.boxWrapper.attr({width:M,height:Y,viewBox:[0,0,M,Y].join(" ")}),this.chartBackground.attr({width:M,height:Y}),this.scrollingContainer.style.height=this.chartHeight+"px",R&&(E.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*E.scrollPositionX),E.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*E.scrollPositionY)),R=this.plotTop-(Y=this.axisOffset)[0]-1,E=this.plotLeft-Y[3]-1,M=this.plotTop+this.plotHeight+Y[2]+1,Y=this.plotLeft+this.plotWidth+Y[1]+1;var L=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),D=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);R=this.scrollablePixelsX?[["M",0,R],["L",this.plotLeft-1,R],["L",this.plotLeft-1,M],["L",0,M],["Z"],["M",L,R],["L",this.chartWidth,R],["L",this.chartWidth,M],["L",L,M],["Z"]]:this.scrollablePixelsY?[["M",E,0],["L",E,this.plotTop-1],["L",Y,this.plotTop-1],["L",Y,0],["Z"],["M",E,D],["L",E,this.chartHeight],["L",Y,this.chartHeight],["L",Y,D],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:R})}}),_t(et,"Core/Axis/StackingAxis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Utilities.js"]],function(z,q){var tt=z.getDeferredAnimation,nt=q.addEvent,ot=q.destroyObjectProperties,st=q.fireEvent,U=q.objectEach,Q=q.pick,Y=function(){function M(R){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=R}return M.prototype.buildStacks=function(){var t,R=this.axis,E=R.series,L=Q(R.options.reversedStacks,!0),D=E.length;if(!R.isXAxis){for(this.usePercentage=!1,t=D;t--;){var b=E[L?t:D-t-1];b.setStackedPoints(),b.setGroupedPoints()}for(t=0;t<D;t++)E[t].modifyStacks();st(R,"afterBuildStacks")}},M.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var R=this.stacks=this.oldStacks;U(R,function(E){U(E,function(L){L.cumulative=L.total})})}},M.prototype.resetStacks=function(){var R=this;R.axis.isXAxis||U(R.stacks,function(L){U(L,function(D,t){D.touched<R.stacksTouched?(D.destroy(),delete L[t]):(D.total=null,D.cumulative=null)})})},M.prototype.renderStackTotals=function(){var R=this.axis,E=R.chart,L=E.renderer,D=this.stacks;R=tt(E,R.options.stackLabels.animation);var t=this.stackTotalGroup=this.stackTotalGroup||L.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();t.translate(E.plotLeft,E.plotTop),U(D,function(b){U(b,function(P){P.render(t)})}),t.animate({opacity:1},R)},M}();return function(){function M(){}return M.compose=function(R){nt(R,"init",M.onInit),nt(R,"destroy",M.onDestroy)},M.onDestroy=function(){var R=this.stacking;if(R){var E=R.stacks;U(E,function(L,D){ot(L),E[D]=null}),R&&R.stackTotalGroup&&R.stackTotalGroup.destroy()}},M.onInit=function(){this.stacking||(this.stacking=new Y(this))},M}()}),_t(et,"Mixins/LegendSymbol.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.merge,nt=q.pick;return z.LegendSymbolMixin={drawRectangle:function(ot,st){var U=ot.symbolHeight,Q=ot.options.squareSymbol;st.legendSymbol=this.chart.renderer.rect(Q?(ot.symbolWidth-U)/2:0,ot.baseline-U+1,Q?U:ot.symbolWidth,U,nt(ot.options.symbolRadius,U/2)).addClass("highcharts-point").attr({zIndex:3}).add(st.legendGroup)},drawLineMarker:function(ot){var st=this.options,U=st.marker,Q=ot.symbolWidth,Y=ot.symbolHeight,M=Y/2,R=this.chart.renderer,E=this.legendGroup;ot=ot.baseline-Math.round(.3*ot.fontMetrics.b);var L={};this.chart.styledMode||(L={"stroke-width":st.lineWidth||0},st.dashStyle&&(L.dashstyle=st.dashStyle)),this.legendLine=R.path([["M",0,ot],["L",Q,ot]]).addClass("highcharts-graph").attr(L).add(E),U&&!1!==U.enabled&&Q&&(st=Math.min(nt(U.radius,M),M),0===this.symbol.indexOf("url")&&(U=tt(U,{width:Y,height:Y}),st=0),this.legendSymbol=U=R.symbol(this.symbol,Q/2-st,ot-st,2*st,2*st,U).addClass("highcharts-point").add(E),U.isMarker=!0)}}}
1),_t(et,"Core/Series/CartesianSeries.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Series.js"],et["Core/Globals.js"],et["Mixins/LegendSymbol.js"],et["Core/Options.js"],et["Core/Series/Point.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot,st,U,Q){var Y=z.animObject,M=ot.defaultOptions,R=Q.addEvent,E=Q.arrayMax,L=Q.arrayMin,D=Q.clamp,t=Q.correctFloat,b=Q.defined,P=Q.erase,T=Q.error,x=Q.extend,c=Q.find,h=Q.fireEvent,s=Q.getNestedProperty,r=Q.isArray,f=Q.isFunction,d=Q.isNumber,y=Q.isString,_=Q.merge,S=Q.objectEach,B=Q.pick,V=Q.removeEvent,K=Q.splat,F=Q.syncTimeout,k=q.seriesTypes,a=tt.win;return z=q.seriesType("line",void 0,{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){return"number"!=typeof this.y?"":(0,this.series.chart.numberFormatter)(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:st,requireSorting:!0,sorted:!0,init:function(e,n){h(this,"init",{options:n});var u,o=this,l=e.series;this.eventOptions=this.eventOptions||{},this.eventsToUnbind=[],o.chart=e,o.options=n=o.setOptions(n),o.linkedSeries=[],o.bindAxes(),x(o,{name:n.name,state:"",visible:!1!==n.visible,selected:!0===n.selected});var v=n.events;S(v,function(C,I){f(C)&&o.eventOptions[I]!==C&&(f(o.eventOptions[I])&&V(o,I,o.eventOptions[I]),o.eventOptions[I]=C,R(o,I,C))}),(v&&v.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(e.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.parallelArrays.forEach(function(C){o[C+"Data"]||(o[C+"Data"]=[])}),o.isCartesian&&(e.hasCartesianSeries=!0),l.length&&(u=l[l.length-1]),o._i=B(u&&u._i,-1)+1,o.opacity=o.options.opacity,e.orderSeries(this.insert(l)),n.dataSorting&&n.dataSorting.enabled?o.setDataSortingOptions():o.points||o.data||o.setData(n.data,!1),h(this,"afterInit")},is:function(e){return k[e]&&this instanceof k[e]},insert:function(e){var o,n=this.options.index;if(d(n)){for(o=e.length;o--;)if(n>=B(e[o].options.index,e[o]._i)){e.splice(o+1,0,this);break}-1===o&&e.unshift(this),o+=1}else e.push(this);return B(o,e.length-1)},bindAxes:function(){var l,e=this,n=e.options,o=e.chart;h(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(u){o[u].forEach(function(v){(n[u]===(l=v.options).index||typeof n[u]<"u"&&n[u]===l.id||typeof n[u]>"u"&&0===l.index)&&(e.insert(v.series),e[u]=v,v.isDirty=!0)}),e[u]||e.optionalAxis===u||T(18,!0,o)})}),h(this,"afterBindAxes")},updateParallelArrays:function(e,n){var o=e.series,l=arguments,u=d(n)?function(v){var C="y"===v&&o.toYData?o.toYData(e):e[v];o[v+"Data"][n]=C}:function(v){Array.prototype[n].apply(o[v+"Data"],Array.prototype.slice.call(l,2))};o.parallelArrays.forEach(u)},hasData:function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var o,e=this.options,n=this.xIncrement,l=e.pointIntervalUnit,u=this.chart.time;return n=B(n,e.pointStart,0),this.pointInterval=o=B(this.pointInterval,e.pointInterval,1),l&&(e=new u.Date(n),"day"===l?u.set("Date",e,u.get("Date",e)+o):"month"===l?u.set("Month",e,u.get("Month",e)+o):"year"===l&&u.set("FullYear",e,u.get("FullYear",e)+o),o=e.getTime()-n),this.xIncrement=n+o,n},setDataSortingOptions:function(){var e=this.options;x(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),b(e.pointRange)||(e.pointRange=1)},setOptions:function(e){var n=this.chart,o=n.options,l=o.plotOptions,u=n.userOptions||{};e=_(e),n=n.styledMode;var v={plotOptions:l,userOptions:e};h(this,"setOptions",v);var C=v.plotOptions[this.type],I=u.plotOptions||{};return this.userOptions=v.userOptions,u=_(C,l.series,u.plotOptions&&u.plotOptions[this.type],e),this.tooltipOptions=_(M.tooltip,M.plotOptions.series&&M.plotOptions.series.tooltip,M.plotOptions[this.type].tooltip,o.tooltip.userOptions,l.series&&l.series.tooltip,l[this.type].tooltip,e.tooltip),this.stickyTracking=B(e.stickyTracking,I[this.type]&&I[this.type].stickyTracking,I.series&&I.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||u.stickyTracking),null===C.marker&&delete u.marker,this.zoneAxis=u.zoneAxis,o=this.zones=(u.zones||[]).slice(),!u.negativeColor&&!u.negativeFillColor||u.zones||(l={value:u[this.zoneAxis+"Threshold"]||u.threshold||0,className:"highcharts-negative"},n||(l.color=u.negativeColor,l.fillColor=u.negativeFillColor),o.push(l)),o.length&&b(o[o.length-1].value)&&o.push(n?{}:{color:this.color,fillColor:this.fillColor}),h(this,"afterSetOptions",{options:u}),u},getName:function(){return B(this.options.name,"Series "+(this.index+1))},getCyclic:function(e,n,o){var l=this.chart,u=this.userOptions,v=e+"Index",C=e+"Counter",I=o?o.length:B(l.options.chart[e+"Count"],l[e+"Count"]);if(!n){var j=B(u[v],u["_"+v]);b(j)||(l.series.length||(l[C]=0),u["_"+v]=j=l[C]%I,l[C]+=1),o&&(n=o[j])}typeof j<"u"&&(this[v]=j),this[e]=n},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||M.plotOptions[this.type].color,this.chart.options.colors)},getPointsCollection:function(){return(this.hasGroupedData?this.points:this.data)||[]},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(e,n){var v,o=e.id,l=e.x,u=this.points,C=this.options.dataSorting;if(o)var I=this.chart.get(o);else if(this.linkedParent||this.enabledDataSorting){var j=C&&C.matchByName?"name":"index";if(!(I=c(u,function(X){return!X.touched&&X[j]===e[j]})))return}if(I){var $=I&&I.index;typeof $<"u"&&(v=!0)}return typeof $>"u"&&d(l)&&($=this.xData.indexOf(l,n)),-1!==$&&typeof $<"u"&&this.cropped&&($=$>=this.cropStart?$-this.cropStart:$),!v&&u[$]&&u[$].touched&&($=void 0),$},drawLegendSymbol:nt.drawLineMarker,updateData:function(e,n){var C,I,j,o=this.options,l=o.dataSorting,u=this.points,v=[],$=this.requireSorting,X=e.length===u.length,W=!0;if(this.xIncrement=null,e.forEach(function(G,w){var A=b(G)&&this.pointClass.prototype.optionsToObject.call({series:this},G)||{},Z=A.x;A.id||d(Z)?(-1===(Z=this.findPointIndex(A,j))||typeof Z>"u"?v.push(G):u[Z]&&G!==o.data[Z]?(u[Z].update(G,!1,null,!1),u[Z].touched=!0,$&&(j=Z+1)):u[Z]&&(u[Z].touched=!0),(!X||w!==Z||l&&l.enabled||this.hasDerivedData)&&(C=!0)):v.push(G)},this),C)for(e=u.length;e--;)(I=u[e])&&!I.touched&&I.remove&&I.remove(!1,n);else!X||l&&l.enabled?W=!1:(e.forEach(function(G,w){u[w].update&&G!==u[w].y&&u[w].update(G,!1,null,!1)}),v.length=0);return u.forEach(function(G){G&&(G.touched=!1)}),!!W&&(v.forEach(function(G){this.addPoint(G,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=E(this.xData),this.autoIncrement()),!0)},setData:function(e,n,o,l){var I,u=this,v=u.points,C=v&&v.length||0,j=u.options,$=u.chart,X=j.dataSorting,W=null,G=u.xAxis;W=j.turboThreshold;var O,w=this.xData,A=this.yData,Z=(I=u.pointArrayMap)&&I.length,J=j.keys,it=0,ct=1;if(I=(e=e||[]).length,n=B(n,!0),X&&X.enabled&&(e=this.sortData(e)),!1!==l&&I&&C&&!u.cropped&&!u.hasGroupedData&&u.visible&&!u.isSeriesBoosting&&(O=this.updateData(e,o)),!O){if(u.xIncrement=null,u.colorCounter=0,this.parallelArrays.forEach(function(H){u[H+"Data"].length=0}),W&&I>W)if(W=u.getFirstValidPoint(e),d(W))for(o=0;o<I;o++)w[o]=this.autoIncrement(),A[o]=e[o];else if(r(W))if(Z)for(o=0;o<I;
1o++)w[o]=(l=e[o])[0],A[o]=l.slice(1,Z+1);else for(J&&(it=0<=(it=J.indexOf("x"))?it:0,ct=0<=(ct=J.indexOf("y"))?ct:1),o=0;o<I;o++)w[o]=(l=e[o])[it],A[o]=l[ct];else T(12,!1,$);else for(o=0;o<I;o++)typeof e[o]<"u"&&(u.pointClass.prototype.applyOptions.apply(l={series:u},[e[o]]),u.updateParallelArrays(l,o));for(A&&y(A[0])&&T(14,!0,$),u.data=[],u.options.data=u.userOptions.data=e,o=C;o--;)v[o]&&v[o].destroy&&v[o].destroy();G&&(G.minRange=G.userMinRange),u.isDirty=$.isDirtyBox=!0,u.isDirtyData=!!v,o=!1}"point"===j.legendType&&(this.processData(),this.generatePoints()),n&&$.redraw(o)},sortData:function(e){var n=this,o=n.options.dataSorting.sortKey||"y",l=function(u,v){return b(v)&&u.pointClass.prototype.optionsToObject.call({series:u},v)||{}};return e.forEach(function(u,v){e[v]=l(n,u),e[v].index=v},this),e.concat().sort(function(u,v){return u=s(o,u),(v=s(o,v))<u?-1:v>u?1:0}).forEach(function(u,v){u.x=v},this),n.linkedSeries&&n.linkedSeries.forEach(function(u){var v=u.options,C=v.data;v.dataSorting&&v.dataSorting.enabled||!C||(C.forEach(function(I,j){C[j]=l(u,I),e[j]&&(C[j].x=e[j].x,C[j].index=j)}),u.setData(C,!1))}),e},getProcessedData:function(e){var n=this.xData,o=this.yData,l=n.length,u=0,v=this.xAxis,C=this.options,I=C.cropThreshold,j=e||this.getExtremesFromAll||C.getExtremesFromAll,$=this.isCartesian;e=v&&v.val2lin,C=!(!v||!v.logarithmic);var X=this.requireSorting;if(v)var W=(v=v.getExtremes()).min,G=v.max;if($&&this.sorted&&!j&&(!I||l>I||this.forceCrop))if(n[l-1]<W||n[0]>G)n=[],o=[];else if(this.yData&&(n[0]<W||n[l-1]>G)){n=(u=this.cropData(this.xData,this.yData,W,G)).xData,o=u.yData,u=u.start;var w=!0}for(I=n.length||1;--I;)if(0<(l=C?e(n[I])-e(n[I-1]):n[I]-n[I-1])&&(typeof A>"u"||l<A))var A=l;else 0>l&&X&&(T(15,!1,this.chart),X=!1);return{xData:n,yData:o,cropped:w,cropStart:u,closestPointRange:A}},processData:function(e){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!e)return!1;e=this.getProcessedData(),this.cropped=e.cropped,this.cropStart=e.cropStart,this.processedXData=e.xData,this.processedYData=e.yData,this.closestPointRange=this.basePointRange=e.closestPointRange},cropData:function(e,n,o,l,u){var j,v=e.length,C=0,I=v;for(u=B(u,this.cropShoulder),j=0;j<v;j++)if(e[j]>=o){C=Math.max(0,j-u);break}for(o=j;o<v;o++)if(e[o]>l){I=o+u;break}return{xData:e.slice(C,I),yData:n.slice(C,I),start:C,end:I}},generatePoints:function(){var l,e=this.options,n=e.data,o=this.data,u=this.processedXData,v=this.processedYData,C=this.pointClass,I=u.length,j=this.cropStart||0,$=this.hasGroupedData;e=e.keys;var W,X=[];for(o||$||((o=[]).length=n.length,o=this.data=o),e&&$&&(this.options.keys=!1),W=0;W<I;W++){var G=j+W;if($){var w=(new C).init(this,[u[W]].concat(K(v[W])));w.dataGroup=this.groupMap[W],w.dataGroup.options&&(w.options=w.dataGroup.options,x(w,w.dataGroup.options),delete w.dataLabels)}else(w=o[G])||typeof n[G]>"u"||(o[G]=w=(new C).init(this,n[G],u[W]));w&&(w.index=G,X[W]=w)}if(this.options.keys=e,o&&(I!==(l=o.length)||$))for(W=0;W<l;W++)W!==j||$||(W+=I),o[W]&&(o[W].destroyElements(),o[W].plotX=void 0);this.data=o,this.points=X,h(this,"afterGeneratePoints")},getXExtremes:function(e){return{min:L(e),max:E(e)}},getExtremes:function(e,n){var W,o=this.xAxis,l=this.yAxis,u=this.processedXData||this.xData,v=[],C=0,I=0,j=0,$=this.requireSorting?this.cropShoulder:0,X=!!l&&l.positiveValuesOnly;for(l=(e=e||this.stackedYData||this.processedYData||[]).length,o&&(I=(j=o.getExtremes()).min,j=j.max),W=0;W<l;W++){var G=u[W],w=e[W],A=(d(w)||r(w))&&(w.length||0<w||!X);if(G=n||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!o||(u[W+$]||G)>=I&&(u[W-$]||G)<=j,A&&G)if(A=w.length)for(;A--;)d(w[A])&&(v[C++]=w[A]);else v[C++]=w}return e={dataMin:L(v),dataMax:E(v)},h(this,"afterGetExtremes",{dataExtremes:e}),e},applyExtremes:function(){var e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e},getFirstValidPoint:function(e){for(var n=null,o=e.length,l=0;null===n&&l<o;)n=e[l],l++;return n},translate:function(){this.processedXData||this.processData(),this.generatePoints();var $,A,e=this.options,n=e.stacking,o=this.xAxis,l=o.categories,u=this.enabledDataSorting,v=this.yAxis,C=this.points,I=C.length,j=!!this.modifyValue,X=this.pointPlacementToXValue(),W=!!X,G=e.threshold,w=e.startFromThreshold?G:0,Z=this.zoneAxis||"y",J=Number.MAX_VALUE;for($=0;$<I;$++){var it=C[$],ct=it.x,O=it.y,H=it.low,rt=n&&v.stacking&&v.stacking.stacks[(this.negStacks&&O<(w?0:G)?"-":"")+this.stackKey];if((v.positiveValuesOnly&&!v.validatePositiveValue(O)||o.positiveValuesOnly&&!o.validatePositiveValue(ct))&&(it.isNull=!0),it.plotX=A=t(D(o.translate(ct,0,0,0,1,X,"flags"===this.type),-1e5,1e5)),n&&this.visible&&rt&&rt[ct]){var ht=this.getStackIndicator(ht,ct,this.index);if(!it.isNull)var dt=rt[ct],ft=dt.points[ht.key]}if(r(ft)&&(O=ft[1],(H=ft[0])===w&&ht.key===rt[ct].base&&(H=B(d(G)&&G,v.min)),v.positiveValuesOnly&&0>=H&&(H=null),it.total=it.stackTotal=dt.total,it.percentage=dt.total&&it.y/dt.total*100,it.stackY=O,this.irregularWidths||dt.setOffset(this.pointXOffset||0,this.barW||0)),it.yBottom=b(H)?D(v.translate(H,0,1,0,1),-1e5,1e5):null,j&&(O=this.modifyValue(O,it)),it.plotY="number"==typeof O&&O!==1/0?D(v.translate(O,0,1,0,1),-1e5,1e5):void 0,it.isInside=this.isPointInside(it),it.clientX=W?t(o.translate(ct,0,0,0,1,X)):A,it.negative=it[Z]<(e[Z+"Threshold"]||G||0
1),it.category=l&&typeof l[it.x]<"u"?l[it.x]:it.x,!it.isNull&&!1!==it.visible){typeof pt<"u"&&(J=Math.min(J,Math.abs(A-pt)));var pt=A}it.zone=this.zones.length&&it.getZone(),!it.graphic&&this.group&&u&&(it.isNew=!0)}this.closestPointRangePx=J,h(this,"afterTranslate")},getValidPoints:function(e,n,o){var l=this.chart;return(e||this.points||[]).filter(function(u){return!(n&&!l.isInsidePlot(u.plotX,u.plotY,l.inverted))&&!1!==u.visible&&(o||!u.isNull)})},getClipBox:function(e,n){var l=this.chart,v=this.xAxis,C=v&&this.yAxis,I=l.options.chart.scrollablePlotArea||{};return e&&!1===this.options.clip&&C?e=l.inverted?{y:-l.chartWidth+C.len+C.pos,height:l.chartWidth,width:l.chartHeight,x:-l.chartHeight+v.len+v.pos}:{y:-C.pos,height:l.chartHeight,width:l.chartWidth,x:-v.pos}:(e=this.clipBox||l.clipBox,n&&(e.width=l.plotSizeX,e.x=(l.scrollablePixelsX||0)*(I.scrollPositionX||0))),n?{width:e.width,x:e.x}:e},setClip:function(e){var n=this.chart,o=this.options,l=n.renderer,u=n.inverted,v=this.clipBox,C=this.getClipBox(e),I=this.sharedClipKey||["_sharedClip",e&&e.duration,e&&e.easing,C.height,o.xAxis,o.yAxis].join(),j=n[I],$=n[I+"m"];e&&(C.width=0,u&&(C.x=n.plotHeight+(!1!==o.clip?0:n.plotTop))),j?n.hasLoaded||j.attr(C):(e&&(n[I+"m"]=$=l.clipRect(u?n.plotSizeX+99:-99,u?-n.plotLeft:-n.plotTop,99,u?n.chartWidth:n.chartHeight)),n[I]=j=l.clipRect(C),j.count={length:0}),e&&!j.count[this.index]&&(j.count[this.index]=!0,j.count.length+=1),(!1!==o.clip||e)&&(this.group.clip(e||v?j:n.clipRect),this.markerGroup.clip($),this.sharedClipKey=I),e||(j.count[this.index]&&(delete j.count[this.index],--j.count.length),0===j.count.length&&I&&n[I]&&(v||(n[I]=n[I].destroy()),n[I+"m"]&&(n[I+"m"]=n[I+"m"].destroy())))},animate:function(e){var n=this.chart,o=Y(this.options.animation);if(!n.hasRendered)if(e)this.setClip(o);else{var l=this.sharedClipKey;e=n[l];var u=this.getClipBox(o,!0);e&&e.animate(u,o),n[l+"m"]&&n[l+"m"].animate({width:u.width+99,x:u.x-(n.inverted?0:99)},o)}},afterAnimate:function(){this.setClip(),h(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var o,l,e=this.points,n=this.chart,u=this.options.marker,v=this[this.specialGroup]||this.markerGroup,C=this.xAxis,I=B(u.enabled,!(C&&!C.isRadial)||null,this.closestPointRangePx>=u.enabledThreshold*u.radius);if(!1!==u.enabled||this._hasPointMarkers)for(o=0;o<e.length;o++){var j=e[o],$=(l=j.graphic)?"animate":"attr",X=j.marker||{},W=!!j.marker;if((I&&typeof X.enabled>"u"||X.enabled)&&!j.isNull&&!1!==j.visible){var G=B(X.symbol,this.symbol),w=this.markerAttribs(j,j.selected&&"select");this.enabledDataSorting&&(j.startXPos=C.reversed?-w.width:C.width);var A=!1!==j.isInside;l?l[A?"show":"hide"](A).animate(w):A&&(0<w.width||j.hasImage)&&(j.graphic=l=n.renderer.symbol(G,w.x,w.y,w.width,w.height,W?X:u).add(v),this.enabledDataSorting&&n.hasRendered&&(l.attr({x:j.startXPos}),$="animate")),l&&"animate"===$&&l[A?"show":"hide"](A).animate(w),l&&!n.styledMode&&l[$](this.pointAttribs(j,j.selected&&"select")),l&&l.addClass(j.getClassName(),!0)}else l&&(j.graphic=l.destroy())}},markerAttribs:function(e,n){var o=this.options,l=o.marker,u=e.marker||{},v=u.symbol||l.symbol,C=B(u.radius,l.radius);return n&&(l=l.states[n],C=B((n=u.states&&u.states[n])&&n.radius,l&&l.radius,C+(l&&l.radiusPlus||0))),e.hasImage=v&&0===v.indexOf("url"),e.hasImage&&(C=0),e={x:o.crisp?Math.floor(e.plotX)-C:e.plotX-C,y:e.plotY-C},C&&(e.width=e.height=2*C),e},pointAttribs:function(e,n){var o=this.options.marker,l=e&&e.options,u=l&&l.marker||{},v=this.color,C=l&&l.color,I=e&&e.color;l=B(u.lineWidth,o.lineWidth);var j=e&&e.zone&&e.zone.color;return e=1,v=C||j||I||v,C=u.fillColor||o.fillColor||v,v=u.lineColor||o.lineColor||v,o=o.states[n=n||"normal"],l=B((n=u.states&&u.states[n]||{}).lineWidth,o.lineWidth,l+B(n.lineWidthPlus,o.lineWidthPlus,0)),{stroke:v=n.lineColor||o.lineColor||v,"stroke-width":l,fill:C=n.fillColor||o.fillColor||C,opacity:e=B(n.opacity,o.opacity,e)}},destroy:function(e){var v,I,j,n=this,o=n.chart,l=/AppleWebKit\/533/.test(a.navigator.userAgent),C=n.data||[];for(h(n,"destroy"),this.removeEvents(e),(n.axisTypes||[]).forEac
1h(function($){(j=n[$])&&j.series&&(P(j.series,n),j.isDirty=j.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),v=C.length;v--;)(I=C[v])&&I.destroy&&I.destroy();n.points=null,Q.clearTimeout(n.animationTimeout),S(n,function($,X){$ instanceof U&&!$.survive&&$[l&&"group"===X?"hide":"destroy"]()}),o.hoverSeries===n&&(o.hoverSeries=null),P(o.series,n),o.orderSeries(),S(n,function($,X){e&&"hcEvents"===X||delete n[X]})},getGraphPath:function(e,n,o){var C,$,l=this,u=l.options,v=u.step,I=[],j=[];return(C=(e=e||l.points).reversed)&&e.reverse(),(v={right:1,center:2}[v]||v&&3)&&C&&(v=4-v),(e=this.getValidPoints(e,!1,!(u.connectNulls&&!n&&!o))).forEach(function(X,W){var G=X.plotX,w=X.plotY,A=e[W-1];(X.leftCliff||A&&A.rightCliff)&&!o&&($=!0),X.isNull&&!b(n)&&0<W?$=!u.connectNulls:X.isNull&&!n?$=!0:(0===W||$?W=[["M",X.plotX,X.plotY]]:l.getPointSpline?W=[l.getPointSpline(e,X,W)]:v?(W=1===v?[["L",A.plotX,w]]:2===v?[["L",(A.plotX+G)/2,A.plotY],["L",(A.plotX+G)/2,w]]:[["L",G,A.plotY]]).push(["L",G,w]):W=[["L",G,w]],j.push(X.x),v&&(j.push(X.x),2===v&&j.push(X.x)),I.push.apply(I,W),$=!1)}),I.xMap=j,l.graphPath=I},drawGraph:function(){var e=this,n=this.options,o=(this.gappedPath||this.getGraphPath).call(this),l=this.chart.styledMode,u=[["graph","highcharts-graph"]];l||u[0].push(n.lineColor||this.color||"#cccccc",n.dashStyle),(u=e.getZonesGraphs(u)).forEach(function(v,C){var I=v[0],j=e[I],$=j?"animate":"attr";j?(j.endX=e.preventGraphAnimation?null:o.xMap,j.animate({d:o})):o.length&&(e[I]=j=e.chart.renderer.path(o).addClass(v[1]).attr({zIndex:1}).add(e.group)),j&&!l&&(I={stroke:v[2],"stroke-width":n.lineWidth,fill:e.fillGraph&&e.color||"none"},v[3]?I.dashstyle=v[3]:"square"!==n.linecap&&(I["stroke-linecap"]=I["stroke-linejoin"]="round"),j[$](I).shadow(2>C&&n.shadow)),j&&(j.startX=o.xMap,j.isArea=o.isArea)})},getZonesGraphs:function(e){return this.zones.forEach(function(n,o){o=["zone-graph-"+o,"highcharts-graph highcharts-zone-graph-"+o+" "+(n.className||"")],this.chart.styledMode||o.push(n.color||this.color,n.dashStyle||this.options.dashStyle),e.push(o)},this),e},applyZones:function(){var u,v,I,w,A,Z,it,ct,e=this,n=this.chart,o=n.renderer,l=this.zones,C=this.clips||[],j=this.graph,$=this.area,X=Math.max(n.chartWidth,n.chartHeight),W=this[(this.zoneAxis||"y")+"Axis"],G=n.inverted,J=!1;if(l.length&&(j||$)&&W&&typeof W.min<"u"){var O=W.reversed,H=W.horiz;j&&!this.showLine&&j.hide(),$&&$.hide();var rt=W.getExtremes();l.forEach(function(ht,dt){u=O?H?n.plotWidth:0:H?0:W.toPixels(rt.min)||0,u=D(B(v,u),0,X),v=D(Math.round(W.toPixels(B(ht.value,rt.max),!0)||0),0,X),J&&(u=v=W.toPixels(rt.max)),w=Math.abs(u-v),A=Math.min(u,v),Z=Math.max(u,v),W.isXAxis?(I={x:G?Z:A,y:0,width:w,height:X},H||(I.x=n.plotHeight-I.x)):(I={x:0,y:G?Z:A,width:X,height:w},H&&(I.y=n.plotWidth-I.y)),G&&o.isVML&&(I=W.isXAxis?{x:0,y:O?A:Z,height:I.width,width:n.chartWidth}:{x:I.y-n.plotLeft-n.spacingBox.x,y:0,width:I.height,height:n.chartHeight}),C[dt]?C[dt].animate(I):C[dt]=o.clipRect(I),it=e["zone-area-"+dt],ct=e["zone-graph-"+dt],j&&ct&&ct.clip(C[dt]),$&&it&&it.clip(C[dt]),J=ht.value>rt.max,e.resetZones&&0===v&&(v=void 0)}),this.clips=C}else e.visible&&(j&&j.show(!0),$&&$.show(!0))},invertGroups:function(e){function n(){["group","markerGroup"].forEach(function(u){o[u]&&(l.renderer.isVML&&o[u].attr({width:o.yAxis.len,height:o.xAxis.len}),o[u].width=o.yAxis.len,o[u].height=o.xAxis.len,o[u].invert(!o.isRadialSeries&&e))})}var o=this,l=o.chart;o.xAxis&&(o.eventsToUnbind.push(R(l,"resize",n)),n(),o.invertGroups=n)},plotGroup:function(e,n,o,l,u){var v=this[e],C=!v;return o={visibility:o,zIndex:l||.1},typeof this.opacity>"u"||this.chart.styledMode||"inactive"===this.state||(o.opacity=this.opacity),C&&(this[e]=v=this.chart.renderer.g().add(u)),v.addClass("highcharts-"+n+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(b(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(v.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),v.attr(o)[C?"attr":"animate"](this.getPlotBox()),v},getPlotBox:function(){var e=this.chart,n=this.xAxis,o=this.yAxis;return e.inverted&&(n=o,o=this.xAxis),{translateX:n?n.left:e.plotLeft,translateY:o?o.top:e.plotTop,scaleX:1,scaleY:1}},removeEvents:function(e){e?this.eventsToUnbind.length&&(this.eventsToUnbind.forEac
1h(function(n){n()}),this.eventsToUnbind.length=0):V(this)},render:function(){var e=this,n=e.chart,o=e.options,l=Y(o.animation),u=!e.finishedAnimating&&n.renderer.isSVG&&l.duration,v=e.visible?"inherit":"hidden",C=o.zIndex,I=e.hasRendered,j=n.seriesGroup,$=n.inverted;h(this,"render");var X=e.plotGroup("group","series",v,C,j);e.markerGroup=e.plotGroup("markerGroup","markers",v,C,j),u&&e.animate&&e.animate(!0),X.inverted=!(!e.isCartesian&&!e.invertable)&&$,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups($),!1===o.clip||e.sharedClipKey||I||X.clip(n.clipRect),u&&e.animate&&e.animate(),I||(u&&l.defer&&(u+=l.defer),e.animationTimeout=F(function(){e.afterAnimate()},u||0)),e.isDirty=!1,e.hasRendered=!0,h(e,"afterRender")},redraw:function(){var e=this.chart,n=this.isDirty||this.isDirtyData,o=this.group,l=this.xAxis,u=this.yAxis;o&&(e.inverted&&o.attr({width:e.plotWidth,height:e.plotHeight}),o.animate({translateX:B(l&&l.left,e.plotLeft),translateY:B(u&&u.top,e.plotTop)})),this.translate(),this.render(),n&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(e,n){var o=this.xAxis,l=this.yAxis,u=this.chart.inverted;return this.searchKDTree({clientX:u?o.len-e.chartY+o.pos:e.chartX-o.pos,plotY:u?l.len-e.chartX+l.pos:e.chartY-l.pos},n,e)},buildKDTree:function(e){function n(u,v,C){var I;if(I=u&&u.length){var j=o.kdAxisArray[v%C];return u.sort(function($,X){return $[j]-X[j]}),{point:u[I=Math.floor(I/2)],left:n(u.slice(0,I),v+1,C),right:n(u.slice(I+1),v+1,C)}}}this.buildingKdTree=!0;var o=this,l=-1<o.options.findNearestPointBy.indexOf("y")?2:1;delete o.kdTree,F(function(){o.kdTree=n(o.getValidPoints(null,!o.directTouch),l,l),o.buildingKdTree=!1},o.options.kdNow||e&&"touchstart"===e.type?0:1)},searchKDTree:function(e,n,o){var u=this,v=this.kdAxisArray[0],C=this.kdAxisArray[1],I=n?"distX":"dist";if(n=-1<u.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(o),this.kdTree)return function l(j,$,X,W){var G=$.point,w=u.kdAxisArray[X%W],A=G,Z=b(j[v])&&b(G[v])?Math.pow(j[v]-G[v],2):null,J=b(j[C])&&b(G[C])?Math.pow(j[C]-G[C],2):null;return G.dist=b(J=(Z||0)+(J||0))?Math.sqrt(J):Number.MAX_VALUE,G.distX=b(Z)?Math.sqrt(Z):Number.MAX_VALUE,Z=0>(w=j[w]-G[w])?"right":"left",$[J=0>w?"left":"right"]&&(A=(J=l(j,$[J],X+1,W))[I]<A[I]?J:G),$[Z]&&Math.sqrt(w*w)<A[I]&&(A=(j=l(j,$[Z],X+1,W))[I]<A[I]?j:A),A}(e,this.kdTree,n,n)},pointPlacementToXValue:function(){var e=this.options,n=e.pointRange,o=this.xAxis;return"between"===(e=e.pointPlacement)&&(e=o.reversed?-.5:.5),d(e)?e*B(n,o.pointRange):0},isPointInside:function(e){return typeof e.plotY<"u"&&typeof e.plotX<"u"&&0<=e.plotY&&e.plotY<=this.yAxis.len&&0<=e.plotX&&e.plotX<=this.xAxis.len}}),z}),_t(et,"Series/LineSeries.js",[et["Core/Series/CartesianSeries.js"],et["Core/Globals.js"]],function(z,q){return q.Series=z,q.Series}),_t(et,"Extensions/Stacking.js",[et["Core/Axis/Axis.js"],et["Core/Chart/Chart.js"],et["Core/Globals.js"],et["Core/Axis/StackingAxis.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot){var st=ot.correctFloat,U=ot.defined,Q=ot.destroyObjectProperties,Y=ot.format,M=ot.isNumber,R=ot.pick,E=tt.Series,L=function(){function D(t,b,P,T,x){var c=t.chart.inverted;this.axis=t,this.isNegative=P,this.options=b=b||{},this.x=T,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=x,this.rightCliff=this.leftCliff=0,this.alignOptions={align:b.align||(c?P?"left":"right":"center"),verticalAlign:b.verticalAlign||(c?"middle":P?"bottom":"top"),y:b.y,x:b.x},this.textAlign=b.textAlign||(c?P?"right":"left":"center")}return D.prototype.destroy=function(){Q(this,this.axis)},D.prototype.render=function(t){var b=this.axis.chart,P=this.options,T=P.format;T=T?Y(T,this,b):P.formatter.call(this),this.label?this.label.attr({text:T,visibility:"hidden"}):(this.label=b.renderer.label(T,null,null,P.shape,null,null,P.useHTML,!1,"stack-labels"),T={r:P.borderRadius||0,text:T,rotation:P.rotation,padding:R(P.padding,5),visibility:"hidden"},b.styledMode||(T.fill=P.backgroundColor,T.stroke=P.borderColor,T["stroke-width"]=P.borderWidth,this.label.css(P.style)),this.label.attr(T),this.label.added||this.label.add(t)),this.label.labelrank=b.plotHeight},D.prototype.setOffset=function(t,b,P,T,x){var c=this.axis,h=c.chart;T=c.translate(c.stacking.usePercentage?100:T||this.total,0,0,0,1),P=c.translate(P||0),P=U(T)&&Math.abs(T-P),t=R(x,h.xAxis[0].translate(this.x))+t,c=U(T)&&this.get
1StackBox(h,this,t,T,b,P,c),b=this.label,P=this.isNegative,t="justify"===R(this.options.overflow,"justify");var s=this.textAlign;b&&c&&(x=b.getBBox(),T=b.padding,s="left"===s?h.inverted?-T:T:"right"===s?x.width:h.inverted&&"center"===s?x.width/2:h.inverted?P?x.width+T:-T:x.width/2,P=h.inverted?x.height/2:P?-T:x.height,this.alignOptions.x=R(this.options.x,0),this.alignOptions.y=R(this.options.y,0),c.x-=s,c.y-=P,b.align(this.alignOptions,null,c),h.isInsidePlot(b.alignAttr.x+s-this.alignOptions.x,b.alignAttr.y+P-this.alignOptions.y)?b.show():(b.alignAttr.y=-9999,t=!1),t&&E.prototype.justifyDataLabel.call(this.axis,b,this.alignOptions,b.alignAttr,x,c),b.attr({x:b.alignAttr.x,y:b.alignAttr.y}),R(!t&&this.options.crop,!0)&&((h=M(b.x)&&M(b.y)&&h.isInsidePlot(b.x-T+b.width,b.y)&&h.isInsidePlot(b.x+T,b.y))||b.hide()))},D.prototype.getStackBox=function(t,b,P,T,x,c,h){var s=b.axis.reversed,r=t.inverted,f=h.height+h.pos-(r?t.plotLeft:t.plotTop);return b=b.isNegative&&!s||!b.isNegative&&s,{x:r?b?T-h.right:T-c+h.pos-t.plotLeft:P+t.xAxis[0].transB-t.plotLeft,y:r?h.height-P-x:b?f-T-c:f-T,width:r?c:x,height:r?x:c}},D}();return q.prototype.getStacks=function(){var D=this,t=D.inverted;D.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)}),D.series.forEach(function(b){var P=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==b.visible&&!1!==D.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,R(b.options.stack,""),t?P.top:P.left,t?P.height:P.width].join())})},nt.compose(z),E.prototype.setGroupedPoints=function(){this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length&&E.prototype.setStackedPoints.call(this,"group")},E.prototype.setStackedPoints=function(D){var t=D||this.options.stacking;if(t&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var b=this.processedXData,P=this.processedYData,T=[],x=P.length,c=this.options,h=c.threshold,s=R(c.startFromThreshold&&h,0);c=c.stack;var S,B,r="-"+(D=D?this.type+","+t:this.stackKey),f=this.negStacks,d=this.yAxis,y=d.stacking.stacks,_=d.stacking.oldStacks;for(d.stacking.stacksTouched+=1,B=0;B<x;B++){var V=b[B],K=P[B],F=this.getStackIndicator(F,V,this.index),k=F.key,a=(S=f&&K<(s?0:h))?r:D;y[a]||(y[a]={}),y[a][V]||(_[a]&&_[a][V]?(y[a][V]=_[a][V],y[a][V].total=null):y[a][V]=new L(d,d.options.stackLabels,S,V,c)),a=y[a][V],null!==K?(a.points[k]=a.points[this.index]=[R(a.cumulative,s)],U(a.cumulative)||(a.base=k),a.touched=d.stacking.stacksTouched,0<F.index&&!1===this.singleStacks&&(a.points[k][0]=a.points[this.index+","+V+",0"][0])):a.points[k]=a.points[this.index]=null,"percent"===t?(S=S?D:r,a.total=f&&y[S]&&y[S][V]?(S=y[S][V]).total=Math.max(S.total,a.total)+Math.abs(K)||0:st(a.total+(Math.abs(K)||0))):"group"===t?null!==K&&(a.total=(a.total||0)+1):a.total=st(a.total+(K||0)),a.cumulative="group"===t?(a.total||1)-1:R(a.cumulative,s)+(K||0),null!==K&&(a.points[k].push(a.cumulative),T[B]=a.cumulative,a.hasValidPoints=!0)}"percent"===t&&(d.stacking.usePercentage=!0),"group"!==t&&(this.stackedYData=T),d.stacking.oldStacks={}}},E.prototype.modifyStacks=function(){var T,D=this,t=D.stackKey,b=D.yAxis.stacking.stacks,P=D.processedXData,x=D.options.stacking;D[x+"Stacker"]&&[t,"-"+t].forEach(function(c){for(var s,r,h=P.length;h--;)T=D.getStackIndicator(T,s=P[h],D.index,c),(r=(s=b[c]&&b[c][s])&&s.points[T.key])&&D[x+"Stacker"](r,s,h)})},E.prototype.percentStacker=function(D,t,b){D[0]=st(D[0]*(t=t.total?100/t.total:0)),D[1]=st(D[1]*t),this.stackedYData[b]=D[1]},E.prototype.getStackIndicator=function(D,t,b,P){return!U(D)||D.x!==t||P&&D.key!==P?D={x:t,index:0,key:P}:D.index++,D.key=[b,t,D.index].join(),D},tt.StackItem=L,tt.StackItem}),_t(et,"Core/Dynamics.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Series/Series.js"],et["Core/Chart/Chart.js"],et["Core/Globals.js"],et["Series/LineSeries.js"],et["Core/Options.js"],et["Core/Series/Point.js"],et["Core/Time.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot,st,U,Q,Y,M){var R=z.animate,E=z.setAnimation,L=tt.seriesTypes,D=U.time,t=M.addEvent,b=M.createElement,P=M.css,T=M.defined,x=M.erase,c=M.error,h=M.extend,s=M.fireEvent,r=M.isArray,f=M.isNumber,d=M.isObject,y=M.isString,_=M.merge,S=M.objectEach,B=M.pick,V=M.relativeLength,K=M.splat;ot.cleanRecursively=function(F,k){var a={};return S(F,function(e,n){d(F[n],!0)&&!F.nodeType&&k[n]?(e=ot.cleanRecursively(F[n],k[n]),Object.keys(e).length&&(a[n]=e)):(d(F[n])||F[n]!==k[n])&&(a[n]=F[n])}),a},h(nt.prototype,{addSeries:function(F,k,a){var e,n=this;return F&&(k=B(k,!0),s(n,"addSeries",{options:F},function(){e=n.initSeries(F),n.isDirtyLegend=!0,n.linkSeries(),e.enabledDataSorting&&e.setData(F.data,!1),s(n,"afterAddSeries",{series:e}),k&&n.redraw(a)})),e},addAxis:function(F,k,a,e){return this.createAxis(k?"xAxis":"yAxis",{axis:F,redraw:a,animation:e})},addColorAxis:function(F,k,a){return this.createAxis("colorAxis",{axis:F,redraw:k,animation:a})},createAxis:function(F,k){var a=this.options,e="colorAxis"===F,n=k.redraw,o=k.animation;k=_(k.axis,{index:this[F].length,isX:"xAxis"===F});var l=e?new ot.ColorAxis(this,k):new q(this,k);return a[F]=K(a[F]||{}
1),a[F].push(k),e&&(this.isDirtyLegend=!0,this.axes.forEach(function(u){u.series=[]}),this.series.forEach(function(u){u.bindAxes(),u.isDirtyData=!0})),B(n,!0)&&this.redraw(o),l},showLoading:function(F){var k=this,a=k.options,e=k.loadingDiv,n=a.loading,o=function(){e&&P(e,{left:k.plotLeft+"px",top:k.plotTop+"px",width:k.plotWidth+"px",height:k.plotHeight+"px"})};e||(k.loadingDiv=e=b("div",{className:"highcharts-loading highcharts-loading-hidden"},null,k.container),k.loadingSpan=b("span",{className:"highcharts-loading-inner"},null,e),t(k,"redraw",o)),e.className="highcharts-loading",k.loadingSpan.innerHTML=B(F,a.lang.loading,""),k.styledMode||(P(e,h(n.style,{zIndex:10})),P(k.loadingSpan,n.labelStyle),k.loadingShown||(P(e,{opacity:0,display:""}),R(e,{opacity:n.style.opacity||.5},{duration:n.showDuration||0}))),k.loadingShown=!0,o()},hideLoading:function(){var F=this.options,k=this.loadingDiv;k&&(k.className="highcharts-loading highcharts-loading-hidden",this.styledMode||R(k,{opacity:0},{duration:F.loading.hideDuration||100,complete:function(){P(k,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroun
1dColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],update:function(F,k,a,e){var l,u,v,n=this,o={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},C=F.isResponsiveOptions,I=[];if(s(n,"update",{options:F}),C||n.setResponsive(!1,!0),F=ot.cleanRecursively(F,n.options),_(!0,n.userOptions,F),l=F.chart){if(_(!0,n.options.chart,l),"className"in l&&n.setClassName(l.className),"reflow"in l&&n.setReflow(l.reflow),"inverted"in l||"polar"in l||"type"in l){n.propFromSeries();var j=!0}"alignTicks"in l&&(j=!0),S(l,function($,X){-1!==n.propsRequireUpdateSeries.indexOf("chart."+X)&&(u=!0),-1!==n.propsRequireDirtyBox.indexOf(X)&&(n.isDirtyBox=!0),-1!==n.propsRequireReflow.indexOf(X)&&(C?n.isDirtyBox=!0:v=!0)}),!n.styledMode&&"style"in l&&n.renderer.setStyle(l.style)}!n.styledMode&&F.colors&&(this.options.colors=F.colors),F.time&&(this.time===D&&(this.time=new Y(F.time)),_(!0,n.options.time,F.time)),S(F,function($,X){n[X]&&"function"==typeof n[X].update?n[X].update($,!1):"function"==typeof n[o[X]]?n[o[X]]($):"color"!==X&&-1===n.collectionsWithUpdate.indexOf(X)&&_(!0,n.options[X],F[X]),"chart"!==X&&-1!==n.propsRequireUpdateSeries.indexOf(X)&&(u=!0)}),this.collectionsWithUpdate.forEach(function($){if(F[$]){if("series"===$){var X=[];n[$].forEach(function(W,G){W.options.isInternal||X.push(B(W.options.index,G))})}K(F[$]).forEach(function(W,G){var A,w=T(W.id);w&&(A=n.get(W.id)),A||(A=n[$][X?X[G]:G])&&w&&T(A.options.id)&&(A=void 0),A&&A.coll===$&&(A.update(W,!1),a&&(A.touched=!0)),!A&&a&&n.collectionsWithInit[$]&&(n.collectionsWithInit[$][0].apply(n,[W].concat(n.collectionsWithInit[$][1]||[]).concat([!1])).touched=!0)}),a&&n[$].forEach(function(W){W.touched||W.options.isInternal?delete W.touched:I.push(W)})}}),I.forEach(function($){$.remove&&$.remove(!1)}),j&&n.axes.forEach(function($){$.update({},!1)}),u&&n.getSeriesOrderByLinks().forEach(function($){$.chart&&$.update({},!1)},this),j=l&&l.width,y(l=l&&l.height)&&(l=V(l,j||n.chartWidth)),v||f(j)&&j!==n.chartWidth||f(l)&&l!==n.chartHeight?n.setSize(j,l,e):B(k,!0)&&n.redraw(e),s(n,"afterUpdate",{options:F,redraw:k,animation:e})},setSubtitle:function(F,k){this.applyDescription("subtitle",F),this.layOutTitles(k)},setCaption:function(F,k){this.applyDescription("caption",F),this.layOutTitles(k)}}),nt.prototype.collectionsWithInit={xAxis:[nt.prototype.addAxis,[!0]],yAxis:[nt.prototype.addAxis,[!1]],series:[nt.prototype.addSeries]},h(Q.prototype,{update:function(F,k,a,e){function n(){o.applyOptions(F);var j=u&&o.hasDummyGraphic;j=null===o.y?!j:j,u&&j&&(o.graphic=u.destroy(),delete o.hasDummyGraphic),d(F,!0)&&(u&&u.element&&F&&F.marker&&typeof F.marker.symbol<"u"&&(o.graphic=u.destroy()),F&&F.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()),o.connector&&(o.connector=o.connector.destroy())),l.updateParallelArrays(o,v=o.index),I.data[v]=d(I.data[v],!0)||d(F,!0)?o.options:B(F,I.data[v]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(C.isDirtyBox=!0),"point"===I.legendType&&(C.isDirtyLegend=!0),k&&C.redraw(a)}var v,o=this,l=o.series,u=o.graphic,C=l.chart,I=l.options;k=B(k,!0),!1===e?n():o.firePointEvent("update",{options:F},n)},remove:function(F,k){this.series.removePoint(this.series.data.indexOf(this),F,k)}}),h(st.prototype,{addPoint:function(F,k,a,e,n){var o=this.options,l=this.data,u=this.chart,v=this.xAxis;v=v&&v.hasNames&&v.names;var j,C=o.data,I=this.xData;k=B(k,!0);var $={series:this};this.pointClass.prototype.applyOptions.apply($,[F]);var X=$.x,W=I.length;if(this.requireSorting&&X<I[W-1])for(j=!0;W&&I[W-1]>X;)W--;this.updateParallelArrays($,"splice",W,0,0),this.updateParallelArrays($,W),v&&$.name&&(v[X]=$.name),C.splice(W,0,F),j&&(this.data.splice(W,0,null),this.processData()),"point"===o.legendT
1ype&&this.generatePoints(),a&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays($,"shift"),C.shift())),!1!==n&&s(this,"addPoint",{point:$}),this.isDirtyData=this.isDirty=!0,k&&u.redraw(e)},removePoint:function(F,k,a){var e=this,n=e.data,o=n[F],l=e.points,u=e.chart,v=function(){l&&l.length===n.length&&l.splice(F,1),n.splice(F,1),e.options.data.splice(F,1),e.updateParallelArrays(o||{series:e},"splice",F,1),o&&o.destroy(),e.isDirty=!0,e.isDirtyData=!0,k&&u.redraw()};E(a,u),k=B(k,!0),o?o.firePointEvent("remove",null,v):v()},remove:function(F,k,a,e){function n(){o.destroy(e),o.remove=null,l.isDirtyLegend=l.isDirtyBox=!0,l.linkSeries(),B(F,!0)&&l.redraw(k)}var o=this,l=o.chart;!1!==a?s(o,"remove",null,n):n()},update:function(F,k){F=ot.cleanRecursively(F,this.userOptions),s(this,"update",{options:F});var I,a=this,e=a.chart,n=a.userOptions,o=a.initialType||a.type,l=e.options.plotOptions,u=F.type||n.type||e.options.chart.type,v=!(this.hasDerivedData||u&&u!==this.type||typeof F.pointStart<"u"||typeof F.pointInterval<"u"||a.hasOptionChanged("dataGrouping")||a.hasOptionChanged("pointStart")||a.hasOptionChanged("pointInterval")||a.hasOptionChanged("pointIntervalUnit")||a.hasOptionChanged("keys")),C=L[o].prototype,j=["eventOptions","navigatorSeries","baseSeries"],$=a.finishedAnimating&&{animation:!1},X={};for(I in v&&(j.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==F.visible&&j.push("area","graph"),a.parallelArrays.forEach(function(G){j.push(G+"Data")}),F.data&&(F.dataSorting&&h(a.options.dataSorting,F.dataSorting),this.setData(F.data,!1))),F=_(n,$,{index:typeof n.index>"u"?a.index:n.index,pointStart:B(l&&l.series&&l.series.pointStart,n.pointStart,a.xData[0])},!v&&{data:a.options.data},F),v&&F.data&&(F.data=a.options.data),(j=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(j)).forEach(function(G){j[G]=a[G],delete a[G]}),a.remove(!1,null,!1,!0),C)a[I]=void 0;if(L[u||o]?h(a,L[u||o].prototype):c(17,!0,e,{missingModuleFor:u||o}),j.forEach(function(G){a[G]=j[G]}),a.init(e,F),v&&this.points){var W=a.options;!1===W.visible?(X.graphic=1,X.dataLabel=1):a._hasPointLabels||(n=W.dataLabels,(F=W.marker)&&(!1===F.enabled||"symbol"in F)&&(X.graphic=1),n&&!1===n.enabled&&(X.dataLabel=1)),this.points.forEach(function(G){G&&G.series&&(G.resolveColor(),Object.keys(X).length&&G.destroyElements(X),!1===W.showInLegend&&G.legendItem&&e.legend.destroyItem(G))},this)}a.initialType=o,e.linkSeries(),s(this,"afterUpdate"),B(k,!0)&&e.redraw(!!v&&void 0)},setName:function(F){this.name=this.options.name=this.userOptions.name=F,this.chart.isDirtyLegend=!0},hasOptionChanged:function(F){var k=this.options[F],a=this.chart.options.plotOptions,e=this.userOptions[F];return e?k!==e:k!==B(a&&a[this.type]&&a[this.type][F],a&&a.series&&a.series[F],k)}}),h(q.prototype,{update:function(F,k){var a=this.chart,e=F&&F.events||{};F=_(this.userOptions,F),a.options[this.coll].indexOf&&(a.options[this.coll][a.options[this.coll].indexOf(this.userOptions)]=F),S(a.options[this.coll].events,function(n,o){typeof e[o]>"u"&&(e[o]=void 0)}),this.destroy(!0),this.init(a,h(F,{events:e})),a.isDirtyBox=!0,B(k,!0)&&a.redraw()},remove:function(F){for(var k=this.chart,a=this.coll,e=this.series,n=e.length;n--;)e[n]&&e[n].remove(!1);x(k.axes,this),x(k[a],this),r(k.options[a])?k.options[a].splice(this.options.index,1):delete k.options[a],k[a].forEach(function(o,l){o.options.index=o.userOptions.index=l}),this.destroy(),k.isDirtyBox=!0,B(F,!0)&&k.redraw()},setTitle:function(F,k){this.update({title:F},k)},setCategories:function(F,k){this.update({categories:F},k)}})}),_t(et,"Series/AreaSeries.js",[et["Core/Series/Series.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Mixins/LegendSymbol.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot){var st=q.parse,U=ot.objectEach,Q=ot.pick,Y=tt.Series;z.seriesType("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(M){var h,R=[],E=[],L=this.xAxis,D=this.yAxis,t=D.stacking.stacks[this.stackKey],b={},P=this.index,T=D.series,x=T.length,c=Q(D.options.reversedStacks,!0)?1:-1;
1if(M=M||this.points,this.options.stacking){for(h=0;h<M.length;h++)M[h].leftNull=M[h].rightNull=void 0,b[M[h].x]=M[h];U(t,function(r,f){null!==r.total&&E.push(f)}),E.sort(function(r,f){return r-f});var s=T.map(function(r){return r.visible});E.forEach(function(r,f){var y,_,d=0;if(b[r]&&!b[r].isNull)R.push(b[r]),[-1,1].forEach(function(S){var B=1===S?"rightNull":"leftNull",V=0,K=t[E[f+S]];if(K)for(h=P;0<=h&&h<x;)(y=K.points[h])||(h===P?b[r][B]=!0:s[h]&&(_=t[r].points[h])&&(V-=_[1]-_[0])),h+=c;b[r][1===S?"rightCliff":"leftCliff"]=V});else{for(h=P;0<=h&&h<x;){if(y=t[r].points[h]){d=y[1];break}h+=c}d=D.translate(d,0,1,0,1),R.push({isNull:!0,plotX:L.translate(r,0,0,0,1),x:r,plotY:d,yBottom:d})}})}return R},getGraphPath:function(M){var t,R=Y.prototype.getGraphPath,E=this.options,L=E.stacking,D=this.yAxis,b=[],P=[],T=this.index,x=D.stacking.stacks[this.stackKey],c=E.threshold,h=Math.round(D.getThreshold(E.threshold));E=Q(E.connectNulls,"percent"===L);var s=function(y,_,S){var B=M[y];y=L&&x[B.x].points[T];var V=B[S+"Null"]||0;if(S=B[S+"Cliff"]||0,B=!0,S||V){var K=(V?y[0]:y[1])+S,F=y[0]+S;B=!!V}else!L&&M[_]&&M[_].isNull&&(K=F=c);typeof K<"u"&&(P.push({plotX:f,plotY:null===K?h:D.getThreshold(K),isNull:B,isCliff:!0}),b.push({plotX:f,plotY:null===F?h:D.getThreshold(F),doCurve:!1}))};for(M=M||this.points,L&&(M=this.getStackPoints(M)),t=0;t<M.length;t++){L||(M[t].leftCliff=M[t].rightCliff=M[t].leftNull=M[t].rightNull=void 0);var r=M[t].isNull,f=Q(M[t].rectPlotX,M[t].plotX),d=L?M[t].yBottom:h;(!r||E)&&(E||s(t,t-1,"left"),r&&!L&&E||(P.push(M[t]),b.push({x:t,plotX:f,plotY:d})),E||s(t,t+1,"right"))}return t=R.call(this,P,!0,!0),b.reversed=!0,(d=(r=R.call(this,b,!0,!0))[0])&&"M"===d[0]&&(r[0]=["L",d[1],d[2]]),r=t.concat(r),R=R.call(this,P,!1,E),r.xMap=t.xMap,this.areaPath=r,R},drawGraph:function(){this.areaPath=[],Y.prototype.drawGraph.apply(this);var M=this,R=this.areaPath,E=this.options,L=[["area","highcharts-area",this.color,E.fillColor]];this.zones.forEach(function(D,t){L.push(["zone-area-"+t,"highcharts-area highcharts-zone-area-"+t+" "+D.className,D.color||M.color,D.fillColor||E.fillColor])}),L.forEach(function(D){var t=D[0],b=M[t],P=b?"animate":"attr",T={};b?(b.endX=M.preventGraphAnimation?null:R.xMap,b.animate({d:R})):(T.zIndex=0,(b=M[t]=M.chart.renderer.path(R).addClass(D[1]).add(M.group)).isArea=!0),M.chart.styledMode||(T.fill=Q(D[3],st(D[2]).setOpacity(Q(E.fillOpacity,.75)).get())),b[P](T),b.startX=R.xMap,b.shiftUnit=E.step?2:1})},drawLegendSymbol:nt.drawRectangle})}),_t(et,"Series/SplineSeries.js",[et["Core/Series/Series.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.pick;z.seriesType("spline","line",{},{getPointSpline:function(nt,ot,st){var U=ot.plotX||0,Q=ot.plotY||0,Y=nt[st-1];if(st=nt[st+1],Y&&!Y.isNull&&!1!==Y.doCurve&&!ot.isCliff&&st&&!st.isNull&&!1!==st.doCurve&&!ot.isCliff){var M=st.plotX||0,R=0,E=(1.5*U+(Y.plotX||0))/2.5,L=(1.5*Q+(nt=Y.plotY||0))/2.5,D=(1.5*Q+(st=st.plotY||0))/2.5;(M=(1.5*U+M)/2.5)!==E&&(R=(D-L)*(M-U)/(M-E)+Q-D),D+=R,(L+=R)>nt&&L>Q?D=2*Q-(L=Math.max(nt,Q)):L<nt&&L<Q&&(D=2*Q-(L=Math.min(nt,Q))),D>st&&D>Q?L=2*Q-(D=Math.max(st,Q)):D<st&&D<Q&&(L=2*Q-(D=Math.min(st,Q))),ot.rightContX=M,ot.rightContY=D}return ot=["C",tt(Y.rightContX,Y.plotX,0),tt(Y.rightContY,Y.plotY,0),tt(E,U,0),tt(L,Q,0),U,Q],Y.rightContX=Y.rightContY=void 0,ot}})}),_t(et,"Series/AreaSplineSeries.js",[et["Core/Series/Series.js"],et["Mixins/LegendSymbol.js"],et["Core/Options.js"]],function(z,q,tt){var nt=z.seriesTypes.area.prototype;z.seriesType("areaspline","spline",tt.defaultOptions.plotOptions.area,{getStackPoints:nt.getStackPoints,getGraphPath:nt.getGraphPath,drawGraph:nt.drawGraph,drawLegendSymbol:q.drawRectangle})}),_t(et,"Series/ColumnSeries.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Series.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Mixins/LegendSymbol.js"],et["Series/LineSeries.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot,st,U){var Q=z.animObject,Y=tt.parse,M=U.clamp,R=U.defined,E=U.extend,L=U.isArray,D=U.isNumber,t=U.merge,b=U.pick,P=U.objectEach;return q=q.seriesType("column","line",{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){st.prototype.init.a
1pply(this,arguments);var T=this,x=T.chart;x.hasRendered&&x.series.forEach(function(c){c.type===T.type&&(c.isDirty=!0)})},getColumnMetrics:function(){var T=this,x=T.options,c=T.xAxis,h=T.yAxis,s=c.options.reversedStacks;s=c.reversed&&!s||!c.reversed&&s;var r,f={},d=0;!1===x.grouping?d=1:T.chart.series.forEach(function(B){var V=B.yAxis,K=B.options;if(B.type===T.type&&(B.visible||!T.chart.options.chart.ignoreHiddenSeries)&&h.len===V.len&&h.pos===V.pos){if(K.stacking&&"group"!==K.stacking){typeof f[r=B.stackKey]>"u"&&(f[r]=d++);var F=f[r]}else!1!==K.grouping&&(F=d++);B.columnIndex=F}});var y=Math.min(Math.abs(c.transA)*(c.ordinal&&c.ordinal.slope||x.pointRange||c.closestPointRange||c.tickInterval||1),c.len),_=y*x.groupPadding,S=(y-2*_)/(d||1);return x=Math.min(x.maxPointWidth||c.len,b(x.pointWidth,S*(1-2*x.pointPadding))),T.columnMetrics={width:x,offset:(S-x)/2+(_+((T.columnIndex||0)+(s?1:0))*S-y/2)*(s?-1:1),paddedWidth:S,columnCount:d},T.columnMetrics},crispCol:function(T,x,c,h){var s=this.chart,r=this.borderWidth,f=-(r%2?.5:0);return r=r%2?.5:1,s.inverted&&s.renderer.isVML&&(r+=1),this.options.crisp&&(c=Math.round(T+c)+f,c-=T=Math.round(T)+f),h=Math.round(x+h)+r,f=.5>=Math.abs(x)&&.5<h,h-=x=Math.round(x)+r,f&&h&&(--x,h+=1),{x:T,y:x,width:c,height:h}},adjustForMissingColumns:function(T,x,c,h){var s=this,r=this.options.stacking;if(!c.isNull&&1<h.columnCount){var f=0,d=0;P(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(y){if("number"==typeof c.x&&(y=y[c.x.toString()])){var _=y.points[s.index],S=y.total;r?(_&&(f=d),y.hasValidPoints&&d++):L(_)&&(f=_[1],d=S||0)}}),T=(c.plotX||0)+((d-1)*h.paddedWidth+x)/2-x-f*h.paddedWidth}return T},translate:function(){var T=this,x=T.chart,c=T.options,h=T.dense=2>T.closestPointRange*T.xAxis.transA;h=T.borderWidth=b(c.borderWidth,h?0:1);var s=T.xAxis,r=T.yAxis,f=c.threshold,d=T.translatedThreshold=r.getThreshold(f),y=b(c.minPointLength,5),_=T.getColumnMetrics(),S=_.width,B=T.barW=Math.max(S,1+2*h),V=T.pointXOffset=_.offset,K=T.dataMin,F=T.dataMax;x.inverted&&(d-=.5),c.pointPadding&&(B=Math.ceil(B)),st.prototype.translate.apply(T),T.points.forEach(function(k){var a=b(k.yBottom,d),e=999+Math.abs(a),n=S,o=k.plotX||0;e=M(k.plotY,-e,r.len+e);var l=o+V,u=B,v=Math.min(e,a),C=Math.max(e,a)-v;if(y&&Math.abs(C)<y){C=y;var I=!r.reversed&&!k.negative||r.reversed&&k.negative;D(f)&&D(F)&&k.y===f&&F<=f&&(r.min||0)<f&&K!==F&&(I=!I),v=Math.abs(v-d)>y?a-y:d-(I?y:0)}R(k.options.pointWidth)&&(n=u=Math.ceil(k.options.pointWidth),l-=Math.round((n-S)/2)),c.centerInCategory&&(l=T.adjustForMissingColumns(l,n,k,_)),k.barX=l,k.pointWidth=n,k.tooltipPos=x.inverted?[r.len+r.pos-x.plotLeft-e,s.len+s.pos-x.plotTop-(o||0)-V-u/2,C]:[l+u/2,e+r.pos-x.plotTop,C],k.shapeType=T.pointClass.prototype.shapeType||"rect",k.shapeArgs=T.crispCol.apply(T,k.isNull?[l,d,u,0]:[l,v,u,C])})},getSymbol:z=nt.noop,drawLegendSymbol:ot.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(T,x){var c=this.options,h=this.pointAttrToOptions||{},s=h.stroke||"borderColor",r=h["stroke-width"]||"borderWidth",f=T&&T.color||this.color,d=T&&T[s]||c[s]||this.color||f,y=T&&T[r]||c[r]||this[r]||0;h=T&&T.options.dashStyle||c.dashStyle;var _=b(T&&T.opacity,c.opacity,1);if(T&&this.zones.length){var S=T.getZone();f=T.options.color||S&&(S.color||T.nonZonedColor)||this.color,S&&(d=S.borderColor||d,h=S.dashStyle||h,y=S.borderWidth||y)}return x&&T&&(x=(T=t(c.states[x],T.options.states&&T.options.states[x]||{})).brightness,f=T.color||typeof x<"u"&&Y(f).brighten(T.brightness).get()||f,d=T[s]||d,y=T[r]||y,h=T.dashStyle||h,_=b(T.opacity,_)),s={fill:f,stroke:d,"stroke-width":y,opacity:_},h&&(s.dashstyle=h),s},drawPoints:function(){var r,T=this,x=this.chart,c=T.options,h=x.renderer,s=c.animationLimit||250;T.points.forEach(function(f){var d=f.graphic,y=!!d,_=d&&x.pointCount<s?"animate":"attr";D(f.plotY)&&null!==f.y?(r=f.shapeArgs,d&&f.hasNewShapeType()&&(d=d.destroy()),T.enabledDataSorting&&(f.startXPos=T.xAxis.reversed?-(r?r.width:0):T.xAxis.width),d||(f.graphic=d=h[f.shapeType](r).add(f.group||T.group))&&T.enabledDataSorting&&x.hasRendered&&x.pointCount<s&&(d.attr({x:f.startXPos}),y=!0,_="animate"),d&&y&&d[_](t(r)),c.borderRadius&&d[_]({r:c.borderRadius}),x.styledMode||d[_](T.pointAttribs(f,f.selected&&"select")).shadow(!1!==f.allowShadow&&c.shadow,null,c.stacking&&!c.borderRadius),d.addClass(f.getClassName(),!0)):d&&(f.graphic=d.destroy())})},animate:function(T){var x=this,c=this.yAxis,h=x.options,s=this.chart.inverted,r={},f=s?"translateX":"translateY";
1if(T)r.scaleY=.001,T=M(c.toPixels(h.threshold),c.pos,c.pos+c.len),s?r.translateX=T-c.len:r.translateY=T,x.clipBox&&x.setClip(),x.group.attr(r);else{var d=x.group.attr(f);x.group.animate({scaleY:1},E(Q(x.options.animation),{step:function(y,_){x.group&&(r[f]=d+_.pos*(c.pos-d),x.group.attr(r))}}))}},remove:function(){var T=this,x=T.chart;x.hasRendered&&x.series.forEach(function(c){c.type===T.type&&(c.isDirty=!0)}),st.prototype.remove.apply(T,arguments)}}),q}),_t(et,"Series/BarSeries.js",[et["Core/Series/Series.js"]],function(z){z.seriesType("bar","column",null,{inverted:!0})}),_t(et,"Series/ScatterSeries.js",[et["Core/Series/Series.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q,tt){tt=tt.addEvent;var nt=q.Series;z.seriesType("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&nt.prototype.drawGraph.call(this)},applyJitter:function(){var ot=this,st=this.options.jitter,U=this.points.length;st&&this.points.forEach(function(Q,Y){["x","y"].forEach(function(M,R){var E="plot"+M.toUpperCase();if(st[M]&&!Q.isNull){var L=ot[M+"Axis"],D=st[M]*L.transA;if(L&&!L.isLog){var t=Math.max(0,Q[E]-D);L=Math.min(L.len,Q[E]+D),R=1e4*Math.sin(Y+R*U),Q[E]=t+(L-t)*(R-Math.floor(R)),"x"===M&&(Q.clientX=Q.plotX)}}})})}}),tt(nt,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),_t(et,"Mixins/CenteredSeries.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.isNumber,nt=q.pick,ot=q.relativeLength,st=z.deg2rad;return z.CenteredSeriesMixin={getCenter:function(){var U=this.options,Q=this.chart,Y=2*(U.slicedOffset||0),M=Q.plotWidth-2*Y,R=Q.plotHeight-2*Y,E=U.center,L=Math.min(M,R),D=U.size,t=U.innerSize||0;for("string"==typeof D&&(D=parseFloat(D)),"string"==typeof t&&(t=parseFloat(t)),U=[nt(E[0],"50%"),nt(E[1],"50%"),nt(D&&0>D?void 0:U.size,"100%"),nt(t&&0>t?void 0:U.innerSize||0,"0%")],!Q.angular||this instanceof z.Series||(U[3]=0),E=0;4>E;++E)D=U[E],Q=2>E||2===E&&/%$/.test(D),U[E]=ot(D,[M,R,L,U[2]][E])+(Q?Y:0);return U[3]>U[2]&&(U[3]=U[2]),U},getStartAndEndRadians:function(U,Q){return U=tt(U)?U:0,Q=tt(Q)&&Q>U&&360>Q-U?Q:U+360,{start:st*(U+-90),end:st*(Q+-90)}}}}),_t(et,"Series/PieSeries.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Series.js"],et["Mixins/CenteredSeries.js"],et["Core/Globals.js"],et["Mixins/LegendSymbol.js"],et["Series/LineSeries.js"],et["Core/Series/Point.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot,st,U,Q,Y){var M=z.setAnimation,R=tt.getStartAndEndRadians,E=Y.addEvent,L=Y.clamp,D=Y.defined,t=Y.fireEvent,b=Y.isNumber,P=Y.merge,T=Y.pick,x=Y.relativeLength;q.seriesType("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:q.seriesTypes.column.prototype.pointAttribs,animate:function(c){var h=this,r=h.startAngleRad;c||h.points.forEach(function(f){var d=f.graphic,y=f.shapeArgs;d&&y&&(d.attr({r:T(f.startR,h.center&&h.center[3]/2),start:r,end:r}),d.animate({r:y.r,start:y.start,end:y.end},h.options.animation))})},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var c,h=0,s=this.points,r=s.length,f=this.options.ignoreHiddenPoint;for(c=0;c<r;c++){var d=s[c];h+=f&&!d.visible||d.isNull?0:d.y}for(this.total=h,c=0;c<r;c++)(d=s[c]).percentage=0<h&&(d.visible||!f)?d.y/h*100:0,d.total=h},generatePoints:function(){st.prototype.generatePoints.call(this),this.updateTotals()},getX:function(c,h,s){var r=this.center,f=this.radii?this.radii[s.index]:r[2]/2;return c=Math.asin(L((c-r[1])/(f+s.labelDistance),-1,1)),r[0]+(h?-1:1)*Math.cos(c)*(f
1+s.labelDistance)+(0<s.labelDistance?(h?-1:1)*this.options.dataLabels.padding:0)},translate:function(c){this.generatePoints();var h=0,s=this.options,r=s.slicedOffset,f=r+(s.borderWidth||0),d=R(s.startAngle,s.endAngle),y=this.startAngleRad=d.start;d=(this.endAngleRad=d.end)-y;var _=this.points,S=s.dataLabels.distance;s=s.ignoreHiddenPoint;var B,V=_.length;for(c||(this.center=c=this.getCenter()),B=0;B<V;B++){var K=_[B],F=y+h*d;(!s||K.visible)&&(h+=K.percentage/100);var k=y+h*d;K.shapeType="arc",K.shapeArgs={x:c[0],y:c[1],r:c[2]/2,innerR:c[3]/2,start:Math.round(1e3*F)/1e3,end:Math.round(1e3*k)/1e3},K.labelDistance=T(K.options.dataLabels&&K.options.dataLabels.distance,S),K.labelDistance=x(K.labelDistance,K.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,K.labelDistance),(k=(k+F)/2)>1.5*Math.PI?k-=2*Math.PI:k<-Math.PI/2&&(k+=2*Math.PI),K.slicedTranslation={translateX:Math.round(Math.cos(k)*r),translateY:Math.round(Math.sin(k)*r)};var a=Math.cos(k)*c[2]/2,e=Math.sin(k)*c[2]/2;K.tooltipPos=[c[0]+.7*a,c[1]+.7*e],K.half=k<-Math.PI/2||k>Math.PI/2?1:0,K.angle=k,F=Math.min(f,K.labelDistance/5),K.labelPosition={natural:{x:c[0]+a+Math.cos(k)*K.labelDistance,y:c[1]+e+Math.sin(k)*K.labelDistance},final:{},alignment:0>K.labelDistance?"center":K.half?"right":"left",connectorPosition:{breakAt:{x:c[0]+a+Math.cos(k)*F,y:c[1]+e+Math.sin(k)*F},touchingSliceAt:{x:c[0]+a,y:c[1]+e}}}}t(this,"afterTranslate")},drawEmpty:function(){var c=this.startAngleRad,h=this.endAngleRad,s=this.options;if(0===this.total&&this.center){var r=this.center[0],f=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,f,this.center[1]/2,0,c,h).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Q.prototype.symbols.arc(r,f,this.center[2]/2,0,{start:c,end:h,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":s.borderWidth,fill:s.fillColor||"none",stroke:s.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var r,f,d,y,c=this,h=c.chart,s=h.renderer,_=c.options.shadow;this.drawEmpty(),!_||c.shadowGroup||h.styledMode||(c.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(c.group)),c.points.forEach(function(S){var B={};if(f=S.graphic,!S.isNull&&f){if(y=S.shapeArgs,r=S.getTranslate(),!h.styledMode){var V=S.shadowGroup;_&&!V&&(V=S.shadowGroup=s.g("shadow").add(c.shadowGroup)),V&&V.attr(r),d=c.pointAttribs(S,S.selected&&"select")}S.delayedRendering?(f.setRadialReference(c.center).attr(y).attr(r),h.styledMode||f.attr(d).attr({"stroke-linejoin":"round"}).shadow(_,V),S.delayedRendering=!1):(f.setRadialReference(c.center),h.styledMode||P(!0,B,d),P(!0,B,y,r),f.animate(B)),f.attr({visibility:S.visible?"inherit":"hidden"}),f.addClass(S.getClassName())}else f&&(S.graphic=f.destroy())})},drawPoints:function(){var c=this.chart.renderer;this.points.forEach(function(h){h.graphic&&h.hasNewShapeType()&&(h.graphic=h.graphic.destroy()),h.graphic||(h.graphic=c[h.shapeType](h.shapeArgs).add(h.series.group),h.delayedRendering=!0)})},searchPoint:z=nt.noop,sortByAngle:function(c,h){c.sort(function(s,r){return typeof s.angle<"u"&&(r.angle-s.angle)*h})},drawLegendSymbol:ot.drawRectangle,getCenter:tt.getCenter,getSymbol:z,drawGraph:null},{init:function(){U.prototype.init.apply(this,arguments);var c=this;c.name=T(c.name,"Slice");var h=function(s){c.slice("select"===s.type)};return E(c,"select",h),E(c,"unselect",h),c},isValid:function(){return b(this.y)&&0<=this.y},setVisible:function(c,h){var s=this,r=s.series,f=r.chart,d=r.options.ignoreHiddenPoint;h=T(h,d),c!==s.visible&&(s.visible=s.options.visible=c=typeof c>"u"?!s.visible:c,r.options.data[r.data.indexOf(s)]=s.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(y){s[y]&&s[y][c?"show":"hide"](!0)}),s.legendItem&&f.legend.colorizeItem(s,c),c||"hover"!==s.state||s.setState(""),d&&(r.isDirty=!0),h&&f.redraw())},slice:function(c,h,s){var r=this.series;M(s,r.chart),T(h,!0),this.sliced=this.options.sliced=D(c)?c:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(c){var h=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(h.x,h.y,h.r+c,h.r+c,{innerR:h.r-1,start:h.start,end:h.end})},connectorShapes:{fixedOffset:function(c,h,s){var r=h.breakAt;return h=h.touchingSliceAt,[["M",c.x,c.y],s.softConnector?["C",c.x+("left"===c.alignment?-5:5),c.y,2*r.x-h.x,2*r.y-h.y,r.x,r.y]:["L",r.x,r.y],["L",h.x,h.y]]},straight:function(c,h){return[["M",c.x,c.y],["L",(h=h.touchingSliceAt).x,h.y]]},crookedLine:function(c,h,s){h=h.touchingSliceAt;var r=this.series,f=r.center[0],d=r.chart.plotWidth,y=r.chart.plotLeft;r=c.alignment;var _=this.shapeArgs.r;return s=x(s.crookDistance,1),s=["L",d="left"===r?f+_+(d+y-f-_)*(1-s):y+(f-_)*s,c.y],f=!0,("left"===r?d>c.x||d<h.x:d<c.x||d>h.x)&&(f=!1),c=[["M",c.x,c.y]],f&&c.push(s),c.push(["L",h.x,h.y]),c}},getConnectorPath:function(){var c=this.labelPosition,h=this.series.options.dataLabels,s=h.connectorShape,r=this.connectorShapes;return r[s]&&(s=r[s]),s.call(this,{x:c.final.x,y:c.final.y,alignment:c.alignment},c.connectorPosition,h)}})}
1),_t(et,"Core/Series/DataLabels.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Globals.js"],et["Core/Series/CartesianSeries.js"],et["Core/Utilities.js"]],function(z,q,tt,nt){var ot=z.getDeferredAnimation;z=q.noop;var st=q.seriesTypes,U=nt.arrayMax,Q=nt.clamp,Y=nt.defined,M=nt.extend,R=nt.fireEvent,E=nt.format,L=nt.isArray,D=nt.merge,t=nt.objectEach,b=nt.pick,P=nt.relativeLength,T=nt.splat,x=nt.stableSort;q.distribute=function(c,h,s){function r(V,K){return V.target-K.target}var f,d=!0,y=c,_=[],S=0,B=y.reducedLen||h;for(f=c.length;f--;)S+=c[f].size;if(S>B){for(x(c,function(V,K){return(K.rank||0)-(V.rank||0)}),S=f=0;S<=B;)S+=c[f].size,f++;_=c.splice(f-1,c.length)}for(x(c,r),c=c.map(function(V){return{size:V.size,targets:[V.target],align:b(V.align,.5)}});d;){for(f=c.length;f--;)d=c[f],S=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=Q(S-d.size*d.align,0,h-d.size);for(f=c.length,d=!1;f--;)0<f&&c[f-1].pos+c[f-1].size>c[f].pos&&(c[f-1].size+=c[f].size,c[f-1].targets=c[f-1].targets.concat(c[f].targets),c[f-1].align=.5,c[f-1].pos+c[f-1].size>h&&(c[f-1].pos=h-c[f-1].size),c.splice(f,1),d=!0)}y.push.apply(y,_),f=0,c.some(function(V){var K=0;if(V.targets.some(function(){if(y[f].pos=V.pos+K,typeof s<"u"&&Math.abs(y[f].pos-y[f].target)>s)return y.slice(0,f+1).forEach(function(F){delete F.pos}),y.reducedLen=(y.reducedLen||h)-.1*h,y.reducedLen>.1*h&&q.distribute(y,h,s),!0;K+=y[f].size,f++}))return!0}),x(y,r)},tt.prototype.drawDataLabels=function(){function h(F,k){var e,a=[];if(L(F)&&!L(k))a=F.map(function(n){return D(n,k)});else if(L(k)&&!L(F))a=k.map(function(n){return D(F,n)});else if(L(F)||L(k))for(e=Math.max(F.length,k.length);e--;)a[e]=D(F[e],k[e]);else a=D(F,k);return a}var s=this,r=s.chart,f=s.options,d=f.dataLabels,y=s.points,S=s.hasRendered||0,B=d.animation;B=d.defer?ot(r,B,s):{defer:0,duration:0};var V=r.renderer;if(d=h(h(r.options.plotOptions&&r.options.plotOptions.series&&r.options.plotOptions.series.dataLabels,r.options.plotOptions&&r.options.plotOptions[s.type]&&r.options.plotOptions[s.type].dataLabels),d),R(this,"drawDataLabels"),L(d)||d.enabled||s._hasPointLabels){var K=s.plotGroup("dataLabelsGroup","data-labels",S?"inherit":"hidden",d.zIndex||6);K.attr({opacity:+S}),!S&&(S=s.dataLabelsGroup)&&(s.visible&&K.show(!0),S[f.animation?"animate":"attr"]({opacity:1},B)),y.forEach(function(F){T(h(d,F.dlOptions||F.options&&F.options.dataLabels)).forEach(function(k,a){var e=k.enabled&&(!F.isNull||F.dataLabelOnNull)&&function c(F,k){var a=k.filter;return!a||(k=a.operator,F=F[a.property],a=a.value,">"===k&&F>a||"<"===k&&F<a||">="===k&&F>=a||"<="===k&&F<=a||"=="===k&&F==a||"==="===k&&F===a)}(F,k),n=F.dataLabels?F.dataLabels[a]:F.dataLabel,o=F.connectors?F.connectors[a]:F.connector,l=b(k.distance,F.labelDistance),u=!n;if(e){var v=F.getLabelConfig(),C=b(k[F.formatPrefix+"Format"],k.format);v=Y(C)?E(C,v,r):(k[F.formatPrefix+"Formatter"]||k.formatter).call(v,k),C=k.style;var I=k.rotation;r.styledMode||(C.color=b(k.color,C.color,s.color,"#000000"),"contrast"===C.color?(F.contrastColor=V.getContrast(F.color||s.color),C.color=!Y(l)&&k.inside||0>l||f.stacking?F.contrastColor:"#000000"):delete F.contrastColor,f.cursor&&(C.cursor=f.cursor));var j={r:k.borderRadius||0,rotation:I,padding:k.padding,zIndex:1};r.styledMode||(j.fill=k.backgroundColor,j.stroke=k.borderColor,j["stroke-width"]=k.borderWidth),t(j,function($,X){typeof $>"u"&&delete j[X]})}!n||e&&Y(v)?e&&Y(v)&&(n?j.text=v:(F.dataLabels=F.dataLabels||[],n=F.dataLabels[a]=I?V.text(v,0,-9999,k.useHTML).addClass("highcharts-data-label"):V.label(v,0,-9999,k.shape,null,null,k.useHTML,null,"data-label"),a||(F.dataLabel=n),n.addClass(" highcharts-data-label-color-"+F.colorIndex+" "+(k.className||"")+(k.useHTML?" highcharts-tracker":""))),n.options=k,n.attr(j),r.styledMode||n.css(C).shadow(k.shadow),n.added||n.add(K),k.textPath&&!k.useHTML&&(n.setTextPath(F.getDataLabelPath&&F.getDataLabelPath(n)||F.graphic,k.textPath),F.dataLabelPath&&!k.textPath.enabled&&(F.dataLabelPath=F.dataLabelPath.destroy())),s.alignDataLabel(F,n,k,null,u)):(F.dataLabel=F.dataLabel&&F.dataLabel.destroy(),F.dataLabels&&(1===F.dataLabels.length?delete F.dataLabels:delete F.dataLabels[a]),a||delete F.dataLabel,o&&(F.connector=F.connector.de
1stroy(),F.connectors&&(1===F.connectors.length?delete F.connectors:delete F.connectors[a])))})})}R(this,"afterDrawDataLabels")},tt.prototype.alignDataLabel=function(c,h,s,r,f){var d=this,y=this.chart,_=this.isCartesian&&y.inverted,S=this.enabledDataSorting,B=b(c.dlBox&&c.dlBox.centerX,c.plotX,-9999),V=b(c.plotY,-9999),K=h.getBBox(),F=s.rotation,k=s.align,a=y.isInsidePlot(B,Math.round(V),_),e="justify"===b(s.overflow,S?"none":"justify"),n=this.visible&&!1!==c.visible&&(c.series.forceDL||S&&!e||a||s.inside&&r&&y.isInsidePlot(B,_?r.x+1:r.y+r.height-1,_)),o=function(u){S&&d.xAxis&&!e&&d.setDataLabelStartPos(c,h,f,a,u)};if(n){var l=y.renderer.fontMetrics(y.styledMode?void 0:s.style.fontSize,h).b;r=M({x:_?this.yAxis.len-V:B,y:Math.round(_?this.xAxis.len-B:V),width:0,height:0},r),M(s,{width:K.width,height:K.height}),F?(e=!1,B=y.renderer.rotCorr(l,F),o(B={x:r.x+(s.x||0)+r.width/2+B.x,y:r.y+(s.y||0)+{top:0,middle:.5,bottom:1}[s.verticalAlign]*r.height}),h[f?"attr":"animate"](B).attr({align:k}),o=180<(o=(F+720)%360)&&360>o,"left"===k?B.y-=o?K.height:0:"center"===k?(B.x-=K.width/2,B.y-=K.height/2):"right"===k&&(B.x-=K.width,B.y-=o?0:K.height),h.placed=!0,h.alignAttr=B):(o(r),h.align(s,null,r),B=h.alignAttr),e&&0<=r.height?this.justifyDataLabel(h,s,B,K,r,f):b(s.crop,!0)&&(n=y.isInsidePlot(B.x,B.y)&&y.isInsidePlot(B.x+K.width,B.y+K.height)),s.shape&&!F&&h[f?"attr":"animate"]({anchorX:_?y.plotWidth-c.plotY:c.plotX,anchorY:_?y.plotHeight-c.plotX:c.plotY})}f&&S&&(h.placed=!1),n||S&&!e||(h.hide(!0),h.placed=!1)},tt.prototype.setDataLabelStartPos=function(c,h,s,r,f){var d=this.chart,y=d.inverted,_=this.xAxis,S=_.reversed,B=y?h.height/2:h.width/2;c=(c=c.pointWidth)?c/2:0,_=y?f.x:S?-B-c:_.width-B+c,f=y?S?this.yAxis.height-B+c:-B-c:f.y,h.startXPos=_,h.startYPos=f,r?"hidden"===h.visibility&&(h.show(),h.attr({opacity:0}).animate({opacity:1})):h.attr({opacity:1}).animate({opacity:0}
1,void 0,h.hide),d.hasRendered&&(s&&h.attr({x:h.startXPos,y:h.startYPos}),h.placed=!0)},tt.prototype.justifyDataLabel=function(c,h,s,r,f,d){var y=this.chart,_=h.align,S=h.verticalAlign,B=c.box?0:c.padding||0,V=h.x;V=void 0===V?0:V;var K=h.y,F=void 0===K?0:K;if(0>(K=s.x+B)){"right"===_&&0<=V?(h.align="left",h.inside=!0):V-=K;var k=!0}return(K=s.x+r.width-B)>y.plotWidth&&("left"===_&&0>=V?(h.align="right",h.inside=!0):V+=y.plotWidth-K,k=!0),0>(K=s.y+B)&&("bottom"===S&&0<=F?(h.verticalAlign="top",h.inside=!0):F-=K,k=!0),(K=s.y+r.height-B)>y.plotHeight&&("top"===S&&0>=F?(h.verticalAlign="bottom",h.inside=!0):F+=y.plotHeight-K,k=!0),k&&(h.x=V,h.y=F,c.placed=!d,c.align(h,void 0,f)),k},st.pie&&(st.pie.prototype.dataLabelPositioners={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,h,s,r){return c.getX(s<h.top+2||s>h.bottom-2?r:s,h.half,h)},justify:function(c,h,s){return s[0]+(c.half?-1:1)*(h+c.labelDistance)},alignToPlotEdges:function(c,h,s,r){return c=c.getBBox().width,h?c+r:s-c-r},alignToConnectors:function(c,h,s,r){var d,f=0;return c.forEach(function(y){(d=y.dataLabel.getBBox().width)>f&&(f=d)}),h?f+r:s-f-r}},st.pie.prototype.drawDataLabels=function(){var s,y,K,e,n,o,l,v,C,I,j,W,c=this,h=c.data,r=c.chart,f=c.options.dataLabels||{},d=f.connectorPadding,_=r.plotWidth,S=r.plotHeight,B=r.plotLeft,V=Math.round(r.chartWidth/3),F=c.center,k=F[2]/2,a=F[1],u=[[],[]],$=[0,0,0,0],X=c.dataLabelPositioners;c.visible&&(f.enabled||c._hasPointLabels)&&(h.forEach(function(G){G.dataLabel&&G.visible&&G.dataLabel.shortened&&(G.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),G.dataLabel.shortened=!1)}),tt.prototype.drawDataLabels.apply(c),h.forEach(function(G){G.dataLabel&&(G.visible?(u[G.half].push(G),G.dataLabel._pos=null,!Y(f.style.width)&&!Y(G.options.dataLabels&&G.options.dataLabels.style&&G.options.dataLabels.style.width)&&G.dataLabel.getBBox().width>V&&(G.dataLabel.css({width:Math.round(.7*V)+"px"}),G.dataLabel.shortened=!0)):(G.dataLabel=G.dataLabel.destroy(),G.dataLabels&&1===G.dataLabels.length&&delete G.dataLabels))}),u.forEach(function(G,w){var J,A=G.length,Z=[];if(A){if(c.sortByAngle(G,w-.5),0<c.maxLabelDistance){var it=Math.max(0,a-k-c.maxLabelDistance),ct=Math.min(a+k+c.maxLabelDistance,r.plotHeight);G.forEach(function(O){0<O.labelDistance&&O.dataLabel&&(O.top=Math.max(0,a-k-O.labelDistance),O.bottom=Math.min(a+k+O.labelDistance,r.plotHeight),J=O.dataLabel.getBBox().height||21,O.distributeBox={target:O.labelPosition.natural.y-O.top+J/2,size:J,rank:O.y},Z.push(O.distributeBox))}),q.distribute(Z,it=ct+J-it,it/5)}for(j=0;j<A;j++){if(e=(s=G[j]).dataLabel,I=!1===s.visible?"hidden":"inherit",C=it=(o=s.labelPosition).natural.y,Z&&Y(s.distributeBox)&&(typeof s.distributeBox.pos>"u"?I="hidden":(l=s.distributeBox.size,C=X.radialDistributionY(s))),delete s.positionIndex,f.justify)v=X.justify(s,k,F);else switch(f.alignTo){case"connectors":v=X.alignToConnectors(G,w,_,B);break;case"plotEdges":v=X.alignToPlotEdges(e,w,_,B);break;default:v=X.radialDistributionX(c,s,C,it)}e._attr={visibility:I,align:o.alignment},e._pos={x:v+b((W=s.options.dataLabels||{}).x,f.x)+({left:d,right:-d}[o.alignment]||0),y:C+b(W.y,f.y)-10},o.final.x=v,o.final.y=C,b(f.crop,!0)&&(n=e.getBBox().width,it=null,v-n<d&&1===w?(it=Math.round(n-v+d),$[3]=Math.max(it,$[3])):v+n>_-d&&0===w&&(it=Math.round(v+n-_+d),$[1]=Math.max(it,$[1])),0>C-l/2?$[0]=Math.max(Math.round(l/2-C),$[0]):C+l/2>S&&($[2]=Math.max(Math.round(C+l/2-S),$[2])),e.sideOverflow=it)}}}),0===U($)||this.verifyDataLabelOverflow($))&&(this.placeDataLabels(),this.points.forEach(function(G){var w;W=D(f,G.options.dataLabels),(y=b(W.connectorWidth,1))&&(K=G.connector,(e=G.dataLabel)&&e._pos&&G.visible&&0<G.labelDistance?(I=e._attr.visibility,(w=!K)&&(G.connector=K=r.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+G.colorIndex+(G.className?" "+G.className:"")).add(c.dataLabelsGroup),r.styledMode||K.attr({"stroke-width":y,stroke:W.connectorColor||G.color||"#666666"})),K[w?"attr":"animate"]({d:G.getConnectorPath()}),K.attr("visibility",I)):K&&(G.connector=K.destroy()))}))}
1,st.pie.prototype.placeDataLabels=function(){this.points.forEach(function(c){var s,h=c.dataLabel;h&&c.visible&&((s=h._pos)?(h.sideOverflow&&(h._attr.width=Math.max(h.getBBox().width-h.sideOverflow,0),h.css({width:h._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),h.shortened=!0),h.attr(h._attr),h[h.moved?"animate":"attr"](s),h.moved=!0):h&&h.attr({y:-9999})),delete c.distributeBox},this)},st.pie.prototype.alignDataLabel=z,st.pie.prototype.verifyDataLabelOverflow=function(c){var h=this.center,s=this.options,r=s.center,f=s.minSize||80,d=null!==s.size;if(!d){if(null!==r[0])var y=Math.max(h[2]-Math.max(c[1],c[3]),f);else y=Math.max(h[2]-c[1]-c[3],f),h[0]+=(c[3]-c[1])/2;null!==r[1]?y=Q(y,f,h[2]-Math.max(c[0],c[2])):(y=Q(y,f,h[2]-c[0]-c[2]),h[1]+=(c[0]-c[2])/2),y<h[2]?(h[2]=y,h[3]=Math.min(P(s.innerSize||0,y),y),this.translate(h),this.drawDataLabels&&this.drawDataLabels()):d=!0}return d}),st.column&&(st.column.prototype.alignDataLabel=function(c,h,s,r,f){var d=this.chart.inverted,y=c.series,_=c.dlBox||c.shapeArgs,S=b(c.below,c.plotY>b(this.translatedThreshold,y.yAxis.len)),B=b(s.inside,!!this.options.stacking);_&&(0>(r=D(_)).y&&(r.height+=r.y,r.y=0),0<(_=r.y+r.height-y.yAxis.len)&&_<r.height&&(r.height-=_),d&&(r={x:y.yAxis.len-r.y-r.height,y:y.xAxis.len-r.x-r.width,width:r.height,height:r.width}),B||(d?(r.x+=S?0:r.width,r.width=0):(r.y+=S?r.height:0,r.height=0))),s.align=b(s.align,!d||B?"center":S?"right":"left"),s.verticalAlign=b(s.verticalAlign,d||B?"middle":S?"top":"bottom"),tt.prototype.alignDataLabel.call(this,c,h,s,r,f),s.inside&&c.contrastColor&&h.css({color:c.contrastColor})})}),_t(et,"Extensions/OverlappingDataLabels.js",[et["Core/Chart/Chart.js"],et["Core/Utilities.js"]],function(z,q){var nt=q.fireEvent,ot=q.isArray,st=q.isNumber,U=q.objectEach,Q=q.pick;(0,q.addEvent)(z,"render",function(){var Y=[];(this.labelCollectors||[]).forEach(function(M){Y=Y.concat(M())}),(this.yAxis||[]).forEach(function(M){M.stacking&&M.options.stackLabels&&!M.options.stackLabels.allowOverlap&&U(M.stacking.stacks,function(R){U(R,function(E){Y.push(E.label)})})}),(this.series||[]).forEach(function(M){M.visible&&(!1!==M.options.dataLabels.enabled||M._hasPointLabels)&&(M.nodes||M.points).forEach(function(E){E.visible&&(ot(E.dataLabels)?E.dataLabels:E.dataLabel?[E.dataLabel]:[]).forEach(function(L){var D=L.options;L.labelrank=Q(D.labelrank,E.labelrank,E.shapeArgs&&E.shapeArgs.height),D.allowOverlap||Y.push(L)})})}),this.hideOverlappingLabels(Y)}),z.prototype.hideOverlappingLabels=function(Y){var L,D,t,M=this,R=Y.length,E=M.renderer,b=!1,P=function(c){var h,f,s=c.box?0:c.padding||0,r=h=0;if(c&&(!c.alignAttr||c.placed)){var d=c.alignAttr||{x:c.attr("x"),y:c.attr("y")},y=c.parentGroup;return c.width||(h=c.getBBox(),c.width=h.width,c.height=h.height,h=E.fontMetrics(null,c.element).h),(f={left:"0",center:"0.5",right:"1"}[c.alignValue])?r=+f*(c.width-2*s):st(c.x)&&Math.round(c.x)!==c.translateX&&(r=c.x-c.translateX),{x:d.x+(y.translateX||0)+s-(r||0),y:d.y+(y.translateY||0)+s-h,width:c.width-2*s,height:c.height-2*s}}};for(D=0;D<R;D++)(L=Y[D])&&(L.oldOpacity=L.opacity,L.newOpacity=1,L.absoluteBox=P(L));for(Y.sort(function(c,h){return(h.labelrank||0)-(c.labelrank||0)}),D=0;D<R;D++){var T=(P=Y[D])&&P.absoluteBox;for(L=D+1;L<R;++L){var x=(t=Y[L])&&t.absoluteBox;!T||!x||P===t||0===P.newOpacity||0===t.newOpacity||x.x>=T.x+T.width||x.x+x.width<=T.x||x.y>=T.y+T.height||x.y+x.height<=T.y||((P.labelrank<t.labelrank?P:t).newOpacity=0)}}Y.forEach(function(c){if(c){var h=c.newOpacity;c.oldOpacity!==h&&(c.alignAttr&&c.placed?(c[h?"removeClass":"addClass"]("highcharts-data-label-hidden"),b=!0,c.alignAttr.opacity=h,c[c.isOld?"animate":"attr"](c.alignAttr,null,function(){M.styledMode||c.css({pointerEvents:h?"auto":"none"}),c.visibility=h?"inherit":"hidden"}),nt(M,"afterHideOverlappingLabel")):c.attr({opacity:h})),c.isOld=!0}}),b&&nt(M,"afterHideAllOverlappingLabels")}}),_t(et,"Core/Interaction.js",[et["Core/Series/Series.js"],et["Core/Chart/Chart.js"],et["Core/Globals.js"],et["Core/Legend.js"],et["Series/LineSeries.js"],et["Core/Options.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(z,q,tt,nt,ot,st,U,Q){z=z.seriesTypes;var Y=tt.hasTouch,M=tt.svg,R=st.defaultOptions,E=Q.addEvent,L=Q.createElement,D=Q.css,t=Q.defined,b=Q.extend,P=Q.fireEvent,T=Q.isArray,x=Q.isFunction,c=Q.isNumber,h=Q.isObject,s=Q.merge,r=Q.objectEach,f=Q.pick;tt=tt.TrackerMixin={drawTrackerPoint:function(){var B,d=this,y=d.chart,_=y.pointer,S=function(V){var K=_.getPointFromEvent(V);typeof K<"u"&&(_.isDirectTouch=!0,K.onMouseOver(V))};
1d.points.forEach(function(V){B=T(V.dataLabels)?V.dataLabels:V.dataLabel?[V.dataLabel]:[],V.graphic&&(V.graphic.element.point=V),B.forEach(function(K){K.div?K.div.point=V:K.element.point=V})}),d._hasTracking||(d.trackerGroups.forEach(function(V){d[V]&&(d[V].addClass("highcharts-tracker").on("mouseover",S).on("mouseout",function(K){_.onTrackerMouseOut(K)}),Y&&d[V].on("touchstart",S),!y.styledMode&&d.options.cursor&&d[V].css(D).css({cursor:d.options.cursor}))}),d._hasTracking=!0),P(this,"afterDrawTracker")},drawTrackerGraph:function(){var d=this,y=d.options,_=y.trackByArea,S=[].concat(_?d.areaPath:d.graphPath),B=d.chart,V=B.pointer,K=B.renderer,F=B.options.tooltip.snap,k=d.tracker,a=function(n){B.hoverSeries!==d&&d.onMouseOver()},e="rgba(192,192,192,"+(M?1e-4:.002)+")";k?k.attr({d:S}):d.graph&&(d.tracker=K.path(S).attr({visibility:d.visible?"visible":"hidden",zIndex:2}).addClass(_?"highcharts-tracker-area":"highcharts-tracker-line").add(d.group),B.styledMode||d.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:e,fill:_?e:"none","stroke-width":d.graph.strokeWidth()+(_?0:2*F)}),[d.tracker,d.markerGroup].forEach(function(n){n.addClass("highcharts-tracker").on("mouseover",a).on("mouseout",function(o){V.onTrackerMouseOut(o)}),y.cursor&&!B.styledMode&&n.css({cursor:y.cursor}),Y&&n.on("touchstart",a)})),P(this,"afterDrawTracker")}},z.column&&(z.column.prototype.drawTracker=tt.drawTrackerPoint),z.pie&&(z.pie.prototype.drawTracker=tt.drawTrackerPoint),z.scatter&&(z.scatter.prototype.drawTracker=tt.drawTrackerPoint),b(nt.prototype,{setItemEvents:function(d,y,_){var S=this,B=S.chart.renderer.boxWrapper,V=d instanceof U,K="highcharts-legend-"+(V?"point":"series")+"-active",F=S.chart.styledMode;(_?[y,d.legendSymbol]:[d.legendGroup]).forEach(function(k){k&&k.on("mouseover",function(){d.visible&&S.allItems.forEach(function(a){d!==a&&a.setState("inactive",!V)}),d.setState("hover"),d.visible&&B.addClass(K),F||y.css(S.options.itemHoverStyle)}).on("mouseout",function(){S.chart.styledMode||y.css(s(d.visible?S.itemStyle:S.itemHiddenStyle)),S.allItems.forEach(function(a){d!==a&&a.setState("",!V)}),B.removeClass(K),d.setState()}).on("click",function(a){var e=function(){d.setVisible&&d.setVisible(),S.allItems.forEach(function(n){d!==n&&n.setState(d.visible?"inactive":"",!V)})};B.removeClass(K),a={browserEvent:a},d.firePointEvent?d.firePointEvent("legendItemClick",a,e):P(d,"legendItemClick",a,e)})})},createCheckboxForItem:function(d){d.checkbox=L("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,this.chart.container),E(d.checkbox,"click",function(y){P(d.series||d,"checkboxClick",{checked:y.target.checked,item:d},function(){d.select()})})}}),b(q.prototype,{showResetZoom:function(){function d(){y.zoomOut()}var y=this,_=R.lang,S=y.options.chart.resetZoomButton,B=S.theme,V=B.states,K="chart"===S.relativeTo||"spaceBox"===S.relativeTo?null:"plotBox";P(this,"beforeShowResetZoom",null,function(){y.resetZoomButton=y.renderer.button(_.resetZoom,null,null,d,B,V&&V.hover).attr({align:S.position.align,title:_.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(S.position,!1,K)}),P(this,"afterShowResetZoom")},zoomOut:function(){P(this,"selection",{resetSelection:!0}
1,this.zoom)},zoom:function(d){var _,y=this,S=y.pointer,B=!1,V=y.inverted?S.mouseDownX:S.mouseDownY;!d||d.resetSelection?(y.axes.forEach(function(F){_=F.zoom()}),S.initiated=!1):d.xAxis.concat(d.yAxis).forEach(function(F){var k=F.axis,a=y.inverted?k.left:k.top,n=k.isXAxis,o=!1;(!n&&V>=a&&V<=(y.inverted?a+k.width:a+k.height)||n||!t(V))&&(o=!0),S[n?"zoomX":"zoomY"]&&o&&(_=k.zoom(F.min,F.max),k.displayBtn&&(B=!0))});var K=y.resetZoomButton;B&&!K?y.showResetZoom():!B&&h(K)&&(y.resetZoomButton=K.destroy()),_&&y.redraw(f(y.options.chart.animation,d&&d.animation,100>y.pointCount))},pan:function(d,y){var K,_=this,S=_.hoverPoints,B=_.options.chart,V=_.options.mapNavigation&&_.options.mapNavigation.enabled;y="object"==typeof y?y:{enabled:y,type:"x"},B&&B.panning&&(B.panning=y);var F=y.type;P(this,"pan",{originalEvent:d},function(){S&&S.forEach(function(a){a.setState()});var k=[1];"xy"===F?k=[1,0]:"y"===F&&(k=[0]),k.forEach(function(a){var e=_[a?"xAxis":"yAxis"][0],n=e.horiz,o=d[n?"chartX":"chartY"],l=_[n=n?"mouseDownX":"mouseDownY"],u=(e.pointRange||0)/2,v=e.reversed&&!_.inverted||!e.reversed&&_.inverted?-1:1,C=e.getExtremes(),I=e.toValue(l-o,!0)+u*v,j=(v=e.toValue(l+e.len-o,!0)-u*v)<I;l=j?v:I,I=j?I:v;var $=e.hasVerticalPanning(),X=e.panningState;e.series.forEach(function(W){if($&&!a&&(!X||X.isDirty)){var G=W.getProcessedData(!0);W=W.getExtremes(G.yData,!0),X||(X={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),c(W.dataMin)&&c(W.dataMax)&&(X.startMin=Math.min(W.dataMin,X.startMin),X.startMax=Math.max(W.dataMax,X.startMax))}}),v=Math.min(f(X?.startMin,C.dataMin),u?C.min:e.toValue(e.toPixels(C.min)-e.minPixelPadding)),u=Math.max(f(X?.startMax,C.dataMax),u?C.max:e.toValue(e.toPixels(C.max)+e.minPixelPadding)),e.panningState=X,e.isOrdinal||(0<(j=v-l)&&(I+=j,l=v),0<(j=I-u)&&(I=u,l-=j),e.series.length&&l!==C.min&&I!==C.max&&l>=v&&I<=u&&(e.setExtremes(l,I,!1,!1,{trigger:"pan"}),_.resetZoomButton||V||l===v||I===u||!F.match("y")||(_.showResetZoom(),e.displayBtn=!1),K=!0),_[n]=o)}),K&&_.redraw(!1),D(_.container,{cursor:"move"})})}}),b(U.prototype,{select:function(d,y){var _=this,S=_.series,B=S.chart;this.selectedStaging=d=f(d,!_.selected),_.firePointEvent(d?"select":"unselect",{accumulate:y},function(){_.selected=_.options.selected=d,S.options.data[S.data.indexOf(_)]=_.options,_.setState(d&&"select"),y||B.getSelectedPoints().forEac
1h(function(V){var K=V.series;V.selected&&V!==_&&(V.selected=V.options.selected=!1,K.options.data[K.data.indexOf(V)]=V.options,V.setState(B.hoverPoints&&K.options.inactiveOtherPoints?"inactive":""),V.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(d){var y=this.series.chart,_=y.pointer;d=d?_.normalize(d):_.getChartCoordinatesFromPoint(this,y.inverted),_.runPointActions(d,this)},onMouseOut:function(){var d=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(d.hoverPoints||[]).forEach(function(y){y.setState()}),d.hoverPoints=d.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var d=this,y=s(d.series.options.point,d.options).events;d.events=y,r(y,function(_,S){x(_)&&E(d,S,_)}),this.hasImportedEvents=!0}},setState:function(d,y){var l,_=this.series,S=this.state,B=_.options.states[d||"normal"]||{},V=R.plotOptions[_.type].marker&&_.options.marker,F=V&&V.states&&V.states[d||"normal"]||{},a=_.stateMarkerGraphic,e=this.marker||{},n=_.chart,o=_.halo,u=V&&_.markerAttribs;if(!((d=d||"")===this.state&&!y||this.selected&&"select"!==d||!1===B.enabled||d&&(!1===F.enabled||V&&!1===V.enabled&&!1===F.enabled)||d&&e.states&&e.states[d]&&!1===e.states[d].enabled)){if(this.state=d,u&&(l=_.markerAttribs(this,d)),this.graphic){if(S&&this.graphic.removeClass("highcharts-point-"+S),d&&this.graphic.addClass("highcharts-point-"+d),!n.styledMode){var v=_.pointAttribs(this,d),C=f(n.options.chart.animation,B.animation);_.options.inactiveOtherPoints&&v.opacity&&((this.dataLabels||[]).forEach(function(I){I&&I.animate({opacity:v.opacity},C)}),this.connector&&this.connector.animate({opacity:v.opacity},C)),this.graphic.animate(v,C)}l&&this.graphic.animate(l,f(n.options.chart.animation,F.animation,V.animation)),a&&a.hide()}else d&&F&&(S=e.symbol||_.symbol,a&&a.currentSymbol!==S&&(a=a.destroy()),l&&(a?a[y?"animate":"attr"]({x:l.x,y:l.y}):S&&(_.stateMarkerGraphic=a=n.renderer.symbol(S,l.x,l.y,l.width,l.height).add(_.markerGroup),a.currentSymbol=S)),!n.styledMode&&a&&a.attr(_.pointAttribs(this,d))),a&&(a[d&&this.isInside?"show":"hide"](),a.element.point=this);d=B.halo,B=(a=this.graphic||a)&&a.visibility||"inherit",d&&d.size&&a&&"hidden"!==B&&!this.isCluster?(o||(_.halo=o=n.renderer.path().add(a.parentGroup)),o.show()[y?"animate":"attr"]({d:this.haloPath(d.size)}),o.attr({class:"highcharts-halo highcharts-color-"+f(this.colorIndex,_.colorIndex)+(this.className?" "+this.className:""),visibility:B,zIndex:-1}),o.point=this,n.styledMode||o.attr(b({fill:this.color||_.color,"fill-opacity":d.opacity},d.attributes))):o&&o.point&&o.point.haloPath&&o.animate({d:o.point.haloPath(0)},null,o.hide),P(this,"afterSetState")}},haloPath:function(d){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-d,this.plotY-d,2*d,2*d)}}),b(ot.prototype,{onMouseOver:function(){var d=this.chart,y=d.hoverSeries;d.pointer.setHoverChartIndex(),y&&y!==this&&y.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),d.hoverSeries=this},onMouseOut:function(){var d=this.options,y=this.chart,_=y.tooltip,S=y.hoverPoint;y.hoverSeries=null,S&&S.onMouseOut(),this&&d.events.mouseOut&&P(this,"mouseOut"),!_||this.stickyTracking||_.shared&&!this.noSharedTooltip||_.hide(),y.series.forEach(function(B){B.setState("",!0)})},setState:function(d,y){var _=this,S=_.options,B=_.graph,V=S.inactiveOtherPoints,K=S.states,F=S.lineWidth,k=S.opacity,a=f(K[d||"normal"]&&K[d||"normal"].animation,_.chart.options.chart.animation);if(S=0,_.state!==(d=d||"")&&([_.group,_.markerGroup,_.dataLabelsGroup].forEach(function(e){e&&(_.state&&e.removeClass("highcharts-series-"+_.state),d&&e.addClass("highcharts-series-"+d))}),_.state=d,!_.chart.styledMode)){if(K[d]&&!1===K[d].enabled)return;if(d&&(F=K[d].lineWidth||F+(K[d].lineWidthPlus||0),k=f(K[d].opacity,k)),B&&!B.dashstyle)for(B.animate(K={"stroke-width":F},a);_["zone-graph-"+S];)_["zone-graph-"+S].attr(K),S+=1;V||[_.group,_.markerGroup,_.dataLabelsGroup,_.labelBySeries].forEach(function(e){e&&e.animate({opacity:k},a)})}y&&V&&_.points&&_.setAllPointsToState(d)}
1,setAllPointsToState:function(d){this.points.forEach(function(y){y.setState&&y.setState(d)})},setVisible:function(d,y){var _=this,S=_.chart,B=_.legendItem,V=S.options.chart.ignoreHiddenSeries,F=(_.visible=d=_.options.visible=_.userOptions.visible=typeof d>"u"?!_.visible:d)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(k){_[k]&&_[k][F]()}),(S.hoverSeries===_||(S.hoverPoint&&S.hoverPoint.series)===_)&&_.onMouseOut(),B&&S.legend.colorizeItem(_,d),_.isDirty=!0,_.options.stacking&&S.series.forEach(function(k){k.options.stacking&&k.visible&&(k.isDirty=!0)}),_.linkedSeries.forEach(function(k){k.setVisible(d,!1)}),V&&(S.isDirtyBox=!0),P(_,F),!1!==y&&S.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(d){this.selected=d=this.options.selected=typeof d>"u"?!this.selected:d,this.checkbox&&(this.checkbox.checked=d),P(this,d?"select":"unselect")},drawTracker:tt.drawTrackerGraph})}),_t(et,"Core/Responsive.js",[et["Core/Chart/Chart.js"],et["Core/Utilities.js"]],function(z,q){var tt=q.find,nt=q.isArray,ot=q.isObject,st=q.merge,U=q.objectEach,Q=q.pick,Y=q.splat,M=q.uniqueKey;z.prototype.setResponsive=function(R,E){var L=this.options.responsive,D=[],t=this.currentResponsive;
1!E&&L&&L.rules&&L.rules.forEach(function(b){typeof b._id>"u"&&(b._id=M()),this.matchResponsiveRule(b,D)},this),(E=st.apply(0,D.map(function(b){return tt(L.rules,function(P){return P._id===b}).chartOptions}))).isResponsiveOptions=!0,(D=D.toString()||void 0)!==(t&&t.ruleIds)&&(t&&this.update(t.undoOptions,R,!0),D?((t=this.currentOptions(E)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:D,mergedOptions:E,undoOptions:t},this.update(E,R,!0)):this.currentResponsive=void 0)},z.prototype.matchResponsiveRule=function(R,E){var L=R.condition;(L.callback||function(){return this.chartWidth<=Q(L.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Q(L.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Q(L.minWidth,0)&&this.chartHeight>=Q(L.minHeight,0)}).call(this)&&E.push(R._id)},z.prototype.currentOptions=function(R){var L=this,D={};return function E(t,b,P,T){var x;U(t,function(c,h){if(!T&&-1<L.collectionsWithUpdate.indexOf(h))for(c=Y(c),P[h]=[],x=0;x<Math.max(c.length,b[h].length);x++)b[h][x]&&(void 0===c[x]?P[h][x]=b[h][x]:(P[h][x]={},E(c[x],b[h][x],P[h][x],T+1)));else ot(c)?(P[h]=nt(c)?[]:{},E(c,b[h]||{},P[h],T+1)):P[h]=typeof b[h]>"u"?null:b[h]})}(R,this.options,D,0),D}}),_t(et,"masters/highcharts.src.js",[et["Core/Globals.js"]],function(z){return z}),et["masters/highcharts.src.js"]._modules=et,et["masters/highcharts.src.js"]},Gt.exports?(_t.default=_t,Gt.exports=Mt.document?_t(Mt):_t):void 0!==(Ot=function(){return _t(Mt)}.call(Nt,ut,Nt,Gt))&&(Gt.exports=Ot)}}]);
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.