PageSourceSearch

https://www.webofscience.com/wos/static/494.608fa356f177aff4.js

js webofscience.com collected 2026-09-24 08:32:14 UTC 896,806 bytes, 1 lines download raw bytes

1(self.webpackChunkseed_app=self.webpackChunkseed_app||[]).push([[494],{78494:(Zr,Ne,E)=>{"use strict";E.r(Ne),E.d(Ne,{ProfilesModule:()=>qc});var dn=E(18617),Di=E(65478),Zt=E(89417),Pe=E(60850),Nn=E(82765),Vt=E(75351),Kt=E(71997),zn=E(9454),vn=E(53719),Pn=E(59042),Yn=E(59115),pn=E(5951),Ze=E(82798),Ei=E(30450),Fi=E(95416),jt=E(9159),ze=E(66046),we=E(70366),$i=E(65571),si=E(10972),li=E(26835),Bn=E(99957),un=E(51731),B=E(60177),Ft=E(99213),ht=E(68018),t=E(54438);let ka=(()=>{class s{static{this.\u0275fac=function(u){return new(u||s)}}static{this.\u0275mod=t.$C({type:s})}static{this.\u0275inj=t.G2t({imports:[B.MD,ht.h,Ft.m_,ze._]})}}return s})();var wn=E(26619),Ee=E(68165),Xn=E(64195),Li=E(77453),mn=E(82110),gn=E(86577),Ye=E(42885),pt=E(7901),ci=E(56048),Be=E(91743),fe=E(7673),Et=E(96354),fo=E(99437),W=E(5964),Ct=E(96697),ve=E(97446),Vn=E(64021),at=E(53712),Y=E(57538),_t=E(19494),wt=E(84745),_o=E(89563);let Ra=(()=>{class s{constructor(o,u){this.router=o,this.authors=u}canActivate(o){const u=o.paramMap.get("rid");return this.authors.getAuthorById(u).pipe((0,Et.T)(g=>{const O=o.queryParams;return this.router.navigate([`author/record/${g?.authorId||g?.rid}`],{queryParams:O})}),(0,fo.W)(g=>(0,fe.of)(this.router.parseUrl(404===g.status?"error/generic?message="+encodeURIComponent("No Author found for RID"+u):"error/generic?message="+encodeURIComponent(g.message)))))}static{this.\u0275fac=function(u){return new(u||s)(t.KVO(pt.Ix),t.KVO(ve.m))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),q=(()=>{class s{constructor(o,u,g){this.router=o,this.store=u,this.storage=g}canActivate(o){let u;return this.store.select(at.Ik).pipe((0,W.p)(g=>!!g),(0,Ct.s)(1)).subscribe(g=>{u=!!g.isHidden}),u?this.router.parseUrl("error/hiddenProfile"):(this.store.dispatch(new Vn.r2({useCache:!0})),this.store.select(Y.aJ).pipe((0,W.p)(g=>!!g),(0,Ct.s)(1),(0,Et.T)(g=>{const O=g.researcherId;if(O){let $=this.router.getCurrentNavigation().extras?.state||{};return this.storage.get("routedToMyProfile")||(this.storage.persist("routedToMyProfile",!0),_t.Y.leftNavAction$.next("expandMyProfileLinks")),this.router.navigate([`author/record/${O}`],{queryParams:o.queryParams,state:$})}return this.router.parseUrl("error/generic?message="+encodeURIComponent("no_rid_found"))})))}static{this.\u0275fac=function(u){return new(u||s)(t.KVO(pt.Ix),t.KVO(wt.il),t.KVO(_o.n))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Rt=E(78231),ke=E(81652),Wn=E(90882),Ke=E(21413),oe=E(84572),V=E(56977),Xe=E(25558),Un=E(70929),Aa=E(70979),hi=E(81977),Fe=E(8058),On=E(21530),Gi=E(12146);function Sa(s,M){if(1&s&&t.nrm(0,"highcharts-chart",9),2&s){const o=t.XpG();t.Y8G("Highcharts",o.highcharts)("constructorType","mapChart")("options",o.chartOptions)("callbackFunction",o.chartCallback)}}E(61857),E(25091);let Da=(()=>{class s extends Rt.${constructor(o,u,g){super(o,g),this.change=o,this.authorService=u,this.translate=g,this.mapData=[],this.highcharts=Gi,this.mapSeriesConfig={type:"map",borderColor:"#A0A0A0",nullColor:"rgba(177, 244, 177, 0.5)",showInLegend:!1},this.mapPointSeriesConfig={type:"mappoint",boostThreshold:1,enableMouseTracking:!0,stickyTracking:!1,allowPointSelect:!0,showInLegend:!1},this.pinMarker={enabled:!0,height:24,symbol:"url(/wos/static/images/highchart-cluster-map/navigation_pin.svg)",width:24,fillColor:"#ea4335"},this.clusterMarker={enabled:!0,height:24,symbol:"circle",width:24,fillColor:"#3a89cd",animation:!1,radius:12}}ngOnInit(){this.updateLocalization(),this.translate.onLangChange.pipe((0,V.Q)(this.destroyed$)).subscribe(()=>{this.updateLocalization()}),this.chartCallback=o=>{this.chartInstance=o},this.loadMap([]),this.chartInstance.showLoading(),this.authorService.getCitationMapData(this.rid).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.loadMap(o),this.chartInstance.hideLoading()},o=>{this.modalToggle('<div style="font-weight: bold; color: red">'+this.translate.instant(o)+"</div>"),this.chartInstance.hideLoading()})}loadMap(o){const u=Math.min(.7*window.innerWidth,590),g=Math.min(.7*window.innerWidth,816);this.mapData=o,this.chartOptions={chart:{map:E(36547),width:g,height:u},credits:{enabled:!1},title:void 0,subtitle:void 0,mapNavigation:{enabled:!0,enableDoubleClickZoom:!0,enableButtons:!0},loading:{labelStyle:{color:"white"},style:{backgroundColor:"gray"}},accessibility:{enabled:!0,keyboardNavigation:{enabled:!0,seriesNavigation:{mode:"serialize"}},point:{valueDescriptionFormat:"{point.clusterPointsAmount} {point.address} {point.formatPrefix}"}},tooltip:{enabled:!0,useHTML:!0,formatter:this.loadTooltip},plotOptions:{mappoint:{cluster:{enabled:!0,allowOverlap:!1,minimumClusterSize:3,animation:{duration:450},layoutAlgorithm:{type:"grid",gridSize:50},dataLabels:{enabled:!0,color:"#000000",style:{fontWeight:"bold"}},marker:this.clusterMarker},marker:this.pinMarker,dataLabels:{enabled:!0,color:"#000000",style:{fontWeight:"bold"}}}},series:[this.mapSeriesConfig,{...this.mapPointSeriesConfig,data:o,events:{click:O=>this.pointClickEvent(O)}}]},this.change.detectChanges()}pointClickEvent(o){const u=this.createModal(o.point);u&&this.modalToggle(u)}createModal(o){if(o.isCluster);else{const u=this.mapData.find(g=>o.lat===g.lat&&o.lon===g.lon);if(u){let g=`<h2>${this.translate.instant("citations-from-label")} ${u.address} </h2><br/><div class="org-content">`;for(const O of u.organizations){g+='<div class="org-grouped"><p>'+O.organizationName+"</p>",g+="<ul>";
1for(const $ of O.publications)g+='<li><a target="_blank" href="'+$.url+'&activity=true" class="no-underline-link"><b>'+$.title+"</b></a> <i>"+$.authors.join(";")+"</i><br/></li>";g+="</ul></div><br/>"}return g+="</div>",g}}}modalToggle(o=""){document.getElementById("modal-content-id").innerHTML=o,document.getElementById("highchart-cluster-modal-id").classList.toggle("show-modal")}loadTooltip(){const o=this.point;return!o.isCluster&&`${o.address}`}updateLocalization(){this.highcharts.setOptions({lang:{resetZoom:this.translate.instant("reset"),zoomIn:this.translate.instant("zoomInImage"),zoomOut:this.translate.instant("zoomOutImage")}})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(t.gRc),t.rXU(ve.m),t.rXU(ht.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-geographic-citation-map"]],inputs:{rid:"rid"},features:[t.Vt3],decls:11,vars:7,consts:[[1,"container"],[1,"map-info-text",3,"innerHtml"],[1,"map-container"],["id","highchart-cluster-Id",3,"Highcharts","constructorType","options","callbackFunction",4,"ngIf"],["id","highchart-cluster-modal-id",1,"modal"],[1,"modal-content"],["mat-icon-button","",1,"close",3,"click"],["svgIcon","close"],["id","modal-content-id",1,"inner-html-section"],["id","highchart-cluster-Id",3,"Highcharts","constructorType","options","callbackFunction"]],template:function(u,g){1&u&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.nI1(2,"translate"),t.j41(3,"div",2),t.DNE(4,Sa,1,4,"highcharts-chart",3),t.j41(5,"div",4)(6,"div",5)(7,"button",6),t.nI1(8,"translate"),t.bIt("click",function(){return g.modalToggle()}),t.nrm(9,"mat-icon",7),t.k0s(),t.nrm(10,"div",8),t.k0s()()()()),2&u&&(t.R7$(),t.Y8G("innerHtml",t.bMT(2,3,"mapInfoSection"),t.npT),t.R7$(3),t.Y8G("ngIf",g.chartOptions),t.R7$(3),t.BMQ("aria-label",t.bMT(8,5,"close")))},dependencies:[B.bT,Ft.An,ze.H,ht.D9],styles:[".highcharts-text-outline{display:none!important}  .highcharts-tooltip{visibility:visible!important}  .modal{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#00000080;opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s}  .modal-content{position:absolute;background-color:#fff;padding:1rem;border-radius:.5rem;width:80%;left:10%;top:20%}  .modal-content .org-grouped{border:.0625rem solid #eee;border-radius:.5rem;padding:.5rem}  .modal-content .org-grouped p{font-size:1.125rem}  .modal-content .org-content{overflow:auto;max-height:18.125rem}  h2{font-size:x-large!important}  .close{float:right;border:none;background-color:#fff!important}  .close .mat-icon{height:1.0625rem!important}  .close:hover,   .close:focus{color:#a9a9a9;cursor:pointer}  .show-modal{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}  .container{height:inherit;width:inherit}  .container .map-info-text{padding-bottom:1.25rem}  .container .map-info-text p{padding:.3125rem 0}  .container .map-info-text ul{padding:.625rem}  .container .map-info-text ul li{list-style-type:disc}  .container .map-container{position:relative}"]})}}return s})();var bo=E(55911),Mt=E(88834),Nt=E(9183),S=E(25596),D=E(79588),L=E(26499),z=E(31231),N=E(21264);function nt(s,M){if(1&s&&t.nrm(0,"highcharts-chart",1),2&s){const o=t.XpG();t.Y8G("Highcharts",o.highcharts)("options",o.chartOptions)}}let ot=(()=>{class s{constructor(o){this.translate=o,this.highcharts=N,this.LOCALIZED_TEXT={AVERAGEREVIEWLENGTH:"AverageReviewLength",LABELTEXT:"AverageReviewLengthWords",WORDSPERREVIEWS:"WordsPerReviews",AVERAGEDFROM:"AveragedFrom",REVIEWS:"AveragedFromReviews"},this.updateLocalization(),this.langSub=this.translate.onLangChange.subscribe(()=>{this.updateLocalization()})}ngOnInit(){this.columnChartOptions()}columnChartOptions(){const o=this.metricsData?.publonsAverageWordCountData.labels,u=this.metricsData?.publonsAverageWordCountData.samples,g=this.metricsData?.publonsAverageWordCountData.series[0].map((O,$)=>[O,u[$]]);this.chartOptions={title:{text:this.LOCALIZED_TEXT.AVERAGEREVIEWLENGTH,align:"left",style:{fontSize:"18px",fontWeight:600,fontFamily:'"Source Sans Pro", "Noto Kufi Arabic", Arial, Helvetica, sans-serif'}},xAxis:{categories:o,tickInterval:1,gridLineWidth:1},yAxis:{labels:{format:"{value}"},gridLineWidth:1,title:{text:this.LOCALIZED_TEXT.LABELTEXT}}
1,lang:{numericSymbols:null},credits:{enabled:!1},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",borderRadius:8,borderColor:"rgba(0, 0, 0, 0.8)",style:{lineHeight:1,color:"#fff",fontFamily:'"Source Sans Pro", "Noto Kufi Arabic", Arial, Helvetica, sans-serif',fontSize:"14px"},headerFormat:'<span style="padding-top: 10px;"><strong>{point.key}</strong></span><table><tr>',pointFormat:`<td style="padding-top: 4px; padding-bottom: 8px;">{point.options.y} ${this.LOCALIZED_TEXT.WORDSPERREVIEWS} (${this.LOCALIZED_TEXT.AVERAGEDFROM} {point.options.sampleData} ${this.LOCALIZED_TEXT.REVIEWS})</td></tr>`,footerFormat:"</table>",shared:!0,useHTML:!0},plotOptions:{column:{pointPadding:.2,borderWidth:0},series:{colorByPoint:!0}},colors:["#5E33BF","rgb(188, 152, 255)"],series:[{type:"column",keys:["y","sampleData"],showInLegend:!1,data:g}]}}updateLocalization(){this.LOCALIZED_TEXT.AVERAGEREVIEWLENGTH=this.translate.instant("AverageReviewLength"),this.LOCALIZED_TEXT.LABELTEXT=this.translate.instant("AverageReviewLengthWords"),this.LOCALIZED_TEXT.WORDSPERREVIEWS=this.translate.instant("WordsPerReviews"),this.LOCALIZED_TEXT.AVERAGEDFROM=this.translate.instant("AveragedFrom"),this.LOCALIZED_TEXT.REVIEWS=this.translate.instant("AveragedFromReviews")}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(ht.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-average-review-length-chart"]],inputs:{metricsData:"metricsData"},decls:1,vars:1,consts:[["data-ta","average-review-length-chart","class","wat-bar-chart-container",3,"Highcharts","options",4,"ngIf"],["data-ta","average-review-length-chart",1,"wat-bar-chart-container",3,"Highcharts","options"]],template:function(u,g){1&u&&t.DNE(0,nt,1,2,"highcharts-chart",0),2&u&&t.Y8G("ngIf",null==g.metricsData?null:g.metricsData.publonsAverageWordCountData)},dependencies:[ze.H,B.bT],styles:[".wat-bar-chart-container[_ngcontent-%COMP%]{max-width:48.75rem;max-height:28.125rem;display:block}"]})}}return s})();var H=E(65316);function Q(s,M){if(1&s&&(t.j41(0,"div",1)(1,"div",2)(2,"span",3),t.EFF(3),t.nI1(4,"number"),t.k0s(),t.nrm(5,"span",4),t.nI1(6,"translate"),t.nrm(7,"span",5),t.nI1(8,"translate"),t.j41(9,"span",6),t.EFF(10),t.nI1(11,"number"),t.k0s(),t.j41(12,"span",7),t.EFF(13),t.nI1(14,"number"),t.nI1(15,"watNumSuffix"),t.nrm(16,"span",8),t.nI1(17,"translate"),t.k0s()(),t.j41(18,"div",2)(19,"span",9),t.EFF(20),t.nI1(21,"number"),t.k0s(),t.nrm(22,"span",4),t.nI1(23,"translate"),t.nrm(24,"span",5),t.nI1(25,"translate"),t.j41(26,"span",6),t.EFF(27),t.nI1(28,"number"),t.k0s(),t.j41(29,"span",7),t.EFF(30),t.nI1(31,"number"),t.nI1(32,"watNumSuffix"),t.nrm(33,"span",8),t.nI1(34,"translate"),t.k0s()(),t.j41(35,"div",2)(36,"span",10),t.EFF(37),t.k0s(),t.nrm(38,"span",4),t.nI1(39,"translate"),t.nrm(40,"span",5),t.nI1(41,"translate"),t.j41(42,"span",6),t.EFF(43),t.nI1(44,"number"),t.k0s()()()),2&s){const o=t.XpG();t.R7$(3),t.JRh(t.bMT(4,18,o.verifiedReviewsData)),t.R7$(2),t.Y8G("innerHTML",t.bMT(6,20,"verifiedPeerReviews"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(8,22,"matrixMedian"),t.npT),t.R7$(3),t.JRh(t.bMT(11,24,o.verifiedReviewsMedian)),t.R7$(3),t.SpI("",t.bMT(15,28,t.bMT(14,26,o.verifiedReviewsPercentile))," "),t.R7$(3),t.Y8G("innerHTML",t.bMT(17,30,"Percentile"),t.npT),t.R7$(4),t.JRh(t.bMT(21,32,o.verifiedReviews12Mo)),t.R7$(2),t.Y8G("innerHTML",t.bMT(23,34,"verifiedPeerReviewsMonths"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(25,36,"matrixMedian"),t.npT),t.R7$(3),t.JRh(t.bMT(28,38,o.verifiedReviews12MoMedian)),t.R7$(3),t.SpI("",t.bMT(32,42,t.bMT(31,40,o.verifiedReviews12MoPercentile))," "),t.R7$(3),t.Y8G("innerHTML",t.bMT(34,44,"Percentile"),t.npT),t.R7$(4),t.Lme("",o.reviewRatio,":",o.RATIO_IS_TO_ONE,""),t.R7$(),t.Y8G("innerHTML",t.bMT(39,46,"verifiedPeerReviewsPublicationRatio"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(41,48,"matrixMedian"),t.npT),t.R7$(3),t.Lme("",t.bMT(44,50,o.reviewRatioMedian),":",o.RATIO_IS_TO_ONE,"")}}let ut=(()=>{class s extends Rt.${constructor(o,u){super(u),this.store=o,this.RATIO_IS_TO_ONE=H.N.RATIO_IS_TO_ONE}ngOnChanges(){this.store.select(Y.g$,{authorIds:this.authorIds}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.metricsData=o})}get verifiedReviewsData(){return Math.floor(this.metricsData.publonsStatData?.total?.verifiedReviews)}get verifiedReviews12Mo(){return Math.floor(this.metricsData.publonsStatData?.total?.verifiedReviews12Mo)}get reviewRatio(){return this.metricsData.publonsStatData?.total?.reviewRatio.toFixed(1)}get verifiedReviewsMedian(){return this.metricsData.publonsStatData?.median?.verifiedReviews}get verifiedReviews12MoMedian(){return this.metricsData.publonsStatData?.median?.verifiedReviews12Mo}get verifiedReviewsPercentile(){return 100*this.metricsData.publonsStatData?.percentile?.verifiedReviews}get verifiedReviews12MoPercentile(){return 100*this.metricsData.publonsStatData?.percentile?.verifiedReviews12Mo}get reviewRatioMedian(){return this.metricsData.publonsStatData?.median?.reviewRatio?.toFixed(1)}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-peer-review-matrix"]],inputs:{authorIds:"authorIds"},features:[t.Vt3,t.OA$],decls:1,vars:1,consts:[["class","pub-metric-container",4,"ngIf"],[1,"pub-metric-container"],[1,"wat-publication-metrics-div"],["data-ta","peer-review-metrics-verified-reviews-count",1,"wat-publication-metrics-data","peer-review-metrics-section"],[1,"wat-publication-metrics-descriptor","peer-review-metrics-section",3,"innerHTML"],[1,"wat-metrics-median-percentile-details","colonMark",3,"innerHTML"],["data-ta","peer-review-metrics-verified-reviews-count-12-months",1,"wat-metrics-median-percentile-details"],["data-ta","peer-review-metrics-verified-reviews-count-12-months",1,"wat-metrics-median-percentile-details","peer-review-metrics-section"],[1,"wat-metrics-median-percentile-details",3,"innerHTML"],["data-ta","peer-review-metrics-verified-reviews-count-12-months",1,"wat-publication-metrics-data","peer-review-metrics-section"],["data-ta","peer-review-metrics-ratio",1,"wat-publication-metrics-data","peer-review-metrics-section"]],template:function(u,g){1&u&&t.DNE(0,Q,45,52,"div",0),2&u&&t.Y8G("ngIf",g.metricsData)},dependencies:[B.bT,B.QX,ht.D9,gn.M],styles:[".wat-publication-metrics-data[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;line-height:2.125rem}.wat-publication-metrics-data[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:600}.wat-publication-metrics-descriptor[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600}.wat-publication-metrics-div[_ngcontent-%COMP%]{width:10.3125rem;height:7.8125rem;vertical-align:top;display:inline-block}.pub-metric-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:53%;height:9.375rem;text-align:justify;-ms-text-justify:distribute-all-lines;text-justify:distribute-all-lines;margin-top:1.25rem}@media only screen and (min-width: 30rem) and (max-width: 64rem){.pub-metric-container[_ngcontent-%COMP%]{width:80%}.pub-metric-container[_ngcontent-%COMP%]   .wat-publication-metrics-div[_ngcontent-%COMP%]{width:auto}}@media screen and (max-width: 30rem){.pub-metric-container[_ngcontent-%COMP%]{width:100%;gap:1.25rem}.pub-metric-container[_ngcontent-%COMP%]   .wat-publication-metrics-div[_ngcontent-%COMP%]{width:auto}}.wat-metrics-median-percentile-details[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600}.peer-review-metrics-section[_ngcontent-%COMP%]{display:block}"]})}}return s})();var lt=E(25885),tt=E(17675),xt=E(35382),It=E(10228),yt=E(79476),Z=E(65636);const X=()=>["/","diidw","total-citing-summary"],Wt=()=>({analyzeField:"SU"}),le=s=>["diidw","analyze-results",s],Jt=s=>({overlay:null,primary:s}),Ut=s=>({outlets:s}),ge=s=>["/",s];function At(s,M){if(1&s){const o=t.RV6();t.qex(0),t.j41(1,"div",8)(2,"button",9),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(3);return g.showPatentCitationFlag=!g.showPatentCitationFlag,t.Njj(g.loadAnalyzeResults())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.nrm(6,"span",10),t.nI1(7,"translate"),t.bVm()}2&s&&(t.R7$(2),t.Y8G("aria-label",t.bMT(3,3,"clickToPatentCitation")),t.R7$(2),t.JRh(t.bMT(5,5,"clickToPatentCitation")),t.R7$(2),t.Y8G("innerHTML",t.bMT(7,7,"clickToShowPatentCitationDescription"),t.npT))}function Ot(s,M){1&s&&(t.nrm(0,"p",10),t.nI1(1,"translate")),2&s&&t.Y8G("innerHTML",t.bMT(1,1,"noPatentCitationDescription"),t.npT)}function de(s,M){if(1&s&&(t.qex(0),t.DNE(1,At,8,9,"ng-container",7)(2,Ot,2,3,"ng-template",null,1,t.C5r),t.bVm()),2&s){const o=t.sdS(3),u=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==u.diidwStats?null:u.diidwStats.total_citing_articles)>0)("ngIfElse",o)}}function _e(s,M){1&s&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"a",12),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"patentCitationSubscriptionFeatureLabel")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"patentCitationLinkText"),". "))}function Ve(s,M){if(1&s&&(t.j41(0,"div",5)(1,"mat-card",6)(2,"mat-card-content"),t.DNE(3,de,4,2,"ng-container",7),t.nI1(4,"feature"),t.nI1(5,"entitlements"),t.DNE(6,_e,6,6,"ng-template",null,0,t.C5r),t.k0s()()()),2&s){const o=t.sdS(7);t.R7$(3),t.Y8G("ngIf",t.bMT(4,2,"nxPresentationControl_authorProfile_patentCitation")&&t.bMT(5,4,"DIIDW"))("ngIfElse",o)}}function We(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"app-analyze-treemap-chart",21),t.bIt("addRefine",function(g){t.eBV(o);const O=t.XpG(3);return t.Njj(O.navigateToSummary(g))}),t.k0s()()}if(2&s){const o=t.XpG(3);t.R7$(),t.Y8G("rawData",o.rawData)("numberShown",o.tilesCount)("database",o.search.database)}}function $e(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"app-analyze-treemap-chart-d3",21),t.bIt("addRefine",function(g){t.eBV(o);const O=t.XpG(3);return t.Njj(O.navigateToSummary(g))}),t.k0s()()}if(2&s){const o=t.XpG(3);t.R7$(),t.Y8G("rawData",o.rawData)("numberShown",o.tilesCount)("database",o.search.database)}}function St(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",16)(2,"span",17),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,We,2,3,"div",18),t.nI1(6,"feature"),t.DNE(7,$e,2,3,"div",18),t.nI1(8,"feature"),t.EFF(9),t.nI1(10,"translate"),t.j41(11,"a",19),t.EFF(12),t.nI1(13,"translate"),t.nrm(14,"mat-icon",20),t.k0s()(),t.bVm()),2&s){const o=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,7,"patentAnayzeMapDescriptor")),t.R7$(2),t.Y8G("ngIf",t.bMT(6,9,"WOSVX-41190-enable-highchart-treemap")),t.R7$(2),t.Y8G("ngIf",!t.bMT(8,11,"WOSVX-41190-enable-highchart-treemap")),t.R7$(2),t.SpI(" ",t.bMT(10,13,"patentAnayzeMapRedirectDescriptor")," "),t.R7$(2),t.Y8G("queryParams",t.lJ4(17,Wt))("routerLink",t.eq3(24,ge,t.eq3(22,Ut,t.eq3(20,Jt,t.eq3(18,le,o.search.id))))),t.R7$(),t.SpI(" ",t.bMT(13,15,"patentMetricAnalyzelinkLabel")," ")}}function In(s,M){1&s&&(t.j41(0,"div",22),t.nrm(1,"mat-icon",23),t.k0s())}function $t(s,M){if(1&s&&(t.j41(0,"div",13)(1,"span"),t.EFF(2),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.j41(5,"div",14)(6,"a",15),t.EFF(7),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.DNE(10,St,15,26,"ng-container",7)(11,In,2,0,"ng-template",null,2,t.C5r),t.k0s()),2&s){const o=t.sdS(12),u=t.XpG();t.R7$(2),t.JRh(u.diidwStats.total_times_cited),t.R7$(),t.SpI(" ",t.bMT(4,8,"SumTimesCitedPatents")," "),t.R7$(3),t.Y8G("queryParams",u.getTotalCitingSummaryQueryParams())("routerLink",t.lJ4(12,X)),t.R7$(),t.SpI(" ",u.diidwStats.total_citing_articles," "),t.R7$(),t.SpI(" ",t.bMT(9,10,"citingPatents")," "),t.R7$(2),t.Y8G("ngIf",u.rawData)("ngIfElse",o)}}let ji=(()=>{class s extends Rt.${constructor(o,u,g,O,$){super(g,O),this.searches=o,this.store=u,this.router=$,this.rawData=null,this.searchSort="diidw-relevance",this.tilesCount=10}ngOnInit(){this.search={mode:tt.k0.total_citing_articles,database:"DIIDW",display:{key:"patentCitation",icon:"search",params:{name:this.authorName}},parentSearch:{mode:tt.k0.author_publications,database:"WOS",authorId:{type:"spid",value:this.authorId}}},this.store.select(Y.Gh,{authorIds:this.authorId}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.diidwStats={total_times_cited:o?.diidw_stats?.total_times_cited,total_citing_articles:o?.diidw_stats?.total_citing_articles}})}loadAnalyzeResults(){const o="SU.Value."+this.tilesCount+".1.true.true";this.searches.runSearch(this.search,{count:0,history:!1,jcr:!1,sort:this.searchSort,links:null,analyzes:[o]}).subscribe(g=>{this.search.id=g.id,this.store.select(at.dT,{qid:this.search.id,field:o}).pipe((0,W.p)(O=>!!O),(0,V.Q)(this.destroyed$)).subscribe(O=>{this.rawData=O.Values,this.doChange()})})}getTotalCitingSummaryQueryParams(){return{displayJson:JSON.stringify({key:"patentCitation",icon:"search",params:{name:this.authorName}}),parentSearch:JSON.stringify({mode:tt.k0.author_publications,database:"WOS",authorId:{type:"spid",value:this.authorId}}),relation:!0,dest:"summary"}}navigateToSummary(o){const u=_t.Y.createSearchRefine(o,!1);this.searches.runRefineSearch(this.search,[u],{count:50,sort:this.searchSort,history:!0},{eventMode:"refineOnRA"}).subscribe(g=>{this.router.navigate(["/",{outlets:{overlay:null,primary:[this.search.database.toLowerCase(),"summary",g.id,this.searchSort,"1"]}}])})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(lt.c),t.rXU(wt.il),t.rXU(t.gRc),t.rXU(ht.c$),t.rXU(pt.Ix))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-patent-dashboard"]],inputs:{authorId:"authorId",authorName:"authorName"},features:[t.Vt3],decls:2,vars:2,consts:[["hideCitationPatent",""],["noPatentsMessage",""],["loading",""],["class","patent-analyze-blur-image",4,"ngIf"],["class","map",4,"ngIf"],[1,"patent-analyze-blur-image"],[1,"card"],[4,"ngIf","ngIfElse"],[1,"action-section"],["mat-stroked-button","","color","primary","data-
1pendo","showPatentSubjectAreaGraph",1,"cdx-but-lg",3,"click","aria-label"],[1,"font-size-16","margin-bottom-20",3,"innerHTML"],[1,"font-size-16","margin-bottom-20"],["target","_blank","rel","noopener noreferrer","href","https://clarivate.com/products/scientific-and-academic-research/research-discovery-and-workflow-solutions/webofscience-platform/derwent-innovations-index-on-web-of-science/"],[1,"map"],[1,"margin-top-10","margin-left-30--reversible"],["data-pendo","citing_patents_metrics_dashboard",3,"queryParams","routerLink"],[1,"margin-top-20","margin-right-20--reversible"],[1,"font-weigth-600"],[4,"ngIf"],["data-ta","summary-record-title-link",1,"title","title-link","font-size-18",3,"queryParams","routerLink"],["fontIcon","keyboard_arrow_right",1,"font-size-22","right-arrow-icon"],[3,"addRefine","rawData","numberShown","database"],[1,"load-spinner"],["role","img","svgIcon","circle-notch",1,"svg-icon-34","svg-spinner"]],template:function(u,g){1&u&&t.DNE(0,Ve,8,6,"div",3)(1,$t,13,13,"div",4),2&u&&(t.Y8G("ngIf",!g.showPatentCitationFlag),t.R7$(),t.Y8G("ngIf",g.showPatentCitationFlag))},dependencies:[pt.Wk,Ft.An,B.bT,Mt.$z,S.RN,S.m2,xt.i,It.t,yt.N,ht.D9,Z.h],styles:[".card[_ngcontent-%COMP%]{width:22.5rem;left:35%;top:25%;padding:.9375rem}.card[_ngcontent-%COMP%]:lang(ar-sa){right:35%;left:inherit}.card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:1.875rem}.card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]{white-space:normal}@media screen and (max-width: 30rem){.card[_ngcontent-%COMP%]{width:15.625rem;left:2%;top:35%;padding:.3125rem}.card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:.9375rem}}.patent-analyze-blur-image[_ngcontent-%COMP%]{width:98%;height:50vh;background-image:url(/wos/static/images/patent-citation/patent_citation_blur.png);background-size:cover;background-position:center}app-analyze-treemap-chart[_ngcontent-%COMP%]     .svg-container{margin-top:.3125rem!important;padding-bottom:.3125rem!important}.load-spinner[_ngcontent-%COMP%]{text-align:center}.load-spinner[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5e33bf}.right-arrow-icon[_ngcontent-%COMP%]{position:absolute;padding-top:.125rem}"]})}}return s})();const Tn=()=>["/","woscc","general-summary"];function ih(s,M){if(1&s&&(t.qex(0),t.j41(1,"a",9),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.bVm()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.lJ4(5,Tn))("queryParams",o.queryParams),t.R7$(),t.SpI(" ",t.bMT(3,3,null==o.authorDetail||null==o.authorDetail.wos_stats?null:o.authorDetail.wos_stats.total_articles)||0," ")}}function oh(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,null==o.authorDetail||null==o.authorDetail.wos_stats?null:o.authorDetail.wos_stats.total_articles)||0," ")}}function ah(s,M){if(1&s&&(t.j41(0,"div",3)(1,"span",7),t.DNE(2,ih,4,6,"ng-container",8)(3,oh,3,3,"ng-template",null,0,t.C5r),t.k0s(),t.nrm(5,"span",5),t.nI1(6,"translate"),t.k0s()),2&s){const o=t.sdS(4),u=t.XpG();t.R7$(2),t.Y8G("ngIf",(null==u.authorDetail?null:u.authorDetail.authorId)&&(null==u.authorDetail||null==u.authorDetail.publication_summary?null:u.authorDetail.publication_summary.wosccPublications)>0)("ngIfElse",o),t.R7$(3),t.Y8G("innerHTML",t.bMT(6,3,"publicationLabel"+(1!=(null==u.authorDetail||null==u.authorDetail.wos_stats?null:u.authorDetail.wos_stats.total_articles)?"Plural":"Singular")),t.npT)}}function es(s,M){if(1&s&&(t.j41(0,"div",3)(1,"span",7),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.nrm(4,"span",5),t.nI1(5,"translate"),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,2,null==o.authorDetail||null==o.authorDetail.wos_stats?null:o.authorDetail.wos_stats.total_articles)||0," "),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,4,"publicationLabel"+(1!=(null==o.authorDetail||null==o.authorDetail.wos_stats?null:o.authorDetail.wos_stats.total_articles)?"Plural":"Singular")),t.npT)}}function rh(s,M){1&s&&(t.j41(0,"div",3)(1,"span",7),t.EFF(2," 0 "),t.k0s(),t.nrm(3,"span",5),t.nI1(4,"translate"),t.k0s()),2&s&&(t.R7$(3),t.Y8G("innerHTML",t.bMT(4,1,"publicationLabelPlural"),t.npT))}let ns=(()=>{class s extends Rt.${constructor(o,u){super(u),this.store=o,this.change=u}ngOnChanges(){this.store.select(Y.Gh,{authorIds:this.authorIds}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorDetail=o})}get queryParams(){const o=[this.authorDetail?.authorId],u=this.authorDetail?.author_name;return{queryJson:JSON.stringify([{rowField:"DXNG",rowText:o.join(" or ")}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:u}})}}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-wos-publication-stats"]],inputs:{authorIds:"authorIds"},features:[t.Vt3,t.OA$],decls:18,vars:19,consts:[["nonClickable",""],[1,"pub-metric-container"],["class","wat-publication-metrics-div",4,"ngIf"],[1,"wat-publication-metrics-div"],["data-ta","publication-metrics-total-times-cited",1,"wat-publication-metrics-data"],[1,"wat-publication-metrics-descriptor",3,"innerHTML"],["data-ta","publication-metrics-h-index",1,"wat-publication-metrics-data"],["data-ta","publication-metrics-total-count",1,"wat-publication-metrics-data"],[4,"ngIf","ngIfElse"],["data-pendo","data-
1pendo-wos-cc-count-dashboard",3,"routerLink","queryParams"]],template:function(u,g){1&u&&(t.j41(0,"div",1),t.DNE(1,ah,7,5,"div",2),t.nI1(2,"feature"),t.DNE(3,es,6,6,"div",2),t.nI1(4,"feature"),t.DNE(5,rh,5,3,"div",2),t.j41(6,"div",3)(7,"span",4),t.EFF(8),t.nI1(9,"number"),t.k0s(),t.nrm(10,"span",5),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",3)(13,"span",6),t.EFF(14),t.nI1(15,"number"),t.k0s(),t.nrm(16,"span",5),t.nI1(17,"translate"),t.k0s()()),2&u&&(t.R7$(),t.Y8G("ngIf",0!==(null==g.authorDetail||null==g.authorDetail.wos_stats?null:g.authorDetail.wos_stats.total_articles)&&!t.bMT(2,7,"nxPresentationControl_remove_pub_count_link")),t.R7$(2),t.Y8G("ngIf",0!==(null==g.authorDetail||null==g.authorDetail.wos_stats?null:g.authorDetail.wos_stats.total_articles)&&t.bMT(4,9,"nxPresentationControl_remove_pub_count_link")),t.R7$(2),t.Y8G("ngIf",0===(null==g.authorDetail||null==g.authorDetail.wos_stats?null:g.authorDetail.wos_stats.total_articles)),t.R7$(3),t.SpI(" ",t.bMT(9,11,null==g.authorDetail||null==g.authorDetail.wos_stats?null:g.authorDetail.wos_stats.total_times_cited)||0," "),t.R7$(2),t.Y8G("innerHTML",t.bMT(11,13,"sumOfTimesCited"),t.npT),t.R7$(4),t.SpI(" ",t.bMT(15,15,null==g.authorDetail||null==g.authorDetail.wos_stats?null:g.authorDetail.wos_stats.h_index)||0," "),t.R7$(2),t.Y8G("innerHTML",t.bMT(17,17,"hIndex"),t.npT))},dependencies:[pt.Wk,B.bT,B.QX,ht.D9,Z.h],styles:[".pub-metric-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:53%;height:7.8125rem;text-align:justify;-ms-text-justify:distribute-all-lines;text-justify:distribute-all-lines;margin-top:1.25rem}@media only screen and (min-width: 30rem) and (max-width: 64rem){.pub-metric-container[_ngcontent-%COMP%]{width:80%}.pub-metric-container[_ngcontent-%COMP%]   .wat-publication-metrics-div[_ngcontent-%COMP%]{width:auto}}@media screen and (max-width: 30rem){.pub-metric-container[_ngcontent-%COMP%]{width:100%}.pub-metric-container[_ngcontent-%COMP%]   .wat-publication-metrics-div[_ngcontent-%COMP%]{width:auto}}.wat-publication-metrics-div[_ngcontent-%COMP%]{width:9.375rem;height:7.8125rem;vertical-align:top;display:inline-block}.wat-publication-metrics-data[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;line-height:2.125rem}.wat-publication-metrics-data[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:600}.wat-publication-metrics-descriptor[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;padding:3px 0;display:block}"]})}}return s})();const is=()=>({"background-image":"url(/wos/static/images/citation-map.png)"});function sh(s,M){1&s&&t.nrm(0,"mat-spinner",26)}function Ea(s,M){1&s&&(t.qex(0),t.nrm(1,"mat-spinner",28),t.bVm()),2&s&&(t.R7$(),t.Y8G("diameter",50))}function Co(s,M){if(1&s){const o=t.RV6();t.qex(0),t.j41(1,"app-bar-line-chart",29),t.bIt("databaseSelectionChange",function(g){t.eBV(o);const O=t.XpG(3);return t.Njj(O.initializeCitationChart(g))}),t.k0s(),t.nrm(2,"mat-divider",23),t.bVm()}if(2&s){const o=M.ngIf,u=t.XpG(3);t.R7$(),t.Y8G("data",o)("lang",u.translate.currentLang)("selectedDb",u.currentSelectedDb)("isWosccDisabled",u.isWosccDisabled)("view","ProfileSummary")}}function lh(s,M){if(1&s&&(t.DNE(0,Co,3,5,"ng-container",14),t.nI1(1,"async")),2&s){const o=t.XpG(2);t.Y8G("ngIf",t.bMT(1,1,o.citationChartData$))}}function Qt(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",17),t.DNE(2,Ea,2,1,"ng-container",27)(3,lh,2,3,"ng-template",null,0,t.C5r),t.k0s(),t.bVm()),2&s){const o=t.sdS(4),u=t.XpG();t.R7$(2),t.Y8G("ngIf",u.citationChartLoading)("ngIfElse",o)}}function os(s,M){1&s&&(t.j41(0,"div",30),t.nrm(1,"mat-spinner",31),t.k0s()),2&s&&(t.R7$(),t.Y8G("diameter",50))}function as(s,M){if(1&s&&(t.j41(0,"div"),t.nrm(1,"app-beam-plot-tab",12),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("authorIds",o.authorRecordIds)}}function ch(s,M){1&s&&(t.j41(0,"div",35),t.nrm(1,"img",36),t.nI1(2,"translate"),t.j41(3,"div",37),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"br"),t.j41(7,"a",38),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.nrm(12,"br")(13,"br"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()),2&s&&(t.R7$(),t.FS9("alt",t.bMT(2,6,"sampleSummaryBeamplot")),t.R7$(3),t.SpI(" ",t.bMT(5,8,"thisPremiumFeature")," "),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.R7$(),t.SpI(" ",t.bMT(9,10,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(11,12,"howToAccessWOS")," "),t.R7$(4),t.SpI(" ",t.bMT(15,14,"visualizationIsPlaceholder")," "))}function hh(s,M){if(1&s&&(t.j41(0,"div",32)(1,"h1",33),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,as,2,1,"div",14),t.nI1(5,"feature"),t.nI1(6,"feature"),t.nI1(7,"feature"),t.nI1(8,"async"),t.nI1(9,"async"),t.DNE(10,ch,16,16,"div",34),t.nI1(11,"feature"),t.nI1(12,"feature"),t.nI1(13,"feature"),t.nI1(14,"async"),t.nI1(15,"async"),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,3,"authorImpactBeamPlot")," "),t.R7$(2),t.Y8G("ngIf",((t.bMT(5,5,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(6,7,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(7,9,"nxPresentationControl_authorProfile_blur_beamplot"))||t.bMT(8,11,o.isOwnProfile$))&&t.bMT(9,13,o.isWosCCEntitled$)),t.R7$(6),t.Y8G("ngIf",!(t.bMT(11,15,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(12,17,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(13,19,"nxPresentationControl_authorProfile_blur_beamplot"))&&!t.bMT(14,21,o.isOwnProfile$)||!t.bMT(15,23,o.isWosCCEntitled$))}}function dh(s,M){1&s&&(t.j41(0,"div",39)(1,"mat-card",40)(2,"mat-card-content"),t.nrm(3,"p",41),t.nI1(4,"translate"),t.k0s()()()),2&s&&(t.Y8G("ngStyle",t.lJ4(4,is)),t.R7$(3),t.Y8G("innerHTML",t.bMT(4,2,"comingSoonMsg"),t.npT))}function ph(s,M){if(1&s){const o=t.RV6();t.qex(0),t.j41(1,"div",47)(2,"button",48),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(4);return t.Njj(g.showMapFlag=!g.showMapFlag)}),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.nrm(6,"span",49),t.nI1(7,"translate"),t.bVm()}2&s&&(t.R7$(2),t.Y8G("aria-label",t.bMT(3,3,"clickToShowMap")),t.R7$(2),t.JRh(t.bMT(5,5,"clickToShowMap")),t.R7$(2),t.Y8G("innerHTML",t.bMT(7,7,"clickToShowMapModalDescription"),t.npT))}function rs(s,M){1&s&&(t.nrm(0,"p",50),t.nI1(1,"translate")),2&s&&t.Y8G("innerHTML",t.bMT(1,1,"mapModalDescriptionForNoCitationInWos"),t.npT)}function uh(s,M){if(1&s&&(t.qex(0),t.DNE(1,ph,8,9,"ng-container",27)(2,rs,2,3,"ng-template",null,2,t.C5r),t.bVm()),2&s){const o=t.sdS(3),u=t.XpG(3);t.R7$(),t.Y8G("ngIf",null==u.authorDetail||null==u.authorDetail.wos_stats?null:u.authorDetail.wos_stats.total_times_cited)("ngIfElse",o)}}function mh(s,M){1&s&&(t.j41(0,"div",51),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.j41(4,"a",38),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.EFF(7),t.nI1(8,"translate"),t.nrm(9,"br")(10,"br"),t.EFF(11),t.nI1(12,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,5,"thisPremiumFeature")," "),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.R7$(),t.SpI(" ",t.bMT(6,7,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(8,9,"howToAccessWOS")," "),t.R7$(4),t.SpI(" ",t.bMT(12,11,"visualizationIsPlaceholder")," "))}function gh(s,M){if(1&s&&(t.j41(0,"div",45)(1,"mat-card",46)(2,"mat-card-content"),t.DNE(3,uh,4,2,"ng-container",27),t.nI1(4,"feature"),t.nI1(5,"feature"),t.nI1(6,"async"),t.nI1(7,"entitlements"),t.DNE(8,mh,13,13,"ng-template",null,1,t.C5r),t.k0s()()()),2&s){const o=t.sdS(9),u=t.XpG(2);t.R7$(3),t.Y8G("ngIf",(t.bMT(4,2,"nxPresentationControl_show_citationMap_allProfile")||t.bMT(5,4,"nxPresentationControl_show_citationMap_ownProfile")&&t.bMT(6,6,u.isOwnProfile$))&&t.bMT(7,8,"WOSCC"))("ngIfElse",o)}}function fh(s,M){if(1&s&&(t.j41(0,"div",52),t.nrm(1,"app-geographic-citation-map",53),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("rid",null==o.authorDetail?null:o.authorDetail.rid)}}function xo(s,M){if(1&s&&(t.j41(0,"div",42),t.DNE(1,gh,10,10,"div",43)(2,fh,2,1,"div",44),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngIf",!o.showMapFlag),t.R7$(),t.Y8G("ngIf",o.showMapFlag)}}function ss(s,M){if(1&s){const o=t.RV6();t.j41(0,"span")(1,"wos-select",59),t.bIt("valueChange",function(g){t.eBV(o);const O=t.XpG(2);return t.Njj(O.changeReviewsGraph(g))}),t.k0s()()}if(2&s){const o=t.XpG(2);t.R7$(),t.Y8G("optVals",o.reviewsSelectValue)("fixedHeight",!1)("value",o.reviewsDefaultValue)("small",!0)("allowSearch",!1)}}function ls(s,M){if(1&s&&t.nrm(0,"app-review-per-month-chart",60),2&s){const o=t.XpG(2);t.Y8G("publonsReviewsData",null==o.metricsData?null:o.metricsData.publonsReviewsPerMonthData)}}function yo(s,M){1&s&&t.nrm(0,"mat-spinner",31),2&s&&t.Y8G("diameter",50)}function cs(s,M){if(1&s&&(t.j41(0,"div",61),t.nI1(1,"async"),t.nrm(2,"app-review-per-month-chart",62),t.k0s()),2&s){const o=t.XpG(2);t.Y8G("hidden",t.bMT(1,3,o.isReviewsPerYearDataLoading$)),t.R7$(2),t.Y8G("reviewsPerYearView",!0)("publonsReviewsData",null==o.metricsData?null:o.metricsData.peerReviewPerYearData)}}function Oe(s,M){if(1&s&&(t.j41(0,"div",17)(1,"h1",54),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",55),t.DNE(5,ss,2,5,"span",14),t.k0s(),t.DNE(6,ls,1,1,"app-review-per-month-chart",56)(7,yo,1,1,"mat-spinner",57),t.nI1(8,"async"),t.DNE(9,cs,3,5,"div",58),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,5,"wos_researcher_reviews")," "),t.R7$(3),t.Y8G("ngIf",null==o.metricsData?null:o.metricsData.publonsReviewsPerMonthData),t.R7$(),t.Y8G("ngIf",o.reviewsPerMonthView&&(null==o.metricsData?null:o.metricsData.publonsReviewsPerMonthData)),t.R7$(),t.Y8G("ngIf",t.bMT(8,7,o.isReviewsPerYearDataLoading$)),t.R7$(2),t.Y8G("ngIf",o.reviewsPerYearView&&(null==o.metricsData?null:o.metricsData.peerReviewPerYearData))}}function Ni(s,M){if(1&s&&(t.j41(0,"div",17),t.nrm(1,"app-average-review-length-chart",63)(2,"mat-divider",23),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.Y8G("metricsData",o.metricsData)}}function _h(s,M){if(1&s&&(t.j41(0,"div",64)(1,"h1",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"app-author-patent-dashboard",65),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,3,"patentMetricsLabel")," "),t.R7$(2),t.Y8G("authorId",o.authorIds)("authorName",null==o.authorDetail?null:o.authorDetail.author_name)}}let bh=(()=>{class s{constructor(o,u,g,O,$,J,st){this.wurs=o,this.store=u,this.cd=g,this.authors=O,this.route=$,this.citationReportService=J,this.translate=st,this.close=new t.bkB,this.validIncitesData=[],this.reviewsSelectValue=["perMonth","perYear"],this.reviewsDefaultValue="perMonth",this.reviewsPerMonthView=!0,this.reviewsPerYearView=!1,this.destroyed$=new Ke.B,this.citationChartLoading=!1,this.currentSelectedDb="wos",this.isWosccDisabled=!1}get isAllReviewsPerMonthDataZero(){return this.metricsData.publonsReviewsPerMonthData?.series?.[0].data.every(o=>0===o)}get isAllReviewsPerYearDataZero(){return this.metricsData.peerReviewPerYearData?.series?.[0].data.every(o=>0===o)}get isAllAverageWordCountDataZero(){return this.metricsData.publonsAverageWordCountData?.series[0].every(o=>0===o)}get verifiedReviewsData(){return Math.floor(this.metricsData.publonsStatData?.total?.verifiedReviews)}get isWosCCEntitled$(){return this.store.select(at.zg).pipe((0,Et.T)(o=>!!o?.WOSCC))}get queryParams(){const o=this.authorDetail?.authorId?.split(","),u=this.authorDetail?.publishingName||this.authorDetail?.author_name;return{queryJson:JSON.stringify([{rowField:"DXNG",rowText:o.join(" or ")}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:u}})}}ngOnChanges(){this.authorRecordIds=this.authorIds.split(",");let o=this.authorIds?.toUpperCase();this.isRid=_t.Y.isRid(o),this.isRid&&this.store.select(Y.Hf,{rid:o}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{o=u}),this.store.select(Y.g$,{authorIds:o}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(u=>!!u)).subscribe(u=>{this.metricsData=u,this.cd.detectChanges()}),this.store.select(Y.QH).pipe((0,V.Q)(this.destroyed$)).subscribe(u=>this.isLoading=u),this.store.select(Y.Gh,{authorIds:o}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.authorDetail=u,this.isOwnProfile$=this.store.select(Y.aJ).pipe((0,W.p)(g=>!!g),(0,Et.T)(g=>!(u.authorId?.split(",").length>1||!g.researcherId)&&g.researcherId===u.rid)),this.store.select(at.l1,{prop:"WAT-11171-display-ES-citation-report-graph-on-public-dashboard"}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>{g&&this.initializeCitationChart()}),this.cd.detectChanges()}),this.subscription&&this.subscription.unsubscribe(),this.IsAuthorWidgetMetricsDataLoading$=this.store.select(Y.n),this.loadingSubscription=(0,oe.z)([this.store.select(Y.qb),this.store.select(Y.p3)]).pipe((0,Et.T)(u=>u.includes(!0)),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.isLoading=u}),this.getvalidIncitesData(),this.isReviewsPerYearDataLoading$=this.store.select(Y.uY)}
1initializeCitationChart(o){if(!o){const g=this.authorDetail?.publication_summary?.wosccPublications>0;this.isWosccDisabled=!g,o=g?"wos":"allIndexed"}this.currentSelectedDb=o;const u=`author_publications_${this.authorDetail?.authorId}_${o}_all`;this.citationChartLoading=!0,this.store.select(at.rc({key:u})).pipe((0,Ct.s)(1),(0,Xe.n)(g=>g?.id?this.loadChartForDatabase(g.id,o):(this.citationChartLoading=!1,(0,fe.of)(null))),(0,V.Q)(this.destroyed$)).subscribe(()=>{this.citationChartLoading=!1,this.cd.detectChanges()})}loadChartForDatabase(o,u){const g="wos"===u?"WOSCC":"ALLDB",O={database:g,qid:o,start:1900,end:(new Date).getFullYear()};return this.citationChartData$=this.store.select(Aa.O0,O).pipe((0,V.Q)(this.destroyed$)),this.citationChartData$.pipe((0,Ct.s)(1),(0,Xe.n)($=>$?.length?(0,fe.of)($):this.citationReportService.runCitationReport({database:g,qid:o,report:{start:O.start,end:O.end}},{first:1,count:50,sort:"times-cited-descending"})))}getvalidIncitesData(){this.store.select(Y.cV,{authorIds:this.authorIds}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.validIncitesData=o.filter(u=>parseInt(u.PUBLICATION_DATE,10)!==(new Date).getFullYear()&&parseInt(u.PUBLICATION_DATE,10)!==(new Date).getFullYear()-1)})}citationWursEvent(){this.wurs.event({event:"event_query_v2",queryType:"citation_report_search"}),this.wurs.event({event:"event_result_click_v2",type:"cit_report"})}getCitationReportRouterParams(){const o=this.authorDetail?.authorId?.split(","),u=this.authorDetail?.publishingName||this.authorDetail?.author_name;return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"DXNG",rowText:o.join(" OR ")}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:u}}),dest:"citation-report"}}changeReviewsGraph(o){this.reviewsDefaultValue=o,"perMonth"===o?(this.reviewsPerMonthView=!0,this.reviewsPerYearView=!1):(this.reviewsPerYearView=!0,this.reviewsPerMonthView=!1)}ngOnDestroy(){this.loadingSubscription.unsubscribe(),this.destroyed$.next(!0)}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(hi.J),t.rXU(wt.il),t.rXU(t.gRc),t.rXU(ve.m),t.rXU(pt.nX),t.rXU(Un.J),t.rXU(ht.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-metrics-dashboard"]],inputs:{authorIds:"authorIds"},outputs:{close:"close"},features:[t.OA$],decls:51,vars:48,consts:[["chartContent",""],["hideCitationMap",""],["BlurCitationMap",""],[1,"wat-author-metric-toolbar"],["mat-icon-button","",1,"close-btn",3,"click"],["class","wat-spinner",4,"ngIf"],[1,"wat-metric-section"],[1,"wat-metric-title"],["data-test","mat-divider",1,"mat-divider-metric-dashboard"],[1,"publication-metrics-section"],[1,"wat-metric-dashboard-titles"],[1,"wat-pub-matrix-para"],[3,"authorIds"],["data-test","mat-divider",1,"mat-divider-publication-metrics","mat-divider-top-margin"],[4,"ngIf"],["class","wat-spinner-marging",4,"ngIf"],["tabindex","0","id","wat-beam-plot","class","margin-top-20",4,"ngIf"],[1,"margin-top-20"],["data-test","mat-divider",1,"mat-divider-publication-metrics","margin-top-30"],[1,"wat-metric-dashboard-titles","margin-top-20","margin-bottom-20"],["class","wat-citation-map",3,"ngStyle",4,"ngIf"],["class","cluster-map",4,"ngIf"],[1,"publication-metrics-section","margin-top-20"],["data-test","mat-divider",1,"mat-divider-publication-metrics"],["class","margin-top-20",4,"ngIf"],["class","margin-top-20 margin-bottom-20",4,"ngIf"],[1,"wat-spinner"],[4,"ngIf","ngIfElse"],[1,"wat-spinner","margin-bottom-20",3,"diameter"],[3,"databaseSelectionChange","data","lang","selectedDb","isWosccDisabled","view"],[1,"wat-spinner-marging"],[1,"wat-spinner",3,"diameter"],["tabindex","0","id","wat-beam-plot",1,"margin-top-20"],["data-ta","beamplot-title",1,"wat-metric-dashboard-titles"],["class","fv-author-beamplot",4,"ngIf"],[1,"fv-author-beamplot"],["src","/wos/static/images/sample-full-beamplot.png",1,"blurred-image",3,"alt"],[1,"overlay-message"],["target","_blank","rel","noopener noreferrer",3,"wosHelp"],[1,"wat-citation-map",3,"ngStyle"],[1,"wat-citation-map-card"],[3,"innerHTML"],[1,"cluster-map"],["class","map-blur-image",4,"ngIf"],["class","map",4,"ngIf"],[1,"map-blur-image"],[1,"card"],[1,"action-section"],["mat-stroked-button","","color","primary",1,"cdx-but-lg",3,"click","aria-label"],[1,"font-size-16",3,"innerHTML"],[1,"font-size-16","margin-bottom-20",3,"innerHTML"],[1,"font-size-16","margin-bottom-20"],[1,"map"],[3,"rid"],["data-ta","reviews-title",1,"wat-metric-dashboard-titles"],[1,"margin-top-20","tab-content"],[3,"publonsReviewsData",4,"ngIf"],["class","wat-spinner",3,"diameter",4,"ngIf"],[3,"hidden",4,"ngIf"],["id","wosResearcherReviews","tabindex","0","translatePostfix","_reviews_label","width","120px",1,"margin-bottom-20",3,"valueChange","optVals","fixedHeight","value","small","allowSearch"],[3,"publonsReviewsData"],[3,"hidden"],[3,"reviewsPerYearView","publonsReviewsData"],[3,"metricsData"],[1,"margin-top-20","margin-bottom-20"],[3,"authorId","authorName"]],template:function(u,g){1&u&&(t.j41(0,"mat-toolbar",3)(1,"button",4),t.nI1(2,"translate"),t.bIt("click",function(){return g.close.emit()}),t.j41(3,"mat-icon"),t.EFF(4,"clear"),t.k0s()(),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.DNE(8,sh,1,0,"mat-spinner",5),t.j41(9,"div",6)(10,"h1",7),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.nrm(13,"mat-divider",8),t.j41(14,"div",9)(15,"h1",10),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"p",11),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.nrm(21,"app-author-wos-publication-stats",12)(22,"mat-divider",13),t.k0s(),t.DNE(23,Qt,5,2,"ng-container",14),t.nI1(24,"feature"),t.DNE(25,os,2,1,"div",15),t.nI1(26,"async"),t.DNE(27,hh,16,25,"div",16),t.nI1(28,"feature"),t.nI1(29,"feature"),t.nI1(30,"feature"),t.j41(31,"div",17),t.nrm(32,"mat-divider",18),t.j41(33,"h1",19),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.DNE(36,dh,5,5,"div",20),t.nI1(37,"feature"),t.DNE(38,xo,3,2,"div",21),t.nI1(39,"feature"),t.k0s(),t.nrm(40,"mat-divider",18),t.j41(41,"div",22)(42,"h1",10),t.EFF(43),t.nI1(44,"translate"),t.k0s(),t.nrm(45,"app-peer-review-matrix",12)(46,"mat-divider",23),t.k0s(),t.DNE(47,Oe,10,9,"div",24)(48,Ni,3,1,"div",24)(49,_h,5,5,"div",25),t.nI1(50,"feature"),t.k0s()),2&u&&(t.R7$(),t.BMQ("aria-label",t.bMT(2,18,"close")),t.R7$(5),t.JRh(t.bMT(7,20,"closeMetricsDashboard")),t.R7$(2),t.Y8G("ngIf",g.isLoading),t.R7$(3),t.SpI(" ",t.bMT(12,22,"metricDashboardHeading")," "),t.R7$(5),t.SpI(" ",t.bMT(17,24,"webofScienceCoreCollectionMetrics")," "),t.R7$(3),t.SpI(" ",t.bMT(20,26,"citationCountsWOS")," "),t.R7$(2),t.Y8G("authorIds",g.authorIds),t.R7$(2),t.Y8G("ngIf",t.bMT(24,28,"WAT-11171-display-ES-citation-report-graph-on-public-dashboard")),t.R7$(2),t.Y8G("ngIf",!g.isLoading&&t.bMT(26,30,g.IsAuthorWidgetMetricsDataLoading$)),t.R7$(2),t.Y8G("ngIf",(null==g.validIncitesData?null:g.validIncitesData.length)>0||!(t.bMT(28,32,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(29,34,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(30,36,"nxPresentationControl_authorProfile_blur_beamplot"))),t.R7$(7),t.SpI(" ",t.bMT(35,38,"citationMap")," "),t.R7$(2),t.Y8G("ngIf",!t.bMT(37,40,"nxPresentationControl_authorProfile_citationMap")&&(null==g.authorDetail||null==g.authorDetail.wos_stats?null:g.authorDetail.wos_stats.total_times_cited)),t.R7$(2),t.Y8G("ngIf",t.bMT(39,42,"nxPresentationControl_authorProfile_citationMap")),t.R7$(5),t.SpI(" ",t.bMT(44,44,"peerReviewMetrics")," "),t.R7$(2),t.Y8G("authorIds",g.authorIds),t.R7$(2),t.Y8G("ngIf",(null==g.metricsData||null==g.metricsData.publonsReviewsPerMonthData?null:g.metricsData.publonsReviewsPerMonthData.series)&&!(g.isAllReviewsPerMonthDataZero||g.isAllReviewsPerYearDataZero)),t.R7$(),t.Y8G("ngIf",(null==g.metricsData?null:g.metricsData.publonsAverageWordCountData)&&g.verifiedReviewsData&&!g.isAllAverageWordCountDataZero),t.R7$(),t.Y8G("ngIf",t.bMT(50,46,"nxEnablePatentCitationAnalyzeResults")))},dependencies:[Kt.q,Fe.R,On.E,Da,Ft.An,B.bT,B.B3,bo.KQ,Mt.$z,Mt.iY,Nt.LG,S.RN,S.m2,D.J,L.j,z.J,ot,ut,ji,ns,yt.N,B.Jj,ht.D9,Z.h],styles:[".wat-author-metric-toolbar[_ngcontent-%COMP%]{max-height:2.5rem}@media screen and (max-width: 30rem){.wat-author-metric-toolbar[_ngcontent-%COMP%]{padding:0 .5rem}}.close-btn[_ngcontent-%COMP%]{margin-top:.1875rem;margin-left:.3125rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{margin-left:0!important;margin-right:.3125rem!important}.blurred-image[_ngcontent-%COMP%]{filter:blur(3px)}.fv-author-beamplot[_ngcontent-%COMP%]{position:relative}.fv-author-beamplot[_ngcontent-%COMP%]   .overlay-message[_ngcontent-%COMP%]{border-color:#000;border-width:.0625rem;border-style:solid;background-color:#fff;position:absolute;top:-15%;left:35%;
1width:18.75rem;padding:.5rem}.wat-close-button-margin[_ngcontent-%COMP%]{color:#fff}.wat-metric-title[_ngcontent-%COMP%]{text-align:left!important;margin-top:1.875rem;font-weight:600}.mat-divider-metric-dashboard[_ngcontent-%COMP%]{position:relative!important;width:100%!important;margin-top:.625rem!important}.wat-metric-section[_ngcontent-%COMP%]{margin-inline:2.5rem}@media screen and (max-width: 30rem){.wat-metric-section[_ngcontent-%COMP%]{margin:0 .625rem}}.publication-metrics-section[_ngcontent-%COMP%]{margin-top:2.5rem}@keyframes _ngcontent-%COMP%_highlight-fade{0%{background-color:#5e338f33;outline-color:#5e33bf}to{background-color:transparent;outline-color:transparent}}#wat-beam-plot[_ngcontent-%COMP%]:focus{outline:.125rem solid #5e33bf;outline-offset:.125rem;border-radius:.25rem;animation:_ngcontent-%COMP%_highlight-fade 2s ease-out}.wat-metric-dashboard-titles[_ngcontent-%COMP%]{text-align:left!important;font-size:1.125rem;font-weight:600}.wat-pub-matrix-para[_ngcontent-%COMP%]{font-size:.8125rem;color:#0000008a}.wat-publication-metrics-data[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;line-height:2.125rem}.wat-publication-metrics-data[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:600}.wat-publication-metrics-descriptor[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600}.wat-publication-metrics-div[_ngcontent-%COMP%]{width:9.375rem;height:7.8125rem;vertical-align:top;display:inline-block}.mat-divider-publication-metrics[_ngcontent-%COMP%]{position:relative!important;width:100%!important}.mat-divider-top-margin[_ngcontent-%COMP%]{margin-top:-1.25rem!important}.pub-metric-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:50%;height:7.8125rem;text-align:justify;-ms-text-justify:distribute-all-lines;text-justify:distribute-all-lines;margin-top:1.25rem}@media only screen and (min-width: 30rem) and (max-width: 64rem){.pub-metric-container[_ngcontent-%COMP%]{width:80%;gap:1.25rem}.pub-metric-container[_ngcontent-%COMP%]   .wat-publication-metrics-div[_ngcontent-%COMP%]{width:auto}}@media screen and (max-width: 30rem){.pub-metric-container[_ngcontent-%COMP%]{width:100%;gap:1.25rem}.pub-metric-container[_ngcontent-%COMP%]   .wat-publication-metrics-div[_ngcontent-%COMP%]{width:auto}}.wat-view-aggregate-citation[_ngcontent-%COMP%]{color:#0000008a;font-size:.875rem;float:left;margin-left:2rem}.wat-view-aggregate-citation-btn[_ngcontent-%COMP%]{float:right;width:fit-content;margin-right:6rem}.wat-view-aggregate-citation-div[_ngcontent-%COMP%]{padding-bottom:1.875rem!important;margin-bottom:1.875rem!important}.wat-spinner[_ngcontent-%COMP%]{position:relative;top:30%;margin:auto}.wat-citation-map[_ngcontent-%COMP%]{height:40.125rem;width:51rem;object-fit:cover;background-repeat:no-repeat}.wat-citation-map-card[_ngcontent-%COMP%]{width:13.5rem;left:40%;top:40%}.cluster-map[_ngcontent-%COMP%]{height:auto;width:inherit}.cluster-map[_ngcontent-%COMP%]   .map-blur-image[_ngcontent-%COMP%]{height:37.5rem;width:inherit;object-fit:cover;background-repeat:no-repeat;background-image:url(/wos/static/images/highchart-cluster-map/citation_map_blur.png)}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{width:22.5rem;left:35%;top:25%;padding:.9375rem}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:lang(ar-sa){right:35%;left:inherit}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:1.875rem}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]     .mdc-button__label{white-space:normal}@media screen and (max-width: 30rem){.cluster-map[_ngcontent-%COMP%]{width:inherit}.cluster-map[_ngcontent-%COMP%]   .map-blur-image[_ngcontent-%COMP%]{height:18.75rem}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{width:15.625rem;left:0;top:10%;padding:.3125rem}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:.9375rem}.cluster-map[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .action-section[_ngcontent-%COMP%]     .mdc-button__label{white-space:normal}}@media (max-width: 1300px){.mat-divider-publication-metrics[_ngcontent-%COMP%]{top:15px}}"]})}}return s})();const Ch=["dashboardSideNav"];let Fa=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J){super(u,o),this.route=g,this.store=O,this.router=$,this.render=J,this.isMobile$=_t.Y.isMobile$,this.isRTL$=_t.Y.isRTL$}ngOnInit(){super.ngOnInit(),this.route.queryParams.subscribe(o=>{this.authorIds=o.authorIds.toUpperCase(),this.change.detectChanges()})}ngAfterViewInit(){this.detailSideNav.open(),this.change.detectChanges()}openedStartOverlay(){this.render.addClass(document.body,"overlay-open")}closedStartOverlay(){this.render.removeClass(document.body,"overlay-open"),this.updateRouter()}updateRouter(){ke.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:null}}
1],{replaceUrl:!0,queryParams:null,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge",skipLocationChange:!0})}ngOnDestroy(){this.render.removeClass(document.body,"overlay-open")}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(ht.c$),t.rXU(t.gRc),t.rXU(pt.nX),t.rXU(wt.il),t.rXU(pt.Ix),t.rXU(t.sFG))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-dashboard-overlay"]],viewQuery:function(u,g){if(1&u&&t.GBs(Ch,5),2&u){let O;t.mGM(O=t.lsd())&&(g.detailSideNav=O.first)}},features:[t.Vt3],decls:4,vars:7,consts:[["dashboardSideNav",""],[1,"nextgen-sidenav-container",3,"backdropClick","hasBackdrop"],["role","figure","fixedInViewport","true","mode","side","position","end",3,"openedStart","closedStart","fixedTopGap","fixedBottomGap","fixedInViewport","autoFocus","disableClose"],[3,"close","authorIds"]],template:function(u,g){if(1&u){const O=t.RV6();t.j41(0,"mat-sidenav-container",1),t.bIt("backdropClick",function(){return t.eBV(O),t.Njj(g.detailSideNav.close())}),t.j41(1,"mat-sidenav",2,0),t.bIt("openedStart",function(){return t.eBV(O),t.Njj(g.openedStartOverlay())})("closedStart",function(){return t.eBV(O),t.Njj(g.closedStartOverlay())}),t.j41(3,"app-author-metrics-dashboard",3),t.bIt("close",function(){return t.eBV(O),t.Njj(g.detailSideNav.close())}),t.k0s()()()}2&u&&(t.Y8G("hasBackdrop",!0),t.R7$(),t.Y8G("fixedTopGap",0)("fixedBottomGap",0)("fixedInViewport",!0)("autoFocus",!0)("disableClose",!0),t.R7$(2),t.Y8G("authorIds",g.authorIds))},dependencies:[Wn.LG,Wn.US,bh],styles:[".structure-header[_ngcontent-%COMP%]{border-bottom:1px solid #9e9e9e;padding:1rem 2rem}.mat-drawer-container[_ngcontent-%COMP%]{z-index:1999!important}mat-sidenav[_ngcontent-%COMP%]{width:60%}@media only screen and (max-width: 64rem){mat-sidenav[_ngcontent-%COMP%]{width:85%}}"]})}}return s})();var zi=E(16542),Hn=E(81902),be=E(16647);let hs=(()=>{class s{constructor(o){this.store=o}resolve(o,u){const g=o.paramMap.get("authorIds");return this.store.dispatch(new Hn.Yf({authorIds:g.toUpperCase()})),1===g.split(",").length&&this.store.dispatch(new Hn.zO({authorIds:g.toString()})),_t.Y.isRid(g)?this.store.select(Y.Hf,{rid:g.toUpperCase()}).pipe((0,W.p)(O=>!!O),(0,Ct.s)(1)):(0,fe.of)(g)}static{this.\u0275fac=function(u){return new(u||s)(t.KVO(wt.il))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),ds=(()=>{class s{constructor(o){this.store=o}resolve(o,u){const O=o.queryParamMap.get("authorIds").split(",");this.store.dispatch(new Hn.Yf({authorIds:O.join(",")})),this.store.dispatch(new be.SF({userInfo:null}))}static{this.\u0275fac=function(u){return new(u||s)(t.KVO(wt.il))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),di=(()=>{class s{constructor(o){this.store=o}resolve(o,u){return this.store.select(at.l1,{prop:"nxResearcherAdministration"}).pipe((0,Et.T)(g=>!(!g||!u.url.includes("/researcher-admin/"))),(0,Ct.s)(1))}static{this.\u0275fac=function(u){return new(u||s)(t.KVO(wt.il))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var kn=E(41737),Ie=E(23294);let xh=(()=>{class s{constructor(o){this.windowRef=o,this.shouldFocusSkipNav=!0}handleKeyupEvent(o){"Tab"===o.key&&this.shouldFocusSkipNav&&(this.windowRef.nativeDocument.getElementById("skip-nav")?.focus(),this.shouldFocusSkipNav=!1)}ngOnInit(){this.shouldFocusSkipNav=!0;const o=()=>{this.shouldFocusSkipNav=!1,this.windowRef.nativeWindow.removeEventListener("click",o)};this.windowRef.nativeWindow.addEventListener("click",o);const u=()=>{this.shouldFocusSkipNav=!1,this.windowRef.nativeWindow.removeEventListener("scroll",u)};this.windowRef.nativeWindow.addEventListener("scroll",u)}static{this.\u0275fac=function(u){return new(u||s)(t.KVO(kn.W))}}static{this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac})}}return s})();var ce=E(18166),yh=E(65523),$a=E(345),ps=E(17143),Rn=E(56729),Mo=E(89429),Ce=E(14823),Mh=E(81428),pi=E(52988),vo=E(11747),Po=E(64519),us=E(83419),ms=E(44275),ui=E(8362);const vh=["authorNameMatchDialog"],wo=s=>({authorName:s});function La(s,M){1&s&&t.nrm(0,"mat-icon",13)}function mi(s,M){1&s&&(t.j41(0,"mat-icon",14),t.EFF(1,"arrow_forward"),t.k0s())}function fn(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",5)(1,"div",6),t.nrm(2,"mat-icon",7),t.j41(3,"h2",8),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"p"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"button",9),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(2);return t.Njj(g.askRA())}),t.j41(10,"span",10),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.DNE(13,La,1,0,"mat-icon",11)(14,mi,2,0,"mat-icon",12),t.k0s()()}if(2&s){const o=t.XpG(2);t.R7$(4),t.JRh(t.bMT(5,6,"understand_research_contributions")),t.R7$(3),t.JRh(t.bMT(8,8,"ra_cta_author_record_text")),t.R7$(2),t.Y8G("disabled",o.askingRA),t.R7$(2),t.JRh(t.bMT(12,10,"explore_insights")),t.R7$(2),t.Y8G("ngIf",o.askingRA),t.R7$(),t.Y8G("ngIf",!o.askingRA)}}function Oo(s,M){if(1&s){const o=t.RV6();t.j41(0,"span",17),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"a",18),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.handleClaimAction())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"AreYouThisAuthor"),"\xa0 "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"ClaimProfile")," "))}function Ph(s,M){if(1&s&&(t.qex(0,15),t.DNE(1,Oo,6,6,"span",16),t.bVm()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!(null!=o.authorDetail&&o.authorDetail.claim_status||o.hasClaimedRecord))}}function wh(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){t.eBV(o);const g=t.XpG(4);return t.Njj(g.openClaimsProcessDialog())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"ClaimRecord")," "))}function Oh(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){t.eBV(o);const g=t.XpG(4);return t.Njj(g.enableNameMatchingForAuthorRecord())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"ClaimRecord")," "))}function gs(s,M){1&s&&(t.j41(0,"mat-card",20)(1,"div")(2,"mat-card-title",21)(3,"mat-icon",22),t.EFF(4," account_circle "),t.k0s(),t.j41(5,"h2",23),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.nrm(8,"mat-divider",24),t.j41(9,"mat-card-content",25),t.nrm(10,"div",26),t.nI1(11,"translate"),t.k0s(),t.j41(12,"mat-card-actions",27),t.DNE(13,wh,3,3,"button",28),t.nI1(14,"feature"),t.DNE(15,Oh,3,3,"button",28),t.nI1(16,"feature"),t.k0s()()()),2&s&&(t.R7$(6),t.JRh(t.bMT(7,4,"AreYouThisAuthor")),t.R7$(4),t.Y8G("innerHTML",t.bMT(11,6,"AuthorVerify"),t.npT),t.R7$(3),t.Y8G("ngIf",!t.bMT(14,8,"PUB-7664-author-record-enable-name-matching")),t.R7$(2),t.Y8G("ngIf",t.bMT(16,10,"PUB-7664-author-record-enable-name-matching")))}function pe(s,M){if(1&s&&(t.qex(0),t.DNE(1,gs,17,12,"mat-card",19),t.bVm()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!(null!=o.authorDetail&&o.authorDetail.claim_status||o.hasClaimedRecord))}}function Ue(s,M){if(1&s){const o=t.RV6();t.j41(0,"mat-card",30)(1,"div")(2,"mat-card-title",31)(3,"h2",23),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.nrm(6,"mat-divider",24),t.j41(7,"mat-card-content",32),t.nrm(8,"ul",26),t.nI1(9,"translate"),t.k0s(),t.j41(10,"mat-card-actions",33)(11,"button",34),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.openClaimsProcessDialog())}),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()}2&s&&(t.R7$(4),t.JRh(t.bMT(5,3,"CreateResearcherProfile")),t.R7$(4),t.Y8G("innerHTML",t.bMT(9,5,"CreateResearcherProfileText"),t.npT),t.R7$(4),t.SpI(" ",t.bMT(13,7,"GetStarted")," "))}function fs(s,M){if(1&s&&(t.qex(0),t.DNE(1,fn,15,12,"div",2),t.nI1(2,"feature"),t.nI1(3,"async"),t.DNE(4,Ph,2,1,"ng-container",3),t.nI1(5,"feature"),t.DNE(6,pe,2,1,"ng-container",1),t.nI1(7,"feature"),t.DNE(8,Ue,14,9,"mat-card",4),t.nI1(9,"feature"),t.nI1(10,"feature"),t.bVm()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,4,"nxEnableRACTA")&&!t.bMT(3,6,o.isResearchAssistantDisabled())&&o.shouldDisplayRACTA()),t.R7$(3),t.Y8G("ngIf",t.bMT(5,8,"WAT-11243-UI-updates")&&o.showClaimProfileLink),t.R7$(2),t.Y8G("ngIf",!t.bMT(7,10,"WAT-11243-UI-updates")),t.R7$(2),t.Y8G("ngIf",(!t.bMT(9,12,"WAT-11243-UI-updates")||!o.showClaimProfileLink)&&!o.isOwnProfile&&!o.researcherProfile&&((null==o.authorDetail?null:o.authorDetail.claim_status)||o.hasClaimedRecord)&&!t.bMT(10,14,"nxPresentationControl_authorRecord_hide_verifyCard"))}}function Ih(s,M){if(1&s&&(t.j41(0,"div")(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",t.i5U(3,1,"ClaimablePublicationsInfo",t.eq3(4,wo,o.exactMatches.join(", ")))," ")}}function _s(s,M){if(1&s&&(t.j41(0,"div")(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",t.i5U(3,1,"VariantNameConsent",t.eq3(4,wo,o.partialMatches.join(", ")))," ")}}function Yi(s,M){1&s&&(t.nrm(0,"p",41),t.nI1(1,"translate")),2&s&&t.Y8G("innerHTML",t.bMT(1,1,"noAuthorMatchMessage"),t.npT)}function Th(s,M){if(1&s&&(t.j41(0,"div")(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Yi,2,3,"p",40),t.nI1(5,"feature"),t.k0s()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",t.i5U(3,2,"MismatchProfileNameWarning",t.eq3(7,wo,o.failedMatches.join(", ")))," "),t.R7$(2),t.Y8G("ngIf",!t.bMT(5,5,"PUB-7664-author-record-support-link"))}}function Io(s,M){if(1&s){const o=t.RV6();t.j41(0,"mat-checkbox",42),t.mxI("ngModelChange",function(g){t.eBV(o);const O=t.XpG(2);return t.DH7(O.confirmSelection,g)||(O.confirmSelection=g),t.Njj(g)}),t.j41(1,"span",43),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&s){const o=t.XpG(2);t.R50("ngModel",o.confirmSelection),t.R7$(2),t.SpI(" ",t.bMT(3,2,"ConfirmAuthorSelection"),"")}}function bs(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"h2",35),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Ih,4,6,"div",1)(5,_s,4,6,"div",1)(6,Th,6,9,"div",1)(7,Io,4,4,"mat-checkbox",36),t.j41(8,"div",37)(9,"button",38),t.nI1(10,"translate"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"button",39),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.openClaimsProcessDialog())}),t.EFF(14),t.nI1(15,"translate"),t.k0s()()()}if(2&s){const o=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,9,"ClaimRecord")," "),t.R7$(2),t.Y8G("ngIf",o.exactMatches.length),t.R7$(),t.Y8G("ngIf",o.partialMatches.length),t.R7$(),t.Y8G("ngIf",o.failedMatches.length),t.R7$(),t.Y8G("ngIf",o.partialMatches.length),t.R7$(2),t.Y8G("aria-label",t.bMT(10,11,"Cancel")),t.R7$(2),t.SpI(" ",t.bMT(12,13,"Cancel")," "),t.R7$(2),t.Y8G("disabled",!(o.exactMatches.length>0&&0===o.partialMatches.length||o.partialMatches.length>0&&o.confirmSelection)),t.R7$(),t.SpI(" ",t.bMT(15,15,"Continue")," ")}}let An=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st,gt,zt){super(g,$),this.router=o,this.dialog=u,this.api=O,this.translate=$,this.store=J,this.nameMatchService=st,this.actions$=gt,this.snackBar=zt,this.showClaimProfileLink=!1,this.showRACTA=!0,this.researcherProfile=!1,this.confirmSelection=!1,this.exactMatches=[],this.partialMatches=[],this.failedMatches=[],this.askingRA=!1}ngOnChanges(){this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>this.authorDetail=o),this.store.select(at.mm).pipe((0,Ie.F)()).subscribe(o=>this.user=o),this.store.select(at.Ik).pipe((0,Ie.F)(),(0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o)).subscribe(o=>{this.researcherProfile=o.isAuthor})}directToAuthorSearch(){this.router.navigate(["author","search"])}enableNameMatchingForAuthorRecord(){if(!this.user||this.researcherProfile)return this.user&&this.researcherProfile?(this.confirmSelection=!1,void this.store.select(at.Kd).pipe((0,W.p)(o=>!!o?.rid),(0,Ie.F)(),(0,Ct.s)(1)).subscribe(o=>{let u=ce.X.getFormattedAuthorName(o);this.exactMatches=[],this.partialMatches=[],this.failedMatches=[];const g=this.authorDetail?.primaryName?.fullName||(this.authorDetail?.authorAliasName!==this.authorDetail?.author_name?this.authorDetail?.authorAliasName:this.authorDetail?.author_name),O=1===this.authorIds.length&&g?{[this.authorIds[0]]:{prefAuthorName:g}}:this.authorDetail.prefName||{};this.authorIdsForSuggestion=this.authorIds,Object.entries(O).forEach(([$,J])=>{if(J.prefAuthorName)switch(this.nameMatchService.nameMatch(u,J.prefAuthorName).matchType){case"exact_match":this.exactMatches.push(`'${J.prefAuthorName}'`);break;case"partial_match":this.partialMatches.push(`'${J.prefAuthorName}'`);break;case"failed_match":this.failedMatches.push(`'${J.prefAuthorName}'`),this.authorIdsForSuggestion=this.authorIdsForSuggestion.filter(gt=>gt!==$)}}),this.dialog.open(this.templateRef,{width:"580px",height:"auto",maxHeight:"128px",ariaLabel:this.translate.instant("ClaimRecord"),position:{top:"20vh"},autoFocus:!1})})):void this.openClaimsProcessDialog();this.dialog.open(pi.v,{panelClass:"user-onboarding-modal",data:{claimedAuthorIds:this.authorIds}})}openUserOnboardingModal(){this.dialog.open(Mh.n,{height:"auto",width:"650px",ariaLabel:this.translate.instant("userOnboardingModal"),data:{modalHeader:"continue_to_build_your_researcher_profile",modalDescription:"user-onboarding-description",authorIds:this.authorIds},panelClass:"user-onboarding-modal"})}openClaimsProcessDialog(){if(!this.user||this.researcherProfile)if(this.user&&this.researcherProfile){let o=_t.Y.getToggle("PUB-4833-Improve-suggested-publications-page",this.store)?["op","publications","add-suggested-publications"]:["op","publications","add"];this.router.navigate(o,{state:{...history.state,emails:[this.user.email]},queryParams:{author:this.authorIdsForSuggestion}})}else this.openUserOnboardingModal();else this.dialog.open(pi.v,{panelClass:"user-onboarding-modal"})}get hasClaimedRecord(){return this.authorDetail?.claimStatuses?.some(o=>"Claimed"===o.status)}handleClaimAction(){_t.Y.getToggle("PUB-7664-author-record-enable-name-matching",this.store)?this.enableNameMatchingForAuthorRecord():this.openClaimsProcessDialog()}askRA(){this.askingRA=!0;const o=this.authorDetail?.primaryName?.fullName,u=this.authorDetail?.rid,g=`${this.translate.instant("give_me_overview_of")} ${o} (${u})`;this.actions$.pipe((0,vo.gp)(at.Aw.eB.QuestionAnswered),(0,Ct.s)(1),(0,V.Q)(this.destroyed$)).subscribe(O=>{this.router.navigate(["/research-assistant",O.payload.conversation]),this.askingRA=!1},()=>{this.askingRA=!1,this.snackBar.errorRed("ra_request_failed")}),this.store.dispatch(new at.Aw.dq({question:g,workflowStage:"agent_author_agent"}))}shouldDisplayRACTA(){return this.showRACTA&&!this.isOwnProfile&&1===this.authorIds?.length&&(this.authorDetail?.publication_summary?.totalPublications??0)>0}isResearchAssistantDisabled(){return _t.Y.isResearchAssistantDisabled(this.store)}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(pt.Ix),t.rXU(Vt.bZ),t.rXU(t.gRc),t.rXU(us.G),t.rXU(ht.c$),t.rXU(wt.il),t.rXU(ms.G),t.rXU(vo.En),t.rXU(Po.z))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-record-identity"]],viewQuery:function(u,g){if(1&u&&t.GBs(vh,7,t.C4Q),2&u){let O;t.mGM(O=t.lsd())&&(g.templateRef=O.first)}},inputs:{isOwnProfile:"isOwnProfile",authorIds:"authorIds",showClaimProfileLink:"showClaimProfileLink",showRACTA:"showRACTA"},features:[t.Vt3,t.OA$],decls:3,vars:1,consts:[["authorNameMatchDialog",""],[4,"ngIf"],["class","margin-bottom-15 ra-cta","data-test","ra-author-record-cta-container",4,"ngIf"],["data-test","claim-link-container",4,"ngIf"],["class","wat-author-verify-card card-rounded-border","data-test","author-verify",4,"ngIf"],["data-test","ra-author-record-cta-container",1,"margin-bottom-15","ra-cta"],[1,"ra-cta__header"],["svgIcon","raLogo",1,"svg-icon-18","ra-cta__logo"],[1,"ra-cta__title"],["mat-flat-button","","data-test","ra-author-record-cta-button","id","ra-author-record-cta","data-
1pendo","CTA_RA_NAV_AUTHOR_RECORD",1,"cdx-grid-label","button-outline-margin",3,"click","disabled"],[1,"ra-cta__button-text"],["iconPositionEnd","","role","img","svgIcon","circle-notch","class","cdx-mat-icon-16 svg-spinner-inline",4,"ngIf"],["iconPositionEnd","","class","font-size-16","inline","true",4,"ngIf"],["iconPositionEnd","","role","img","svgIcon","circle-notch",1,"cdx-mat-icon-16","svg-spinner-inline"],["iconPositionEnd","","inline","true",1,"font-size-16"],["data-test","claim-link-container"],["data-test","claim-link-text",4,"ngIf"],["data-test","claim-link-text"],["data-test","claim-profile-link",1,"wos-standard-link","claim-profile-link",3,"click"],["class","wat-author-confirmation-card card-rounded-border","data-test","author-confirmation",4,"ngIf"],["data-test","author-confirmation",1,"wat-author-confirmation-card","card-rounded-border"],["data-test","identity-title",1,"identity-card-title","margin-bottom-0"],[1,"wat-identity-mat--icon"],[1,"wat-author-confirmation-heading"],[1,"custom-mat-divider"],["data-test","identity-content",1,"margin-bottom-24"],[3,"innerHTML"],["data-test","identity-actions",1,"cdx-zero-padding"],["mat-flat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-claim",3,"click",4,"ngIf"],["mat-flat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-claim",3,"click"],["data-test","author-verify",1,"wat-author-verify-card","card-rounded-border"],["data-test","identity-title",1,"identity-card-title"],["data-test","identity-content",1,"create-researcher-profiles-list"],["data-test","identity-actions"],["mat-flat-button","",3,"click"],[1,"title","text--large","bold-label"],[3,"ngModel","ngModelChange",4,"ngIf"],[1,"dialog-actions"],["mat-button","","mat-dialog-close","","role","button",1,"mdc-button","mdc-button--outlined","mat-mdc-outlined-button","mat-primary","mat-mdc-button-base",3,"aria-label"],["mat-flat-button","","mat-dialog-close","",1,"mat-primary",3,"click","disabled"],["class","no-match-support-link",3,"innerHTML",4,"ngIf"],[1,"no-match-support-link",3,"innerHTML"],[3,"ngModelChange","ngModel"],[1,"padding-left-15--reversible"]],template:function(u,g){1&u&&t.DNE(0,fs,11,16,"ng-container",1)(1,bs,16,17,"ng-template",null,0,t.C5r),2&u&&t.Y8G("ngIf",g.authorDetail)},dependencies:[Kt.q,Vt.tx,Zt.BC,Zt.vS,Nn.So,Ft.An,B.bT,Mt.$z,S.RN,S.YY,S.m2,S.dh,ui.P,B.Jj,ht.D9,Z.h],styles:[".wat-author-confirmation-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:1rem;padding:1.5rem 1.5625rem 2.5rem 1.5rem}.wat-author-confirmation-card[_ngcontent-%COMP%]   .identity-card-title[_ngcontent-%COMP%]{font-size:1.375rem;line-height:1.6875rem}.wat-author-confirmation-card[_ngcontent-%COMP%]   .identity-card-title[_ngcontent-%COMP%]   .wat-identity-mat--icon[_ngcontent-%COMP%]{font-size:1.5rem;position:relative;top:.25rem;margin-right:.5rem}.wat-author-confirmation-card[_ngcontent-%COMP%]   .identity-card-title[_ngcontent-%COMP%]   .wat-author-confirmation-heading[_ngcontent-%COMP%]{color:#000;display:inline}.wat-author-confirmation-card[_ngcontent-%COMP%]   .mat-mdc-card-actions[_ngcontent-%COMP%]{display:inline;padding:0!important}.dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:24px;gap:12px}.no-match-support-link[_ngcontent-%COMP%]{font-style:italic;font-size:.9375rem}.text[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;line-height:1.875rem;flex:1}.wat-author-verify-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1.5625rem 2.0625rem;margin-bottom:1rem}.wat-author-verify-card[_ngcontent-%COMP%]   .mat-mdc-card-actions[_ngcontent-%COMP%]{padding-left:0!important}.hidden-card[_ngcontent-%COMP%]{display:none}.wat-no-margin[_ngcontent-%COMP%]{margin-top:0!important}.claim-record-button[_ngcontent-%COMP%]{width:100%;text-align:center;background-color:#5e33bf}.claim-profile-link[_ngcontent-%COMP%]{cursor:pointer}"]})}}return s})();var Cs=E(84811),To=E(15756);function Bi(s,M){1&s&&t.nrm(0,"mat-spinner",7),2&s&&t.Y8G("diameter",50)}function xs(s,M){if(1&s){const o=t.RV6();
1t.j41(0,"app-page-controls",21),t.bIt("currentPageChange",function(g){t.eBV(o);const O=t.XpG(2);return t.Njj(O.changePage(g))}),t.k0s()}if(2&s){const o=t.XpG(2);t.Y8G("currentPage",o.currentPage)("maxPage",o.maxPage)}}function ys(s,M){1&s&&(t.j41(0,"th",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"authorAward")," "))}function Ga(s,M){if(1&s&&(t.j41(0,"div")(1,"a",25),t.EFF(2),t.k0s()()),2&s){const o=t.XpG().$implicit;t.R7$(),t.Y8G("href",o.browseUrl,t.B4B),t.R7$(),t.JRh(o.title)}}function Ms(s,M){if(1&s&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit;t.R7$(),t.JRh(o.title)}}function ja(s,M){if(1&s&&(t.j41(0,"td",23),t.DNE(1,Ga,3,2,"div",24)(2,Ms,2,1,"div",24),t.k0s()),2&s){const o=M.$implicit;t.R7$(),t.Y8G("ngIf",o.isHcr),t.R7$(),t.Y8G("ngIf",!o.isHcr)}}function kh(s,M){1&s&&(t.j41(0,"th",26),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.JRh(t.bMT(2,1,"authorAwardDate")))}function vs(s,M){if(1&s&&(t.j41(0,"td",23),t.EFF(1),t.k0s()),2&s){const o=M.$implicit;t.R7$(),t.SpI(" ",o.date," ")}}function Na(s,M){1&s&&(t.j41(0,"th",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"authorAwardCertificate")," "))}function Rh(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",28),t.bIt("click",function(){t.eBV(o);const g=t.XpG().$implicit,O=t.XpG(2);return t.Njj(O.downloadCertificate(g.id,g.title))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"download_tableHeader")," "))}function Ah(s,M){if(1&s&&(t.j41(0,"td",23),t.DNE(1,Rh,3,3,"button",27),t.nI1(2,"feature"),t.k0s()),2&s){const o=M.$implicit;t.R7$(),t.Y8G("ngIf",t.bMT(2,1,"PUB-8907-award-key-change")?o.downloadUrl:o.certificateUrl)}}function Sh(s,M){1&s&&t.nrm(0,"tr",29)}function Dh(s,M){1&s&&t.nrm(0,"tr",30)}function Eh(s,M){if(1&s&&(t.j41(0,"div",8),t.DNE(1,xs,1,2,"app-page-controls",9),t.j41(2,"div",10)(3,"table",11)(4,"caption",12),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.qex(7,13),t.DNE(8,ys,3,3,"th",14)(9,ja,3,2,"td",15),t.bVm(),t.qex(10,16),t.DNE(11,kh,3,3,"th",17)(12,vs,2,1,"td",15),t.bVm(),t.qex(13,18),t.DNE(14,Na,3,3,"th",14)(15,Ah,3,3,"td",15),t.bVm(),t.DNE(16,Sh,1,0,"tr",19)(17,Dh,1,0,"tr",20),t.k0s()()()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngIf",o.totalAwards>10),t.R7$(2),t.Y8G("dataSource",o.awardsDetails),t.R7$(2),t.JRh(t.bMT(6,5,"awardsTableCaption")),t.R7$(11),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns)}}let za=(()=>{class s extends Rt.${constructor(o,u,g,O,$){super($,O),this.store=o,this.profileSetService=u,this.windowRef=g,this.translate=O,this.change=$,this.displayedColumns=["title","date","certificate"],this.currentPage=1,this.isLoading=!1}ngOnInit(){this.loadAwards(this.currentPage)}loadAwards(o){this.isLoading=!0,this.store.dispatch(new Vn.hz({pageNum:o})),this.store.select(Y.zj,{pageNum:o}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.isLoading=!1,this.totalAwards=u.count,this.awardsDetails=u.results})}downloadCertificate(o,u){this.profileSetService.downloadPublonsAuthorAwards(o).subscribe(g=>{const O=new Blob([g],{type:"application/pdf"}),$=this.windowRef.nativeDocument.createElement("a");$.download=u+".pdf",$.href=this.windowRef.nativeWindow.URL.createObjectURL(O),$.click()})}changePage(o){this.currentPage=o,this.loadAwards(this.currentPage)}get maxPage(){try{return Math.ceil(this.totalAwards/10)}catch{return 1}}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(Cs.o),t.rXU(kn.W),t.rXU(ht.c$),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-awards-data"]],features:[t.Vt3],decls:17,vars:14,consts:[["mat-icon-button","","mat-dialog-close","","data-ta","close-award-modal",1,"dialog-close-btn",3,"aria-label"],["svgIcon","close"],["mat-dialog-title","",1,"modal-head"],["margin-top-20",""],["class","wat-spinner margin-top-20",3,"diameter",4,"ngIf"],["class","margin-top-20",4,"ngIf"],["id","awardCloseButton","mat-flat-button","","matDialogClose","","color","primary"],[1,"wat-spinner","margin-top-20",3,"diameter"],[1,"margin-top-20"],["class","publication-review-controls",3,"currentPage","maxPage","currentPageChange",4,"ngIf"],[1,"row-striped-table"],["mat-table","",3,"dataSource"],[1,"cdk-visually-hidden"],["matColumnDef","title"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","date-col","scope","col",4,"matHeaderCellDef"],["matColumnDef","certificate"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"publication-review-controls",3,"currentPageChange","currentPage","maxPage"],["mat-header-cell","","scope","col"],["mat-cell",""],[4,"ngIf"],["rel","noopener noreferrer","target","_blank",1,"no-underline-link",3,"href"],["mat-header-cell","","scope","col",1,"date-col"],["mat-button","","class","download-button",3,"click",4,"ngIf"],["mat-button","",1,"download-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(u,g){1&u&&(t.qex(0),t.j41(1,"mat-dialog-actions")(2,"button",0),t.nI1(3,"translate"),t.nrm(4,"mat-icon",1),t.k0s()(),t.j41(5,"h1",2),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",3),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.DNE(11,Bi,1,1,"mat-spinner",4)(12,Eh,18,7,"div",5),t.bVm(),t.j41(13,"mat-dialog-actions")(14,"button",6),t.EFF(15),t.nI1(16,"translate"),t.k0s()()),2&u&&(t.R7$(2),t.FS9("aria-label",t.bMT(3,6,"close")),t.R7$(4),t.JRh(t.bMT(7,8,"authorAwardsTitle")),t.R7$(3),t.JRh(t.bMT(10,10,"authorAwardsTitleDesc")),t.R7$(2),t.Y8G("ngIf",g.isLoading),t.R7$(),t.Y8G("ngIf",!g.isLoading),t.R7$(3),t.JRh(t.bMT(16,12,"close")))},dependencies:[Vt.tx,Vt.BI,Vt.E7,To.N,jt.Zl,jt.tL,jt.ji,jt.cC,jt.YV,jt.iL,jt.KS,jt.$R,jt.YZ,jt.NB,Ft.An,B.bT,Mt.$z,Mt.iY,Nt.LG,ht.D9,Z.h],styles:[".row-striped-table[_ngcontent-%COMP%]{max-height:24rem;overflow-y:auto}.row-striped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#e6e5e8}.row-striped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:10px;font-weight:600;line-height:25px!important}.row-striped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:1px 1px 1px 10px}.row-striped-table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:40px!important}.download-button[_ngcontent-%COMP%]{color:#5e33bf;cursor:pointer}.modal-head[_ngcontent-%COMP%]{text-align:left!important}.date-col[_ngcontent-%COMP%]{width:7rem}"]})}}return s})(),Ps=(()=>{class s{transform(o){const u=["a","an","the","for","and","nor","but","or","yet","so","at","around","by","after","along","for","from","of","on","to","with","without"],g=o.toLowerCase().split(" ");return g.map(($,J)=>0===J||J===g.length-1?this.capitalize($):u.includes($)?$:this.capitalize($)).join(" ")}capitalize(o){return o.charAt(0).toUpperCase()+o.slice(1)}static{this.\u0275fac=function(u){return new(u||s)}}static{this.\u0275pipe=t.EJ8({name:"watTitlecase",type:s,pure:!0})}}return s})();
1var Fh=E(36432),tn=E(96850),Ya=E(57030);const gi=["chips"],ws=["leftScrollButton"],Os=["rightScrollButton"],$h=s=>({"ra-data-chip":s});function Lh(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",8,1),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.move(-120))}),t.nrm(3,"mat-icon",9),t.k0s()}if(2&s){const o=t.XpG();t.Y8G("disabled",o.scrolledAllTheWayLeft),t.BMQ("aria-label",t.bMT(2,2,"keyboardLeftArrow"))}}function Gh(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",10),t.bIt("keyup.enter",function(){const g=t.eBV(o).$implicit,O=t.XpG();return t.Njj(O.isRATopics?O.clickEventForAuthTopic.emit(g):null)})("click",function(){const g=t.eBV(o).$implicit,O=t.XpG();return t.Njj(O.isRATopics?O.clickEventForAuthTopic.emit(g):null)}),t.j41(1,"span",11),t.EFF(2),t.k0s()()}if(2&s){const o=M.$implicit,u=t.XpG();t.Y8G("tabindex",u.isRATopics?0:-1)("ngClass",t.eq3(3,$h,u.isRATopics)),t.R7$(2),t.JRh(o)}}function Ba(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",12,2),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.move(120))}),t.nrm(3,"mat-icon",9),t.k0s()}if(2&s){const o=t.XpG();t.Y8G("disabled",o.scrolledAllTheWayRight),t.BMQ("aria-label",t.bMT(2,2,"keyboardRightArrow"))}}let Xa=(()=>{class s extends Rt.${constructor(o,u){super(o),this.w=u,this.scrollingCatsNeeded=!0,this.scrolledAllTheWayLeft=!0,this.scrolledAllTheWayRight=!1,this.scrolled=!1,this.clickEventForAuthTopic=new t.bkB,this.clickEventForAuthor=new t.bkB}ngOnChanges(o){o.topics&&JSON.stringify(o.topics.previousValue)!==JSON.stringify(o.topics.currentValue)&&setTimeout(()=>{this.resetScroll()})}resetScroll(){this.chipsEl?.nativeElement&&this.chipsEl.nativeElement.scrollTo({top:0,left:0,behavior:"auto"})}ngAfterViewInit(){const o=this.chipsEl?.nativeElement;o&&(this.observer=new this.w.nativeWindow.ResizeObserver(()=>{const u=o.scrollWidth>o.clientWidth;u!=this.scrollingCatsNeeded&&(this.scrollingCatsNeeded=u,this.change.detectChanges())}),this.observer.observe(o),o.addEventListener("scroll",()=>{this.scrolled||(this.clickEventForAuthor.emit("topics-scroll"),this.scrolled=!0);const u=o.scrollLeft<=0,g=Math.ceil(o.scrollLeft+o.clientWidth)>=o.scrollWidth;if(u!=this.scrolledAllTheWayLeft||g!=this.scrolledAllTheWayRight){if(this.scrolledAllTheWayLeft=u,this.scrolledAllTheWayRight=g,this.scrolledAllTheWayLeft||this.scrolledAllTheWayRight){const O=this.w.nativeDocument.activeElement;(this.leftScrollButtonEl?.nativeElement===O||this.rightScrollButtonEl?.nativeElement===O)&&this.chipsEl.nativeElement.focus()}this.change.detectChanges()}}))}move(o){this.chipsEl.nativeElement.scrollBy({top:0,left:o,behavior:"smooth"})}ngOnDestroy(){super.ngOnDestroy(),this.observer?.disconnect()}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(t.gRc),t.rXU(kn.W))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-generic-chip-data"]],viewQuery:function(u,g){if(1&u&&(t.GBs(gi,5),t.GBs(ws,5),t.GBs(Os,5)),2&u){let O;t.mGM(O=t.lsd())&&(g.chipsEl=O.first),t.mGM(O=t.lsd())&&(g.leftScrollButtonEl=O.first),t.mGM(O=t.lsd())&&(g.rightScrollButtonEl=O.first)}},inputs:{topics:"topics",isRATopics:"isRATopics"},outputs:{clickEventForAuthTopic:"clickEventForAuthTopic",clickEventForAuthor:"clickEventForAuthor"},features:[t.Vt3,t.OA$],decls:6,vars:4,consts:[["chips",""],["leftScrollButton",""],["rightScrollButton",""],[1,"contents"],["class","scrolling-arrow left","type","button",3,"disabled","click",4,"ngIf"],[1,"cat-chips-container",3,"tabindex"],["class","chip",3,"tabindex","ngClass","keyup.enter","click",4,"ngFor","ngForOf"],["class","scrolling-arrow right","type","button",3,"disabled","click",4,"ngIf"],["type","button",1,"scrolling-arrow","left",3,"click","disabled"],["svgIcon","arrowRightSharp"],[1,"chip",3,"keyup.enter","click","tabindex","ngClass"],[1,"chip-text"],["type","button",1,"scrolling-arrow","right",3,"click","disabled"]],template:function(u,g){1&u&&(t.j41(0,"div",3),t.DNE(1,Lh,4,4,"button",4),t.j41(2,"div",5,0),t.DNE(4,Gh,3,5,"div",6),t.k0s(),t.DNE(5,Ba,4,4,"button",7),t.k0s()),2&u&&(t.R7$(),t.Y8G("ngIf",g.scrollingCatsNeeded),t.R7$(),t.Y8G("tabindex",0),t.R7$(2),t.Y8G("ngForOf",g.topics),t.R7$(),t.Y8G("ngIf",g.scrollingCatsNeeded))},dependencies:[B.YU,B.Sq,B.bT,Ft.An,ht.D9],styles:[".scrolling-arrow[_ngcontent-%COMP%]{border:none;cursor:pointer;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;outline:none;background-color:#fff;position:absolute;height:2rem;display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .1s;z-index:1}.scrolling-arrow[_ngcontent-%COMP%]:disabled{opacity:0;pointer-events:none}.scrolling-arrow[_ngcontent-%COMP%]:focus-visible{outline:auto .125rem #00c2f2!important}.scrolling-arrow[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#4936ba}.scrolling-arrow.left[_ngcontent-%COMP%]{left:0;padding-right:.75rem;width:2.625rem}.scrolling-arrow.left[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}.scrolling-arrow.right[_ngcontent-%COMP%]{right:-.0625rem;width:2.6875rem;padding-left:.75rem}@media screen and (max-width: 64rem){.scrolling-arrow.right[_ngcontent-%COMP%]{z-index:1}}.chip[_ngcontent-%COMP%]{display:flex;align-items:center;border:none;border-radius:1rem;background-color:#f2f2f2;font-size:1rem;padding:.25rem .5rem;margin-right:.5rem;margin-left:0;cursor:text;width:fit-content;height:auto;text-align:center;white-space:nowrap}.chip[_ngcontent-%COMP%]   .chip-text[_ngcontent-%COMP%]{margin-right:0}.cat-chips-container[_ngcontent-%COMP%]{position:absolute;
1left:0;right:0;display:flex;outline:none;overflow-x:scroll;overscroll-behavior-x:contain;scrollbar-width:none}.cat-chips-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.cat-chips-container[_ngcontent-%COMP%]:focus-visible{outline:auto .125rem #00c2f2!important}.ra-data-chip[_ngcontent-%COMP%]:hover{cursor:pointer!important;text-decoration:underline!important}.contents[_ngcontent-%COMP%]{position:relative}"],changeDetection:0})}}return s})();const ko=["chipsContainer"],Ro=s=>({"scroll-bar":s});function jh(s,M){if(1&s&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s()()),2&s){const o=M.$implicit;t.R7$(2),t.JRh(o)}}function Is(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",7),t.DNE(2,jh,3,1,"div",8),t.k0s(),t.bVm()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngClass",t.eq3(3,Ro,o.displayData.length>o.displayDataLimit)),t.BMQ("tabindex",o.displayData.length>o.displayDataLimit?"0":""),t.R7$(),t.Y8G("ngForOf",o.displayData)}}function Ao(s,M){if(1&s&&t.nrm(0,"span"),2&s){const o=t.XpG(4);t.HbH(o.separatorSymbol)}}function Jn(s,M){if(1&s&&(t.j41(0,"span",12),t.EFF(1),t.DNE(2,Ao,1,3,"span",13),t.k0s()),2&s){const o=M.$implicit,u=M.last,g=t.XpG(3);t.R7$(),t.SpI(" ",o,""),t.R7$(),t.Y8G("ngIf",!u&&g.separatorSymbol)}}function Nh(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",14),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.toggleMore())}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",15),t.EFF(4,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,o.displayMore?"showLess":"showMore")," ")}}function qn(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",9)(2,"div",null,2),t.DNE(4,Jn,3,2,"span",10),t.k0s(),t.DNE(5,Nh,5,3,"button",11),t.k0s(),t.bVm()),2&s){const o=t.XpG(2);t.R7$(),t.AVh("expanded",o.displayMore),t.R7$(),t.ZvI("display-data-value ",o.displayLabel,"-chips"),t.AVh("single-line",!o.displayMore),t.R7$(2),t.Y8G("ngForOf",o.displayData),t.R7$(),t.Y8G("ngIf",o.showMoreButton)}}function zh(s,M){if(1&s&&t.nrm(0,"span"),2&s){const o=t.XpG(4);t.HbH(o.separatorSymbol)}}function fi(s,M){if(1&s&&(t.j41(0,"span",12),t.EFF(1),t.DNE(2,zh,1,3,"span",13),t.k0s()),2&s){const o=M.$implicit,u=M.last,g=t.XpG(3);t.R7$(),t.SpI(" ",o,""),t.R7$(),t.Y8G("ngIf",!u&&g.separatorSymbol)}}function Xi(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,fi,3,2,"span",10),t.nI1(2,"slice"),t.k0s()),2&s){const o=t.XpG(2);t.ZvI("display-data-value ",o.displayLabel,"-chips"),t.R7$(),t.Y8G("ngForOf",t.brH(2,4,o.displayData,0,o.displayDataLimit))}}function Yh(s,M){if(1&s&&t.DNE(0,qn,6,9,"ng-container",6)(1,Xi,3,8,"ng-template",null,1,t.C5r),2&s){const o=t.sdS(2),u=t.XpG();t.Y8G("ngIf",u.showMoreDataFlag)("ngIfElse",o)}}let Va=(()=>{class s{constructor(){this.showMoreDataFlag=!0,this.showMoreButton=!1,this.isRTL$=_t.Y.isRTL$}ngAfterViewInit(){setTimeout(()=>this.checkOverflow(),150)}onResize(){this.displayMore||this.checkOverflow()}checkOverflow(){if(!this.chipsContainer||this.scrollView||!this.showMoreDataFlag||this.displayData?.length<=1)return void(this.showMoreButton=!1);const o=this.chipsContainer.nativeElement;this.showMoreButton=o.scrollHeight>o.clientHeight+5}toggleMore(){this.displayMore=!this.displayMore}static{this.\u0275fac=function(u){return new(u||s)}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-display-data"]],viewQuery:function(u,g){if(1&u&&t.GBs(ko,5,t.aKT),2&u){let O;t.mGM(O=t.lsd())&&(g.chipsContainer=O.first)}},hostBindings:function(u,g){1&u&&t.bIt("resize",function(){return g.onResize()},!1,t.tSv)},inputs:{displayData:"displayData",displayLabel:"displayLabel",separatorSymbol:"separatorSymbol",displayDataLimit:"displayDataLimit",dataPendo:"dataPendo",showMoreDataFlag:"showMoreDataFlag",scrollView:"scrollView"},decls:9,vars:6,consts:[["scrollBarNotRequired",""],["noButtonView",""],["chipsContainer",""],[1,"author-detail-section"],[1,"author-detail-section-label"],[1,"author-detail-section-content"],[4,"ngIf","ngIfElse"],[3,"ngClass"],[4,"ngFor","ngForOf"],[1,"display-data-container"],["class","chip-span",4,"ngFor","ngForOf"],["class","display-data-button","data-test","show-more-data","mat-button","",3,"click",4,"ngIf"],[1,"chip-span"],[3,"class",4,"ngIf"],["data-test","show-more-data","mat-button","",1,"display-data-button",3,"click"],["iconPositionEnd","",1,"expand-icon"]],template:function(u,g){if(1&u&&(t.j41(0,"div",3)(1,"div",4)(2,"h2",4),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",5),t.DNE(6,Is,3,5,"ng-container",6)(7,Yh,3,2,"ng-template",null,0,t.C5r),t.k0s()()),2&u){const O=t.sdS(8);t.R7$(2),t.BMQ("data-pendo",g.dataPendo),t.R7$(),t.SpI(" ",t.bMT(4,4,g.displayLabel+((null==g.displayData?null:g.displayData.length)>1?"Plural":"Singular"))," "),t.R7$(3),t.Y8G("ngIf",g.scrollView)("ngIfElse",O)}},dependencies:[Ft.An,B.YU,B.Sq,B.bT,Mt.$z,B.P9,ht.D9],styles:[".author-detail-section[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:1rem}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-label[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;flex-basis:11.5rem;font-size:1rem;line-height:1.4375rem;margin-bottom:0;margin-right:.6875rem;font-weight:600}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-content[_ngcontent-%COMP%]{flex-grow:1}@media screen and (max-width: 30rem){.author-detail-section[_ngcontent-%COMP%]{flex-direction:column}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-label[_ngcontent-%COMP%]{flex-basis:unset;margin-bottom:.5625rem}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-content[_ngcontent-%COMP%]   .display-data-button[_ngcontent-%COMP%]{margin:0 .125rem}}.display-data-button[_ngcontent-%COMP%]{color:var(--sys-primary);cursor:pointer;padding:0;font-size:1rem;height:1.5625rem;margin:0 .1875rem .5rem;flex-shrink:0;white-space:nowrap}.display-data-button[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{font-size:1.375rem;margin:0 0 .1875rem .25rem!important}.display-data-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.3125rem;width:100%}.display-data-container[_ngcontent-%COMP%]   .display-data-value[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;flex:0 1 auto;max-width:calc(100% - 7.5rem)}.display-data-container[_ngcontent-%COMP%]   .display-data-value.single-line[_ngcontent-%COMP%]{max-height:2.5rem;overflow:hidden}.display-data-container[_ngcontent-%COMP%]   .display-data-value[_ngcontent-%COMP%]   .chip-span[_ngcontent-%COMP%]{margin-bottom:.1875rem;flex-shrink:0;white-space:nowrap}.display-data-container.expanded[_ngcontent-%COMP%]   .display-data-value[_ngcontent-%COMP%]{max-width:100%}.display-data-container.expanded[_ngcontent-%COMP%]   .display-data-button[_ngcontent-%COMP%]{margin-left:0}.wat-right-margin[_ngcontent-%COMP%]{margin-right:1.375rem!important}.scroll-bar[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.scroll-bar[_ngcontent-%COMP%]:focus-visible{padding:.125rem;outline:.125rem #00c2f2 auto}.AlternateNames-chips[_ngcontent-%COMP%]   .chip-span[_ngcontent-%COMP%], .PublishedName-chips[_ngcontent-%COMP%]   .chip-span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border:.0625rem solid #474747;border-radius:1rem;background-color:#fff;font-size:1rem;padding:.25rem .5rem;cursor:text;width:fit-content;height:auto;text-align:center;white-space:nowrap;flex-shrink:0}"]})}}return s})();const Wa=s=>({"wat-author-record-award-right-margin":s}),Bh=s=>({"wat-material-new-button":s}),Xh=s=>["/","author","record",s],Vh=()=>({view:"awards"});function Qn(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG(2);t.BMQ("data-ta",o.taPrefix+"ProfilesInfoTab"),t.R7$(),t.JRh(t.bMT(2,2,"profileInfo"))}}function Wh(s,M){1&s&&t.eu8(0)}function Uh(s,M){if(1&s&&t.DNE(0,Wh,1,0,"ng-container",12),2&s){t.XpG(2);const o=t.sdS(7);t.Y8G("ngTemplateOutlet",o)}}function Hh(s,M){if(1&s&&(t.j41(0,"span"),t.nrm(1,"mat-icon",13),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+"AuthorSummaryTab"),t.R7$(2),t.SpI(" ",t.bMT(3,2,"authorSummary"),"")}}function Sn(s,M){1&s&&t.eu8(0)}function Jh(s,M){if(1&s&&t.DNE(0,Sn,1,0,"ng-container",12),2&s){t.XpG(3);const o=t.sdS(5);t.Y8G("ngTemplateOutlet",o)}}function Ts(s,M){1&s&&(t.j41(0,"mat-tab"),t.DNE(1,Hh,4,4,"ng-template",10)(2,Jh,1,1,"ng-template",11),t.k0s())}function qh(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+"AwardsTab"),t.R7$(),t.Lme("",t.bMT(2,3,"authorAwards"),"(",null==o.authorAwards?null:o.authorAwards.length,")")}}function Qh(s,M){1&s&&t.eu8(0)}function So(s,M){if(1&s&&t.DNE(0,Qh,1,0,"ng-container",12),2&s){t.XpG(3);const o=t.sdS(9);t.Y8G("ngTemplateOutlet",o)}}function Zh(s,M){1&s&&(t.j41(0,"mat-tab"),t.DNE(1,qh,3,5,"ng-template",10)(2,So,1,1,"ng-template",11),t.k0s())}function Kh(s,M){if(1&s&&(t.j41(0,"div")(1,"mat-tab-group",9)(2,"mat-tab"),t.DNE(3,Qn,3,4,"ng-template",10)(4,Uh,1,1,"ng-template",11),t.k0s(),t.DNE(5,Ts,3,0,"mat-tab",7),t.nI1(6,"feature"),t.DNE(7,Zh,3,0,"mat-tab",7),t.k0s()()),2&s){const o=t.XpG();t.R7$(5),t.Y8G("ngIf",t.bMT(6,2,"WAT-10881-display-author-summary-on-claimed-profile-pages")&&(null==o.authorRecord?null:o.authorRecord.summary)&&o.showAuthorSummary),t.R7$(2),t.Y8G("ngIf",(null==o.authorAwards?null:o.authorAwards.length)>0)}}function ks(s,M){1&s&&t.eu8(0)}function td(s,M){if(1&s&&(t.qex(0),t.DNE(1,ks,1,0,"ng-container",12),t.bVm()),2&s){t.XpG(2);const o=t.sdS(5);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function _i(s,M){1&s&&t.eu8(0)}function Zn(s,M){if(1&s&&(t.qex(0),t.DNE(1,_i,1,0,"ng-container",12),t.bVm()),2&s){t.XpG(2);const o=t.sdS(3);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function ed(s,M){1&s&&t.eu8(0)}
1function nd(s,M){1&s&&t.eu8(0)}function id(s,M){if(1&s&&(t.qex(0),t.DNE(1,nd,1,0,"ng-container",12),t.bVm()),2&s){t.XpG(2);const o=t.sdS(9);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function od(s,M){if(1&s&&(t.j41(0,"div",14),t.DNE(1,td,2,1,"ng-container",7),t.nI1(2,"feature"),t.DNE(3,Zn,2,1,"ng-container",7),t.nI1(4,"feature"),t.DNE(5,ed,1,0,"ng-container",12)(6,id,2,1,"ng-container",7),t.k0s()),2&s){const o=t.XpG(),u=t.sdS(7);t.R7$(),t.Y8G("ngIf",t.bMT(2,4,"WAT-10881-display-author-summary-on-claimed-profile-pages")&&o.showAuthorSummary),t.R7$(2),t.Y8G("ngIf",!t.bMT(4,6,"WAT-11243-UI-updates")),t.R7$(2),t.Y8G("ngTemplateOutlet",u),t.R7$(),t.Y8G("ngIf",(null==o.authorRecord?null:o.authorRecord.claim_status)&&(null==o.authorAwards?null:o.authorAwards.length)>0)}}function ad(s,M){if(1&s&&(t.j41(0,"div",22)(1,"div",23)(2,"div",24),t.nrm(3,"mat-icon",25),t.k0s(),t.j41(4,"div",26)(5,"a",27),t.EFF(6),t.k0s()()()()),2&s){const o=t.XpG(3);t.R7$(5),t.Y8G("href",o.orcidUrl+(null==o.authorRecord?null:o.authorRecord.orcid),t.B4B),t.R7$(),t.SpI(" ",o.orcidUrl+(null==o.authorRecord?null:o.authorRecord.orcid)," ")}}function Do(s,M){if(1&s&&(t.j41(0,"div",16)(1,"h2",17),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",18),t.nrm(5,"mat-icon",19),t.j41(6,"span",20),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"span"),t.EFF(10),t.k0s(),t.DNE(11,ad,7,2,"div",21),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,4,"identifiers")," "),t.R7$(5),t.JRh(t.bMT(8,6,"WosRID")),t.R7$(3),t.JRh(null==o.authorRecord?null:o.authorRecord.rid),t.R7$(),t.Y8G("ngIf",(null==o.authorRecord?null:o.authorRecord.claim_status)&&(null==o.authorRecord?null:o.authorRecord.orcid))}}function Ua(s,M){if(1&s&&t.DNE(0,Do,12,8,"div",15),2&s){const o=t.XpG();t.Y8G("ngIf",null==o.authorRecord?null:o.authorRecord.rid)}}function rd(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",32),t.nrm(1,"mat-icon",13),t.j41(2,"span",33),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"mat-icon",34),t.nI1(6,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.onInfoClick())})("keydown.enter",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.onInfoClick())})("keydown.space",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.onInfoClick())}),t.k0s()()}if(2&s){const o=t.XpG(2);t.BMQ("data-ta",o.taPrefix+"AuthorSummary-Header"),t.R7$(3),t.JRh(t.bMT(4,3,"authorSummary")),t.R7$(2),t.FS9("matTooltip",t.bMT(6,5,"authorSummaryInfo"))}}function Eo(s,M){if(1&s&&(t.qex(0),t.nrm(1,"p",45),t.bVm()),2&s){const o=M.$implicit;t.R7$(),t.Y8G("innerHTML",o,t.npT)}}function Ha(s,M){if(1&s&&(t.qex(0),t.DNE(1,Eo,2,1,"ng-container",44),t.bVm()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("ngForOf",o.authorRecord.summary.split("\n"))}}function sd(s,M){if(1&s&&t.nrm(0,"p",45),2&s){const o=t.XpG(3);t.Y8G("innerHTML",o.authorRecord.summary.split("\n")[0],t.npT)}}function Rs(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",46),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.toggleSummary())}),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"mat-icon",47),t.EFF(5),t.k0s()()}if(2&s){const o=t.XpG(3);t.BMQ("aria-label",t.bMT(1,4,o.showFullSummary?"showLess":"showMore"))("data-ta",o.taPrefix+(o.showFullSummary?"AuthorSummary-showLess":"AuthorSummary-showMore")),t.R7$(2),t.SpI(" ",t.bMT(3,6,o.showFullSummary?"showLess":"showMore")," "),t.R7$(3),t.SpI(" ",o.showFullSummary?"expand_less":"expand_more"," ")}}function Vi(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",38),t.nI1(1,"translate"),t.j41(2,"button",48),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.handleAuthorSummaryFeedback("up"))}),t.nrm(4,"mat-icon",49),t.k0s(),t.j41(5,"button",48),t.nI1(6,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.handleAuthorSummaryFeedback("down"))}),t.nrm(7,"mat-icon",49),t.k0s()()}if(2&s){const o=t.XpG(3);t.BMQ("aria-label",t.bMT(1,13,"authorSummaryFeedbackGroup")),t.R7$(2),t.BMQ("aria-label",t.bMT(3,15,"thumbUpArialLabel"))("aria-pressed","up"===o.authorSummaryThumb)("data-ta",o.taPrefix+"AuthorSummary-FeedbackThumbsUp"),t.R7$(2),t.xc7("transform","up"===o.authorSummaryThumb?void 0:"rotate(180deg)"),t.Y8G("svgIcon","up"===o.authorSummaryThumb?"thumb-up-fill":"thumbDownHollow"),t.R7$(),t.BMQ("aria-label",t.bMT(6,17,"thumbDownArialLabel"))("aria-pressed","down"===o.authorSummaryThumb)("data-ta",o.taPrefix+"AuthorSummary-FeedbackThumbsDown"),t.R7$(2),t.xc7("transform","down"===o.authorSummaryThumb?"rotate(180deg)":void 0),t.Y8G("svgIcon","down"===o.authorSummaryThumb?"thumb-up-fill":"thumbDownHollow")}}function ld(s,M){if(1&s&&(t.j41(0,"span",39),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+"AuthorSummary-FeedbackSubmitted"),t.R7$(),t.SpI(" ",t.bMT(2,2,"feedbackSubmitted")," ")}}function Fo(s,M){if(1&s&&(t.j41(0,"button",40),t.nI1(1,"translate"),t.nrm(2,"mat-icon",50),t.k0s()),2&s){const o=t.XpG(3);t.Y8G("message",t.bMT(1,3,"textCopied"))("appClickToCopy",o.authorRecord.summary),t.BMQ("data-ta",o.taPrefix+"CopyAuthorSummary")}
1}function cd(s,M){if(1&s&&(t.j41(0,"a",43),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.Y8G("href","/wos/research-assistant",t.B4B),t.BMQ("data-ta",o.taPrefix+"AuthorSummary-ResearchAssistantLink"),t.R7$(),t.SpI(" ",t.bMT(2,3,"webOfScienceResearchAssistant")," ")}}function hd(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"a",51),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.JRh(t.bMT(2,4,"webOfScienceResearchAssistant")),t.R7$(2),t.Y8G("href",o.raInfoUrl,t.B4B),t.BMQ("data-ta",o.taPrefix+"AuthorSummary-ResearchAssistantLink"),t.R7$(),t.SpI(" ",t.bMT(5,6,"learnMore")," ")}}function en(s,M){if(1&s&&(t.qex(0),t.j41(1,"div"),t.DNE(2,Ha,2,1,"ng-container",30)(3,sd,1,1,"ng-template",null,5,t.C5r),t.k0s(),t.j41(5,"div",35)(6,"div",36),t.DNE(7,Rs,6,8,"button",37)(8,Vi,8,19,"div",38)(9,ld,3,4,"span",39)(10,Fo,3,5,"button",40),t.j41(11,"span",41),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"div",42)(15,"span"),t.EFF(16),t.nI1(17,"translate"),t.DNE(18,cd,3,5,"a",43)(19,hd,6,8),t.k0s()()(),t.bVm()),2&s){let o,u;const g=t.sdS(4),O=t.XpG(2);t.R7$(),t.AVh("clamped-summary",!O.showFullSummary),t.BMQ("data-ta",O.taPrefix+(O.showFullSummary?"AuthorSummary-ExpandedSummary":"AuthorSummary-CollapsedSummary")),t.R7$(),t.Y8G("ngIf",O.showFullSummary)("ngIfElse",g),t.R7$(3),t.BMQ("data-ta",O.taPrefix+"AuthorSummary-Footer"),t.R7$(),t.BMQ("data-ta",O.taPrefix+"AuthorSummary-FooterContent"),t.R7$(),t.Y8G("ngIf",null==(o=O.authorRecord.summary.split("\n"))?null:o.length),t.R7$(),t.vxM(O.feedbackSubmitted?9:8),t.R7$(2),t.vxM(null!=(u=O.authorRecord.summary.split("\n"))&&u.length?10:-1),t.R7$(2),t.SpI(" ",t.bMT(13,14,"generatedMarch2025")," "),t.R7$(2),t.BMQ("data-ta",O.taPrefix+"AuthorSummary-FooterNote"),t.R7$(2),t.SpI(" ",t.bMT(17,16,"authorSummaryWasGeneratedBy")," "),t.R7$(2),t.vxM(O.isRaEntitled?18:19)}}function bi(s,M){if(1&s&&(t.j41(0,"div",52),t.nrm(1,"img",53),t.nI1(2,"translate"),t.j41(3,"div",54),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"br"),t.j41(7,"a",55),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.BMQ("data-ta",o.taPrefix+"AuthorSummary-BlurredContainer"),t.R7$(),t.FS9("alt",t.bMT(2,8,"sampleAuthorSummary")),t.BMQ("data-ta",o.taPrefix+"AuthorSummary-BlurredImage"),t.R7$(3),t.SpI(" ",t.bMT(5,10,"thisPremiumFeature"),""),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.BMQ("data-ta",o.taPrefix+"AuthorSummary-LearnMoreLink"),t.R7$(),t.SpI(" ",t.bMT(9,12,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(11,14,"howToAccessWOS")," ")}}function dd(s,M){if(1&s&&(t.j41(0,"div",28),t.DNE(1,rd,7,7,"div",29)(2,en,20,18,"ng-container",30),t.nI1(3,"feature"),t.nI1(4,"async"),t.DNE(5,bi,12,16,"ng-template",null,4,t.C5r),t.nrm(7,"mat-divider",31),t.k0s()),2&s){const o=t.sdS(6),u=t.XpG();t.BMQ("data-ta",u.taPrefix+"AuthorSummary-Container"),t.R7$(),t.Y8G("ngIf",!u.claimedProfilesUpdatesToggle),t.R7$(),t.Y8G("ngIf",!t.bMT(3,4,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&(u.isRaEntitled||t.bMT(4,6,u.isWosCCEntitled$)))("ngIfElse",o)}}function As(s,M){if(1&s&&t.nrm(0,"app-display-data",59),2&s){const o=t.XpG(2);t.Y8G("displayData",o.getAlternateNamesData(o.authorRecord.alternateNames))("displayLabel","AlternateNames")("displayDataLimit",o.AUTHOR_RECORD_METADATA_LIMIT)("dataPendo","author-alternate-names")}}function pd(s,M){if(1&s&&t.nrm(0,"app-display-data",59),2&s){const o=t.XpG(2);t.Y8G("displayData",o.getAuthorsData(o.authorRecord.alternativeName))("displayLabel","PublishedName")("displayDataLimit",o.AUTHOR_RECORD_METADATA_LIMIT)("dataPendo","author-published-names")}}function Ja(s,M){if(1&s&&t.nrm(0,"app-display-data",61),2&s){const o=t.XpG(3);t.Y8G("displayData",o.getEnhancedOrganizationsData(o.authorRecord.enhanced_organizations))("displayLabel","organization")("displayDataLimit",o.AUTHOR_RECORD_DISPLAY_ORGANIZATIONS_LIMIT)("dataPendo","author-enhanced-Organizations-name")("scrollView",!0)}}function ud(s,M){if(1&s&&(t.qex(0),t.DNE(1,Ja,1,5,"app-display-data",60),t.bVm()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!1!==(null==o.profileData?null:o.profileData.showOrgName)&&(null==o.authorRecord||null==o.authorRecord.enhanced_organizations?null:o.authorRecord.enhanced_organizations.length)>0)}}function md(s,M){if(1&s&&t.nrm(0,"app-display-data",61),2&s){const o=t.XpG(3);t.Y8G("displayData",o.getAuthorsData(o.authorRecord.affiliations))("displayLabel","organization")("displayDataLimit",o.AUTHOR_RECORD_DISPLAY_ORGANIZATIONS_LIMIT)("dataPendo","author-Organizations-name")("scrollView",!0)}}function Ss(s,M){if(1&s&&t.DNE(0,md,1,5,"app-display-data",60),2&s){const o=t.XpG(2);t.Y8G("ngIf",!1!==(null==o.profileData?null:o.profileData.showOrgName)&&(null==o.authorRecord||null==o.authorRecord.affiliations?null:o.authorRecord.affiliations.length)>0)}}function gd(s,M){if(1&s&&t.nrm(0,"app-display-data",62),2&s){const o=t.XpG(2);t.Y8G("displayData",o.authorRecord.categories)("showMoreDataFlag",!1)("displayLabel","Subjectcategory")("separatorSymbol","semiColonMark")("displayDataLimit",o.AUTHOR_RECORD_DISPLAY_CATEGORIES_LIMIT)("dataPendo","data-
1pendo-subject-cat")}}function qa(s,M){if(1&s&&(t.j41(0,"div",63)(1,"h2",17),t.nrm(2,"mat-icon",64),t.j41(3,"span",65),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",66),t.nrm(7,"app-generic-chip-data",67),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(4),t.SpI(" ",t.bMT(5,2,(null==o.authorTopics?null:o.authorTopics.length)>1?"topicPlural":"topicSingular")," "),t.R7$(3),t.Y8G("topics",o.getTopicsData(o.authorTopics))}}function Re(s,M){if(1&s&&(t.DNE(0,As,1,4,"app-display-data",56),t.nI1(1,"feature"),t.DNE(2,pd,1,4,"app-display-data",56)(3,ud,2,1,"ng-container",30),t.nI1(4,"feature"),t.DNE(5,Ss,1,1,"ng-template",null,6,t.C5r)(7,gd,1,6,"app-display-data",57)(8,qa,8,4,"div",58),t.nI1(9,"feature"),t.nI1(10,"feature")),2&s){const o=t.sdS(6),u=t.XpG();t.Y8G("ngIf",t.bMT(1,6,"PUB-7438-nxEnableAlternateNamesAdditionOnProfilePage")&&(null==u.authorRecord||null==u.authorRecord.alternateNames?null:u.authorRecord.alternateNames.length)),t.R7$(2),t.Y8G("ngIf",!1!==(null==u.profileData?null:u.profileData.showAlias)&&(null==u.authorRecord||null==u.authorRecord.alternativeName?null:u.authorRecord.alternativeName.length)>0),t.R7$(),t.Y8G("ngIf",t.bMT(4,8,"PUB-8095-Fetch-org-data-from-elastic"))("ngIfElse",o),t.R7$(4),t.Y8G("ngIf",(null==u.authorRecord||null==u.authorRecord.categories?null:u.authorRecord.categories.length)>0),t.R7$(),t.Y8G("ngIf",t.bMT(9,10,"WAT-10266-AI-topics-in-profile-bio-card")&&!t.bMT(10,12,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&(null==u.authorTopics?null:u.authorTopics.length))}}function Bt(s,M){if(1&s&&(t.j41(0,"div",17)(1,"h2",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,1,o.authorAwards.length>1?"authorAwards":"authorAward"))}}function fd(s,M){1&s&&t.nrm(0,"mat-icon",79)}function Ds(s,M){if(1&s&&t.nrm(0,"img",80),2&s){const o=t.XpG(3);t.Y8G("src",o.publonsMedal,t.B4B)}}function Qa(s,M){if(1&s&&(t.j41(0,"div",81),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG().$implicit;t.R7$(),t.E5c(" ",t.bMT(2,3,"hcrAwards")," ",o.hcr_category," - ",o.hcr_year," ")}}function $o(s,M){if(1&s&&(t.j41(0,"div",82),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit;t.R7$(),t.Lme(" ",o.titleDisplay," - ",null==o.periodDisplay?null:o.periodDisplay.split(" ").pop()," ")}}function te(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",83),t.nI1(1,"async"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.toggleMoreAwards())}),t.j41(2,"span",84),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"mat-icon",47),t.EFF(6,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(3);t.Y8G("ngClass",t.eq3(6,Wa,t.bMT(1,2,o.isRTL$))),t.R7$(3),t.JRh(t.bMT(4,4,o.viewFewerAwards?"showLess":"showMore"))}}function Es(s,M){if(1&s&&(t.j41(0,"div",70)(1,"div",71),t.DNE(2,fd,1,0,"mat-icon",72)(3,Ds,1,1,"img",73),t.k0s(),t.j41(4,"div",74),t.DNE(5,Qa,3,5,"div",75)(6,$o,2,2,"div",76),t.k0s(),t.j41(7,"div",77),t.DNE(8,te,7,8,"button",78),t.k0s()()),2&s){const o=M.$implicit,u=M.last,g=t.XpG(2);t.R7$(2),t.Y8G("ngIf",o.hcr_category),t.R7$(),t.Y8G("ngIf",!o.hcr_category),t.R7$(2),t.Y8G("ngIf",o.hcr_category),t.R7$(),t.Y8G("ngIf",!o.hcr_category),t.R7$(2),t.Y8G("ngIf",!g.claimedProfilesUpdatesToggle&&g.authorAwards.length>g.AUTHOR_RECORD_DISPLAY_AWARD_LIMIT&&u)}}function _d(s,M){if(1&s&&(t.j41(0,"div")(1,"button",85),t.nI1(2,"async"),t.nI1(3,"translate"),t.j41(4,"mat-icon",86),t.EFF(5,"get_app"),t.k0s(),t.EFF(6),t.nI1(7,"async"),t.nI1(8,"translate"),t.nI1(9,"translate"),t.nI1(10,"titlecase"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(17,Bh,t.bMT(2,5,o.isMobile$)))("matTooltip",t.bMT(3,7,"downloadAwardTip"))("routerLink",t.eq3(19,Xh,null==o.authorRecord?null:o.authorRecord.authorId))("queryParams",t.lJ4(21,Vh)),t.R7$(5),t.SpI(" ",t.bMT(7,9,o.isMobile$)?t.bMT(8,11,"downloadAwards"):t.bMT(10,15,t.bMT(9,13,"download"))," ")}}function Fs(s,M){if(1&s&&(t.j41(0,"div",63),t.DNE(1,Bt,4,3,"div",68),t.j41(2,"div",18),t.DNE(3,Es,9,5,"div",69),t.nI1(4,"slice"),t.DNE(5,_d,11,22,"div",7),t.k0s()()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngIf",!o.claimedProfilesUpdatesToggle),t.R7$(2),t.Y8G("ngForOf",t.brH(4,3,o.authorAwards,0,o.claimedProfilesUpdatesToggle||o.viewFewerAwards?o.authorAwards.length:o.AUTHOR_RECORD_DISPLAY_AWARD_LIMIT)),t.R7$(2),t.Y8G("ngIf",o.isOwnProfile)}}let mt=(()=>{class s{constructor(o,u,g,O,$,J,st,gt){this.config=o,this.dialog=u,this.route=g,this.router=O,this.store=$,this.watTitlecasePipe=J,this.translate=st,this.analytics=gt,this.isMobile$=_t.Y.isMobile$,this.taPrefix="AuthorDetails-",this.viewFewerAwards=!1,this.AUTHOR_RECORD_METADATA_LIMIT=H.N.AUTHOR_RECORD_METADATA_LIMIT,this.AUTHOR_RECORD_DISPLAY_AWARD_LIMIT=H.N.AUTHOR_RECORD_DISPLAY_AWARD_LIMIT,this.AUTHOR_RECORD_DISPLAY_CATEGORIES_LIMIT=H.N.AUTHOR_RECORD_DISPLAY_CATEGORIES_LIMIT,this.AUTHOR_RECORD_DISPLAY_ORGANIZATIONS_LIMIT=H.N.AUTHOR_RECORD_DISPLAY_ORGANIZATIONS_LIMIT,this.isRTL$=_t.Y.isRTL$,this.publonsMedal="https://publons.com/static/images/icons/medal_publons.svg",this.topicDisplayMore=!1,this.isRaEntitled=_t.Y.
1isRaEntitled(this.store),this.showFullSummary=!1,this.authorSummaryThumb="",this.raInfoUrl="https://clarivate.com/academia-government/scientific-and-academic-research/research-discovery-and-referencing/web-of-science/web-of-science-research-assistant/",this.feedbackSubmitted=!1,this.userRID=null,this.destroyed$=new Ke.B,this.researcherIdUrl=o.getSettings().environment.researcherIdUrl,this.orcidUrl=this.config.getSettings().environment.orcidUrl}ngOnChanges(){this.store.select(at.mm).pipe((0,W.p)(o=>!!o),(0,Ct.s)(1)).subscribe(o=>this.user=o),this.store.select(Y.aJ).pipe((0,W.p)(o=>!!o),(0,Ct.s)(1)).subscribe(o=>this.userRID=o.researcherId||null),this.store.select(at.l1,{prop:"WAT-11229-wosri-topics-on-profiles"}).pipe((0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorTopics="on"===o?this.authorRecord?.researcherTopics:this.authorRecord?.topics}),this.store.select(at.l1,{prop:"WAT-11243-UI-updates"}).pipe((0,V.Q)(this.destroyed$)).subscribe(o=>{this.claimedProfilesUpdatesToggle="on"===o&&this.authorRecord?.claim_status}),this.getAuthorAward(),this.showFullSummary=!1,this.authorSummaryThumb="",this.checkIfFeedBackAlreadySubmitted(),this.showAuthorSummary=this.authorRecord?.claim_status&&this.authorRecord?.showAuthorSummary&&!!this.authorSummary?.length}ngAfterViewInit(){this.routeQueryParamsSub=this.route.queryParams.subscribe(o=>{o.view&&this.openAuthorAwardsModal()})}ngOnDestroy(){this.routeQueryParamsSub?.unsubscribe(),this.dailogAfterCloseSub?.unsubscribe(),this.destroyed$.next(!0),this.destroyed$.complete()}openAuthorAwardsModal(){this.dailogAfterCloseSub?.unsubscribe(),this.dailogAfterCloseSub=this.dialog.open(za,{disableClose:!0,autoFocus:!1,width:"45vw",maxHeight:"88vh",minHeight:"30vh"}).afterClosed().subscribe(()=>{this.router.navigate(["/","author","record",this.authorRecord.authorId])})}toggleMoreAwards(){this.viewFewerAwards=!this.viewFewerAwards}showMoreOrLess(){this.topicDisplayMore=!this.topicDisplayMore}getAuthorsData(o){return o.map(u=>u.value)}getEnhancedOrganizationsData(o){return o.map(u=>u.org_enhanced_name)}getTopicsData(o){return o.map(u=>this.watTitlecasePipe.transform(u.value))}getAlternateNamesData(o){return o.map(u=>u.fullName)}get isWosCCEntitled$(){return this.store.select(at.zg).pipe((0,Et.T)(o=>!!o.WOSCC))}get authorSummary(){return this.authorRecord?.summary?this.authorRecord.summary.split(/\n+/):[]}toggleSummary(){this.showFullSummary=!this.showFullSummary}handleAuthorSummaryFeedback(o){this.authorSummaryThumb!==o?(this.authorSummaryThumb=o,_t.Y.trackStructEventWithAddedContextData(this.analytics,{category:"author_summary_feedback",action:"thumb-upOrDown",context:{feedbackType:"up"===o?"positive":"negative",authorId:this.authorIds[0],userId:this.user?.TRUID||null}}),this.dialogRef=this.dialog.open(Fh.B,{width:"628px",ariaLabel:this.translate.instant("authorSummaryFeedback"),data:{feedbackResponse:o,profileOwnerRID:this.authorRecord?.rid,submittedByRID:this.userRID,source:"AuthorDetails-AuthorSummary",configName:"authorSummary"}}),this.dialogRef.afterClosed().pipe((0,Ct.s)(1)).subscribe(u=>{if(!u?.submitted)return;const g=JSON.parse(sessionStorage.getItem("authorSummaryFeedbackIdList"))||[];g.push(this.authorIds[0]),sessionStorage.setItem("authorSummaryFeedbackIdList",JSON.stringify(g)),this.feedbackSubmitted=!0})):this.authorSummaryThumb=""}checkIfFeedBackAlreadySubmitted(){const o=JSON.parse(sessionStorage.getItem("authorSummaryFeedbackIdList"))||[];this.feedbackSubmitted=!(!o.length||!o.includes(this.authorIds[0]))}getAuthorAward(){const g=[...this.authorRecord?.hcr||[],...this.metricsData?.publonsProfileData?.awards?.filter(O=>!O.isHcrAward)||[]];this.authorAwards=g}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Rn.w),t.rXU(Vt.bZ),t.rXU(pt.nX),t.rXU(pt.Ix),t.rXU(wt.il),t.rXU(Ps),t.rXU(ht.c$),t.rXU(Mo.cu))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-details"]],inputs:{authorIds:"authorIds",authorRecord:"authorRecord",metricsData:"metricsData",profileData:"profileData",isOwnProfile:"isOwnProfile"},features:[t.Jv_([Ps]),t.OA$],decls:10,vars:2,consts:[["authorDetailsRID",""],["authorSummary",""],["authorDetails",""],["awards",""],["hideAuthorSummary",""],["collapsedView",""],["showNormalOrganizations",""],[4,"ngIf"],["class","wat--data-column",4,"ngIf"],["animationDuration","0ms","selectedIndex","0","dynamicHeight","",1,"author-details-tab-group"],["matTabLabel",""],["matTabContent",""],[4,"ngTemplateOutlet"],["svgIcon","raLogo",1,"svg-icon-16","ra-logo"],[1,"wat--data-column"],["class","author-detail-section","data-test","rid",4,"ngIf"],["data-test","rid",1,"author-detail-section"],[1,"author-detail-section-label"],[1,"author-detail-section-content"],["role","img","aria-hidden","true","svgIcon","Rid_lens",1,"wat-rid-clvt-icon","margin-right-5--reversible"],[1,"colonMark"],["class","wat-author-record-orcid margin-top-5",4,"ngIf"],[1,"wat-author-record-orcid","margin-top-5"],[1,"flex-box"],[1,"rid-icon-section"],["svgIcon","orcidIcon","data-test","orcid-icon","aria-hidden","true",1,"wat-other-identifiers-orcid"],[1,"rid-link-section"],["target","_blank","rel","noopener noreferrer",1,"wat-other-identifiers-orcid-link",3,"href"],[1,"author-summary-container"],["class","author-summary-header",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"custom-mat-divider"],[1,"author-summary-header"],[1,"author-summary-label"],["svgIcon","info-circle","tabindex","0","role","button","aria-label","Author Summary info","aria-hidden","false",1,"info-icon",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"author-summary-footer","width-100-pct"],[1,"author-summary-footer-content"],["mat-button","","class","summary-toggle-button",3,"click",4,"ngIf"],["role","group",1,"author-summary-feedback"],[1,"feedback-submitted"],["mat-button","","id","CopyAuthorSummary","aria-label","CopyAuthorSummary",1,"image-only-button",3,"message","appClickToCopy"],[1,"generated-date","font-size-14"],[1,"author-summary-footer-note"],["target","_blank","rel","noopener noreferrer",1,"wos-standard-link-underlined",3,"href"],[4,"ngFor","ngForOf"],[3,"innerHTML"],["mat-button","",1,"summary-toggle-button",3,"click"],["iconPositionEnd","",1,"expand-icon"],["mat-button","","type","button",1,"image-only-button",3,"click"],[1,"thumb
1-icon",3,"svgIcon"],["svgIcon","copy_text",1,"copy-author-summary-icon"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"fv-author-summary"],["src","/wos/static/images/author-summary-blurred.png",1,"blurred-summary",3,"alt"],[1,"overlay-message"],["target","_blank","rel","noopener noreferrer",3,"wosHelp"],[3,"displayData","displayLabel","displayDataLimit","dataPendo",4,"ngIf"],[3,"displayData","showMoreDataFlag","displayLabel","separatorSymbol","displayDataLimit","dataPendo",4,"ngIf"],["class","author-detail-section",4,"ngIf"],[3,"displayData","displayLabel","displayDataLimit","dataPendo"],[3,"displayData","displayLabel","displayDataLimit","dataPendo","scrollView",4,"ngIf"],[3,"displayData","displayLabel","displayDataLimit","dataPendo","scrollView"],[3,"displayData","showMoreDataFlag","displayLabel","separatorSymbol","displayDataLimit","dataPendo"],[1,"author-detail-section"],["svgIcon","raLogo",1,"svg-icon-15","margin-bottom-3","ra-logo"],[1,"topic-label"],[1,"topic-contents"],[3,"topics"],["class","author-detail-section-label",4,"ngIf"],["class","award-item",4,"ngFor","ngForOf"],[1,"award-item"],[1,"award-icon-section"],["role","img","aria-hidden","true","svgIcon","trophy","class","orange wat-publon-trophy",4,"ngIf"],["class","wat-publons-badge","aria-hidden","true","alt","",3,"src",4,"ngIf"],[1,"award-name-section"],["class","wat-author-record-hcr-award",4,"ngIf"],["class","wat-author-record-badges-award",4,"ngIf"],[1,"award-action-section"],["mat-button","","class","show-publications-button",3,"ngClass","click",4,"ngIf"],["role","img","aria-hidden","true","svgIcon","trophy",1,"orange","wat-publon-trophy"],["aria-hidden","true","alt","",1,"wat-publons-badge",3,"src"],[1,"wat-author-record-hcr-award"],[1,"wat-author-record-badges-award"],["mat-button","",1,"show-publications-button",3,"click","ngClass"],[1,"wat-recent-publications-text"],["mat-stroked-button","","type","button","id","download-awards","data-ta","download-awards",1,"award-download-button",3,"ngClass","matTooltip","routerLink","queryParams"],["role","img",1,"cdx-mat-icon-16"]],template:function(u,g){1&u&&t.DNE(0,Kh,8,4,"div",7)(1,od,7,8,"div",8)(2,Ua,1,1,"ng-template",null,0,t.C5r)(4,dd,8,8,"ng-template",null,1,t.C5r)(6,Re,11,14,"ng-template",null,2,t.C5r)(8,Fs,6,7,"ng-template",null,3,t.C5r),2&u&&(t.Y8G("ngIf",g.claimedProfilesUpdatesToggle),t.R7$(),t.Y8G("ngIf",!g.claimedProfilesUpdatesToggle))},dependencies:[Kt.q,Ce.oV,pt.Wk,On.E,Ft.An,B.YU,B.Sq,B.bT,B.T3,Mt.$z,tn.$L,tn.ES,tn.mq,tn.T8,Ya.K,Xa,Va,B.Jj,B.P9,B.PV,ht.D9,Z.h],styles:[".wat-author-published-name[_ngcontent-%COMP%]{font-weight:600}.wat-author-record__metrics-item-spaced[_ngcontent-%COMP%]{display:inline-block;margin:0 1.375rem 0 0}.wat--data-column[_ngcontent-%COMP%]{width:inherit;height:auto;overflow:hidden}.wat-author-record-alternative-names[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-left:4.75rem}.wat-author-record__metrics-item-margin-left[_ngcontent-%COMP%]{margin-left:1.25rem;margin-top:-1.125rem}.wat-organization-show-more-less-span[_ngcontent-%COMP%]{padding-left:.75rem}.wat-left-margin-show-less[_ngcontent-%COMP%]{margin-left:12.8125rem}.wat-alternative-names-div[_ngcontent-%COMP%]{margin-left:12.8125rem!important;margin-top:-1.25rem!important}.wat-alternative-names-right-margin[_ngcontent-%COMP%]{margin-right:1.375rem!important}#getRID[_ngcontent-%COMP%]{color:#fff;-webkit-text-decoration:underline white;text-decoration:underline white}#getRID[_ngcontent-%COMP%]:hover{color:#564695;-webkit-text-decoration:underline #564695;text-decoration:underline #564695}.rid-text[_ngcontent-%COMP%]{margin-left:.5rem}.rid-info-container[_ngcontent-%COMP%]{margin-left:.625rem}.show-publications-button[_ngcontent-%COMP%]{color:var(--sys-primary);cursor:pointer;padding:0;font-size:1rem;height:1.5625rem;line-height:1.125rem;margin-left:1.875rem;text-underline-offset:.1875rem}.show-publications-button[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{font-size:1.375rem;margin:0 0 .1875rem .25rem!important}.show-names-button[_ngcontent-%COMP%]{color:var(--sys-primary);text-decoration:underline;cursor:pointer;padding:0;font-size:1rem;line-height:1.125rem}.show-names-button[_ngcontent-%COMP%]:hover{color:#4125af;outline:.125rem solid #b49de2;padding:0}.show-names-button[_ngcontent-%COMP%]:focus{color:#4125af;outline:.125rem solid #b49de2;padding:0}.wat-other-identifiers-orcid[_ngcontent-%COMP%]{height:1rem!important;width:1rem!important;position:relative;right:-.125rem;margin-top:.125rem}.wat-other-identifiers-orcid[_ngcontent-%COMP%]:lang(ar-sa){right:.125rem}.wat-pub-name-margin[_ngcontent-%COMP%]{margin-right:12.8125rem}.wat-publon-trophy[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important;vertical-align:text-bottom}.wat-publons-badge[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;position:relative;right:.1875rem}.wat-publons-badge[_ngcontent-%COMP%]:lang(ar-sa){right:-.1875rem}.award-item[_ngcontent-%COMP%]{margin-bottom:.3125rem;display:flex;justify-content:flex-start}.award-icon-section[_ngcontent-%COMP%], .rid-icon-section[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;flex-basis:1.5rem}.flex-box[_ngcontent-%COMP%]{display:flex}.wat-author-record-award-right-margin[_ngcontent-%COMP%]{margin-right:1.875rem!important}.wat-author-record-orcid[_ngcontent-%COMP%]{align-items:center}.author-detail-section[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:1rem}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-label[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;flex-basis:11.5rem;font-size:1rem;line-height:1.4375rem;margin-bottom:0;margin-right:.6875rem;font-weight:600}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-label[_ngcontent-%COMP%]   .info-icon-2[_ngcontent-%COMP%]{height:1.125rem;padding:0 .3125rem;position:relative;top:.3125rem}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-label[_ngcontent-%COMP%]   .to
1pic-label[_ngcontent-%COMP%]{margin-left:-.3125rem}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-content[_ngcontent-%COMP%]{flex-grow:1}.author-detail-section[_ngcontent-%COMP%]   .topic-contents[_ngcontent-%COMP%]{width:100%;margin-bottom:1.875rem}@media screen and (max-width: 30rem){.author-detail-section[_ngcontent-%COMP%]{flex-direction:column}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-label[_ngcontent-%COMP%]{flex-basis:unset;margin-bottom:.5625rem}.author-detail-section[_ngcontent-%COMP%]   .author-detail-section-content[_ngcontent-%COMP%]{margin:0;width:100%}.author-detail-section[_ngcontent-%COMP%]   .award-item[_ngcontent-%COMP%]{flex-wrap:wrap;gap:.625rem}.author-detail-section[_ngcontent-%COMP%]   .award-icon-section[_ngcontent-%COMP%]{width:10%}.author-detail-section[_ngcontent-%COMP%]   .award-name-section[_ngcontent-%COMP%]{width:85%}.author-detail-section[_ngcontent-%COMP%]   .award-action-section[_ngcontent-%COMP%]{width:100%}.author-detail-section[_ngcontent-%COMP%]   .award-download-button[_ngcontent-%COMP%]{margin-top:1rem;width:100%}}.alternative-name-section[_ngcontent-%COMP%]{margin-top:1.5rem}.wat-author-record-organization-items[_ngcontent-%COMP%]{margin-bottom:.625rem}.wat-rid-clvt-icon[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important;vertical-align:text-bottom;margin-right:.3125rem}.rid-info-container-ar[_ngcontent-%COMP%]{margin-right:.625rem}.award-download-button[_ngcontent-%COMP%]{cursor:pointer;transition:color .2s;font-size:1rem;height:2.5rem;color:#304ffe}.author-summary-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.author-summary-container[_ngcontent-%COMP%]   .author-summary-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.5rem;overflow:visible}.author-summary-container[_ngcontent-%COMP%]   .author-summary-label[_ngcontent-%COMP%]{font-size:1rem;font-weight:600}.author-summary-container[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]{height:1.125rem;margin-left:0}.author-summary-container[_ngcontent-%COMP%]   .clamped-summary[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.author-summary-container[_ngcontent-%COMP%]   .summary-toggle-button[_ngcontent-%COMP%]{color:#5e33bf!important;padding:0;font-size:1rem;height:1.5rem;cursor:pointer}.author-summary-container[_ngcontent-%COMP%]   .summary-toggle-button[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{font-size:1.375rem;margin:0 0 .1875rem .25rem!important}.author-summary-container[_ngcontent-%COMP%]   .fv-author-summary[_ngcontent-%COMP%]{position:relative}.author-summary-container[_ngcontent-%COMP%]   .fv-author-summary[_ngcontent-%COMP%]   .blurred-summary[_ngcontent-%COMP%]{width:100%}.author-summary-container[_ngcontent-%COMP%]   .fv-author-summary[_ngcontent-%COMP%]   .overlay-message[_ngcontent-%COMP%]{border-color:#000;border-width:.0625rem;border-style:solid;background-color:#fff;position:absolute;top:0;left:35%;width:12.5rem;padding:.5rem}.author-summary-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column}.author-summary-footer[_ngcontent-%COMP%]   .author-summary-footer-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.author-summary-footer[_ngcontent-%COMP%]   .author-summary-footer-content[_ngcontent-%COMP%]   .author-summary-feedback[_ngcontent-%COMP%]{white-space:nowrap;margin-left:1.0625rem}.author-summary-footer[_ngcontent-%COMP%]   .author-summary-footer-content[_ngcontent-%COMP%]   .author-summary-feedback[_ngcontent-%COMP%]   .thumb-icon[_ngcontent-%COMP%]{color:#6a6a6a;width:1.25rem}.author-summary-footer[_ngcontent-%COMP%]   .author-summary-footer-content[_ngcontent-%COMP%]   .generated-date[_ngcontent-%COMP%]{margin-left:auto;color:#616161}.author-summary-footer[_ngcontent-%COMP%]   .author-summary-footer-note[_ngcontent-%COMP%]{display:flex;padding-top:.625rem}.author-summary-footer[_ngcontent-%COMP%]   .author-summary-footer-note[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#095b8b}.author-summary-footer[_ngcontent-%COMP%]   .feedback-submitted[_ngcontent-%COMP%]{padding-left:.625rem}.copy-author-summary-icon[_ngcontent-%COMP%]{width:100%;height:100%;font-size:100%}"]})}}return s})();const $s=["editProfileSettingsTemplate"],Lo=s=>({"top.px":s}),bd=s=>({authorRecordCount:s}),Go=s=>({"margin-bottom-24":s}),vt=s=>({"margin-left":s}),Wi=s=>({excellentReviewsCount:s}),Cd=s=>({hyphenMark:s}),xd=s=>({"wat-material-new-button":s});function yd(s,M){if(1&s&&(t.j41(0,"div",11),t.nrm(1,"mat-spinner",12),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG();t.Y8G("ngStyle",t.eq3(4,Lo,o.heightOfNavOnScreen)),t.R7$(),t.BMQ("aria-label",t.bMT(2,2,"loading"))}}function Ls(s,M){if(1&s&&(t.j41(0,"div",13),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,"combinedRecordsText",t.eq3(4,bd,o.authorRecordIds.length))," ")}}function Ig(s,M){if(1&s&&t.nrm(0,"img",27),2&s){const o=t.XpG(3);t.FS9("alt",(null==o.authorRecord?null:o.authorRecord.author_name)||(null==o.authorRecord?null:o.authorRecord.authorAliasName)),t.Y8G("src",o.profileData.photoUrl,t.B4B)}}function Ui(s,M){if(1&s&&(t.j41(0,"div",28),t.EFF(1),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.SpI(" ",o.getInitials(null==o.preferredName?null:o.preferredName.split(" "))," ")}}function Md(s,M){if(1&s&&(t.j41(0,"div",24),t.DNE(1,Ig,1,2,"img",25)(2,Ui,2,1,"div",26),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==o.profileData?null:o.profileData.photoUrl),t.R7$(),t.Y8G("ngIf",!(null!=o.profileData&&o.profileData.photoUrl))}}function vd(s,M){if(1&s&&(t.qex(0),t.EFF(1),t.bVm()),2&s){const o=t.XpG(4);t.R7$(),t.JRh(o.authorRecord.primaryName.firstName)}}function Pd(s,M){if(1&s&&(t.qex(0),t.EFF(1),t.bVm()),2&s){const o=t.XpG(4);t.R7$(),t.SpI(" ",o.authorRecord.primaryName.middleName,"")}}function jo(s,M){if(1&s&&(t.qex(0),t.EFF(1),t.bVm()),2&s){const o=t.XpG(4);t.R7$(),t.SpI(" ",o.authorRecord.primaryName.lastName,"")}}function wd(s,M){if(1&s&&(t.qex(0),t.DNE(1,vd,2,1,"ng-container",19)(2,Pd,2,1,"ng-container",19)(3,jo,2,1,"ng-container",19),t.bVm()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.authorRecord.primaryName.firstName),t.R7$(),t.Y8G("ngIf",o.authorRecord.primaryName.middleName),t.R7$(),t.Y8G("ngIf",o.authorRecord.primaryName.lastName)}}function Gs(s,M){if(1&s&&t.EFF(0),2&s){const o=t.XpG(3);t.JRh(o.authorRecord.primaryName.fullName||"")}}function Od(s,M){if(1&s&&(t.j41(0,"span",29),t.DNE(1,wd,4,3,"ng-container",30)(2,Gs,1,1,"ng-template",null,3,t.C5r),t.k0s()),2&s){const o=t.sdS(3),u=t.XpG(2);t.R7$(),t.Y8G("ngIf",u.authorRecord.primaryName.firstName||u.authorRecord.primaryName.middleName||u.authorRecord.primaryName.lastName)("ngIfElse",o)}}function Id(s,M){if(1&s&&t.EFF(0),2&s){const o=t.XpG(2);t.SpI(" ",o.preferredName," ")}}function Td(s,M){1&s&&t.nrm(0,"mat-icon",32)}function kd(s,M){if(1&s&&(t.j41(0,"span"),t.DNE(1,Td,1,0,"mat-icon",31),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==o.authorRecord?null:o.authorRecord.claim_status)}}function Rd(s,M){1&s&&(t.j41(0,"em",34),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"mat-icon",35),t.nI1(4,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"UnclaimedText")," "),t.R7$(2),t.FS9("matTooltip",t.bMT(4,4,"UnclaimedTooltipMsg")))}function js(s,M){if(1&s&&(t.j41(0,"span"),t.DNE(1,Rd,5,6,"em",33),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!(null!=o.authorRecord&&o.authorRecord.claim_status))}}function Ad(s,M){1&s&&t.nrm(0,"mat-icon",43)}function Sd(s,M){1&s&&(t.j41(0,"p",44),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"highlyCitedResearcherIconText")," "))}function Ns(s,M){if(1&s&&t.nrm(0,"img",45),2&s){const o=t.XpG(3);t.Y8G("src",o.publonsMedal,t.B4B)}}function zs(s,M){1&s&&(t.j41(0,"p",46),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"topPeerReviewerAwd")," "))}function nn(s,M){1&s&&(t.j41(0,"p",44),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"academyMentor")," "))}function Dd(s,M){1&s&&(t.j41(0,"p",44),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"academyGraduate")," "))}function Ed(s,M){1&s&&(t.j41(0,"p",44),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"academyGraduateAndMentor")," "))}function Fd(s,M){if(1&s&&(t.j41(0,"a",47),t.nrm(1,"mat-icon",48),t.DNE(2,nn,3,3,"p",39)(3,Dd,3,3,"p",39)(4,Ed,3,3,"p",39),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("ngStyle",t.eq3(4,vt,o.isHcrFlag||o.isBadgeFlag?"10px":"0")),t.R7$(),t.Y8G("ngIf",o.isAcademySupervisor&&!o.isAcademyGraduate),t.R7$(),t.Y8G("ngIf",!o.isAcademySupervisor&&o.isAcademyGraduate),t.R7$(),t.Y8G("ngIf",o.isAcademySupervisor&&o.isAcademyGraduate)}}function Ys(s,M){if(1&s&&(t.j41(0,"p",51),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s){const o=t.XpG(4);
1t.FS9("matTooltip",t.i5U(1,3,"excellentReview",t.eq3(8,Wi,null==o.authorRecord||null==o.authorRecord.excellentReviews?null:o.authorRecord.excellentReviews.excellentReviewsCount))),t.R7$(2),t.Lme(" ",t.bMT(3,6,"watExcellentReviewer")," (",null==o.authorRecord?null:o.authorRecord.excellentReviews.excellentReviewsCount,") ")}}function $d(s,M){if(1&s&&(t.j41(0,"p",51),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s){const o=t.XpG(4);t.FS9("matTooltip",t.i5U(1,3,"excellentReviews",t.eq3(8,Wi,null==o.authorRecord||null==o.authorRecord.excellentReviews?null:o.authorRecord.excellentReviews.excellentReviewsCount))),t.R7$(2),t.Lme(" ",t.bMT(3,6,"watExcellentReviewer")," (",null==o.authorRecord?null:o.authorRecord.excellentReviews.excellentReviewsCount,") ")}}function Ld(s,M){if(1&s&&(t.j41(0,"span"),t.nrm(1,"mat-icon",49),t.DNE(2,Ys,4,10,"p",50)(3,$d,4,10,"p",50),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("ngStyle",t.eq3(3,vt,o.isHcrFlag||o.isBadgeFlag?"10px":"0")),t.R7$(),t.Y8G("ngIf",1===(null==o.authorRecord||null==o.authorRecord.excellentReviews?null:o.authorRecord.excellentReviews.excellentReviewsCount)),t.R7$(),t.Y8G("ngIf",(null==o.authorRecord||null==o.authorRecord.excellentReviews?null:o.authorRecord.excellentReviews.excellentReviewsCount)>1)}}function No(s,M){if(1&s&&(t.j41(0,"div",36)(1,"div",37),t.DNE(2,Ad,1,0,"mat-icon",38)(3,Sd,3,3,"p",39),t.k0s(),t.j41(4,"div",37),t.DNE(5,Ns,1,1,"img",40)(6,zs,3,3,"p",41),t.k0s(),t.j41(7,"div",37),t.DNE(8,Fd,5,6,"a",42),t.k0s(),t.j41(9,"div",37),t.DNE(10,Ld,4,5,"span",19),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.Y8G("ngIf",o.isHcrFlag),t.R7$(),t.Y8G("ngIf",o.isHcrFlag),t.R7$(2),t.Y8G("ngIf",o.isBadgeFlag),t.R7$(),t.Y8G("ngIf",o.isBadgeFlag),t.R7$(2),t.Y8G("ngIf",o.isAcademySupervisor||o.isAcademyGraduate),t.R7$(2),t.Y8G("ngIf",o.isExcellentReviewer)}}function Gd(s,M){if(1&s&&(t.j41(0,"span",56),t.EFF(1),t.k0s()),2&s){const o=t.XpG(3);t.BMQ("id",null==o.authorRecord?null:o.authorRecord.primaryAffiliationPGUID),t.R7$(),t.JRh(null==o.authorRecord?null:o.authorRecord.primaryAffiliation)}}function Bs(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.JRh(null==o.profileData?null:o.profileData.primaryOrganization)}}function jd(s,M){if(1&s&&t.DNE(0,Bs,2,1,"span",19),2&s){const o=t.XpG(3);t.Y8G("ngIf",null==o.profileData?null:o.profileData.primaryOrganization)}}function Nd(s,M){1&s&&(t.j41(0,"span")(1,"mat-icon",57),t.EFF(2,"person"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&s&&(t.R7$(3),t.JRh(t.bMT(4,1,"claimedProfile")))}function Xs(s,M){if(1&s&&(t.j41(0,"span",64),t.EFF(1),t.k0s()),2&s){const o=t.XpG(5);t.R7$(),t.JRh(null==o.authorRecord?null:o.authorRecord.primaryAffiliationLocation)}}function zd(s,M){if(1&s&&(t.j41(0,"span",62)(1,"span",29),t.EFF(2),t.k0s(),t.DNE(3,Xs,2,1,"span",63),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.BMQ("id",null==o.authorRecord?null:o.authorRecord.primaryAffiliationPGUID),t.R7$(),t.JRh(null==o.authorRecord?null:o.authorRecord.primaryAffiliation),t.R7$(),t.Y8G("ngIf",null==o.authorRecord?null:o.authorRecord.primaryAffiliationLocation)}}function Yd(s,M){if(1&s&&(t.qex(0),t.j41(1,"span",65),t.EFF(2),t.k0s(),t.bVm()),2&s){const o=t.XpG(4);t.R7$(),t.Y8G("ngClass",t.eq3(2,Cd,null==o.authorRecord?null:o.authorRecord.primaryAffiliation)),t.R7$(),t.JRh(null==o.authorRecord?null:o.authorRecord.primaryAffiliationDepartment[0])}}function Bd(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",58),t.nrm(2,"app-author-record-identity",59),t.k0s(),t.j41(3,"div",60),t.DNE(4,zd,4,3,"span",61),t.k0s(),t.DNE(5,Yd,3,4,"ng-container",19),t.nI1(6,"feature"),t.bVm()),2&s){const o=t.XpG(3);t.R7$(2),t.Y8G("authorIds",o.authorRecordIds)("showClaimProfileLink",!0)("showRACTA",!1),t.R7$(2),t.Y8G("ngIf",null==o.authorRecord?null:o.authorRecord.primaryAffiliation),t.R7$(),t.Y8G("ngIf",t.bMT(6,5,"nxPresentationControl_Show_Premium_Feature")&&(null==o.authorRecord||null==o.authorRecord.primaryAffiliationDepartment?null:o.authorRecord.primaryAffiliationDepartment.length))}}function Ci(s,M){if(1&s&&(t.j41(0,"div",66),t.nrm(1,"mat-icon",67),t.j41(2,"span",68),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()()),2&s){const o=t.XpG(3);t.R7$(3),t.JRh(t.bMT(4,2,"WosRID")),t.R7$(3),t.JRh(null==o.authorRecord?null:o.authorRecord.rid)}}function Vs(s,M){if(1&s&&(t.j41(0,"div"),t.nrm(1,"mat-icon",69),t.j41(2,"span",70),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"a",71),t.EFF(6),t.k0s()()),2&s){const o=t.XpG(3);t.R7$(3),t.JRh(t.bMT(4,3,"otherIdentifiersOrcid")),t.R7$(2),t.Y8G("href",o.orcidUrl+(null==o.authorRecord?null:o.authorRecord.orcid),t.B4B),t.R7$(),t.SpI(" ",o.orcidUrl+(null==o.authorRecord?null:o.authorRecord.orcid)," ")}}function Xd(s,M){if(1&s&&(t.j41(0,"div",52)(1,"div",53),t.DNE(2,Gd,2,2,"span",54),t.nI1(3,"feature"),t.DNE(4,jd,1,1,"ng-template",null,4,t.C5r)(6,Nd,5,3,"
1span",19)(7,Bd,7,7,"ng-container",19),t.k0s(),t.DNE(8,Ci,7,4,"div",55)(9,Vs,7,5,"div",19),t.k0s()),2&s){const o=t.sdS(5),u=t.XpG(2);t.R7$(2),t.Y8G("ngIf",t.bMT(3,6,"nxEnableDisplayRIData")&&(null==u.authorRecord?null:u.authorRecord.primaryAffiliation)&&(null==u.authorRecord?null:u.authorRecord.claim_status))("ngIfElse",o),t.R7$(4),t.Y8G("ngIf",null==u.authorRecord?null:u.authorRecord.claim_status),t.R7$(),t.Y8G("ngIf",!(null!=u.authorRecord&&u.authorRecord.claim_status)),t.R7$(),t.Y8G("ngIf",null==u.authorRecord?null:u.authorRecord.rid),t.R7$(),t.Y8G("ngIf",(null==u.authorRecord?null:u.authorRecord.claim_status)&&(null==u.authorRecord?null:u.authorRecord.orcid))}}function Vd(s,M){if(1&s&&(t.j41(0,"span",64),t.EFF(1),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.JRh(null==o.authorRecord?null:o.authorRecord.primaryAffiliationLocation)}}function Ws(s,M){if(1&s&&(t.j41(0,"span",62)(1,"span",29),t.EFF(2),t.k0s(),t.DNE(3,Vd,2,1,"span",63),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.BMQ("id",null==o.authorRecord?null:o.authorRecord.primaryAffiliationPGUID),t.R7$(),t.JRh(null==o.authorRecord?null:o.authorRecord.primaryAffiliation),t.R7$(),t.Y8G("ngIf",null==o.authorRecord?null:o.authorRecord.primaryAffiliationLocation)}}function Us(s,M){if(1&s&&(t.j41(0,"div",60),t.DNE(1,Ws,4,3,"span",61),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==o.authorRecord?null:o.authorRecord.primaryAffiliation)}}function Wd(s,M){if(1&s&&(t.j41(0,"button",72),t.nI1(1,"async"),t.j41(2,"span"),t.nrm(3,"mat-icon",73),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.Y8G("routerLink","/my/settings/profile")("ngClass",t.eq3(7,xd,t.bMT(1,3,o.isMobile$))),t.R7$(4),t.SpI(" ",t.bMT(5,5,"editSetButton")," ")}}function Ud(s,M){if(1&s&&(t.j41(0,"div",14),t.DNE(1,Md,3,2,"div",15),t.nI1(2,"feature"),t.j41(3,"div",16)(4,"mat-card-title")(5,"h1",17),t.DNE(6,Od,4,2,"span",18),t.nI1(7,"feature"),t.DNE(8,Id,1,1,"ng-template",null,1,t.C5r)(10,kd,2,1,"span",19),t.nI1(11,"feature"),t.nI1(12,"async"),t.k0s()(),t.j41(13,"mat-card-content",20),t.nI1(14,"feature"),t.DNE(15,js,2,1,"span",19),t.nI1(16,"feature"),t.nI1(17,"async"),t.DNE(18,No,11,6,"div",21)(19,Xd,10,8,"div",22),t.nI1(20,"feature"),t.DNE(21,Us,2,1,"ng-template",null,2,t.C5r),t.k0s()(),t.DNE(23,Wd,6,9,"button",23),t.k0s()),2&s){const o=t.sdS(9),u=t.sdS(22),g=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,10,"WAT-11243-UI-updates")?1===(null==g.authorRecordIds?null:g.authorRecordIds.length):null==g.authorRecord?null:g.authorRecord.claim_status),t.R7$(5),t.Y8G("ngIf",t.bMT(7,12,"nxEnableDisplayRIData")&&(null==g.authorRecord||null==g.authorRecord.primaryName?null:g.authorRecord.primaryName.fullName))("ngIfElse",o),t.R7$(4),t.Y8G("ngIf",!t.bMT(11,14,"WAT-11243-UI-updates")&&!t.bMT(12,16,g.isAuthorProfileLoading$)),t.R7$(3),t.Y8G("ngClass",t.eq3(26,Go,t.bMT(14,18,"WAT-11243-UI-updates")&&(null==g.authorRecord?null:g.authorRecord.claim_status))),t.R7$(2),t.Y8G("ngIf",!t.bMT(16,20,"WAT-11243-UI-updates")&&!t.bMT(17,22,g.isAuthorProfileLoading$)),t.R7$(3),t.Y8G("ngIf",g.isHcrFlag||g.isBadgeFlag||g.isAcademySupervisor||g.isAcademyGraduate||g.isExcellentReviewer),t.R7$(),t.Y8G("ngIf",t.bMT(20,24,"WAT-11243-UI-updates"))("ngIfElse",u),t.R7$(4),t.Y8G("ngIf",g.isOwnProfile)}}function Hd(s,M){1&s&&t.nrm(0,"mat-divider",74)}function Za(s,M){if(1&s&&t.nrm(0,"app-author-details",75),2&s){const o=t.XpG();t.Y8G("authorIds",o.authorRecordIds)("authorRecord",o.authorRecord)("isOwnProfile",o.isOwnProfile)("metricsData",o.metricsData)("profileData",o.profileData)}}function Jd(s,M){if(1&s){const o=t.RV6();t.j41(0,"app-profile-settings",76),t.bIt("close",function(g){t.eBV(o);const O=t.XpG();return t.Njj(O.cancel(g))}),t.k0s()}}let xi=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st,gt){super(gt),this.config=o,this.dialog=u,this.route=g,this.router=O,this.analytics=$,this.store=J,this.windowRef=st,this.isMobile$=_t.Y.isMobile$,this.isHcrFlag=!1,this.isBadgeFlag=!1,this.isAcademySupervisor=!1,this.isAcademyGraduate=!1,this.isExcellentReviewer=!1,this.publonsMedal="https://publons.com/static/images/icons/medal_publons.svg",this.isPendoReady$=_t.Y.isPendoReady$,this.heightOfNavOnScreen=105,this.researcherIdUrl=o.getSettings().environment.researcherIdUrl,this.orcidUrl=this.config.getSettings().environment.orcidUrl}ngOnChanges(o){o.authorRecordIds&&(!o.authorRecordIds.previousValue||o.authorRecordIds.previousValue!==o.authorRecordIds.currentValue)&&this.trackStructEvent(),this.isHcrFlag=!1,this.isBadgeFlag=!1,this.store.select(Y.Gh,{authorIds:this.authorRecordIds.join(",")}).pipe((0,W.p)(g=>!!g),(0,V.Q)(this.destroyed$)).subscribe(g=>{this.authorRecord=g}),this.isAcademySupervisor=this.authorRecord?.academy?.isAcademySupervisor,this.isAcademyGraduate=this.authorRecord?.academy?.isAcademyGraduate,this.isExcellentReviewer=this.authorRecord?.excellentReviews?.isExcellentReviewer,this.store.select(Y.g$,{authorIds:this.authorRecordIds.join(",")}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(g=>!!g)).subscribe(g=>{this.metricsData=g,g.publonsProfileData?.awards&&(this.isHcrFlag=g.publonsProfileData.awards.some(O=>O.isHcrAward),this.isBadgeFlag=g.publonsProfileData.awards.some(O=>!1===O.isHcrAward))}),this.pendoLocationAPIForAuthorPage(),this.store.select(Y._A,{authorIds:this.authorRecordIds.join(",")}).pipe((0,W.p)(g=>!!g),(0,V.Q)(this.destroyed$)).subscribe(g=>{this.profileData=g,this.change.detectChanges()}),this.isAuthorProfileLoading$=this.store.select(Y.p3).pipe((0,V.Q)(this.destroyed$)),this.accessInfo$=this.store.select(at.Ik),this.heightOfNavOnScreen=Math.max(0,105-this.windowRef.nativeWindow.scrollY)}get preferredName(){let o=ce.X.getCurrentAuthorPreferredName(this.store,this.authorRecordIds);return this.authorRecord?.claim_status?this.profileData?.preferredName:o}ngAfterViewInit(){this.routeQueryParamsSub=this.route.queryParams.subscribe(o=>{o.edit&&this.openProfileSettings()})}trackStructEvent(){let o=!1;this.store.select(at.mm).subscribe(u=>o=!!u).unsubscribe(),_t.Y.trackStructEventWithAddedContextData(this.analytics,{category:H.N.SNOWP
1LOW_CATEGORIES.AUTHOR_PROFILE_VIEW,action:H.N.SNOWPLOW_ACTIONS.VIEW,context:{contlist:this.authorRecordIds?.join(","),prod1:o?"true":"false"}})}openProfileSettings(){this.dialog.open(this.profileSettingsComponentDialog,{disableClose:!0,autoFocus:!1,panelClass:"profile-setting-dialog",height:"auto"})}pendoLocationAPIForAuthorPage(){this.isPendoReady$.pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o),(0,Xe.n)(()=>(0,oe.z)([this.store.select(Y.Gh,{authorIds:this.authorRecordIds.join(",")}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o)),this.store.select(Y.g$,{authorIds:this.authorRecordIds.join(",")}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o))]))).subscribe(([o,u])=>{let g=[];g=this.isOwnProfile?["own_profile_page"]:["author_profile_page",o.claim_status?"claimed":"un_claimed"],u.publonsProfileData?.awards&&u.publonsProfileData.awards.some($=>$.isHcrAward)&&g.push("highly_cited_researcher"),_t.Y.setPendoLocationURL(g)})}ngOnDestroy(){this.routeQueryParamsSub?.unsubscribe(),window.pendo?.location?.useBrowserUrl()}cancel(o){this.dialog.closeAll(),o&&this.router.navigate(["/author/my-profile"],{state:{skipBreadcrumb:!0}})}getInitials(o){return o?.filter((u,g)=>0==g||g==o.length-1).map(u=>u.charAt(0).toUpperCase()).join("")}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Rn.w),t.rXU(Vt.bZ),t.rXU(pt.nX),t.rXU(pt.Ix),t.rXU(Mo.cu),t.rXU(wt.il),t.rXU(kn.W),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-record-header"]],viewQuery:function(u,g){if(1&u&&t.GBs($s,5),2&u){let O;t.mGM(O=t.lsd())&&(g.profileSettingsComponentDialog=O.first)}},inputs:{authorRecordIds:"authorRecordIds",isOwnProfile:"isOwnProfile",isClaimed:"isClaimed"},features:[t.Vt3,t.OA$],decls:12,vars:13,consts:[["editProfileSettingsTemplate",""],["nonRIDataPN",""],["oldAuthorAffiliation",""],["usePrimaryFullName",""],["nonRIDataPA",""],[1,"wat-author-header-card","wat-record-new-top-border"],["class","spinner-lightbox",3,"ngStyle",4,"ngIf"],["class","view-combined-author-record",4,"ngIf"],["class","header-container",4,"ngIf"],["class","custom-mat-divider",4,"ngIf"],[3,"authorIds","authorRecord","isOwnProfile","metricsData","profileData",4,"ngIf"],[1,"spinner-lightbox",3,"ngStyle"],[1,"wat-spinner"],[1,"view-combined-author-record"],[1,"header-container"],["mat-card-avatar","","class","custom-card-header",4,"ngIf"],[1,"author-data-column"],["data-test","author-name",1,"wat-author-name"],["class","ri-data",4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"wat-card-subtitle",3,"ngClass"],["class","wat-highlights-container",4,"ngIf"],["class","author-affiliation-identifiers",4,"ngIf","ngIfElse"],["mat-stroked-button","","class","profile-edit-button wat-edit-profile",3,"routerLink","ngClass",4,"ngIf"],["mat-card-avatar","",1,"custom-card-header"],["mat-card-avatar","","data-test","author-avatar","class","wat-author-avatar",3,"alt","src",4,"ngIf"],["mat-card-avatar","","class","avatar-text",4,"ngIf"],["mat-card-avatar","","data-test","author-avatar",1,"wat-author-avatar",3,"alt","src"],["mat-card-avatar","",1,"avatar-text"],[1,"ri-data"],[4,"ngIf","ngIfElse"],["data-test","claimed-header","data-pendo","claimed-author-record","svgIcon","checkCircle","aria-hidden","true","class","claimed-icon",4,"ngIf"],["data-test","claimed-header","data-pendo","claimed-author-record","svgIcon","checkCircle","aria-hidden","true",1,"claimed-icon"],["data-test","unclaimed-header","class","unclaimed-text font-size-16",4,"ngIf"],["data-test","unclaimed-header",1,"unclaimed-text","font-size-16"],["aria-hidden","false","aria-label","more-info-on-unclaimed-record","svgIcon","info-circle",1,"author-header-info-circle-icon",3,"matTooltip"],[1,"wat-highlights-container"],[1,"wat-highlight"],["role","img","aria-hidden","true","svgIcon","trophy","class","filter-option-icon orange wat-publon-trophy",4,"ngIf"],["class","wat-highly-cited",4,"ngIf"],["aria-hidden","true","class","wat-publons-badge","alt","",3,"src",4,"ngIf"],["class","wat-top-reviewer",4,"ngIf"],["href","https://clarivate.com/webofsciencegroup/solutions/web-of-science-academy/","target","_blank","class","wat-award-link-color","rel","noopener noreferrer",4,"ngIf"],["role","img","aria-hidden","true","svgIcon","trophy",1,"filter-option-icon","orange","wat-publon-trophy"],[1,"wat-highly-cited"],["aria-hidden","true","alt","",1,"wat-publons-badge",3,"src"],[1,"wat-top-reviewer"],["href","https://clarivate.com/webofsciencegroup/solutions/web-of-science-academy/","target","_blank","rel","noopener noreferrer",1,"wat-award-link-color"],["role","img","aria-hidden","true","svgIcon","school",1,"filter-option-icon","brand-blue","wat-publon-academy-mentor",3,"ngStyle"],["role","img","aria-hidden","true","svgIcon","star",1,"filter-option-icon","wat-excellent-reviewer-color","wat-publon-academy-mentor",3,"ngStyle"],["class","wat-top-reviewer",3,"matTooltip",4,"ngIf"],[1,"wat-top-reviewer",3,"matTooltip"],[1,"author-affiliation-identifiers"],[1,"author-affiliation-info"],["class","ri-data vertical-line-front",4,"ngIf","ngIfElse"],["data-test","rid",4,"ngIf"],[1,"ri-data","vertical-line-front"],[1,"claimed-profile-icon"],[1,"margin-bottom-5"],[3,"authorIds","showClaimProfileLink","showRACTA"],[1,"inline-container"],["class","more-details",4,"ngIf"],[1,"more-details"],["class","hyphenMark",4,"ngIf"],[1,"hyphenMark"],[3,"ngClass"],["data-test","rid"],["role","img","aria-hidden","true","svgIcon","Rid_lens",1,"wat-rid-clvt-icon","margin-right-5--reversible"],[1,"colonMark","identifiers-label"],["svgIcon","orcidIcon","data-test","orcid-icon","aria-hidden","true",1,"wat-other-identifiers-orcid","margin-right-5--reversible"],[1,"identifiers-label"],["target","_blank","rel","noopener noreferrer",3,"href"],["mat-stroked-button","",1,"profile-edit-button","wat-edit-profile",3,"routerLink","ngClass"],["aria-hidden","true","svgIcon","create",1,"profile-edit-icon","wat-correction-icon"],[1,"custom-mat-divider"],[3,"authorIds","authorRecord","isOwnProfile","metricsData","profileData"],[3,"close"]],template:function(u,g){1&u&&(t.j41(0,"div",5),t.DNE(1,yd,3,6,"div",6),t.nI1(2,"async"),t.DNE(3,Ls,3,6,"div",7)(4,Ud,24,28,"div",8),t.nI1(5,"async"),t.DNE(6,Hd,1,0,"mat-divider",9),t.nI1(7,"feature"),t.DNE(8,Za,1,5,"app-author-details",10),t.nI1(9,"async"),t.k0s(),t.DNE(10,Jd,1,0,"ng-template",null,0,t.C5r)),2&u&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,5,g.isAuthorProfileLoading$)),t.R7$(2),t.Y8G("ngIf",(null==g.authorRecordIds?null:g.authorRecordIds.length)>1),t.R7$(),t.Y8G("ngIf",!t.bMT(5,7,g.isAuthorProfileLoading$)),t.R7$(2),t.Y8G("ngIf",!t.bMT(7,9,"WAT-11243-UI-updates")||!(null!=g.authorRecord&&g.authorRecord.claim_status)),t.R7$(2),t.Y8G("ngIf",!t.bMT(9,11,g.isAuthorProfileLoading$)))},dependencies:[Kt.q,Ce.oV,pt.Wk,Ft.An,B.YU,B.bT,B.B3,Mt.$z,Nt.LG,S.QG,S.m2,S.dh,An,mt,B.Jj,ht.D9,Z.h],styles:['.cdx-two-column-grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 75%;grid-template-rows:auto;grid-gap:1.75rem;padding:10px 0}.cdx-two-column-grid-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .cdx-two-column-grid-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0!important}.cdx-grid-label[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-style:normal!important;font-weight:600!important;font-size:16px!important;line-height:24px!important}.cdx-grid-data[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-style:normal!important;font-weight:400!important;font-size:14px!important;line-height:24px!important}.cdx-grid-space[_ngcontent-%COMP%]{padding-bottom:20px}.cdx-chemical-reaction-space[_ngcontent-%COMP%]{width:100%!important}.cdx-horizontal-line[_ngcontent-%COMP%]{border:2px solid #EEEEEE}.cdx-title[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-style:normal;font-weight:700;font-size:32px!important;line-height:40px}.cdx-label[_ngcontent-%COMP%]{margin:0!important;font-weight:400!important}.cdx-references-remodel[_ngcontent-%COMP%]{box-sizing:border-box!important;padding:24px 0 0!important;background:#fff!important;border:1px solid #E0E0E0!important;border-radius:4px!important}.cdx-margin-top-results[_ngcontent-%COMP%]{margin-left:auto}.cdx-margin-right-appearence[_ngcontent-%COMP%]{border:1px solid #5e33bf;border-radius:1.25rem}.cdx-margin-right-appearence[_ngcontent-%COMP%]   .cdx-appirence-color[_ngcontent-%COMP%]{color:#5e33bf;font-family:Source Sans Pro,sans-serif;font-style:normal;font-weight:600;font-size:16px;line-height:24px}[dir=ltr][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:after{display:inline-block;content:".";margin-right:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .cdx-colonDot[_ngcontent-%COMP%]:after{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .cdx-colonDot[_ngcontent-%COMP%]:before{display:inline-block;content:".";margin-left:.1875rem}[dir=rtl][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:after{display:inline-block;content:".";margin-left:.1875rem}.cdx-patent-chem-record[_ngcontent-%COMP%]{box-shadow:none!important}.cdx-two-column-grid-journal-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 15%;grid-template-rows:auto;grid-gap:1.25rem}.cdx-two-column-grid-Funding-container[_ngcontent-%COMP%]{display:flex;grid-template-columns:1fr 75%;grid-template-rows:auto;grid-column-gap:38rem;align-items:baseline;margin-bottom:-.625rem}.cdx-default-styles[_ngcontent-%COMP%]{padding:0!important;margin:0!important;display:inline!important}.cdx-zero-padding[_ngcontent-%COMP%]{padding:0!important}.cdx-show-more-box[_ngcontent-%COMP%]{background-color:transparent!important;margin-bottom:2.185rem!important}.cdx-top-border[_ngcontent-%COMP%]{border-top:8px solid #5e33bf;border-radius:4px}.cdx-full-record-top-border[_ngcontent-%COMP%]{padding:40px 24px 0}.cdx-no-border[_ngcontent-%COMP%]{border:none!important}.cdx-grid-gap[_ngcontent-%COMP%]{grid-gap:2.25rem!important}.cdx-right-panel-main[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-size:20px!important;font-weight:600!important;line-height:26px!important;color:#000!important}.cdx-right-panel-body[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:24px!important}.cdx-right-panel-sub[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-size:18px!important;font-weight:400!important;line-height:24px!important}.cdx-margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.cdx-margin-top-24[_ngcontent-%COMP%]{margin-top:1.5rem!important}.cdx-list-style[_ngcontent-%COMP%]{list-style-type:disc!important}.cdx-black[_ngcontent-%COMP%]{color:#000!important}.cdx-vertical-align[_ngcontent-%COMP%]{vertical-align:middle!important}.header-margin-direction[_ngcontent-%COMP%]:lang(ar-sa){direction:rtl}.cdx-column[_ngcontent-%COMP%]{width:fit-content!important}.cdx-jump[_ngcontent-%COMP%]{display:inline-flex!important;width:fit-content!important;padding:0!important;color:#5e33bf!important}.cdx-redesign-journal[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .cdx-redesign-journal[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0!important}.cdx-line-height-16[_ngcontent-%COMP%]{line-height:16px!important}.cdx-box-divisions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cdx-blocks-division[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px}.cdx-red[_ngcontent-%COMP%]{color:#dd2c00}@media (max-width: 1024px){.top-section[_ngcontent-%COMP%]{display:block!important}}@media (max-width: 1024px) and (min-width: 550px){.network-section[_ngcontent-%COMP%]{display:grid!important;grid-template-columns:50% 1fr;grid-template-rows:auto;grid-gap:1.75rem}}@media (max-width: 550px){.fullRecord-page[_ngcontent-%COMP%]   .data-column[_ngcontent-%COMP%]{margin-right:1.25rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .fullRecord-page[_ngcontent-%COMP%]   .data-column[_ngcontent-%COMP%]{margin-right:0!important;margin-left:1.25rem!important}.cdx-two-column-grid-container[_ngcontent-%COMP%], .cdx-grid-data[_ngcontent-%COMP%], .cdx-two-column-grid-journal-container[_ngcontent-%COMP%], .cdx-jump[_ngcontent-%COMP%]{display:block!important}.cdx-margin-top-results[_ngcontent-%COMP%]{margin-left:0!important;margin-top:0!important;justify-content:flex-start!important}}.spinner-lightbox[_ngcontent-%COMP%]{background-color:#d3d3d380;width:100%;height:100%;overflow:hidden;position:fixed;z-index:5;visibility:visible;left:0}.view-combined-author-record[_ngcontent-%COMP%]{font-size:.9375rem;font-weight:600;border-radius:.1875rem;opacity:.9;line-height:.9375rem;margin-bottom:.625rem;width:fit-content}.color-contrast[_ngcontent-%COMP%]{color:#333!important;background-color:#fff!important}.wat-spinner[_ngcontent-%COMP%]{position:relative;top:30%;margin:auto}.wat-top-border[_ngcontent-%COMP%]{border-top:11px solid #564695;border-radius:5px;background:var(--sys-surface-container-lowest, #FFF)}.wat-record-new-top-border[_ngcontent-%COMP%]{border-radius:1rem;background:var(--sys-surface-container-lowest, #FFF)}.wat-author-header-card[_ngcontent-%COMP%]{padding:1.8125rem 1.5rem 2.5rem;overflow:hidden}.wat-author-header-card[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;width:100%}.wat-author-header-card[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]   .mat-mdc-card-avatar[_ng
1content-%COMP%]{margin-bottom:0!important}.wat-author-header-card[_ngcontent-%COMP%]   .custom-card-header[_ngcontent-%COMP%]{width:9.375rem;height:9.375rem;margin-inline-end:1.5rem}.wat-author-header-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]{margin-bottom:1rem}.wat-author-header-card[_ngcontent-%COMP%]   .author-data-column[_ngcontent-%COMP%]{width:100%;margin-top:.4375rem}.wat-author-header-card[_ngcontent-%COMP%]   .beta-text[_ngcontent-%COMP%]{font-size:.8125rem;color:#5b4a9e}.wat-author-header-card[_ngcontent-%COMP%]   .wat-card-subtitle[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-name[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;display:inline}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-name[_ngcontent-%COMP%]   .ri-data[_ngcontent-%COMP%]{padding-inline-end:.40625rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-name[_ngcontent-%COMP%]   sup[_ngcontent-%COMP%]{font-size:.8125rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-avatar[_ngcontent-%COMP%]{background-color:gray;width:9.375rem;height:9.375rem}.wat-author-header-card[_ngcontent-%COMP%]   .avatar-text[_ngcontent-%COMP%]{text-align:center;line-height:9.375rem;font-weight:350;color:#000;background-color:#eee;width:9.375rem;height:9.375rem;font-size:4.375rem}.wat-author-header-card[_ngcontent-%COMP%]   .claimed-icon[_ngcontent-%COMP%]{color:#0fb718;height:1.5rem;width:1.5rem;position:relative;top:.125rem}.wat-author-header-card[_ngcontent-%COMP%]   .curated-icon[_ngcontent-%COMP%]{height:1.25rem;width:1.25rem;position:relative;top:.25rem}.wat-author-header-card[_ngcontent-%COMP%]   .unclaimed-text[_ngcontent-%COMP%]{display:inline-flex;align-items:center;line-height:1.5rem}.wat-author-header-card[_ngcontent-%COMP%]   .author-header-info-circle-icon[_ngcontent-%COMP%]{height:1.125rem;width:1.125rem;top:.125rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-highlights-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:1rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-highlight[_ngcontent-%COMP%]{margin-left:.125rem}@media screen and (max-width: 30rem){.wat-author-header-card[_ngcontent-%COMP%]   mat-card-header[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:.625rem;width:100%}.wat-author-header-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]{margin-bottom:.1875rem}.wat-author-header-card[_ngcontent-%COMP%]   .header-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.wat-author-header-card[_ngcontent-%COMP%]   .claimed-profile[_ngcontent-%COMP%]   .custom-card-header[_ngcontent-%COMP%]{margin-right:0}.wat-author-header-card[_ngcontent-%COMP%]   .wat-edit-profile[_ngcontent-%COMP%]{order:1;align-self:flex-end;padding-right:1rem;padding-bottom:.1875rem}.wat-author-header-card[_ngcontent-%COMP%]   .custom-card-header[_ngcontent-%COMP%]{order:2;align-items:center;width:6.25rem;height:6.25rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-avatar[_ngcontent-%COMP%]{width:6.25rem;height:6.25rem}.wat-author-header-card[_ngcontent-%COMP%]   .avatar-text[_ngcontent-%COMP%]{line-height:6.25rem;width:6.25rem;height:6.25rem;font-size:4.375rem}.wat-author-header-card[_ngcontent-%COMP%]   .author-data-column[_ngcontent-%COMP%]{order:3;display:flex;flex-direction:column;margin-top:24px}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-name[_ng
1content-%COMP%]{display:flex;font-size:1.25rem;margin-bottom:0;justify-content:center}.wat-author-header-card[_ngcontent-%COMP%]   .wat-author-name[_ngcontent-%COMP%]   sup[_ngcontent-%COMP%]{font-size:.5rem}.wat-author-header-card[_ngcontent-%COMP%]   .claimed-icon[_ngcontent-%COMP%]{height:1.5rem;width:1.5rem;position:relative;margin-left:8px}.wat-author-header-card[_ngcontent-%COMP%]   .wat-card-subtitle[_ngcontent-%COMP%]{font-size:1rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-highlights-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.wat-author-header-card[_ngcontent-%COMP%]   .wat-highlight[_ngcontent-%COMP%]{display:flex}.wat-author-header-card[_ngcontent-%COMP%]   .wat-publon-trophy[_ngcontent-%COMP%]{margin-left:.1875rem}.wat-author-header-card[_ngcontent-%COMP%]   .wat-publon-academy-mentor[_ngcontent-%COMP%]{margin-left:.1875rem!important;margin-right:.0625rem}}@media screen and (max-width: 30rem){.wat-author-header-card[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:1rem}}.inline-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;margin-top:.75rem}
1.inline-container[_ngcontent-%COMP%]   .author-name[_ngcontent-%COMP%]{white-space:nowrap}.inline-container[_ngcontent-%COMP%]:has(.more-details:empty)   .vertical-line-front[_ngcontent-%COMP%]:after, .inline-container[_ngcontent-%COMP%]:has(.more-details:empty)   .vertical-line-front[_ngcontent-%COMP%]:before{display:none!important}.author-affiliation-identifiers[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem;margin-top:1rem}.author-affiliation-identifiers[_ngcontent-%COMP%]   .vertical-line-front[_ngcontent-%COMP%]:after{margin-left:11px!important;margin-right:8px!important}.author-affiliation-identifiers[_ngcontent-%COMP%]   .author-affiliation-info[_ngcontent-%COMP%]{color:#333!important}.author-affiliation-identifiers[_ngcontent-%COMP%]   .author-affiliation-info[_ngcontent-%COMP%]   .ri-data[_ngcontent-%COMP%]{font-size:1rem}.author-affiliation-identifiers[_ngcontent-%COMP%]   .author-affiliation-info[_ngcontent-%COMP%]   .claimed-profile-icon[_ngcontent-%COMP%]{font-size:1.25rem;height:1.25rem;position:relative;top:.25rem;left:.125rem}.author-affiliation-identifiers[_ngcontent-%COMP%]   .wat-rid-clvt-icon[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important}.author-affiliation-identifiers[_ngcontent-%COMP%]   .identifiers-label[_ngcontent-%COMP%]{font-size:1rem;color:#333!important}.author-affiliation-identifiers[_ngcontent-%COMP%]   .wat-other-identifiers-orcid[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important;position:relative;top:.0625rem}.author-affiliation-identifiers[_ngcontent-%COMP%]:has(.author-affiliation-info:empty)   .vertical-line-front[_ngcontent-%COMP%]:after, .author-affiliation-identifiers[_ngcontent-%COMP%]:has(.author-affiliation-info:empty)   .vertical-line-front[_ngcontent-%COMP%]:before{display:none!important}.RIDToolTip[_ngcontent-%COMP%]{font-size:12px;background-color:#6d6d6d;color:#fff;border-width:5px;border-style:solid;border-color:#6d6d6d;border-radius:5px;margin-top:12px}.RIDToolTip[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;-webkit-text-decoration:underline white;text-decoration:underline white}.RIDToolTip[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#564695;-webkit-text-decoration:underline #564695;text-decoration:underline #564695}#getRID[_ngcontent-%COMP%]{color:#fff;-webkit-text-decoration:underline white;text-decoration:underline white}#getRID[_ngcontent-%COMP%]:hover{color:#564695;-webkit-text-decoration:underline #564695;text-decoration:underline #564695}.view-combined-author-record[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;border-radius:3px;opacity:.9;line-height:15px;margin-bottom:.625rem;width:fit-content}.wat-highly-cited[_ngcontent-%COMP%]{display:inline!important;font-size:1rem;margin-right:.375rem}.wat-top-reviewer[_ngcontent-%COMP%]{display:inline!important;font-size:1rem}.wat-publon-trophy[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important;vertical-align:text-bottom}.wat-publons-badge[_ngcontent-%COMP%]{height:1.5rem!important;width:1.5rem!important;vertical-align:text-top}.wat-edit-profile[_ngcontent-%COMP%]{display:inline-block!important;float:right;margin-left:.625rem;min-width:5.375rem;font-size:1rem;color:#304ffe!important}.wat-correction-icon[_ngcontent-%COMP%]{height:1.125rem;vertical-align:baseline;color:#304ffe}.wat-publon-academy-mentor[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important;vertical-align:text-bottom}.wat-rid-clvt-icon[_ngcontent-%COMP%]{height:1.125rem!important;width:1.125rem!important;vertical-align:text-bottom;margin-right:.1875rem}.wat-award-link-color[_ngcontent-%COMP%]{color:#0000008a}.wat-unclickable-rid[_ngcontent-%COMP%]{display:inline-block!important}.wat-excellent-reviewer-color[_ngcontent-%COMP%]{color:#ffc400}.cancelled-author-profile-overlay[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:start;padding-top:6.25rem;margin-bottom:18.75rem;z-index:1000}.cancelled-author-profile-overlay-content[_ngcontent-%COMP%]{background-color:#fff;padding:60px 10px;border:2px solid #7e57c2;text-align:center;max-width:370px;margin:0 20px}']})}}return s})();var Ae=E(6173),zo=E(57890);function qd(s,M){if(1&s&&t.nrm(0,"highcharts-chart",1),2&s){const o=t.XpG();
1t.Y8G("Highcharts",o.highcharts)("options",o.chartOptions)("callbackFunction",o.chartCallback)}}let Ka=(()=>{class s{constructor(o,u,g){this.watNumSuffix=o,this.translate=u,this.authors=g,this.isMobile$=_t.Y.isMobile$,this.showBeamPlotSummary=!1,this.highcharts=N,this.LOCALIZED_TEXT={PERCENTILE:"Percentile"},this.updateLocalization(),this.langSub=this.translate.onLangChange.subscribe(()=>this.updateLocalization())}ngOnInit(){this.chartCallback=o=>{this.beamplotSummaryInstance=o}}ngOnChanges(){this.inCitesData.length>0&&this.drawSummaryBeamPlot(this.inCitesData)}drawSummaryBeamPlot(o){this.showBeamPlotSummary=!0;const u=this.watNumSuffix,g=new Map,O=[],$=[];o.forEach(ae=>{const Me=`${ae.PUBLICATION_DATE},${Math.round(ae.PERCENTILE)}`,yn=g.get(Me)||[];$.push(Math.round(ae.PERCENTILE)),yn.push(ae),g.set(Me,yn)});for(const ae of g.keys()){const Me=ae.split(",");O.push(parseInt(Me[1],10))}const J=Math.max(...O),st=Math.min(...O),gt=this.authors.calculateMedianValue($.map(ae=>Number(ae))),zt=this.LOCALIZED_TEXT.PERCENTILE,Dt=this.isMobile$.getValue()?.7*window.innerWidth:379,De=zo.n.XYaxis,cn=zo.n.tooltip;this.chartOptions={chart:{type:"scatter",width:Dt,height:85},title:{text:this.translate.instant("authorImpactSummary"),style:{display:"none"}},...De,tooltip:{...cn,formatter(){let ae="";const Me=u.transform(Math.round(this.x));return ae="citationDot"===this.series.name?`<span class="dot"> </span><span style="margin-left: -4px;"><strong> ${Me}</strong> ${zt}</span>`:`<span class="annual-citation-dot"> </span>${Me} ${zt} `,ae}},credits:{enabled:!1},colors:["#5E33BF","rgb(188, 152, 255)"],series:[{type:"line",name:"Regression Line",regression:!0,color:"#5E33BF",width:2,marker:{enabled:!1},showInLegend:!1,data:[[st,0],[J,0]]},{name:"citationDot",marker:{symbol:"url(/wos/static/images/beam-plot-nodes/small-node.svg)"},showInLegend:!1,data:[[st,0],[J,0]]},{name:"annualCitationDot",marker:{symbol:"url(/wos/static/images/beam-plot-nodes/annual-citation-percentile.svg)"},showInLegend:!1,data:[[gt,0]]}]}}updateLocalization(){this.LOCALIZED_TEXT.PERCENTILE=this.translate.instant("Percentile")}hideTooltipOnEscape(o){this.beamplotSummaryInstance?.tooltip?.destroy()}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(gn.M),t.rXU(ht.c$),t.rXU(ve.m))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-impact-beamplot-summary"]],hostBindings:function(u,g){1&u&&t.bIt("keydown.escape",function($){return g.hideTooltipOnEscape($)},!1,t.EBC)},inputs:{inCitesData:"inCitesData"},features:[t.OA$],decls:1,vars:1,consts:[["class","wat-bar-chart-container",3,"Highcharts","options","callbackFunction",4,"ngIf"],[1,"wat-bar-chart-container",3,"Highcharts","options","callbackFunction"]],template:function(u,g){1&u&&t.DNE(0,qd,1,3,"highcharts-chart",0),2&u&&t.Y8G("ngIf",g.chartOptions)},dependencies:[ze.H,B.bT],styles:[".wat-bar-chart-container[_ngcontent-%COMP%]{display:block}@media screen and (max-width: 30rem){.wat-bar-chart-container[_ngcontent-%COMP%]{display:flex;justify-content:center}}.dot[_ngcontent-%COMP%]{height:.75rem;width:.75rem;background-color:#564695;border-radius:50%;vertical-align:middle;display:inline-block;padding:.125rem}.annual-citation-dot[_ngcontent-%COMP%]{border:3px solid rgb(22,171,3);border-radius:50%;width:1.125rem;height:1.125rem;vertical-align:middle;margin-right:.125rem;display:inline-block;padding:.125rem}"]})}}return s})();var Hs=E(58241);const Qd=()=>["WOS","AllDB"],Zd=(s,M)=>({stats:s,db:M}),Kd=(s,M)=>["/",s,"summary",M,"relevance","1"],tp=(s,M,o,u,g)=>({value:s,label:M,db:o,routingLink:u,dataPendo:g}),Js=(s,M,o)=>["/",s,M,o],ep=(s,M,o,u,g,O)=>({value:s,label:M,analyticsCategory:o,withSelfCount:!0,db:u,routingLink:g,dataPendo:O}),Yo=(s,M,o,u,g,O)=>({value:s,label:M,analyticsCategory:o,routingLink:u,db:g,showSubLabel:!0,withSelfCount:!1,dataPendo:O}),tr=(s,M)=>["/",s,"citation-report",M],np=()=>({forceReload:"true"}),qs=()=>["/","diidw","total-citing-summary"],ip=(s,M,o,u,g)=>({value:s,label:M,withSelfCount:!0,db:"DIIDW",routingLink:o,queryParams:u,dataPendo:g}),_n=()=>["/","pci","total-citing-summary"],Bo=(s,M,o,u,g)=>
1({value:s,label:M,withSelfCount:!0,db:"PCI",routingLink:o,queryParams:u,dataPendo:g}),Qs=()=>["woscc","alldb"],on=()=>["/","woscc","general-summary"];function op(s,M){if(1&s&&(t.j41(0,"p",14)(1,"span",15),t.EFF(2),t.k0s(),t.j41(3,"span",16),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",(null==o.authorDetail||null==o.authorDetail.publication_summary?null:o.authorDetail.publication_summary.indexedPublications)||0," "),t.R7$(2),t.JRh(t.bMT(5,2,"indexedPublicationsSummaryText"))}}function Zs(s,M){if(1&s&&(t.j41(0,"p",14)(1,"span",15),t.EFF(2),t.k0s(),t.j41(3,"span",16),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",(null==o.authorDetail||null==o.authorDetail.publication_summary?null:o.authorDetail.publication_summary.pqdtPublications)||0," "),t.R7$(2),t.JRh(t.bMT(5,2,"dissertationsOrTheses"))}}function ap(s,M){if(1&s&&(t.j41(0,"p",14)(1,"span",15),t.EFF(2),t.k0s(),t.j41(3,"span",16),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",(null==o.authorDetail||null==o.authorDetail.publication_summary?null:o.authorDetail.publication_summary.nonIndexedPublications)||0," "),t.R7$(2),t.JRh(t.bMT(5,2,"nonIndexedPublications"))}}function Hi(s,M){if(1&s&&(t.j41(0,"p",14)(1,"span",15),t.EFF(2),t.nI1(3,"feature"),t.k0s(),t.j41(4,"span",16),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"WAT-10338-review-count-display-from-ES")?(null==o.authorDetail?null:o.authorDetail.peer_reviews_count)||0:(null==o.authorDetail||null==o.authorDetail.publonsBasicMetricsData||null==o.authorDetail.publonsBasicMetricsData.publonsStatData||null==o.authorDetail.publonsBasicMetricsData.publonsStatData.total?null:o.authorDetail.publonsBasicMetricsData.publonsStatData.total.verifiedReviews)||0),t.R7$(3),t.JRh(t.bMT(6,4,"VerifiedPeerReviews"))}}function bn(s,M){if(1&s&&(t.j41(0,"p",14)(1,"span",15),t.EFF(2),t.nI1(3,"feature"),t.k0s(),t.j41(4,"span",16),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"WAT-10338-review-count-display-from-ES")?(null==o.authorDetail?null:o.authorDetail.editor_records_count)||0:(null==o.authorDetail||null==o.authorDetail.publonsBasicMetricsData||null==o.authorDetail.publonsBasicMetricsData.publonsStatData||null==o.authorDetail.publonsBasicMetricsData.publonsStatData.total?null:o.authorDetail.publonsBasicMetricsData.publonsStatData.total.verifiedEditorRecords)||0),t.R7$(3),t.JRh(t.bMT(6,4,"ProfilesVerifiedEditorRecords"))}}function rp(s,M){if(1&s&&(t.j41(0,"p",14)(1,"span",15),t.EFF(2),t.k0s(),t.j41(3,"span",16),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh((null==o.authorDetail||null==o.authorDetail.grants_stats?null:o.authorDetail.grants_stats.total_articles)||0),t.R7$(2),t.JRh(t.bMT(5,2,"AwardedGrants"))}}function er(s,M){if(1&s&&(t.j41(0,"div")(1,"div",12)(2,"h2",13),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",14)(6,"span",15),t.EFF(7),t.k0s(),t.j41(8,"span",16),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.DNE(11,op,6,4,"p",17),t.j41(12,"p",14)(13,"span",15),t.EFF(14),t.k0s(),t.j41(15,"span",16),t.EFF(16),t.nI1(17,"translate"),t.k0s()(),t.j41(18,"p",14)(19,"span",15),t.EFF(20),t.k0s(),t.j41(21,"span",16),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.DNE(24,Zs,6,4,"p",17)(25,ap,6,4,"p",17)(26,Hi,7,6,"p",17)(27,bn,7,6,"p",17)(28,rp,6,4,"p",17),t.nI1(29,"feature"),t.k0s(),t.nrm(30,"mat-divider",18),t.k0s()),2&s){const o=t.XpG();t.R7$(3),t.JRh(t.bMT(4,13,"ProfileSummary")),t.R7$(4),t.SpI(" ",(null==o.authorDetail||null==o.authorDetail.publication_summary?null:o.authorDetail.publication_summary.totalPublications)||0," "),t.R7$(2),t.JRh(t.bMT(10,15,"TotalDocs")),t.R7$(2),t.Y8G("ngIf",null==o.authorDetail?null:o.authorDetail.claim_status),t.R7$(3),t.JRh(o.wosccPublications||0),t.R7$(2),t.JRh(t.bMT(17,17,"is_wos_indexed")),t.R7$(4),t.JRh((null==o.authorDetail||null==o.authorDetail.publication_summary?null:o.authorDetail.publication_summary.pprnPublications)||0),t.R7$(2),t.SpI(" ",t.bMT(23,19,"PPRN_name"+(1!==(null==o.authorDetail||null==o.authorDetail.publication_summary?null:o.authorDetail.publication_summary.pprnPublications)?"Plural":"Singular"))," "),t.R7$(2),t.Y8G("ngIf",null==o.authorDetail?null:o.authorDetail.claim_status),t.R7$(),t.Y8G("ngIf",null==o.authorDetail?null:o.authorDetail.claim_status),t.R7$(),t.Y8G("ngIf",null==o.authorDetail?null:o.authorDetail.claim_status),t.R7$(),t.Y8G("ngIf",null==o.authorDetail?null:o.authorDetail.claim_status),t.R7$(),t.Y8G("ngIf",t.bMT(29,21,"WOSVX-39770-profile-summary-grants-count")&&1===o.authorIds.length)}}function sp(s,M){1&s&&t.eu8(0)}function lp(s,M){if(1&s&&t.DNE(0,sp,1,0,"ng-container",26),2&s){const o=t.XpG(2).$implicit,u=t.XpG(3),g=t.sdS(6);t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(2,Zd,u.getStatsByDB(o.db),o.db))}}function Le(s,M){1&s&&t.eu8(0)}function cp(s,M){if(1&s&&t.DNE(0,Le,1,0,"ng-container",27),2&s){t.XpG(5);const o=t.sdS(8);t.Y8G("ngTemplateOutlet",o)}}function nr(s,M){if(1&s&&t.DNE(0,lp,1,5,"ng-container")(1,cp,1,1,"ng-container"),2&s){const o=t.XpG().$implicit;t.vxM(t.lJ4(1,Qd).includes(o.db)?0:1)}}function ir(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",21),t.bIt("click",function(){const g=t.eBV(o).$implicit,O=t.XpG
1(3);return t.Njj(O.toggleShowData(g.db))}),t.j41(1,"div",22)(2,"span",23),t.EFF(3),t.nI1(4,"lowercase"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span",24),t.nrm(7,"mat-icon",25),t.k0s()()(),t.DNE(8,nr,2,2)}if(2&s){const o=M.$implicit;t.R7$(3),t.SpI(" ",t.bMT(5,5,t.bMT(4,3,o.db)+"Citations")," "),t.R7$(4),t.Y8G("svgIcon",o.display?"arrowKeyUp":"arrowKeyDown"),t.R7$(),t.vxM(o.display?8:-1)}}function Ks(s,M){if(1&s&&(t.j41(0,"div",20),t.Z7z(1,ir,9,7,null,null,t.fX1),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Dyx(o.citationSources)}}function Dn(s,M){1&s&&t.eu8(0)}function Xo(s,M){if(1&s&&t.DNE(0,Dn,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(12);t.Y8G("ngTemplateOutlet",o)}}function Vo(s,M){if(1&s&&(t.j41(0,"h3",19),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.DNE(3,Ks,3,0,"div",20)(4,Xo,1,1,"ng-container")),2&s){const o=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,2,"citationMetrics")," "),t.R7$(2),t.vxM(o.allIndexedPublications>0&&o.allIndexedPublications<1e4?3:4)}}function hp(s,M){1&s&&t.eu8(0)}function dp(s,M){if(1&s&&t.DNE(0,hp,1,0,"ng-container",27),2&s){t.XpG();const o=t.sdS(14);t.Y8G("ngTemplateOutlet",o)}}function an(s,M){if(1&s&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(),u=o.stats,g=o.db,O=t.XpG();t.BMQ("data-test",O.taPrefix+"-"+g+"-hIndex-count"),t.R7$(),t.JRh(t.bMT(2,2,(null==u?null:u.HValue)||0))}}function pp(s,M){1&s&&t.eu8(0)}function tl(s,M){if(1&s&&t.DNE(0,pp,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(16);t.Y8G("ngTemplateOutlet",o)}}function ue(s,M){1&s&&t.eu8(0)}function el(s,M){if(1&s&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(),u=o.stats,g=o.db,O=t.XpG();t.BMQ("data-test",O.taPrefix+"-"+g+"-SumTimesCited-count"),t.R7$(),t.JRh(t.bMT(2,2,(null==u?null:u.TimesCited)||0))}}function up(s,M){1&s&&t.eu8(0)}function nl(s,M){if(1&s&&t.DNE(0,up,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(16);t.Y8G("ngTemplateOutlet",o)}}function or(s,M){1&s&&t.eu8(0)}function Ji(s,M){if(1&s&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(),u=o.stats,g=o.db,O=t.XpG();t.BMQ("data-test",O.taPrefix+"-"+g+"-SumTimesCitedWithOutSelf-count"),t.R7$(),t.JRh(t.bMT(2,2,(null==u?null:u.TimesCitedSansSelf)||0))}}function qi(s,M){1&s&&t.eu8(0)}function Wo(s,M){if(1&s&&t.DNE(0,qi,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(16);t.Y8G("ngTemplateOutlet",o)}}function mp(s,M){1&s&&t.eu8(0)}function gp(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",35),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.citationWursEvent())}),t.j41(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&s){const o=t.XpG(2).db,u=t.XpG();t.FS9("cdxAnalyticsCategory",o+"-authorrecord-citation-report"),t.Y8G("routerLink",t.l_i(7,tr,u.getDB(o),u.getQueryId(o)))("queryParams",t.lJ4(10,np)),t.BMQ("data-pendo",u.taPrefix+o+"-citation-report"),t.R7$(2),t.JRh(t.bMT(3,5,"viewCitationReport"))}}function il(s,M){1&s&&(t.j41(0,"button",34),t.nI1(1,"feature"),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&s&&(t.BMQ("data-pendo",t.bMT(1,2,"nxPresentationControl_authorProfile_disable_citationReport")?"wosfv-disabled-citation-report":null),t.R7$(3),t.JRh(t.bMT(4,4,"viewCitationReport")))}function ar(s,M){if(1&s&&(t.j41(0,"div",32),t.DNE(1,gp,4,11,"button",33),t.nI1(2,"feature"),t.DNE(3,il,5,6,"button",34),t.k0s()),2&s){const o=t.XpG().db,u=t.XpG();t.R7$(),t.vxM(!t.bMT(2,1,"nxPresentationControl_authorProfile_disable_citationReport")&&u.getPublicationCount(o)>0&&!u.ridCheckForCombinedAuthors()?1:3)}}function ol(s,M){if(1&s&&(t.j41(0,"div",20)(1,"div",28),t.DNE(2,an,3,4,"div",29),t.nI1(3,"async"),t.DNE(4,tl,1,1,"ng-container"),t.j41(5,"h3",30),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.DNE(8,ue,1,0,"ng-container",26),t.nI1(9,"translate"),t.j41(10,"div",28),t.DNE(11,el,3,4,"div",29),t.nI1(12,"async"),t.DNE(13,nl,1,1,"ng-container"),t.j41(14,"h3",30),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.DNE(17,or,1,0,"ng-container",26),t.nI1(18,"translate"),t.j41(19,"div",28),t.DNE(20,Ji,3,4,"div",29),t.nI1(21,"async"),t.DNE(22,Wo,1,1,"ng-container"),t.j41(23,"h3",30),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"span",31),t.EFF(27),t.nI1(28,"translate"),t.nI1(29,"lowercase"),t.k0s()(),t.DNE(30,mp,1,0,"ng-container",26),t.nI1(31,"translate"),t.DNE(32,ar,4,3,"div",32),t.nI1(33,"feature"),t.nI1(34,"feature"),t.k0s()),2&s){const o=M.stats,u=M.db,g
1=t.XpG(),O=t.sdS(10);t.R7$(2),t.vxM(t.bMT(3,14,g.isLoadingCitationMetrix$)?4:2),t.R7$(4),t.JRh(t.bMT(7,16,"hIndex")),t.R7$(2),t.Y8G("ngTemplateOutlet",O)("ngTemplateOutletContext",t.s1E(43,tp,g.getPublicationCount(u),t.bMT(9,18,"documents"),g.getDB(u),t.l_i(40,Kd,g.getDB(u),g.getQueryId(u)),g.taPrefix+u+"-document-count")),t.R7$(3),t.vxM(t.bMT(12,20,g.isLoadingCitationMetrix$)?13:11),t.R7$(4),t.JRh(t.bMT(16,22,"SumTimesCited")),t.R7$(2),t.Y8G("ngTemplateOutlet",O)("ngTemplateOutletContext",t.l4e(53,ep,null==o?null:o.DedupedTimesCited,t.bMT(18,24,"CitingArticles"),u+"-authorrecord-citing-articles",g.getDB(u),t.sMw(49,Js,g.getDB(u),g.modeMapping[g.SearchMode.total_citing_articles],g.getQueryId(u)),g.taPrefix+u+"-citing-article-count")),t.R7$(3),t.vxM(t.bMT(21,26,g.isLoadingCitationMetrix$)?22:20),t.R7$(4),t.JRh(t.bMT(25,28,"SumTimesCited")),t.R7$(3),t.JRh(t.bMT(29,32,t.bMT(28,30,"noSelfCites"))),t.R7$(3),t.Y8G("ngTemplateOutlet",O)("ngTemplateOutletContext",t.l4e(64,Yo,null==o?null:o.CitingItemsSansSelf,t.bMT(31,34,"CitingArticles"),u+"-authorrecord-citing-articles-without-self-citations",t.sMw(60,Js,g.getDB(u),g.modeMapping[g.SearchMode.non_self_total_citing_articles],g.getQueryId(u)),g.getDB(u),g.taPrefix+u+"-citing-article-without-self-count")),t.R7$(2),t.vxM(t.bMT(33,36,"nxPresentationControl_Disable_WOSMatrix")||t.bMT(34,38,"nxPresentationControl_Researcher_Profile_Disable_ViewCitationReport")?-1:32)}}function fp(s,M){if(1&s&&(t.j41(0,"div",36),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){let o;const u=t.XpG(2);t.BMQ("data-test",u.taPrefix+"-SumTimesCitedPatents-count"),t.R7$(),t.SpI(" ",t.bMT(2,2,(null==(o=u.getStatsByDB("DIIDW"))?null:o.TimesCited)||0)," ")}}function _p(s,M){1&s&&t.eu8(0)}function bp(s,M){if(1&s&&t.DNE(0,_p,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(16);t.Y8G("ngTemplateOutlet",o)}}function Tt(s,M){1&s&&t.eu8(0)}function al(s,M){if(1&s&&(t.j41(0,"div",37),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){let o;const u=t.XpG(2);t.BMQ("data-test",u.taPrefix+"-SumTimesCitedPolicy-count"),t.R7$(),t.SpI(" ",t.bMT(2,2,(null==(o=u.getStatsByDB("PCI"))?null:o.TimesCited)||0)," ")}}function Cp(s,M){1&s&&t.eu8(0)}function Uo(s,M){if(1&s&&t.DNE(0,Cp,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(16);t.Y8G("ngTemplateOutlet",o)}}function xp(s,M){1&s&&t.eu8(0)}function yp(s,M){if(1&s&&(t.j41(0,"div",28),t.DNE(1,fp,3,4,"div",36),t.nI1(2,"async"),t.DNE(3,bp,1,1,"ng-container"),t.j41(4,"h3",30),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.DNE(7,Tt,1,0,"ng-container",26),t.nI1(8,"translate"),t.j41(9,"div",28),t.DNE(10,al,3,4,"div",37),t.nI1(11,"async"),t.DNE(12,Uo,1,1,"ng-container"),t.j41(13,"h3",30),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.DNE(16,xp,1,0,"ng-container",26),t.nI1(17,"translate")),2&s){let o,u;const g=t.XpG(),O=t.sdS(10);t.R7$(),t.vxM(t.bMT(2,8,g.isLoadingCitationMetrix$)?3:1),t.R7$(4),t.SpI(" ",t.bMT(6,10,"SumTimesCitedPatents")," "),t.R7$(2),t.Y8G("ngTemplateOutlet",O)("ngTemplateOutletContext",t.s1E(21,ip,null==(o=g.getStatsByDB("DIIDW"))?null:o.DedupedTimesCited,t.bMT(8,12,"citingPatents"),t.lJ4(20,qs),g.getTotalCitingArticlesRouterParams("patentCitation"),g.taPrefix+"citing-patents-count")),t.R7$(3),t.vxM(t.bMT(11,14,g.isLoadingCitationMetrix$)?12:10),t.R7$(4),t.JRh(t.bMT(15,16,"SumTimesCitedPolicy")),t.R7$(2),t.Y8G("ngTemplateOutlet",O)("ngTemplateOutletContext",t.s1E(28,Bo,null==(u=g.getStatsByDB("PCI"))?null:u.DedupedTimesCited,t.bMT(17,18,"citingPolicyDocuments"),t.lJ4(27,_n),g.getTotalCitingArticlesRouterParams("pciCitation"),g.taPrefix+"citing-policy-count"))}}function Mp(s,M){if(1&s&&(t.j41(0,"a",38),t.nI1(1,"number"),t.EFF(2),t.nI1(3,"number"),t.k0s()),2&s){const o=t.XpG(3),u=o.value,g=o.label,O=o.routingLink,$=o.analyticsCategory,J=o.db,st=o.queryParams,gt=o.dataPendo,zt=t.XpG();t.Y8G("routerLink",O)("queryParams",st)("cdxAnalyticsCategory",$),t.BMQ("data-pendo",gt)("aria-label",t.bMT(1,7,u)+" "+g)("data-test",zt.taPrefix+"-"+J+"-"+g+"-count"),t.R7$(2),t.SpI(" ",t.bMT(3,9,u)," ")}}function yi(s,M){if(1&s&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(3).value;t.R7$(),t.JRh(t.bMT(2,1,o))}}function vp(s,M){if(1&s&&(t.DNE(0,Mp,4,11,"a",38),t.nI1(1,"feature"),t.nI1(2,"uppercase"),t.nI1(3,"entitlements"),t.DNE(4,yi,3,3,"div",29)),2&s){const o=t.XpG(2).db,u=t.XpG();t.vxM(!t.bMT(1,1,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&t.bMT(3,5,t.bMT(2,3,o))&&(t.lJ4(7,Qs).includes(o)||null!=u.authorDetail&&u.authorDetail.authorId)?0:4)}}function rr(s,M){1&s&&(t.j41(0,"div",29),t.EFF(1,"0"),t.k0s())}function rl(s,M){if(1&s&&t.DNE(0,vp,5,8)(1,rr,2,0,"div",29),2&s){const o=t.XpG().value;t.vxM(o&&"0"!==o?0:1)}}function sl(s,M){1&s&&t.eu8(0)}function ll(s,M){if(1&s&&t.DNE(0,sl,1,0,"ng-container",27),2&s){t.XpG(2);const o=t.sdS(16);t.Y8G("ngTemplateOutlet",o)}}function Pp(s,M){1&s&&(t.j41(0,"span",31),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"lowercase"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(3,3,t.bMT(2,1,"noSelfCites"))," "))}function he(s,M){if(1&s&&(t.j41(0,"div",28)(1,"div",29),t.DNE(2,rl,2,1),t.nI1(3,"async"),t.DNE(4,ll,1,1,"ng-container"),t.k0s(),t.j41(5,"h3",30),t.EFF(6),t.k0s(),t.DNE(7,Pp,4,5,"span",31),t.k0s()),2&s){const o=M.label,u=M.showSubLabel,g=t.XpG();t.R7$(2),t.vxM(t.bMT(3,3,g.isLoadingCitationMetrix$)?4:2),t.R7$(4),t.JRh(o),t.R7$(),t.vxM(u?7:-1)}}function wp(s,M){1&s&&(t.j41(0,"div",39),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.JRh(t.bMT(2,1,"noMetricsAvailable")))}function Op(s,M){if(1&s&&(t.j41(0,"a",46),t.nI1(1,"translate"),t.EFF(2),t.k0s()),2&s){const o=t.XpG(3);t.Y8G("routerLink",t.lJ4(6,on))("queryParams",o.queryParams),t.BMQ("aria-label",(o.total_articles||o.wosccPublications||0)+" "+t.bMT(1,4,"publicationLabel"+(1!=o.wosccPublications?"Plural":"Singular"))),t.R7$(2),t.SpI(" ",o.total_articles||o.wosccPublications||0," ")}}function cl(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.SpI(" ",o.total_articles||o.wosccPublications||0," ")}}function Ho(s,M){if(1&s&&(t.qex(0),t.DNE(1,Op,3,7,"a",45),t.nI1(2,"feature"),t.DNE(3,cl,2,1,"ng-template",null,8,t.C5r),t.bVm()),2&s){const o=t.sdS(4),u=t.XpG(2);t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&(null==u.authorDetail?null:u.authorDetail.authorId))("ngIfElse",o)}}function Mi(s,M){1&s&&(t.j41(0,"div",29),t.EFF(1," 0"),t.k0s())}function Ip(s,M){if(1&s&&(t.j41(0,"a",48),t.nI1(1,"number"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&s){const o=t.XpG(3);t.Y8G("routerLink",t.lJ4(10,on))("queryParams",o.getTotalCitingRouterParams()),t.BMQ("aria-label",t.bMT(1,4,null==o.statsData?null:o.statsData.total_citing_articles)+" "+t.bMT(2,6,"CitingArticles")),t.R7$(3),t.SpI(" ",t.bMT(4,8,null==o.statsData?null:o.statsData.total_citing_articles)," ")}}function ne(s,M){if(1&s&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.JRh(t.bMT(2,1,null==o.statsData?null:o.statsData.total_citing_articles))}}function Tp(s,M){if(1&s&&(t.qex(0),t.DNE(1,Ip,5,11,"a",47),t.nI1(2,"feature"),t.DNE(3,ne,3,3,"ng-template",null,8,t.C5r),t.bVm()),2&s){const o=t.sdS(4),u=t.XpG(2);t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&(null==u.statsData?null:u.statsData.total_citing_articles)>0&&(null==u.authorDetail?null:u.authorDetail.authorId))("ngIfElse",o)}}function hl(s,M){1&s&&(t.j41(0,"div",29),t.EFF(1," 0"),t.k0s())}function dl(s,M){if(1&s&&(t.j41(0,"div",28)(1,"div",29),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.j41(4,"h3",30),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"span",31),t.EFF(8),t.nI1(9,"translate"),t.nI1(10,"lowercase"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,3,null==o.statsData?null:o.statsData.total_times_cited_without_self_citations)||0," "),t.R7$(3),t.SpI(" ",t.bMT(6,5,"SumTimesCited")," "),t.R7$(3),t.SpI(" ",t.bMT(10,9,t.bMT(9,7,"noSelfCites"))," ")}}function pl(s,M){if(1&s&&(t.j41(0,"a",50),t.nI1(1,"number"),t.nI1(2,"translate"),t.nI1(3,"translate"),t.nI1(4,"lowercase"),t.EFF(5),t.nI1(6,"number"),t.k0s()),2&s){const o=t.XpG(4);t.Y8G("routerLink",t.lJ4(14,on))("queryParams",o.getTotalCitingRouterParams(!0)),t.BMQ("aria-label",t.bMT(1,4,null==o.statsData?null:o.statsData.total_citing_articles_without_self_citations)+" "+t.bMT(2,6,"CitingArticles")+" "+t.bMT(4,10,t.bMT(3,8,"noSelfCites"))),t.R7$(5),t.SpI(" ",t.bMT(6,12,null==o.statsData?null:o.statsData.total_citing_articles_without_self_citations)," ")}}function me(s,M){if(1&s&&(t.j41(0,"div",29),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.JRh(t.bMT(2,1,null==o.statsData?null:o.statsData.total_citing_articles_without_self_citations)||0)}}function kp(s,M){if(1&s&&(t.qex(0),t.DNE(1,pl,7,15,"a",49),t.nI1(2,"feature"),t.DNE(3,me,3,3,"ng-template",null,8,t.C5r),t.bVm()),2&s){const o=t.sdS(4),u=t.XpG(3);t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&(null==u.statsData?null:u.statsData.total_citing_articles_without_self_citations)>0&&(null==u.authorDetail?null:u.authorDetail.authorId))("ngIfElse",o)}}function Qi(s,M){1&s&&(t.j41(0,"div",29),t.EFF(1," 0"),t.k0s())}function sr(s,M){if(1&s&&(t.j41(0,"div",28)(1,"div",29),t.DNE(2,kp,5,4,"ng-container",42)(3,Qi,2,0,"ng-template",null,7,t.C5r),t.k0s(),t.j41(5,"h3",30),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"span",31),t.EFF(9),t.nI1(10,"translate"),t.nI1(11,"lowercase"),t.k0s()()),2&s){const o=t.sdS(4),u=t.XpG(2);t.R7$(2),t.Y8G("ngIf",(null==u.statsData?null:u.statsData.total_articles)>0)("ngIfElse",o),t.R7$(4),t.SpI(" ",t.bMT(7,4,"CitingArticles"),""),t.R7$(3),t.SpI(" ",t.bMT(11,8,t.bMT(10,6,"noSelfCites"))," ")}}function ee(s,M){if(1&s&&(t.qex(0),t.j41(1,"a",51),t.nI1(2,"number"),t.nI1(3,"translate"),t.EFF(4),t.nI1(5,"number"),t.k0s(),t.j41(6,"h3",30),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.bVm()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("queryParams",o.getTotalCitingArticlesRouterParams("patentCitation"))("routerLink",t.lJ4(13,qs)),t.BMQ("aria-label",t.bMT(2,5,null==o.authorDetail?null:o.authorDetail.diidw_stats.total_citing_articles)+" "+t.bMT(3,7,"citingPatents")),t.R7$(3),t.SpI(" ",t.bMT(5,9,null==o.authorDetail?null:o.authorDetail.diidw_stats.total_citing_articles)||0," "),t.R7$(3),t.JRh(t.bMT(8,11,"citingPatents"))}}function Rp(s,M){if(1&s&&(t.j41(0,"div",52),t.EFF(1),t.nI1(2,"number"),t.k0s(),t.j41(3,"h3",30),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.JRh(t.bMT(2,2,(null==o.authorDetail||null==o.authorDetail.diidw_stats?null:o.authorDetail.diidw_stats.total_citing_articles)||0)),t.R7$(3),t.JRh(t.bMT(5,4,"citingPatents"))}}function ul(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",28)(2,"div",36),t.EFF(3),t.nI1(4,"number"),t.k0s(),t.j41(5,"h3",30),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",28),t.DNE(9,ee,9,14,"ng-container",42),t.nI1(10,"entitlements"),t.nI1(11,"feature"),t.DNE(12,Rp,6,6,"ng-template",null,9,t.C5r),t.k0s(),t.bVm()),2&s){const o=t.sdS(13),u=t.XpG(2);t.R7$(3),t.SpI(" ",t.bMT(4,4,(null==u.authorDetail||null==u.authorDetail.diidw_stats?null:u.authorDetail.diidw_stats.total_times_cited)||0)," "),t.R7$(3),t.SpI(" ",t.bMT(7,6,"SumTimesCitedPatents")," "),t.R7$(3),t.Y8G("ngIf",(null==u.authorDetail?null:u.authorDetail.authorId)&&t.bMT(10,8,"DIIDW")&&(null==u.authorDetail||null==u.authorDetail.diidw_stats?null:u.authorDetail.diidw_stats.total_citing_articles)>0&&t.bMT(11,10,"nxPresentationControl_authorProfile_patentCitation"))("ngIfElse",o)}}function He(s,M){if(1&s&&(t.qex(0),t.j41(1,"a",53),t.nI1(2,"number"),t.nI1(3,"translate"),t.EFF(4),t.nI1(5,"number"),t.k0s(),t.j41(6,"h3",30),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.bVm()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("queryParams",o.getTotalCitingArticlesRouterParams("pciCitation"))("routerLink",t.lJ4(13,_n)),t.BMQ("aria-label",t.bMT(2,5,null==o.authorDetail?null:o.authorDetail.pci_stats.total_citing_articles)+" "+t.bMT(3,7,"citingPolicyDocuments")),t.R7$(3),t.SpI(" ",t.bMT(5,9,null==o.authorDetail?null:o.authorDetail.pci_stats.total_citing_articles)||0," "),t.R7$(3),t.JRh(t.bMT(8,11,"citingPolicyDocuments"))}}function Se(s,M){if(1&s&&(t.j41(0,"div",54),t.EFF(1),t.nI1(2,"number"),t.k0s(),t.j41(3,"h3",30),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,2,(null==o.authorDetail||null==o.authorDetail.pci_stats?null:o.authorDetail.pci_stats.total_citing_articles)||0)," "),t.R7$(3),t.JRh(t.bMT(5,4,"citingPolicyDocuments"))}}function Ap(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",28)(2,"div",37),t.EFF(3),t.nI1(4,"number"),t.k0s(),t.j41(5,"h3",30),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",28),t.DNE(9,He,9,14,"ng-container",42),t.nI1(10,"entitlements"),t.nI1(11,"feature"),t.DNE(12,Se,6,6,"ng-template",null,10,t.C5r),t.k0s(),t.bVm()),2&s){const o=t.sdS(13),u=t.XpG(2);t.R7$(3),t.SpI(" ",t.bMT(4,4,(null==u.authorDetail||null==u.authorDetail.pci_stats?null:u.authorDetail.pci_stats.total_times_cited)||0)," "),t.R7$(3),t.JRh(t.bMT(7,6,"SumTimesCitedPolicy")),t.R7$(3),t.Y8G("ngIf",(null==u.authorDetail?null:u.authorDetail.authorId)&&t.bMT(10,8,"PCI")&&(null==u.authorDetail||null==u.authorDetail.pci_stats?null:u.authorDetail.pci_stats.total_citing_articles)>0&&t.bMT(11,10,"nxPresentationControl_authorProfile_patentCitation"))("ngIfElse",o)}}function Sp(s,M){if(1&s&&(t.nrm(0,"span",40),t.nI1(1,"translate"),t.j41(2,"div",20)(3,"div",41)(4,"div",29),t.EFF(5),t.k0s(),t.j41(6,"h3",30),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",28)(10,"div",29),t.DNE(11,Ho,5,4,"ng-container",42),t.k0s(),t.nrm(12,"h3",43),t.nI1(13,"translate"),t.DNE(14,Mi,2,0,"ng-template",null,6,t.C5r),t.k0s(),t.j41(16,"div",28)(17,"div",29),t.EFF(18),t.nI1(19,"number"),t.k0s(),t.j41(20,"h3",30),t.EFF(21),t.nI1(22,"translate"),t.k0s()(),t.j41(23,"div",28)(24,"div",29),t.DNE(25,Tp,5,4,"ng-container",42)(26,hl,2,0,"ng-template",null,7,t.C5r),t.k0s(),t.j41(28,"h3",30),t.EFF(29),t.nI1(30,"translate"),t.k0s()(),t.DNE(31,dl,11,11,"div",44),t.nI1(32,"feature"),t.DNE(33,sr,12,10,"div",44),t.nI1(34,"feature"),t.DNE(35,ul,14,12,"ng-container",11)(36,Ap,14,12,"ng-container",11),t.k0s()),2&s){const o=t.sdS(15),u=t.sdS(27),g=t.XpG
1();t.Y8G("innerHTML",t.bMT(1,15,"webofScienceCoreCollectionMetrics"),t.npT),t.R7$(5),t.SpI(" ",(null==g.statsData?null:g.statsData.h_index)||0," "),t.R7$(2),t.SpI(" ",t.bMT(8,17,"hIndex")," "),t.R7$(4),t.Y8G("ngIf",g.wosccPublications>0)("ngIfElse",o),t.R7$(),t.Y8G("innerHTML",t.bMT(13,19,"publicationLabel"+(1!=g.wosccPublications?"Plural":"Singular")),t.npT),t.R7$(6),t.SpI(" ",t.bMT(19,21,null==g.statsData?null:g.statsData.total_times_cited)||0," "),t.R7$(3),t.SpI(" ",t.bMT(22,23,"SumTimesCited")," "),t.R7$(4),t.Y8G("ngIf",(null==g.statsData?null:g.statsData.total_articles)>0)("ngIfElse",u),t.R7$(4),t.SpI(" ",t.bMT(30,25,"CitingArticles")," "),t.R7$(2),t.Y8G("ngIf",t.bMT(32,27,"WAT-10642-display-without-self-citation")&&1===g.authorIds.length),t.R7$(2),t.Y8G("ngIf",t.bMT(34,29,"WAT-10642-display-without-self-citation")&&1===g.authorIds.length),t.R7$(2),t.Y8G("ngIf",1===g.authorIds.length),t.R7$(),t.Y8G("ngIf",1===g.authorIds.length)}}function ml(s,M){1&s&&t.nrm(0,"div",55)}let Dp=(()=>{class s extends Rt.${constructor(o,u,g,O){super(u),this.store=o,this.change=u,this.wurs=g,this.router=O,this.metricsDataList=[],this.citationSources=[{db:"WOS",display:!0},{db:"AllDB",display:!0},{db:"OTHER",display:!0}],this.modeMapping=Hs.E,this.SearchMode=tt.k0,this.taPrefix="AuthorPage-Citation-Metrics-"}ngOnChanges(){(0,oe.z)([this.store.select(at.l1,{prop:"WAT-10706-redesign-citation-metric"}).pipe((0,V.Q)(this.destroyed$)),this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o&&"AuthorDetail"===o.view),(0,Ct.s)(1))]).subscribe(([o,u])=>{this.authorDetail=u,this.prePrintPublicationsOnly=this.authorDetail?.publication_summary?.pprnPublications===this.authorDetail?.publication_summary?.totalPublications,this.wosccPublications=this.authorDetail?.publication_summary?.wosccPublications,o?(this.allIndexedPublications=this.authorDetail.claim_status?this.authorDetail?.publication_summary?.indexedPublications:this.authorDetail?.publication_summary?.totalPublications,this.allIndexedPublications>0&&this.allIndexedPublications<1e4&&this.loadCitationData()):(this.statsData=this.authorDetail?.wos_stats,this.total_articles=this.statsData?.total_articles)})}loadCitationData(){this.loadAllIndexedPublication(),this.loadAndGetCitationMetrixData()}ridCheckForCombinedAuthors(){return _t.Y.isRid(this.authorIds.join(","))&&this.authorDetail?.authorId?.split(",").length>=1}getTotalCitingRouterParams(o=!1){const u=this.authorDetail?.authorId.split(","),g=this.authorDetail?.author_name;return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"DXNG",rowText:u.join(" OR ")}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:g}}),dest:o?"non-self-total-citing-articles":"total-citing-articles"}}get queryParams(){const o=this.authorDetail?.authorId.split(","),u=this.authorDetail?.author_name;return{queryJson:JSON.stringify([{rowField:"DXNG",rowText:o.join(" or ")}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:u}})}}getTotalCitingArticlesRouterParams(o){const u=[this.authorDetail?.authorId],g=this.authorDetail?.author_name;return{displayJson:JSON.stringify({key:o,icon:"search",params:{name:g}}),parentSearch:JSON.stringify({mode:"author_publications",database:"WOS",authorId:{type:"spid",value:u.join(" OR ")}}),relation:!0,dest:"summary"}}loadAndGetCitationMetrixData(){this.store.dispatch(new Hn.pe({authorIds:this.authorDetail.authorId||this.authorDetail.rid,allIndexedCount:this.allIndexedPublications,wosCount:this.wosccPublications})),this.getCitationData()}getCitationData(){const o=`author_publications_${this.authorIds.join(",")}_wos_all`,u=`author_publications_${this.authorIds.join(",")}_allIndexed_all`;this.store.select(at.rc({key:o})).pipe((0,W.p)(g=>!!g),(0,Ct.s)(1)).subscribe(g=>{this.wosSearch=g}),this.store.select(at.rc({key:u})).pipe((0,W.p)(g=>!!g),(0,Ct.s)(1)).subscribe(g=>{this.allIndexedSearch=g}),this.isLoadingCitationMetrix$=this.store.select(Y.VF,{authorIds:this.authorIds}),this.store.select(Y.FB,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(g=>!!g),(0,Ct.s)(1)).subscribe(g=>{this.metricsDataList=g})}toggleShowData(o){const u=this.citationSources.find(g=>g.db===o);u.display=!u.display}citationWursEvent(){this.wurs.event({event:"event_query_v2",queryType:"citation_report_search"}),this.wurs.event({event:"event_result_click_v2",type:"cit_report"})}loadAllIndexedPublication(){let o,u=[];ce.X.isOwnProfile$(this.store,this.authorIds).subscribe(st=>{o=!!st}),this.store.select(at.l1,{prop:"nxResearcherProfileCollection"}).pipe((0,Ct.s)(1)).subscribe(st=>u=[...st.split(" "),"DIIDW"]);const $={key:"author",icon:"author",params:{name:this.authorDetail?.publishingName||this.authorDetail?.author_name}},J={mode:tt.k0.author_publications,database:"ALLDB",authorId:ce.X.getAuthorId(this.authorDetail,this.authorIds),display:$,searchOptions:ce.X.getSearchOptionsObject(u,"allIndexed",this.authorDetail?.claim_status),undefined:void 0,analyzeConfig:"profiles"};this.store.dispatch(new at.IV.x7({key:`author_publications_${this.authorIds.join(",")}_allIndexed_all`,search:J,retrieve:{view:"summary",sort:"date-descending",jcr:!0,history:!1,count:50,first:1,analyzes:[]},forceSearch:o})),this.change.detectChanges()}getDB(o){return"WOS"===o?"woscc":"alldb"}getQueryId(o){return"WOS"===o?this.wosSearch?.id:this.allIndexedSearch?.id}getPublicationCount(o){return"WOS"===o?this.wosccPublications:this.allIndexedPublications}getStatsByDB(o){return this.metricsDataList.find(u=>u.ReportLevel==o)}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc),t.rXU(hi.J),t.rXU(pt.Ix))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-publication-metrics"]],inputs:{authorIds:"authorIds"},features:[t.Vt3,t.OA$],decls:17,vars:6,consts:[["citationDatasection",""],["otherCitationSection",""],["citingMetric",""],["noMetricsAvailable",""],["oldTemplate",""],["linearLoader",""],["totalPublicationIsZero",""],["zeroCitingArticles",""],["nonClickable",""],["nonClickablePatentsCited",""],["nonClickablePolicyCited",""],[4,"ngIf"],[1,"summary-section"],[1,"wat-citation-network-heading","margin-bottom-24"],[1,"summary-item"],[1,"summary-count"],[1,"summary-label"],["class","summary-item",4,"ngIf"],[1,"custom-mat-divider"],[1,"wat-citation-network-heading"],[1,"wat-author-metric-main-div"],["mat-button","",1,"database-header",3,"click"],[1,"button-wrapper"],[1,"button-label"],[1,"icon-wrapper"],["aria-hidden","true",1,"wat-arrow-icon",3,"svgIcon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"wat-author-metric-inline-block"],[1,"wat-author-metric"],[1,"wat-author-metric-descriptor"],[1,"wat-author-metric-sub-descriptor"],["data-test","metric-actions",1,"wat-view-citation-report"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","mat-stroked-button","",3,"cdxAnalyticsCategory","routerLink","queryParams"],["disabled","true","mat-stroked-button",""],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","mat-stroked-button","",3,"click","cdxAnalyticsCategory","routerLink","queryParams"],["data-pendo","citedByPatentsCount",1,"wat-author-metric"],["data-pendo","citedByPol
1icyCount",1,"wat-author-metric"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"wat-author-record-publication-title-link","wat-author-metric","no-left-padding",3,"routerLink","queryParams","cdxAnalyticsCategory"],[1,"no-metrics-section"],["data-pendo","data-pendo-publication-metrics",1,"wat-citation-network-heading",3,"innerHTML"],[1,"wat-author-metric-inline-block","wat-author-metric-inline-block"],[4,"ngIf","ngIfElse"],[1,"wat-author-metric-descriptor",3,"innerHTML"],["class","wat-author-metric-inline-block",4,"ngIf"],["class","wat-author-record-publication-title-link wat-author-metric no-left-padding","data-pendo","data-pendo-WoS-CC-count",3,"routerLink","queryParams",4,"ngIf","ngIfElse"],["data-pendo","data-pendo-WoS-CC-count",1,"wat-author-record-publication-title-link","wat-author-metric","no-left-padding",3,"routerLink","queryParams"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-citing-articles","class","wat-author-record-publication-title-link wat-author-metric no-left-padding",3,"routerLink","queryParams",4,"ngIf","ngIfElse"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-citing-articles",1,"wat-author-record-publication-title-link","wat-author-metric","no-left-padding",3,"routerLink","queryParams"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-citing-articles-without-self-citations","class","wat-author-record-publication-title-link wat-author-metric no-left-padding",3,"routerLink","queryParams",4,"ngIf","ngIfElse"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-citing-articles-without-self-citations",1,"wat-author-record-publication-title-link","wat-author-metric","no-left-padding",3,"routerLink","queryParams"],["data-pendo","citingPatents",1,"wat-author-record-publication-title-link","wat-author-metric","no-left-padding",3,"queryParams","routerLink"],["data-pendo","citingPatents",1,"wat-author-metric"],["data-pendo","citingPolicyDocuments",1,"wat-author-record-publication-title-link","wat-author-metric","no-left-padding",3,"queryParams","routerLink"],["data-pendo","citingPolicyDocuments",1,"wat-author-metric"],[1,"linear-loader"]],template:function(u,g){1&u&&(t.DNE(0,er,31,23,"div",11),t.nI1(1,"feature"),t.DNE(2,Vo,5,4),t.nI1(3,"feature"),t.DNE(4,dp,1,1,"ng-container")(5,ol,35,71,"ng-template",null,0,t.C5r)(7,yp,18,34,"ng-template",null,1,t.C5r)(9,he,8,5,"ng-template",null,2,t.C5r)(11,wp,3,3,"ng-template",null,3,t.C5r)(13,Sp,37,31,"ng-template",null,4,t.C5r)(15,ml,1,0,"ng-template",null,5,t.C5r)),2&u&&(t.Y8G("ngIf",!t.bMT(1,2,"WAT-10706-redesign-citation-metric")),t.R7$(2),t.vxM(t.bMT(3,4,"WAT-10706-redesign-citation-metric")?2:4))},dependencies:[Kt.q,pt.Wk,Ft.An,B.bT,B.T3,Mt.$z,ui.P,yt.N,B.Jj,B.Pc,B.GH,B.QX,ht.D9,Z.h],styles:[".wat-citation-network-heading[_ngcontent-%COMP%]{line-height:24px;font-size:18px;font-weight:400}.dropdown-section[_ngcontent-%COMP%]{margin-top:-1.1875rem}.dropdown-section[_ngcontent-%COMP%]   .dropdown-label[_ngcontent-%COMP%]{position:relative;top:1.4375rem;left:.625rem;padding-right:.25rem;background:#fff;font-size:.875rem;padding-left:.25rem;color:#555;font-weight:400;width:7rem;z-index:999999}.dropdown-section[_ngcontent-%COMP%]   .citation-source-dropdown[_ngcontent-%COMP%]{padding:1rem 0 .75rem;height:2.125rem}.doc-count-section[_ngcontent-%COMP%]{padding-bottom:.625rem}.wat-author-record-publication-title-link[_ngcontent-%COMP%]{color:var(--custom-outline-color);font-size:1.875rem;text-align:left!important;margin-bottom:0;word-wrap:break-word;cursor:pointer;font-weight:400}.wat-author-metric[_ngcontent-%COMP%]{font-size:2rem;font-weight:400;line-height:40px}.wat-author-metric-descriptor[_ngcontent-%COMP%]{font-size:1rem;font-weight:400}@media screen and (max-width: 30rem){.wat-author-metric-descriptor[_ngcontent-%COMP%]{padding-right:3rem}}.wat-author-metric-sub-descriptor[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;color:#333!important}@media screen and (max-width: 30rem){.wat-author-metric-sub-descriptor[_ngcontent-%COMP%]{padding-right:3rem}}.wat-author-metric-main-div[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.wat-author-metric-main-div[_ngcontent-%COMP%]   .h-index-flex[_ngcontent-%COMP%]{flex:100%!important}.wat-author-metric-inline-block[_ngcontent-%COMP%]{padding:1rem 0;width:100%;flex:50%}.summary-section[_ngcontent-%COMP%]   .summary-item[_ngcontent-%COMP%]{display:flex;gap:.5rem;font-size:1rem!important;margin-bottom:.25rem!important}.summary-section[_ngcontent-%COMP%]   .summary-item[_ngcontent-%COMP%]   .summary-count[_ngcontent-%COMP%]{flex-basis:2.875rem;flex-grow:0;flex-shrink:0;font-weight:700}
1.selected-chip-name[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;color:#757575;padding-bottom:.875rem;padding-top:.125rem}.selected-chip-name[_ngcontent-%COMP%]   .round-chip[_ngcontent-%COMP%]{background-color:#8367c4;border-radius:1.5rem;line-height:.375rem;color:#fff;font-size:.875rem;padding:.125rem .4375rem .1875rem}.citation-source-heading[_ngcontent-%COMP%]{line-height:1.5rem;font-size:1rem;font-weight:600}.database-header[_ngcontent-%COMP%]{align-items:center;width:100%;text-align:left;margin-top:1.625rem}.database-header[_ngcontent-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.no-metrics-section[_ngcontent-%COMP%]{height:6.25rem;text-align:center;align-content:center}.linear-loader[_ngcontent-%COMP%]{width:5rem;height:1.875rem;background:linear-gradient(to right,#d6caca 5%,#fff 80%);background-size:200% 100%;background-repeat:no-repeat;animation:_ngcontent-%COMP%_slideShade 1s linear infinite}@keyframes _ngcontent-%COMP%_slideShade{0%{background-position:100% 0}to{background-position:0 0}}"]})}}return s})(),gl=(()=>{class s{constructor(o){this.translate=o,this.isMobile$=_t.Y.isMobile$,this.highcharts=N,this.LOCALIZED_TEXT={FIRST:"first_author_position_title",LAST:"last_author_position_title",REPRINT:"reprint_author_position_title"},this.updateLocalization(),this.langSub=this.translate.onLangChange.subscribe(()=>{this.updateLocalization(),this.drawAuthorPositionChart()})}ngOnChanges(){this.drawAuthorPositionChart()}drawAuthorPositionChart(){const u=this.isMobile$.getValue()?.7*window.innerWidth:379,g=[this.firstPositionPercentage,this.lastPositionPercentage,this.reprintPositionPercentage];this.chartOptions={chart:{width:u,height:100,type:"bar"},title:{enabled:!1,text:this.translate.instant("authorPosition"),style:{display:"none"}},xAxis:{categories:[this.LOCALIZED_TEXT.FIRST,this.LOCALIZED_TEXT.LAST,this.LOCALIZED_TEXT.REPRINT],lineWidth:0,minorGridLineWidth:0,labels:{align:"left",reserveSpace:!0,style:{fontSize:16,fontWeight:600,color:"black"}},title:{text:null}},yAxis:{title:{text:""},min:0,max:110,labels:{enabled:!1},gridLineWidth:0},legend:{enabled:!1},tooltip:{enabled:!1},credits:{enabled:!1},plotOptions:{series:{dataLabels:{enabled:!0,useHTML:!0,fontSize:"2px",format:"{y}%",x:10}}},series:[{type:"bar",borderWidth:0,data:g,pointWidth:16,color:"#5E33BF",borderRadius:0,fontSize:16}]}}get firstPositionPercentage(){return Math.round(this.posMatrix.find(o=>"first"===o.name)?.percentage)||0}get lastPositionPercentage(){return Math.round(this.posMatrix.find(o=>"last"===o.name)?.percentage)||0}get reprintPositionPercentage(){return Math.round(this.posMatrix.find(o=>"reprint"===o.name)?.percentage)||0}updateLocalization(){this.LOCALIZED_TEXT.FIRST=this.translate.instant("first_author_position_title"),this.LOCALIZED_TEXT.LAST=this.translate.instant("last_author_position_title"),this.LOCALIZED_TEXT.REPRINT=this.translate.instant("reprint_author_position_title")}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(ht.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-position-length-chart"]],inputs:{posMatrix:"posMatrix"},features:[t.OA$],decls:1,vars:2,consts:[["data-ta","author-position-length-chart",3,"Highcharts","options"]],template:function(u,g){1&u&&t.nrm(0,"highcharts-chart",0),2&u&&t.Y8G("Highcharts",g.highcharts
1)("options",g.chartOptions)},dependencies:[ze.H],encapsulation:2})}}return s})();function Ep(s,M){if(1&s&&(t.j41(0,"div",4),t.nrm(1,"app-author-position-length-chart",5),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.Y8G("posMatrix",o.authorPositionData)}}function Fp(s,M){1&s&&(t.j41(0,"p",6),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"NoPosMatrix")," "))}function Jo(s,M){1&s&&(t.j41(0,"div",7),t.nrm(1,"img",8),t.nI1(2,"translate"),t.j41(3,"div",9),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"br"),t.j41(7,"a",10),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s()()),2&s&&(t.R7$(),t.FS9("alt",t.bMT(2,5,"sampleAuthorPosition")),t.R7$(3),t.SpI(" ",t.bMT(5,7,"thisPremiumFeature")," "),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.R7$(),t.SpI(" ",t.bMT(9,9,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(11,11,"howToAccessWOS")," "))}let $p=(()=>{class s{constructor(o,u){this.store=o,this.change=u,this.taPrefix="AuthorPageAuthorPosition-",this.destroyed$=new Ke.B}ngOnChanges(){this.store.select(Y.ln,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorPositionData=o})}get isWosCCEntitled$(){return this.store.select(at.zg).pipe((0,Et.T)(o=>!!o.WOSCC))}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-position"]],inputs:{authorIds:"authorIds"},features:[t.OA$],decls:19,vars:31,consts:[[1,"wat-author-position-heading"],["class","wat-author-position-metric-div",4,"ngIf"],["data-test","NoPosMatrix",4,"ngIf"],["class","fv-author-position",4,"ngIf"],[1,"wat-author-position-metric-div"],[3,"posMatrix"],["data-test","NoPosMatrix"],[1,"fv-author-position"],["src","/wos/static/images/sample-author-position.png",1,"blurred-image",3,"alt"],[1,"overlay-message"],["target","_blank","rel","noopener noreferrer",3,"wosHelp"]],template:function(u,g){1&u&&(t.j41(0,"div")(1,"h3",0),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Ep,2,1,"div",1),t.nI1(5,"feature"),t.nI1(6,"feature"),t.nI1(7,"feature"),t.nI1(8,"async"),t.DNE(9,Fp,3,3,"p",2),t.nI1(10,"feature"),t.nI1(11,"feature"),t.nI1(12,"feature"),t.nI1(13,"async"),t.DNE(14,Jo,12,13,"div",3),t.nI1(15,"feature"),t.nI1(16,"feature"),t.nI1(17,"feature"),t.nI1(18,"async"),t.k0s()),2&u&&(t.R7$(),t.BMQ("data-ta",g.taPrefix+"AuthorPositionHeading"),t.R7$(),t.JRh(t.bMT(3,5,"authorPosition")),t.R7$(2),t.Y8G("ngIf",(t.bMT(5,7,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(6,9,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(7,11,"nxPresentationControl_authorProfile_blur_authorPosition"))&&(null==g.authorPositionData?null:g.authorPositionData.length)>0&&t.bMT(8,13,g.isWosCCEntitled$)),t.R7$(5),t.Y8G("ngIf",(t.bMT(10,15,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(11,17,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(12,19,"nxPresentationControl_authorProfile_blur_authorPosition"))&&!((null==g.authorPositionData?null:g.authorPositionData.length)>0)&&t.bMT(13,21,g.isWosCCEntitled$)),t.R7$(5),t.Y8G("ngIf",!(t.bMT(15,23,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(16,25,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(17,27,"nxPresentationControl_authorProfile_blur_authorPosition"))||!t.bMT(18,29,g.isWosCCEntitled$)))},dependencies:[On.E,B.bT,gl,B.Jj,ht.D9,Z.h],styles:[".wat-author-position-metric-div[_ngcontent-%COMP%]{position:relative;right:.625rem;bottom:.75rem}.wat-author-position-heading[_ngcontent-%COMP%]{line-height:24px;font-size:18px;margin-bottom:10px!important}.fv-author-position[_ngcontent-%COMP%]{position:relative}.fv-author-position[_ngcontent-%COMP%]   .overlay-message[_ngcontent-%COMP%]{border-color:#000;border-width:.0625rem;border-style:solid;background-color:#fff;position:absolute;top:14%;left:15%;width:12.5rem;padding:.5rem}"]})}}return s})();const Lp=["sidenav"],lr=(s,M)=>({"disabled-link":s,"view-report-mobile":M}),Gp=()=>["/","woscc","general-summary"],jp=s=>({"wat-margin-right-4":s}),Cn=s=>({"wat-authors-pub-arabic":s}),fl=s=>({"wat-margin-right-6":s}),Kn=s=>({"wat-median-citation-arabic":s});function Ge(s,M){1&s&&(t.j41(0,"h2",9),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"authorMetrics")," "))}function Np(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",10),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(2);return t.Njj(g.openMetricsDashboard())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}2&s&&(t.BMQ("aria-label",t.bMT(1,3,"metricDashboard"))("data-pendo","data-pendo-dashboard-button-arrow"),t.R7$(2),t.SpI(" ",t.bMT(3,5,"metricDashboard")," "))}function zp(s,M){if(1&s&&t.nrm(0,"app-publication-metrics",16),2&s){const o=t.XpG(3);t.Y8G("authorIds",o.authorIds)}}function Yp(s,M){1&s&&(t.j41(0,"div",17),t.nrm(1,"mat-spinner",18),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.Y8G("diameter",50),t.BMQ("aria-label",t.bMT(2,2,"loading")))}function Bp(s,M){if(1&s){const o=t.RV6();t.j41(0,"a",22),t.nI1(1,"async"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(4);return t.Njj(g.citationWursEvent())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&s){const o=t.XpG(4);t.Y8G("ngClass",t.l_i(9,lr,!o.authorDetail.claim_status&&o.prePrintPublicationsOnly,t.bMT(1,5,o.isMobile$)))("disabled",!(null!=o.authorDetail&&o.authorDetail.claim_status)&&o.prePrintPublicationsOnly)("routerLink",t.lJ4(12,Gp))("queryParams",o.getCitationReportRouterParams()),t.R7$(2),t.SpI(" ",t.bMT(3,7,"viewCitationReport")," ")}}function cr(s,M){1&s&&(t.j41(0,"button",23),t.nI1(1,"feature"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s&&(t.BMQ("data-pendo",t.bMT(1,2,"nxPresentationControl_authorProfile_disable_citationReport")?"wosfv-disabled-citation-report":null),t.R7$(2),t.SpI(" ",t.bMT(3,4,"viewCitationReport")," "))}function _l(s,M){if(1&s&&(t.j41(0,"div",19)(1,"mat-card-actions",20),t.DNE(2,Bp,4,13,"a",21),t.nI1(3,"feature"),t.DNE(4,cr,4,6,"ng-template",null,1,t.C5r),t.k0s()()),2&s){const o=t.sdS(5),u=t.XpG(3);t.R7$(2),t.Y8G("ngIf",!t.bMT(3,2,"nxPresentationControl_authorProfile_disable_citationReport")&&(null==u.authorDetail||null==u.authorDetail.publication_summary?null:u.authorDetail.publication_summary.wosccPublications)>0&&!u.ridCheckForCombinedAuthors())("ngIfElse",o)}}function hr(s,M){1&s&&(t.j41(0,"div",17),t.nrm(1,"mat-spinner",18),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.Y8G("diameter",50),t.BMQ("aria-label",t.bMT(2,2,"loading")))}function Xp(s,M){if(1&s&&(t.j41(0,"h3",27),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"div",28),t.nrm(4,"mat-icon",29),t.nI1(5,"translate"),t.k0s()()),2&s){const o=t.XpG(4);t.BMQ("data-ta",o.taPrefix+"AuthorImpactBeamplotHeading"),t.R7$(),t.SpI(" ",t.bMT(2,3,"authorImpactSummary")," "),t.R7$(3),t.FS9("matTooltip",t.bMT(5,5,"authorImpactSummaryText"))}}function dr(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",47)(1,"button",48),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(6);return t.Njj(g.viewFullBeamplot())}),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.nI1(7,"translate"),t.k0s()()()}if(2&s){const o=t.XpG(6);t.R7$(),t.BMQ("aria-label",null!=o.authorDetail&&o.authorDetail.claim_status?t.bMT(2,2,"viewFullBeamplot"):t.bMT(3,4,"viewUnClaimedBeamplot")),t.R7$(4),t.JRh(null!=o.authorDetail&&o.authorDetail.claim_status?t.bMT(6,6,"viewFullBeamplot"):t.bMT(7,8,"viewUnClaimedBeamplot"))}}function pr(s,M){if(1&s&&(t.j41(0,"div"),t.nrm(1,"app-author-impact-beamplot-summary",31),t.j41(2,"div",32)(3,"button",33),t.nI1(4,"translate"),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div")(8,"div",34),t.nI1(9,"async"),t.qSk(),t.j41(10,"svg",35),t.nrm(11,"polyline",36),t.j41(12,"marker",37),t.nrm(13,"circle",38),t.k0s()()(),t.joV(),t.j41(14,"div",39),t.nI1(15,"async"),t.EFF(16),t.nI1(17,"translate"),t.k0s()(),t.j41(18,"div",40),t.nI1(19,"async"),t.nrm(20,"mat-icon",41),t.j41(21,"div",42),t.nI1(22,"async"),t.EFF(23),t.nI1(24,"translate"),t.k0s()(),t.j41(25,"div",43),t.nrm(26,"span",44),t.nI1(27,"translate"),t.j41(28,"span",45),t.EFF(29),t.k0s(),t.j41(30,"span"),t.EFF(31),t.nI1(32,"translate"),t.k0s()(),t.DNE(33,dr,8,10,"div",46),t.nI1(34,"feature"),t.k0s()),2&s){const o=t.XpG(5);t.R7$(),t.Y8G("inCitesData",o.validIncitesData),t.R7$(2),t.FS9("matTooltip",t.bMT(4,13,"citationPercentileTooltipText")),t.R7$(2),t.SpI(" ",t.bMT(6,15,"citationPercentileLabel"),""),t.R7$(3),t.Y8G("ngClass",t.eq3(35,jp,t.bMT(9,17,o.isRTL$))),t.R7$(6),t.Y8G("ngClass",t.eq3(37,Cn,t.bMT(15,19,o.isRTL$))),t.R7$(2),t.SpI(" ",t.bMT(17,21,"authorsPublication")," "),t.R7$(2),t.Y8G("ngClass",t.eq3(39,fl,t.bMT(19,23,o.isRTL$))),t.R7$(3),t.Y8G("ngClass",t.eq3(41,Kn,t.bMT(22,25,o.isRTL$))),t.R7$(2),t.SpI(" ",t.bMT(24,27,"medianCitationPercentile")," "),t.R7$(3),t.Y8G("innerHTML",t.bMT(27,29,"PercentileRangeDisplays"),t.npT),t.R7$(3),t.JRh(o.currentYearMinusTwo),t.R7$(2),t.SpI(" ",t.bMT(32,31,"ViewAllPublicationsInFullBeamPlot"),""),t.R7$(2),t.Y8G("ngIf",!t.bMT(34,33,"nxPresentationControl_Researcher_Profile_Disable_ViewBeamPlot"))}}function Vp(s,M){1&s&&(t.j41(0,"div",49)(1,"span",50),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",51),t.EFF(5),t.nI1(6,"translate"),t.nI1(7,"lowercase"),t.k0s()()),2&s&&(t.R7$(2),t.JRh(t.bMT(3,3,"noInCitesDataFound")),t.R7$(2),t.Y8G("wosHelp","authorRecord"),t.R7$(),t.JRh(t.bMT(7,7,t.bMT(6,5,"AuthorImpactHelpPage"))))}function bl(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,pr,35,43,"div",14),t.nI1(2,"async"),t.nI1(3,"async"),t.DNE(4,Vp,8,9,"div",30),t.nI1(5,"async"),t.nI1(6,"async"),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.Y8G("ngIf",(null==o.validIncitesData?null:o.validIncitesData.length)>0&&!t.bMT(2,2,o.isLoading$)&&!t.bMT(3,4,o.IsAuthorWidgetMetricsDataLoading$)),t.R7$(3),t.Y8G("ngIf",0===(null==o.validIncitesData?null:o.validIncitesData.length)&&!t.bMT(5,6,o.IsAuthorWidgetMetricsDataLoading$)&&!t.bMT(6,8,o.isLoading$))}}function ti(s,M){1&s&&(t.j41(0,"div",52),t.nrm(1,"img",53),t.nI1(2,"translate"),t.j41(3,"div",54),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"br"),t.j41(7,"a",55),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s()()),2&s&&(t.R7$(),t.FS9("alt",t.bMT(2,5,"sampleSummaryBeamplot")),t.R7$(3),t.SpI(" ",t.bMT(5,7,"thisPremiumFeature")," "),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.R7$(),t.SpI(" ",t.bMT(9,9,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(11,11,"howToAccessWOS")," "))}function Zi(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,hr,3,4,"div",24),t.nI1(2,"async"),t.nI1(3,"async"),t.DNE(4,Xp,6,7,"h3",25),t.nI1(5,"async"),t.nI1(6,"async"),t.DNE(7,bl,7,10,"div",14),t.nI1(8,"feature"),t.nI1(9,"feature"),t.nI1(10,"feature"),t.nI1(11,"async"),t.DNE(12,ti,12,13,"div",26),t.nI1(13,"feature"),t.nI1(14,"feature"),t.nI1(15,"feature"),t.nI1(16,"async"),t.k0s()),2&s){const o=t.XpG(3);t.R7$(),t.Y8G("ngIf",!t.bMT(2,4,o.isLoading$)&&t.bMT(3,6,o.IsAuthorWidgetMetricsDataLoading$)),t.R7$(3),t.Y8G("ngIf",!t.bMT(5,8,o.isLoading$)&&!t.bMT(6,10,o.IsAuthorWidgetMetricsDataLoading$)),t.R7$(3),t.Y8G("ngIf",((t.bMT(8,12,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(9,14,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(10,16,"nxPresentationControl_authorProfile_blur_beamplot"))||o.isOwnProfile)&&t.bMT(11,18,o.isWosCCEntitled$)),t.R7$(5),t.Y8G("ngIf",!(t.bMT(13,20,"WAT-9927-free-profiles-expansion-toggle")?t.bMT(14,22,"nxPresentationControl_Show_Freemium_Feature"):!t.bMT(15,24,"nxPresentationControl_authorProfile_blur_beamplot"))&&!o.isOwnProfile||!t.bMT(16,26,o.isWosCCEntitled$))}}function Cl(s,M){if(1&s&&t.nrm(0,"app-author-position",16),2&s){const o=t.XpG(3);t.Y8G("authorIds",o.authorIds)}}function Wp(s,M){if(1&s&&(t.j41(0,"mat-card-content",11),t.DNE(1,zp,1,1,"app-publication-metrics",12),t.nI1(2,"feature"),t.nI1(3,"async"),t.DNE(4,Yp,3,4,"ng-template",null,0,t.C5r)(6,_l,6,4,"div",13),t.nI1(7,"feature"),t.nI1(8,"feature"),t.nI1(9,"feature"),t.nrm(10,"mat-divider",7),t.DNE(11,Zi,17,28,"div",14),t.nrm(12,"mat-divider",7),t.DNE(13,Cl,1,1,"app-author-position",15),t.nI1(14,"async"),t.nI1(15,"feature"),t.k0s()),2&s){const o=t.sdS(5),u=t.XpG(2);t.R7$(),t.Y8G("ngIf",!t.bMT(2,5,"nxPresentationControl_Disable_WOSMatrix")&&!t.bMT(3,7,u.isLoadingPublicationStats$))("ngIfElse",o),t.R7$(5),t.Y8G("ngIf",!t.bMT(7,9,"WAT-10706-redesign-citation-metric")&&!t.bMT(8,11,"nxPresentationControl_Disable_WOSMatrix")&&!t.bMT(9,13,"nxPresentationControl_Researcher_Profile_Disable_ViewCitationReport")),t.R7$(5),t.Y8G("ngIf",0!==(null==u.authorDetail||null==u.authorDetail.wos_stats?null:u.authorDetail.wos_stats.total_articles)),t.R7$(2),t.Y8G("ngIf",!t.bMT(14,15,u.IsAuthorWidgetMetricsDataLoading$)&&!t.bMT(15,17,"nxPresentationControl_Disable_Profile_AuthorPosition"))}}function xl(s,M){if(1&s&&(t.j41(0,"mat-card",3)(1,"mat-card-title",4),t.DNE(2,Ge,3,3,"h2",5),t.nI1(3,"feature"),t.DNE(4,Np,4,7,"button",6),t.k0s(),t.nrm(5,"mat-divider",7),t.DNE(6,Wp,16,19,"mat-card-content",8),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",!t.bMT(3,3,"nxPresentationControl_Disable_WOSMatrix")),t.R7$(2),t.Y8G("ngIf",null==o.authorDetail?null:o.authorDetail.claim_status),t.R7$(2),t.Y8G("ngIf",o.authorDetail)}}let ur=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st,gt){super(gt),this.wurs=o,this.store=u,this.windowRef=g,this.authors=O,this.router=$,this.route=J,this.render=st,this.change=gt,this.isMobile$=_t.Y.isMobile$,this.taPrefix="AuthorPageCitationNetwork-",this.validIncitesData=[],this.isRTL$=_t.Y.isRTL$}ngOnChanges(){this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorDetail=o,this.prePrintPublicationsOnly=this.authorDetail?.publication_summary?.pprnPublications===this.authorDetail?.publication_summary?.totalPublications}),this.store.select(Y.cV,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.validIncitesData=o?.filter(u=>parseInt(u.PUBLICATION_DATE,10)!==(new Date).getFullYear()&&parseInt(u.PUBLICATION_DATE,10)!==(new Date).getFullYear()-1),this.currentYearMinusTwo=(new Date).getFullYear()-2,this.change.detectChanges()}),this.IsAuthorWidgetMetricsDataLoading$=this.store.select(Y.n),this.isLoading$=(0,oe.z)([this.store.select(Y.qb),this.store.select(Y.p3)]).pipe((0,Et.T)(o=>o.includes(!0))),this.isLoadingPublicationStats$=this.store.select(Y.cK,{authorIds:this.authorIds.join(",")})}ridCheckForCombinedAuthors(){return _t.Y.isRid(this.authorIds.join(","))&&this.authorDetail?.authorId?.split(",").length>=1}getCitationReportRouterParams(){const o=this.authorDetail?.authorId.split(","),u=this.authorDetail?.publishingName||this.authorDetail?.author_name;return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"DXNG",rowText:o.join(" OR ")}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:u}}
1),dest:"citation-report"}}get isAuthorRecordClaimed(){if(!this.authorDetail?.claimStatuses)return!1;const o=this.authorDetail?.claimStatuses.find(u=>"Claimed"===u.status);return!!o&&o.status===Ae.AZ.claimed}viewFullBeamplot(){this.authorDetail?.claim_status?(this.openMetricsDashboard(),this.revealBeamplot("wat-beam-plot")):(this.store.dispatch(new be.SO({value:1})),this.revealBeamplot("snProfilesBeamplot"))}revealBeamplot(o,u=0){const g=this.windowRef.nativeDocument.getElementById(o);g?setTimeout(()=>{ke.u.skipScroll=!0,g.scrollIntoView({behavior:"smooth",block:"center"}),g.focus({preventScroll:!0})},500):u<40&&setTimeout(()=>this.revealBeamplot(o,u+1),100)}citationWursEvent(){this.wurs.event({event:"event_query_v2",queryType:"citation_report_search"}),this.wurs.event({event:"event_result_click_v2",type:"cit_report"})}get isWosCCEntitled$(){return this.store.select(at.zg).pipe((0,Et.T)(o=>!!o.WOSCC))}openedStartOverlay(){this.render.addClass(document.body,"overlay-open")}closedStartOverlay(){this.render.removeClass(document.body,"overlay-open")}ngOnDestroy(){super.ngOnDestroy(),this.render.removeClass(document.body,"overlay-open")}openMetricsDashboard(){const o=this.authorDetail?.authorId;let u=this.authorDetail?.authorId;this.store.dispatch(new Hn.fq({authorIds:o,rid:this.authorDetail.rid})),this.route.paramMap.subscribe(O=>{u=O.get("authorIds"),_t.Y.isRid(u)&&this.store.select(Y.Hf,{rid:u?.toUpperCase()}).pipe((0,W.p)($=>!!$),(0,V.Q)(this.destroyed$)).subscribe($=>{u=$})}),ke.u.skipScroll=!1,this.router.navigate([{outlets:{overlay:"dashboard-overview/full-metrics-dashboard"}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParams:{authorIds:u},queryParamsHandling:"merge",skipLocationChange:!0})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(hi.J),t.rXU(wt.il),t.rXU(kn.W),t.rXU(ve.m),t.rXU(pt.Ix),t.rXU(pt.nX),t.rXU(t.sFG),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-citation-network"]],viewQuery:function(u,g){if(1&u&&t.GBs(Lp,5),2&u){let O;t.mGM(O=t.lsd())&&(g.sidenav=O.first)}},inputs:{authorIds:"authorIds",isOwnProfile:"isOwnProfile"},features:[t.Vt3,t.OA$],decls:1,vars:1,consts:[["spinner",""],["nonClickable",""],["class","wat-author-metrics-card card-rounded-border",4,"ngIf"],[1,"wat-author-metrics-card","card-rounded-border"],["data-test","author-metrics","id","snProfilesMetrics",1,"metrics-title-container"],["class","author-metrics-card-heading",4,"ngIf"],["mat-stroked-button","","color","primary","class","wat-metric-button","data-ta","dashboard-button",3,"click",4,"ngIf"],[1,"custom-mat-divider"],["data-test","metric-content",4,"ngIf"],[1,"author-metrics-card-heading"],["mat-stroked-button","","color","primary","data-ta","dashboard-button",1,"wat-metric-button",3,"click"],["data-test","metric-content"],[3,"authorIds",4,"ngIf","ngIfElse"],["class","wat-view-citation-report custom-stroked-button","data-test","metric-actions",4,"ngIf"],[4,"ngIf"],[3,"authorIds",4,"ngIf"],[3,"authorIds"],[1,"wat-spinner-marging"],[1,"wat-spinner",3,"diameter"],["data-test","metric-actions",1,"wat-view-citation-report","custom-stroked-button"],[1,"margin-bottom-0"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-citation-report","mat-stroked-button","","color","primary","class","mat-focus-indicator  mat-stroked-button mat-button-base mat-primary view-results-button",3,"ngClass","disabled","routerLink","queryParams","click",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-citation-report","mat-stroked-button","","color","primary",1,"mat-focus-indicator","mat-stroked-button","mat-button-base","mat-primary","view-results-button",3,"click","ngClass","disabled","routerLink","queryParams"],["disabled","true","mat-stroked-button","","color","primary",1,"mat-focus-indicator","mat-stroked-button","mat-button-base","mat-primary","view-results-button"],["class","wat-spinner-marging",4,"ngIf"],["class","wat-beamplot-summary-heading",4,"ngIf"],["class","fv-author-beamplot",4,"ngIf"],[1,"wat-beamplot-summary-heading"],[1,"padding-top-4"],["aria-hidden","false","aria-label","more-info-on-unclaimed-record","svgIcon","info-circle",1,"author-organization-info-circle-icon",3,"matTooltip"],["class","padding-top-16",4,"ngIf"],[3,"inCitesData"],[1,"wat-xAxis-title-div"],["mat-button","","color","primary",1,"wat-citation-button",3,"matTooltip"],[3,"ngClass"],["height","25","width","60",1,"wat-authors-publication-icon"],["points","20,20 50,20",1,"dotted-line"],["id","circle-marker","markerWidth","8","markerHeight","8","refX","5","refY","5"],["cx","5","cy","5","r","1.5",1,"foreground"],[1,"wat-authors-publication",3,"ngClass"],[1,"wat-citation-percentile",3,"ngClass"],["aria-hidden","false","aria-label","annual-citation-dot","svgIcon","annual-citation-percentile-node",1,"wat-annual-median-circle"],[1,"wat-median-citation-percentile-dot",3,"ngClass"],[1,"wat-summary-beamPlot-static-text-color"],[3,"innerHTML"],[1,"wat-margin-left-2","wat-margin-right--2"],["class","wat-beamplot-summary-btn",4,"ngIf"],[1,"wat-beamplot-summary-btn"],["mat-stroked-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-beamplot-view-full",3,"click"],[1,"padding-top-16"],[1,"blackColor"],["target","_blank","rel","noopener noreferrer",1,"purpleColor","link-underline","padding-left-3--reversible",3,"wosHelp"],[1,"fv-author-beamplot"],["src","/wos/static/images/sample-summary-beamplot.png",1,"blurred-image",3,"alt"],[1,"overlay-message"],["target","_blank","rel","noopener noreferrer",3,"wosHelp"]],template:function(u,g){1&u&&t.DNE(0,xl,7,5,"mat-card",2),2&u&&t.Y8G("ngIf",g.authorDetail)},dependencies:[Kt.q,Ce.oV,pt.Wk,On.E,Ft.An,B.YU,B.bT,Mt.It,Mt.$z,Nt.LG,S.RN,S.YY,S.m2,S.dh,ui.P,Ka,Dp,$p,B.Jj,B.GH,ht.D9,Z.h],styles:[".patent-image-sidenav-container{z-index:999}.summary-section{margin-bottom:.75rem}.summary-section .summary-item{display:flex;gap:.5rem;font-size:.875rem!important;margin-bottom:.25rem!important}.summary-section .summary-item .summary-count{flex-basis:1.875rem;flex-grow:0;flex-shrink:0;font-weight:700}.wat-author-metrics-card{padding:1.5rem 1.5rem 1.25rem!important}.wat-author-metrics-card .metrics-title-container{display:flex;justify-content:space-between;align-items:flex-end}.wat-author-metrics-card .author-metrics-card-heading{font-size:1.25rem;line-height:1.625rem;font-weight:600;margin:0}.author-metric-info-circle-icon{height:18px}.wat-citation-ToolTip{font-size:12px;background-color:#6d6d6d;color:#fff;border-width:5px;border-style:solid;border-color:#6d6d6d;border-radius:5px;margin-top:12px}.wat-author-network-heading{line-height:24px;font-weight:600;font-size:17px;margin-bottom:16px!important;margin-top:16px!important}.wat-author-network-authors-list{padding:4px!important;margin-left:4px;margin-bottom:4px;margin-top:4px}.blurred-image{filter:blur(2px)}.fv-author-beamplot{position:relative}.fv-author-beamplot img{max-height:7.1875rem;max-width:18.875rem;height:7.1875rem;width:18.875rem}.fv-author-beamplot .overlay-message{border-color:#000;border-width:.0625rem;border-style:solid;background-color:#fff;position:absolute;top:12%;left:15%;width:12.5rem;padding:.5rem}.wat-author-network-count{float:right;font-size:14px;padding-right:24px;font-weight:600}.wat-network-metric-div{overflow-y:scroll!important;height:154px;border:thin solid #6d6f78}::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment{height:60px;display:block;background-color:transparent}::-webkit-scrollbar-track-piece{background-color:#3b3b3b;border-radius:4px;-webkit-border-radius:4px}::-webkit-scrollbar-thumb:vertical{height:50px;background-color:#666;border:1px solid #6d6f78;border-radius:4px;-webkit-border-radius:4px}.wat-view-citation-report,.wat-beamplot-summary-btn,.wat-view-coAuthor-btn{display:flex;align-items:center;justify-content:center;width:100%}.wat-beamplot-summary-btn{margin-top:1rem!important}.disabled-link{pointer-events:none;text-decoration:none;color:#000;cursor:not-allowed}.wat-view-results-button{background-color:#fff;display:inline;cursor:not-allowed}.view-results-button{width:fit-content;align-items:center}@media screen and (max-width: 30rem){.view-report-mobile{border-radius:6.25rem!important;
1width:18.75rem}}.padding-top-4{padding-top:.25rem}.purpleColor{color:#5e33bf}.blackColor{color:#000}.wat-beamplot-summary-heading{height:1.5rem;color:#000;display:flex;font-size:18px;margin:0!important}.view-beamplot-link{cursor:pointer;text-decoration:underline;font-size:14px;white-space:normal}.wat-beamplot-summary-message{color:#0000008a;margin:10px}.wat-spinner{position:relative;top:30%;margin:auto}.wat-spinner-marging{margin-top:16px}.wat-mat-card-width{max-width:320px}.wat-open-link-color{color:#564695!important;vertical-align:middle;font-size:16px;margin-left:2px}.wat-citation-percentile-label{margin-top:.625rem;text-align:center}.wat-margin-left-2{margin-left:.125rem}.wat-margin-right--2{margin-right:-.125rem}.wat-summary-beamPlot-static-text-color{color:#000;font-size:1rem}.dotted-line{fill:none;stroke:#564695;stroke-width:2;marker:url(#circle-marker)}#circle-marker circle{fill:#564695;stroke:#564695}.annual-citation-dot{border:.1875rem solid rgb(22,171,3);border-radius:50%;width:1.0625rem;height:1.0625rem;vertical-align:middle;margin-right:.125rem;display:inline-block;padding:2px}.wat-percentile-range{margin-left:3.9375rem}.wat-median-citation{margin-left:3.3125rem}.author-organization-info-circle-icon{height:1.125rem;padding-left:.125rem;width:1.125rem}.claim-record-button{width:100%;text-align:center}.wat-no-co-authors-available{font-size:1rem;font-weight:600}.wat-authors-publication{margin-top:-1.125rem;font-size:1rem;font-weight:600;width:15.9375rem;padding-left:5.625rem}@media screen and (max-width: 30rem){.wat-authors-publication{width:13.5rem;padding-left:4.625rem}}.wat-authors-publication-icon{display:flex;padding-left:.9375rem;padding-bottom:.125rem}@media screen and (max-width: 30rem){.wat-authors-publication-icon{padding-left:0}}.wat-citation-percentile{margin-top:.6875rem;margin-left:2.9375rem;margin-bottom:1.25rem}@media screen and (max-width: 30rem){.wat-citation-percentile{margin-left:1.9375rem}}.wat-median-citation-percentile-dot{margin-left:2.6875rem;margin-top:-1.375rem;font-size:1rem;font-weight:600}.wat-citation-network-per-review{line-height:24px;font-size:18px;margin-top:22px!important}.wat-author-record-peer-review-column{padding:.625rem .6875rem}.wat-margin-right-4{margin-right:.25rem}.wat-margin-right-6{margin-right:.625rem}.wat-authors-pub-arabic{margin-right:3.75rem;margin-top:-1.375rem!important}.wat-median-citation-arabic{margin-right:1.875rem;margin-top:-1.375rem!important}.author-matric-button{background-color:#fff}.wat-annual-median-circle{vertical-align:middle!important}.wat-insights-icon{margin-left:-.25rem;height:1.5rem;margin-right:.25rem;margin-top:.1875rem}.wat-author-metric-heading{font-size:1.125rem;font-weight:600}.citation-network-mat-card-content{margin-top:-1.25rem}.wat-total-publications{color:var(--sys-primary)}.wat-margin-top-10{top:.625rem}.wat-left-margin{margin-left:-.6875rem}.wat-left-margin-peer{margin-left:.75rem}.wat-citation-button{transform:translatey(-20%);color:#000!important;height:1.875rem;font-size:.75rem;font-weight:400}.wat-citation-button:hover{text-decoration:underline}.wat-xAxis-title-div{text-align:center;margin-top:-.3125rem}\n"],encapsulation:2})}}return s})();var Je=E(86461);function yl(s,M){1&s&&t.eu8(0)}function mr(s,M){1&s&&t.eu8(0)}function qe(s,M){if(1&s&&(t.j41(0,"div")(1,"mat-card-title"),t.DNE(2,yl,1,0,"ng-container",8)(3,mr,1,0,"ng-container",8),t.k0s()()),2&s){t.XpG();const o=t.sdS(10),u=t.sdS(12);t.R7$(2),t.Y8G("ngTemplateOutlet",u),t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function En(s,M){1&s&&t.eu8(0)}function Ml(s,M){if(1&s&&(t.j41(0,"mat-card-title"),t.DNE(1,En,1,0,"ng-container",8),t.k0s()),2&s){t.XpG(3);const o=t.sdS(12);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Up(s,M){if(1&s){const o=t.RV6();t.j41(0,"a",18),t.bIt("keydown.enter",function(){t.eBV(o);const g=t.XpG().index,O=t.XpG(5);return t.Njj(O.openAuthorPreviewSideNav(g))})("click",function(){t.eBV(o);const g=t.XpG().index,O=t.XpG(5);return t.Njj(O.openAuthorPreviewSideNav(g))}),t.EFF(1),t.k0s()}if(2&s){const o=t.XpG().$implicit;t.R7$(),t.JRh(null==o?null:o.author_name)}}function Hp(s,M){if(1&s&&(t.j41(0,"p",19),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&s){const o=t.XpG().$implicit;t.R7$(),t.SpI(" Top Journal: ",t.bMT(2,1,o.topJournals[0].value)," ")}}function gr(s,M){if(1&s&&(t.qex(0),t.DNE(1,Up,2,1,"a",15),t.j41(2,"p",16),t.EFF(3),t.k0s(),t.DNE(4,Hp,3,3,"p",17),t.bVm()),2&s){const o=M.$implicit;t.R7$(),t.Y8G("ngIf",null==o?null:o.author_name),t.R7$(2),t.SpI(" ",null==o?null:o.institution," "),t.R7$(),t.Y8G("ngIf",(null==o?null:o.topJournals)&&(null==o?null:o.topJournals[0]))}}function Fn(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",20),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(5);return t.Njj(g.toggleSeeMoreAuthor(!g.isSeeMoreAuthor))}),t.j41(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"mat-icon",21),t.k0s()}if(2&s){const o=t.XpG(5);t.R7$(2),t.SpI(" ",t.bMT(3,2,o.isSeeMoreAuthor?"seeLessAuthor":"seeMoreAuthor")," "),t.R7$(2),t.Y8G("svgIcon",o.isSeeMoreAuthor?"arrowKeyUp":"arrowKeyDown")}}function fr(s,M){if(1&s&&(t.j41(0,"div")(1,"a",12),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,gr,5,3,"ng-container",13),t.nI1(5,"slice"),t.nrm(6,"mat-divider",10),t.DNE(7,Fn,5,4,"button",14),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.Y8G("wosHelp","recommendedAuthorText"),t.R7$(),t.SpI(" ",t.bMT(3,4,"recommendedAuthorText")," "),t.R7$(2),t.Y8G("ngForOf",t.brH(5,6,o.recommendedAuthors,0,o.isSeeMoreAuthor?5:2)),t.R7$(3),t.Y8G("ngIf",(null==o.recommendedAuthors?null:o.recommendedAuthors.length)>0)}}function Lt(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,Ml,2,1,"mat-card-title",9),t.nrm(2,"mat-divider",10),t.j41(3,"mat-card-content",11),t.DNE(4,fr,8,10,"div",7),t.k0s()()),2&s){t.XpG(2);const o=t.sdS(8),u=t.XpG();t.R7$(),t.Y8G("ngIf",u.recommendedAuthors),t.R7$(3),t.Y8G("ngIf",0!==(null==u.authorDetail||null==u.authorDetail.wos_stats?null:u.authorDetail.wos_stats.total_articles)&&u.recommendedAuthors)("ngIfElse",o)}}function Jp(s,M){if(1&s&&t.DNE(0,Lt,5,3,"div",7),2&s){t.XpG();const o=t.sdS(6),u=t.XpG();t.Y8G("ngIf",u.recommendedAuthors)("ngIfElse",o)}}function _r(s,M){1&s&&t.eu8(0)}function qp(s,M){1&s&&t.eu8(0)}function vi(s,M){if(1&s&&(t.j41(0,"mat-card-title"),t.DNE(1,_r,1,0,"ng-container",8),t.k0s(),t.nrm(2,"mat-divider",10),t.DNE(3,qp,1,0,"ng-container",8)),2&s){t.XpG();const o=t.sdS(8),u=t.sdS(12);t.R7$(),t.Y8G("ngTemplateOutlet",u),t.R7$(2),t.Y8G("ngTemplateOutlet",o)}}function Qp(s,M){1&s&&(t.j41(0,"mat-card-content"),t.nrm(1,"em",22),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.Y8G("innerHTML",t.bMT(2,1,"noRecommendedAuthors"),t.npT))}function qo(s,M){1&s&&(t.j41(0,"div",24),t.nrm(1,"img",25),t.nI1(2,"translate"),t.j41(3,"div",26),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"br"),t.j41(7,"a",27),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s()()),2&s&&(t.R7$(),t.FS9("alt",t.bMT(2,5,"sampleSummaryBeamplot")),t.R7$(3),t.SpI(" ",t.bMT(5,7,"thisPremiumFeature")," "),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.R7$(),t.SpI(" ",t.bMT(9,9,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(11,11,"howToAccessWOS")," "))}function rn(s,M){1&s&&(t.DNE(0,qo,12,13,"div",23),t.nI1(1,"feature")),2&s&&t.Y8G("ngIf",t.bMT(1,1,"nxPresentationControl_authorRecord_hide_recommendedCard"))}function br(s,M){1&s&&(t.j41(0,"h2",28),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.JRh(t.bMT(2,1,"youMightbeInterestedin")))}function xe(s,M){if(1&s&&(t.j41(0,"mat-card",6),t.DNE(1,qe,4,2,"div",7),t.nI1(2,"feature"),t.DNE(3,Jp,1,2,"ng-template",null,0,t.C5r)(5,vi,4,2,"ng-template",null,1,t.C5r)(7,Qp,3,3,"ng-template",null,2,t.C5r)(9,rn,2,3,"ng-template",null,3,t.C5r)(11,br,3,3,"ng-template",null,4,t.C5r),t.k0s()),2&s){const o=t.sdS(4);t.R7$(),t.Y8G("ngIf",t.bMT(2,2,"nxPresentationControl_authorRecord_hide_recommendedCard"))("ngIfElse",o)}}let Zp=(()=>{class s extends Rt.${constructor(o,u,g){super(g),this.store=o,this.analytics=u,this.isSeeMoreAuthor=!1}ngOnChanges(o){o.authorIds&&(!o.authorIds.previousValue||o.authorIds.previousValue!==o.authorIds.currentValue)&&(this.isSeeMoreAuthor=!1,this.recommendedAuthors=null),this.store.select(Y.tD,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(g=>!!g),(0,V.Q)(this.destroyed$)).subscribe(g=>{this.recommendedAuthors=g}),this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(g=>!!g),(0,V.Q)(this.destroyed$)).subscribe(g=>{this.authorDetail=g,this.change.detectChanges()})}get recommendedAuthorIds(){try{return this.recommendedAuthors.map(o=>o.author_id)}catch{return[]}}openAuthorPreviewSideNav(o){this.store.dispatch(new Je.eN({authorIds:this.recommendedAuthorIds,snowplow:!0,index:o}))}toggleSeeMoreAuthor(o){this.isSeeMoreAuthor=o,_t.Y.trackStructEventWithAddedContextData(this.analytics,{category:H.N.SNOWPLOW_CATEGORIES.AUTHOR_RECOMD_SEE_MORE_LESS,action:H.N.SNOWP
1LOW_ACTIONS.CLICK,value:o?H.N.STRUCT_EVENT_VALUE.TRUE:H.N.STRUCT_EVENT_VALUE.FALSE,context:{contlist:this.authorIds?.toString()}})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(Mo.cu),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-recommended-author-card"]],inputs:{authorIds:"authorIds"},features:[t.Vt3,t.OA$],decls:1,vars:1,consts:[["displayRecommendedData",""],["noRecommendedData",""],["empty",""],["displayBlurredImage",""],["displayTitle",""],["class","wat-author-show-card card-rounded-border",4,"ngIf"],[1,"wat-author-show-card","card-rounded-border"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[4,"ngIf"],["data-test","mat-divider",1,"custom-mat-divider"],[1,"card-content-text","margin-bottom-0"],["rel","noopener noreferrer","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","wos-author-how-recmd-gen","target","_blank",1,"wat-author-recommended-link","wos-standard-link",3,"wosHelp"],[4,"ngFor","ngForOf"],["mat-button","","data-pendo","data-pendo-recommended-authors-showmore","class","seeMoreAuthorFont",3,"click",4,"ngIf"],["data-pendo","data-pendo-recauthor-author","tabindex","0","class","wat-author-recommended-names wos-standard-link",3,"keydown.enter","click",4,"ngIf"],[1,"wat-author-org"],["class","wat-author-top-journal",4,"ngIf"],["data-pendo","data-pendo-recauthor-author","tabindex","0",1,"wat-author-recommended-names","wos-standard-link",3,"keydown.enter","click"],[1,"wat-author-top-journal"],["mat-button","","data-pendo","data-pendo-recommended-authors-showmore",1,"seeMoreAuthorFont",3,"click"],["iconPositionEnd","","aria-hidden","true",1,"wat-arrow-icon",3,"svgIcon"],[3,"innerHTML"],["class","fv-recommmended-author",4,"ngIf"],[1,"fv-recommmended-author"],["src","/wos/static/images/sample-recommended-authors.png",1,"blurred-image",3,"alt"],[1,"overlay-message"],["target","_blank","rel","noopener noreferrer",3,"wosHelp"],[1,"title-text"]],template:function(u,g){1&u&&t.DNE(0,xe,13,4,"mat-card",5),2&u&&t.Y8G("ngIf",null==g.authorDetail?null:g.authorDetail.claim_status)},dependencies:[Kt.q,On.E,Ft.An,B.Sq,B.bT,B.T3,Mt.$z,S.RN,S.m2,S.dh,ui.P,B.P9,B.PV,ht.D9,Z.h],styles:[".wat-author-show-card[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 2.5rem;height:fit-content}.title-text[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.625rem;font-weight:400}.card-content-text[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.5rem}.wat-author-recommended-names[_ngcontent-%COMP%]{display:block;margin-bottom:-.0625rem;cursor:pointer}.wat-author-recommended-link[_ngcontent-%COMP%]{display:block;margin-bottom:1.25rem;cursor:pointer}.wat-author-top-journal[_ngcontent-%COMP%]{margin-top:-.9375rem;font-size:1rem;color:#000}.wat-author-org[_ngcontent-%COMP%]{margin-top:.1875rem;font-size:1rem;color:#000}.wat-arrow-icon[_ngcontent-%COMP%]{width:1.5rem!important;height:1.5rem!important;margin:0 0 0 .25rem!important}.seeMoreAuthorFont[_ngcontent-%COMP%]{font-size:1rem;line-height:1.25rem}.fv-recommmended-author[_ngcontent-%COMP%]{position:relative}.fv-recommmended-author[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:12.5rem;max-width:21.875rem;height:12.5rem;width:21.875rem}.fv-recommmended-author[_ngcontent-%COMP%]   .overlay-message[_ngcontent-%COMP%]{border-color:#000;border-width:.0625rem;border-style:solid;background-color:#fff;position:absolute;top:25%;left:15%;width:12.5rem;padding:.5rem;font-size:1rem;font-weight:400}"]})}}return s})();var vl=E(28539),Pl=E(99637),Qo=E(1134);const Kp=s=>({"scroll-bar":s}),tu=()=>["/","woscc","general-summary"],ei=s=>({query:s,disableEdit:"true"}),Cr=s=>["/","author","record",s];function eu(s,M){1&s&&t.eu8(0)}function nu(s,M){1&s&&t.eu8(0)}function $n(s,M){if(1&s&&(t.j41(0,"div")(1,"mat-card-title"),t.DNE(2,eu,1,0,"ng-container",9)(3,nu,1,0,"ng-container",9),t.k0s()()),2&s){t.XpG(2);const o=t.sdS(5),u=t.sdS(7);t.R7$(2),t.Y8G("ngTemplateOutlet",u),t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Zo(s,M){1&s&&t.eu8(0)}function xr(s,M){1&s&&t.eu8(0)}function yr(s,M){if(1&s&&(t.j41(0,"mat-card-title"),t.DNE(1,Zo,1,0,"ng-container",9),t.k0s(),t.DNE(2,xr,1,0,"ng-container",9)),2&s){t.XpG(2);const o=t.sdS(7),u=t.sdS(9);t.R7$(),t.Y8G("ngTemplateOutlet",o),t.R7$(),t.Y8G("ngTemplateOutlet",u)}}function iu(s,M){if(1&s&&(t.j41(0,"mat-card",7),t.DNE(1,$n,4,2,"div",8),t.nI1(2,"feature"),t.DNE(3,yr,3,2,"ng-template",null,3,t.C5r),t.k0s()),2&s){const o=t.sdS(4);t.R7$(),t.Y8G("ngIf",t.bMT(2,2,"nxPresentationControl_authorProfile_blur_authorNetwork"))("ngIfElse",o)}}function wl(s,M){1&s&&t.eu8(0)}function Ol(s,M){1&s&&t.eu8(0)}function ou(s,M){if(1&s&&(t.j41(0,"div")(1,"mat-card-title"),t.DNE(2,wl,1,0,"ng-container",9)(3,Ol,1,0,"ng-container",9),t.k0s()()),2&s){t.XpG(2);const o=t.sdS(5),u=t.sdS(7);t.R7$(2),t.Y8G("ngTemplateOutlet",u),t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Il(s,M){1&s&&t.eu8(0)}function Tl(s,M){if(1&s&&(t.j41(0,"mat-card-title"),t.DNE(1,Il,1,0,"ng-container",9),t.k0s()),2&s){t.XpG(3);const o=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function au(s,M){if(1&s&&(t.j41(0,"a",20),t.EFF(1),t.nI1(2,"wosrefinevaluetranslate"),t.k0s()),2&s){const o=t.XpG().$implicit;t.Y8G("routerLink",t.eq3(4,Cr,null==o?null:o.Key.split(".")[1])),t.R7$(),t.SpI(" ",t.bMT(2,2,null==o?null:o.Key)," ")}}function ru(s,M){if(1&s&&(t.j41(0,"div",17)(1,"a",18),t.EFF(2),t.k0s(),t.DNE(3,au,3,6,"a",19),t.k0s()),2&s){let o;const u=M.$implicit,g=M.index,O=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.lJ4(5,tu))("queryParams",t.eq3(6,ei,O.buildDocSummaryQuery(null==u||null==u.Key||null==u.Key.split||null==(o=u.Key.split("."))?null:o[
11]))),t.BMQ("data-test",O.taPrefix+"coauthor-count"+g),t.R7$(),t.SpI(" ",null==u?null:u.Value," "),t.R7$(),t.Y8G("ngIf",u)}}function su(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,ru,4,8,"div",16),t.k0s()),2&s){const o=t.XpG(4);t.R7$(),t.Y8G("ngForOf",o.coAuthorDataFromElastic)}}function kl(s,M){if(1&s){const o=t.RV6();t.j41(0,"div"),t.DNE(1,Tl,2,1,"mat-card-title",5),t.nI1(2,"async"),t.nrm(3,"mat-divider",10),t.j41(4,"mat-card-content",11),t.DNE(5,su,2,1,"div",8),t.nI1(6,"async"),t.k0s(),t.j41(7,"div",12)(8,"button",13),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.viewCoAuthorVisualization())}),t.nrm(9,"mat-icon",14),t.j41(10,"span",15),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()()}if(2&s){t.XpG(2);const o=t.sdS(9),u=t.XpG();t.R7$(),t.Y8G("ngIf",u.coAuthorDataFromElastic||t.bMT(2,6,u.isWosCCEntitled$)),t.R7$(3),t.Y8G("ngClass",t.eq3(12,Kp,(null==u.coAuthorDataFromElastic?null:u.coAuthorDataFromElastic.length)>5)),t.R7$(),t.Y8G("ngIf",(null==u.coAuthorDataFromElastic?null:u.coAuthorDataFromElastic.length)>0&&t.bMT(6,8,u.isWosCCEntitled$))("ngIfElse",o),t.R7$(3),t.BMQ("data-test",u.taPrefix+"coauthor-visualization-btn"),t.R7$(3),t.JRh(t.bMT(12,10,"viewCoAuthorVisualization"))}}function Mr(s,M){if(1&s&&(t.j41(0,"mat-card",7),t.DNE(1,ou,4,2,"div",8),t.nI1(2,"feature"),t.DNE(3,kl,13,14,"ng-template",null,4,t.C5r),t.k0s()),2&s){const o=t.sdS(4);t.R7$(),t.Y8G("ngIf",t.bMT(2,2,"nxPresentationControl_authorProfile_blur_authorNetwork"))("ngIfElse",o)}}function vr(s,M){if(1&s&&(t.j41(0,"div",21),t.nrm(1,"img",22),t.nI1(2,"translate"),t.j41(3,"div",23),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"br"),t.j41(7,"a",24),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.nI1(11,"translate"),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(),t.FS9("alt",t.bMT(2,7,"sampleAuthorNetowrk")),t.Y8G("src","/wos/static/images/view-coauthor-visualization.png",t.B4B),t.BMQ("data-test",o.taPrefix+"blur-coauthor"),t.R7$(3),t.SpI(" ",t.bMT(5,9,"thisPremiumFeature")," "),t.R7$(3),t.Y8G("wosHelp","learnMore"),t.R7$(),t.SpI(" ",t.bMT(9,11,"learnMore")," "),t.R7$(2),t.SpI(" ",t.bMT(11,13,"howToAccessWOS")," ")}}function Ki(s,M){1&s&&(t.j41(0,"h2",25),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"coAuthors")," "))}function Rl(s,M){1&s&&(t.j41(0,"mat-card-content",26),t.nrm(1,"em",27),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.Y8G("innerHTML",t.bMT(2,1,"noCoAuthors"),t.npT))}function lu(s,M){if(1&s&&(t.qex(0),t.DNE(1,iu,5,4,"mat-card",6)(2,Mr,5,4,"mat-card",6),t.nI1(3,"async"),t.DNE(4,vr,12,15,"ng-template",null,0,t.C5r)(6,Ki,3,3,"ng-template",null,1,t.C5r)(8,Rl,3,3,"ng-template",null,2,t.C5r),t.bVm()),2&s){const o=M.ngIf,u=t.XpG();t.R7$(),t.Y8G("ngIf",0===(null==o||null==o.publication_summary?null:o.publication_summary.wosccPublications)),t.R7$(),t.Y8G("ngIf",(null==u.coAuthorDataFromElastic?null:u.coAuthorDataFromElastic.length)>0&&!t.bMT(3,2,u.isAuthorNameLoading$)&&(null==o||null==o.publication_summary?null:o.publication_summary.wosccPublications)>0)}}let cu=(()=>{class s{constructor(o,u){this.store=o,this.sidebar=u,this.destroyed$=new Ke.B,this.taPrefix="AuthorPage-CoAuthor-"}get isWosCCEntitled$(){return this.store.select(at.zg).pipe((0,Et.T)(o=>!!o.WOSCC))}ngOnChanges(){this.isAuthorNameLoading$=this.store.select(Y.hT),this.authorDetail$=this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}),this.store.select(Y.Gm).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>{this.authorNames=g});const o=`author_publications_${this.authorIds.join(",")}_wos_all`,u=_t.Y.buildAnalyzeRequestString("DX2NG",101);this.store.select(at.rc({key:o})).pipe((0,W.p)(g=>!!g),(0,Ct.s)(1),(0,Xe.n)(g=>this.store.select(at.dT,{qid:g.id,field:u}).pipe((0,W.p)(O=>!!O),(0,Ct.s)(1),(0,Et.T)(O=>O.Values.filter($=>!this.authorIds.includes($.Key.split(".")[1])))))).subscribe(g=>{this.coAuthorDataFromElastic=g})}viewCoAuthorVisualization(){const o=this.coAuthorDataFromElastic.map(u=>{const g=u.Key.split(".")[1];return{count:u.Value,authorName:this.authorNames[g],authorId:Number(g)}});this.authorDetail$.pipe((0,Ct.s)(1)).subscribe(u=>{this.sidebar.open({component:vl.X,inputs:{coAuthors:o,authorName:u?.publishingName||u?.author_name,uniqueId:u?.authorId},side:"right",width:"auto",hideOverFlow:!1})})}buildDocSummaryQuery(o){return`DXNG=(${this.authorIds[0]}) AND DXNG=(${o})`}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(Pl.o))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-network"]],inputs:{authorIds:"authorIds"},features:[t.OA$],decls:2,vars:3,consts:[["displayBlurredImage",""],["displayTitle",""],["empty",""],["noData",""],["displayCoAuthorData",""],[4,"ngIf"],["data-test","claimed-author","class","author-network-card card-rounded-border",4,"ngIf"],["data-test","claimed-author",1,"author-network-card","card-rounded-border"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["data-test","mat-divider",1,"custom-mat-divider"],[1,"margin-bottom-0",3,"ngClass"],[1,"wat-view-coAuthor-btn"],["mat-stroked-button","",1,"view-coAuthor-button",3,"click"],["svgIcon","network",1,"svg-icon-14","margin-right-5--reversible","margin-bottom-3"],[1,"btn-txt"],["class","wat-author-network-container",4,"ngFor","ngForOf"],[1,"wat-author-network-container"],[1,"author-network-count","wos-standard-link","cursor-pointer",3,"routerLink","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-author-network","class","authors-list-link wos-standard-link",3,"routerLink",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WOS-authorrecord-author-network",1,"authors-list-link","wos-standard-link",3,"routerLink"],[1,"fv-author-network"],[1,"blurred-image",3,"src","alt"],[1,"overlay-message"],["target","_blank","rel","noopener noreferrer",3,"wosHelp"],["data-pendo","data-
1pendo-co-authors",1,"wat-author-network-heading"],[1,"margin-top-20","mat-drawer-inner-container"],[3,"innerHTML"]],template:function(u,g){1&u&&(t.DNE(0,lu,10,4,"ng-container",5),t.nI1(1,"async")),2&u&&t.Y8G("ngIf",t.bMT(1,1,g.authorDetail$))},dependencies:[Kt.q,pt.Wk,On.E,Ft.An,B.YU,B.Sq,B.bT,B.T3,Mt.$z,S.RN,S.m2,S.dh,ui.P,B.Jj,ht.D9,Z.h,Qo.h],styles:[".author-network-card[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 2.5rem}.author-network-card[_ngcontent-%COMP%]   .mat-mdc-card-content[_ngcontent-%COMP%]{padding:1.5px 2px 0!important;height:7.34375rem}.author-network-card[_ngcontent-%COMP%]   .wat-author-network-heading[_ngcontent-%COMP%]{line-height:1.625rem;font-size:1.25rem;font-weight:600;color:#000}.author-network-card[_ngcontent-%COMP%]   .author-metric-info-circle-icon[_ngcontent-%COMP%]{height:1.125rem}.author-network-card[_ngcontent-%COMP%]   .wat-author-network-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;height:2.5rem}.author-network-card[_ngcontent-%COMP%]   .author-network-count[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;padding-right:.3125rem;flex:0 0 3.125rem}.author-network-card[_ngcontent-%COMP%]   .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.author-network-card[_ngcontent-%COMP%]   .authors-list-link[_ngcontent-%COMP%]{flex:1;font-size:1rem;line-height:1.5rem;margin-inline-start:.3125rem;color:#5e33bf;height:1.5rem!important;min-height:1.5rem!important}.author-network-card[_ngcontent-%COMP%]   .fv-author-network[_ngcontent-%COMP%]{position:relative}.author-network-card[_ngcontent-%COMP%]   .fv-author-network[_ngcontent-%COMP%]   .blurred-image[_ngcontent-%COMP%]{filter:blur(2px)}.author-network-card[_ngcontent-%COMP%]   .fv-author-network[_ngcontent-%COMP%]   .overlay-message[_ngcontent-%COMP%]{border-color:#000;border-width:.0625rem;border-style:solid;background-color:#fff;position:absolute;top:25%;left:15%;width:12.5rem;padding:.5rem;font-size:1rem;font-weight:400}.author-network-card[_ngcontent-%COMP%]   .view-coAuthor-button[_ngcontent-%COMP%]{margin-left:1.5rem;margin-top:1rem;font-size:1rem;line-height:1.25rem}.author-network-card[_ngcontent-%COMP%]   .btn-txt[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:inherit}"]})}}return s})();function Al(s,M){if(1&s&&t.nrm(0,"app-recommended-author-card",9),2&s){const o=t.XpG(2);t.Y8G("authorIds",o.authorIds)}}function to(s,M){if(1&s&&t.nrm(0,"app-author-network",9),2&s){const o=t.XpG(2);t.Y8G("authorIds",o.authorIds)}}function Sl(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"app-citation-network",5),t.k0s(),t.j41(3,"div",6),t.DNE(4,Al,1,1,"app-recommended-author-card",7),t.nI1(5,"async"),t.k0s(),t.j41(6,"div",8),t.DNE(7,to,1,1,"app-author-network",7),t.k0s(),t.bVm()),2&s){const o=t.XpG();t.R7$(2),t.Y8G("authorIds",o.authorIds)("isOwnProfile",o.isOwnProfile),t.R7$(2),t.Y8G("ngIf",!t.bMT(5,4,o.IsAuthorWidgetMetricsDataLoading$)),t.R7$(3),t.Y8G("ngIf",1===(null==o.authorIds?null:o.authorIds.length))}}let hu=(()=>{class s{constructor(o){this.store=o}ngOnChanges(o){o.authorIds&&(!o.authorIds.previousValue||o.authorIds.previousValue!==o.authorIds.currentValue)&&this.store.dispatch(new Hn.ln({authorIds:this.authorIds.join(",")}))}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-metrics-column"]],inputs:{authorIds:"authorIds",isOwnProfile:"isOwnProfile",isClaimed:"isClaimed"},features:[t.OA$],decls:5,vars:5,consts:[[1,"metric-section"],[1,"identity"],[3,"isOwnProfile","authorIds"],[4,"ngIf"],[1,"citation-network"],[3,"authorIds","isOwnProfile"],[1,"recommended-author"],[3,"authorIds",4,"ngIf"],[1,"author-network"],[3,"authorIds"]],template:function(u,g){1&u&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"app-author-record-identity",2),t.k0s(),t.DNE(3,Sl,8,6,"ng-container",3),t.nI1(4,"feature"),t.k0s()),2&u&&(t.R7$(2),t.Y8G("isOwnProfile",g.isOwnProfile)("authorIds",g.authorIds),t.R7$(),t.Y8G("ngIf",!t.bMT(4,3,"nxPresentationControl_cancelled_blur_author_profile")||g.isClaimed))},dependencies:[B.bT,An,ur,Zp,cu,B.Jj,Z.h],styles:['.metric-section[_ngcontent-%COMP%]{display:grid;grid-template-areas:"identity" "citation-network" "recommended-author" "author-network";grid-template-columns:auto;grid-template-rows:auto;grid-auto-columns:max-content;grid-auto-rows:max-content}@media only screen and (min-width: 40.625rem) and (max-width: 64rem){.metric-section[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr;grid-template-areas:"citation-network identity" "citation-network recommended-author" "citation-network author-network";column-gap:1rem}}@media only screen and (min-width: 23.75rem) and (max-width: 40.625rem){.metric-section[_ngcontent-%COMP%]{grid-template-columns:auto;grid-template-areas:"identity" "citation-network" "recommended-author" "author-network"}}@media screen and (max-width: 23.75rem){.metric-section[_ngcontent-%COMP%]{display:block}}.metric-section[_ngcontent-%COMP%]   .identity[_ngcontent-%COMP%]{grid-area:identity}.metric-section[_ngcontent-%COMP%]   .citation-network[_ngcontent-%COMP%]{grid-area:citation-network;margin-bottom:1rem}.metric-section[_ngcontent-%COMP%]   .recommended-author[_ngcontent-%COMP%]{grid-area:recommended-author;margin-bottom:1rem}.metric-section[_ngcontent-%COMP%]   .author-network[_ngcontent-%COMP%]{grid-area:author-network;margin-bottom:1rem}']})}}return s})();var du=E(70799),Ko=E(58704);const ni=()=>["/","alerts","manage","author-publication-alerts","1"];function Pr(s,M){1&s&&(t.qex(0),t.j41(1,"button",2)(2,"mat-icon",3),t.nI1(3,"translate"),t.EFF(4," notifications_active "),t.k0s(),t.nrm(5,"h2",4),t.nI1(6,"translate"),t.k0s(),t.bVm()),2&s&&(t.R7$(),t.Y8G("routerLink",t.lJ4(7,ni)),t.R7$(),t.Y8G("matTooltip",t.bMT(3,3,"authorAlertsExistMsg")),t.R7$(3),t.Y8G("innerHTML",t.bMT(6,5,"watManageAlerts"),t.npT))}function pu(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(2);return t.Njj(g.openCreateAuthorAlertOverlay())}),t.j41(1,"mat-icon",7),t.EFF(2,"add_alert"),t.k0s(),t.j41(3,"span",8),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}2&s&&(t.R7$(4),t.JRh(t.bMT(5,1,"addAlert")))}function uu(s,M){1&s&&(t.DNE(0,pu,6,3,"button",5),t.nI1(1,"feature")),2&s&&t.Y8G("ngIf",!t.bMT(1,1,"nxPresentationControl_Disable_Profile_AddAlert"))}let mu=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J){super(J,$),this.router=o,this.store=u,this.alertStore=g,this.route=O,this.hasAuthorAlerts=!1}ngOnInit(){this.signedIn&&(this.store.dispatch(new Ko.Rw.Bc({useCache:!0})),this.store.select(Ko.xN).pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o)).subscribe(o=>{this.authorAlertSpids=o,this.checkAlertExist()}))}ngOnChanges(o){o.authorId&&this.authorAlertSpids&&(this.checkAlertExist(),this.change.detectChanges())}openCreateAuthorAlertOverlay(){ke.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"alert/author/"+this.authorId}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"})}checkAlertExist(){this.hasAuthorAlerts=!(!this.authorAlertSpids.authorCitation.includes(this.authorId)||!this.authorAlertSpids.authorPublication.includes(this.authorId))}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(pt.Ix),t.rXU(wt.il),t.rXU(wt.il),t.rXU(pt.nX),t.rXU(ht.c$),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-alerts-option"]],inputs:{authorId:"authorId",signedIn:"signedIn"},features:[t.Vt3,t.OA$],decls:3,vars:2,consts:[["hasNoAlert",""],[4,"ngIf","ngIfElse"],["color","primary","role","link","mat-button","","routerLinkActive","current",1,"wat-toggle-button-padding-0","manage-alert-gap",3,"routerLink"],["inline","true",1,"font-size-24","manage-alert-icon",3,"matTooltip"],[1,"manage-alert",3,"innerHTML"],["mat-button","","class","wat-toggle-button-padding-0 add-alert-gap",3,"click",4,"ngIf"],["mat-button","",1,"wat-toggle-button-padding-0","add-alert-gap",3,"click"],["inline","true","color","primary",1,"font-size-20","add-alert-icon"],[1,"add-alert"]],template:function(u,g){if(1&u&&t.DNE(0,Pr,7,8,"ng-container",1)(1,uu,2,3,"ng-template",null,0,t.C5r),2&u){const O=t.sdS(2);t.Y8G("ngIf",g.hasAuthorAlerts)("ngIfElse",O)}},dependencies:[Ce.oV,pt.Wk,pt.wQ,Ft.An,B.bT,Mt.$z,ht.D9,Z.h],styles:[".add-alert[_ngcontent-%COMP%]{display:block;font-size:.875rem!important;margin-top:-.625rem}.manage-alert-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}@media screen and (max-width: 30rem){.manage-alert-icon[_ngcontent-%COMP%]{font-size:1.125rem!important}}.add-alert-icon[_ngcontent-%COMP%]{margin-left:.375rem}.manage-alert[_ngcontent-%COMP%]{font-size:.875rem!important;margin:-.375rem 0 0}@media screen and (max-width: 30rem){.manage-alert[_ngcontent-%COMP%]{font-size:.75rem!important}}.wat-toggle-button-padding-0[_ngcontent-%COMP%]{flex-flow:column;padding:0!important;width:5.4375rem;height:4.375rem;border-radius:0}@media screen and (max-width: 30rem){.wat-toggle-button-padding-0[_ngcontent-%COMP%]{width:4.875rem}}.manage-alert-gap[_ngcontent-%COMP%]{gap:.75rem}.add-alert-gap[_ngcontent-%COMP%]{gap:1.25rem}"]})}}return s})();var gu=E(70152),Dl=E(70274),fu=E(22806),_u=E(71985),bu=E(57546),El=E(30184);function Cu(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",4)(1,"h1",5),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",6),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.closeButton())}),t.j41(5,"mat-icon",7),t.EFF(6,"close"),t.k0s()()(),t.j41(7,"div",8),t.nrm(8,"input",9),t.j41(9,"button",10),t.nI1(10,"translate"),t.nI1(11,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.closeButton())}),t.j41(12,"span",11),t.EFF(13),t.nI1(14,"translate"),t.k0s()()(),t.j41(15,"div",12),t.nrm(16,"mat-divider",13),t.j41(17,"span",14),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.nrm(20,"mat-divider",13),t.k0s(),t.j41(21,"h2",15),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"div",16),t.nrm(25,"qrcode",17),t.j41(26,"a",18),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.generateQRCode())})("keydown.enter",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.generateQRCode())}),t.EFF(27),t.nI1(28,"translate"),t.k0s()(),t.nrm(29,"div",19),t.nI1(30,"translate")}if(2&s){const o=t.XpG();t.R7$(2),t.JRh(t.bMT(3,15,"shareAuthorProfile")),t.R7$(6),t.FS9("value",o.getAuthorRecordUrl()),t.R7$(),t.Y8G("appClickToCopy",o.getAuthorRecordUrl())("message",t.bMT(10,17,"profileLink")),t.BMQ("aria-label",t.bMT(11,19,"shareAuthorCopyLink")),t.R7$(4),t.JRh(t.bMT(14,21,"shareAuthorCopyLink")),t.R7$(5),t.JRh(t.bMT(19,23,"or")),t.R7$(4),t.JRh(t.bMT(23,25,"scanQRCode")),t.R7$(3),t.Y8G("qrdata",o.getAuthorRecordUrl())("width",300)("imageHeight",45)("imageWidth",45)("errorCorrectionLevel","M"),t.R7$(2),t.JRh(t.bMT(28,27,"downloadQRCode")),t.R7$(2),t.Y8G("innerHTML",t.bMT(30,29,"shareProfileMessage"),t.npT)}}let xu=(()=>{class s{constructor(o,u,g,O,$){this.downloadService=o,this.dialog=u,this.config=g,this.translate=O,this.store=$,this.destroyed$=new Ke.B}ngOnChanges(){this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorDetails=o}),this.store.select(Y._A,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.profileData=o}),this.store.select(at.l1,{prop:"nxPresentationControl_Show_Premium_Feature"}).pipe((0,V.Q)(this.destroyed$)).subscribe(o=>{this.premiumFeature=o})}ngAfterViewChecked(){document.querySelectorAll(".cdk-focus-trap-anchor").forEach(u=>{"true"===u.getAttribute("aria-hidden")&&u.removeAttribute("aria-hidden")})}generateQRCode(){const o=new Map,u={authorname:this.authorDetails.publishingName?this.authorDetails.publishingName:this.authorDetails.authorAliasName,organization:this.profileData?.primaryOrganization||(!this.authorDetails?.claim_status&&this.premiumFeature?this.authorDetails.primaryAffiliation:null)},O=document.querySelector(".qrcode-image qrcode canvas").toDataURL("image/png"),$=new Image;if($.src=O,o.set("qrCode",$),this.authorDetails?.claim_status){const J=new Image;J.src="/wos/static/images/check_circle_green.svg",o.set("icon",J)}if(this.authorDetails?.photoUrlLarge){const J=new Image;J.src=this.authorDetails.photoUrlLarge.replace(/^https:\/\/([a-zA-Z0-9-]+\.)?publons\.com/,window.location.origin).replace("/media/thumbs/academic/photos/","/wos-researcher-thumbs/").replace("/media/initialcon/","/wos-researcher-initialcon/"),o.set("authorPhoto",J)}(0,fu.H)(o.keys()).pipe((0,gu.B)(1e3),(0,Dl.H)(J=>{const st=o.get(J);return new _u.c(gt=>{st.onload=()=>{gt.next(J),gt.complete()},st.onerror=()=>{o.delete(J),gt.next(J),gt.complete()}})})).subscribe(()=>{},()=>{},()=>{this.createCanvasAndDownload(o,u)})}createCanvasAndDownload(o,u){const g=document.createElement("canvas");g.width=430,g.height=o.has("authorPhoto")?500:430;const O=g.getContext("2d");O.fillStyle="white";let $=0;$=u.organization?0:-20,O.fillRect(0,0,g.width,g.height+$);let J=0;if(o.has("authorPhoto")){const Ri=(g.width-80)/2,va=20;O.save(),O.beginPath(),O.arc(Ri+40,va+40,40,0,2*Math.PI),O.closePath(),O.clip(),O.drawImage(o.get("authorPhoto"),Ri,va,80,80),O.restore(),J+=80}const st=(g.width-o.get("qrCode").width)/2;O.drawImage(o.get("qrCode"),st,70+J+$),O.font="600 16px Source Sans Pro",O.fillStyle="rgba(0, 0, 0, 1)";const gt=u.authorname,zt=O.measureText(gt).width,bt=o.has("icon"),De=bt?5:0,ae=(g.width-(zt+(bt?14:0)+De))/2,Me=50+J;bt&&O.drawImage(o.get("icon"),ae+zt+De,Me-12,14,14),O.fillText(gt,ae,Me),O.font="12px Source Sans Pro",u.organization&&this.wrapText(O,u.organization,70+J,14,g.width),O.fillStyle="rgba(0, 0, 0, 0.64)";const yn=this.translate.instant("scanQRCodefooter"),Mg=O.measureText(yn).width;O.fillText(yn,(g.width-Mg)/2,o.get("qrCode").height+80+J+$),this.downloadService.downloadCanvas(g,"QRCode.png")}wrapText(o,u,g,O,$){const J=u.split(" ");let st="",gt=0;for(let bt=0;bt<J.length;bt++){const Dt=st+J[bt]+" ";if(o.measureText(Dt).width>$-20&&bt>0){if(gt++,2===gt){const ae=st.trim()+"...",Me=($-o.measureText(ae).width)/2;return void o.fillText(ae,Me,g)}const cn=($-o.measureText(st).width)/2;o.fillText(st,cn,g),st=J[bt]+" ",g+=O}else st=Dt}const zt=($-o.measureText(st).width)/2;o.fillText(st,zt,g)}openDialogOverlay(o){this.dialog.open(o,{ariaLabel:this.translate.instant("copyText"),width:"500px",height:"auto",maxHeight:"630px"})}closeButton(){this.dialog.closeAll()}getAuthorRecordUrl(){return`${this.config.getSettings().environment.nxUrl}/wos/author/record/${this.authorDetails?.rid?.toUpperCase()}`}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(bu.s),t.rXU(Vt.bZ),t.rXU(Rn.w),t.rXU(ht.c$),t.rXU(wt.il))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-record-share-profile"]],inputs:{authorIds:"authorIds"},features:[t.OA$],decls:8,vars:3,consts:[["profileSharing",""],["mat-button","","data-pendo","ShareProfileButton",1,"share-button",3,"click"],["color","primary","inline","true",1,"font-size-24","share-profile-icon"],[1,"share-profile"],[1,"modal-header-section"],[1,"modal-header-text"],["mat-icon-button","","aria-label","'closeDialog' | translate",1,"close-icon",3,"click"],["inline","true"],[1,"copy-link-container","margin-top-10"],["aria-label","'shareAuthorCopyLink' | translate","type","text","readonly","true",1,"url-input-text",3,"value"],["mat-flat-button","","color","primary","data-
1pendo","CopyLink_Sharie_Profile_Button",1,"copy-link-button",3,"click","appClickToCopy","message"],[1,"copy-button-text"],[1,"divider-container"],[1,"cdx-divider-dark","divider"],[1,"divider-text"],[1,"qrCode-header"],[1,"qrcode-image"],["imageSrc","/wos/static/images/clarivate-logo-with-background.png",3,"qrdata","width","imageHeight","imageWidth","errorCorrectionLevel"],["tabindex","0","role","button",1,"downloadQRBtn",3,"click","keydown.enter"],[1,"share-profile-help-text",3,"innerHTML"]],template:function(u,g){if(1&u){const O=t.RV6();t.j41(0,"button",1),t.bIt("click",function(){t.eBV(O);const J=t.sdS(7);return t.Njj(g.openDialogOverlay(J))}),t.j41(1,"mat-icon",2),t.EFF(2,"share"),t.k0s(),t.j41(3,"span",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.DNE(6,Cu,31,31,"ng-template",null,0,t.C5r)}2&u&&(t.R7$(4),t.JRh(t.bMT(5,1,"shareProfile")))},dependencies:[Kt.q,Ft.An,Mt.$z,Mt.iY,Ya.K,El.c,ht.D9],styles:["@media screen and (max-width: 30rem){  .mdc-dialog__container{padding:1.5625rem!important}}.share-profile[_ngcontent-%COMP%]{display:block;font-size:.875rem;margin-top:-.625rem}@media screen and (max-width: 30rem){.share-profile[_ngcontent-%COMP%]{margin-top:-1.125rem;font-size:.75rem}}.share-button[_ngcontent-%COMP%]{flex-flow:column;gap:1.25rem;width:5.4375rem;height:4.375rem;border-radius:0}@media screen and (max-width: 30rem){.share-button[_ngcontent-%COMP%]{width:4.75rem}}@media screen and (max-width: 30rem){.share-profile-icon[_ngcontent-%COMP%]{font-size:1.125rem!important}}.flex-display---align[_ngcontent-%COMP%]{position:relative;left:95%;border:none}.copy-link-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:.9375rem}.copy-link-container[_ngcontent-%COMP%]   .url-input-text[_ngcontent-%COMP%]{height:2.8125rem;width:18.875rem;border-radius:.25rem;padding:0 .3125rem}.copy-link-container[_ngcontent-%COMP%]   .copy-link-button[_ngcontent-%COMP%]{font-size:1rem;min-height:2.75rem;top:.3125rem;min-width:max-content;flex-shrink:0}.copy-link-container[_ngcontent-%COMP%]   .copy-button-text[_ngcontent-%COMP%]{vertical-align:top}@media (max-width: 33.75rem){.copy-link-container[_ngcontent-%COMP%]   .url-input-text[_ngcontent-%COMP%]{width:100%}.copy-link-container[_ngcontent-%COMP%]   .copy-link-button[_ngcontent-%COMP%]{padding:0;width:100%}}.url-text[_ngcontent-%COMP%]{height:2.8125rem;width:20.625rem;border-radius:.188125rem;padding:0 .3125rem}.copy-button[_ngcontent-%COMP%]{font-size:1rem;height:2.25rem;width:4.0625rem;top:.3125rem;position:relative}.modal-close-section[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;cursor:pointer;margin:-1.5rem -1.875rem 0 0;width:26.9375rem}.modal-close-section[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:1.25rem}.modal-header-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.modal-header-section[_ngcontent-%COMP%]   .modal-header-text[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600}.modal-header-section[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{font-size:1.375rem;cursor:pointer;left:.25rem}.modal-header-section[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{right:.75rem}.divider-container[_ngcontent-%COMP%]{display:flex}.divider-container[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{width:49%;margin-top:2.1875rem}.divider-container[_ngcontent-%COMP%]   .divider-text[_ngcontent-%COMP%]{padding:0 .625rem;color:#333!important;font-size:.75rem;margin-top:1.6875rem}.downloadQRBtn[_ngcontent-%COMP%]{cursor:pointer;border:.0625rem solid currentColor;padding:0 .9375rem;line-height:2.125rem;background-color:#fff;color:#5e33bf;font-weight:600;border-radius:1.25rem}.downloadQRBtn[_ngcontent-%COMP%]:hover{text-decoration:none}.share-profile-help-text[_ngcontent-%COMP%]{margin:.625rem 0 .3125rem;color:#333!important;font-size:.825rem}.qrCode-header[_ngcontent-%COMP%]{place-self:center;font-size:1.125rem;font-weight:400;line-height:1.5rem;padding-top:1.125rem}.qrcode-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.download-btn[_ngcontent-%COMP%]{display:flex;width:8.75rem;height:1.875rem;flex-wrap:wrap;align-content:space-around;justify-content:center;text-decoration:none}"]})}}return s})();var Fl=E(67018),yu=E(983);let $l=(()=>{class s extends Rt.${constructor(o,u,g,O,$){super($),this.store=o,this.searches=u,this.router=g,this.snackbarService=O,this.isMobile$=_t.Y.isMobile$}ngOnChanges(){this.store.select(Y.Gh,{authorIds:this.authorId}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorRecord=o})}runSearch(){const o=this.authorRecord?.alternativeName?.map($=>$.value)||[];o.push(this.authorRecord.authorAliasName),o.push(this.authorRecord.publishingName),o.push(this.authorRecord.author_name);const u={database:"AUTHOR",mode:tt.k0.author_names,names:o?.filter($=>void 0!==$).map($=>{const J=$?.split(",").reverse();return{firstName:J[0]||"",lastName:J[1]||""}}),display:{key:"suggestedAuthorProfiles",icon:"search",params:{rid:this.authorRecord.rid}},refines:[{index:"CLM",value:["false"]}
1,{index:"RID",value:[this.authorRecord.rid],exclude:!0}]},g="doc-relevance";this.searches.runSearch(u,{count:0,sort:g,history:!0,jcr:!0}).pipe((0,Fl.H)(),(0,Xe.n)($=>$.empty?(this.snackbarService.warningOrange("noMatchesFound"),yu.w):this.router.navigate(["/","author","summary",$.id,g,1]))).subscribe($=>{},$=>{this.snackbarService.warningOrange("noMatchesFound")})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(lt.c),t.rXU(pt.Ix),t.rXU(Po.z),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-record-suggest-profiles"]],inputs:{authorId:"authorId"},features:[t.Vt3,t.OA$],decls:6,vars:3,consts:[["mat-button","","data-pendo","SuggestPotentialMatchesButton",1,"review-matching-profile-btn",3,"click"],["color","primary","inline","true",1,"font-size-24","group-icon"],[1,"review-matching-profile"]],template:function(u,g){1&u&&(t.j41(0,"button",0),t.bIt("click",function(){return g.runSearch()}),t.j41(1,"mat-icon",1),t.EFF(2,"groups"),t.k0s(),t.j41(3,"span",2),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&u&&(t.R7$(4),t.JRh(t.bMT(5,1,"reviewMatchingProfiles")))},dependencies:[Ft.An,Mt.$z,ht.D9],styles:[".review-matching-profile[_ngcontent-%COMP%]{display:block;font-size:.875rem!important;margin:-.375rem 0 0}@media screen and (max-width: 30rem){.review-matching-profile[_ngcontent-%COMP%]{font-size:.75rem!important}}.review-matching-profile-btn[_ngcontent-%COMP%]{flex-flow:column;gap:.5rem;width:135px;height:4.375rem;line-height:16px;text-wrap:balance;border-radius:0}@media screen and (max-width: 30rem){.review-matching-profile-btn[_ngcontent-%COMP%]{width:7.5625rem;padding:0}}@media screen and (max-width: 30rem){.group-icon[_ngcontent-%COMP%]{font-size:1.125rem!important}}"]})}}return s})();const wr=["signInDialog"],Mu=["correctionHistoryDialog"],vu=()=>["/","op","cv-export"];function Pu(s,M){if(1&s&&t.nrm(0,"app-author-record-suggest-profiles",9),2&s){const o=t.XpG(3);t.Y8G("authorId",o.authorIds[0])}}function ta(s,M){if(1&s&&(t.j41(0,"div",5),t.DNE(1,Pu,1,1,"app-author-record-suggest-profiles",6),t.nI1(2,"feature"),t.nI1(3,"entitlements"),t.nrm(4,"span",7)(5,"app-author-record-share-profile",8),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium")&&t.bMT(3,4,"WOSCC")),t.R7$(4),t.Y8G("authorIds",o.authorIds)}}function Or(s,M){1&s&&t.nrm(0,"span",7)}function Ll(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",5),t.DNE(1,Or,1,0,"span",10),t.j41(2,"button",11),t.nI1(3,"feature"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.navigateToCurationPage())}),t.j41(4,"mat-icon",12),t.EFF(5,"create"),t.k0s(),t.nrm(6,"h2",13),t.nI1(7,"translate"),t.k0s()()}if(2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",1===o.authorIds.length),t.R7$(),t.Y8G("disabled",t.bMT(3,3,"WAT-7437-stopCurationForDbMigration")),t.R7$(4),t.Y8G("innerHTML",t.bMT(7,5,"watSubmitCorrection"),t.npT)}}function wu(s,M){if(1&s&&(t.j41(0,"div",5),t.nrm(1,"span",7)(2,"app-author-alerts-option",14),t.k0s()),2&s){const o=t.XpG(2);t.R7$(2),t.Y8G("authorId",o.authorIds[0])("signedIn",!!o.user)}}function ea(s,M){1&s&&(t.j41(0,"div",5),t.nrm(1,"span",7),t.j41(2,"button",15)(3,"mat-icon",16),t.EFF(4,"file_download"),t.k0s(),t.j41(5,"span",17),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()),2&s&&(t.R7$(2),t.Y8G("routerLink",t.lJ4(4,vu)),t.R7$(4),t.JRh(t.bMT(7,2,"export_cv_button_label")))}function Ir(s,M){if(1&s&&(t.j41(0,"div",2)(1,"div",3),t.DNE(2,ta,6,6,"div",4)(3,Ll,8,7,"div",4),t.nI1(4,"async"),t.nI1(5,"feature"),t.nI1(6,"async"),t.DNE(7,wu,3,2,"div",4),t.nI1(8,"feature"),t.nI1(9,"entitlements"),t.nI1(10,"async"),t.DNE(11,ea,8,5,"div",4),t.nI1(12,"async"),t.k0s()()),2&s){const o=t.XpG();t.BMQ("data-pendo",o.pagePendo),t.R7$(2),t.Y8G("ngIf",1===o.authorIds.length),t.R7$(),t.Y8G("ngIf",(t.bMT(4,5,o.isOwnProfile$)?!(o.isClaimed||o.hasClaimed):!o.hideMergeRemoveBtn)&&(t.bMT(5,7,"WAT-10639-add-publication-for-researcherOnly-profiles")||!t.bMT(6,9,o.isResearcherOnlyProfile$))),t.R7$(4),t.Y8G("ngIf",t.bMT(8,11,"nxPresentationControl_show_createAuthorAlertButton")&&t.bMT(9,13,"WOSCC")&&!t.bMT(10,15,o.isOwnProfile$)&&1===o.authorIds.length),t.R7$(4),t.Y8G("ngIf",t.bMT(12,17,o.isOwnProfile$))}}function Gl(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",18)(1,"h1",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",20),t.nI1(5,"translate"),t.nrm(6,"mat-icon",21),t.k0s()(),t.j41(7,"div",22)(8,"button",23),t.EFF(9,"Close"),t.k0s(),t.j41(10,"button",24),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.loadPage())}),t.EFF(11),t.nI1(12,"translate"),t.k0s()()}2&s&&(t.R7$(2),t.JRh(t.bMT(3,3,"SignInToSubmitCorrections")),t.R7$(2),t.FS9("aria-label",t.bMT(5,5,"close")),t.R7$(7),t.JRh(t.bMT(12,7,"SignInOrRegister")))}let Ou=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st){super(st),this.store=o,this.dialog=u,this.translate=g,this.route=O,this.router=$,this.authors=J,this.hasClaimed=!1,this.isClaimed=!1,this.user=null,this.isEnablePivotRP=!1,this.pageSize=5,this.page=1}ngOnChanges(){this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorDetail=o,this.isClaimed=o?.claim_status,this.hasClaimed=o.claimStatuses?.some(u=>"Claimed"===u.status),this.isOwnProfile$=this.store.select(Y.aJ).pipe((0,W.p)(u=>!!u),(0,Et.T)(u=>!(o?.authorId?.split(",").length>1||!u.researcherId)&&u.researcherId===o.rid)),this.hideMergeRemoveBtn=this.authors.hideMergeRemoveBtn(o)}),this.isResearcherOnlyProfile$=this.store.select(Y.QO,{authorIds:this.authorIds.join(",")}),this.store.select(at.mm).pipe((0,Ie.F)()).subscribe(o=>{this.user=o})}get pagePendo(){return this.authorIds?.length>1?this.hasClaimed?"combined-with-claimed":"combined-without-claimed":this.isClaimed?"claimed":"unclaimed"}openMergeRecordsModal(){this.dialog.open(du.V,{direction:"ltr",autoFocus:!1,panelClass:"merge-dialog",data:{isCombined:!0,authorIds:this.authorIds.join(","),user:this.user,isClaimedCuration:!1}})}loadPage(){ke.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"submit-correction/author/"+this.authorIds.join(",")}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0}})}navigateToCurationPage(){this.store.dispatch(new Je.OK({path:window.location.pathname.replace("/wos","")})),1!==this.authorIds.length?this.openMergeRecordsModal():this.user||1!==this.authorIds.length?1===this.authorIds.length&&this.loadPage():this.dialog.open(this.templateRef,{width:"580px",height:"auto",maxHeight:"128px",ariaLabel:this.translate.instant("signInOrRegister"),position:{top:"20vh"}})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(Vt.bZ),t.rXU(ht.c$),t.rXU(pt.nX),t.rXU(pt.Ix),t.rXU(ve.m),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-record-top-bar-button-group"]],viewQuery:function(u,g){if(1&u&&(t.GBs(wr,7,t.C4Q),t.GBs(Mu,5,t.C4Q)),2&u){let O;t.mGM(O=t.lsd())&&(g.templateRef=O.first),t.mGM(O=t.lsd())&&(g.correctionHistoryDialog=O.first)}},inputs:{authorIds:"authorIds"},features:[t.Vt3,t.OA$],decls:3,vars:1,consts:[["signInDialog",""],["class","wat-top-bar",4,"ngIf"],[1,"wat-top-bar"],[1,"author-record-toggle-group"],["class","button-group",4,"ngIf"],[1,"button-group"],[3,"authorId",4,"ngIf"],[1,"buttons-separator"],[3,"authorIds"],[3,"authorId"],["class","buttons-separator",4,"ngIf"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click","cdxAnalyticsCategory","WoS-authorrecord-curate-start",1,"wat-toggle-button-padding-0",3,"click","disabled"],["color","primary","inline","true",1,"font-size-24","submit-correction-icon"],[1,"submit-correction",3,"innerHTML"],[3,"authorId","signedIn"],["mat-button","","data-pendo","data-pendo-export-profile",1,"export-cv-button",3,"routerLink"],["inline","true",1,"font-size-24","export-cv-icon"],[1,"cv-button-label"],[1,"signin-dialog","margin-top-20px"],[1,"text"],["mat-icon-button","","disableRipple","","mat-dialog-close","",1,"close-btn",3,"aria-label"],["svgIcon","close"],[1,"dialog-buttons-container"],["mat-button","","mat-dialog-close","","color","primary",1,"close-button"],["mat-flat-button","","color","primary",3,"click"]],template:function(u,g){1&u&&t.DNE(0,Ir,13,19,"div",1)(1,Gl,13,9,"ng-template",null,0,t.C5r),2&u&&t.Y8G("ngIf",g.authorDetail)},dependencies:[Vt.tx,pt.Wk,Ft.An,B.bT,Mt.$z,Mt.iY,ui.P,mu,xu,$l,yt.N,B.Jj,ht.D9,Z.h],styles:[".wat-top-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media screen and (max-width: 30rem){.wat-top-bar[_ngcontent-%COMP%]{justify-content:center}}@media screen and (min-width: 30rem) and (max-width: 64rem){.wat-top-bar[_ng
1content-%COMP%]{justify-content:left}}.author-record-toggle-group[_ngcontent-%COMP%]{display:flex;border-radius:.25rem;border-style:solid;border-width:.0625rem;background-color:#fff;border-color:#dadada}@media screen and (max-width: 30rem){.author-record-toggle-group[_ngcontent-%COMP%]{padding-bottom:.375rem}}.buttons-separator[_ngcontent-%COMP%]{border-left:1px solid #DADADA;height:85%;display:block;position:relative;top:9%}.button-group[_ngcontent-%COMP%]{display:contents}.export-cv-button[_ngcontent-%COMP%]{flex-flow:column;gap:1.125rem;width:5.4375rem;height:4.375rem}.export-cv-button[_ngcontent-%COMP%]   .export-cv-icon[_ngcontent-%COMP%]{color:#175897}.export-cv-button[_ngcontent-%COMP%]     .mdc-button__label{display:flex;flex-direction:column;color:#175897;align-items:center}.export-cv-button[_ngcontent-%COMP%]     .mdc-button__label mat-icon{margin:.375rem}@media screen and (max-width: 30rem){.export-cv-button[_ngcontent-%COMP%]     .mdc-button__label mat-icon{font-size:1.125rem!important}}.export-cv-button[_ngcontent-%COMP%]     .mdc-button__label .cv-button-label{font-size:.875rem;margin-top:-.625rem}@media screen and (max-width: 30rem){.export-cv-button[_ngcontent-%COMP%]     .mdc-button__label .cv-button-label{font-size:.75rem!important}}.submit-correction[_ngcontent-%COMP%]{font-size:.875rem!important;font-weight:400;margin:-.65rem 0 0}@media screen and (max-width: 30rem){.submit-correction[_ngcontent-%COMP%]{font-size:.75rem!important}}@media screen and (max-width: 30rem){.submit-correction-icon[_ngcontent-%COMP%]{font-size:1.125rem!important}}.wat-toggle-button-padding-0[_ngcontent-%COMP%]{flex-flow:column;gap:1.0625rem;padding:0!important;width:5.4375rem;height:4.375rem;border-radius:0}@media screen and (max-width: 30rem){.wat-toggle-button-padding-0[_ngcontent-%COMP%]{width:4.875rem}}.signin-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:-1.5rem;margin-right:-1.25rem;margin-left:-.625rem}.text[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;line-height:1.875rem;flex:1}.close-btn[_ngcontent-%COMP%]{margin-left:auto}.column-height[_ngcontent-%COMP%]{height:3.125rem}.dialog-buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:1.5625rem;margin-right:-.9375rem}.dialog-buttons-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:44px;min-height:44px}.data-correction-dialog-buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.625rem;margin-top:auto}.close-button[_ngcontent-%COMP%]{margin-right:.9375rem}.row-flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.publication-table[_ngcontent-%COMP%]{padding-bottom:.625rem}.user-name[_ngcontent-%COMP%]{width:27%}.creation-date[_ngcontent-%COMP%]{width:28%}.feedback-status[_ngcontent-%COMP%]{width:25%}.action[_ngcontent-%COMP%]{width:20%}.table-container[_ngcontent-%COMP%]{overflow:auto;height:63%}.correction-history-close-btn[_ngcontent-%COMP%]{float:right;bottom:1.25rem;left:.9375rem}.cdx-table-wrapper[_ngcontent-%COMP%]{display:revert;align-items:center}.cdx-table-wrapper-fixed[_ngcontent-%COMP%]{overflow:auto;height:auto}.data-correction-heading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:1.375rem;margin-top:.3125rem}  .merge-dialog .mdc-dialog__container{padding:1.5rem!important;min-height:12vh!important;max-width:30.9375rem!important}  .merge-dialog .mat-stroked-button{border:none}"]})}}return s})();var Tr=E(28793),jl=E(64001),na=E(86881),kr=E(53993),Nl=E(47987),zl=E(77737);const Iu=(s,M)=>["/",s,"full-record",M];function ia(s,M){if(1&s){const o=t.RV6();t.j41(0,"app-page-controls",4),t.bIt("currentPageChange",function(g){t.eBV(o);const O=t.XpG(2);return t.Njj(O.changePage(g))}),t.k0s()}if(2&s){const o=t.XpG(2);t.Y8G("currentPage",o.currentPage)("maxPage",o.maxPage)}}function oa(s,M){1&s&&t.nrm(0,"br")}function Yl(s,M){1&s&&t.nrm(0,"mat-spinner",5)}function Bl(s,M){if(1&s&&(t.j41(0,"a",13),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit,u=t.XpG(3);t.Y8G("routerLink",t.l_i(3,Iu,u.getDataBaseFromUT(o.publon.ut),o.publon.ut)),t.BMQ("data-ta",1===u.type?"open-publisher-invited-review-title":"open-community-review-title"),t.R7$(),t.JRh(null==o.publon?null:o.publon.title)}}function Xl(s,M){if(1&s&&(t.j41(0,"a",14),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit,u=t.XpG(3);t.Y8G("href",u.gatewayUrlFull(null==o.publon?null:o.publon.doi),t.B4B),t.BMQ("data-ta",1===u.type?"open-publisher-invited-review-title":"open-community-review-title"),t.R7$(),t.JRh(null==o.publon?null:o.publon.title)}}function Vl(s,M){if(1&s&&(t.j41(0,"h4"),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit;t.R7$(),t.JRh(null==o.publon?null:o.publon.title)}}function aa(s,M){1&s&&(t.j41(0,"span"),t.EFF(1," | "),t.k0s())}function Rr(s,M){1&s&&(t.j41(0,"span"),t.EFF(1," | "),t.nrm(2,"mat-icon",15),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&s&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"Verified")," "))}function eo(s,M){if(1&s&&(t.j41(0,"mat-card",7),t.DNE(1,Bl,2,6,"a",8)(2,Xl,2,3,"a",9)(3,Vl,2,1,"h4",1),t.j41(4,"div",10)(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.DNE(8,aa,2,0,"span",1),t.nrm(9,"app-jcr-sidenav",11),t.DNE(10,Rr,5,3,"span",1),t.k0s(),t.nrm(11,"div",12,0),t.k0s()),2&s){const o=M.$implicit,u=M.index,g=t.XpG
1(3);t.BMQ("data-ta",1===g.type?"open-publisher-invited-review":"open-community-review"),t.R7$(),t.Y8G("ngIf",null==o.publon?null:o.publon.ut),t.R7$(),t.Y8G("ngIf",!(null!=o.publon&&o.publon.ut)&&(null==o.publon?null:o.publon.doi)),t.R7$(),t.Y8G("ngIf",!(null!=o.publon&&o.publon.ut||null!=o.publon&&o.publon.doi)),t.R7$(3),t.Lme("",t.bMT(7,15,"Reviewed")," ",null==o?null:o.displayDate,""),t.R7$(2),t.Y8G("ngIf",(null==o?null:o.displayDate)&&(null==o||null==o.journal?null:o.journal.name)),t.R7$(),t.Y8G("useJournalAbbr",!0)("database","woscc")("qid",null)("hasJCRData",(null==o||null==o.journal?null:o.journal.abbreviatedTitle)&&g.jcrDataExists[null==o||null==o.journal?null:o.journal.abbreviatedTitle])("record",g.records[u])("showIcon",!1)("largeSize",!1),t.R7$(),t.Y8G("ngIf",o.isVerifiedUrl&&1===g.type)}}function Tu(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,eo,13,17,"mat-card",6),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngForOf",o.displayReviews)}}function ra(s,M){1&s&&t.nrm(0,"br")}function sa(s,M){if(1&s){const o=t.RV6();t.j41(0,"app-page-controls",4),t.bIt("currentPageChange",function(g){t.eBV(o);const O=t.XpG(2);return t.Njj(O.changePage(g))}),t.k0s()}if(2&s){const o=t.XpG(2);t.Y8G("currentPage",o.currentPage)("maxPage",o.maxPage)}}function ku(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,ia,1,2,"app-page-controls",2)(2,oa,1,0,"br",1)(3,Yl,1,0,"mat-spinner",3)(4,Tu,2,1,"div",1)(5,ra,1,0,"br",1)(6,sa,1,2,"app-page-controls",2),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngIf",o.publicationReviews.length>5),t.R7$(),t.Y8G("ngIf",o.publicationReviews.length>5),t.R7$(),t.Y8G("ngIf",o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading),t.R7$(),t.Y8G("ngIf",o.publicationReviews.length>5),t.R7$(),t.Y8G("ngIf",o.publicationReviews.length>5)}}let Ru=(()=>{class s{constructor(o){this.config=o,this.isLoading=!1,this.publicationReviewPageChange=new t.bkB,this.currentPage=1,this.gatewayUrl=this.config.getSettings().environment.gatewayUrl}ngOnChanges(){this.records=this.publicationReviews.slice(5*(this.currentPage-1),5*this.currentPage).map(this.publicationReviewsToRecordMapper)}changePage(o){this.currentPage=o,this.publicationReviewPageChange.emit({page:o,type:this.t
1ype})}get displayReviews(){try{return this.publicationReviews.slice(5*(this.currentPage-1),5*this.currentPage)}catch{return[]}}get maxPage(){try{return Math.ceil(this.publicationReviews.length/5)}catch{return 1}}gatewayUrlFull(o){return`${this.gatewayUrl}?GWVersion=2&SrcApp=SOURCE_APP&SrcAuth=SOURCE_AUTH&DestLinkType=PeerReview&KeyDOI=${encodeURIComponent(o)}&DestApp=WOS_CPL`}getDataBaseFromUT(o){const u=o.split(":")[0];return"WOS"===u?"woscc":u.toLowerCase()}publicationReviewsToRecordMapper(o){try{return{id:null,ut:null,docid:null,jcrKey:o.journal.abbreviatedTitle,titles:{source:{en:[{title:o.journal.name}]}},pub_info:{journal_oas_gold:null}}}catch{return{id:null,ut:null,docid:null,jcrKey:null,titles:{source:{en:[{title:""}]}},pub_info:{journal_oas_gold:null}}}}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Rn.w))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-publication-reviews"]],inputs:{publicationReviews:"publicationReviews",type:"type",isLoading:"isLoading",jcrDataExists:"jcrDataExists"},outputs:{publicationReviewPageChange:"publicationReviewPageChange"},features:[t.OA$],decls:1,vars:1,consts:[["overlayAnchor","cdkOverlayOrigin"],[4,"ngIf"],["class","publication-review-controls",3,"currentPage","maxPage","currentPageChange",4,"ngIf"],["class","loading-reviews-spinner",4,"ngIf"],[1,"publication-review-controls",3,"currentPageChange","currentPage","maxPage"],[1,"loading-reviews-spinner"],["class","publication-review-card",4,"ngFor","ngForOf"],[1,"publication-review-card"],[3,"routerLink",4,"ngIf"],[3,"href",4,"ngIf"],[1,"card-content"],[3,"useJournalAbbr","database","qid","hasJCRData","record","showIcon","largeSize"],["cdkOverlayOrigin",""],[3,"routerLink"],[3,"href"],["svgIcon","verified","aria-hidden","true",1,"verified-icon"]],template:function(u,g){1&u&&t.DNE(0,ku,7,6,"div",1),2&u&&t.Y8G("ngIf",g.publicationReviews&&g.publicationReviews.length>0)},dependencies:[pt.Wk,To.N,Ft.An,Nl.$Q,B.Sq,B.bT,Nt.LG,S.RN,zl.r,ht.D9],styles:[".publication-review-card[_ngcontent-%COMP%]{min-height:6.25rem;padding-top:.9375rem;padding-bottom:1.25rem;margin-left:.1875rem;margin-right:.1875rem;margin-bottom:.75rem}.publication-review-card[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.4375rem;margin-bottom:.5rem}.publication-review-card[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{margin-top:.5rem;font-size:.875rem}.loading-reviews-spinner[_ngcontent-%COMP%]{display:block;margin:1.875rem auto 3.125rem}.verified-icon[_ngcontent-%COMP%]{color:#0fb718;height:1rem;width:1rem;position:relative;top:.25rem}"]})}}return s})();const ii=()=>["/","op","peer-reviews","summary"];function Wl(s,M){1&s&&(t.j41(0,"button",13)(1,"mat-icon",14),t.EFF(2,"library_add"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"titlecase"),t.k0s()),2&s&&(t.Y8G("routerLink",t.lJ4(6,ii)),t.R7$(3),t.SpI(" ",t.bMT(5,4,t.bMT(4,2,"watManage"))," "))}function Ar(s,M){if(1&s&&(t.j41(0,"span",15),t.nI1(1,"async"),t.j41(2,"span",16),t.EFF(3),t.k0s(),t.nrm(4,"app-jcr-sidenav",17),t.nI1(5,"async"),t.nrm(6,"div",18,0),t.k0s()),2&s){let o;const u=M.$implicit,g=t.XpG(3);t.Y8G("ngClass",t.bMT(1,10,g.isMobile$)?"two-columned-items-mobile":"two-columned-items"),t.R7$(3),t.JRh(u.numRecords),t.R7$(),t.Y8G("useJournalAbbr",!0)("database","woscc")("qid",null)("hasJCRData",u.abbreviatedTitle&&(null==(o=t.bMT(5,12,g.jcrDataExists$))?null:o[u.abbreviatedTitle]))("record",g.recordsForJCR[u.name])("showIcon",!1)("largeSize",!1)("parent","ProfilesPeerReview")}}function Ul(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",19),t.bIt("click",function(){t.eBV(o);const g=t.XpG(3);return t.Njj(g.loadMorePeerReviews(g.PeerReviewOption.VerifiedPeerReviews))}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",20),t.EFF(4,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(3);t.Y8G("disabled",o.verifiedReviews.isLoading),t.R7$(),t.SpI(" ",t.bMT(2,2,"showMore")," ")}}function Ln(s,M){1&s&&t.nrm(0,"mat-spinner",21),2&s&&t.Y8G("diameter",18)}function no(s,M){if(1&s&&(t.j41(0,"div",5)(1,"div",6)(2,"h3",7),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,Wl,6,7,"button",8),t.k0s(),t.j41(6,"div",9),t.DNE(7,Ar,8,14,"span",10),t.nI1(8,"slice"),t.k0s(),t.DNE(9,Ul,5,4,"button",11)(10,Ln,1,1,"mat-spinner",12),t.k0s()),2&s){const o=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,5,"VerifiedPeerReviews")),t.R7$(2),t.Y8G("ngIf",o.isOwnProfile),t.R7$(2),t.Y8G("ngForOf",t.brH(8,7,o.verifiedReviews.results,0,o.verifiedReviewsDisplayCount)),t.R7$(2),t.Y8G("ngIf",o.verifiedReviews.nextPage||o.verifiedReviewsDisplayCount<o.verifiedReviews.results.length),t.R7$(),t.Y8G("ngIf",o.verifiedReviews.isLoading)}}function io(s,M){1&s&&t.nrm(0,"mat-divider",22)}function Au(s,M){if(1&s&&(t.j41(0,"span",25),t.nI1(1,"async"),t.j41(2,"span",16),t.EFF(3),t.k0s(),t.nrm(4,"app-jcr-sidenav",17),t.nI1(5,"async"),t.nrm(6,"div",18,0),t.k0s()),2&s){let o;const u=M.$implicit,g=t.XpG(3);t.Y8G("ngClass",t.bMT(1,10,g.isMobile$)?"two-columned-items-mobile":"two-columned-items"),t.R7$(3),t.JRh(u.numRecords),t.R7$(),t.Y8G("useJournalAbbr",!0)("database","woscc")("qid",null)("hasJCRData",u.abbreviatedTitle&&(null==(o=t.bMT(5,12,g.jcrDataExists$))?null:o[u.abbreviatedTitle]))("record",g.recordsForJCR[u.name])("showIcon",!1)("largeSize",!1)("parent","ProfilesPeerReview")}}function oo(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",19),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(3);return t.Njj(g.loadMorePeerReviews(g.PeerReviewOption.EditorRecords))}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",20),t.EFF(4,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(3);t.Y8G("disabled",o.verifiedEditorRecords.isLoading),t.R7$(),t.SpI(" ",t.bMT(2,2,"showMore")," ")}}function Su(s,M){1&s&&t.nrm(0,"mat-spinner",21),2&s&&t.Y8G("diameter",18)}function Hl(s,M){if(1&s&&(t.j41(0,"div")(1,"h3",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",23),t.DNE(5,Au,8,14,"span",24),t.nI1(6,"slice"),t.k0s(),t.DNE(7,oo,5,4,"button",11)(8,Su,1,1,"mat-spinner",12),t.k0s()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"ProfilesVerifiedEditorRecords")),t.R7$(3),t.Y8G("ngForOf",t.brH(6,6,o.verifiedEditorRecords.results,0,o.verifiedEditorRecordsDisplayCount)),t.R7$(2),t.Y8G("ngIf",o.verifiedEditorRecords.nextPage||o.verifiedEditorRecordsDisplayCount<o.verifiedEditorRecords.results.length),t.R7$(),t.Y8G("ngIf",o.verifiedEditorRecords.isLoading)}}function la(s,M){1&s&&t.nrm(0,"mat-divider",22)}function Du(s,M){1&s&&t.nrm(0,"mat-icon",38)}function Jl(s,M){if(1&s&&(t.j41(0,"span",33),t.nI1(1,"async"),t.j41(2,"span",34),t.DNE(3,Du,1,0,"mat-icon",35),t.j41(4,"span",36),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"span",37),t.EFF(8),t.k0s()()),2&s){const o=M.$implicit,u=t.XpG(4);t.Y8G("ngClass",t.bMT(1,4,u.isMobile$)?"two-columned-items-mobile":"two-columned-items"),t.R7$(3),t.Y8G("ngIf",o.isVerified),t.R7$(2),t.JRh(t.bMT(6,6,"verified")),t.R7$(3),t.SpI("",o.name," ")}}function Eu(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",39),t.bIt("click",function(){t.eBV(o);const g=t.XpG(4);return t.Njj(g.loadMorePeerReviews(g.PeerReviewOption.CurrentEditorialMemberships))}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",20),t.EFF(4,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(4);t.Y8G("disabled",o.currentEditorialMemberships.isLoading),t.R7$(),t.SpI(" ",t.bMT(2,2,"showMore")," ")}}function Fu(s,M){1&s&&t.nrm(0,"mat-spinner",21),2&s&&t.Y8G("diameter",18)}function $u(s,M){if(1&s&&(t.j41(0,"div",28)(1,"h4",29),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",30),t.DNE(5,Jl,9,8,"span",31),t.nI1(6,"slice"),t.k0s(),t.DNE(7,Eu,5,4,"button",32)(8,Fu,1,1,"mat-spinner",12),t.k0s()),2&s){const o=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,4,"CurrentMemberships")),t.R7$(3),t.Y8G("ngForOf",t.brH(6,6,o.currentEditorialMemberships.results,0,o.currentEditorialMembershipDisplayCount)),t.R7$(2),t.Y8G("ngIf",o.currentEditorialMemberships.nextPage||o.currentEditorialMembershipDisplayCount<o.currentEditorialMemberships.results.length),t.R7$(),t.Y8G("ngIf",o.currentEditorialMemberships.isLoading)}}function Lu(s,M){1&s&&t.nrm(0,"mat-icon",38)}function Gu(s,M){if(1&s&&(t.j41(0,"span",42),t.nI1(1,"async"),t.j41(2,"span",34),t.DNE(3,Lu,1,0,"mat-icon",35),t.j41(4,"span",36),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"span",37),t.EFF(8),t.k0s()()),2&s){const o=M.$implicit,u=t.XpG(4);t.Y8G("ngClass",t.bMT(1,4,u.isMobile$)?"two-columned-items-mobile":"two-columned-items"),t.R7$(3),t.Y8G("ngIf",o.isVerified),t.R7$(2),t.JRh(t.bMT(6,6,"verified")),t.R7$(3),t.SpI("",o.name," ")}}function Sr(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",39),t.bIt("click",function(){t.eBV(o);const g=t.XpG(4);return t.Njj(g.loadMorePeerReviews(g.PeerReviewOption.PastEditorialMemberships))}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",20),t.EFF(4,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(4);t.Y8G("disabled",o.pastEditorialMembership.isLoading),t.R7$(),t.SpI(" ",t.bMT(2,2,"showMore")," ")}}function ju(s,M){1&s&&t.nrm(0,"mat-spinner",21),2&s&&t.Y8G("diameter",18)}function ql(s,M){if(1&s&&(t.j41(0,"div",40)(1,"h4",29),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",30),t.DNE(5,Gu,9,8,"span",41),t.nI1(6,"slice"),t.k0s(),t.DNE(7,Sr,5,4,"button",32)(8,ju,1,1,"mat-spinner",12),t.k0s()),2&s){const o=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,4,"PastMemberships")),t.R7$(3),t.Y8G("ngForOf",t.brH(6,6,o.pastEditorialMembership.results,0,o.pastEditorialMembershipDisplayCount)),t.R7$(2),t.Y8G("ngIf",o.pastEditorialMembership.nextPage||o.pastEditorialMembershipDisplayCount<o.pastEditorialMembership.results.length),t.R7$(),t.Y8G("ngIf",o.pastEditorialMembership.isLoading)}}function Nu(s,M){if(1&s&&(t.j41(0,"div")(1,"h3",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,$u,9,10,"div",26)(5,ql,9,10,"div",27),t.k0s()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,3,"EditorialBoardMemberships")),t.R7$(2),t.Y8G("ngIf",o.hasCurrentEditorialMemberships),t.R7$(),t.Y8G("ngIf",o.hasPastEditorialMemberships)}}function zu(s,M){1&s&&t.nrm(0,"mat-divider",22)}function Yu(s,M){if(1&s&&(t.j41(0,"span",42),t.nI1(1,"async"),t.j41(2,"span",16),t.EFF(3),t.k0s(),t.j41(4,"span",37),t.EFF(5),t.k0s()()),2&s){const o=M.$implicit,u=t.XpG(3);t.Y8G("ngClass",t.bMT(1,3,u.isMobile$)?"two-columned-items-mobile":"two-columned-items"),t.R7$(3),t.JRh(o.numReviews),t.R7$(2),t.JRh(o.name)}}function ca(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",19),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(3);return t.Njj(g.loadMorePeerReviews(g.PeerReviewOption.VerifiedGrantReviews))}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",20),t.EFF(4,"expand_more"),t.k0s()()}if(2&s){const o=t.XpG(3);t.Y8G("disabled",o.verifiedGrantReviews.isLoading),t.R7$(),t.SpI(" ",t.bMT(2,2,"showMore")," ")}}function Ql(s,M){1&s&&t.nrm(0,"mat-spinner",21),2&s&&t.Y8G("diameter",18)}function Bu(s,M){if(1&s&&(t.j41(0,"div")(1,"h3",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9),t.DNE(5,Yu,6,5,"span",41),t.nI1(6,"slice"),t.k0s(),t.DNE(7,ca,5,4,"button",11)(8,Ql,1,1,"mat-spinner",12),t.k0s()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"VerifiedGrantReviews")),t.R7$(3),t.Y8G("ngForOf",t.brH(6,6,o.verifiedGrantReviews.results,0,o.verifiedGrantReviewsDisplayCount)),t.R7$(2),t.Y8G("ngIf",o.verifiedGrantReviews.nextPage||o.verifiedGrantReviewsDisplayCount<o.verifiedGrantReviews.results.length),t.R7$(),t.Y8G("ngIf",o.verifiedGrantReviews.isLoading)}}function Dr(s,M){1&s&&t.nrm(0,"mat-divider",22)}function ha(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"h3",43),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"app-publication-reviews",44),t.nI1(5,"async"),t.nI1(6,"async"),t.bIt("publicationReviewPageChange",function(g){t.eBV(o);const O=t.XpG(2);return t.Njj(O.publicationReviewPageChange(g))}),t.k0s()()}if(2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,5,"OpenPublisherInvitedReviews")),t.R7$(2),t.Y8G("publicationReviews",o.prePublicationReviews)("isLoading",t.bMT(5,7,o.isLoadingPrePublicationReviews$))("type",1)("jcrDataExists",t.bMT(6,9,o.jcrDataExists$))}}function Xu(s,M){1&s&&t.nrm(0,"mat-divider",22)}function Er(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"h3",45),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"app-publication-reviews",46),t.nI1(5,"async"),t.nI1(6,"async"),t.bIt("publicationReviewPageChange",function(g){t.eBV(o);const O=t.XpG(2);return t.Njj(O.publicationReviewPageChange(g))}),t.k0s()()}if(2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,5,"OpenCommunityReviews")),t.R7$(2),t.Y8G("publicationReviews",o.postPublicationReviews)("isLoading",t.bMT(5,7,o.isLoadingPostPublicationReviews$))("jcrDataExists",t.bMT(6,9,o.jcrDataExists$))("type",2)}}function Vu(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",2),t.DNE(2,no,11,11,"div",3)(3,io,1,0,"mat-divider",4)(4,Hl,9,10,"div",1)(5,la,1,0,"mat-divider",4)(6,Nu,6,5,"div",1)(7,zu,1,0,"mat-divider",4)(8,Bu,9,10,"div",1)(9,Dr,1,0,"mat-divider",4)(10,ha,7,11,"div",1)(11,Xu,1,0,"mat-divider",4)(12,Er,7,11,"div",1),t.k0s(),t.bVm()),2&s){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.hasVerifiedPeerReviews),t.R7$(),t.Y8G("ngIf",o.hasVerifiedPeerReviews&&(o.hasVerifiedEditorRecords||o.hasPastEditorialMemberships||o.hasCurrentEditorialMemberships||o.hasVerifiedGrantReviews||o.hasPrePublicationReviews||o.hasPostPublicationReviews)),t.R7$(),t.Y8G("ngIf",o.hasVerifiedEditorRecords),t.R7$(),t.Y8G("ngIf",o.hasVerifiedEditorRecords&&(o.hasPastEditorialMemberships||o.hasCurrentEditorialMemberships||o.hasVerifiedGrantReviews||o.hasPrePublicationReviews||o.hasPostPublicationReviews)),t.R7$(),t.Y8G("ngIf",o.hasPastEditorialMemberships||o.hasCurrentEditorialMemberships),t.R7$(),t.Y8G("ngIf",(o.hasPastEditorialMemberships||o.hasCurrentEditorialMemberships)&&(o.hasVerifiedGrantReviews||o.hasPrePublicationReviews||o.hasPostPublicationReviews)),t.R7$(),t.Y8G("ngIf",o.hasVerifiedGrantReviews),t.R7$(),t.Y8G("ngIf",o.hasVerifiedGrantReviews&&(o.hasPrePublicationReviews||o.hasPostPublicationReviews)),t.R7$(),t.Y8G("ngIf",(null==o.prePublicationReviews?null:o.prePublicationReviews.length)>0),t.R7$(),t.Y8G("ngIf",o.hasPrePublicationReviews&&o.hasPostPublicationReviews),t.R7$(),t.Y8G("ngIf",(null==o.postPublicationReviews?null:o.postPublicationReviews.length)>0)}}let Zl=(()=>{class s extends Rt.${constructor(o,u){super(u),this.store=o,this.verifiedReviews=null,this.verifiedReviewsDisplayCount=10,this.verifiedEditorRecords=null,this.verifiedEditorRecordsDisplayCount=10,this.pastEditorialMembership=null,this.pastEditorialMembershipDisplayCount=10,this.currentEditorialMemberships=null,this.currentEditorialMembershipDisplayCount=10,this.verifiedGrantReviews=null,this.verifiedGrantReviewsDisplayCount=10,this.prePublicationReviews=[],this.postPublicationReviews=[],this.recordsForJCR={},this.isMobile$=_t.Y.isMobile$,this.PeerReviewOption=Ae.GA}get hasVerifiedPeerReviews(){return this.verifiedReviews&&this.verifiedReviews.results.length>0}get hasVerifiedEditorRecords(){return this.verifiedEditorRecords&&this.verifiedEditorRecords.results.length>0}get hasCurrentEditorialMemberships(){return this.currentEditorialMemberships&&this.currentEditorialMemberships.results.length>0}get hasPastEditorialMemberships(){return this.pastEditorialMembership&&this.pastEditorialMembership.results.length>0}get hasVerifiedGrantReviews(){return this.verifiedGrantReviews&&this.verifiedGrantReviews.results.length>0}get hasPrePublicationReviews(){return this.prePublicationReviews&&this.prePublicationReviews.length>0}get hasPostPublicationReviews(){return this.postPublicationReviews&&this.postPublicationReviews.length>0}ngOnChanges(){const o=this.authorIds.join(",");this.authorDetail$=this.store.select(Y.Gh,{authorIds:o});const u=g=>{this.recordsForJCR[g.name]||(this.recordsForJCR[g.name]=this.peerReviewToRecordMapper(g))};this.store.select(Y.Ab,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>
1{this.verifiedReviews=g,this.verifiedReviews?.results.forEach(u)}),this.store.select(Y.Bi,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>{this.verifiedEditorRecords=g,this.verifiedEditorRecords?.results.forEach(u)}),this.store.select(Y.oh,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>this.pastEditorialMembership=g),this.store.select(Y.$B,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>{this.currentEditorialMemberships=g,this.change.detectChanges()}),this.store.select(Y._M,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>this.verifiedGrantReviews=g),this.store.select(Y.Fx,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>this.prePublicationReviews=g),this.store.select(Y.k2,{authorIds:o}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>this.postPublicationReviews=g),this.jcrDataExists$=this.store.select(Y.Hw),this.isLoadingPostPublicationReviews$=this.store.select(Y.R1),this.isLoadingPrePublicationReviews$=this.store.select(Y.Wi)}peerReviewToRecordMapper(o){return{id:null,ut:null,docid:null,jcrKey:o.abbreviatedTitle,titles:{source:{en:[{title:o.name}]}},pub_info:{}}}loadMorePeerReviews(o){let u,g;switch(o){case Ae.GA.VerifiedPeerReviews:this.verifiedReviewsDisplayCount+=10,u=this.verifiedReviewsDisplayCount,g=Y.Ab;break;case Ae.GA.EditorRecords:this.verifiedEditorRecordsDisplayCount+=10,u=this.verifiedEditorRecordsDisplayCount,g=Y.Bi;break;case Ae.GA.PastEditorialMemberships:this.pastEditorialMembershipDisplayCount+=10,u=this.pastEditorialMembershipDisplayCount,g=Y.oh;break;case Ae.GA.CurrentEditorialMemberships:this.currentEditorialMembershipDisplayCount+=10,u=this.currentEditorialMembershipDisplayCount,g=Y.$B;break;case Ae.GA.VerifiedGrantReviews:this.verifiedGrantReviewsDisplayCount+=10,u=this.verifiedGrantReviewsDisplayCount,g=Y._M;break;default:return void console.error(`Incorrect peer review type: ${o}`)}this.store.select(g,{authorIds:this.authorIds.join(",")}).pipe((0,Ct.s)(1),(0,kr.E)(this.authorDetail$)).subscribe(([O,$])=>
1{if(O.results.length>=u||!O.nextPage)O.nextPage||console.error("maxpage");else{const st=$.rid;this.store.dispatch(new Je.PE({authorIds:this.authorIds.join(","),peerReviewType:o,rid:st,page:O.nextPage}))}})}publicationReviewPageChange(o){let u=!1;switch(o.type){case 1:u=this.prePublicationReviews.slice(5*(o.page-1),5*o.page).some(g=>!g),u&&this.loadMorePublicationReviews(o.page,Ae.GA.PrePublicationReviews);break;case 2:u=this.postPublicationReviews.slice(5*(o.page-1),5*o.page).some(g=>!g),u&&this.loadMorePublicationReviews(o.page,Ae.GA.PostPublicationReviews)}}loadMorePublicationReviews(o,u){this.authorDetail$.pipe((0,Ct.s)(1)).subscribe(g=>{const O=g.rid;this.store.dispatch(new be.yj({authorIds:this.authorIds.join(","),peerReviewType:u,rid:O,page:o}))})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-peer-review-tab"]],inputs:{authorIds:"authorIds",isOwnProfile:"isOwnProfile"},features:[t.Vt3,t.OA$],decls:2,vars:3,consts:[["overlayAnchor","cdkOverlayOrigin"],[4,"ngIf"],[1,"publications-tab-content"],["class","margin-top-10",4,"ngIf"],["class","custom-mat-divider",4,"ngIf"],[1,"margin-top-10"],[1,"verified-peer-reviews-header"],[1,"section-header"],["class","wat-material-new-button","mat-button","","color","primary","data-pendo","data-pendo-manage-reviews",3,"routerLink",4,"ngIf"],[1,"verified-reviews-container"],["class","item-flex","data-ta","verified-peer-review",3,"ngClass",4,"ngFor","ngForOf"],["class","show-more-button","mat-button","",3,"disabled","click",4,"ngIf"],["class","loading-spinner",3,"diameter",4,"ngIf"],["mat-button","","color","primary","data-pendo","data-pendo-manage-reviews",1,"wat-material-new-button",3,"routerLink"],[1,"margin-right-5--reversible"],["data-ta","verified-peer-review",1,"item-flex",3,"ngClass"],[1,"item-prefix","item-prefix-counts"],[3,"useJournalAbbr","database","qid","hasJCRData","record","showIcon","largeSize","parent"],["cdkOverlayOrigin",""],["mat-button","",1,"show-more-button",3,"click","disabled"],[1,"expand-icon"],[1,"loading-spinner",3,"diameter"],[1,"custom-mat-divider"],[1,"verified-editor-container"],["class","item-flex","data-ta","verified-editor-record",3,"ngClass",4,"ngFor","ngForOf"],["data-ta","verified-editor-record",1,"item-flex",3,"ngClass"],["class","editoral-memberships-container margin-bottom-10",4,"ngIf"],["class","editoral-memberships-container",4,"ngIf"],[1,"editoral-memberships-container","margin-bottom-10"],[1,"section-subheader"],[1,"past-memberships","verified-editor-container"],["class","item-flex","data-ta","editoral-board-membership",3,"ngClass",4,"ngFor","ngForOf"],["class","show-more-button show-more-editoral-membership-buttons","mat-button","",3,"disabled","click",4,"ngIf"],["data-ta","editoral-board-membership",1,"item-flex",3,"ngClass"],[1,"item-prefix"],["data-pendo","verified-editoral-membership","svgIcon","verified","class","verified-icon",4,"ngIf"],[1,"cdk-visually-hidden"],[1,"item-content"],["data-pendo","verified-editoral-membership","svgIcon","verified",1,"verified-icon"],["mat-button","",1,"show-more-button","show-more-editoral-membership-buttons",3,"click","disabled"],[1,"editoral-memberships-container"],["class","item-flex",3,"ngClass",4,"ngFor","ngForOf"],[1,"item-flex",3,"ngClass"],["data-pendo","open-pubisher-invited-reviews",1,"section-header"],[3,"publicationReviewPageChange","publicationReviews","isLoading","type","jcrDataExists"],["data-pendo","open-community-reviews",1,"section-header"],[1,"new-link-style",3,"publicationReviewPageChange","publicationReviews","isLoading","jcrDataExists","type"]],template:function(u,g){1&u&&(t.DNE(0,Vu,13,11,"ng-container",1),t.nI1(1,"async")),2&u&&t.Y8G("ngIf",t.bMT(1,1,g.authorDetail$))},dependencies:[Kt.q,pt.Wk,Ft.An,Nl.$Q,B.YU,B.Sq,B.bT,Mt.$z,Nt.LG,zl.r,Ru,B.Jj,B.P9,B.PV,ht.D9],styles:[".publications-tab-content[_ngcontent-%COMP%]{padding-top:1.25rem;padding-bottom:1.875rem;margin-bottom:1.875rem;overflow:hidden}.verified-peer-reviews-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline}@media screen and (max-width: 30rem){.verified-peer-reviews-header[_ngcontent-%COMP%]{flex-direction:column-reverse;align-items:normal;gap:.75rem}}.section-header[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;line-height:1.625rem;margin-bottom:.75rem}.section-subheader[_ngcontent-%COMP%]{margin-bottom:.75rem;font-size:1.125rem;font-weight:400;line-height:1.5rem;color:#000}.verified-reviews-container[_ngcontent-%COMP%], .verified-editor-container[_ngcontent-%COMP%], .peer-reviews-tab-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);width:auto;margin-left:1.125rem}@media only screen and (min-width: 30rem) and (max-width: 64rem){.verified-reviews-container[_ngcontent-%COMP%], .verified-editor-container[_ngcontent-%COMP%], .peer-reviews-tab-columns[_ngcontent-%COMP%]{column-gap:1.25rem}}@media screen and (max-width: 30rem){.verified-reviews-container[_ngcontent-%COMP%], .verified-editor-container[_ngcontent-%COMP%], .peer-reviews-tab-columns[_ngcontent-%COMP%]{grid-template-columns:1fr}}.verified-icon[_ngcontent-%COMP%]{color:#007a00;height:1.3125rem;width:1.375rem;position:relative;top:.3125rem}.verified-membership[_ngcontent-%COMP%]{color:#5e33bf}.two-columned-items[_ngcontent-%COMP%]{flex:1 0 50%;padding-right:1.25rem;margin-bottom:.5rem}.two-columned-items-mobile[_ngcontent-%COMP%]{flex:1 0 100%}.item-flex[_ngcontent-%COMP%]{display:flex;font-size:1rem;align-items:baseline}.item-flex[_ngcontent-%COMP%]   .item-prefix[_ngcontent-%COMP%]{flex-basis:1.75rem;flex-shrink:0;flex-grow:0;font-weight:600;padding:.0625rem}.item-flex[_ngcontent-%COMP%]   .item-prefix-counts[_ngcontent-%COMP%]{flex-basis:2.5rem!important}.item-flex[_ngcontent-%COMP%]   .item-content[_ngcontent-%COMP%]{padding-left:.25rem;color:#000}.loading-spinner[_ngcontent-%COMP%]{display:inline;margin-left:.875rem}.publons-publication-spinner[_ngcontent-%COMP%]{display:block;margin:1.875rem auto 3.125rem}.show-more-button[_ngcontent-%COMP%]{color:var(--sys-primary);cursor:pointer;margin-top:1.1875rem;padding:0;font-size:1rem;line-height:1.5rem;display:inline;margin-left:1.125rem}.show-more-button[_ngcontent-%COMP%]:hover{color:#4125af;padding:0}.show-more-button[_ngcontent-%COMP%]:focus{color:#4125af;padding:0}.show-more-button[_ngcontent-%COMP%]:disabled{outline:none;color:#9e9e9e;cursor:not-allowed}.show-more-button[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{font-size:1.375rem}.show-more-editoral-membership-buttons[_ngcontent-%COMP%]{margin-bottom:.5rem}"]})}}return s})();const Wu=s=>({"border-color":s}),Uu=s=>({color:s}),Hu=s=>({opacity:s});function Ju(s,M){if(1&s){const o=t.RV6();t.j41(0,"wos-select",3),t.bIt("valueChange",function(g){t.eBV(o);const O=t.XpG();return t.Njj(O.changeAuthorPositionsFilterForChips(g))}),t.k0s()}if(2&s){const o=t.XpG();t.AVh("rty",1===o.filterOptions.length),t.Y8G("value",null==o.currentSelection?null:o.currentSelection.authorPositionFilterValue)("optVals",o.filterOptions)("small",!0)("allowSearch",!1)("notAllowedCursor",o.disableFilter||1===(null==o.filterOptions?null:o.filterOptions.length))("label","")("documentFilters",!0)("labelColor",o.labelColor)("labelFontWeight",o.labelFontWeight)("fixedHeight",!1)("disabled",1===o.filterOptions.length||o.disableFilter)("ngStyle",t.eq3(14,Hu,o.disableFilter||1===(null==o.filterOptions?null:o.filterOptions.length)?"50%":""))}}let qu=(()=>{class s extends Rt.${constructor(o,u){super(o),this.store=u,this.labelColor=H.N.PUBLICATION_FILTER_SORT_DROPDOWN_LABEL_COLOR,this.labelFontWeight=H.N.P
1UBLICATION_FILTER_SORT_DROPDOWN_LABEL_FONT_WEIGHT}ngOnInit(){}ngOnChanges(){this.store.select(Y.ED).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.currentSelection=o}),this.store.select(at.l1,{prop:"nxPresentationControl_Hide_Feature_For_FreeviewAndFreemium"}).pipe((0,V.Q)(this.destroyed$)).subscribe(o=>{this.notPremium=o,o&&(this.disableFilter=!0)})}changeAuthorPositionsFilterForChips(o){this.store.dispatch(new be.yk({selectedPreferences:{authorPositionFilterValue:o}}))}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(t.gRc),t.rXU(wt.il))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-positions-filter"]],inputs:{filterOptions:"filterOptions",disableFilter:"disableFilter"},features:[t.Vt3,t.OA$],decls:7,vars:16,consts:[[1,"dropdown",3,"ngStyle","matTooltip","matTooltipDisabled"],[1,"filters-label","author-position",3,"ngStyle"],["style","text-align: left","translatePostfix","_author_position_label","width","auto","class"," cit-dropdown author-position-filter",3,"value","optVals","small","allowSearch","notAllowedCursor","label","documentFilters","labelColor","labelFontWeight","fixedHeight","disabled","ngStyle","rty","valueChange",4,"ngIf"],["translatePostfix","_author_position_label","width","auto",1,"cit-dropdown","author-position-filter",2,"text-align","left",3,"valueChange","value","optVals","small","allowSearch","notAllowedCursor","label","documentFilters","labelColor","labelFontWeight","fixedHeight","disabled","ngStyle"]],template:function(u,g){1&u&&(t.j41(0,"div",0),t.nI1(1,"translate"),t.nI1(2,"translate"),t.j41(3,"span",1),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,Ju,1,16,"wos-select",2),t.k0s()),2&u&&(t.Y8G("ngStyle",t.eq3(12,Wu,g.disableFilter||1===(null==g.filterOptions?null:g.filterOptions.length)?"#9c9c9c":""))("matTooltip",t.bMT(2,8,g.notPremium?t.bMT(1,6,"premium_feature_tooltip"):g.disableFilter?"authorPositionTooltip":"authorPositionTooltip2"))("matTooltipDisabled",!g.disableFilter&&1!==(null==g.filterOptions?null:g.filterOptions.length)),t.R7$(3),t.Y8G("ngStyle",t.eq3(14,Uu,g.disableFilter||1===(null==g.filterOptions?null:g.filterOptions.length)?"#757575":"")),t.R7$(),t.JRh(t.bMT(5,10,"authorPosition")),t.R7$(2),t.Y8G("ngIf",null==g.filterOptions?null:g.filterOptions.length))},dependencies:[Ce.oV,Fe.R,B.bT,B.B3,ht.D9],styles:['[class*=cdk-focus-trap][_ngcontent-%COMP%]:not(.cdk-focus-trap-anchor){position:absolute!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none!important;opacity:0!important;z-index:-1000!important}.link-color[_ngcontent-%COMP%]{font-weight:500;color:var(--sys-primary);transition:none;text-decoration:none}.link-color[_ngcontent-%COMP%]:hover{color:#4125af;text-decoration:underline}.link-underline[_ngcontent-%COMP%]{text-decoration:underline!important}.mat-tooltip[_ngcontent-%COMP%]{font-size:.875rem!important;background-color:#000;opacity:1}.checkbox-mat[_ngcontent-%COMP%]   .cdk-visually-hidden[_ngcontent-%COMP%], h1.cdk-visually-hidden[_ngcontent-%COMP%]{position:absolute!important}.visibility-hidden[_ngcontent-%COMP%]{visibility:hidden!important}.responsive-div[_ngcontent-%COMP%]{max-width:1460px;width:100%;margin:0}.overlay-open[_ngcontent-%COMP%]{overflow:hidden!important}.fullscreen[_ngcontent-%COMP%]{background-color:#fff!important;position:fixed!important;top:0!important;left:0!important;width:100dvw!important;height:100dvh!important;z-index:1000;overflow:auto}.fulltable[_ngcontent-%COMP%]{margin-left:25%}app-wos[_ngcontent-%COMP%]{width:100%;min-height:100%}.text--ex-large[_ngcontent-%COMP%]{font-size:2rem!important}.text--large[_ngcontent-%COMP%]{font-size:1.3125rem!important}.text--normal[_ngcontent-%COMP%]{font-size:1rem!important}.text--small[_ngcontent-%COMP%]{font-size:.875rem!important}[dir=rtl][_ngcontent-%COMP%]   .text--small[_ngcontent-%COMP%]{line-height:1.25rem}.dropdown-with-arrow[_ngcontent-%COMP%]{padding-right:.25rem!important}.mat-mdc-menu-item[_ngcontent-%COMP%], .mat-mdc-option[_ngcontent-%COMP%]{padding:.5rem 1.875rem .5rem .625rem!important;font-size:1rem!important;line-height:1.75rem!important;gap:.75rem}.mat-mdc-menu-item[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .mat-mdc-option[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{color:#212121;text-decoration:none!important}.mat-menu-content[_ngcontent-%COMP%], .mat-mdc-menu-content[_ngcontent-%COMP%], .mat-mdc-select-panel[_ngcontent-%COMP%]{width:100%;padding-top:.3125rem!important;padding-bottom:.3125rem!important}.mat-mdc-menu-item[_ngcontent-%COMP%], .mat-mdc-menu-item-text[_ngcontent-%COMP%]{font-size:.875rem!important;font-weight:400!important}.mat-menu-panel[_ngcontent-%COMP%], .mat-mdc-menu-panel[_ngcontent-%COMP%], .mat-mdc-select-panel[_ngcontent-%COMP%]{border-radius:.1875rem!important;box-shadow:0 .0625rem .125rem #0000004d!important}.mat-mdc-menu-item[_ngcontent-%COMP%]   .mat-mdc-menu-submenu-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:20px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}.searchaid-select-field[_ngcontent-%COMP%]   .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{padding:0 4px!important;min-height:32px}.searchaid-select-field[_ngcontent-%COMP%]   .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important;min-height:32px}.searchaid-select-field[_ngcontent-%COMP%]   .mat-mdc-select-trigger[_ngcontent-%COMP%]{height:32px}.searchaid-select-field[_ngcontent-%COMP%]   .mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%]{display:none}.langMenu[_ngcontent-%COMP%]   .mat-mdc-menu-panel[_ngcontent-%COMP%]{margin-top:.4375rem}.langMenu[_ngcontent-%COMP%]   .mat-mdc-menu-panel[_ngcontent-%COMP%], .langMenu[_ngcontent-%COMP%]   .mat-mdc-menu-item[_ngcontent-%COMP%]{width:160px!important}.saveMenu.mat-mdc-menu-panel[_ngcontent-%COMP%]{width:185px!important}.cdx-overflow[_ngcontent-%COMP%]{overflow:hidden!important}.cdx-overflow[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .cdx-overflow[_ngcontent-%COMP%]   .mat-mdc-menu-item-text[_ngcontent-%COMP%]{display:flex}.cdx-overflow[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .cdx-overflow[_ngcontent-%COMP%]   .mat-mdc-menu-item-text[_ngcontent-%COMP%]:hover{color:var(--sys-primary)!important}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{margin-top:-.125rem}.svg-icon-image--spinner[_ngcontent-%COMP%]{width:.875rem!important;height:.875rem!important;line-height:1.125rem!important;margin-right:0!important;font-size:14px!important;margin-left:0!important}.svg-icon-image--standard[_ngcontent-%COMP%]{width:.875rem!important;height:.875rem!important;line-height:1.125rem!important;margin-right:.3125rem}.svg-icon-image--footer[_ngcontent-%COMP%]{width:1.0625rem!important;height:1.0625rem!important;line-height:1.125rem!important;margin-right:.3125rem}.add-journal[_ngcontent-%COMP%]{float:left}.drop-down[_ngcontent-%COMP%]{color:inherit!important;box-shadow:none!important;background-color:transparent!important;border:none!important}.drop-down[_ngcontent-%COMP%]   button.dropdown[_ngcontent-%COMP%]{background-color:#fff!important}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.svg-spinner[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite}.svg-spinner-inline[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle;transform-origin:center;transform-box:fill-box;flex-shrink:0;animation:_ngcontent-%COMP%_spin 1s linear infinite}.answer-no-content[_ngcontent-%COMP%]{background-color:#fff;border-radius:1.5rem;outline:none;Width:Hug(50px);padding:12px 10px;gap:16px}
1.loading-dot[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dot ease-in-out 1s infinite;background-color:#dfe2ff;display:inline-block;height:.375rem;margin:.1875rem;width:.375rem;border-radius:50%}.loading-dot[_ngcontent-%COMP%]:nth-of-type(2){animation-delay:.2s}.loading-dot[_ngcontent-%COMP%]:nth-of-type(3){animation-delay:.3s}@keyframes _ngcontent-%COMP%_dot{0%{background-color:#dfe2ff;transform:scale(1)}50%{background-color:#838df1;transform:scale(1.3)}to{background-color:#dfe2ff;transform:scale(1)}}.user-menu[_ngcontent-%COMP%]{display:flex}.user-menu[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{top:.5625rem}.user-menu[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0!important;top:.125rem}.font-size-11[_ngcontent-%COMP%]{font-size:.6875rem!important}.font-size-12[_ngcontent-%COMP%]{font-size:.75rem!important}.font-size-13[_ngcontent-%COMP%]{font-size:.8125rem!important}.font-size-14[_ngcontent-%COMP%]{font-size:.875rem!important}.font-size-15[_ngcontent-%COMP%]{font-size:.9375rem!important}.font-size-16[_ngcontent-%COMP%]{font-size:1rem!important}.font-size-17[_ngcontent-%COMP%]{font-size:1.0625rem!important}.font-size-18[_ngcontent-%COMP%]{font-size:1.125rem!important}.font-size-20[_ngcontent-%COMP%]{font-size:1.25rem!important}.font-size-21[_ngcontent-%COMP%]{font-size:1.3125rem!important}.font-size-22[_ngcontent-%COMP%]{font-size:1.375rem!important}.font-size-24[_ngcontent-%COMP%]{font-size:1.5rem!important}.font-size-26[_ngcontent-%COMP%]{font-size:1.625rem!important}.font-size-32[_ngcontent-%COMP%]{font-size:2rem!important}.font-size-30[_ngcontent-%COMP%]{font-size:1.875rem!important}.font-size-36[_ngcontent-%COMP%]{font-size:2.25rem!important}.font-size-48[_ngcontent-%COMP%]{font-size:3rem!important}.font-weight-500[_ngcontent-%COMP%]{font-weight:500}.margin-top-minus-6[_ngcontent-%COMP%]:first-of-type{margin-top:-.375rem}.margin-top-minus-15[_ngcontent-%COMP%]{margin-top:-.9375rem!important}.margin-top-minus-16[_ngcontent-%COMP%]{margin-top:-1rem!important}.margin-bottom-minus-5[_ngcontent-%COMP%]{margin-bottom:-.3125rem!important}.margin-top-5[_ngcontent-%COMP%]{margin-top:.3125rem!important}.margin-top-10[_ngcontent-%COMP%]{margin-top:.625rem!important}.margin-top-15[_ngcontent-%COMP%]{margin-top:.9375rem!important}.margin-top-20[_ngcontent-%COMP%]{margin-top:1.25rem!important}.margin-top-30[_ngcontent-%COMP%]{margin-top:1.875rem!important}.margin-top-45[_ngcontent-%COMP%]{margin-top:2.8125rem!important}.margin-bottom-0[_ngcontent-%COMP%]{margin-bottom:0!important}.margin-0[_ngcontent-%COMP%]{margin:0!important}.margin-bottom-3[_ngcontent-%COMP%]{margin-bottom:.1875rem!important}.margin-bottom-5[_ngcontent-%COMP%]{margin-bottom:.3125rem!important}.margin-bottom-10[_ngcontent-%COMP%]{margin-bottom:.625rem!important}.margin-bottom-12[_ngcontent-%COMP%]{margin-bottom:.75rem!important}.margin-bottom-15[_ngcontent-%COMP%]{margin-bottom:.9375rem!important}.margin-bottom-20[_ngcontent-%COMP%]{margin-bottom:1.25rem!important}.margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.margin-bottom-40[_ngcontent-%COMP%]{margin-bottom:2.5rem!important}.margin-left-minus-10[_ngcontent-%COMP%]{margin-left:-.625rem!important}.margin-left-10[_ngcontent-%COMP%]{margin-left:.625rem}.margin-left-20[_ngcontent-%COMP%]{margin-left:1.25rem}.margin-left-8[_ngcontent-%COMP%]{margin-left:.5rem}.line-height-12[_ngcontent-%COMP%]{line-height:.75rem}.line-height-14[_ngcontent-%COMP%]{line-height:.875rem}.line-height-16[_ngcontent-%COMP%]{line-height:1rem}.line-height-24[_ngcontent-%COMP%]{line-height:1.5rem}.height-24[_ngcontent-%COMP%]{height:1.5rem!important}.line-height-48[_ngcontent-%COMP%]{line-height:3rem}.padding-24[_ngcontent-%COMP%]{padding:1.5rem!important}.brand-blue[_ngcontent-%COMP%]{color:var(--sys-primary)}.spanned-button[_ngcontent-%COMP%]{width:100%;justify-content:center}.links-button[_ngcontent-%COMP%]{max-height:2rem}.image-links-button[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;max-width:1.5rem}.link-color-text[_ngcontent-%COMP%]{color:var(--sys-primary)!important;font-weight:500!important}.link-color-text.disabled[_ngcontent-%COMP%]{color:#9e9e9e!important;cursor:not-allowed}.link-color-text[_ngcontent-%COMP%]:hover{color:#4125af!important}.display-inline-flex[_ngcontent-%COMP%]{display:inline-flex}.wat-material-new-button[_ngcontent-%COMP%]{border-radius:6.25rem!important;border:.0625rem solid #304FFE!important;color:#304ffe!important}.mat-form-field[_ngcontent-%COMP%]:not(.mat-form-field-should-float)   .mat-input-placeholder[_ngcontent-%COMP%]{padding:.625rem;box-sizing:border-box;color:red}.apply-button[_ngcontent-%COMP%]:focus{outline:#00c2f2 auto 1px!important}.wosResearcherContainer[_ngcontent-%COMP%]   .mat-form-field-appearance-outline[_ngcontent-%COMP%]   .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{margin:.5rem!important;padding-bottom:.25rem!important}@media only screen and (max-width: 64rem){.wosResearcherContainer[_ngcontent-%COMP%]   .mat-form-field-appearance-outline[_ngcontent-%COMP%]   .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{margin:0!important}}.reviewer-credit-form[_ngcontent-%COMP%]   .mat-form-field-appearance-outline[_ngcontent-%COMP%]   .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{margin:.5rem!important;padding-bottom:.25rem!important}.content[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]   .mat-mdc-form-field-flex[_ngcontent-%COMP%]{height:12.5rem!important}.content-text[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]   .mat-mdc-form-field-flex[_ngcontent-%COMP%]{height:100%!important}.color-tag[_ngcontent-%COMP%]{display:inline-block;padding:0 .5rem;border-radius:.1875rem;line-height:1.5rem;color:var(--sys-primary);margin-right:.3125rem;margin-bottom:.3125rem;position:relative;transition:.5s all}.hh[_ngcontent-%COMP%], .labl[_ngcontent-%COMP%], mark[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadein .5s;background-color:#ff6;border-radius:.3125rem;color:inherit}.mat-drawer-container[_ngcontent-%COMP%]{overflow:visible!important}@keyframes _ngcontent-%COMP%_fadein{0%{background-color:transparent}to{background-color:#ff6}}.dimmed-background[_ngcontent-%COMP%]{position:fixed;background-color:#0000001c;
1top:-100vh;left:-100vw;width:300vw;height:300vh;z-index:500}.menu-icons[_ngcontent-%COMP%]{width:18px!important;height:18px!important;padding:10px;color:#5e33bf!important;margin-right:0!important}.icon-position[_ngcontent-%COMP%]{vertical-align:bottom}.width-100-pct[_ngcontent-%COMP%]{width:100%}.width-65-pct[_ngcontent-%COMP%]{width:65%}.light-blue-bg[_ngcontent-%COMP%]{background-color:#add8e6!important}.warning-orange-bg[_ngcontent-%COMP%]{background-color:#fcefdc!important}app-general-search-friendly-display[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]{padding:0 30px!important}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;flex-wrap:nowrap;gap:8px}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .inline-wql-editor[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .inline-wql-editor[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .inline-wql-editor[_ngcontent-%COMP%]{display:inline-flex;flex:1 1 auto;
1min-width:200px;max-width:100%}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .inline-label[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .inline-label[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .inline-label[_ngcontent-%COMP%]{flex:0 0 auto;font-weight:500;line-height:28px}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]{background:transparent;border:none;padding:2px 4px;cursor:pointer;display:inline-flex;align-items:center;height:28px}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .perform-search[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .perform-search[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   .perform-search[_ngcontent-%COMP%]{align-self:flex-start;height:28px;line-height:26px;padding:0 12px;font-size:13px}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   app-wql-display[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   app-wql-display[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   app-wql-display[_ngcontent-%COMP%]{display:inline-flex;flex:1 1 auto;min-width:0}app-general-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   app-wql-display[_ngcontent-%COMP%]   .wql-editor[_ngcontent-%COMP%], app-author-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   app-wql-display[_ngcontent-%COMP%]   .wql-editor[_ngcontent-%COMP%], app-simple-search-friendly-display[_ngcontent-%COMP%]   .smart-query-inline[_ngcontent-%COMP%]   app-wql-display[_ngcontent-%COMP%]   .wql-editor[_ngcontent-%COMP%]{flex-wrap:wrap}app-author-summary-record[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]{position:relative;top:-1px}.editing[_ngcontent-%COMP%], .window[_ngcontent-%COMP%]{position:absolute;display:block;background-color:#fff;border-radius:.3125rem;box-shadow:0 .0625rem .125rem #0000004d;width:100%;z-index:1000;box-sizing:border-box;outline:0!important}.editing[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%], .window[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-bottom:solid 1px #bdbdbd;margin-bottom:15px;min-height:52px;padding:10px 10px 10px 20px;outline:0!important}.editing[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]   .search-mode-links[_ngcontent-%COMP%], .window[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]   .search-mode-links[_ngcontent-%COMP%]{margin-bottom:-1px;margin-top:16px}.editing[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%], .window[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{--mdc-icon-button-icon-size: 1rem;position:relative;color:#0000001a!important;display:flex;align-items:center;justify-content:center}.editing[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .window[_ngcontent-%COMP%]   .window-header[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#9e9e9e!important;top:-.0625rem!important}.editing[_ngcontent-%COMP%]   .window-content[_ngcontent-%COMP%], .window[_ngcontent-%COMP%]   .window-content[_ngcontent-%COMP%]{padding-left:30px;padding-right:30px;padding-bottom:30px}.red[_ngcontent-%COMP%]{color:#c43a5e}.orange[_ngcontent-%COMP%]{color:#c92800}.green[_ngcontent-%COMP%]{color:#007a00}.white[_ngcontent-%COMP%]{color:#fff}.brandBlue[_ngcontent-%COMP%]{color:var(--sys-primary)}.brandBlue[_ngcontent-%COMP%]:disabled{color:red}.new-style[_ngcontent-%COMP%]{background-color:#dfe2ff!important;border:none!important;border-radius:16px!important;color:#000!important}.citation-count-color[_ngcontent-%COMP%]{color:#095b8b!important}.rorDisplay[_ngcontent-%COMP%]{margin-left:3rem!important;margin-bottom:.5rem!important}.thin-focus[_ngcontent-%COMP%]{outline:none!important;border-radius:.3125rem;box-shadow:0 0 0 0 var(--sys-primary);transition:.25s box-shadow;cursor:pointer}.thin-focus[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .125rem #00c2f2!important}.margin-left-3--reversible[_ngcontent-%COMP%]{margin-left:.1875rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-3--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:.1875rem!important}.margin-left-5--reversible[_ngcontent-%COMP%]{margin-left:.3125rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-5--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:.3125rem!important}.margin-left-10--reversible[_ngcontent-%COMP%]{margin-left:.625rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-10--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:.625rem!important}.margin-left-15--reversible[_ngcontent-%COMP%]{margin-left:.9375rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-15--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:.9375rem!important}.margin-left-20--reversible[_ngcontent-%COMP%]{margin-left:1.25rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-20--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:1.25rem!important}.margin-left-30--reversible[_ngcontent-%COMP%]{margin-left:1.875rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-30--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:1.875rem!important}.margin-left-35--reversible[_ngcontent-%COMP%]{margin-left:2.1875rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-35--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:2.1875rem!important}.margin-left-40--reversible[_ngcontent-%COMP%]{margin-left:2.5rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-40--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:2.5rem!important}.margin-left-50--reversible[_ngcontent-%COMP%]{margin-left:3.125rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-50--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:3.125rem!important}.margin-left-60--reversible[_ngcontent-%COMP%]{margin-left:3.75rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-60--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:3.75rem!important}.margin-left-75--reversible[_ngcontent-%COMP%]{margin-left:4.6875rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-75--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:4.6875rem!important}.margin-left-95--reversible[_ngcontent-%COMP%]{margin-left:5.9375rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-left-95--reversible[_ngcontent-%COMP%]{margin-left:0!important;margin-right:5.9375rem!important}.button-outline-margin[_ngcontent-%COMP%]{margin:.1875rem}.margin-right-10[_ngcontent-%COMP%]{margin-right:.625rem}.margin-right-2--reversible[_ngcontent-%COMP%]{margin-right:.125rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-2--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.125rem!important}.margin-right-3--reversible[_ngcontent-%COMP%]{margin-right:.1875rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-3--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.1875rem!important}.margin-right-5--reversible[_ngcontent-%COMP%]{margin-right:.3125rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-5--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.3125rem!important}.margin-right-6--reversible[_ngcontent-%COMP%]{margin-right:.375rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-6--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.375rem!important}.margin-right-10--reversible[_ngcontent-%COMP%]{margin-right:.625rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-10--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.625rem!important}.margin-right-15--reversible[_ngcontent-%COMP%]{margin-right:.9375rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-15--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.9375rem!important}.margin-right-20--reversible[_ngcontent-%COMP%]{margin-right:1.25rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-20--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:1.25rem!important}.margin-right-30--reversible[_ngcontent-%COMP%]{margin-right:1.875rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-30--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:1.875rem!important}.margin-right-50--reversible[_ngcontent-%COMP%]{margin-right:3.125rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .margin-right-50--reversible[_ngcontent-%COMP%]{margin-right:0!important;margin-left:3.125rem!important}.padding-right-5--reversible[_ngcontent-%COMP%]{padding-right:.3125rem!important;padding-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-right-5--reversible[_ngcontent-%COMP%]{padding-right:0!important;padding-left:.3125rem!important}.padding-left-3--reversible[_ngcontent-%COMP%]{padding-left:.1875rem!important;padding-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-left-3--reversible[_ngcontent-%COMP%]{padding-left:0!important;padding-right:.1875rem!important}.padding-right-3--reversible[_ngcontent-%COMP%]{padding-right:.1875rem!important;padding-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-right-3--reversible[_ngcontent-%COMP%]{padding-right:0!important;padding-left:.1875rem!important}.padding-left-7--reversible[_ngcontent-%COMP%]{padding-left:.4375rem!important;padding-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-left-7--reversible[_ngcontent-%COMP%]{padding-left:0!important;padding-right:.4375rem!important}.padding-left-10--reversible[_ngcontent-%COMP%]{padding-left:.625rem!important;padding-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-left-10--reversible[_ngcontent-%COMP%]{padding-left:0!important;padding-right:.625rem!important}.padding-left-15--reversible[_ngcontent-%COMP%]{padding-left:.9375rem!important;padding-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-left-15--reversible[_ngcontent-%COMP%]{padding-left:0!important;padding-right:.9375rem!important}.padding-right-15--reversible[_ngcontent-%COMP%]{padding-right:.9375rem!important;padding-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-right-15--reversible[_ngcontent-%COMP%]{padding-right:0!important;padding-left:.9375rem!important}.font-weight-400[_ngcontent-%COMP%]{font-weight:400!important}.font-weigth-700[_ngcontent-%COMP%]{font-weight:700!important}.font-weigth-600[_ngcontent-%COMP%]{font-weight:600!important}.mdc-switch[_ngcontent-%COMP%]{transform:scale(.7);transform-origin:center;margin-left:-.4375rem!important;margin-right:0!important}[dir=rtl][_ngcontent-%COMP%]   .mdc-switch[_ngcontent-%COMP%]{margin-left:0!important;margin-right:-.4375rem!important}.fieldset-reset[_ngcontent-%COMP%]{margin:0;padding:0;min-width:0;border:none;display:contents}.mat-button-ripple.mat-ripple[_ngcontent-%COMP%]{will-change:transform,opacity}.mat-icon-alignment[_ngcontent-%COMP%]{margin-left:-1.25rem}.wos-input[_ngcontent-%COMP%], .search-criteria-input[_ngcontent-%COMP%]{-webkit-appearance:none;box-shadow:0 0 0 .0625rem #9e9e9e;border:none!important;outline:none!important;border-radius:.3125rem;
1transition:box-shadow .5s;flex-grow:1;padding-left:.625rem;padding-right:.625rem;color:#616161}.wos-input[_ngcontent-%COMP%]:focus, .search-criteria-input[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .125rem var(--sys-primary)}.wos-input[_ngcontent-%COMP%]::-ms-clear, .search-criteria-input[_ngcontent-%COMP%]::-ms-clear{display:none}textarea.search-criteria-input[_ngcontent-%COMP%]{display:block;width:100%;height:200px;margin-top:.625rem;margin-bottom:.625rem;padding:10px 0 10px 10px}.search-criteria-input[_ngcontent-%COMP%]{font-size:1rem}.search-info-title[_ngcontent-%COMP%]{color:#424242;font-weight:600;outline:0!important}.display-none[_ngcontent-%COMP%]{display:none!important}.outbound-over[_ngcontent-%COMP%]:focus{outline:none!important}.ellipsis-text[_ngcontent-%COMP%]{display:inline-block;text-overflow:ellipsis}.search-friendly-header[_ngcontent-%COMP%]{margin-top:.9375rem;display:block;margin-bottom:0;padding-bottom:.3125rem;position:relative;outline:0!important}.small-info-text[_ngcontent-%COMP%]{color:#616161;font-style:italic;padding-left:.1875rem}.flex-spacer[_ngcontent-%COMP%]{flex-grow:1;padding:0!important}.flex-align[_ngcontent-%COMP%]{display:flex!important}.flex-align-center-center[_ngcontent-%COMP%]{display:flex!important;align-items:center;justify-content:center}.flex-align-left[_ngcontent-%COMP%]{display:flex!important;align-items:center;justify-content:flex-start}.flex-align-right[_ngcontent-%COMP%]{display:flex!important;align-items:center;justify-content:flex-end}.flex-display-justify-end[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}[dir=rtl][_ngcontent-%COMP%]   .flex-display-justify-end[_ngcontent-%COMP%]{justify-content:flex-start;flex-direction:row-reverse}.flex-display-justify-end-no-reverse[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}[dir=rtl][_ngcontent-%COMP%]   .flex-display-justify-end-no-reverse[_ngcontent-%COMP%]{justify-content:flex-start}.flex-display-justify-start[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}[dir=rtl][_ngcontent-%COMP%]   .flex-display-justify-start[_ngcontent-%COMP%]{justify-content:flex-end;flex-direction:row-reverse}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.flex-justify-end[_ngcontent-%COMP%]{justify-content:flex-end!important}.flex-align-start[_ngcontent-%COMP%]{align-items:flex-start}.flex-justify-center[_ngcontent-%COMP%]{justify-content:center}.flex-align-center[_ngcontent-%COMP%]{align-content:center}.flex-align-baseline[_ngcontent-%COMP%]{align-content:baseline!important}.flex-display-align-center[_ngcontent-%COMP%]{display:flex;align-items:center}[dir=rtl][_ngcontent-%COMP%]   .flex-display-align-center[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-align-items-center[_ngcontent-%COMP%]{align-items:center!important}.flex-align-items-top[_ngcontent-%COMP%]{align-items:flex-start}.flex-justify-space-between[_ngcontent-%COMP%]{justify-content:space-between}.flex-direction-column[_ngcontent-%COMP%]{flex-direction:column}.mat-stack[_ngcontent-%COMP%]{display:inline-block;height:2rem;line-height:2rem;position:relative;vertical-align:middle;width:2rem}.mat-stack-1x[_ngcontent-%COMP%]{top:.3125rem;color:var(--sys-primary)}.mat-stack-2x[_ngcontent-%COMP%]{height:1.75rem!important}.mat-stack-1x[_ngcontent-%COMP%], .mat-stack-2x[_ngcontent-%COMP%]{left:0;position:absolute;text-align:center!important;width:100%!important}.mat-icon[_ngcontent-%COMP%]{overflow:unset!important}.svg-icon-12[_ngcontent-%COMP%]{width:.75rem!important;height:.75rem!important;position:relative;top:.125rem;left:-.125rem}.svg-icon-12-centered[_ngcontent-%COMP%]{min-width:.75rem!important;min-height:.75rem!important;position:relative}.svg-icon-14[_ngcontent-%COMP%]{width:.875rem!important;height:.875rem!important;position:relative;top:0rem;left:-.125rem}.svg-icon-14-centered[_ngcontent-%COMP%]{width:.875rem!important;height:.875rem!important}.svg-icon-15[_ngcontent-%COMP%]{width:.9375rem!important;height:.9375rem!important;position:relative}.svg-icon-16[_ngcontent-%COMP%]{width:1rem!important;height:1rem!important;position:relative;top:0;left:0}.svg-icon-16-centered[_ngcontent-%COMP%]{min-width:1rem!important;min-height:1rem!important;position:relative;top:2px;left:0}.svg-icon-17[_ngcontent-%COMP%]{width:1.0625rem!important;height:1.0625rem!important;position:relative;top:.125rem;left:0}.svg-icon-18[_ngcontent-%COMP%]{width:1.125rem!important;height:1.125rem!important;position:relative}.svg-icon-18-centered[_ngcontent-%COMP%]{width:1.125rem!important;height:1.125rem!important;position:relative;top:0;left:0}.svg-icon-18-inline-flex[_ngcontent-%COMP%]{width:1.125rem!important;height:1.125rem!important;display:inline-flex!important}.svg-icon-20[_ngcontent-%COMP%], .svg-icon-20-centered[_ngcontent-%COMP%]{width:1.25rem!important;height:1.25rem!important;position:relative;top:.125rem;left:-.125rem}.svg-icon-20-inline[_ngcontent-%COMP%]{width:1.25rem!important;height:1.25rem!important}.svg-icon-24[_ngcontent-%COMP%]{width:1.5rem!important;height:1.5rem!important;line-height:1.75rem;position:relative;top:.125rem;left:-.125rem}.svg-icon-24-inline[_ngcontent-%COMP%]{width:1.5rem!important;height:1.5rem!important}.svg-icon-34[_ngcontent-%COMP%]{width:2.125rem!important;height:2.125rem!important;position:relative;top:.125rem;left:-.125rem}.loading-cover[_ngcontent-%COMP%]:before{position:absolute;height:100%;width:100%;background-color:#fff;content:"";z-index:100;border-radius:.3125rem}.data-box[_ngcontent-%COMP%]{width:auto;height:auto;padding:1.875rem;background-color:#fff;margin-bottom:1.25rem;border-radius:.3125rem;box-shadow:0 .0625rem .125rem #0000004d;outline:0!important}.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#000000b3!important}.vertical-align-sub[_ngcontent-%COMP%]{vertical-align:sub!important}.top-3[_ngcontent-%COMP%]{top:.1875rem!important}.top-6[_ngcontent-%COMP%]{top:.375rem!important}.top-minus-10[_ngcontent-%COMP%]{top:-.625rem!important}.transparent-background[_ngcontent-%COMP%]{background-color:transparent}.italic-style[_ngcontent-%COMP%]{font-style:italic!important}.multiline-tooltip[_ngcontent-%COMP%]{white-space:pre-line}.dialog-line[_ngcontent-%COMP%]{line-height:26px}.capitalize-text[_ngcontent-%COMP%]{text-transform:capitalize}.uppercase-text[_ngcontent-%COMP%]{text-transform:uppercase!important}.tdLine[_ngcontent-%COMP%]{border-bottom:1px solid #bdbdbd!important}.betaPanel[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]{padding:1.5625rem 2.1875rem!important}.search-mat-form-field[_ngcontent-%COMP%]   .mdc-notched-outline[_ngcontent-%COMP%]{display:none!important}.nextGenSnackBar[_ngcontent-%COMP%]{background-color:#c43a5e;color:#fff}.nextGenSnackBar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]{color:#fff;font-weight:600}.nextGenSnackBarSuccess[_ngcontent-%COMP%]{color:#fff}.nextGenSnackBarSuccess[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]{color:#fff;font-weight:600}[_ngcontent-%COMP%]:focus{outline:var(--custom-outline-color) auto 1px}.wordBreak[_ngcontent-%COMP%]{word-break:break-all}div.DotmaticsElemental[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:inherit!important}div.DotmaticsElemental.elemental-diagram-box[_ngcontent-%COMP%]   canvas[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.patent-image-sidenav-container[_ngcontent-%COMP%]   .mat-drawer-backdrop[_ngcontent-%COMP%]{position:fixed;background:#fff9}.jcr-sidenav-container[_ngcontent-%COMP%]   .mat-drawer-backdrop[_ngcontent-%COMP%]{position:fixed!important}.nextgen-sidenav-container[_ngcontent-%COMP%]{z-index:2000!important}.nextgen-sidenav-container[_ngcontent-%COMP%]   .mat-drawer-backdrop[_ngcontent-%COMP%]{position:fixed}#chemical-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:.875rem!important}.mat-mdc-icon-button-center-icon[_ngcontent-%COMP%]{display:inline-flex!important;align-items:center;justify-content:center}.mat-mdc-icon-button-center-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:currentColor!important}.no-focus-overlay.mdc-button[_ngcontent-%COMP%]:hover:not(.mdc-button--disabled)   .mdc-button__ripple[_ngcontent-%COMP%], .no-focus-overlay.mat-mdc-stroked-button[_ngcontent-%COMP%]:hover:not(.mdc-button--disabled)   .mdc-button__ripple[_ngcontent-%COMP%]{opacity:0}
1[dir=ltr][_ngcontent-%COMP%]   .colonMark[_ngcontent-%COMP%]:after{display:inline-block;content:":";margin-right:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .colonMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .colonMark[_ngcontent-%COMP%]:after{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .colonMark[_ngcontent-%COMP%]:before{display:inline-block;content:":";margin-left:.1875rem}[dir=rtl][_ngcontent-%COMP%]   .colonMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .colonMark[_ngcontent-%COMP%]:after{display:inline-block;content:":";margin-left:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .semiColonMark[_ngcontent-%COMP%]:after{display:inline-block;content:";";margin-right:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .semiColonMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .semiColonMark[_ngcontent-%COMP%]:after{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .semiColonMark[_ngcontent-%COMP%]:before{display:inline-block;content:";";margin-left:.1875rem}[dir=rtl][_ngcontent-%COMP%]   .semiColonMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .semiColonMark[_ngcontent-%COMP%]:after{display:inline-block;content:";";margin-left:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .commaMark[_ngcontent-%COMP%]:after{display:inline-block;content:",";margin-right:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .commaMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .commaMark[_ngcontent-%COMP%]:after{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .commaMark[_ngcontent-%COMP%]:before{display:inline-block;content:",";margin-left:.1875rem}[dir=rtl][_ngcontent-%COMP%]   .commaMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .commaMark[_ngcontent-%COMP%]:after{display:inline-block;content:",";margin-left:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .verticalLine[_ngcontent-%COMP%]:after{display:none}[dir=ltr][_ngcontent-%COMP%]   .verticalLine[_ngcontent-%COMP%]:before{display:inline-block;content:"|";margin:0 .1875rem}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .verticalLine[_ngcontent-%COMP%]:after{display:inline-block;content:"|";margin:0 .1875rem}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .verticalLine[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .verticalLine[_ngcontent-%COMP%]:before{display:inline-block;content:"|"}[dir=rtl][_ngcontent-%COMP%]   .verticalLine[_ngcontent-%COMP%]:after{display:none}[dir=ltr][_ngcontent-%COMP%]   .hyphenMark[_ngcontent-%COMP%]:after{display:none}[dir=ltr][_ngcontent-%COMP%]   .hyphenMark[_ngcontent-%COMP%]:before{display:inline-block;content:"-";margin:0 .25rem}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .hyphenMark[_ngcontent-%COMP%]:after{display:inline-block;content:"-";margin:0 .25rem}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .hyphenMark[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .hyphenMark[_ngcontent-%COMP%]:before{display:inline-block;content:"-"}[dir=rtl][_ngcontent-%COMP%]   .hyphenMark[_ngcontent-%COMP%]:after{display:none}[dir=ltr][_ngcontent-%COMP%]   .spaced[_ngcontent-%COMP%]:after{display:inline-block;content:" ";margin-right:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .spaced[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .spaced[_ngcontent-%COMP%]:after{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .spaced[_ngcontent-%COMP%]:before{display:inline-block;content:" ";margin-left:.1875rem}[dir=rtl][_ngcontent-%COMP%]   .spaced[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .spaced[_ngcontent-%COMP%]:after{display:inline-block;content:" ";margin-left:.1875rem}.notice-bar-div[_ngcontent-%COMP%]{padding:0 1.875rem;display:flex;align-items:center;justify-content:center}.notice-bar[_ngcontent-%COMP%]{display:block;text-align:center;vertical-align:middle!important;background-color:#e0f3fb;margin:1.75rem 0 1.1875rem 1.875rem;align-items:center;height:5rem;padding:0 .3125rem 1.5625rem .125rem;font-size:.9375rem;alignment-baseline:center;width:95%;border-left:.5rem solid #175897;border-top-left-radius:.3125rem;border-bottom-left-radius:.3125rem}[dir=rtl][_ngcontent-%COMP%]   .notice-bar[_ngcontent-%COMP%]{border-right:.5rem solid #175897;border-left:0 solid #175897;border-radius:0 .3125rem .3125rem 0}.notice-bar[_ngcontent-%COMP%]   .dismiss-button[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:flex-end;height:28px}.notice-bar[_ngcontent-%COMP%]   .collection-notice[_ngcontent-%COMP%]{text-align:left;margin-top:0}[dir=rtl][_ngcontent-%COMP%]   .notice-bar[_ngcontent-%COMP%]   .collection-notice[_ngcontent-%COMP%]{direction:ltr}.ra-cta[_ngcontent-%COMP%]{min-height:9rem;border:1px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(180deg,#b175e1 20%,#3595f0) border-box;border-radius:16px;padding:24px;margin-bottom:24px}.ra-cta__header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.ra-cta__logo[_ngcontent-%COMP%]{color:#815ed9;position:static;display:inline-flex!important;line-height:1;flex-shrink:0;margin-top:3px}.ra-cta__title[_ngcontent-%COMP%]{margin:0;line-height:1.2}.ra-cta__button-text[_ngcontent-%COMP%]{white-space:normal;word-break:break-word}.ra-cta[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:fit-content}.ra-cta[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{top:1px}.limited-height-menu[_ngcontent-%COMP%]{max-height:240px!important;width:330px}.wosResearcherCopyIcon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin:.4375rem 0rem 0rem;fill:#fff!important}.blueBox[_ngcontent-%COMP%]{width:fit-content;line-height:1.6875rem;padding:0 .625rem;border-radius:2px;background-color:#e8dffc}.wos-bg-image[_ngcontent-%COMP%]{background-image:url(/wos/static/images/wos_background.png);background-repeat:no-repeat;background-size:cover}.flex-grow-1[_ngcontent-%COMP%]{flex-grow:1!important}.flex-grow-2[_ngcontent-%COMP%]{flex-grow:2!important}.flex-grow-3[_ngcontent-%COMP%]{flex-grow:3!important}.gap-10[_ngcontent-%COMP%]{gap:.625rem!important}.line-height-adjust32[_ngcontent-%COMP%]{line-height:2rem}.copy-clipboard[_ngcontent-%COMP%]{display:inline-flex!important;outline:auto;width:50%!important}.copy-clipboard[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:80%!important;font-size:revert!important;margin-top:8px;margin-left:5px;margin-right:5px}.copy-clipboard[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{resize:none}.wos-sign-in[_ngcontent-%COMP%]{padding:10px 18px 10px 24px!important;font-size:16px!important;line-height:20px!important}.mdc-button.wos-register[_ngcontent-%COMP%], .mat-mdc-flat-button.wos-register[_ngcontent-%COMP%]{padding:10px 24px!important;border-radius:100px!important;font-size:14px!important;line-height:17px!important}.mdc-button.wos-register[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%], .mat-mdc-flat-button.wos-register[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.mdc-button.wos-register[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .mat-mdc-flat-button.wos-register[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:13px;width:3px}.mdc-button.wos-register[_ngcontent-%COMP%]:disabled, .mat-mdc-flat-button.wos-register[_ngcontent-%COMP%]:disabled{outline:none;opacity:.3;background-color:#9e9e9e;color:#000!important;cursor:not-allowed}.wos-login-account[_ngcontent-%COMP%]{color:#2a306b!important}.company-icon[_ngcontent-%COMP%]{width:2.0625rem!important;height:2.0625rem!important;margin-right:.5rem}*[disabled=true][_ngcontent-%COMP%], .mat-checkbox-disabled[_ngcontent-%COMP%]{cursor:not-allowed!important}.not-index-pill[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:0;line-height:16px;text-align:center;border-radius:.625rem;background-color:#616161;padding:.1875rem .375rem;position:relative;right:.75rem;overflow-x:visible;white-space:nowrap}
1.normal-space-checkbox[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]{white-space:normal!important}.is_verified_status_color[_ngcontent-%COMP%]{color:#007a00}.is_non_verified_status_color[_ngcontent-%COMP%]{color:#e9795d}.is_in_progress_status_color[_ngcontent-%COMP%]{color:#9ad490}.confirmation-dialog-class[_ngcontent-%COMP%]{--mdc-icon-button-icon-size: 1rem}.confirmation-dialog-class[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]{padding:15px 15px 24px 24px!important;height:fit-content;overflow:hidden}.confirmation-dialog-class[_ngcontent-%COMP%]   .mdc-dialog__surface[_ngcontent-%COMP%]{padding:.625rem 1.25rem!important;min-height:auto!important}.confirmation-dialog-class[_ngcontent-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end!important}.confirmation-dialog-class[_ngcontent-%COMP%]   .mat-mdc-dialog-container[_ngcontent-%COMP%]{box-shadow:none!important}.twitter-icon[_ngcontent-%COMP%]{width:20px;height:20px;fill:currentColor}.tool-tip-dialog[_ngcontent-%COMP%]   .tool-tip-arrow[_ngcontent-%COMP%], .tool-tip-dialog.right-top[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after, .tool-tip-dialog.left-top[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after, .tool-tip-dialog.right-bottom[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after, .tool-tip-dialog.left-bottom[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{content:"";position:absolute;border-width:.75rem;border-style:solid;margin-top:-2px}.tool-tip-dialog[_ngcontent-%COMP%]   .bottom-arrow[_ngcontent-%COMP%], .tool-tip-dialog.right-bottom[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after, .tool-tip-dialog.left-bottom[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{border-color:white transparent transparent transparent}.tool-tip-dialog[_ngcontent-%COMP%]   .top-arrow[_ngcontent-%COMP%], .tool-tip-dialog.right-top[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after, .tool-tip-dialog.left-top[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{border-color:transparent transparent white transparent}.tool-tip-dialog[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]{padding:.625rem!important;position:relative;overflow:unset}.tool-tip-dialog[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]   .mat-mdc-dialog-content[_ngcontent-%COMP%]{width:auto;padding:.625rem;padding-top:0;margin:0}.tool-tip-dialog[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;height:2.25rem}.tool-tip-dialog[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{margin:0}.tool-tip-dialog.left-bottom[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{top:100%;left:.625rem}.tool-tip-dialog.right-bottom[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{top:100%;left:calc(100% - 2.125rem)}.tool-tip-dialog.left-top[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{bottom:100%;left:.625rem}.tool-tip-dialog.right-top[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]:after{bottom:100%;left:calc(100% - 2.125rem)}app-left-sidenav-bar[_ngcontent-%COMP%]   .rounded[_ngcontent-%COMP%]{display:none}.full-record-detail-section-links[_ngcontent-%COMP%]{color:#095b8b!important}.right-panel-single-division[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}.single-division-alignments[_ngcontent-%COMP%]{border-radius:16px;padding:24px 24px 40px;background:#fff;margin-bottom:24px}.display-actions-alignment[_ngcontent-%COMP%]{display:flex!important;flex-direction:row;align-items:center}.export-pdf-button[_ngcontent-%COMP%]{white-space:nowrap;padding-left:4%!important;min-width:auto!important}.clear-icon[_ngcontent-%COMP%]{margin-top:unset;margin-left:.5rem!important}.new-wos-style[_ngcontent-%COMP%]   .holder-grid[_ngcontent-%COMP%]{padding-bottom:15px}.new-wos-style[_ngcontent-%COMP%]   .create-review-button[_ngcontent-%COMP%]{background:none!important}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px;padding:16px}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{font-size:20px;font-weight:600;line-height:32px;margin-bottom:16px;color:#000}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .search-box[_ngcontent-%COMP%]{padding-right:1px;padding-left:1px;margin-bottom:16px}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .search-criteria-input[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #e0e0e0;border-radius:8px}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .search-criteria-input[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px #5d33bf}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .search-criteria-input[_ngcontent-%COMP%]::placeholder{color:#757575;font-size:16px;font-weight:600}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .filter-heading[_ngcontent-%COMP%]{font-size:16px;line-height:24px;color:#000;font-weight:600;margin:0 -5px!important;padding:12px 5px;box-sizing:content-box;width:100%}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .filter-heading[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .filter-heading[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:12px;margin-left:6px;margin-right:6px}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .filter-heading[_ngcontent-%COMP%]   .mat-icon.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.new-wos-style[_ngcontent-%COMP%]   .refine-panel-container[_ngcontent-%COMP%]   .filter-section-border[_ngcontent-%COMP%]{border:none}.new-wos-style[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]{background-color:#fff!important}.new-wos-style[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]   .footer-div[_ngcontent-%COMP%]{background-color:#fff!important}.new-wos-style[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]   .footer-div[_ngcontent-%COMP%]   .revert-svg-color[_ngcontent-%COMP%]{filter:invert(2)}.new-wos-style[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]   .footer-div[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{background-color:#fff!important}.new-wos-style[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]   .footer-div[_ngcontent-%COMP%]   .footerContent[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#000!important}.new-wos-style[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]   .footer-div[_ngcontent-%COMP%]   .footerContent[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:500;color:#000!important;background-color:#fff!important;line-height:26px}.new-wos-style[_ngcontent-%COMP%]   .cdx-header__product-bar[_ngcontent-%COMP%]{box-shadow:none!important;background-color:#fff!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]{background-color:#fff!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .old[_ngcontent-%COMP%]{display:none}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .rounded[_ngcontent-%COMP%]{display:inline-block}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav-link[_ngcontent-%COMP%]{margin-bottom:5px}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav-link[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav[_ngcontent-%COMP%]{background-color:#fff!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .expanded[_ngcontent-%COMP%]   .item-highlight[_ngcontent-%COMP%]{background:#f2f2f2!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav.expanded[_ngcontent-%COMP%]   .hover-highlight[_ngcontent-%COMP%]:hover, .new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav.expanded[_ngcontent-%COMP%]   .hover-highlight[_ngcontent-%COMP%]:focus{background-color:#f2f2f2!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav.collapsed[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:focus   .item-icon[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav.collapsed[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .item-icon[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav.collapsed[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:focus.item-icon, .new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   .left-side-nav.collapsed[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover.item-icon{background:#f2f2f2!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{color:#372a6b!important}.new-wos-style[_ngcontent-%COMP%]   app-left-sidenav-bar[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#372a6b!important}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ng
1content-%COMP%]   .summary-page[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .summary-page[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .summary-page[_ngcontent-%COMP%]{grid-gap:20px}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .summary-page[_ngcontent-%COMP%]   .page-bar[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .summary-page[_ngcontent-%COMP%]   .page-bar[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .summary-page[_ngcontent-%COMP%]   .page-bar[_ngcontent-%COMP%]{padding-right:0!important;padding-left:0!important}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .app-page-controls[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .app-page-controls[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .results[_ngcontent-%COMP%]   .app-page-controls[_ngcontent-%COMP%]{padding:0 24px;background-color:#fff;display:block;margin-bottom:0}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .summary-top-border[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .summary-top-border[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .summary-top-border[_ngcontent-%COMP%]{border-radius:1rem 1rem 0 0}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .summary-bottom-border[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .summary-bottom-border[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .summary-bottom-border[_ngcontent-%COMP%]{border-radius:0 0 1rem 1rem}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .search-info-container-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .search-info-container-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .search-info-container-new[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:5px}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .search-info-title-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .search-info-title-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .search-info-title-new[_ngcontent-%COMP%]{font-size:32px!important;font-weight:400;line-height:40px;color:#000;margin-bottom:0}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .search-info-title-new[_ngcontent-%COMP%]   .brand-blue[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .search-info-title-new[_ngcontent-%COMP%]   .brand-blue[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .search-info-title-new[_ngcontent-%COMP%]   .brand-blue[_ngcontent-%COMP%]{font-size:2rem!important;font-weight:700!important;color:#000}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .new-wos-btn-style[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .new-wos-btn-style[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .new-wos-btn-style[_ngcontent-%COMP%]{height:36px}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .tab-link-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ng
1content-%COMP%]   .tab-link-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .tab-link-new[_ngcontent-%COMP%]{font-size:20px;font-weight:400;color:#000}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .tab-results-count[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .tab-results-count[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .tab-results-count[_ngcontent-%COMP%]{font-weight:600;font-size:24px}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .summary-option-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .summary-option-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .summary-option-new[_ngcontent-%COMP%]{height:37px;min-width:142px}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .smart-summary-tab-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .smart-summary-tab-new[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .smart-summary-tab-new[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .new-generic-metada[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .new-generic-metada[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .new-generic-metada[_ngcontent-%COMP%]{color:#095b8b;font-size:16px;font-weight:400}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .generic-metada-text[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .generic-metada-text[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .generic-metada-text[_ngcontent-%COMP%]{color:#000;font-size:16px;font-weight:400}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .icon-neutral[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .icon-neutral[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .icon-neutral[_ngcontent-%COMP%]{color:#000}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .qmInputPanel[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .qmInputPanel[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .qmInputPanel[_ngcontent-%COMP%]{min-width:65%;width:auto;border-radius:34px;padding:16px 24px;background-color:#fff;border:3px #DFE2FF;min-height:36px;position:relative}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .qmChipsNew[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .qmChipsNew[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .qmChipsNew[_ngcontent-%COMP%]{border:2px solid #DFE2FF}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .newQmMore[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .newQmMore[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .newQmMore[_ngcontent-%COMP%]{font-size:20px!important}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .chip-text[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .chip-text[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .chip-text[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#000}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ng
1content-%COMP%]   .chips-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .chips-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .chips-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:auto;font-size:20px!important}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .chips-container[_ngcontent-%COMP%]   button.chip[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .chips-container[_ngcontent-%COMP%]   button.chip[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .chips-container[_ngcontent-%COMP%]   button.chip[_ngcontent-%COMP%]{margin-right:.5rem}.new-wos-style[_ngcontent-%COMP%]   app-base-summary-component[_ngcontent-%COMP%]   .qmPannelNew[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-stateless-summary-component[_ngcontent-%COMP%]   .qmPannelNew[_ngcontent-%COMP%], .new-wos-style[_ngcontent-%COMP%]   app-orcid-wizard-summary[_ngcontent-%COMP%]   .qmPannelNew[_ngcontent-%COMP%]{margin-top:24px!important;padding-left:166px}.new-wos-style[_ngcontent-%COMP%]   app-record[_ngcontent-%COMP%]   .summary-record-parent[_ngcontent-%COMP%]{padding:0;margin-bottom:0;box-shadow:none!important}.new-wos-style[_ngcontent-%COMP%]   app-record[_ngcontent-%COMP%]   .summary-record[_ngcontent-%COMP%]   .number-section[_ngcontent-%COMP%]{padding:0!important;margin-right:0!important}.new-wos-style[_ngcontent-%COMP%]   app-record[_ngcontent-%COMP%]   .summary-record[_ngcontent-%COMP%]   .stats-section[_ngcontent-%COMP%]   .data-box-text[_ngcontent-%COMP%]{margin-top:-2px;font-size:16px!important;color:#095b8b;background-color:#fff}.new-wos-style[_ngcontent-%COMP%]   app-record[_ngcontent-%COMP%]   .summary-record[_ngcontent-%COMP%]   .stats-section[_ngcontent-%COMP%]   .data-box-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   .data-box-text[_ngcontent-%COMP%]{color:#4125af}.new-wos-style[_ngcontent-%COMP%]   app-record[_ngcontent-%COMP%]   .summary-record-new[_ngcontent-%COMP%]{padding:24px 0!important}.new-wos-style[_ngcontent-%COMP%]   app-summary-title[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{line-height:26px!important}.new-wos-style[_ngcontent-%COMP%]   app-summary-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px!important;color:#095b8b;font-weight:600!important}.new-wos-style[_ngcontent-%COMP%]   app-summary-title[_ngcontent-%COMP%]   .title-link[_ngcontent-%COMP%]{color:#095b8b!important}.new-wos-style[_ngcontent-%COMP%]   app-summary-title[_ngcontent-%COMP%]   .title-link[_ngcontent-%COMP%]:hover{color:#095b8b!important;text-decoration:underline!important}.new-wos-style[_ngcontent-%COMP%]   app-summary-title[_ngcontent-%COMP%]   .title-link-disabled[_ngcontent-%COMP%]{color:#424242!important}.new-wos-style[_ngcontent-%COMP%]   .summary-jcr-sidenav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#095b8b!important;text-decoration:none!important}.new-wos-style[_ngcontent-%COMP%]   .summary-jcr-sidenav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline!important}.new-wos-style[_ngcontent-%COMP%]   .app-records-list[_ngcontent-%COMP%]{display:block;background-color:#fff!important;padding:0 24px!important}.new-wos-style[_ngcontent-%COMP%]   .new-link-style[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#095b8b!important;text-decoration:none;font-size:14px;font-style:normal;font-weight:400}
1.new-wos-style[_ngcontent-%COMP%]   .summary-card-separator[_ngcontent-%COMP%]{height:1px;margin:0 auto;padding:0 24px;border:none;background:#e0e0e0}.new-wos-style[_ngcontent-%COMP%]   .wos-new-primary-color[_ngcontent-%COMP%]{color:#095b8b!important}.new-wos-style[_ngcontent-%COMP%]   .wos-new-button-color[_ngcontent-%COMP%]{color:#515151!important}.feedback-list[_ngcontent-%COMP%]   .mat-checkbox-frame[_ngcontent-%COMP%]{border-color:#5e33bf}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;min-height:4.125rem;border-radius:33px;padding-inline-start:18px;padding-inline-end:60px;padding-bottom:20px;padding-top:20px;position:relative;transition:.1s outline!important;outline:1px solid #8F85FF!important;box-shadow:none;outline-offset:0!important;overflow:hidden;text-overflow:ellipsis;display:block;min-width:0;font-weight:400;font-size:20px;font-family:Source Sans Pro,Noto Kufi Arabic,sans-serif;color:#000}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input[_ngcontent-%COMP%]:focus{box-shadow:none;outline:2px solid #6D4BCF!important}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input[_ngcontent-%COMP%]::placeholder{font-style:italic;color:#757575;text-overflow:ellipsis;overflow:hidden}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input[_ngcontent-%COMP%]:disabled{background-color:#fafafa!important;outline:1px solid gray!important;cursor:not-allowed!important}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input-submit-button[_ngcontent-%COMP%]{position:absolute;top:15px;height:36px;width:36px;min-width:36px;inset-inline-end:15px;padding:0;display:flex;align-items:center;justify-content:center}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input-submit-button[_ngcontent-%COMP%]   .mdc-button__label[_ngcontent-%COMP%]{display:inline-flex}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input-submit-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:relative;height:16px!important;width:16px!important;display:inline-flex;vertical-align:auto}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input-submit-button[_ngcontent-%COMP%]   mat-icon.svg-spinner[_ngcontent-%COMP%]{height:24px!important;width:18px!important;top:-1px!important}app-wos[_ngcontent-%COMP%]   .fully-rounded-large-input-submit-button[_ngcontent-%COMP%]:disabled{color:#fdfdfd!important;background-color:#8080804d!important}.search-aid-selects[_ngcontent-%COMP%]   .mat-mdc-select-arrow-wrapper[_ngcontent-%COMP%]{align-items:flex-end!important}.search-aid-selects[_ngcontent-%COMP%]   .mdc-text-field--filled[_ngcontent-%COMP%]{background-color:transparent!important}.chat-graphOptions[_ngcontent-%COMP%]{padding:8px 16px!important;font-size:14px!important;line-height:16px!important;font-weight:600!important;border:none;cursor:pointer;text-align:left;display:flex;width:100%!important;align-items:center!important;justify-content:flex-start!important;min-height:6.5rem!important}.chat-graphOptions[_ngcontent-%COMP%]   .sub-graphOptions[_ngcontent-%COMP%]{font-weight:400!important}.chat-graphOptions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:24px;margin-right:8px}@media screen and (max-width: 500px){.chat-graphOptions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:none!important}}.chart-tooltip-button[_ngcontent-%COMP%]{background-color:#fff;padding:.625rem;border-radius:.3125rem}.badge-link[_ngcontent-%COMP%]{display:inline-block;width:18px;height:18px;border-radius:18px;color:#fff!important;text-align:center;font-size:10px;font-weight:700;vertical-align:2px;line-height:18px;text-indent:0px!important;margin-right:2px;position:relative;z-index:0}.badge-link[_ngcontent-%COMP%]:last-child{margin-right:0}.badge-link[_ngcontent-%COMP%]:before, .badge-link[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;inset:0;border-radius:18px}.badge-link[_ngcontent-%COMP%]:before{background:linear-gradient(90deg,#2f98ef 11.49%,#ae79dc 85.9%);z-index:-2}.badge-link[_ngcontent-%COMP%]:after{background:#767676;z-index:-1;opacity:1;transition:opacity .2s ease}.badge-link[_ngcontent-%COMP%]:hover, .badge-link.active[_ngcontent-%COMP%], .badge-link[_ngcontent-%COMP%]:focus{text-decoration:none;color:#fff}.badge-link[_ngcontent-%COMP%]:hover:after, .badge-link.active[_ngcontent-%COMP%]:after, .badge-link[_ngcontent-%COMP%]:focus:after{opacity:0}
1.unentitled-docs-warning[_ngcontent-%COMP%]{container-type:inline-size;border-radius:16px;padding:16px;border:1px solid rgb(224,224,224);display:flex;flex-wrap:nowrap;flex-direction:row;gap:8px;background-color:#d5e7ff}.unentitled-info-icon[_ngcontent-%COMP%]{color:#175897;text-align:center}.heading-text[_ngcontent-%COMP%]{font-size:20px;font-weight:600;line-height:26px;position:relative;bottom:14px!important;top:14px}.bullet-point[_ngcontent-%COMP%]{display:inline-block;margin:0 0 -22px 14px;text-indent:-15px;padding-left:10px}.wos-new-header[_ngcontent-%COMP%]{min-height:8rem;white-space:normal;color:#000!important;display:flex;align-items:center;padding:.625rem 0}.wos-new-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.875rem!important;margin:0}.customize-pivotPR-desc[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline!important}.seeTranslationButton[_ngcontent-%COMP%]{color:#095b8b;font-size:14px!important;font-weight:600!important;cursor:pointer}a.seeTranslationButton.disabled[_ngcontent-%COMP%]{color:gray!important;cursor:not-allowed!important}@media (max-width: 1300px){.export-group[_ngcontent-%COMP%]   .radio-group[_ngcontent-%COMP%]   .mat-radio-label-content[_ngcontent-%COMP%]{white-space:break-spaces!important}}.mdc-button__label[_ngcontent-%COMP%]{white-space:nowrap}.mdc-button__label[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .mdc-button__label[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{vertical-align:middle}.mat-mdc-autocomplete-panel[_ngcontent-%COMP%]   .mat-mdc-option[_ngcontent-%COMP%]{min-height:25px!important}.mdc-evolution-chip__text-label[_ngcontent-%COMP%]   mat-mdc-chip-action-label[_ngcontent-%COMP%]{font-size:14px!important;font-weight:600!important}.mat-mdc-snack-bar-container[_ngcontent-%COMP%]   .mat-mdc-snackbar-surface[_ngcontent-%COMP%]{background-color:transparent;margin:24px;padding-right:0}.mat-mdc-snack-bar-container[_ngcontent-%COMP%]   .mat-mdc-snackbar-surface[_ngcontent-%COMP%]   .mdc-snackbar__label[_ngcontent-%COMP%]{padding:0}.mat-mdc-form-field-has-icon-suffix[_ngcontent-%COMP%]   .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]{margin:.0625rem 0}.create-alert-overlay[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%], .custom-field-selection-overlay[_ngcontent-%COMP%]   .mdc-dialog__container[_ngcontent-%COMP%]{padding:0!important}.create-alert-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%], .export-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%], .custom-field-selection-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{width:2.5rem!important;height:2.5rem!important;display:flex!important;align-items:center!important;justify-content:center!important}.create-alert-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .create-alert-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .export-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .export-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .custom-field-selection-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .custom-field-selection-overlay[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:1rem!important;height:1rem!important;display:block}.mdc-text-field[_ngcontent-%COMP%]{padding:0 .75rem!important}.custom-field-selection-overlay[_ngcontent-%COMP%]   .mdc-dialog__surface[_ngcontent-%COMP%]{padding:30px!important}.custom-field-selection-overlay[_ngcontent-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]{border-top:0!important;padding:.3125rem 0!important;box-sizing:content-box!important;justify-content:space-between!important}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%]   .summary-custom-tooltip[_ngcontent-%COMP%]{transform:translateY(22px)!important}.expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0 1rem!important}.expansion-panel.mat-expanded[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}.mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{overflow:visible}.pendo-resource-center-hidden[_ngcontent-%COMP%]   ._pendo-resource-center-badge-container[_ngcontent-%COMP%]{display:none!important}.wos-select-search-field[_ngcontent-%COMP%]{height:3.25rem}@media screen and (max-width: 768px){.wos-select-search-field[_ngcontent-%COMP%]{margin-bottom:.625rem}}*[_ngcontent-%COMP%]{-webkit-font-smoothing:subpixel-antialiased!important}.no-curve-border[_ngcontent-%COMP%]{border-radius:0!important}.wos-standard-link[_ngcontent-%COMP%], .wos-standard-link-underlined[_ngcontent-%COMP%]{color:var(--schemes-custom-hyperlink, #095B8B)!important;text-decoration:none!important}.wos-standard-link[_ngcontent-%COMP%]:hover, .wos-standard-link-underlined[_ngcontent-%COMP%]:hover{text-decoration:underline!important;color:var(--schemes-custom-hyperlink-hover, #004486)!important}.wos-standard-link[_ngcontent-%COMP%]:active, .wos-standard-link-underlined[_ngcontent-%COMP%]:active, .wos-standard-link[_ngcontent-%COMP%]:focus, .wos-standard-link-underlined[_ngcontent-%COMP%]:focus{text-decoration:underline!important;color:var(--schemes-custom-hyperlink-active, #0073E0)!important}.wos-standard-link[_ngcontent-%COMP%]:visited, .wos-standard-link-underlined[_ngcontent-%COMP%]:visited{text-decoration:underline!important;color:var(--schemes-custom-hyperlink-visited, #815ED9)!important}.wos-standard-link-underlined[_ngcontent-%COMP%]{text-decoration:underline!important}.padding-right-18--reversible[_ngcontent-%COMP%]{padding-right:1.125rem!important;padding-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .padding-right-18--reversible[_ngcontent-%COMP%]{padding-right:0!important;padding-left:1.125rem!important}.ri-dialog-panel[_ngcontent-%COMP%]   .mat-mdc-dialog-surface[_ngcontent-%COMP%]{padding:20px!important}.ri-dialog-panel[_ngcontent-%COMP%]   .container-title[_ngcontent-%COMP%]{padding-bottom:0}.ri-dialog-panel[_ngcontent-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]{padding-top:30px!important}.mat-dialog-container-center[_ngcontent-%COMP%]   .mat-mdc-dialog-surface[_ngcontent-%COMP%]{justify-content:center!important;align-items:center!important}.document-relevance-dialog[_ngcontent-%COMP%]{--mdc-dialog-container-color: $background-color-1;background-color:#f5f5f5;border-radius:.75rem;box-shadow:0 .0625rem .125rem #0000004d}.document-relevance-dialog[_ngcontent-%COMP%]   .mdc-dialog__surface[_ngcontent-%COMP%]{padding:8px 16px!important}.disabledClass[_ngcontent-%COMP%]{background-color:#9e9e9e}.author-position-filter[_ngcontent-%COMP%]{width:10.3125rem}.author-position[_ngcontent-%COMP%]{color:#333!important}.dropdown[_ngcontent-%COMP%]{display:flex;position:relative;border:.0625rem solid #515151;border-radius:1.25rem;height:2.25rem;width:10.3125rem}@media screen and (max-width: 33.75rem){.dropdown[_ngcontent-%COMP%]{min-width:18.25rem}}']})}}return s})();const Kl=(s,M,o,u)=>({disableSortFeature:s,disablePagination:M,documentFilters:!0,analyzes:o,disableTitleLink:u}),Qu=s=>({"export-blue-button":s});function tc(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",6),t.nI1(1,"async"),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.selectOption())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()}if(2&s){const o=t.XpG();t.Y8G("ngClass",t.eq3(13,Qu,t.bMT(1,5,o.isMobile$)))("matTooltip",t.bMT(2,7,"exportPublicationsTooltip")),t.BMQ("data-ta","exportPublications")("aria-label",t.bMT(3,9,"exportButtonForFecyt")),t.R7$(4),t.SpI(" ",t.bMT(5,11,"exportButtonForFecyt")," ")}}let Zu=(()=>{class s extends Rt.${constructor(o,u,g,O){super(u),this.store=o,this.change=u,this.router=g,this.route=O,this.curationSummary=!1,this.removePublicationsEvent=new t.bkB,this.enableExportForUser=!1,this.selectedUts=new Set,this.isMedia$=_t.Y.isMedia$,this.isMobile$=_t.Y.isMobile$}ngOnChanges(o){this.store.select(at.l1,{prop:"WAT-10707-use-PPRN-database-for-chip"}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>this.usePPRNDatabaseForChip=g),this.store.select(at.l1,{prop:"WAT-10823-ProfileDocumentsSidenavFilter"}).pipe((0,V.Q)(this.destroyed$)).subscribe(g=>this.isSideNavRefineOn="on"===g),o.authorIds&&(!o.authorIds.previousValue||o.authorIds.previousValue!==o.authorIds.currentValue)&&(this.loadAuthorRecord(),this.getAuthorPositionData()),ce.X.isOwnProfile$(this.store,this.authorIds).subscribe(g=>{this.ownProfile=!!g}),this.store.select(Y.ED).pipe((0,W.p)(g=>!!g),(0,V.Q)(this.destroyed$)).subscribe(g=>{g?.selectedCollectionFilter&&JSON.stringify(g)!==JSON.stringify(this.selectedFilter)&&(this.selectedFilter=g,this.currentUserPreference=g,this.loadAuthorPublications(g.authorId))})}ngOnInit(){this.jcrDataExists$=this.store.select(Y.Hw),this.store.select(at.vC).pipe((0,W.p)(o=>!!o.customerInfo)).subscribe(o=>this.enableExportForUser=JSON.parse(o.customerInfo?.cvnOutput)).unsubscribe()}loadAuthorRecord(){this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.authorRecord=o})}getAuthorPositionData(){this.pubFilterOpts=[H.N.PUBLICATION_FILTER_ALL],this.store.select(Y.ln,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{const u=[...o];u.sort((g,O)=>H.N.AUTHOR_POSITION_Diff_ORDER[g.name]-H.N.AUTHOR_POSITION_Diff_ORDER[O.name]),this.pubFilterOpts=[...this.pubFilterOpts,...u.map(g=>g.name)],this.change.detectChanges()})}selectEvent(o){o.selected?this.selectedUts?.add(o.ut):this.selectedUts?.delete(o.ut),this.store.dispatch(new be.QS({selectedPublications:{isSelected:o.selected,selectedUts:this.selectedUts}}))}getIsSelected(o){return this.selectedUts.has(o)}removePublicationsForCorrections(o){this.removePublicationsEvent.emit(o)}loadAuthorPublications(o=this.authorIds.join(",")){let u;this.store.select(Y.Gh,{authorIds:o}).pipe((0,W.p)(g=>!!g&&"AuthorDetail"===g.view),(0,Ct.s)(1)).subscribe(g=>{u=g;let $,O="ALLDB";this.store.select(at.l1,{prop:"nxResearcherProfileCollection"}).subscribe(zt=>this.exportToAddToMyResearcherProfile=[...zt.split(" "),"DIIDW"]).unsubscribe(),this.authorSearchKey=`author_publications_${o}_${this.currentUserPreference.selectedCollectionFilter}_${this.currentUserPreference.authorPositionFilterValue}`;let J=this.currentUserPreference.selectedCollectionFilter;O="wos"===J||this.usePPRNDatabaseForChip&&"pprn"===J?J.toUpperCase():O,$=this.currentUserPreference.authorPositionFilterValue!==H.N.PUBLICATION_FILTER_ALL?this.currentUserPreference.authorPositionFilterValue:void 0,this.authorRetrieve=this.getRetrieve(O);const st={key:"author",icon:"author",params:{name:u?.publishingName||u?.author_name}},gt={mode:tt.k0.author_publications,database:O,authorId:ce.X.getAuthorId(u,this.authorIds),display:st,searchOptions:ce.X.getSearchOptionsObject(this.exportToAddToMyResearcherProfile,this.currentUserPreference.selectedCollectionFilter,u.claim_status),authorPosition:$,analyzeConfig:"profiles"};this.store.dispatch(new at.IV.x7({key:this.authorSearchKey,search:gt,retrieve:this.authorRetrieve,forceSearch:this.ownProfile}))}),this.change.detectChanges()}getRetrieve(o){this.analyzes=this.isSideNavRefineOn?H.N.newSideNavAnalyzers.databases[o.toUpperCase()]?.analyzes:H.N.databases[o]?.analyzes;let u=this.analyzes?.searchEngineFetch||[];return 1===this.authorIds?.length&&(u=[...u,"DX2NG"]),_t.Y.getToggle("nxPresentationControl_Author_Publication_Summary_Limit",this.store)&&(this.pageSize=10),{view:"summary",sort:this.getSortValue(this.currentSelection.publicationsSortValue),jcr:!0,history:!1,count:this.pageSize,first:1,analyzes:u?.map(g=>_t.Y.buildAnalyzeRequestString(g,"DX2NG"===g?101:void 0))||[]}}getSortValue(o){switch(o){case"D_year":return"date-ascending";case"A_timesCited":return"times-cited-descending";case"D_timesCited":return"times-cited-ascending";default:return"date-descending"}}selectOption(){ke.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"export/authorPublications/"+this.currentSelection.publicationsSortValue.replace("_",".")}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc),t.rXU(pt.Ix),t.rXU(pt.nX))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-publications-placeholder"]],inputs:{authorIds:"authorIds",currentSelection:"currentSelection",pageSize:"pageSize",currentPage:"currentPage",curationSummary:"curationSummary",acceptedPublications:"acceptedPublications"},outputs:{removePublicationsEvent:"removePublicationsEvent"},features:[t.Vt3,t.OA$],decls:9,vars:23,consts:[["role","separator","aria-orientation","horizontal"],[3,"translateKey","retrieve","loadMoreButton","searchKey","pageSize","currentSelection","componentOptions","view","ownProfile"],["id","author-positions-filter-content"],[3,"filterOptions","disableFilter"],["id","export-button-for-fecyt"],["mat-stroked-button","","class","export-author-publication no-material-color","id","exportPublications",3,"ngClass","matTooltip","click",4,"ngIf"],["mat-stroked-button","","id","exportPublications",1,"export-author-publication","no-material-color",3,"click","ngClass","matTooltip"]],template:function(u,g){1&u&&(t.nrm(0,"mat-divider",0),t.j41(1,"app-author-document-summary",1),t.nI1(2,"async"),t.nI1(3,"feature"),t.nI1(4,"feature"),t.j41(5,"div",2),t.nrm(6,"app-author-positions-filter",3),t.k0s(),t.j41(7,"div",4),t.DNE(8,tc,6,15,"button",5),t.k0s()()),2&u&&(t.R7$(),t.Y8G("translateKey","author_publications")("retrieve",g.authorRetrieve)("loadMoreButton",t.bMT(2,12,g.isMedia$))("searchKey",g.authorSearchKey)("pageSize",g.pageSize)("currentSelection",g.currentUserPreference)("componentOptions",t.z
1iG(18,Kl,"nonIndexed"===(null==g.currentUserPreference?null:g.currentUserPreference.selectedCollectionFilter),!!t.bMT(3,14,"nxPresentationControl_Author_Publication_Summary_Limit"),g.analyzes,!(null!=g.authorRecord&&g.authorRecord.claim_status||t.bMT(4,16,"nxPresentationControl_Show_Premium_Feature"))))("view","ProfileSummary")("ownProfile",g.ownProfile),t.R7$(5),t.Y8G("filterOptions",g.pubFilterOpts)("disableFilter","wos"!==(null==g.currentUserPreference?null:g.currentUserPreference.selectedCollectionFilter)),t.R7$(2),t.Y8G("ngIf",g.enableExportForUser))},dependencies:[Kt.q,Ce.oV,B.YU,B.bT,Mt.$z,na.K,qu,B.Jj,ht.D9,Z.h],styles:[".border-color[_ngcontent-%COMP%]{border-radius:px/16pxrem;border-color:#515151}.no-material-color.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(:disabled){color:inherit;border-color:inherit}.export-author-publication[_ngcontent-%COMP%]{border:.0625rem solid #515151;width:7.625rem}.export-author-publication[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#424242!important}.export-blue-button[_ngcontent-%COMP%]{border-radius:6.25rem!important;background-color:#c3c9ff!important;color:#4936ba!important;border:none!important;font-weight:600!important;font-size:.875rem!important;max-width:5.9375rem;height:2.25rem}"]})}}return s})();const Ku=()=>["/","op","publications","import-publications"],ec=s=>({"selected-round-chip":s});function Fr(s,M){1&s&&t.eu8(0)}function tm(s,M){if(1&s&&(t.j41(0,"div",4,2),t.DNE(2,Fr,1,0,"ng-container",5),t.nrm(3,"app-publications-placeholder",6),t.k0s()),2&s){const o=t.XpG(),u=t.sdS(4);t.R7$(2),t.Y8G("ngTemplateOutlet",u),t.R7$(),t.Y8G("authorIds",o.authorIds)("currentSelection",o.currentUserSelection)("pageSize",o.pageSize)("currentPage",o.currentUserSelection.currentPage)}}function $r(s,M){1&s&&(t.j41(0,"div",10)(1,"button",11),t.nrm(2,"mat-icon",12),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&s&&(t.R7$(),t.Y8G("routerLink",t.lJ4(4,Ku)),t.R7$(2),t.SpI(" ",t.bMT(4,2,"addPublicationButtonTextPlural")," "))}function em(s,M){if(1&s&&(t.j41(0,"div",7),t.nrm(1,"h3",8),t.nI1(2,"translate"),t.DNE(3,$r,5,5,"div",9),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.Y8G("innerHTML",t.bMT(2,2,"noPublicationsText"),t.npT),t.R7$(2),t.Y8G("ngIf",o.isOwnProfile)}}function nm(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",18)(5,"a",19),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.redirectToSignIn())}),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"a",19),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.redirectToRegister())}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13),t.nI1(14,"translate"),t.k0s()()}2&s&&(t.R7$(2),t.JRh(t.bMT(3,5,"publicationsFreeview")),t.R7$(4),t.JRh(t.bMT(7,7,"SignIn")),t.R7$(2),t.SpI(" ",t.bMT(9,9,"orLower")," "),t.R7$(3),t.JRh(t.bMT(12,11,"Register")),t.R7$(2),t.SpI(" ",t.bMT(14,13,"toViewMore")," "))}function im(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",21),t.nI1(1,"feature"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG().$implicit,O=t.XpG(2);return t.Njj(O.updateSelection(g.name))}),t.nrm(3,"mat-icon",22),t.EFF(4),t.nI1(5,"translate"),t.k0s()}if(2&s){const o=t.XpG().$implicit,u=t.XpG(2);t.Y8G("ngClass",t.eq3(12,ec,(null==u.currentUserPreference?null:u.currentUserPreference.selectedCollectionFilter)===o.name))("disabled",t.bMT(1,6,"nxPresentationControl_Is_Freeview_Feature")&&(null==u.currentUserPreference?null:u.currentUserPreference.selectedCollectionFilter)!==o.name),t.BMQ("aria-label",t.bMT(2,8,o.name)+" ("+o.count+")"),t.R7$(3),t.Y8G("svgIcon",(null==u.currentUserPreference?null:u.currentUserPreference.selectedCollectionFilter)===o.name?"done":"nonIndexed"===o.name?"subtitlesOff":"textAd"),t.R7$(),t.Lme("",t.bMT(5,10,o.name)," (",o.count,") ")}}function nc(s,M){if(1&s&&(t.qex(0),t.DNE(1,im,6,14,"button",20),t.bVm()),2&s){const o=M.$implicit,u=t.XpG(2);t.R7$(),t.Y8G("ngIf",(u.isClaimed||o.showForUnclaimed)&&o.count)}}function om(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",23),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(2);return t.Njj(g.updateShowAll())}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon",24),t.EFF(4),t.k0s()()}if(2&s){const o=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,2,o.showAll?"showLess":"showMore")," "),t.R7$(3),t.JRh(o.showAll?"expand_less":"expand_more")}}function ic(s,M){if(1&s&&(t.DNE(0,nm,15,15,"div",13),t.nI1(1,"feature"),t.j41(2,"div",14),t.DNE(3,nc,2,1,"ng-container",15),t.nI1(4,"async"),t.k0s(),t.DNE(5,om,5,4,"button",16),t.nI1(6,"async")),2&s){const o=t.XpG();t.Y8G("ngIf",t.bMT(1,3,"nxPresentationControl_Is_Freeview_Feature")),t.R7$(3),t.Y8G("ngForOf",t.bMT(4,5,o.isMedia$)&&!o.showAll?o.collectionFilter.slice(0,3):o.collectionFilter),t.R7$(2),t.Y8G("ngIf",t.bMT(6,7,o.isMedia$)&&o.displayShowMoreBtn)}}let oc=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st,gt){super(st),this.store=o,this.windowRef=u,this.route=g,this.router=O,this.authors=$,this.navigation=J,this.change=st,this.translate=gt,this.currentPage=H.N.CURRENT_PAGE,this.pubFilterOpts=["all"],this.pageSize=H.N.PAGE_SIZE,this.enableExportForUser=!1,this.collectionFilter=[],this.isMedia$=_t.Y.isMedia$,this.showAll=!1}ngOnInit(){this.store.select(at.vC).subscribe(o=>this.enableExportForUser=JSON.parse(o.customerInfo?.cvnOutput)).unsubscribe()}ngOnChanges(o){this.store.select(Y.pS,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.totalDocumentsCount=u?.totalPublications,this.wosccPublications=u?.wosccPublications,this.isClaimed&&(this.nonIndexedPublicationsCount=u?.nonIndexedPublications),void 0!==this.isClaimed&&(this.setCountsBasedOnCollectionName(u),this.setChipsTobeDisplayed(),this.setDefaultSelected())}),this.store.select(Y.sm).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.currentUserSelection=u}),this.store.select(Y.ED).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.currentUserPreference=u}),this.store.select(Y.ln,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{const g=[...u];g.sort((O,$)=>H.N.AUTHOR_POSITION_Diff_ORDER[O.name]-H.N.AUTHOR_POSITION_Diff_ORDER[$.name]),this.pubFilterOpts=this.authors.getPubFilterOpt(g)})}redirectToSignIn(){this.navigation.doPersonalizationNavigate("sign-in")}redirectToRegister(){this.navigation.doPersonalizationNavigate("register")}changePage(o,u){o&&(u.scrollIntoView(),this.windowRef.nativeWindow.scrollBy(0,-50),this.store.dispatch(new be.q6({selectedValues:{currentPage:o}})))}get maxPage(){return this.pageSize<=0?1:this.isClaimed&&!this.currentUserSelection.showMeWosccPublications?(this.getMaxPageFromHits(),Math.ceil((this.count||1)/this.pageSize)):(this.fetchPublicationCounts(),Math.ceil((this.publicationsCount||1)/this.pageSize))}getMaxPageFromHits(){let o;this.store.select(Y.z1,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{o=this.store.select(at.CS,{qid:this.currentUserSelection.displayIndexed?u.indexed:u.nonIndexed}).pipe((0,Dl.H)(O=>this.store.select(at.j,{search:O})))}),o?.pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.count=u?.found})}changePageSize(o){this.store.dispatch(new be.q6({selectedValues:{currentPage:H.N.CURRENT_PAGE}})),this.pageSize=parseInt(o,10)}fetchPublicationCounts(){const o=this.currentUserSelection?.showMeWosccPublications?H.N.DOC_TYPE_WOS_ONLY:H.N.DOC_TYPE_ALL,u=this.currentUserSelection?.publicationsSortValue?.split("_"),g={authorId:this.authorIds.join(","),collectionFilter:o,sort:u[0],name:u[1],positionFilter:this.currentUserSelection?.authorPositionFilterValue,pageNumber:this.currentUserSelection?.currentPage};this.getPublicationsCount(g,u.join("_"))}getPublicationsCount(o,u){this.store.select(Y.dN,{authorIds:o.authorId,filter:o.positionFilter,sortOrder:u,docType:o.collectionFilter}).pipe((0,W.p)(g=>!!g),(0,V.Q)(this.destroyed$)).subscribe(g=>{this.publicationsCount=g})}selectOption(){ke.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"export/authorPublications/"+this.currentUserSelection.publicationsSortValue.replace("_",".")}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"})}updateSelection(o){this.currentUserPreference?.selectedCollectionFilter!==o&&this.store.dispatch(new be.yk({selectedPreferences:{selectedCollectionFilter:o,authorPositionFilterValue:H.N.P
1UBLICATION_FILTER_ALL,authorId:this.authorIds.join(",")}}))}setCountsBasedOnCollectionName(o){const u={allIndexed:this.isClaimed?o.indexedPublications:o.totalPublications,wos:o.wosccPublications,pprn:o.pprnPublications,pqdt:o.pqdtPublications,nonIndexed:o.nonIndexedPublications,other:o.indexedPublications-(o.wosccPublications+o.pprnPublications+o.pqdtPublications)};this.collectionFilter=H.N.DOCUMENT_FILTER_TYPE.map(g=>({name:g.name,showForUnclaimed:g.showForUnclaimed,count:u[g.name],defaultSelectOrder:g.defaultSelectOrder}))}setDefaultSelected(){const o=this.collectionFilter.filter(u=>u.defaultSelectOrder).sort((u,g)=>u.defaultSelectOrder-g.defaultSelectOrder);for(let u of o){const g=this.collectionFilter.find(O=>O.name===u.name&&O.count>0);if(g){this.updateSelection(g.name);break}}}getHeaderText(){const o=this.collectionFilter.find(g=>g.name===this.currentUserSelection.selectedCollectionFilter)?.count,u=this.collectionFilter.find(g=>"allIndexed"===g.name)?.count;if(o)return["allIndexed","nonIndexed"].includes(this.currentUserSelection.selectedCollectionFilter)?this.translate.instant(1!==o?this.currentUserSelection.selectedCollectionFilter+"DocumentsTextPlural":this.currentUserSelection.selectedCollectionFilter+"DocumentsTextSingular",{count:o}):this.translate.instant(1!==u?"wosccDocumentsTextPlural":"wosccDocumentsTextSingular",{wosccCount:o,indexedPublications:u})}setChipsTobeDisplayed(){const o=this.collectionFilter.filter(u=>u.count&&!["allIndexed","nonIndexed"].includes(u.name));1===o.length&&(this.collectionFilter=this.collectionFilter.filter(u=>"allIndexed"!==u.name),this.updateSelection(o[0].name)),this.displayShowMoreBtn=this.collectionFilter.filter(u=>u.count).length>3}updateShowAll(){this.showAll=!this.showAll}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(kn.W),t.rXU(pt.nX),t.rXU(pt.Ix),t.rXU(ve.m),t.rXU(jl.o),t.rXU(t.gRc),t.rXU(ht.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-publications-tab"]],inputs:{authorIds:"authorIds",isClaimed:"isClaimed",isOwnProfile:"isOwnProfile",publications:"publications"},features:[t.Vt3,t.OA$],decls:5,vars:2,consts:[["noPublicationsDisplay",""],["documentBasedFilter",""],["pubCard",""],["class","tab-content publications-tab-content",4,"ngIf","ngIfElse"],[1,"tab-content","publications-tab-content"],[4,"ngTemplateOutlet"],[3,"authorIds","currentSelection","pageSize","currentPage"],[1,"overlay-open"],[1,"no-publications",3,"innerHTML"],["class","text-align-center",4,"ngIf"],[1,"text-align-center"],["mat-stroked-button","",1,"wat-material-new-button",3,"routerLink"],["svgIcon","plus",1,"mat-add-icon"],[4,"ngIf"],[1,"round-chip-section"],[4,"ngFor","ngForOf"],["class","show-more-button","mat-button","",3,"click",4,"ngIf"],[1,"count-text"],[1,"margin-bottom-15"],[1,"pointer-cursor",3,"click"],["mat-button","","class","round-chip",3,"ngClass","disabled","click",4,"ngIf"],["mat-button","",1,"round-chip",3,"click","ngClass","disabled"],[1,"check-icon",3,"svgIcon"],["mat-button","",1,"show-more-button",3,"click"],[1,"expand-icon"]],template:function(u,g){if(1&u&&t.DNE(0,tm,4,5,"div",3)(1,em,4,4,"ng-template",null,0,t.C5r)(3,ic,7,9,"ng-template",null,1,t.C5r),2&u){const O=t.sdS(2);t.Y8G("ngIf",0!=g.totalDocumentsCount)("ngIfElse",O)}},dependencies:[pt.Wk,Ft.An,B.YU,B.Sq,B.bT,B.T3,Mt.$z,Zu,B.Jj,ht.D9,Z.h],styles:[".publications-container[_ngcontent-%COMP%]{margin-top:1rem;padding:1.5rem 2.25rem 2.8125rem 1.6875rem}.publications-container[_ngcontent-%COMP%]   .wat-publicaitons-header[_ngcontent-%COMP%]{font-size:1.375rem}.no-publications[_ngcontent-%COMP%]{font-size:1rem;text-align:center;margin-top:3.125rem;margin-bottom:.625rem}.publications-tab-content[_ngcontent-%COMP%]{margin-top:1.25rem;padding-bottom:1.875rem}@media screen and (max-width: 64rem){.publications-tab-content[_ngcontent-%COMP%]{padding-bottom:0}}.publications-tab-content[_ngcontent-%COMP%]   .document-filters-headers[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;line-height:1.625rem;padding-bottom:1.1875rem}.publications-tab-content[_ngcontent-%COMP%]   .select-label[_ngcontent-%COMP%]{font-size:1rem;font-weight:600}.publications-tab-content[_ngcontent-%COMP%]   .round-chip-section[_ngcontent-%COMP%]{line-break:anywhere;margin-top:.625rem}.publications-tab-content[_ngcontent-%COMP%]   .round-chip-section[_ngcontent-%COMP%]   .round-chip[_ngcontent-%COMP%]{border-radius:1rem;padding:.3125rem .75rem;font-weight:600;margin-right:1.5625rem;white-space:nowrap;line-height:1.25rem;border:solid .0625rem #5E33BF;background:#fff;margin-bottom:1.25rem;font-size:1rem}.publications-tab-content[_ngcontent-%COMP%]   .round-chip-section[_ngcontent-%COMP%]   .round-chip[_ngcontent-%COMP%]   .check-icon[_ngcontent-%COMP%]{position:relative;height:1.125rem}.publications-tab-content[_ngcontent-%COMP%]   .round-chip-section[_ngcontent-%COMP%]   .selected-round-chip[_ngcontent-%COMP%]{background:#dfe2ff;border:none}.publications-tab-content[_ngcontent-%COMP%]   .round-chip-section[_ngcontent-%COMP%]   [disabled][_ngcontent-%COMP%]{--mat-text-button-disabled-state-layer-color: transparent !important;opacity:.5;color:#00000042!important;background-color:transparent!important}.publications-tab-content[_ngcontent-%COMP%]   .show-more-button[_ngcontent-%COMP%]{color:var(--sys-primary);padding:0;font-size:1rem;line-height:1.125rem;top:-.3125rem}.publications-tab-content[_ngcontent-%COMP%]   .show-more-button[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{font-size:1.375rem}.tab-content[_ngcontent-%COMP%]{padding-left:.1875rem;padding-right:.1875rem}@media screen and (max-width: 30rem){.tab-content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.wat-filter-and-sort[_ngcontent-%COMP%]{text-align:center}.wat-author-position-and-sort-filter[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-bottom:.3125rem}.export-author-publication[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;height:2.375rem}.mat-add-icon[_ngcontent-%COMP%]{width:.6875rem;margin:0 .625rem .1875rem .3125rem}.text-align-center[_ngcontent-%COMP%]{text-align:center}.count-text[_ngcontent-%COMP%]{margin-top:auto;font-size:1.5rem}.pointer-cursor[_ngcontent-%COMP%]{cursor:pointer}"]})}}return s})();const am=()=>["/","op","peer-reviews","add"];function rm(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const o=t.XpG(3);t.BMQ("data-test",o.taPrefix+"total-publications-count"),t.R7$(),t.SpI("(",o.totalPublications,")")}}function ac(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.EFF(3,"\xa0 "),t.DNE(4,rm,2,2,"span",9),t.nI1(5,"feature")),2&s){const o=t.XpG(2);t.BMQ("data-test",o.taPrefix+"documents-tab-label"),t.R7$(),t.JRh(t.bMT(2,3,"Documents")),t.R7$(3),t.Y8G("ngIf",t.bMT(5,5,"WAT-10706-redesign-citation-metric")&&o.totalPublications>0)}}function sm(s,M){if(1&s&&t.nrm(0,"app-beam-plot-tab",12),2&s){const o=t.XpG(3);t.Y8G("authorIds",o.authorIds)}}function rc(s,M){if(1&s&&(t.j41(0,"mat-tab",10),t.nI1(1,"translate"),t.DNE(2,sm,1,1,"ng-template",11),t.k0s()),2&s){const o=t.XpG(2);t.FS9("label",t.bMT(1,2,"authorImpactBeamPlot")),t.Y8G("disabled",0===(null==o.validIncitesData?null:o.validIncitesData.length)||!o.isClaimedRecord()&&o.prePrintPublicationsOnly)}}function lm(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const o=t.XpG(4);t.BMQ("data-test",o.taPrefix+"peer-review-and-editorial-count"),t.R7$(),t.SpI("(",o.peerReviewAndEditorialCount,")")}}function cm(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.EFF(3,"\xa0 "),t.DNE(4,lm,2,2,"span",9),t.nI1(5,"feature")),2&s){const o=t.XpG(3);t.BMQ("data-test",o.taPrefix+"peer-review-tab-label"),t.R7$(),t.JRh(t.bMT(2,3,"PeerReviewTab")),t.R7$(3),t.Y8G("ngIf",t.bMT(5,5,"WAT-10706-redesign-citation-metric")&&o.peerReviewAndEditorialCount>0)}}function hm(s,M){1&s&&(t.j41(0,"div"),t.nrm(1,"mat-spinner",14),t.k0s()),2&s&&(t.R7$(),t.Y8G("diameter",50))}function sc(s,M){if(1&s&&(t.qex(0),t.nrm(1,"app-peer-review-tab",15),t.bVm()),2&s){const o=t.XpG(4);t.R7$(),t.Y8G("authorIds",o.authorIds)("isOwnProfile",o.isOwnProfile)}}function lc(s,M){if(1&s&&(t.j41(0,"button",18),t.nrm(1,"mat-icon",19),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s){const o=t.XpG(5);t.Y8G("routerLink",t.lJ4(5,am)),t.BMQ("data-test",o.taPrefix+"add-peer-review-button"),t.R7$(2),t.SpI(" ",t.bMT(3,3,"addPeerReviewButtonTextPlural")," ")}}function dm(s,M){if(1&s&&(t.j41(0,"div",16),t.EFF(1),t.nI1(2,"translate"),t.DNE(3,lc,4,6,"button",17),t.k0s()),2&s){const o=t.XpG(4);t.BMQ("data-test",o.taPrefix+"no-peer-reviews-available"),t.R7$(),t.SpI("",t.bMT(2,3,"noPeerReviewsAvailable")," "),t.R7$(2),t.Y8G("ngIf",o.isOwnProfile)}}function pm(s,M){if(1&s&&(t.DNE(0,sc,2,2,"ng-container",13),t.nI1(1,"async"),t.DNE(2,dm,4,5,"ng-template",null,2,t.C5r)),2&s){const o=t.sdS(3),u=t.XpG(3);t.Y8G("ngIf",t.bMT(1,2,u.hasPeerReviewOtherData$))("ngIfElse",o)}}function cc(s,M){if(1&s&&(t.j41(0,"mat-tab"),t.DNE(1,cm,6,7,"ng-template",6)(2,hm,2,1,"div",13),t.nI1(3,"async"),t.DNE(4,pm,4,4,"ng-template",null,1,t.C5r),t.k0s()),2&s){const o=t.sdS(5),u=t.XpG(2);t.R7$(2),t.Y8G("ngIf",t.bMT(3,2,u.isLoadingPeerReviewsData$))("ngIfElse",o)}}function um(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const o=t.XpG(4);t.BMQ("data-test",o.taPrefix+"grants-count"),t.R7$(),t.SpI("(",o.grantsCount,")")}}function hc(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",20),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG(3);return t.Njj(!g.grantsSearchKey&&g.runAuthorGrantsSearch())}),t.EFF(1),t.nI1(2,"translate"),t.DNE(3,um,2,2,"span",9),t.nI1(4,"feature"),t.k0s()}if(2&s){const o=t.XpG(3);t.BMQ("data-test",o.taPrefix+"grants-tab-label"),t.R7$(),t.SpI(" ",t.bMT(2,3,"wos_researcher_grants")," "),t.R7$(2),t.Y8G("ngIf",t.bMT(4,5,"WAT-10706-redesign-citation-metric")&&o.grantsCount>0)}}function mm(s,M){1&s&&(t.j41(0,"div",23)(1,"a",24),t.nI1(2,"translate"),t.j41(3,"mat-icon",25),t.EFF(4,"open_in_new"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()),2&s&&(t.R7$(),t.Y8G("matTooltip",t.bMT(2,2,"discoverPivotFundingTooltip")),t.R7$(5),t.SpI(" ",t.bMT(7,4,"discoverPivotFunding"),""))}function dc(s,M){if(1&s&&(t.j41(0,"app-author-document-summary",21),t.DNE(1,mm,8,6,"div",22),t.nI1(2,"feature"),t.k0s()),2&s){const o=t.XpG(3);t.Y8G("translateKey","grants")("searchKey",o.grantsSearchKey)("retrieve",o.grantsRetrieve)("view","ProfileSummary"),t.R7$(),t.Y8G("ngIf",t.bMT(2,5,"nxShowPivotFundingLinkForOwnProfile")&&o.isOwnProfile&&o.isEnablePivotRP)}}function pc(s,M){1&s&&(t.j41(0,"mat-tab"),t.DNE(1,hc,5,7,"ng-template",6)(2,dc,3,7,"ng-template",11),t.k0s())}function gm(s,M){if(1&s){const o=t.RV6();t.j41(0,"mat-card",4)(1,"mat-tab-group",5,0),t.nI1(3,"async"),t.bIt("selectedIndexChange",function(g){t.eBV(o);const O=t.XpG();return t.Njj(O.selectTab(g))}),t.j41(4,"mat-tab"),t.DNE(5,ac,6,7,"ng-template",6),t.nrm(6,"app-publications-tab",7),t.nI1(7,"translate"),t.k0s(),t.DNE(8,rc,3,4,"mat-tab",8),t.nI1(9,"feature"),t.DNE(10,cc,6,4,"mat-tab",9)(11,pc,3,0,"mat-tab",9),t.nI1(12,"feature"),t.k0s()()}if(2&s){const o=t.XpG();t.R7$(),t.FS9("selectedIndex",t.bMT(3,8,o.selectedTabIndex$)),t.R7$(5),t.Y8G("authorIds",o.authorIds)("isOwnProfile",o.isOwnProfile)("isClaimed",null==o.authorRecord?null:o.authorRecord.claim_status),t.BMQ("aria-label",t.bMT(7,10,"Documents")),t.R7$(2),t.Y8G("ngIf",!o.isClaimedRecord()&&!t.bMT(9,12,"nxPresentationControl_Researcher_Profile_Disable_ViewBeamPlot")),t.R7$(2),t.Y8G("ngIf",o.isClaimedRecord()),t.R7$(),t.Y8G("ngIf",t.bMT(12,14,1===(null==o.authorIds?null:o.authorIds.length)&&o.grantsCount>0&&"nxEnableGrantsOnProfiles"))}}let uc=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st,gt,zt){super(zt,g),this.router=o,this.config=u,this.authors=O,this.wurs=$,this.windowRef=J,this.navigation=st,this.store=gt,this.currentPage=H.N.CURRENT_PAGE,this.pageSize=H.N.PAGE_SIZE,this.taPrefix="author-tabs-",this.validIncitesData=[],this.isMobile$=_t.Y.isMobile$,this.isRTL$=_t.Y.isRTL$,this.grantsCount=0,this.grantsRetrieve={count:10,sort:"grants-title-ascending",history:!1,jcr:!1,links:null,analyzes:null},this.totalPublications=0,this.peerReviewAndEditorialCount=0}ngOnInit(){this.currentLang$=(0,Tr.x)((0,fe.of)(this.translate.currentLang),this.translate.onLangChange.pipe((0,Et.T)(o=>o.lang))),this.shouldRemoveSpace$=this.currentLang$.pipe((0,Et.T)(o=>"zh-cn"===o||"zh-tw"===o)),this.store.select(at.vC).subscribe(o=>{this.isEnablePivotRP=JSON.parse(o.customerInfo?.enablePivotRP)}).unsubscribe()}ngOnChanges(o){this.isLoadingPeerReviewsData$=this.store.select(Y.Oz),o.authorIds&&(!o.authorIds.previousValue||o.authorIds.previousValue!==o.authorIds.currentValue)&&(this.setDefaultSelector(),this.getAuthorRecord());const g=this.authorIds.join(",");this.store.select(Y.cV,{authorIds:g}).pipe((0,W.p)(O=>!!O),(0,V.Q)(this.destroyed$)).subscribe(O=>{this.validIncitesData=O.filter($=>parseInt($.PUBLICATION_DATE,10)!==(new Date).getFullYear()&&parseInt($.PUBLICATION_DATE,10)!==(new Date).getFullYear()-1)}),this.hasPeerReviewOtherData$=this.store.select(Y.vS,{authorIds:g}),this.selectedTabIndex$=this.store.select(Y.lg)}runAuthorGrantsSearch(){this.grantsSearchKey="grants_"+this.authorIds.join(" ");const o={mode:tt.k0.author_grants,database:"GRANTS",authorId:{type:"spid",value:this.authorIds.join(" ")}};this.store.dispatch(new at.IV.x7({key:this.grantsSearchKey,search:o,retrieve:this.grantsRetrieve}))}setDefaultSelector(){this.currentPage=H.N.CURRENT_PAGE,this.pageSize=H.N.PAGE_SIZE}selectTab(o){1===o&&this.store.select(Y.vS,{authorIds:this.authorIds.join(",")}).pipe((0,Ct.s)(1)).subscribe(u=>{this.store.dispatch(new Je.Eo({authorIds:this.authorIds.join(","),hasPeerReviewDataLoaded:u}))}),this.store.dispatch(new be.SO({value:o}))}isClaimedRecord(){return this.authorRecord.claim_status||this.authorRecord.isClaimed}getAuthorRecord(){(0,oe.z)([this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o)),this.store.select(at.l1,{prop:"WAT-10338-review-count-display-from-ES"})]).pipe((0,V.Q)(this.destroyed$)).subscribe(([o,u])=>{this.authorRecord=o,this.totalPublications=o?.publication_summary?.totalPublications||0;const g=u?Number(o?.peer_reviews_count)||0:Number(o?.publonsBasicMetricsData?.publonsStatData?.total?.verifiedReviews)||0,O=u?Number(o?.editor_records_count)||0:Number(o?.publonsBasicMetricsData?.publonsStatData?.total?.verifiedEditorRecords)||0;this.peerReviewAndEditorialCount=g+O,this.grantsCount=o?.grants_stats?.total_articles||0,this.prePrintPublicationsOnly=o?.publication_summary?.pprnPublications===o?.publication_summary?.totalPublications})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(pt.Ix),t.rXU(Rn.w),t.rXU(ht.c$),t.rXU(ve.m),t.rXU(hi.J),t.rXU(kn.W),t.rXU(jl.o),t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-tabs-section"]],inputs:{authorIds:"authorIds",isOwnProfile:"isOwnProfile"},features:[t.Vt3,t.OA$],decls:1,vars:1,consts:[["tabGroup",""],["peerReviewContent",""],["noPeerReviews",""],["class","publications-container card-rounded-border",4,"ngIf"],[1,"publications-container","card-rounded-border"],["animationDuration","0ms","id","snProfilesTabs",1,"profile-author-tab-group",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["tabindex","0","role","regi
1on",3,"authorIds","isOwnProfile","isClaimed"],[3,"label","disabled",4,"ngIf"],[4,"ngIf"],[3,"label","disabled"],["matTabContent",""],[3,"authorIds"],[4,"ngIf","ngIfElse"],[1,"peer-review-spinner",3,"diameter"],[3,"authorIds","isOwnProfile"],[1,"peer-review-text"],["mat-stroked-button","","class","wat-material-new-button",3,"routerLink",4,"ngIf"],["mat-stroked-button","",1,"wat-material-new-button",3,"routerLink"],["svgIcon","plus",1,"mat-add-icon"],[1,"tab-label",3,"click"],[3,"translateKey","searchKey","retrieve","view"],["id","page-controls-content",4,"ngIf"],["id","page-controls-content"],["href","https://pivot.proquest.com/funding_main","target","_blank","rel","noopener noreferrer",1,"mat-icon-button-center-icon","no-underline-link",3,"matTooltip"],["inline","true",1,"font-size-16","pivotFundingIcon"]],template:function(u,g){1&u&&t.DNE(0,gm,13,16,"mat-card",3),2&u&&t.Y8G("ngIf",g.authorRecord)},dependencies:[Ce.oV,pt.Wk,Ft.An,B.bT,Mt.$z,Nt.LG,tn.$L,tn.ES,tn.mq,tn.T8,S.RN,na.K,Zl,z.J,oc,B.Jj,ht.D9,Z.h],styles:[".publications-container[_ngcontent-%COMP%]{margin-top:1rem;padding:1.5rem 1.5rem 2.5rem}.publications-container[_ngcontent-%COMP%]   .wat-publicaitons-header[_ngcontent-%COMP%]{font-size:1.375rem}.publications-container[_ngcontent-%COMP%]   .view-results-button[_ngcontent-%COMP%]{font-size:1rem!important}.publications-container[_ngcontent-%COMP%]   .view-results-button[_ngcontent-%COMP%]:lang(ru){max-width:16.875rem;white-space:normal;word-wrap:break-word;line-height:1.25rem}.publications-container[_ngcontent-%COMP%]   .view-results-button[_ngcontent-%COMP%]:lang(es){max-width:12.5rem;white-space:normal;word-wrap:break-word;line-height:1.25rem}.publications-container[_ngcontent-%COMP%]   .view-results-button[_ngcontent-%COMP%]:lang(pt-br){max-width:15rem;white-space:normal;word-wrap:break-word;line-height:1.25rem}.publications-container[_ngcontent-%COMP%]   .wat-flilter-box[_ngcontent-%COMP%]{float:right}.wat-page-control-bottom[_ngcontent-%COMP%]{margin-top:1rem}.tab-content[_ngcontent-%COMP%]{padding-top:1.5625rem;padding-left:.1875rem;padding-right:.1875rem}.loading-spinner[_ngcontent-%COMP%]{display:inline;margin-left:.875rem}.publons-publication-spinner[_ngcontent-%COMP%]{display:block;margin:1.875rem auto 3.125rem}.show-more-button[_ngcontent-%COMP%]{color:var(--sys-primary);text-decoration:underline;cursor:pointer;padding:0;font-size:.875rem;line-height:1.125rem;display:inline;margin-left:1.125rem}.show-more-button[_ngcontent-%COMP%]:hover{color:#4125af;outline:.125rem solid #b49de2;padding:0}.show-more-button[_ngcontent-%COMP%]:focus{color:#4125af;outline:.125rem solid #b49de2;padding:0}.show-more-button[_ngcontent-%COMP%]:disabled{outline:none;color:#9e9e9e;cursor:not-allowed}.show-more-editoral-membership-buttons[_ngcontent-%COMP%]{margin-bottom:.5rem}.publications-tab-content[_ngcontent-%COMP%]{margin-top:1.25rem;padding-bottom:1.875rem;margin-bottom:1.875rem}.section-header[_ngcontent-%COMP%]{font-size:1.25rem;line-height:2rem;margin-bottom:.75rem;margin-top:1.875rem}.section-subheader[_ngcontent-%COMP%]{margin-bottom:.75rem}.verified-reviews-container[_ngcontent-%COMP%], .verified-editor-container[_ngcontent-%COMP%], .peer-reviews-tab-columns[_ngcontent-%COMP%]{margin-left:1.125rem;display:flex;flex-wrap:wrap;width:90%}.verified-icon[_ngcontent-%COMP%]{color:#00b30a;height:.875rem;width:.875rem;position:relative;top:.125rem}.verified-membership[_ngcontent-%COMP%]{color:#5e33bf}.two-columned-items[_ngcontent-%COMP%]{flex:1 0 50%;padding-right:1.25rem;margin-bottom:.5rem}.item-flex[_ngcontent-%COMP%]{display:flex;font-size:.875rem}.item-flex[_ngcontent-%COMP%]   .item-prefix[_ngcontent-%COMP%]{flex-basis:1.75rem;flex-shrink:0;flex-grow:0}.item-flex[_ngcontent-%COMP%]   .item-content[_ngcontent-%COMP%]{padding-left:.25rem}.search-mode-links[_ngcontent-%COMP%]{display:inline-flex;border-bottom:solid 1px #bdbdbd;margin-bottom:1.5625rem}.search-mode-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .search-mode-links[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{cursor:pointer;display:block;text-decoration:none!important;color:#616161;font-weight:400;padding:0 1.25rem .9375rem;margin-bottom:-1px;border:0;outline:0!important;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;transition:none}.search-mode-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .search-mode-links[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{color:#b49de2!important}.search-mode-links[_ngcontent-%COMP%]   .current[_ngcontent-%COMP%]{color:var(--sys-primary)!important;border-bottom:.125rem solid var(--sys-primary)!important}.count-text[_ngcontent-%COMP%]{margin-top:auto;font-size:1.5rem}.wat-mat-card-citation-btn[_ngcontent-%COMP%]{align-items:center;align-content:center;justify-content:center;margin-left:auto;margin-right:.5rem;position:relative;top:.5rem}.wat-view-citation-report[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.wat-view-results-button[_ngcontent-%COMP%]{background-color:#fff;display:inline}.wat-right-margin-ar[_ngcontent-%COMP%]{float:left;margin-left:.75rem;margin-top:-1.25rem}.wat-left-margin[_ngcontent-%COMP%]{margin-left:5rem}.no-publications-card[_ngcontent-%COMP%]{padding:2.1875rem 25%}.wat-manage-button[_ngcontent-%COMP%]{float:right;margin-top:-1.875rem}.claimed-publication-count-header[_ngcontent-%COMP%]{display:flex}.margin-top-5px[_ngcontent-%COMP%]{margin-top:.3125rem!important}.margin-top-10px[_ngcontent-%COMP%]{margin-top:.625rem!important}.tab-label[_ngcontent-%COMP%]{position:relative;width:100%;padding:.9375rem 0}.peer-review-spinner[_ngcontent-%COMP%]{margin:3.75rem auto 3.125rem}.peer-review-text[_ngcontent-%COMP%]{padding:3.125rem;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.625rem}.mat-add-icon[_ngcontent-%COMP%]{width:.6875rem;margin:0 .625rem .1875rem .3125rem}"]})}}return s})();const fm=()=>["/","author","review-multiple-accounts"];function Lr(s,M){if(1&s){const o=t.RV6();t.j41(0,"cdx-notification",4),t.nI1(1,"translate"),t.j41(2,"mat-icon",5),t.EFF(3,"info"),t.k0s(),t.j41(4,"div",6)(5,"div"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",7)(9,"button",8),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.dismissMergeAccountsBanner())}),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"button",9),t.EFF(13),t.nI1(14,"translate"),t.k0s()()()()}2&s&&(t.Y8G("title",t.bMT(1,5,"headerMA")),t.R7$(6),t.SpI(" ",t.bMT(7,7,"mergeAccountsInfoMessage")," "),t.R7$(4),t.SpI(" ",t.bMT(11,9,"Dismiss")," "),t.R7$(2),t.Y8G("routerLink",t.lJ4(13,fm)),t.R7$(),t.SpI(" ",t.bMT(14,11,"buttonMA")," "))}function _m(s,M){1&s&&t.nrm(0,"app-author-score-card",19),2&s&&t.Y8G("isProfilePage",!0)}function mc(s,M){if(1&s&&(t.j41(0,"div",17),t.DNE(1,_m,1,1,"app-author-score-card",18),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",!(null!=o.widgetSettings&&null!=o.widgetSettings.hidden&&o.widgetSettings.hidden.includes("ScoreCard")))}}function gc(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",20),t.nrm(2,"app-author-tabs-section",21),t.nI1(3,"async"),t.k0s(),t.bVm()),2&s){const o=t.XpG(2);t.R7$(2),t.Y8G("authorIds",o.authorIds)("isOwnProfile",t.bMT(3,2,o.isOwnProfile$))}}function bm(s,M){if(1&s&&(t.j41(0,"div",10)(1,"div",11),t.nrm(2,"app-author-record-header",12),t.nI1(3,"async"),t.DNE(4,mc,2,1,"div",13),t.nI1(5,"feature"),t.nI1(6,"async"),t.k0s(),t.j41(7,"div",14),t.nrm(8,"app-metrics-column",15),t.nI1(9,"async"),t.k0s(),t.DNE(10,gc,4,4,"ng-container",16),t.nI1(11,"feature"),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.Y8G("authorRecordIds",o.authorIds)("isOwnProfile",t.bMT(3,8,o.isOwnProfile$))("isClaimed",o.isClaimedRecord),t.R7$(2),t.Y8G("ngIf",t.bMT(5,10,"nxEnableWidgetProfileScoreCard")&&t.bMT(6,12,o.isOwnProfile$)),t.R7$(4),t.Y8G("authorIds",o.authorIds)("isOwnProfile",t.bMT(9,14,o.isOwnProfile$))("isClaimed",o.isClaimedRecord),t.R7$(2),t.Y8G("ngIf",!t.bMT(11,16,"nxPresentationControl_cancelled_blur_author_profile")||o.isClaimedRecord)}}let Cm=(()=>{class s extends xh{constructor(o,u,g,O,$,J){super(g),this.store=o,this.cd=u,this.windowRef=g,this.titleService=O,this.translate=$,this.preferenceService=J,this.liveAnnouncer=(0,t.WQX)(dn.Ai),this.heightOfNavOnScreen=105,this.isMobile$=_t.Y.isMobile$,this.isRTL$=_t.Y.isRTL$,this.isClaimed=!1,this.user=null,this.destroyed$=new Ke.B,this.isEnablePivotRP=!1,this.isProfileOwner=!1,this.showMergeAccountsInfoBanner=!0,this.AuthorUtils=ce.X,this.shouldAnnouncePageLoad=!1,this.authorDetailLoadedForAnnouncement=!1}ngOnInit(){this.authorAccessInfo$=this.store.select(at.Ik),this.preferenceService.getWidgetSettings().pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.widgetSettings=o})}ngOnChanges(o){o.authorRecordKey&&(!o.authorRecordKey.previousValue||o.authorRecordKey.previousValue!==o.authorRecordKey.currentValue)&&(this.shouldAnnouncePageLoad=!0,this.authorDetailLoadedForAnnouncement=!1,this.store.dispatch(new be.bh),this.initializeAuthorRecord())}initializeAuthorRecord(){this.authorIds=this.authorRecordKey.split(","),this.authorDetail$=this.store.select(Y.Gh,{authorIds:this.authorIds?.join(",")}),this.store.dispatch(new be.SO({value:0})),this.setTabTitle(),this.authorDetail$.pipe((0,W.p)(o=>void 0!==o?.claim_status),(0,Ct.s)(1)).subscribe(o=>{this.authorDetailLoadedForAnnouncement=!0,this.announcePageLoadIfReady(),this.store.select(Y.He).pipe((0,Ct.s)(1)).subscribe(u=>{this.isProfileOwner=!!u}),this.isOwnProfile$=this.store.select(Y.aJ).pipe((0,W.p)(u=>!!u),(0,Et.T)(u=>!(o?.authorId?.split(",").length>1||!u.researcherId)&&u.researcherId===o.rid)),this.isClaimedRecord=o?.claim_status}),this.langSub=this.translate.stream("researcher_profile_title").subscribe(o=>{this.setTabTitle(o)}),this.userSubscription=this.store.select(at.mm).pipe((0,Ie.F)()).subscribe(o=>{this.user=o,o?.JWT&&this.store.dispatch(new Vn.r2({useCache:!0}));const u=()=>{this.heightOfNavOnScreen=Math.max(0,105-this.windowRef.nativeWindow.scrollY),this.cd.detectChanges()};this.loadingSubscription=(0,oe.z)([this.store.select(Y.p3)]).pipe((0,Et.T)(g=>g.includes(!0))).subscribe(g=>{this.isLoading=g,this.cd.detectChanges(),this.heightOfNavOnScreen=Math.max(0,105-this.windowRef.nativeWindow.scrollY),g?this.windowRef.nativeWindow.addEventListener("scroll",u):(this.windowRef.nativeWindow.removeEventListener("scroll",u),this.announcePageLoadIfReady())})}),this.store.select(at.vC).subscribe(o=>{this.isEnablePivotRP=JSON.parse(o.customerInfo?.enablePivotRP)}).unsubscribe()}ngOnDestroy(){this.loadingSubscription.unsubscribe(),this.userSubscription.unsubscribe(),this.langSub.unsubscribe(),this.destroyed$.next(!0)}navigateBack(){this.windowRef.nativeWindow.history.back()}announcePageLoadIfReady(){!this.shouldAnnouncePageLoad||!this.authorDetailLoa
1dedForAnnouncement||this.isLoading||(this.shouldAnnouncePageLoad=!1,this.liveAnnouncer.announce(this.translate.instant("authorPageLoaded")))}setTabTitle(o){(0,oe.z)([this.authorDetail$.pipe((0,W.p)(u=>!!u&&void 0!==u.claim_status)),this.store.select(Y._A,{authorIds:this.authorIds?.join(",")}).pipe((0,W.p)(u=>!!u))]).pipe((0,W.p)(u=>2==u?.length),(0,V.Q)(this.destroyed$)).subscribe(([u,g])=>{this.titleService.setTitle(`${g?.preferredName||u?.publishingName||u?.author_name} - ${o||this.translate.instant("WOSCC_name")}`)})}dismissMergeAccountsBanner(){this.showMergeAccountsInfoBanner=!1}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc),t.rXU(kn.W),t.rXU($a.hE),t.rXU(ht.c$),t.rXU(yh.N))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-page"]],inputs:{authorRecordKey:"authorRecordKey"},features:[t.Vt3,t.OA$],decls:6,vars:7,consts:[[1,"wat-author-record-page"],[3,"authorIds"],["class","merge-accounts-info-banner","severity","info","presentation","inline","dismissable","true",3,"title",4,"ngIf"],["class","author-container",4,"ngIf"],["severity","info","presentation","inline","dismissable","true",1,"merge-accounts-info-banner",3,"title"],["icon","",1,"info-icon"],[1,"merge-accounts-content"],[1,"merge-accounts-actions"],["mat-button","",1,"info-button-color","font-size-14",3,"click"],["mat-button","",3,"routerLink"],[1,"author-container"],[1,"author-details-section"],[3,"authorRecordIds","isOwnProfile","isClaimed"],["class","margin-top-20",4,"ngIf"],[1,"author-metric-section"],[3,"authorIds","isOwnProfile","isClaimed"],[4,"ngIf"],[1,"margin-top-20"],[3,"isProfilePage",4,"ngIf"],[3,"isProfilePage"],[1,"author-tab-section"],[3,"authorIds","isOwnProfile"]],template:function(u,g){if(1&u&&(t.j41(0,"div",0),t.nrm(1,"app-author-record-top-bar-button-group",1),t.DNE(2,Lr,15,14,"cdx-notification",2),t.nI1(3,"feature"),t.nI1(4,"async"),t.DNE(5,bm,12,18,"div",3),t.k0s()),2&u){let O;t.R7$(),t.Y8G("authorIds",g.authorIds),t.R7$(),t.Y8G("ngIf",t.bMT(3,3,"nxEnableMergeAccountsFeature")&&g.AuthorUtils.isWithinDays(null==(O=t.bMT(4,5,g.authorAccessInfo$))?null:O.datetimeUserJoined,30)&&g.showMergeAccountsInfoBanner),t.R7$(3),t.Y8G("ngIf",g.authorIds)}},dependencies:[pt.Wk,Ft.An,B.bT,Mt.$z,we.z,ps.x,xi,hu,Ou,uc,B.Jj,ht.D9,Z.h],styles:['.spinner-lightbox[_ngcontent-%COMP%]{background-color:#d3d3d380;width:100%;height:100%;overflow:hidden;position:fixed;z-index:5;visibility:visible;left:0}.wat-spinner[_ngcontent-%COMP%]{position:relative;top:30%;margin:auto}.wat-author-record-page[_ngcontent-%COMP%]   .wat-top-bar[_ngcontent-%COMP%]{margin-top:1.75rem}.wat-author-record-page[_ngcontent-%COMP%]   .wat-bar[_ngcontent-%COMP%]{flex:1 1 auto}.wat-author-record-page[_ngcontent-%COMP%]   .wat-back-button[_ngcontent-%COMP%]{padding-right:2rem}.wat-author-record-page[_ngcontent-%COMP%]   .wat-back-button[_ngcontent-%COMP%]   .wat-back-icon[_ngcontent-%COMP%]{position:relative;width:1.25rem;height:1.25rem;top:.3125rem}.wat-author-record-page[_ngcontent-%COMP%]   .wat-correction-button[_ngcontent-%COMP%]{margin-right:.625rem;margin-left:.625rem}.wat-author-record-page[_ngcontent-%COMP%]   .wat-correction-button[_ngcontent-%COMP%]   .wat-correction-icon[_ngcontent-%COMP%]{width:.875rem;height:.875rem;position:relative;top:.125rem}.wat-author-record-page[_ngcontent-%COMP%]   .background-white[_ngcontent-%COMP%]{background-color:#fff}.wat-author-record-page[_ngcontent-%COMP%]   .author-container[_ngcontent-%COMP%]{margin-top:1.375rem;margin-bottom:3.0625rem;display:grid;grid-template-areas:"details metric" "tab     metric";grid-template-columns:1fr 26.6875rem;grid-template-rows:auto;grid-auto-rows:max-content;grid-gap:1.0625rem}@media only screen and (min-width: 30rem) and (max-width: 64rem){.wat-author-record-page[_ngcontent-%COMP%]   .author-container[_ngcontent-%COMP%]{grid-template-columns:auto;margin:1.375rem 0;grid-template-areas:"details" "metric" "tab"}}@media screen and (max-width: 30rem){.wat-author-record-page[_ngcontent-%COMP%]   .author-container[_ngcontent-%COMP%]{grid-template-columns:auto;margin:1.375rem 0;grid-template-areas:"details" "metric" "tab"}}.wat-author-record-page[_ngcontent-%COMP%]   .author-metric-section[_ngcontent-%COMP%]{grid-area:metric;width:inherit;height:auto;overflow-x:auto}.wat-author-record-page[_ngcontent-%COMP%]   .author-details-section[_ngcontent-%COMP%]{grid-area:detail
1s;width:inherit;height:auto;overflow:hidden}.wat-author-record-page[_ngcontent-%COMP%]   .author-tab-section[_ngcontent-%COMP%]{grid-area:tab;width:inherit;height:auto;overflow:hidden}.pivotFundingIcon[_ngcontent-%COMP%]{vertical-align:middle}.merge-accounts-info-banner[_ngcontent-%COMP%]{--m3-sys-color-primary: #005FAC;padding:1.25rem 1.875rem;margin:1.5rem 0 1rem;background:#d4e3ff;border-left:5px solid #3B608F;border-radius:0rem!important}.merge-accounts-info-banner[_ngcontent-%COMP%]   .info-icon[_ngcontent-%COMP%]{color:#3b608f}.merge-accounts-info-banner[_ngcontent-%COMP%]   .info-button-color[_ngcontent-%COMP%]{color:#005fac}.merge-accounts-info-banner[_ngcontent-%COMP%]   .merge-accounts-content[_ngcontent-%COMP%]{flex:1;padding-right:7.5rem}.merge-accounts-info-banner[_ngcontent-%COMP%]   .merge-accounts-content[_ngcontent-%COMP%]   .merge-accounts-actions[_ngcontent-%COMP%]{display:flex;gap:.625rem;margin-top:1.5rem}']})}}return s})();var da=E(50612),xm=E(30405),ym=E(81375),Mm=E(91709),fc=E(32626),Pi=E(76233),vm=E(40190),pa=E(66032);const Pm=()=>({showSelect:!1}),wm=()=>({showSelect:!0}),ua=s=>({disableTitleLink:s}),wi=()=>["10","25","50"],_c=(s,M)=>({disableSortFeature:!1,disablePagination:!1,retrieveView:"summaryNamesBrief",disableTitleLink:s,analyzes:M,alwaysShowRefine:!0});function Om(s,M){1&s&&(t.nrm(0,"mat-spinner",6),t.nI1(1,"translate")),2&s&&t.BMQ("aria-label",t.bMT(1,1,"loading"))}function Im(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",10)(1,"div",11)(2,"div",12),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",13),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",14)(9,"div")(10,"button",15),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.addPublicationsPopup())}),t.j41(11,"mat-icon",16),t.EFF(12,"add"),t.k0s(),t.EFF(13),t.nI1(14,"translate"),t.k0s()()()()}2&s&&(t.R7$(3),t.SpI(" ",t.bMT(4,3,"improveDocsByActionForAddPublication")," "),t.R7$(3),t.SpI(" ",t.bMT(7,5,"selectUnrelatedPubsForAddPublication")," "),t.R7$(7),t.SpI(" ",t.bMT(14,7,"publications_add")," "))}function Tm(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",11)(2,"div",12),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",17),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.bVm()),2&s){const o=t.XpG(2);t.R7$(3),t.E5c(" ",null==o.searchHitsBeforerefinement?null:o.searchHitsBeforerefinement.found," ",t.bMT(4,4,1===(null==o.searchHitsBeforerefinement?null:o.searchHitsBeforerefinement.found)?"combinedProfilesHeaderWithCountSingular":"combinedProfilesHeaderWithCountPlural")," ",(null==o.combinedPrefAuthorNames?null:o.combinedPrefAuthorNames.length)>1?o.combinedPrefAuthorNames.slice(0,-1).join(" ; ")+" and "+o.combinedPrefAuthorNames[o.combinedPrefAuthorNames.length-1]:o.combinedPrefAuthorNames[0]," "),t.R7$(3),t.SpI(" ",t.bMT(7,6,"unselectDefaultlySelectedDocumentsText")," ")}}function km(s,M){1&s&&(t.qex(0),t.nrm(1,"span",23),t.nI1(2,"translate"),t.bVm()),2&s&&(t.R7$(),t.Y8G("innerHTML",t.bMT(2,1,"noCorrection"),t.npT))}function Gr(s,M){1&s&&t.eu8(0)}function Rm(s,M){if(1&s&&(t.nrm(0,"app-record",27),t.nI1(1,"feature")),2&s){const o=M.$implicit,u=M.index,g=t.XpG(5);t.Y8G("search",null==o?null:o.search)("sort",null==o?null:o.sort)("page",g.pubPage)("pageSize",g.pageSize)("isSummaryRedesign",!0)("num",o.docId)("changeType",o.changesMade)("parent","CurationCorrectionSummary")("correctionStatus",o.status)("parentIdx",u)("displayOptions",t.eq3(13,ua,!(null!=g.authorDetail&&g.authorDetail.claim_status||t.bMT(1,11,"nxPresentationControl_Show_Premium_Feature"))))}}function Am(s,M){1&s&&t.eu8(0)}function jr(s,M){if(1&s){const o=t.RV6();t.j41(0,"wos-select",30),t.bIt("valueChange",function(g){t.eBV(o);const O=t.XpG(6);return t.Njj(O.changePageSize(g))}),t.k0s()}if(2&s){const o=t.XpG(6);t.Y8G("optVals",t.lJ4(5,wi))("fixedHeight",!1)("value",o.pageSize.toString(10))("small",!0)("allowSearch",!1)}}function bc(s,M){if(1&s){const o=t.RV6();t.j41(0,"app-page-controls",28),t.bIt("currentPageChange",function(g){t.eBV(o);const O=t.XpG(5);return t.Njj(O.currentPageChange(g))}),t.DNE(1,jr,1,6,"wos-select",29),t.k0s()}
1if(2&s){const o=M.showSelect,u=t.XpG(2).ngIf,g=t.XpG(3);t.Y8G("currentPage",g.currentPage)("skipID","pageControlBottom")("maxPage",g.maxPage(null==u?null:u.length)),t.R7$(),t.Y8G("ngIf",o)}}function ma(s,M){if(1&s&&(t.j41(0,"div",24,1),t.DNE(2,Gr,1,0,"ng-container",25)(3,Rm,2,15,"app-record",26)(4,Am,1,0,"ng-container",25),t.k0s(),t.DNE(5,bc,2,4,"ng-template",null,2,t.C5r)),2&s){const o=t.sdS(6),u=t.XpG().ngIf,g=t.XpG(3);t.R7$(2),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.lJ4(6,Pm)),t.R7$(),t.Y8G("ngForOf",g.currentList(u))("ngForTrackBy",g.trackByFn),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.lJ4(7,wm))}}function Cc(s,M){if(1&s&&(t.j41(0,"mat-tab",21),t.nI1(1,"translate"),t.nI1(2,"async"),t.DNE(3,km,3,3,"ng-container",22)(4,ma,7,8,"ng-template",null,0,t.C5r),t.k0s()),2&s){let o;const u=M.ngIf,g=t.sdS(5),O=t.XpG(3);t.Y8G("disabled",1!==O.selectedTabIndex&&!(null!=u&&u.length))("label",t.bMT(1,4,"viewCorrections")+" ("+(null==(o=t.bMT(2,6,O.curatedPublications$))?null:o.length)+")"),t.R7$(3),t.Y8G("ngIf",0==u.length)("ngIfElse",g)}}function Sm(s,M){if(1&s){const o=t.RV6();t.j41(0,"mat-tab-group",18),t.mxI("selectedIndexChange",function(g){t.eBV(o);const O=t.XpG(2);return t.DH7(O.selectedTabIndex,g)||(O.selectedTabIndex=g),t.Njj(g)}),t.nrm(1,"mat-tab",19),t.nI1(2,"translate"),t.DNE(3,Cc,6,8,"mat-tab",20),t.nI1(4,"async"),t.k0s()}if(2&s){const o=t.XpG(2);t.R50("selectedIndex",o.selectedTabIndex),t.R7$(),t.Y8G("label",t.bMT(2,3,"publications")),t.R7$(2),t.Y8G("ngIf",t.bMT(4,5,o.curatedPublications$))}}function Dm(s,M){if(1&s){const o=t.RV6();t.j41(0,"app-author-document-summary",33),t.nI1(1,"feature"),t.bIt("pageChange",function(g){t.eBV(o);const O=t.XpG(3);return t.Njj(O.pageChange(g))}),t.k0s()}if(2&s){const o=t.XpG(3);t.Y8G("translateKey","author_publications")("retrieve",o.authorRetrieve)("searchKey",o.authorSearchKey)("pageSize",o.pageSize)("componentOptions",t.l_i(8,_c,!(null!=o.authorDetail&&o.authorDetail.claim_status||t.bMT(1,6,"nxPresentationControl_Show_Premium_Feature")),o.analyzes))("view",o.isOrcidWizard?"OrcidPubSummary":"CurationSummary")}}function Em(s,M){if(1&s&&(t.j41(0,"div",31),t.DNE(1,Dm,2,11,"app-author-document-summary",32),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",o.authorSearchKey&&o.authorRetrieve)}}function xc(s,M){if(1&s&&(t.j41(0,"div"),t.DNE(1,Im,15,9,"div",7)(2,Tm,8,8,"ng-container",5)(3,Sm,5,7,"mat-tab-group",8)(4,Em,2,1,"div",9),t.k0s()),2&s){const o=t.XpG();t.R7$(),t.Y8G("ngIf",!o.isOrcidWizard),t.R7$(),t.Y8G("ngIf",o.isOrcidWizard),t.R7$(),t.Y8G("ngIf",!o.isOrcidWizard),t.R7$(),t.Y8G("ngIf",0===o.selectedTabIndex||o.isOrcidWizard)}}let Gn=(()=>{class s extends Rt.${constructor(o,u,g,O,$){super(u),this.store=o,this.change=u,this.router=g,this.dialog=O,this.translate=$,this.selectedTabIndex=0,this.combinedPrefAuthorNames=[],this.pageSize=50,this.currentPage=1,this.pubPage="1"}ngOnInit(){this.curatedPublications$=this.store.select(Y.M5).pipe((0,W.p)(o=>!!o),(0,Et.T)(o=>Object.values(o)),(0,V.Q)(this.destroyed$)),this.store.dispatch(new be.QS({selectedPublications:{selectedUts:new Set([])}}))}ngOnChanges(o){o.authorIds&&JSON.stringify(o.authorIds.previousValue)===JSON.stringify(o.authorIds.currentValue)||(this.isOrcidWizard=_t.Y.isOrcidWizard(this.router),this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(u=>!!u),(0,Ct.s)(1)).subscribe(u=>{this.authorDetail=u,this.isClaimedCuration=u?.claimStatuses?.filter(g=>"Claimed"===g.status)?.length>0,_t.Y.isRid(this.authorIds.join(","))||this.loadAuthorPublicationsFromES()}),this.isOrcidWizard&&1===this.authorIds?.length?this.store.select(Y.T6,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.combinedPrefAuthorNames.push(u)}):this.isOrcidWizard&&this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(u=>!!u)).subscribe(u=>{this.combinedPrefAuthorNames=ce.X.getCombinedPrefNames(u,this.authorIds)}))}loadAuthorPublicationsFromES(){const o="ALLDB",u=["WOS","PPRN"];this.analyzes=H.N.curationPageAnalyzers.databases[o].analyzes,this.authorSearchKey=`author_publications_${this.authorIds.join(",")}_${u.join("_")}`,this.authorRetrieve={view:"summaryNamesBrief",sort:"date-descending",jcr:!0,links:null,history:!1,count:this.pageSize,first:1,analyzes:this.analyzes.searchEngineFetch.map(O=>_t.Y.buildAnalyzeRequestString(O))};const g={mode:tt.k0.author_publications,database:o,authorId:ce.X.getAuthorId(this.authorDetail,this.authorIds),display:{key:"author",icon:"author",params:{name:this.authorDetail?.publishingName||this.authorDetail?.author_name}},searchOptions:{collections:u},analyzeConfig:"profiles"};this.store.dispatch(new at.IV.x7({key:this.authorSearchKey,search:g,retrieve:this.authorRetrieve,forceSearch:!0})),this.change.detectChanges(),this.loadSearch()}loadSearch(){this.store.select(at.rc({key:this.authorSearchKey})).pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o)).subscribe(o=>{this.search={...o,noRefineParent:o.id},this.store.select(at.j,{search:this.search}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.searchHits=u,this.searchHitsBeforerefinement=this.searchHitsBeforerefinement||u,this.change.detectChanges()})})}addPublicationsPopup(){this.dialog.open(vm._,{width:"900px",height:"445px",ariaLabel:this.translate.instant("watPublicationsAddAriaLabel"),data:{authorIds:this.authorIds},position:{top:"20vh"}}).afterClosed().subscribe(u=>{u&&(this.selectedTabIndex=1,this.change.detectChanges())})}changePageSize(o){this.pageSize=parseInt(o,10),this.currentPage=1}currentPageChange(o){this.currentPage=o}maxPage(o){const u=Math.ceil(o/this.pageSize);return this.currentPage>u&&(this.currentPage=u),u}currentList(o){const u=(this.currentPage-1)*this.pageSize;return o.slice(u,u+this.pageSize)}pageChange(o){this.pubPage=o}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc),t.rXU(pt.Ix),t.rXU(Vt.bZ),t.rXU(ht.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-publication-review"]],inputs:{authorIds:"authorIds"},features:[t.Vt3,t.OA$],decls:3,vars:2,consts:[["correctedData",""],["removedPub",""],["pagination",""],[1,"new-wos-style"],["class","wat-spinner",4,"ngIf"],[4,"ngIf"],[1,"wat-spinner"],["class","info-header",4,"ngIf"],["class","wat-curation-tab-group",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["class","review-document-container",4,"ngIf"],[1,"info-header"],[1,"info-container"],[1,"info-section","margin-bottom-10"],[1,"subInfo-section"],[1,"button-container"],["mat-flat-button","","color","primary",3,"click"],["mat-icon-no-color","",1,"add-icon"],[1,"orcid-subInfo-section"],[1,"wat-curation-tab-group",3,"selectedIndexChange","selectedIndex"],[3,"label"],[3,"disabled","label",4,"ngIf"],[3,"disabled","label"],[4,"ngIf","ngIfElse"],[1,"no-correction-info",3,"innerHTML"],[1,"padding-24"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","app-record-holder new-link-style",3,"search","sort","page","pageSize","isSummaryRedesign","num","changeType","parent","correctionStatus","parentIdx","displayOptions",4,"ngFor","ngForOf","ngForTrackBy"],[1,"app-record-holder","new-link-style",3,"search","sort","page","pageSize","isSummaryRedesign","num","changeType","parent","correctionStatus","parentIdx","displayOptions"],[3,"currentPageChange","currentPage","skipID","maxPage"],["label","summaryPageSize","width","100%",3,"optVals","fixedHeight","value","small","allowSearch","valueChange",4,"ngIf"],["label","summaryPageSize","width","100%",3,"valueChange","optVals","fixedHeight","value","small","allowSearch"],[1,"review-document-container"],[3,"translateKey","retrieve","searchKey","pageSize","componentOptions","view","pageChange",4,"ngIf"],[3,"pageChange","translateKey","retrieve","searchKey","pageSize","componentOptions","view"]],template:function(u,g){1&u&&(t.j41(0,"div",3),t.DNE(1,Om,2,3,"mat-spinner",4)(2,xc,5,4,"div",5),t.k0s()),2&u&&(t.R7$(),t.Y8G("ngIf",!g.searchHits),t.R7$(),t.Y8G("ngIf",g.searchHits))},dependencies:[To.N,Fe.R,Ft.An,B.Sq,B.bT,B.T3,Mt.$z,Nt.LG,tn.mq,tn.T8,pa.X,na.K,B.Jj,ht.D9,Z.h],styles:[".wat-spinner[_ngcontent-%COMP%]{margin-top:13.125rem;padding-top:10.3125rem}.info-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-right:1.875rem}.info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:75%}.info-section[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;line-height:1.625rem;word-wrap:break-word}.subInfo-section[_ngcontent-%COMP%]{margin-bottom:1.25rem;font-size:1rem;font-weight:400;line-height:1.5625rem;word-wrap:break-word}.orcid-subInfo-section[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;line-height:1.5625rem;word-wrap:break-word}.add-icon[_ngcontent-%COMP%]{font-size:1.25rem}.wat-curation-tab-group[_ngcontent-%COMP%]{overflow-x:unset}.review-document-container[_ngcontent-%COMP%]{display:flex;padding:1.5rem 1.5rem 2.5rem 0rem;flex-direction:row;justify-content:space-between;gap:1.5rem}.no-correction-info[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;text-align:center;margin:3.125rem;font-size:1.125rem}.padding-24[_ngcontent-%COMP%]{padding:1.5rem}.app-record-holder[_ngcontent-%COMP%]{min-height:208px;display:block;position:relative}"]})}}return s})();var yc=E(4610);const Qe=()=>["/","op","publications","import-publications"],Fm=()=>["/","op","publications","add-suggested-publications"],$m=s=>({author:s});function Mc(s,M){1&s&&(t.j41(0,"div",2)(1,"div",3)(2,"p",4),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",5),t.nI1(6,"translate"),t.j41(7,"mat-icon",6),t.EFF(8,"close"),t.k0s()()(),t.j41(9,"div",7)(10,"p",8),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"a",9),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"p",8),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"p",8),t.EFF(20),t.nI1(21,"translate"),t.k0s()(),t.j41(22,"div",10)(23,"p",11),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"a",12),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.j41(31,"div",13)(32,"button",14),t.EFF(33),t.nI1(34,"translate"),t.k0s()()()),2&s&&(t.R7$(3),t.SpI(" ",t.bMT(4,12,"claimed_by_someone_else")," "),t.R7$(2),t.Y8G("aria-label",t.bMT(6,14,"close")),t.R7$(6),t.SpI(" ",t.bMT(12,16,"claimed_by_someone_else_ParaOne")," "),t.R7$(2),t.Y8G("routerLink",t.lJ4(32,Qe)),t.R7$(),t.SpI(" ",t.bMT(15,18,"this_is_me_add_publications")," "),t.R7$(3),t.SpI(" ",t.bMT(18,20,"Comma")," "),t.R7$(3),t.SpI(" ",t.bMT(21,22,"claimed_by_someone_else_search")," "),t.R7$(4),t.SpI(" ",t.bMT(25,24,"claimed_by_someone_else_ParaTwo")," "),t.R7$(3),t.JRh(t.bMT(28,26,"customer_support")),t.R7$(2),t.SpI("",t.bMT(30,28,"Peroid")," "),t.R7$(3),t.Y8G("mat-dialog-close",!0),t.R7$(),t.SpI(" ",t.bMT(34,30,"close")," "))}function Lm(s,M){if(1&s&&(t.j41(0,"div",2)(1,"div",3)(2,"p",4),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",5),t.nI1(6,"translate"),t.j41(7,"mat-icon",15),t.EFF(8,"close"),t.k0s()()(),t.j41(9,"div",7)(10,"p",8),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"div",7)(14,"h2",16),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"ul",17)(18,"li"),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"li"),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"li"),t.EFF(25),t.nI1(26,"translate"),t.k0s()()(),t.j41(27,"div",18)(28,"button",19),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.j41(31,"a",20),t.EFF(32),t.nI1(33,"translate"),t.k0s()()()),2&s){const o=t.XpG();t.R7$(3),t.SpI(" ",t.bMT(4,11,"unclaim_this_is_me_title")," "),t.R7$(2),t.Y8G("aria-label",t.bMT(6,13,"close")),t.R7$(6),t.SpI(" ",t.bMT(12,15,"unclaim_this_is_me_first_para")," "),t.R7$(4),t.SpI(" ",t.bMT(16,17,"claiming_this_author_record"),""),t.R7$(4),t.JRh(t.bMT(20,19,"Verify_your_publications")),t.R7$(3),t.JRh(t.bMT(23,21,"when_your_work_is_cited")),t.R7$(3),t.JRh(t.bMT(26,23,"Showcase_more_publications")),t.R7$(4),t.JRh(t.bMT(30,25,"cancelBtn")),t.R7$(2),t.Y8G("routerLink",t.lJ4(29,Fm))("queryParams",t.eq3(30,$m,o.data.authorIds[0])),t.R7$(),t.SpI(" ",t.bMT(33,27,"claim_this_record"),"")}}let vc=(()=>{class s{constructor(o){this.data=o}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Vt.Vh))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-curation-this-is-me-modal"]],decls:3,vars:2,consts:[["unClaimedAuthorModal",""],["class","this-is-me-modal-window",4,"ngIf","ngIfElse"],[1,"this-is-me-modal-window"],[1,"modal-close-section"],[1,"this-is-me-title"],["mat-icon-button","","mat-dialog-close","",1,"item-icon","this-is-me-close-button-margin",3,"aria-label"],["inline","true",1,"close-icon"],[1,"this-is-me-para"],[1,"this-is-me-display-inline"],["color","primary","rel","noopener noreferrer","target","_blank","mat-dialog-close","",1,"author-link","this-is-me-display-inline",3,"routerLink"],[1,"margin-top-20"],[1,"font-size-16","this-is-me-display-inline"],["color","primary","tabindex","0","target","_blank","rel","noopener noreferrer","mat-dialog-close","","href","https://support.clarivate.com/ScientificandAcademicResearch/s/?language=en_US",1,"author-link"],["mat-dialog-actions","",1,"margin-top-10","action-button"],["mat-flat-button","","color","primary",3,"mat-dialog-close"],["inline","true"],[1,"claiming-author-margin-bottom"],["id","verify-publications"],[1,"unclaimed-this-is-me-action-btn"],["mat-button","","color","primary","tabindex","0","mat-dialog-close",""],["mat-flat-button","","mat-dialog-close","","color","primary","target","_blank",1,"claim-this-record","margin-left-20--reversible",3,"routerLink","queryParams"]],template:function(u,g){if(1&u&&t.DNE(0,Mc,35,33,"div",1)(1,Lm,34,32,"ng-template",null,0,t.C5r),2&u){const O=t.sdS(2);t.Y8G("ngIf",g.data.isClaimedAuthor)("ngIfElse",O)}},dependencies:[Vt.tx,Vt.E7,pt.Wk,Ft.An,B.bT,Mt.It,Mt.$z,Mt.iY,ht.D9],styles:['@charset "UTF-8";.this-is-me-modal-window[_ngcontent-%COMP%]{margin-top:-1.25rem!important;margin-bottom:-1.125rem!important}.this-is-me-modal-window[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]{float:right}.modal-close-section[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:1.25rem;left:-.6875rem!important;top:-.125rem!important}.this-is-me-para[_ngcontent-%COMP%]{display:inline;margin-top:-.3125rem;font-size:1rem}.this-is-me-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600}.this-is-me-close-button-margin[_ngcontent-%COMP%]{margin-top:.625rem!important}.author-link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.this-is-me-display-inline[_ngcontent-%COMP%]{display:inline}.unclaimed-this-is-me-action-btn[_ngcontent-%COMP%]{float:right;margin-top:.625rem;margin-bottom:-1.25rem}.claiming-author-margin-bottom[_ngcontent-%COMP%]{margin-bottom:-.9375rem}.verify-publications-list-margin[_ngcontent-%COMP%]{margin-bottom:-.3125rem}#verify-publications[_ngcontent-%COMP%]{padding:0}#verify-publications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style-type:none;margin-bottom:-.3125rem}#verify-publications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{Content:"\\2022";font-size:1.5625rem;position:relative;top:.125rem;padding-right:.5rem}
1.claim-this-record[_ngcontent-%COMP%]{text-decoration:none;font-weight:500}.modal-close-section[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;cursor:pointer}.modal-close-section[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:1.25rem}']})}}return s})();var Gm=E(86600),jm=E(39484);function Nm(s,M){if(1&s&&(t.j41(0,"mat-option",19),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=M.$implicit,u=t.XpG();t.Y8G("value",u.optionValueMap[o]),t.R7$(),t.SpI(" ",t.bMT(2,2,o+"_curation_select")," ")}}function zm(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",20),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.clearOrgName())}),t.nrm(1,"mat-icon",21),t.k0s()}}function Ym(s,M){if(1&s&&(t.nrm(0,"div",22),t.nI1(1,"translate")),2&s){const o=t.XpG();t.Y8G("innerHTML",t.bMT(1,1,(null==o.authorIds?null:o.authorIds.length)>1?"submitDataCorrectionInfoMerge":"submitDataCorrectionInfo"),t.npT)}}let Bm=(()=>{class s extends Rt.${constructor(o,u,g){super(g),this.dialog=o,this.store=u,this.cd=g,this.relationshipOptions=H.N.CORRECTION_FORM_RELATIONSHIPS_OPTIONS,this.optionValueMap=H.N.CORRECTION_FORM_RELATIONSHIPS_OPTIONS_VALUE_MAP,this.contactDetailsForm=new Zt.gE({username:new Zt.MJ({value:"",disabled:!0}),organization:new Zt.MJ(""),emailAddress:new Zt.MJ({value:"",disabled:!0}),relationship:new Zt.MJ("",{validators:Zt.k0.required})})}ngOnInit(){this.store.select(at.mm).pipe((0,Ie.F)()).subscribe(o=>{this.user=o}).unsubscribe(),this.contactDetailsForm.patchValue({username:`${this.user.lastName}, ${this.user.firstName}`,emailAddress:this.user.email}),this.formValueSub=this.contactDetailsForm.valueChanges.pipe((0,Ie.F)()).subscribe(()=>{const o={...this.contactDetailsForm.value,username:`${this.user.lastName}, ${this.user.firstName}`,emailAddress:this.user.email};this.store.dispatch(new be.SF({userInfo:o}))}),this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.isClaimedAuthor=o?.claim_status})}clearOrgName(){this.contactDetailsForm.patchValue({organization:""}),this.contactDetailsForm.markAsUntouched()}changeRelationshipOptions(o){o===this.optionValueMap.option1&&1===this.authorIds.length&&this.dialog.open(vc,{width:"472px",height:this.isClaimedAuthor?"auto":"380px",data:{isClaimedAuthor:this.isClaimedAuthor,authorIds:this.authorIds}})}ngOnDestroy(){this.formValueSub?.unsubscribe()}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Vt.bZ),t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-correction-form-contact-information"]],inputs:{authorIds:"authorIds"},features:[t.Vt3],decls:45,vars:34,consts:[[1,"contact-information-container"],[1,"data-correction-contact-section"],[1,"title-section"],[1,"notification-text-margin-left"],["autocomplete","off",3,"formGroup"],["required","","appearance","outline",1,"margin-top-10","cdx-select-default","preferences-input-field"],["formControlName","relationship","placeholder","Choose an option","panelClass","common-panel",3,"selectionChange"],["class","relationship-option",3,"value",4,"ngFor","ngForOf"],[1,"author-info-row"],["appearance","outline","floatLabel","never",1,"author-name-field","padding-right-5--reversible"],["matInput","","name","userName","formControlName","username","type","text","tabindex","0"],["appearance","outline","floatLabel","never",1,"author-org-email-field","padding-right-5--reversible"],["matInput","","name","organization","formControlName","organization","type","text","tabindex","0"],["matSuffix","","mat-icon-button","","class","clear-org-button","disableRipple","","tabindex","-1","type","button","aria-label","Clear organization name",3,"click",4,"ngIf"],["appearance","outline","floatLabel","never",1,"author-org-email-field","author-email-field--padding-left"],["matInput","","name","emailAddress","formControlName","emailAddress","type","text","tabindex","0"],[1,"data-correction-info-section"],["class","submit-data-correction-info",3,"innerHTML",4,"ngIf"],[3,"label"],[1,"relationship-option",3,"value"],["matSuffix","","mat-icon-button","","disableRipple","","tabindex","-1","type","button","aria-label","Clear organization name",1,"clear-org-button",3,"click"],["svgIcon","close",1,"svg-icon-18"],[1,"submit-data-correction-info",3,"innerHTML"]],template:function(u,g){1&u&&(t.j41(0,"div",0)(1,"div",1)(2,"mat-card")(3,"mat-card-header")(4,"mat-card-title",2),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"mat-card-content",3)(8,"p"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"form",4)(12,"mat-form-field",5)(13,"mat-label"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"mat-select",6),t.bIt("selectionChange",function($){return g.changeRelationshipOptions($.value)}),t.DNE(17,Nm,3,4,"mat-option",7),t.k0s()(),t.j41(18,"div",8)(19,"mat-form-field",9)(20,"mat-label"),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.nrm(23,"input",10),t.nI1(24,"translate"),t.k0s()(),t.j41(25,"div",8)(26,"mat-form-field",11)(27,"mat-label"),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.nrm(30,"input",12),t.nI1(31,"translate"),t.DNE(32,zm,2,0,"button",13),t.k0s(),t.j41(33,"mat-form-field",14)(34,"mat-label"),t.EFF(35),t.nI1(36,"translate"),t.k0s(),t.nrm(37,"input",15),t.nI1(38,"translate"),t.k0s()()()()()(),t.j41(39,"div",16)(40,"mat-card")(41,"mat-card-content"),t.DNE(42,Ym,2,3,"div",17),t.nrm(43,"app-data-correction-overlay",18),t.nI1(44,"translate"),t.k0s()()()()),2&u&&(t.R7$(5),t.SpI(" ",t.bMT(6,14,"provideYourContactInformation"),""),t.R7$(4),t.SpI(" ",t.bMT(10,16,"ContactInformationNotificationText")," "),t.R7$(2),t.Y8G("formGroup",g.contactDetailsForm),t.R7$(3),t.JRh(t.bMT(15,18,"connectedAuthorLabel")),t.R7$(3),t.Y8G("ngForOf",g.relationshipOptions),t.R7$(4),t.JRh(t.bMT(22,20,"Name")),t.R7$(2),t.BMQ("aria-label",t.bMT(24,22,"AuthorName")),t.R7$(5),t.JRh(t.bMT(29,24,"organization")),t.R7$(2),t.BMQ("aria-label",t.bMT(31,26,"organization")),t.R7$(2),t.Y8G("ngIf",g.contactDetailsForm.get("organization").value),t.R7$(3),t.JRh(t.bMT(36,28,"EmailAddress2")),t.R7$(2),t.BMQ("aria-label",t.bMT(38,30,"EmailAddress2")),t.R7$(5),t.Y8G("ngIf",g.authorIds),t.R7$(),t.Y8G("label",t.bMT(44,32,"correctionFormSubmitCorrectionLink")))},dependencies:[Pn.fg,vn.rl,vn.nJ,vn.yw,Gm.wT,Zt.qT,Zt.me,Zt.BC,Zt.cb,Zt.j4,Zt.JD,Ze.VO,Ft.An,B.Sq,B.bT,Mt.iY,S.RN,S.m2,S.MM,S.dh,jm.q,ht.D9],styles:['.title-section[_ngcontent-%COMP%]{padding-left:.6875rem;padding-bottom:.625rem}.contact-information-container[_ngcontent-%COMP%]{margin-top:1.375rem;margin-bottom:3.0625rem;display:grid;grid-template-areas:"contact info";grid-template-columns:1fr 20rem;grid-template-rows:auto;grid-auto-rows:max-content;grid-gap:2rem}@media only screen and (min-width: 30rem) and (max-width: 64rem){.contact-information-container[_ngcontent-%COMP%]{grid-template-columns:auto;margin:1.375rem 0;grid-template-areas:"contact" "info"}}@media screen and (max-width: 30rem){.contact-information-container[_ngcontent-%COMP%]{grid-template-columns:auto;margin:1.375rem .625rem;grid-template-areas:"contact" "info"}}.data-correction-contact-section[_ngcontent-%COMP%]{grid-area:contact;width:inherit;height:auto;overflow:hidden}.data-correction-info-section[_ngcontent-%COMP%]{grid-area:info;width:inherit;height:auto;overflow:hidden}.notification-text-margin-left[_ngcontent-%COMP%]{margin-left:.75rem}.author-info-row[_ngcontent-%COMP%]{display:flex}.author-name-field[_ngcontent-%COMP%]{width:70%}.author-org-email-field[_ngcontent-%COMP%], .preferences-input-field[_ngcontent-%COMP%]{width:48.5%}.author-email-field--padding-left[_ngcontent-%COMP%]{padding-left:.625rem}.clear-org-button[_ngcontent-%COMP%]{position:relative;height:2.875rem;width:2.875rem;bottom:.125rem;left:.5rem;color:#616161;border:none;background-color:#fff}.submit-data-correction-info[_ngcontent-%COMP%]{display:inline}']})}}return s})();var Oi=E(28203);const Pc=s=>({mergedProfiles:s});function Nr(s,M){if(1&s&&(t.j41(0,"div",5),t.nrm(1,"p",3),t.nI1(2,"translate"),t.j41(3,"div",20)(4,"div",21),t.nrm(5,"span",3),t.nI1(6,"translate"),t.j41(7,"span"),t.EFF(8),t.k0s()(),t.j41(9,"span"),t.EFF(10),t.nI1(11,"translate"),t.k0s()()()),2&s){const o=t.XpG();t.R7$(),t.Y8G("innerHTML",t.bMT(2,4,"mergeRequest"),t.npT),t.R7$(4),t.Y8G("innerHTML",t.bMT(6,6,"primaryName"),t.npT),t.R7$(3),t.JRh(o.authorName),t.R7$(2),t.JRh(t.i5U(11,8,"mergedProfiles",t.eq3(11,Pc,null==o.combinedPrefAuthorNames?null:o.combinedPrefAuthorNames.join("; "))))}}function Xm(s,M){if(1&s&&(t.j41(0,"div",7)(1,"div",8),t.EFF(2),t.k0s(),t.nrm(3,"div",9),t.nI1(4,"translate"),t.nrm(5,"div",22),t.nI1(6,"translate"),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.JRh(o.addedPublicationCount),t.R7$(),t.Y8G("innerHTML",t.bMT(4,3,"documentsAddedByAuthor"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(6,5,"curation_correction_status_added"),t.npT)}}function zr(s,M){if(1&s&&(t.j41(0,"div",7)(1,"div",8),t.EFF(2),t.k0s(),t.nrm(3,"div",9),t.nI1(4,"translate"),t.nrm(5,"div",22),t.nI1(6,"translate"),t.k0s()),2&s){const o=t.XpG();t.R7$(2),t.JRh(o.updatedPublicationCount),t.R7$(),t.Y8G("innerHTML",t.bMT(4,3,"authorshipUpdatedByAuthor"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(6,5,"curation_correction_status_updated"),t.npT)}}function Vm(s,M){if(1&s){const o=t.RV6();t.j41(0,"button",23),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.backToCorrectionForm(0))})("keydown.enter",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.backToCorrectionForm(0))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"editSetButton")," "))}function Yr(s,M){if(1&s&&(t.j41(0,"div")(1,"span",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span"),t.EFF(5),t.k0s()()),2&s){const o=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"organization")),t.R7$(3),t.JRh(o.contactDetailsForm.organization)}}function ga(s,M){if(1&s&&(t.j41(0,"div",24)(1,"div")(2,"span",25),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()(),t.DNE(7,Yr,6,4,"div",26),t.j41(8,"div")(9,"span",25),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s()(),t.j41(14,"div")(15,"span",25),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"span"),t.EFF(19),t.k0s()()()),2&s){const o=t.XpG();t.R7$(3),t.JRh(t.bMT(4,7,"Name")),t.R7$(3),t.JRh(o.contactDetailsForm.username),t.R7$(),t.Y8G("ngIf",o.contactDetailsForm.organization),t.R7$(3),t.JRh(t.bMT(11,9,"EmailAddress2")),t.R7$(3),t.JRh(o.contactDetailsForm.emailAddress),t.R7$(3),t.JRh(t.bMT(17,11,"relationshipToAuthor")),t.R7$(3),t.JRh(o.contactDetailsForm.relationship)}}let Wm=(()=>{class s extends Rt.${constructor(o,u){super(u),this.store=o,this.cd=u,this.backToCorrection=new t.bkB}ngOnChanges(){this.removedPublicationCount=0,(0,oe.z)([this.store.select(Y.M5).pipe((0,W.p)(o=>!!o),(0,Ie.F)(),(0,V.Q)(this.destroyed$)),this.store.select(Y.Y_).pipe((0,W.p)(o=>!!o),(0,Ie.F)(),(0,V.Q)(this.destroyed$))]).pipe((0,Et.T)(([o,u])=>{const g=ce.X.getAllTypeOfCurationCounts(o);return{removed:g.removed,added:g.added,updated:g.updated,curated:u?.count-g.removed}})).subscribe(o=>{this.removedPublicationCount=o.removed,this.addedPublicationCount=o.added,this.updatedPublicationCount=o.updated,this.curatedPublicationCount=o.curated,this.change.detectChanges()}),this.store.select(Y.WH).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.contactDetailsForm=o}),this.authorIds.length>1&&(this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o)).subscribe(o=>{this.combinedPrefAuthorNames=ce.X.getCombinedPrefNames(o,this.authorIds)}),this.store.select(Y.T6,{authorIds:this.authorIds.join(",")}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(o=>!!o)).subscribe(o=>{this.authorName=o}))}updateCorrectionInfo(){const o={...this.contactDetailsForm,additionalInfo:this.notes.replace(/[&\/\#+()$~%_='":@^*<>{}]/g,"")};this.store.dispatch(new be.SF({userInfo:o}))}backToCorrectionForm(o){this.backToCorrection.emit(o)}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-correction-form-review"]],inputs:{authorIds:"authorIds",enableEditButton:"enableEditButton"},outputs:{backToCorrection:"backToCorrection"},features:[t.Vt3,t.OA$],decls:62,vars:52,consts:[[1,"review-flex"],[1,"data-review-section"],[1,"review-info-section"],[3,"innerHTML"],["class","reviewSection",4,"ngIf"],[1,"reviewSection"],[1,"reviewed-publication-section"],[1,"summary-row"],[1,"count"],[1,"text",3,"innerHTML"],[1,"correction-remove","label",3,"innerHTML"],["class","summary-row",4,"ngIf"],["color","primary","mat-button","","data-ta","back-to-publications",1,"no-button-padding",3,"click","disableRipple"],["role","img",1,"prev-icon"],[1,"contact-info"],["mat-stroked-button","","class","edit-button","color","primary","tabindex","0",3,"click","keydown.enter",4,"ngIf"],["class","contact-section",4,"ngIf"],[1,"additional-info-section"],["id","margin-bottom-24"],["id","additionalInfo","matInput","","rows","4","aria-labelledby","additional-info-label","name","additionalInfo",1,"search-criteria-input","additionalInfoTextArea",2,"height","auto",3,"ngModelChange","focusout","ngModel","placeholder"],[1,"combined-primary-names"],[1,"primary-name"],[1,"correction-added","label",3,"innerHTML"],["mat-stroked-button","","color","primary","tabindex","0",1,"edit-button",3,"click","keydown.enter"],[1,"contact-section"],["dir","auto","translate","",1,"colonMark"],[4,"ngIf"]],template:function(u,g){1&u&&(t.j41(0,"div",0)(1,"mat-card",1)(2,"mat-card-header")(3,"mat-card-title"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"mat-card-content",2),t.nrm(7,"p",3),t.nI1(8,"translate"),t.DNE(9,Nr,12,13,"div",4),t.j41(10,"div",5)(11,"div"),t.nrm(12,"p",3),t.nI1(13,"translate"),t.j41(14,"div",6)(15,"div",7)(16,"div",8),t.EFF(17),t.k0s(),t.nrm(18,"div",9),t.nI1(19,"translate"),t.nrm(20,"div",10),t.nI1(21,"translate"),t.k0s(),t.DNE(22,Xm,7,7,"div",11),t.nI1(23,"feature"),t.DNE(24,zr,7,7,"div",11),t.nI1(25,"feature"),t.k0s(),t.nrm(26,"hr"),t.j41(27,"div",6),t.nrm(28,"p",3),t.nI1(29,"translate"),t.j41(30,"div",7)(31,"div",8),t.EFF(32),t.k0s(),t.nrm(33,"div",9),t.nI1(34,"translate"),t.k0s()(),t.j41(35,"button",12),t.bIt("click",function(){return g.backToCorrectionForm(1)}),t.j41(36,"mat-icon",13),t.EFF(37,"keyboard_arrow_left"),t.k0s(),t.EFF(38),t.nI1(39,"translate"),t.k0s()()(),t.nrm(40,"p",3),t.nI1(41,"translate"),t.j41(42,"div",5)(43,"div",14),t.nrm(44,"p",3),t.nI1(45,"translate"),t.DNE(46,Vm,3,3,"button",15),t.k0s(),t.DNE(47,ga,20,13,"div",16),t.k0s()()(),t.j41(48,"div",17)(49,"mat-card")(50,"mat-card-header")(51,"mat-card-title"),t.EFF(52),t.nI1(53,"translate"),t.k0s()(),t.j41(54,"mat-card-content",2)(55,"div")(56,"label",18),t.EFF(57),t.nI1(58,"translate"),t.k0s(),t.j41(59,"textarea",19),t.nI1(60,"translate"),t.mxI("ngModelChange",function($){return t.DH7(g.notes,$)||(g.notes=$),$}),t.bIt("focusout",function(){return g.updateCorrectionInfo()}),t.EFF(61,"        "),t.k0s()()()()()()),2&u&&(t.R7$(4),t.SpI(" ",t.bMT(5,22,"finalizeCorrectionsToYourPublications"),""),t.R7$(3),t.Y8G("innerHTML",t.bMT(8,24,"reviewYourCorrections"),t.npT),t.R7$(2),t.Y8G("ngIf",(null==g.authorIds?null:g.authorIds.length)>1),t.R7$(3),t.Y8G("innerHTML",t.bMT(13,26,"correctionsSummary"),t.npT),t.R7$(5),t.JRh(g.removedPublicationCount),t.R7$(),t.Y8G("innerHTML",t.bMT(19,28,"documentsNotWrittenByAuthor"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(21,30,"curation_correction_status_removed"),t.npT),t.R7$(2),t.Y8G("ngIf",t.bMT(23,32,"WAT-9323-Add-publications-button-in-curation-page")),t.R7$(2),t.Y8G("ngIf",t.bMT(25,34,"WAT-9498-change-author-position-in-curation-flow")),t.R7$(4),t.Y8G("innerHTML",t.bMT(29,36,"remainingPublications"),t.npT),t.R7$(4),t.JRh(g.curatedPublicationCount),t.R7$(),t.Y8G("innerHTML",t.bMT(34,38,"documentsRemainWithAuthor"),t.npT),t.R7$(2),t.Y8G("disableRipple",!0),t.R7$(3),t.SpI(" ",t.bMT(39,40,"authorshipPositionVerification_moreCorrections")," "),t.R7$(2),t.Y8G("innerHTML",t.bMT(41,42,"reviewYourAuthorRecordInformation"),t.npT),t.R7$(4),t.Y8G("innerHTML",t.bMT(45,44,"contactInformation"),t.npT),t.R7$(2),t.Y8G("ngIf",g.enableEditButton),t.R7$(),t.Y8G("ngIf",g.contactDetailsForm),t.R7$(5),t.SpI(" ",t.bMT(53,46,"additionalInfo"),""),t.R7$(5),t.SpI(" ",t.bMT(58,48,"provideAdditionalInfo")," "),t.R7$(2),t.R50("ngModel",g.notes),t.Y8G("placeholder",t.bMT(60,50,"typeHere")))},dependencies:[Oi.ig,Pn.fg,Zt.me,Zt.BC,Zt.vS,Ft.An,B.bT,ht.Mm,Mt.$z,S.RN,S.m2,S.MM,S.dh,ht.D9,Z.h],styles:[".review-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem;width:75%;font-weight:400;font-size:1rem;color:#000}.review-flex[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.5}.review-flex[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{border:1px #EEEEEE solid}.review-flex[_ngcontent-%COMP%]   data-review-section[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;width:100%}.review-flex[_ngcontent-%COMP%]   additional-info-section[_ngcontent-%COMP%]{flex-grow:1;width:100%}.contact-info[_ngcontent-%COMP%]{display:flex;gap:1rem;margin:0 0 .4375rem}.reviewed-publication-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;margin-top:1.25rem}
1.primary-name[_ngcontent-%COMP%]{font-weight:700;display:inline}.combined-primary-names[_ngcontent-%COMP%]{display:grid}.contact-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}.review-info-section[_ngcontent-%COMP%]{padding:.625rem 1.1875rem 0}.review-info-section[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-weight:600;font-size:1rem}.reviewSection[_ngcontent-%COMP%]{width:65%;padding:1.5rem 1.5rem 2.125rem;border:.0625rem #E0E0E0 solid;border-radius:.25rem;margin-bottom:1.25rem}.reviewSection[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-size:1.125rem}.additionalInfoTextArea[_ngcontent-%COMP%]{width:75%;padding:1.5rem;margin-top:1.25rem;margin-bottom:2.5rem}.padding-2[_ngcontent-%COMP%]{padding:.125rem}.summary-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;margin-bottom:.5rem}.summary-row[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{width:.4375rem;margin-right:2.5rem;font-weight:600}.summary-row[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:90%}.summary-row[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:700;white-space:nowrap}.correction-remove[_ngcontent-%COMP%]{color:#c70404}.correction-added[_ngcontent-%COMP%]{color:green}.edit-button[_ngcontent-%COMP%]{color:#5e33bf!important;height:1.75rem;width:1.75rem;line-height:1}.prev-icon[_ngcontent-%COMP%]{font-size:1.5rem;margin-bottom:.3125rem}"]})}}return s})(),Um=(()=>{class s{constructor(o,u,g,O,$,J){this.dialog=o,this.router=u,this.store=g,this.breadcrumbService=O,this.location=$,this.data=J}ngOnInit(){}discardSettings(){this.dialog.closeAll(),this.store.select(Y.Lc).pipe((0,Ct.s)(1)).subscribe(o=>{o?this.router.navigate([o]):this.breadcrumbService.getBreadCrumbs().pipe((0,Ct.s)(1)).subscribe(u=>{u.reverse();const g=u.find(O=>!O.url?.includes("correction-form"))?.url;g?this.router.navigate([g]):this.location.back()}),window.scrollTo(0,0)})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Vt.bZ),t.rXU(pt.Ix),t.rXU(wt.il),t.rXU(fc.h),t.rXU(B.aZ),t.rXU(Vt.Vh))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-publication-correction-cancel-model"]],decls:13,vars:12,consts:[[1,"modal-title"],[1,"model-content"],[1,"cancel-dialog-button"],["mat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary","tabindex","0","type","submit","data-ta","run-search",1,"margin-left-20--reversible",3,"click"]],template:function(u,g){1&u&&(t.j41(0,"p",0),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"p",1),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",2)(7,"button",3),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"button",4),t.bIt("click",function(){return g.discardSettings()}),t.EFF(11),t.nI1(12,"translate"),t.k0s()()),2&u&&(t.R7$(),t.SpI(" ",t.bMT(2,4,"areYouSure"),""),t.R7$(3),t.SpI(" ",t.bMT(5,6,"yourChanges"),""),t.R7$(4),t.JRh(t.bMT(9,8,"noReturnToForm")),t.R7$(3),t.SpI(" ",t.bMT(12,10,"yesCancel")," "))},dependencies:[Vt.tx,Mt.$z,ht.D9],styles:[".modal-title[_ngcontent-%COMP%]{font-weight:600;margin-top:-1.25rem;font-size:1.25rem}.model-content[_ngcontent-%COMP%]{margin-top:0}.cancel-dialog-button[_ngcontent-%COMP%]{margin-top:.625rem;margin-bottom:-1.25rem;display:flex;justify-content:flex-end}"]})}}return s})();const Hm=[[["",8,"previous-btn"]],[["",8,"review-publications"]],[["",8,"review-and-submit-btn"]]],ye=[".previous-btn",".review-publications",".review-and-submit-btn"],Br=s=>({count:s}),ao=s=>({authorName:s});function Jm(s,M){if(1&s&&(t.j41(0,"em",7),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG().ngIf;t.R7$(),t.Lme(" ",o.removed," ",t.bMT(2,2,1===o.removed?"document_removed_singular":"document_removed_plural"),"\n")}}function wc(s,M){if(1&s&&(t.j41(0,"span",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=t.XpG(3).ngIf;t.R7$(),t.SpI(" ",t.i5U(2,1,"associatedAuthorshipCorrected",t.eq3(4,Br,o.updated))," ")}}function Xr(s,M){if(1&s&&(t.j41(0,"div",7)(1,"span",8),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,wc,3,6,"span",9),t.nI1(5,"feature"),t.j41(6,"span"),t.EFF(7),t.nI1(8,"translate"),t.nI1(9,"translate"),t.k0s()()),2&s){const o=M.ngIf,u=t.XpG(2).ngIf;t.R7$(2),t.SpI(" ",t.i5U(3,4,1===u.removed?"publicationSingularRemoved":"publicationsPluralRemoved",t.eq3(15,Br,u.removed))," "),t.R7$(2),t.Y8G("ngIf",t.bMT(5,7,"WAT-9498-change-author-position-in-curation-flow")),t.R7$(3),t.Lme(" ",t.i5U(8,9,1===u.added?"publicationSingularAdded":"publicationsPluralAdded",t.eq3(17,Br,u.added))," ",t.i5U(9,12,"to_authors_profile",t.eq3(19,ao,o))," ")}}function fa(s,M){if(1&s&&(t.j41(0,"em"),t.DNE(1,Xr,10,21,"div",2),t.nI1(2,"async"),t.k0s()),2&s){const o=t.XpG(2);t.R7$(),t.Y8G("ngIf",t.bMT(2,1,o.displayCurationCount&&o.authorName$))}}function Oc(s,M){1&s&&(t.j41(0,"div",10),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"genericHeader")," "))}function qm(s,M){if(1&s){const o=t.RV6();t.j41(0,"section",1),t.DNE(1,Jm,3,4,"em",2),t.nI1(2,"feature"),t.DNE(3,fa,3,3,"em",3),t.nI1(4,"feature"),t.j41(5,"div",4),t.DNE(6,Oc,3,3,"div",5),t.j41(7,"button",6),t.bIt("click",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.openCancelModal())}),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.SdG(10),t.SdG(11,1),t.SdG(12,2),t.k0s()()}if(2&s){const o=M.ngIf,u=t.XpG();t.R7$(),t.Y8G("ngIf",!t.bMT(2,4,"WAT-9323-Add-publications-button-in-curation-page")&&u.displayCurationCount&&o.removed>0),t.R7$(2),t.Y8G("ngIf",t.bMT(4,6,"WAT-9323-Add-publications-button-in-curation-page")),t.R7$(3),t.Y8G("ngIf",u.isSubmissionError),t.R7$(2),t.SpI("",t.bMT(9,8,"cancelDialogButton")," ")}}let Qm=(()=>{class s extends Rt.${constructor(o,u,g,O){super(g),this.dialog=o,this.store=u,this.change=g,this.author=O}ngOnChanges(){this.authorName$=this.store.select(Y.T6,{authorIds:this.authorIds.join(",")}),this.store.select(Y.M5).pipe((0,W.p)(o=>!!o),(0,Et.T)(o=>ce.X.getAllTypeOfCurationCounts(o))).subscribe(o=>{this.curatedPublications$=(0,fe.of)(o),this.doChange()})}openCancelModal(){this.dialog.open(Um,{width:"420px",data:{authorIds:this.authorIds.join(",")}})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(Vt.bZ),t.rXU(wt.il),t.rXU(t.gRc),t.rXU(ve.m))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-curation-form-footer"]],inputs:{displayCurationCount:"displayCurationCount",authorIds:"authorIds",isSubmissionError:"isSubmissionError"},features:[t.Vt3,t.OA$],ngContentSelectors:ye,decls:2,vars:3,consts:[["color","primary","class","footer",4,"ngIf"],["color","primary",1,"footer"],["class","white text--normal padding-left-15--reversible",4,"ngIf"],[4,"ngIf"],[1,"curation-footer-buttons"],["class","submission-error",4,"ngIf"],["mat-button","",1,"curation-btn-font-weight",3,"click"],[1,"white","text--normal","padding-left-15--reversible"],[1,"commaMark"],["class","commaMark",4,"ngIf"],[1,"submission-error"]],template:function(u,g){1&u&&(t.NAR(Hm),t.DNE(0,qm,13,10,"section",0),t.nI1(1,"async")),2&u&&t.Y8G("ngIf",t.bMT(1,1,g.curatedPublications$))},dependencies:[B.bT,Mt.$z,B.Jj,ht.D9,Z.h],styles:["@media screen and (max-width: 30rem){[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start!important;justify-content:space-between}[_nghost-%COMP%]   .icon-text-button[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{background:#007a00;white-space:normal;color:#fff;display:flex;align-items:center;gap:.625rem;padding:1.125rem 0;position:fixed;bottom:0;z-index:1;width:100vw;left:0}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.75rem;margin:0}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.375rem}@media screen and (max-width: 30rem){[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{flex-direction:column;place-items:flex-start;padding-left:.9375rem;min-height:2rem}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.625rem}}.curation-footer-buttons[_ngcontent-%COMP%]{margin-right:6.875rem;display:flex;flex:1;justify-content:flex-end}.curation-btn-font-weight[_ngcontent-%COMP%]{font-weight:500;color:#fff}.submission-error[_ngcontent-%COMP%]{color:red;top:71%;position:absolute}"],changeDetection:0})}}return s})();const Ic=["stepper"],oi=s=>({"disabled-btn":s}),Tc=()=>({"top.px":0});function Ii(s,M){1&s&&(t.j41(0,"div",16),t.nrm(1,"mat-spinner",17),t.k0s()),2&s&&t.Y8G("ngStyle",t.lJ4(1,Tc))}function Zm(s,M){1&s&&(t.EFF(0),t.nI1(1,"translate")),2&s&&t.JRh(t.bMT(1,1,"dcf_yourInfo"))}function Km(s,M){if(1&s&&(t.j41(0,"mat-step",4),t.DNE(1,Zm,2,3,"ng-template",5),t.nrm(2,"app-correction-form-contact-information",18),t.j41(3,"app-curation-form-footer",12)(4,"button",19),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()),2&s){const o=t.XpG();t.Y8G("completed",o.isFormValid),t.R7$(2),t.Y8G("authorIds",o.authorIds),t.R7$(),t.Y8G("authorIds",o.authorIds)("isSubmissionError",o.isSubmissionError),t.R7$(),t.Y8G("disabled",!o.isFormValid)("ngClass",t.eq3(9,oi,!o.isFormValid)),t.R7$(),t.SpI("",t.bMT(6,7,"reviewPublications")," ")}}function kc(s,M){1&s&&(t.EFF(0),t.nI1(1,"translate")),2&s&&t.JRh(t.bMT(1,1,"reviewDocuments"))}function Rc(s,M){if(1&s&&t.nrm(0,"app-author-publication-review",18),2&s){const o=t.XpG();t.Y8G("authorIds",o.authorIds)}}function Ac(s,M){if(1&s&&t.nrm(0,"app-review-documents",18),2&s){const o=t.XpG();t.Y8G("authorIds",o.authorIds)}}function tg(s,M){1&s&&(t.j41(0,"button",13),t.nrm(1,"mat-icon",14),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"home_page_arrowLeft")," "))}function eg(s,M){1&s&&(t.EFF(0),t.nI1(1,"translate")),2&s&&t.JRh(t.bMT(1,1,"confirmAndSubmitChanges"))}let ng=(()=>{class s extends Rt.${constructor(o,u,g,O,$,J,st,gt,zt,bt){super(g),this.store=o,this.route=u,this.cd=g,this.authorService=O,this.feedback=$,this.alert=J,this.dialog=st,this.router=gt,this.breadcrumbService=zt,this.location=bt,this.isFormValid=!1,this.isSubmissionError=!1}ngOnInit(){this.isSubmittingCuration$=this.store.select(Y.Y0).pipe((0,V.Q)(this.destroyed$)),this.loadingPublicationsForCuration$=this.store.select(Y.QT).pipe((0,V.Q)(this.destroyed$)),this.isAuthorProfileLoading$=this.store.select(Y.p3).pipe((0,V.Q)(this.destroyed$)),this.researcherAdmin&&this.updateResearcherAdminInfo()}updateResearcherAdminInfo(){this.store.select(at.mm).pipe((0,Ie.F)(),(0,Ct.s)(1)).subscribe(o=>{this.store.dispatch(new be.SF({userInfo:{username:`${o.lastName}, ${o.firstName}`,emailAddress:o.email,relationship:H.N.CORRECTION_FORM_RELATIONSHIPS_OPTIONS_VALUE_MAP.option9,organization:""}}))})}ngOnChanges(){this.route.queryParams.subscribe(o=>{this.authorIds=o.authorIds.split(",")}),this.store.select(Y.WH).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.isFormValid=o.relationship.length>0}),this.correctionSelectedPublications$=this.store.select(Y.M5).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)),this.correctionSelectedPublicationsSubscription=this.correctionSelectedPublications$.subscribe(o=>{this.curatedPublications=Object.values(o)})}ngOnDestroy(){super.ngOnDestroy(),this.correctionSelectedPublicationsSubscription&&this.correctionSelectedPublicationsSubscription.unsubscribe()}switchStepper(o){this.stepperObject.selectedIndex=o}fetchRemovedRecords(o){return o.removed.length>0&&(0,oe.z)(o.removed.map(g=>this.store.select(at.fW,{search:g.search,sort:g.sort,docNum:g.docId}).pipe((0,Et.T)(O=>({...g,authorPosition:{seq_no:ce.X.getAuthorPosition(O,this.authorIds)}}))))).subscribe(g=>{o.removed=g}),o}submitCorrection(){this.store.dispatch(new Je.QW({isSubmittingCuration:!0})),this.isSubmissionError=!1;const o=this.store.select(Y.WH).pipe((0,Ct.s)(1)),u=this.store.select(at.mm).pipe((0,Ct.s)(1)),g=this.correctionSelectedPublications$.pipe((0,W.p)(O=>!!O),(0,Ct.s)(1),(0,Et.T)(O=>{const $=Object.keys(O),J=Object.values(O).reduce((st,gt,zt)=>(st[gt.status]=st[gt.status]||[],st[gt.status].push({...gt,ut:$[zt]}),st),{removed:[],added:[],updated:[]});return this.fetchRemovedRecords(J)}));(0,oe.z)([g,u,o]).subscribe(([O,$,J])=>{const st=ce.X.hasClaimedAuthor(this.store,this.authorIds)?Ae.MW.CLAIMED_CURATION:Ae.MW.CURATION,gt={authorIds:this.authorIds,userName:`${$.firstName} ${$.lastName}`,userEmail:$.email,userAdditionalInfo:J.additionalInfo||"",userAuthorRelation:J.relationship,userOrg:J.organization,feedbackSource:"RRC",feedbackStatus:"SUBMITTED",feedbackType:st},zt=[...O.removed,...O.updated].map(Dt=>({pubId:Dt.ut,authorPosition:Dt?.authorPosition?.initialValue?Dt?.authorPosition?.initialValue?.seq_no:Dt?.authorPosition?.seq_no})),bt=[...O.added,...O.updated].map(Dt=>({pubId:Dt.ut,authorPosition:Dt?.authorPosition?.currentValue?Dt?.authorPosition?.currentValue?.seq_no:Dt?.authorPosition?.seq_no}));return bt.length>0&&(gt.add=bt),zt.length>
10&&(gt.remove=zt),this.feedback.submitCuration(gt).pipe((0,Ct.s)(1)).subscribe(Dt=>{this.sendEmail(Dt.userId,$,O),this.authorService.persistCuratedRecords(this.authorIds.join()),this.navigation(),this.store.dispatch(new Je.QW({isSubmittingCuration:!1}))},Dt=>{this.store.dispatch(new Je.QW({isSubmittingCuration:!1})),this.isSubmissionError=!0})})}sendEmail(o,u,g){const O=this.store.select(Y.Gh,{authorIds:this.authorIds.join()}).pipe((0,Ct.s)(1)),$=this.store.select(Y.Y_).pipe((0,W.p)(bt=>!!bt),(0,Ct.s)(1),(0,Et.T)(bt=>bt.count)),J=0===g.added.length?(0,fe.of)([]):(0,oe.z)(g.added.map(bt=>this.store.select(at.fW,{search:bt.search,sort:bt.sort,docNum:bt.docId}).pipe((0,Et.T)(Dt=>ce.X.searchRecordToPublicationMapper(Dt))))),st=0===g.removed.length?(0,fe.of)([]):(0,oe.z)(g.removed.map(bt=>this.store.select(at.fW,{search:bt.search,sort:bt.sort,docNum:bt.docId}).pipe((0,Et.T)(Dt=>ce.X.searchRecordToPublicationMapper(Dt))))),gt=0===g.updated.length?(0,fe.of)([]):(0,oe.z)(g.updated.map(bt=>this.store.select(at.fW,{search:bt.search,sort:bt.sort,docNum:bt.docId}).pipe((0,Et.T)(Dt=>({...ce.X.searchRecordToPublicationMapper(Dt),oldAuthorship:bt?.authorPosition?.initialValue?.display_name,updatedAuthorship:bt?.authorPosition?.currentValue?.display_name}))))),zt=this.store.select(Y.Y_).pipe((0,W.p)(bt=>!!bt),(0,Ct.s)(1),(0,Xe.n)(bt=>this.store.select(at.ll,{search:bt.search,sort:bt.sort,page:1,size:10}).pipe((0,Ct.s)(1),(0,Et.T)(Dt=>Dt?.map(De=>ce.X.searchRecordToPublicationMapper(De))||[]))));(0,oe.z)([O,$,zt,J,st,gt]).subscribe(([bt,Dt,De,cn,ae,Me])=>{const yn={email:u?.email,authors:[bt],acceptedCount:Dt-g?.removed.length,removedCount:g?.removed.length,addedCount:g?.added.length,authorShipUpdatedCount:g?.updated.length,acceptedPublications:De?.slice(0,3),removedPublications:ae?.slice(0,3),addedPublications:cn?.slice(0,3),authorShipUpdatedPublications:Me?.slice(0,3)};this.alert.sendCurationEmail(yn,o)})}navigation(){const o=this.store.select(Y.Lc).pipe((0,Ct.s)(1)),u=this.breadcrumbService.getBreadCrumbs().pipe((0,Ct.s)(1));return(0,oe.z)([o,u]).subscribe(([g,O])=>{if(this.researcherAdmin)return this.router.navigate([{outlets:{overlay:null}}],{replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"});if(g)this.router.navigate([g]);else if(O?.length){O.reverse();const J=O.find(st=>!st.url?.includes("correction-form")).url?.replace(/\(overlay:[^\)]+\)/,"");this.router.navigate([J])}else this.location.back();window.scrollTo(0,0),setTimeout(()=>{this.dialog.open(xm.V,{height:"410px",width:"715px",autoFocus:!1,ariaLabel:"Correction Submitted Modal",panelClass:"correction-submitted-modal"})},50)})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(pt.nX),t.rXU(t.gRc),t.rXU(ve.m),t.rXU(Mm.n),t.rXU(ym.Y),t.rXU(Vt.bZ),t.rXU(pt.Ix),t.rXU(fc.h),t.rXU(B.aZ))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-publication-correction-page-placeholder"]],viewQuery:function(u,g){if(1&u&&t.GBs(Ic,5),2&u){let O;t.mGM(O=t.lsd())&&(g.stepperObject=O.first)}},inputs:{researcherAdmin:"researcherAdmin",curatedPublications:"curatedPublications"},features:[t.Vt3,t.OA$],decls:34,vars:47,consts:[["stepper",""],["class","spinner-lightbox",3,"ngStyle",4,"ngIf"],[1,"correction-placeholder",3,"linear"],[3,"completed",4,"ngIf"],[3,"completed"],["matStepLabel",""],[3,"authorIds",4,"ngIf"],[3,"displayCurationCount","authorIds","isSubmissionError"],["class","previous-btn margin-left-20--reversible curation-btn-font-weight","mat-stroked-button","","matStepperPrevious","",4,"ngIf"],["mat-stroked-button","","matStepperNext","",1,"review-and-submit-btn","margin-left-20--reversible","curation-btn-font-weight",3,"disabled","ngClass"],["iconPositionEnd","","role","img","fontIcon","keyboard_arrow_right",1,"font-size-24"],[3,"backToCorrection","authorIds","enableEditButton"],[3,"authorIds","isSubmissionError"],["mat-stroked-button","","matStepperPrevious","",1,"previous-btn","margin-left-20--reversible","curation-btn-font-weight"],["role","img","fontIcon","keyboard_arrow_left",1,"font-size-24"],["mat-stroked-button","","matStepperNext","",1,"review-and-submit-btn","margin-left-20--reversible","curation-btn-font-weight",3,"click","disabled","ngClass"],[1,"spinner-lightbox",3,"ngStyle"],[1,"wat-spinner"],[3,"authorIds"],["mat-stroked-button","","matStepperNext","",1,"review-publications","margin-left-20--reversible","curation-btn-font-weight",3,"disabled","ngClass"]],template:function(u,g){if(1&u){const O=t.RV6();t.DNE(0,Ii,2,2,"div",1),t.nI1(1,"async"),t.nI1(2,"async"),t.j41(3,"mat-stepper",2,0),t.DNE(5,Km,7,11,"mat-step",3),t.j41(6,"mat-step",4),t.DNE(7,kc,2,3,"ng-template",5)(8,Rc,1,1,"app-author-publication-review",6),t.nI1(9,"feature"),t.DNE(10,Ac,1,1,"app-review-documents",6),t.nI1(11,"feature"),t.j41(12,"app-curation-form-footer",7),t.DNE(13,tg,4,3,"button",8),t.j41(14,"button",9),t.nI1(15,"async"),t.nI1(16,"async"),t.EFF(17),t.nI1(18,"translate"),t.nrm(19,"mat-icon",10),t.k0s()()(),t.j41(20,"mat-step"),t.DNE(21,eg,2,3,"ng-template",5),t.j41(22,"app-correction-form-review",11),t.bIt("backToCorrection",function(J){return t.eBV(O),t.Njj(g.switchStepper(J))}),t.k0s(),t.j41(23,"app-curation-form-footer",12)(24,"button",13),t.nrm(25,"mat-icon",14),t.EFF(26),t.nI1(27,"translate"),t.k0s(),t.j41(28,"button",15),t.nI1(29,"feature"),t.nI1(30,"feature"),t.bIt("click",function(){return t.eBV(O),t.Njj(g.submitCorrection())}),t.EFF(31),t.nI1(32,"translate"),t.nrm(33,"mat-icon",10),t.k0s()()()()}2&u&&(t.Y8G("ngIf",t.bMT(1,21,g.isSubmittingCuration$)||t.bMT(2,23,g.isAuthorProfileLoading$)),t.R7$(3),t.Y8G("linear",!0),t.R7$(2),t.Y8G("ngIf",!g.researcherAdmin),t.R7$(),t.Y8G("completed",g.isFormValid),t.R7$(2),t.Y8G("ngIf",t.bMT(9,25,"WAT-11216-curation-redesign-fetch-records-from-ES")),t.R7$(2),t.Y8G("ngIf",!t.bMT(11,27,"WAT-11216-curation-redesign-fetch-records-from-ES")),t.R7$(2),t.Y8G("displayCurationCount",!0)("authorIds",g.authorIds)("isSubmissionError",g.isSubmissionError),t.R7$(),t.Y8G("ngIf",!g.researcherAdmin),t.R7$(),t.Y8G("disabled",1===(null==g.authorIds?null:g.authorIds.length)&&(null==g.curatedPublications?null:g.curatedPublications.length)<1||t.bMT(15,29,g.loadingPublicationsForCuration$))("ngClass",t.eq3(43,oi,1===(null==g.authorIds?null:g.authorIds.length)&&(null==g.curatedPublications?null:g.curatedPublications.length)<1||t.bMT(16,31,g.loadingPublicationsForCuration$))),t.R7$(3),t.SpI("",t.bMT(18,33,"reviewAndSubmit")," "),t.R7$(5),t.Y8G("authorIds",g.authorIds)("enableEditButton",!g.researcherAdmin),t.R7$(),t.Y8G("authorIds",g.authorIds)("isSubmissionError",g.isSubmissionError),t.R7$(3),t.SpI(" ",t.bMT(27,35,"home_page_arrowLeft")," "),t.R7$(2),t.Y8G("disabled",1===(null==g.authorIds?null:g.authorIds.length)&&(null==g.curatedPublications?null:g.curatedPublications.length)<1||t.bMT(29,37,"WAT-7437-stopCurationForDbMigration"))("ngClass",t.eq3(45,oi,1===(null==g.authorIds?null:g.authorIds.length)&&(null==g.curatedPublications?null:g.curatedPublications.length)<1||t.bMT(30,39,"WAT-7437-stopCurationForDbMigration"))),t.R7$(3),t.SpI("",t.bMT(32,41,"submitCorrections")," "))},dependencies:[Ft.An,B.YU,B.bT,B.B3,Mt.$z,Nt.LG,Pi.V5,Pi.Ti,Pi.M6,Pi.F7,Pi.FR,Gn,yc.Q,Bm,Wm,Qm,B.Jj,ht.D9,Z.h],styles:[".correction-placeholder[_ngcontent-%COMP%]{display:inline}  .mat-horizontal-stepper-header-container{width:42.5rem}.authorship-claim-footer[_ngcontent-%COMP%]{background-color:#007a00;min-height:4.0625rem;padding:.9375rem 1.25rem;font-size:.875rem;display:flex;align-items:center;justify-content:flex-start;position:fixed;bottom:0;z-index:1;width:100vw;left:0}.authorship-claim-submit[_ngcontent-%COMP%]{padding-left:1.5625rem}.authorship-claim-submit[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:.125rem solid #FFF;color:#fff}.curation-btn-font-weight[_ngcontent-%COMP%]{font-weight:500;color:#fff}.disabled-btn[_ngcontent-%COMP%]{background-color:transparent!important;border-color:#757575!important}mat-icon[_ngcontent-%COMP%]{margin-bottom:.3125rem}  .mat-step-header.cdk-keyboard-focused{--mat-focus-indicator-border-color: transparent !important}"]})}}return s})();const _a=["sidenav"];function Sc(s,M){1&s&&t.eu8(0)}function Vr(s,M){if(1&s){const o=t.RV6();t.j41(0,"div")(1,"mat-sidenav-container",4),t.bIt("backdropClick",function(){t.eBV(o);const g=t.sdS(3);return t.Njj(g.close())}),t.j41(2,"mat-sidenav",5,1),t.bIt("keydown.escape",function(){t.eBV(o);const g=t.sdS(3);return t.Njj(g.close())})("closedStart",function(){t.eBV(o);
1const g=t.XpG();return t.Njj(g.closedStartOverlay())}),t.j41(4,"div",6),t.DNE(5,Sc,1,0,"ng-container",7),t.k0s()()()()}if(2&s){t.XpG();const o=t.sdS(2);t.R7$(),t.Y8G("hasBackdrop",!0),t.R7$(),t.Y8G("fixedTopGap",0)("fixedBottomGap",0)("fixedInViewport",!0)("autoFocus",!0),t.R7$(3),t.Y8G("ngTemplateOutlet",o)}}function Dc(s,M){if(1&s&&(t.nrm(0,"app-title-header-layout",8),t.qex(1),t.nrm(2,"app-publication-correction-page-placeholder",9,2),t.nI1(4,"async"),t.bVm()),2&s){const o=t.XpG();t.Y8G("titleKey",1===(null==o.authorIds?null:o.authorIds.length)?"titlePublicationCorrectionForm":"titlePublicationCorrectionMergeForm")("additionalData",o.authorName),t.R7$(2),t.Y8G("researcherAdmin",o.researcherAdmin)("curatedPublications",t.bMT(4,4,o.curatedPublications$))}}let ro=(()=>{class s extends Rt.${constructor(o,u,g,O,$){super(O),this.store=o,this.route=u,this.router=g,this.change=O,this.author=$,this.isOverlay=!1}ngOnInit(){const o=history.state||{};this.isOverlay=!!o.overlay}ngAfterViewInit(){this.isOverlay&&this.sidenav?.open()}closedStartOverlay(){this.router.navigate([{outlets:{overlay:null}}],{replaceUrl:!0,queryParams:{},state:{...history.state,navigationId:void 0}})}ngOnChanges(){this.route.queryParams.subscribe(o=>{this.store.dispatch(new be.ic),this.store.dispatch(new be.q6({selectedValues:{showMeWosccPublications:!1,currentPage:1,authorPositionFilterValue:H.N.PUBLICATION_FILTER_ALL,publicationsSortValue:H.N.PUBLICATION_SORT_ORDERS.YEAR_ACS,displayIndexed:!1}})),this.store.select(at.mm).pipe((0,Ie.F)(),(0,V.Q)(this.destroyed$)).subscribe(u=>{u?.JWT&&this.store.dispatch(new Vn.r2({useCache:!0}))}),this.authorIds=o.authorIds.split(","),1===this.authorIds?.length&&(0,oe.z)([this.store.select(Y.Gh,{authorIds:this.authorIds.join(",")}),this.store.select(Y.aJ)]).pipe((0,W.p)(u=>2===u?.length),(0,V.Q)(this.destroyed$)).subscribe(([u,g])=>{u?.rid&&u?.rid===g?.researcherId&&this.router.navigate(["op/publications/summary"])}),this.store.select(Y.T6,{authorIds:this.authorIds.join(",")}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.authorName=u})}),this.curatedPublications$=(0,oe.z)([this.store.select(Y.s8,{authorIds:this.authorIds.join(","),type:Ae.I8.added}),this.store.select(Y.s8,{authorIds:this.authorIds.join(","),type:Ae.I8.removed})]).pipe((0,Et.T)(o=>[...o[0],...o[1]]))}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(pt.nX),t.rXU(pt.Ix),t.rXU(t.gRc),t.rXU(ve.m))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-curation"]],viewQuery:function(u,g){if(1&u&&t.GBs(_a,5),2&u){let O;t.mGM(O=t.lsd())&&(g.sidenav=O.first)}},inputs:{researcherAdmin:"researcherAdmin"},features:[t.Vt3,t.OA$],decls:3,vars:2,consts:[["content",""],["sidenav",""],["publicationCorrection",""],[4,"ngIf","ngIfElse"],[1,"nextgen-sidenav-container",3,"backdropClick","hasBackdrop"],["fixedInViewport","true","mode","over","position","end",2,"width","80%",3,"keydown.escape","closedStart","fixedTopGap","fixedBottomGap","fixedInViewport","autoFocus"],[1,"curation-overlay-sidenav-content"],[4,"ngTemplateOutlet"],[3,"titleKey","additionalData"],[3,"researcherAdmin","curatedPublications"]],template:function(u,g){if(1&u&&t.DNE(0,Vr,6,6,"div",3)(1,Dc,5,6,"ng-template",null,0,t.C5r),2&u){const O=t.sdS(2);t.Y8G("ngIf",g.isOverlay)("ngIfElse",O)}},dependencies:[Wn.LG,Wn.US,B.bT,B.T3,da.F,ng,B.Jj],encapsulation:2})}}return s})();const so=["correctionHistoryDialog"],Ti=()=>[1,2,3],lo=()=>["allColumns"],Ec=()=>["ticketDetails"],ba=(s,M)=>[s,"full-record",M],ig=s=>({overlay:null,primary:s}),Fc=s=>({outlets:s}),Ca=s=>["/",s];function og(s,M){if(1&s&&(t.qex(0),t.j41(1,"div",18)(2,"div",19),t.nrm(3,"div",20),t.j41(4,"div",21),t.EFF(5),t.k0s(),t.nrm(6,"div",20),t.k0s(),t.j41(7,"div",22),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.nrm(10,"div",23),t.nI1(11,"translate"),t.k0s(),t.bVm()),2&s){const o=M.$implicit;t.R7$(3),t.AVh("active",1!==o),t.R7$(2),t.JRh(o),t.R7$(),t.AVh("active",3!==o),t.R7$(),t.AVh("active",1!==o),t.R7$(),t.JRh(t.bMT(9,10,"correctionsHistory_progress"+o+"_status")),t.R7$(2),t.Y8G("id","desc_"+o)("innerHTML",t.bMT(11,12,"correctionsHistory_progress"+o+"_desc"),t.npT)}}function xa(s,M){if(1&s){const o=t.RV6();
1t.j41(0,"app-page-controls",24),t.bIt("currentPageChange",function(g){t.eBV(o);const O=t.XpG(3);return t.Njj(O.changePage(g))}),t.k0s()}if(2&s){const o=t.XpG(3);t.Y8G("currentPage",o.page)("minHeight","0")("padding","0 1.25rem")("maxPage",o.getMaxPage(null==o.feedbackData?null:o.feedbackData.feedbackCount))}}function ag(s,M){1&s&&t.nrm(0,"mat-spinner",25),2&s&&t.Y8G("diameter",50)}function ya(s,M){1&s&&(t.j41(0,"th",33)(1,"div",34)(2,"div",35),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",36),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",37),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"div",38),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()),2&s&&(t.R7$(3),t.JRh(t.bMT(4,4,"userName")),t.R7$(3),t.JRh(t.bMT(7,6,"creationDate")),t.R7$(3),t.JRh(t.bMT(10,8,"feedbackStatus")),t.R7$(3),t.JRh(t.bMT(13,10,"correctionDetails")))}function rg(s,M){1&s&&(t.j41(0,"div",37)(1,"div",45),t.nrm(2,"span")(3,"span")(4,"span"),t.k0s()())}function sg(s,M){if(1&s&&(t.j41(0,"div",37),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit,u=t.XpG(4);t.R7$(),t.JRh(u.feedbackStatus[o.feedbackStatus])}}function lg(s,M){if(1&s){const o=t.RV6();t.j41(0,"app-page-controls",24),t.bIt("currentPageChange",function(g){t.eBV(o);const O=t.XpG(2).$implicit,$=t.XpG(4);return t.Njj($.changePublicationPage(g,O))}),t.k0s()}if(2&s){const o=t.XpG(2).$implicit,u=t.XpG(4);t.Y8G("currentPage",u.publicationPage)("minHeight","0")("padding","0 1.25rem")("maxPage",u.getMaxPage(o.publicationIds.length))}}function cg(s,M){1&s&&(t.j41(0,"th",33)(1,"div",40)(2,"div"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&s&&(t.R7$(3),t.JRh(t.bMT(4,1,"ticketDetails")))}function hg(s,M){if(1&s&&(t.j41(0,"a",52),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit;t.Y8G("routerLink",t.eq3(9,Ca,t.eq3(7,Fc,t.eq3(5,ig,t.l_i(2,ba,o.collName,o.ut))))),t.R7$(),t.SpI(" ",o.title," ")}}function se(s,M){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const o=t.XpG().$implicit;t.R7$(),t.SpI(" ",o.title," ")}}function ki(s,M){if(1&s&&(t.j41(0,"td",39)(1,"div",34)(2,"div",49),t.DNE(3,hg,2,11,"a",50),t.nI1(4,"entitlements"),t.DNE(5,se,2,1,"span",51),t.nI1(6,"entitlements"),t.k0s()()()),2&s){const o=M.$implicit;t.R7$(3),t.Y8G("ngIf",t.bMT(4,2,o.collName)),t.R7$(2),t.Y8G("ngIf",!t.bMT(6,4,o.collName))}}function $c(s,M){1&s&&t.nrm(0,"tr",53)}function dg(s,M){1&s&&t.nrm(0,"tr",54)}
1function co(s,M){if(1&s&&(t.j41(0,"div",46),t.DNE(1,lg,1,4,"app-page-controls",11),t.j41(2,"table",47)(3,"caption",27),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.qex(6,48),t.DNE(7,cg,5,3,"th",29)(8,ki,7,6,"td",30),t.bVm(),t.DNE(9,$c,1,0,"tr",31)(10,dg,1,0,"tr",32),t.k0s()()),2&s){const o=t.XpG().$implicit,u=t.XpG(4);t.R7$(),t.Y8G("ngIf",o.publicationIds.length>u.pageSize),t.R7$(),t.Y8G("dataSource",o.publicationDetail),t.R7$(2),t.JRh(t.bMT(5,5,"correctionAffectedPublicationsTableCaption")),t.R7$(5),t.Y8G("matHeaderRowDef",t.lJ4(7,Ec)),t.R7$(),t.Y8G("matRowDefColumns",t.lJ4(8,Ec))}}function pg(s,M){if(1&s){const o=t.RV6();t.j41(0,"td",39)(1,"div",40)(2,"div",35),t.EFF(3),t.k0s(),t.j41(4,"div",36),t.EFF(5),t.nI1(6,"date"),t.k0s(),t.DNE(7,rg,5,0,"div",41)(8,sg,2,1,"div",41),t.j41(9,"div",38)(10,"button",42),t.bIt("click",function(){const g=t.eBV(o).$implicit,O=t.XpG(4);return t.Njj(O.fetchPublicationName(g,!g.isExpanded))}),t.EFF(11),t.nI1(12,"translate"),t.nrm(13,"mat-icon",43),t.k0s()()(),t.DNE(14,co,11,9,"div",44),t.k0s()}if(2&s){const o=M.$implicit;t.R7$(3),t.JRh(o.userName),t.R7$(2),t.JRh(t.bMT(6,7,o.creationDate)),t.R7$(2),t.Y8G("ngIf","ACCEPTED"===o.feedbackStatus&&!o.publicationDetail),t.R7$(),t.Y8G("ngIf","ACCEPTED"!==o.feedbackStatus||o.publicationDetail),t.R7$(3),t.SpI(" ",t.bMT(12,9,"viewCorrection")," "),t.R7$(2),t.Y8G("svgIcon",o.isExpanded?"angle-up":"angle-down"),t.R7$(),t.Y8G("ngIf",o.isExpanded)}}function ho(s,M){1&s&&t.nrm(0,"tr",53)}function Lc(s,M){1&s&&t.nrm(0,"tr",54)}function Gc(s,M){if(1&s&&(t.j41(0,"table",26)(1,"caption",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.qex(4,28),t.DNE(5,ya,14,12,"th",29)(6,pg,15,11,"td",30),t.bVm(),t.DNE(7,ho,1,0,"tr",31)(8,Lc,1,0,"tr",32),t.k0s()),2&s){const o=t.XpG(3);t.Y8G("dataSource",null==o.feedbackData?null:o.feedbackData.feedbackStatus),t.R7$(2),t.JRh(t.bMT(3,4,"authorFeedbackCurationTableCaption")),t.R7$(5),t.Y8G("matHeaderRowDef",t.lJ4(6,lo)),t.R7$(),t.Y8G("matRowDefColumns",t.lJ4(7,lo))}}function ai(s,M){if(1&s){const o=t.RV6();t.qex(0),t.j41(1,"div",3)(2,"div",4)(3,"div",5),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"button",6),t.nI1(7,"translate"),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.afterClose())}),t.nrm(8,"mat-icon",7),t.k0s()(),t.j41(9,"div",8)(10,"div",9),t.DNE(11,og,12,14,"ng-container",10),t.k0s()(),t.DNE(12,xa,1,4,"app-page-controls",11),t.j41(13,"div",12),t.DNE(14,ag,1,1,"mat-spinner",13)(15,Gc,9,8,"table",14),t.k0s(),t.j41(16,"div",15)(17,"button",16),t.bIt("click",function(){t.eBV(o);const g=t.XpG(2);return t.Njj(g.closeAllExpandedRows())}),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"button",17),t.EFF(21),t.nI1(22,"translate"),t.k0s()(),t.bVm()}if(2&s){const o=t.XpG(2);t.R7$(4),t.JRh(t.bMT(5,11,"correctionsHistory")),t.R7$(2),t.FS9("aria-label",t.bMT(7,13,"close")),t.R7$(5),t.Y8G("ngForOf",t.lJ4(19,Ti)),t.R7$(),t.Y8G("ngIf",(null==o.feedbackData?null:o.feedbackData.feedbackCount)>o.pageSize),t.R7$(),t.AVh("is-loading-page",o.isLoadingpage),t.R7$(),t.Y8G("ngIf",o.isLoadingpage),t.R7$(),t.Y8G("ngIf",!o.isLoadingpage),t.R7$(3),t.SpI(" ",t.bMT(19,15,"cancel")," "),t.R7$(2),t.Y8G("mat-dialog-close","correction"),t.R7$(),t.SpI(" ",t.bMT(22,17,"SubmitAnotherCorrection")," ")}}function ug(s,M){1&s&&(t.nrm(0,"mat-spinner",25),t.j41(1,"p",55),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s&&(t.Y8G("diameter",50),t.R7$(2),t.JRh(t.bMT(3,2,"CheckingCorrectionHistory")))}function jc(s,M){if(1&s&&t.DNE(0,ai,23,20,"ng-container",2)(1,ug,4,4,"ng-template",null,1,t.C5r),2&s){const o=t.sdS(2),u=t.XpG();t.Y8G("ngIf",!u.isLoadingFeedbacks)("ngIfElse",o)}}let Nc=(()=>{class s extends Rt.${constructor(o,u,g,O,$){super($),this.store=o,this.dialog=u,this.router=g,this.route=O,this.pageSize=5,this.page=1,this.publicationPage=1,this.authorId="",this.feedbackStatus={SUBMITTED:"IN PROGRESS",ACCEPTED:"ACCEPTED",REJECTED:"REJECTED",REVIEWED:"REVIEWED"},this.isLoadingFeedbacks=!0,this.isLoadingpage=!1}ngOnInit(){this.route.params.subscribe(o=>{this.authorId=o.authorId}),this.store.dispatch(new Je.Fc({authorId:this.authorId,page_size:this.pageSize,page:0})),this.openCorrectionHistoryDialog(),this.loadPage()}openCorrectionHistoryDialog(){this.dialog.openDialogs?.length||(this.dialogRef=this.dialog.open(this.correctionHistoryDialog,{panelClass:"correction-history-dialog",width:"800px",ariaLabel:"correctionHistoryDialog"}),this.dialogRef.afterClosed().subscribe(o=>{"correction"===o?this.router.navigateByUrl(`/author/correction-form?authorIds=${this.authorId}`):this.afterClose()}))}afterClose(){ke.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:null}}],{replaceUrl:!0,state:{...history.state,navigationId:void 0}})}getMaxPage(o){return o?Math.ceil(o/this.pageSize):0}changePublicationPage(o,u){this.publicationPage=o,this.fetchPublicationName(u,!0)}
1closeAllExpandedRows(){this.feedbackData.feedbackStatus.forEach(o=>{o.isExpanded=!1})}fetchPublicationName(o,u){this.publicationNameSub$&&this.publicationNameSub$.unsubscribe();let g=!1;const $={database:"ALLDB",mode:tt.k0.record_ids,uts:(o.publicationIds||[]).slice((this.publicationPage-1)*this.pageSize,this.publicationPage*this.pageSize)},J={count:this.pageSize,sort:"relevance",history:!1,jcr:!1,links:null,analyzes:null,view:"publonmeta"},st=[];this.authorSearchKey=`data_correction_${o.feedbackId}_${this.publicationPage}`,this.store.dispatch(new at.IV.x7({key:this.authorSearchKey,search:$,retrieve:J})),this.publicationNameSub$=this.store.select(at.rc({key:this.authorSearchKey})).pipe((0,V.Q)(this.destroyed$),(0,W.p)(gt=>!!gt),(0,Xe.n)(gt=>this.store.select(at.ll,{search:gt,sort:"relevance",page:1,size:100}).pipe((0,V.Q)(this.destroyed$),(0,W.p)(zt=>!!zt?.length),(0,Ct.s)(1),(0,Et.T)(zt=>(zt.forEach(bt=>{const Dt={};Dt.ut=bt.ut;for(const De of Object.keys(bt?.titles?.item)){Dt.title=bt?.titles?.item?.[De]?.[0]?.title;break}this.store.select(at.l1,{prop:"PUB-7079-enable-correction-feedback-status"}).subscribe(De=>{if(De&&"ACCEPTED"===o.feedbackStatus){const cn=bt?.names?.author,ae=Object.keys(cn).some(Me=>cn[Me].some(yn=>yn.daisng_id===this.authorId));g||(g=ae)}}).unsubscribe(),Dt.collName="WOS"===bt.coll?"woscc":bt.coll,st.push(Dt)}),st))))).subscribe(gt=>{this.store.select(at.l1,{prop:"PUB-7079-enable-correction-feedback-status"}).subscribe(zt=>{zt&&"ACCEPTED"===o.feedbackStatus&&!g&&(o.feedbackStatus="REVIEWED")}).unsubscribe(),o.isExpanded=u,o.isExpanded&&(o.publicationDetail=st)}),this.change.detectChanges()}changePage(o){this.page=o,this.isLoadingpage=!0,this.store.dispatch(new Je.Fc({authorId:this.authorId,page_size:this.pageSize,page:(o-1)*this.pageSize}))}loadPage(o=this.page){this.feedbackSub$&&this.feedbackSub$.unsubscribe(),this.feedbackSub$=this.store.select(Y.Fj,{authorId:this.authorId,page_size:this.pageSize,page:(o-1)*this.pageSize}).pipe((0,W.p)(u=>!!u),(0,V.Q)(this.destroyed$)).subscribe(u=>{this.feedbackData={...u,feedbackStatus:u.feedbackStatus.map(g=>({...g,publicationDetail:null,isExpanded:!1}))},this.feedbackData?.feedbackStatus.forEach(g=>{"ACCEPTED"===g.feedbackStatus&&this.fetchPublicationName(g,!1)}),this.feedbackData.feedbackCount>0?(this.isLoadingFeedbacks=!1,this.isLoadingpage=!1,this.change.detectChanges()):this.dialogRef.close("correction")})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(wt.il),t.rXU(Vt.bZ),t.rXU(pt.Ix),t.rXU(pt.nX),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-feedback-curation-data"]],viewQuery:function(u,g){if(1&u&&t.GBs(so,7),2&u){let O;t.mGM(O=t.lsd())&&(g.correctionHistoryDialog=O.first)}},features:[t.Vt3],decls:2,vars:0,consts:[["correctionHistoryDialog",""],["showLoader",""],[4,"ngIf","ngIfElse"],[1,"flex-align","flex-justify-space-between"],[1,"data-correction-heading"],[1,"margin-bottom-10"],["mat-icon-button","","disableRipple","","mat-dialog-close","",1,"correction-history-close-btn",3,"click","aria-label"],["svgIcon","close"],[1,"progress-tracker"],[1,"steps"],[4,"ngFor","ngForOf"],[3,"currentPage","minHeight","padding","maxPage","currentPageChange",4,"ngIf"],[1,"table-container"],["stroke","secondary","class","wat-spinner margin-top-20",3,"diameter",4,"ngIf"],["mat-table","",3,"dataSource",4,"ngIf"],[1,"data-correction-dialog-buttons-container","margin-top-20"],["mat-button","","mat-dialog-close","","color","primary",1,"close-button",3,"click"],["mat-flat-button","","color","primary",3,"mat-dialog-close"],[1,"step"],[1,"line-container"],[1,"line"],[1,"circle"],[1,"label"],[1,"desc",3,"id","innerHTML"],[3,"currentPageChange","currentPage","minHeight","padding","maxPage"],["stroke","secondary",1,"wat-spinner","margin-top-20",3,"diameter"],["mat-table","",3,"dataSource"],[1,"cdk-visually-hidden"],["matColumnDef","allColumns"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"header-row","row-flex"],[1,"user-name"],[1,"creation-date"],[1,"feedback-status"],[1,"action"],["mat-cell",""],[1,"row-flex","column-height"],["class","feedback-status",4,"ngIf"],["color","primary","mat-button","",3,"click"],["iconPositionEnd","","role","img",3,"svgIcon"],["class","publication-table",4,"ngIf"],[1,"loading-dots"],[1,"publication-table"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","ticketDetails"],[1,"margin-top-5","margin-bottom-5"],["target","_blank","rel","noopener noreferrer",3,"routerLink",4,"ngIf"],[4,"ngIf"],["target","_blank","rel","noopener noreferrer",3,"routerLink"],["mat-header-row",""],["mat-row",""],[1,"align-center","font-size-20"]],template:function(u,g){1&u&&t.DNE(0,jc,3,2,"ng-template",null,0,t.C5r)},dependencies:[Vt.tx,pt.Wk,To.N,jt.Zl,jt.tL,jt.ji,jt.cC,jt.YV,jt.iL,jt.KS,jt.$R,jt.YZ,jt.NB,Ft.An,B.Sq,B.bT,Mt.$z,Mt.iY,Nt.LG,yt.N,B.vh,ht.D9],styles:[".submit-correction[_ngcontent-%COMP%]{font-size:.875rem!important;margin:-.65rem 0 0}.submit-correction-icon[_ngcontent-%COMP%]{vertical-align:top}.wat-toggle-button-padding-0[_ngcontent-%COMP%]{padding:0!important;width:5.4375rem;height:4.375rem;border-radius:0%}.close-btn[_ngcontent-%COMP%]{margin-left:auto}.column-height[_ngcontent-%COMP%]{height:3.125rem}.dialog-buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:1.5625rem;margin-right:-.9375rem}.data-correction-dialog-buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:.625rem;margin-top:auto}.close-button[_ngcontent-%COMP%]{margin-right:.9375rem}.row-flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-content:center}.publication-table[_ngcontent-%COMP%]{padding-bottom:.625rem}.user-name[_ngcontent-%COMP%]{width:27%}.creation-date[_ngcontent-%COMP%]{width:28%}.feedback-status[_ngcontent-%COMP%]{width:25%}.action[_ngcontent-%COMP%]{width:20%}.table-container[_ngcontent-%COMP%]{max-height:20.625rem;padding-bottom:.625rem;overflow:auto}.table-container.is-loading-page[_ngcontent-%COMP%]{height:19.375rem}@media only screen and (max-width: 64rem){.table-container[_ngcontent-%COMP%]{min-height:9.375rem}}.correction-history-close-btn[_ngcontent-%COMP%]{align-self:end;bottom:1.25rem;left:.9375rem}.data-correction-heading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:1.375rem}.align-center[_ngcontent-%COMP%]{text-align:center}.align-right[_ngcontent-%COMP%]{text-align:right;width:35%}.progress-tracker[_ngcontent-%COMP%]   .steps[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin:20px 0}.step[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1}.line-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%}.line[_ngcontent-%COMP%]{height:.125rem;flex:1}.line.active[_ngcontent-%COMP%]{background-color:#ccc}.circle[_ngcontent-%COMP%]{background-color:#eee7f8;color:#333;border-radius:50%;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;font-weight:600;margin:0 1.875rem}.label[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;margin:.5rem 0 .25rem}.desc[_ngcontent-%COMP%]{font-size:.875rem;color:#424242;line-height:1.4}.desc#desc_2[_ngcontent-%COMP%]{padding:0 1.875rem}.loading-dots[_ngcontent-%COMP%]{display:flex;align-items:center}.loading-dots[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:10px;height:10px;margin:5px;background-color:#5d33bf;border-radius:50%;animation:_ngcontent-%COMP%_bounce 1.5s infinite}.loading-dots[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.loading-dots[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.3s}.loading-dots[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}@keyframes _ngcontent-%COMP%_bounce{0%,80%,to{transform:scale(1);opacity:.5}40%{transform:scale(1.5);opacity:1}}"]})}}return s})();const mg=s=>({count:s});function sn(s,M){1&s&&t.eu8(0)}function gg(s,M){if(1&s&&t.DNE(0,sn,1,0,"ng-container",4),2&s){t.XpG();const o=t.sdS(7);t.Y8G("ngTemplateOutlet",o)}}function fg(s,M){1&s&&t.eu8(0)}function xn(s,M){if(1&s&&t.DNE(0,fg,1,0,"ng-container",4),2&s){t.XpG();const o=t.sdS(5);t.Y8G("ngTemplateOutlet",o)}}function _g(s,M){if(1&s){const o=t.RV6();t.j41(0,"div",5)(1,"mat-card",6)(2,"mat-card-title")(3,"h2"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"mat-card-content"),t.nrm(7,"hr",7)(8,"div",8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"button",9),t.bIt("click",function(){t.eBV(o);const g=t.XpG();return t.Njj(g.reviewMultipleAccounts())}),t.EFF(11),t.nI1(12,"translate"),t.k0s()()}2&s&&(t.R7$(4),t.JRh(t.bMT(5,3,"reviewMultipleAccountsIntroductionTitle")),t.R7$(4),t.Y8G("innerHtml",t.bMT(9,5,"reviewMultipleAccountsIntroductionDescription"),t.npT),t.R7$(3),t.SpI(" ",t.bMT(12,7,"nextReviewPotentialAccounts")," "))}function bg(s,M){if(1&s&&(t.j41(0,"strong"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s){const o=M.ngIf;t.R7$(),t.JRh(t.i5U(2,1,"review_duplicate_accounts_list_count_"+(1===o?"singular":"plural"),t.eq3(4,mg,o)))}}function jn(s,M){if(1&s&&(t.j41(0,"mat-card",6)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"app-author-document-summary",10)(5,"div",11),t.DNE(6,bg,3,6,"strong",12),t.nI1(7,"async"),t.k0s()()()),2&s){let o;const u=t.XpG();t.R7$(2),t.JRh(t.bMT(3,6,"review_duplicate_accounts_list_info")),t.R7$(2),t.Y8G("translateKey","review_duplicate_accounts")("searchKey",u.searchKey)("retrieve",u.retrieve)("view","ReviewDuplicateAccountsSummary"),t.R7$(2),t.Y8G("ngIf",null==(o=t.bMT(7,8,u.selectHits$))?null:o.available)}}let po=(()=>{class s extends Rt.${constructor(o,u,g){super(o,u),this.change=o,this.translate=u,this.store=g,this.isDuplicateAccountsLoaded=!1,this.analyzes={},this.retrieve={count:10,sort:"author-ayear-ascending",history:!1,jcr:!1,links:null,analyzes:null}}ngOnInit(){this.store.select(at.Kd).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{this.rid=o.rid})}reviewMultipleAccounts(){this.isDuplicateAccountsLoaded=!0,this.store.dispatch(new Hn.Yf({authorIds:this.rid})),this.store.select(Y.Hf,{rid:this.rid}).pipe((0,W.p)(o=>!!o),(0,V.Q)(this.destroyed$)).subscribe(o=>{(0,oe.z)([this.store.select(Y.Gh,{authorIds:o}).pipe((0,W.p)(u=>!!u)),this.store.select(at.Kd).pipe((0,W.p)(u=>!!u))]).pipe((0,V.Q)(this.destroyed$)).subscribe(([u,g])=>{const O=u.alternativeName?.map(J=>J.value)||[];O.push(u.authorAliasName),O.push(u.publishingName),O.push(u.author_name),O.push(g?.fullName);const $=O?.filter(J=>!!J).map(J=>{const st=J.split(",").reverse();let gt;return gt=1===st.length?{firstName:"",lastName:st[0]}:{firstName:st[0]||"",lastName:st[1]||""},gt});$.length>0?(this.searchKey=`review_duplicate_accounts_${o}`,this.search={database:"AUTHOR",mode:tt.k0.author_names,names:$,refines:[{index:"CLM",value:["true"]},{index:"RID",value:[this.rid],exclude:!0}]},this.store.dispatch(new at.IV.x7({key:this.searchKey,search:this.search,retrieve:this.retrieve})),this.selectHits$=this.store.select(at.J4({key:this.searchKey})),this.change.detectChanges()):(this.searchKey="review_duplicate_accounts_no_author_id",this.store.dispatch(new at.IV.Y6({ke
1y:this.searchKey,error:{key:"authorIdNotExists"}})),this.change.detectChanges())})})}static{this.\u0275fac=function(u){return new(u||s)(t.rXU(t.gRc),t.rXU(ht.c$),t.rXU(wt.il))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-author-merge-duplicate-accounts"]],features:[t.Vt3],decls:8,vars:2,consts:[["introductionTemplate",""],["duplicateAccountsSummaryTemplate",""],[1,"author-merge-duplicate-accounts-container"],[3,"titleKey"],[4,"ngTemplateOutlet"],[1,"introduction"],[1,"mat-mdc-card"],[1,"summary-card-separator"],[1,"description",3,"innerHtml"],["mat-button","","color","primary",3,"click"],[1,"new-wos-style",3,"translateKey","searchKey","retrieve","view"],["id","page-controls-content"],[4,"ngIf"]],template:function(u,g){1&u&&(t.j41(0,"div",2),t.nrm(1,"app-title-header-layout",3),t.DNE(2,gg,1,1,"ng-container")(3,xn,1,1,"ng-container"),t.k0s(),t.DNE(4,_g,13,9,"ng-template",null,0,t.C5r)(6,jn,8,10,"ng-template",null,1,t.C5r)),2&u&&(t.R7$(),t.Y8G("titleKey","reviewMultipleAccounts"),t.R7$(),t.vxM(g.isDuplicateAccountsLoaded?2:3))},dependencies:[B.bT,B.T3,Mt.$z,S.RN,S.m2,S.dh,da.F,na.K,B.Jj,ht.D9],styles:[".author-merge-duplicate-accounts-container[_ngcontent-%COMP%]     .wos-new-header{min-height:4rem;padding:2rem 1rem 0}.author-merge-duplicate-accounts-container[_ngcontent-%COMP%]     .no-document-available{padding-top:3.75rem}.author-merge-duplicate-accounts-container[_ngcontent-%COMP%]   .introduction[_ngcontent-%COMP%]{display:flex;gap:1.5rem;flex-direction:column;align-items:flex-end}.author-merge-duplicate-accounts-container[_ngcontent-%COMP%]   .mat-mdc-card[_ngcontent-%COMP%]{height:inherit;padding:2rem;border-radius:1rem}.author-merge-duplicate-accounts-container[_ngcontent-%COMP%]   .mat-mdc-card[_ngcontent-%COMP%]   .mat-mdc-card-title[_ngcontent-%COMP%]{justify-content:left;padding:0 1rem}.author-merge-duplicate-accounts-container[_ngcontent-%COMP%]   .mat-mdc-card[_ngcontent-%COMP%]   .mat-mdc-card-content[_ngcontent-%COMP%]{padding-bottom:0}.author-merge-duplicate-accounts-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin:1.25rem 0;font-size:1rem}"]})}}return s})();var zc=E(33986);const Yc=[{path:"record/:authorIds",canActivate:[Be.AJ],component:Cm,data:{__input_route_inputs:["authorRecordKey"]},resolve:{__input_route_params:zi.H,authorRecordKey:hs}},{path:"my-profile",canActivate:[q,Be.AJ],component:ci.P},{path:"rid/:rid",canActivate:[Be.AJ,Ra],component:ci.P},{path:"full-metrics-dashboard",component:Fa,data:{__input_route_inputs:["authorIds"]}},{path:"author/:authorId",canActivate:[Be.g$],component:Nc,data:{__input_route_inputs:["authorId"]}},{path:"review-multiple-accounts",canActivate:[Be.g$,zc.j],component:po},{path:"correction-form",canActivate:[Be.g$],component:ro,data:{__input_route_inputs:["authorIds","researcherAdmin"]},resolve:{researcherAdmin:di,__input_route_params:zi.H,AuthorCurationResolver:ds}}];let ln=(()=>{class s{static{this.\u0275fac=function(u){return new(u||s)}}static{this.\u0275mod=t.$C({type:s})}static{this.\u0275inj=t.G2t({imports:[pt.iI.forChild(Yc),pt.iI]})}}return s})();var Bc=E(14322),Xc=E(21260),Cg=E(39279),Ma=E(82448),Vc=E(40618),Wc=E(13875),Uc=E(71652),xg=E(78123),yg=E(89047),Hc=E(31621),Jc=E(67865),Wr=E(78958);let qc=(()=>{class s{static{this.\u0275fac=function(u){return new(u||s)}}static{this.\u0275mod=t.$C({type:s})}static{this.\u0275inj=t.G2t({providers:[gn.M],imports:[Kt.w,Vt.hM,Ce.uc,ln,wn.K,Li.C,si.Md,Pn.fS,Pe.jL,Zt.YN,Zt.X1,vn.RG,Nn.g7,zn.MY,Fi._T,Di.E9,Yn.Cn,dn.Pd,ze._,pn.Wk,Ze.Ve,$i.Vg,Xn.h,Ei.mV,li.s,jt.tP,ka,un.l,mn.z,Ye.N,Ee.Z,Vc.D,Bn.CitationReportModule,Xc.k,Bc.e,we.C,Cg.N,Ma.AnalyzeResultsModule,Vc.D,Pi.aP,Wc.u,xg.D,Uc.v,yg.n,Hc.PublonsModule,El.f,ps.x,Jc.M,Wr.R]})}}return s})()},12146:function(Zr){var Ne,E;E=()=>(()=>{"use strict";let Ne,E,dn;var Di,Zt,Pe,Nn,Vt,Kt,zn,vn,Pn,Yn,pn,Ze,Ei,Fi,jt,ze,we,$i,si,li,Bn,un,B,d,Ft={d:(d,e)=>{for(var n in e)Ft.o(e,n)&&!Ft.o(d,n)&&Object.defineProperty(d,n,{enumerable:!0,get:e[n]})},o:(d,e)=>Object.prototype.hasOwnProperty.call(d,e)},ht={};Ft.d(ht,{default:()=>Df}),(d=Di||(Di={})).SVG_NS="http://www.w3.org/2000/svg",d.product="Highcharts",d.version="12.2.0",d.win=typeof window<"u"?window:{},d.doc=d.win.document,d.svg=!!d.doc?.createElementNS?.(d.SVG_NS,"svg")?.createSVGRect,d.pageLang=d.doc?.documentElement?.closest("[lang]")?.lang,d.userAgent=d.win.navigator?.userAgent||"",d.isChrome=d.win.chrome,d.isFirefox=-1!==d.userAgent.indexOf("Firefox"),d.isMS=/(edge|msie|trident)/i.test(d.userAgent)&&!d.win.opera,d.isSafari=!d.isChrome&&-1!==d.userAgent.indexOf("Safari"),d.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(d.userAgent),d.isWebKit=-1!==d.userAgent.indexOf("AppleWebKit"),d.deg2rad=2*Math.PI/360,d.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],d.noop=function(){},d.supportsPassiveEvents=function(){let e=!1;if(!d.isMS){let n=Object.defineProperty({},"passive",{get:function(){e=!0}});d.win.addEventListener&&d.win.removeEventListener&&(d.win.addEventListener("testPassive",d.no
1op,n),d.win.removeEventListener("testPassive",d.noop,n))}return e}(),d.charts=[],d.composed=[],d.dateFormats={},d.seriesTypes={},d.symbolSizes={},d.chartCount=0;let t=Di,{charts:ka,doc:wn,win:Ee}=t;function Xn(d,e,n,i){let a=e?"Highcharts error":"Highcharts warning";32===d&&(d=`${a}: Deprecated member`);let r=Be(d),c=r?`${a} #${d}: www.highcharts.com/errors/${d}/`:d.toString();if(void 0!==i){let l="";r&&(c+="?"),_t(i,function(h,p){l+=`\n - ${p}: ${h}`,r&&(c+=encodeURI(p)+"="+encodeURI(h))}),c+=l}_o(t,"displayError",{chart:n,code:d,message:c,params:i},function(){if(e)throw Error(c);Ee.console&&-1===Xn.messages.indexOf(c)&&console.warn(c)}),Xn.messages.push(c)}function Li(d,e){return parseInt(d,e||10)}function mn(d){return"string"==typeof d}function gn(d){let e=Object.prototype.toString.call(d);return"[object Array]"===e||"[object Array Iterator]"===e}function Ye(d,e){return!(!d||"object"!=typeof d||e&&gn(d))}function pt(d){return Ye(d)&&"number"==typeof d.nodeType}function ci(d){let e=d?.constructor;return!(!Ye(d,!0)||pt(d)||!e?.name||"Object"===e.name)}function Be(d){return"number"==typeof d&&!isNaN(d)&&d<1/0&&d>-1/0}function fe(d){return null!=d}function Et(d,e,n){let i,a=mn(e)&&!fe(n),r=(c,l)=>{fe(c)?d.setAttribute(l,c):a?(i=d.getAttribute(l))||"class"!==l||(i=d.getAttribute(l+"Name")):d.removeAttribute(l)};return mn(e)?r(n,e):_t(e,r),i}function fo(d){return gn(d)?d:[d]}function W(d,e){let n;for(n in d||(d={}),e)d[n]=e[n];return d}function Ct(){let d=arguments,e=d.length;for(let n=0;n<e;n++){let i=d[n];if(null!=i)return i}}function ve(d,e){W(d.style,e)}function Vn(d){return Math.pow(10,Math.floor(Math.log(d)/Math.LN10))}function at(d,e){return d>1e14?d:parseFloat(d.toPrecision(e||14))}(Xn||(Xn={})).messages=[],Math.easeInOutSine=function(d){return-.5*(Math.cos(Math.PI*d)-1)};let Y=Array.prototype.find?function(d,e){return d.find(e)}:function(d,e){let n,i=d.length;for(n=0;n<i;n++)if(e(d[n],n))return d[n]};function _t(d,e,n){for(let i in d)Object.hasOwnProperty.call(d,i)&&e.call(n||d[i],d[i],i,d)}function wt(d,e,n){function i(c,l){let h=d.removeEventListener;h&&h.call(d,c,l,!1)}function a(c){let l,h;d.nodeName&&(e?(l={})[e]=!0:l=c,_t(l,function(p,f){if(c[f])for(h=c[f].length;h--;)i(f,c[f][h].fn)}))}let r="function"==typeof d&&d.prototype||d;if(Object.hasOwnProperty.call(r,"hcEvents")){let c=r.hcEvents;e?n?(c[e]=(c[e]||[]).filter(function(h){return n!==h.fn}),i(e,n)):(a(c),c[e]=[]):(a(c),delete r.hcEvents)}}function _o(d,e,n,i){if(n=n||{},wn?.createEvent&&(d.dispatchEvent||d.fireEvent&&d!==t)){let a=wn.createEvent("Events");a.initEvent(e,!0,!0),n=W(a,n),d.dispatchEvent?d.dispatchEvent(n):d.fireEvent(e,n)}else if(d.hcEvents){n.target||W(n,{preventDefault:function(){n.defaultPrevented=!0},target:d,type:e});let a=[],r=d,c=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[e]&&(a.length&&(c=!0),a.unshift.apply(a,r.hcEvents[e])),r=Object.getPrototypeOf(r);c&&a.sort((l,h)=>l.order-h.order),a.forEach(l=>{!1===l.fn.call(d,n)&&n.preventDefault()})}i&&!n.defaultPrevented&&i.call(d,n)}let Ra=function(){let d=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(Ne?"":d)+e++}}();Ee.jQuery&&(Ee.jQuery.fn.highcharts=function(){let d=[].slice.call(arguments);if(this[0])return d[0]?(new(t[mn(d[0])?d.shift():"Chart"])(this[0],d[0],d[1]),this):ka[Et(this[0],"data-highcharts-chart")]});let q={addEvent:function(d,e,n,i={}){let a="function"==typeof d&&d.prototype||d;Object.hasOwnProperty.call(a,"hcEvents")||(a.hcEvents={});let r=a.hcEvents;
1t.Point&&d instanceof t.Point&&d.series&&d.series.chart&&(d.series.chart.runTrackerClick=!0);let c=d.addEventListener;return c&&c.call(d,e,n,!!t.supportsPassiveEvents&&{passive:void 0===i.passive?-1!==e.indexOf("touch"):i.passive,capture:!1}),r[e]||(r[e]=[]),r[e].push({fn:n,order:"number"==typeof i.order?i.order:1/0}),r[e].sort((h,p)=>h.order-p.order),function(){wt(d,e,n)}},arrayMax:function(d){let e=d.length,n=d[0];for(;e--;)d[e]>n&&(n=d[e]);return n},arrayMin:function(d){let e=d.length,n=d[0];for(;e--;)d[e]<n&&(n=d[e]);return n},attr:Et,clamp:function(d,e,n){return d>e?d<n?d:n:e},clearTimeout:function(d){fe(d)&&clearTimeout(d)},correctFloat:at,createElement:function(d,e,n,i,a){let r=wn.createElement(d);return e&&W(r,e),a&&ve(r,{padding:"0",border:"none",margin:"0"}),n&&ve(r,n),i&&i.appendChild(r),r},crisp:function(d,e=0,n){let i=e%2/2,a=n?-1:1;return(Math.round(d*a-i)+i)*a},css:ve,defined:fe,destroyObjectProperties:function(d,e,n){_t(d,function(i,a){i!==e&&i?.destroy&&i.destroy(),(i?.destroy||!n)&&delete d[a]})},diffObjects:function(d,e,n,i){let a={};return function r(c,l,h,p){let f=n?l:c;_t(c,function(m,_){if(!p&&i&&i.indexOf(_)>-1&&l[_]){m=fo(m),h[_]=[];for(let b=0;b<Math.max(m.length,l[_].length);b++)l[_][b]&&(void 0===m[b]?h[_][b]=l[_][b]:(h[_][b]={},r(m[b],l[_][b],h[_][b],p+1)))}else Ye(m,!0)&&!m.nodeType?(h[_]=gn(m)?[]:{},r(m,l[_]||{},h[_],p+1),0===Object.keys(h[_]).length&&("colorAxis"!==_||0!==p)&&delete h[_]):(c[_]!==l[_]||_ in c&&!(_ in l))&&"__proto__"!==_&&"constructor"!==_&&(h[_]=f[_])})}(d,e,a,0),a},discardElement:function(d){d?.parentElement?.removeChild(d)},erase:function(d,e){let n=d.length;for(;n--;)if(d[n]===e){d.splice(n,1);break}},error:Xn,extend:W,extendClass:function(d,e){let n=function(){};return W(n.prototype=new d,e),n},find:Y,fireEvent:_o,getAlignFactor:(d="")=>({center:.5,right:1,middle:.5,bottom:1}[d]||0),getClosestDistance:function(d,e){let n,i,a,r,c=!e;return d.forEach(l=>{if(l.length>1)for(r=i=l.length-1;r>0;r--)(a=l[r]-l[r-1])<0&&!c?(e?.(),e=void 0):a&&(void 0===n||a<n)&&(n=a)}),n},getMagnitude:Vn,getNestedProperty:function(d,e){let n=d.split(".");for(;n.length&&fe(e);){let i=n.shift();if(void 0===i||"__proto__"===i)return;if("this"===i){let r;return Ye(e)&&(r=e["@this"]),r??e}let a=e[i.replace(/[\\'"]/g,"")];if(!fe(a)||"function"==typeof a||"number"==typeof a.nodeType||a===Ee)return;e=a}return e},getStyle:function d(e,n,i){let a;if("width"===n){let c=Math.min(e.offsetWidth,e.scrollWidth),l=e.getBoundingClientRect?.().width;return l<c&&l>=c-1&&(c=Math.floor(l)),Math.max(0,c-(d(e,"padding-left",!0)||0)-(d(e,"padding-right",!0)||0))}if("height"===n)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(d(e,"padding-top",!0)||0)-(d(e,"padding-bottom",!0)||0));let r=Ee.getComputedStyle(e,void 0);return r&&(a=r.getPropertyValue(n),Ct(i,"opacity"!==n)&&(a=Li(a))),a},insertItem:function(d,e){let n,i=d.options.index,a=e.length;for(n=d.options.isInternal?a:0;n<a+1;n++)if(!e[n]||Be(i)&&i<Ct(e[n].options.index,e[n]._i)||e[n].options.isInternal){e.splice(n,0,d);break}return n},isArray:gn,isClass:ci,isDOMElement:pt,isFunction:function(d){return"function"==typeof d},isNumber:Be,isObject:Ye,isString:mn,merge:function(d,...e){let n,i=[d,...e],a={},r=function(l,h){return"object"!=typeof l&&(l={}),_t(h,function(p,f){"__proto__"!==f&&"constructor"!==f&&(l[f]=!Ye(p,!0)||ci(p)||pt(p)?h[f]:r(l[f]||{},p))}),l};!0===d&&(a=i[1],i=Array.prototype.slice.call(i,2));let c=i.length;for(n=0;n<c;n++)a=r(a,i[n]);return a},normalizeTickInterval:function(d,e,n,i,a){let r,c=d,l=d/(n=Ct(n,Vn(d)));for(!e&&(e=a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===i&&(1===n?e=e.filter(function(h){return h%1==0}):n<=.1&&(e=[1/n]))),r=0;r<e.length&&(c=e[r],(!a||!(c*n>=d))&&(a||!(l<=(e[r]+(e[r+1]||e[r]))/2)));r++);return at(c*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:_t,offset:function(d){let e=wn.documentElement,n=d.parentElement||d.parentNode?d.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(Ee.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(Ee.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:n.width,height:n.height}},pad:function(d,e,n){return Array((e||2)+1-String(d).replace("-","").length).join(n||"0")+d},pick:Ct,pInt:Li,pushUnique:function(d,e){return 0>d.indexOf(e)&&!!d.push(e)},relativeLength:function(d,e,n){return/%$/.test(d)?e*parseFloat(d)/100+(n||0):parseFloat(d)},removeEvent:wt,replaceNested:function(d,...e){let n,i;do{for(i of(n=d,e))d=d.replace(i[0],i[1])}while(d!==n);return d},splat:fo,stableSort:function(d,e){let n,i,a=d.length;for(i=0;i<a;i++)d[i].safeI=i;
vendor: 5,129 bytes, line 1
1for(d.sort(function(r,c){return 0===(n=e(r,c))?r.safeI-c.safeI:n}),i=0;i<a;i++)delete d[i].safeI},syncTimeout:function(d,e,n){return e>0?setTimeout(d,e,n):(d.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(d){return mn(d)?d.substring(0,1).toUpperCase()+d.substring(1):String(d)},uniqueKey:Ra,useSerialIds:function(d){return Ne=Ct(d,Ne)},wrap:function(d,e,n){let i=d[e];d[e]=function(){let a=arguments,r=this;return n.apply(this,[function(){return i.apply(r,arguments.length?arguments:a)}].concat([].slice.call(arguments)))}}},{pageLang:Rt,win:ke}=t,{defined:Wn,error:Ke,extend:oe,isNumber:V,isObject:Xe,isString:Un,merge:Aa,objectEach:hi,pad:Fe,splat:On,timeUnits:Gi,ucfirst:Kr}=q,ts=t.isSafari&&ke.Intl&&!ke.Intl.DateTimeFormat.prototype.formatRange,Da=class{constructor(d,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=ke.Date,this.update(d),this.lang=e}update(d={}){this.dTLCache={},this.options=d=Aa(!0,this.options,d);let{timezoneOffset:e,useUTC:n}=d;this.Date=d.Date||ke.Date||Date;let i=d.timezone;Wn(n)&&(i=n?"UTC":void 0),e&&e%60==0&&(i="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone="UTC"!==i&&0!==i?.indexOf("Etc/GMT"),this.timezone=i,["months","shortMonths","weekdays","shortWeekdays"].forEach(a=>{let r=/months/i.test(a),c=/short/.test(a),l={timeZone:"UTC"};l[r?"month":"weekday"]=c?"short":"long",this[a]=(r?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(h=>this.dateFormat(l,24*(r?31:1)*36e5*h))})}toParts(d){let[e,n,i,a,r,c,l]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},d,"es").split(/(?:, | |\/|:)/g);return[a,+i-1,n,r,c,l,Math.floor(Number(d)||0)%1e3,"DLMXJVS".indexOf(e)].map(Number)}dateTimeFormat(d,e,n=this.options.locale||Rt){let i=JSON.stringify(d)+n;Un(d)&&(d=this.str2dtf(d));let a=this.dTLCache[i];if(!a){d.timeZone??(d.timeZone=this.timezone);try{a=new Intl.DateTimeFormat(n,d)}catch(r){/Invalid time zone/i.test(r.message)?(Ke(34),d.timeZone="UTC",a=new Intl.DateTimeFormat(n,d)):Ke(r.message,!1)}}return this.dTLCache[i]=a,a?.format(e)||""}str2dtf(d,e={}){let n={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(n).forEach(i=>{-1!==d.indexOf(i)&&oe(e,n[i])}),e}makeTime(d,e,n=1,i=0,a,r,c){let l=this.Date.UTC(d,e,n,i,a||0,r||0,c||0);if("UTC"!==this.timezone){let h=this.getTimezoneOffset(l);if(l+=h,-1!==[2,3,8,9,10,11].indexOf(e)&&(i<5||i>20)){let p=this.getTimezoneOffset(l);h!==p?l+=p-h:h-36e5!==this.getTimezoneOffset(l-36e5)||ts||(l-=36e5)}}return l}parse(d){if(!Un(d))return d??void 0;let e=(d=d.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(d),n=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(d);e||n||(d+="Z");let i=Date.parse(d);return V(i)?i+(!e||n?this.getTimezoneOffset(i):0):void 0}getTimezoneOffset(d){if("UTC"!==this.timezone){let[e,n,i,a,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},d,"en").split(/(GMT|:)/).map(Number),c=-36e5*(i+r/60);if(V(c))return c}return 0}dateFormat(d,e,n){let i=this.lang;if(!Wn(e)||isNaN(e))return i?.invalidDate||"";if(Un(d=d??"%Y-%m-%d %H:%M:%S")){let a,r=/%\[([a-zA-Z]+)\]/g;for(;a=r.exec(d);)d=d.replace(a[0],this.dateTimeFormat(a[1],e,i?.locale))}if(Un(d)&&-1!==d.indexOf("%")){let a=this,[r,c,l,h,p,f,m,_]=this.toParts(e),b=i?.weekdays||this.weekdays,C=i?.shortWeekdays||this.shortWeekdays,x=i?.months||this.months,v=i?.shortMonths||this.shortMonths;hi(oe({a:C?C[_]:b[_].substr(0,3),A:b[_],d:Fe(l),e:Fe(l,2," "),w:_,v:i?.weekFrom??"",b:v[c],B:x[c],m:Fe(c+1),o:c+1,y:r.toString().substr(2,2),Y:r,H:Fe(h),k:h,I:Fe(h%12||12),l:h%12||12,M:Fe(p),p:h<12?"AM":"PM",P:h<12?"am":"pm",S:Fe(f),L:Fe(m,3)},t.dateFormats),function(y,P){if(Un(d))for(;-1!==d.indexOf("%"+P);)d=d.replace("%"+P,"function"==typeof y?y.call(a,e):y)})}else if(Xe(d)){let a=(this.getTimezoneOffset(e)||0)/36e5,r=this.timezone||"Etc/GMT"+(a>=0?"+":"")+a,{prefix:c="",suffix:l=""}=d;d=c+this.dateTimeFormat(oe({timeZone:r},d),e)+l}return n?Kr(d):d}resolveDTLFormat(d){return Xe(d,!0)?Xe(d,!0)&&(d=>void 0===d.main)(d)?{main:d}:d:{main:(d=On(d))[0],from:d[1],to:d[2]}}getDateFormat(d,e,n,i){let a=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",c={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond",h=l;for(l in Gi){if(d&&d===Gi.week&&+this.dateFormat("%w",e)===n&&a.substr(6)===r.substr(6)){l="week";break}if(d&&Gi[l]>d){l=h;break}if(c[l]&&a.substr(c[l])!==r.substr(c[l]))break;"week"!==l&&(h=l)}return this.resolveDTLFormat(i[l]).main}},{defined:bo,extend:Mt,timeUnits:Nt}=q,S=class extends Da{getTimeTicks(d,e,n,i){let v,a=this,r=[],c={},{count:l=1,unitRange:h}=d,[p,f,m,_,b,C]=a.toParts(e),x=(e||0)%1e3;if(i??(i=1),bo(e)){if(x=h>=Nt.second?0:l*Math.floor(x/l),h>=Nt.second&&(C=h>=Nt.minute?0:l*Math.floor(C/l)),h>
1=Nt.minute&&(b=h>=Nt.hour?0:l*Math.floor(b/l)),h>=Nt.hour&&(_=h>=Nt.day?0:l*Math.floor(_/l)),h>=Nt.day&&(m=h>=Nt.month?1:Math.max(1,l*Math.floor(m/l))),h>=Nt.month&&(f=h>=Nt.year?0:l*Math.floor(f/l)),h>=Nt.year&&(p-=p%l),h===Nt.week){l&&(e=a.makeTime(p,f,m,_,b,C,x));let w=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),I="DLMXJVS".indexOf(w);m+=-I+i+(I<i?-7:0)}e=a.makeTime(p,f,m,_,b,C,x),a.variableTimezone&&bo(n)&&(v=n-e>4*Nt.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(n));let y=e,P=1;for(;y<n;)r.push(y),h===Nt.year?y=a.makeTime(p+P*l,0):h===Nt.month?y=a.makeTime(p,f+P*l):!v||h!==Nt.day&&h!==Nt.week?v&&h===Nt.hour&&l>1?y=a.makeTime(p,f,m,_+P*l):y+=h*l:y=a.makeTime(p,f,m+P*l*(h===Nt.day?1:7)),P++;r.push(y),h<=Nt.hour&&r.length<1e4&&r.forEach(w=>{w%18e5==0&&"000000000"===a.dateFormat("%H%M%S%L",w)&&(c[w]="day")})}return r.info=Mt(d,{higherRanks:c,totalRange:h*l}),r}},{isTouchDevice:D}=t,{fireEvent:L,merge:z}=q,N={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:d=>Math.sqrt(1-Math.pow(d-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:D?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},nt=new S(N.time,N.lang),ot={defaultOptions:N,defaultTime:nt,getOptions:function(){return N},setOptions:function(d){return L(t,"setOptions",{options:d}),z(!0,N,d),d.time&&nt.update(N.time),d.lang&&"locale"in d.lang&&nt.update({locale:d.lang.locale}),d.lang?.chartTitle&&(N.title={...N.title,text:d.lang.chartTitle}),N}},{win:H}=t,{isNumber:Q,isString:ut,merge:lt,pInt:tt,defined:xt}=q,It=(d,e,n)=>`color-mix(in srgb,${d},${e} ${100*n}%)`,yt=d=>ut(d)&&!!d&&"none"!==d;class Z{static parse(e){return e?new Z(e):Z.None}constructor(e){let n,i,a,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;let c=t.Color;if(c&&c!==Z)return new c(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(l=>new Z(l[1]));else if("string"==typeof e)for(this.input=e=Z.names[e.toLowerCase()]||e,a=
1Z.parsers.length;a--&&!i;)(n=(r=Z.parsers[a]).regex.exec(e))&&(i=r.parse(n));i&&(this.rgba=i)}get(e){let n=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof n&&void 0!==this.stops){let a=lt(n);return a.stops=[].slice.call(a.stops),this.stops.forEach((r,c)=>{a.stops[c]=[a.stops[c][0],r.get(e)]}),a}return i&&Q(i[0])?"rgb"===e||!e&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?`${i[3]}`:"rgba("+i.join(",")+")":n}brighten(e){let n=this.rgba;if(this.stops)this.stops.forEach(function(i){i.brighten(e)});else if(Q(e)&&0!==e)if(Q(n[0]))for(let i=0;i<3;i++)n[i]+=tt(255*e),n[i]<0&&(n[i]=0),n[i]>255&&(n[i]=255);else Z.useColorMix&&yt(this.input)&&(this.output=It(this.input,e>0?"white":"black",Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,n){let i=this.rgba,a=e.rgba;if(!Q(i[0])||!Q(a[0]))return Z.useColorMix&&yt(this.input)&&yt(e.input)&&n<.99?It(this.input,e.input,n):e.input||"none";let r=1!==a[3]||1!==i[3],c=(h,p)=>h+(i[p]-h)*(1-n),l=a.slice(0,3).map(c).map(Math.round);return r&&l.push(c(a[3],3)),(r?"rgba(":"rgb(")+l.join(",")+")"}}Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(d){return[tt(d[1]),tt(d[2]),tt(d[3]),parseFloat(d[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(d){return[tt(d[1]),tt(d[2]),tt(d[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(d){return[tt(d[1]+d[1],16),tt(d[2]+d[2],16),tt(d[3]+d[3],16),xt(d[4])?tt(d[4]+d[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(d){return[tt(d[1],16),tt(d[2],16),tt(d[3],16),xt(d[4])?tt(d[4],16)/255:1]}}],Z.useColorMix=H.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),Z.None=new Z("");let{parse:X}=Z,{win:Wt}=t,{isNumber:le,objectEach:Jt}=q,Ut=(()=>{class d{constructor(n,i,a){this.pos=NaN,this.options=i,this.elem=n,this.prop=a}dSetter(){let n=this.paths,i=n?.[0],a=n?.[1],r=this.now||0,c=[];if(1!==r&&i&&a)if(i.length===a.length&&r<1)for(let l=0;l<a.length;l++){let h=i[l],p=a[l],f=[];for(let m=0;m<p.length;m++){let _=h[m],b=p[m];f[m]=le(_)&&le(b)&&("A"!==p[0]||4!==m&&5!==m)?_+r*(b-_):b}c.push(f)}else c=a;else c=this.toD||[];this.elem.attr("d",c,void 0,!0)}update(){let n=this.elem,i=this.prop,a=this.now,r=this.options.step;this[i+"Setter"]?this[i+"Setter"]():n.attr?n.element&&n.attr(i,a,null,!0):n.style[i]=a+this.unit,r&&r.call(n,a,this)}run(n,i,a){let r=this,c=r.options,l=function(f){return!l.stopped&&r.step(f)},h=Wt.requestAnimationFrame||function(f){setTimeout(f,13)},p=function(){for(let f=0;f<d.timers.length;f++)d.timers[f]()||d.timers.splice(f--,1);d.timers.length&&h(p)};n!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=n,this.end=i,this.unit=a,this.now=this.start,this.pos=0,l.elem=this.elem,l.prop=this.prop,l()&&1===d.timers.push(l)&&h(p)):(delete c.curAnim[this.prop],c.complete&&0===Object.keys(c.curAnim).length&&c.complete.call(this.elem))}step(n){let i,a,r=+new Date,c=this.options,l=this.elem,h=c.complete,p=c.duration,f=c.curAnim;return l.attr&&!l.element?i=!1:n||r>=p+this.startTime?(this.now=this.end,this.pos=1,this.update(),f[this.prop]=!0,a=!0,Jt(f,function(m){!0!==m&&(a=!1)}),a&&h&&h.call(l),i=!1):(this.pos=c.easing((r-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),i=!0),i}initPath(n,i,a){let m,_,b,C,r=n.startX,c=n.endX,l=a.slice(),h=n.isArea,p=h?2:1,f=i&&a.length>i.length&&a.hasStackedCliffs,x=i?.slice();if(!x||f)return[l,l];function v(P,w){for(;P.length<_;){let I=P[0],R=w[_-P.length];if(R&&"M"===I[0]&&(P[0]="C"===R[0]?["C",I[1],I[2],I[1],I[2],I[1],I[2]]:["L",I[1],I[2]]),P.unshift(I),h){let T=P.pop();P.push(P[P.length-1],T)}}}function y(P){for(;P.length<_;){let w=P[Math.floor(P.length/p)-1].slice();if("C"===w[0]&&(w[1]=w[5],w[2]=w[6]),h){let I=P[Math.floor(P.length/p)].slice();P.splice(P.length/2,0,w,I)}else P.push(w)}}if(r&&c&&c.length){for(b=0;b<r.length;b++){if(r[b]===c[0]){m=b;break}if(r[0]===c[c.length-r.length+b]){m=b,C=!0;break}if(r[r.length-1]===c[c.length-r.length+b]){m=r.length-b;break}}void 0===m&&(x=[])}return x.length&&le(m)&&(_=l.length+m*p,C?(v(x,l),y(l)):(v(l,x),y(x))),[x,l]}fillSetter(){d.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,X(this.start).tweenTo(X(this.end),this.pos),void 0,!0)}}return d.timers=[],d})(),{defined:ge,getStyle:At,isArray:Ot,isNumber:de,isObject:_e,merge:Ve,objectEach:We,pick:$e}=q;function St(d){return _e(d)?Ve({duration:500,defer:0},d):{duration:500*!!d,defer:0}}function In(d,e){let n=Ut.timers.length;for(;n--;)Ut.timers[n].elem!==d||e&&e!==Ut.timers[n].prop||(Ut.timers[n].stopped=!0)}let $t={animate:function(d,e,n){let i,r,c,l,a="";_e(n)||(l=arguments,n={duration:l[2],easing:l[3],complete:l[4]}),de(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=Ve(e),We(e,function(h,p){In(d,p),c=new Ut(d,n,p),r=void 0,"d"===p&&Ot(e.d)?(c.paths=c.initPath(d,d.pathArray,e.d),c.toD=e.d,i=0,r=1):d.attr?i=d.attr(p):(i=parseFloat(At(d,p))||0,"opacity"!==p&&(a="px")),r||(r=h),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),c.run(i,r,a)})},animObject:St,getDeferredAnimation:function(d,e,n){let i=St(e),r=0,c=0;
vendor: 1,769 bytes, line 1
1return(n?[n]:d.series).forEach(l=>{let h=St(l.options.animation);r=_e(e)&&ge(e.defer)?i.defer:Math.max(r,h.duration+h.defer),c=Math.min(i.duration,h.duration)}),d.renderer.forExport&&(r=0),{defer:Math.max(0,r-c),duration:Math.min(r,c)}},setAnimation:function(d,e){e.renderer.globalAnimation=$e(d,e.options.chart.animation,!0)},stop:In},{SVG_NS:ji,win:Tn}=t,{attr:ih,createElement:oh,css:ah,error:es,isFunction:rh,isString:ns,objectEach:is,splat:sh}=q,{trustedTypes:Ea}=Tn,Co=Ea&&rh(Ea.createPolicy)&&Ea.createPolicy("highcharts",{createHTML:d=>d}),lh=Co?Co.createHTML(""):"";class Qt{static filterUserAttributes(e){return is(e,(n,i)=>{let a=!0;-1===Qt.allowedAttributes.indexOf(i)&&(a=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(a=ns(n)&&Qt.allowedReferences.some(r=>0===n.indexOf(r))),a||(es(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete e[i]),ns(n)&&e[i]&&(e[i]=n.replace(/</g,"&lt;"))}),e}static parseStyle(e){return e.split(";").reduce((n,i)=>{let a=i.split(":").map(c=>c.trim()),r=a.shift();return r&&a.length&&(n[r.replace(/-([a-z])/g,c=>c[1].toUpperCase())]=a.join(":")),n},{})}static setElementHTML(e,n){e.innerHTML=Qt.emptyHTML,n&&new Qt(n).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(e){return function n(i,a){let r;return sh(i).forEach(function(c){let l,h=c.tagName,p=c.textContent?t.doc.createTextNode(c.textContent):void 0,f=Qt.bypassHTMLFiltering;if(h)if("#text"===h)l=p;else if(-1!==Qt.allowedTags.indexOf(h)||f){let _=t.doc.createElementNS("svg"===h?ji:a.namespaceURI||ji,h),b=c.attributes||{};is(c,function(C,x){"tagName"!==x&&"attributes"!==x&&"children"!==x&&"style"!==x&&"textContent"!==x&&(b[x]=C)}),ih(_,f?b:Qt.filterUserAttributes(b)),c.style&&ah(_,c.style),p&&_.a
vendor: 5,270 bytes, line 1
1ppendChild(p),n(c.children||[],_),l=_}else es(33,!1,void 0,{"Invalid tagName in config":h});l&&a.appendChild(l),r=l}),r}(this.nodes,e)}parseMarkup(e){let n,i=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{n=(new DOMParser).parseFromString(Co?Co.createHTML(e):e,"text/html")}catch{}if(!n){let r=oh("div");r.innerHTML=e,n={body:r}}let a=(r,c)=>{let l=r.nodeName.toLowerCase(),h={tagName:l};"#text"===l&&(h.textContent=r.textContent||"");let p=r.attributes;if(p){let f={};[].forEach.call(p,m=>{"data-style"===m.name?h.style=Qt.parseStyle(m.value):f[m.name]=m.value}),h.attributes=f}if(r.childNodes.length){let f=[];[].forEach.call(r.childNodes,m=>{a(m,f)}),f.length&&(h.children=f)}c.push(h)};return[].forEach.call(n.body.childNodes,r=>a(r,i)),i}}Qt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],Qt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],Qt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],Qt.emptyHTML=lh,Qt.bypassHTMLFiltering=!1;let{defaultOptions:os,defaultTime:as}=ot,{pageLang:ch}=t,{extend:hh,getNestedProperty:dh,isArray:ph,isNumber:rs,isObject:uh,isString:mh,pick:gh,ucfirst:fh}=q,xo={add:(d,e)=>d+e,divide:(d,e)=>0!==e?d/e:"",eq:(d,e)=>d==e,each:function(d){let e=arguments[arguments.length-1];return!!ph(d)&&d.map((n,i)=>yo(e.body,hh(uh(n)?n:{"@this":n},{"@index":i,"@first":0===i,"@last":i===d.length-1}))).join("")},ge:(d,e)=>d>=e,gt:(d,e)=>d>e,if:d=>!!d,le:(d,e)=>d<=e,lt:(d,e)=>d<e,multiply:(d,e)=>d*e,ne:(d,e)=>d!=e,subtract:(d,e)=>d-e,ucfirst:fh,unless:d=>!d},ss={},ls=d=>/^["'].+["']$/.test(d);function yo(d="",e,n){let _,b,x,i=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'\u2019= #\(\)]+)\}/g,a=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,r=[],c=/f$/,l=/\.(\d)/,h=n?.options?.lang||os.lang,p=n?.time||as,f=n?.numberFormatter||cs,m=(v="")=>{let y;return"true"===v||"false"!==v&&((y=Number(v)).toString()===v?y:ls(v)?v.slice(1,-1):dh(v,e))},C=0;for(;null!==(_=i.exec(d));){let v=_,y=a.exec(_[1]);y&&(_=y,x=!0),b?.isBlock||(b={ctx:e,expression:_[1],find:_[0],isBlock:"#"===_[1].charAt(0),start:_.index,startInner:_.index+_[0].length,length:_[0].length});let P=(b.isBlock?v:_)[1].split(" ")[0].replace("#","");xo[P]&&(b.isBlock&&P===b.fn&&C++,b.fn||(b.fn=P));let w="else"===_[1];if(b.isBlock&&b.fn&&(_[1]===`/${b.fn}`||w))if(C)!w&&C--;else{let I=b.startInner,R=d.substr(I,_.index-I);void 0===b.body?(b.body=R,b.startInner=_.index+_[0].length):b.elseBody=R,b.find+=R+_[0],w||(r.push(b),b=void 0)}else b.isBlock||r.push(b);if(y&&!b?.isBlock)break}return r.forEach(v=>{let y,P,{body:w,elseBody:I,expression:R,fn:T}=v;if(T){let j,k=[v],A=[],F=R.length,G=0;for(P=0;P<=F;P++){let U=R.charAt(P);j||'"'!==U&&"'"!==U?j===U&&(j=""):j=U,j||" "!==U&&P!==F||(A.push(R.substr(G,P-G)),G=P+1)}for(P=xo[T].length;P--;)k.unshift(m(A[P+1]));y=xo[T].apply(e,k),v.isBlock&&"boolean"==typeof y&&(y=yo(y?w:I,e,n))}else{let k=ls(R)?[R]:R.split(":");if(y=m(k.shift()||""),k.length&&"number"==typeof y){let A=k.join(":");if(c.test(A)){let F=parseInt((A.match(l)||["","-1"])[1],10);null!==y&&(y=f(y,F,h.decimalPoint,A.indexOf(",")>-1?h.thousandsSep:""))}else y=p.dateFormat(A,y)}a.lastIndex=0,a.test(v.find)&&mh(y)&&(y=`"${y}"`)}d=d.replace(v.find,gh(y,""))}),x?yo(d,e,n):d}function cs(d,e,n,i){e*=1;let a,r,[c,l]=(d=+d||0).toString().split("e").map(Number),h=this?.options?.lang||os.lang,p=(d.toString().split(".")[1]||"").split("e")[0].length,f=e,m={};n??(n=h.decimalPoint),i??(i=h.thousandsSep),-1===e?e=Math.min(p,20):rs(e)?e&&l<0&&((r=e+l)>=0?(c=+c.toExponential(r).split("e")[0],e=r):(c=Math.floor(c),d=e<20?+(c*Math.pow(10,l)).toFixed(e):0,l=0)):e=2,l&&(e??(e=2),d=c),rs(e)&&e>=0&&(m.minimumFractionDigits=e,m.maximumFractionDigits=e),""===i&&(m.useGrouping=!1);let _=i||n,b=_?"en":this?.locale||h.locale||ch,C=JSON.stringify(m)+b;return a=(ss[C]??(ss[C]=new Intl.NumberFormat(b,m))).format(d),_&&(a=a.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",n??".")),(e||0!=+a)&&(!(l<0)||f)||(a="0"),l&&0!=+a&&(a+="e"+(l<0?""
1:"+")+l),a}let Oe={dateFormat:function(d,e,n){return as.dateFormat(d,e,n)},format:yo,helpers:xo,numberFormat:cs};!function(d){let e;d.rendererTypes={},d.getRendererType=function(n=e){return d.rendererTypes[n]||d.rendererTypes[e]},d.registerRendererType=function(n,i,a){d.rendererTypes[n]=i,(!e||a)&&(e=n,t.Renderer=i)}}(Zt||(Zt={}));let Ni=Zt,{clamp:_h,pick:bh,pushUnique:Ch,stableSort:Fa}=q;(Pe||(Pe={})).distribute=function d(e,n,i){let m,_,b,x,v,P,a=e,r=a.reducedLen||n,c=(w,I)=>w.target-I.target,l=[],h=e.length,p=[],f=l.push,C=!0,y=0;for(m=h;m--;)y+=e[m].size;if(y>r){for(Fa(e,(w,I)=>(I.rank||0)-(w.rank||0)),b=(P=e[0].rank===e[e.length-1].rank)?h/2:-1,_=P?b:h-1;b&&y>r;)x=e[m=Math.floor(_)],Ch(p,m)&&(y-=x.size),_+=b,P&&_>=e.length&&(b/=2,_=b);p.sort((w,I)=>I-w).forEach(w=>f.apply(l,e.splice(w,1)))}for(Fa(e,c),e=e.map(w=>({size:w.size,targets:[w.target],align:bh(w.align,.5)}));C;){for(m=e.length;m--;)x=e[m],v=(Math.min.apply(0,x.targets)+Math.max.apply(0,x.targets))/2,x.pos=_h(v-x.size*x.align,0,n-x.size);for(m=e.length,C=!1;m--;)m>0&&e[m-1].pos+e[m-1].size>e[m].pos&&(e[m-1].size+=e[m].size,e[m-1].targets=e[m-1].targets.concat(e[m].targets),e[m-1].align=.5,e[m-1].pos+e[m-1].size>n&&(e[m-1].pos=n-e[m-1].size),e.splice(m,1),C=!0)}return f.apply(a,l),m=0,e.some(w=>{let I=0;return(w.targets||[]).some(()=>(a[m].pos=w.pos+I,void 0!==i&&Math.abs(a[m].pos-a[m].target)>i?(a.slice(0,m+1).forEach(R=>delete R.pos),a.reducedLen=(a.reducedLen||n)-.1*n,a.reducedLen>.1*n&&d(a,n,i),!0):(I+=a[m].size,m++,!1)))}),Fa(a,c),a};let zi=Pe,{animate:Hn,animObject:be,stop:hs}=$t,{deg2rad:ds,doc:di,svg:kn,SVG_NS:Ie,win:xh,isFirefox:ce}=t,{addEvent:yh,attr:$a,createElement:ps,crisp:Rn,css:Mo,defined:Ce,erase:Mh,extend:pi,fireEvent:vo,getAlignFactor:Po,isArray:us,isFunction:ms,isNumber:ui,isObject:vh,isString:wo,merge:La,objectEach:mi,pick:fn,pInt:Oo,pushUnique:Ph,replaceNested:wh,syncTimeout:Oh,uniqueKey:gs}=q;class pe{_defaultGetter(e){let n=fn(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(n)&&(n=parseFloat(n)),n}_defaultSetter(e,n,i){i.setAttribute(n,e)}add(e){let n,i=this.renderer,a=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(n=this.zIndexSetter()),n||(e?e.element:i.box).appendChild(a),this.onAdd&&this.onAdd(),this}addClass(e,n){let i=n?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(a,r){return-1===i.indexOf(r)&&a.push(r),a},i?[i]:[]).join(" "))!==i&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,n,i,a=!0){let r=this.renderer,c=r.alignedObjects,l=!!e;e?(this.alignOptions=e,this.alignByTranslate=n,this.alignTo=i):(e=this.alignOptions||{},n=this.alignByTranslate,i=this.alignTo);let h=!i||wo(i)?i||"renderer":void 0;h&&(l&&Ph(c,this),i=void 0);let p=fn(i,r[h],r),f=(p.x||0)+(e.x||0)+((p.width||0)-(e.width||0))*Po(e.align),m=(p.y||0)+(e.y||0)+((p.height||0)-(e.height||0))*Po(e.verticalAlign),_={"text-align":e?.align};return _[n?"translateX":"x"]=Math.round(f),_[n?"translateY":"y"]=Math.round(m),a&&(this[this.placed?"animate":"attr"](_),this.placed=!0),this.alignAttr=_,this}alignSetter(e){let n={left:"start",center:"middle",right:"end"};n[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",n[e]))}animate(e,n,i){let a=be(fn(n,this.renderer.globalAnimation,!0)),r=a.defer;return di.hidden&&(a.duration=0),0!==a.duration?(i&&(a.complete=i),Oh(()=>{this.element&&Hn(this,e,a)},r)):(this.attr(e,void 0,i||a.complete),mi(e,function(c,l){a.step&&a.step.call(this,c,{prop:l,pos:1,elem:this})},this)),this}applyTextOutline(e){let n=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(n.style.fill)));let i=e.indexOf(" "),a=e.substring(i+1),r=e.substring(0,i);if(r&&"none"!==r&&t.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(f,m,_){return 2*Number(m)+_}),this.removeTextOutline();let c=di.createElementNS(Ie,"tspan");$a(c,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":r,"stroke-linejoin":"round"});let l=n.querySelector("textPath")||n;[].forEach.call(l.childNodes,f=>{let m=f.cloneNode(!0);m.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(_=>m.removeAttribute(_)),c.appendChild(m)});let h=0;[].forEach.call(l.querySelectorAll("text tspan"),f=>{h+=Number(f.getAttribute("dy"))});let p=di.createElementNS(Ie,"tspan");p.textContent="\u200b",$a(p,{x:Number(n.getAttribute("x")),dy:-h}
vendor: 7,838 bytes, line 1
1),c.appendChild(p),l.insertBefore(c,l.firstChild)}}attr(e,n,i,a){let l,h,f,{element:r}=this,c=pe.symbolCustomAttribs,p=this;return"string"==typeof e&&void 0!==n&&(l=e,(e={})[l]=n),"string"==typeof e?p=(this[e+"Getter"]||this._defaultGetter).call(this,e,r):(mi(e,function(m,_){f=!1,a||hs(this,_),this.symbolName&&-1!==c.indexOf(_)&&(h||(this.symbolAttr(e),h=!0),f=!0),this.rotation&&("x"===_||"y"===_)&&(this.doTransform=!0),f||(this[_+"Setter"]||this._defaultSetter).call(this,m,_,r)},this),this.afterSetters()),i&&i.call(this),p}clip(e){if(e&&!e.clipPath){let n=gs()+"-",i=this.renderer.createElement("clipPath").attr({id:n}).add(this.renderer.defs);pi(e,{clipPath:i,id:n,count:0}),e.add(i)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,n){n=Math.round(n||e.strokeWidth||0);let i=e.x||this.x||0,a=e.y||this.y||0,r=(e.width||this.width||0)+i,c=(e.height||this.height||0)+a,l=Rn(i,n),h=Rn(a,n);return pi(e,{x:l,y:h,width:Rn(r,n)-l,height:Rn(c,n)-h}),Ce(e.strokeWidth)&&(e.strokeWidth=n),e}complexColor(e,n,i){let r,c,l,h,p,f,m,_,b,C,v,a=this.renderer,x=[];vo(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?c="radialGradient":e.linearGradient&&(c="linearGradient"),c){if(l=e[c],p=a.gradients,f=e.stops,b=i.radialReference,us(l)&&(e[c]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===c&&b&&!Ce(l.gradientUnits)&&(h=l,l=La(l,a.getRadialAttr(b,h),{gradientUnits:"userSpaceOnUse"})),mi(l,function(y,P){"id"!==P&&x.push(P,y)}),mi(f,function(y){x.push(y)}),p[x=x.join(",")])C=p[x].attr("id");else{l.id=C=gs();let y=p[x]=a.createElement(c).attr(l).add(a.defs);y.radAttr=h,y.stops=[],f.forEach(function(P){0===P[1].indexOf("rgba")?(m=(r=Z.parse(P[1])).get("rgb"),_=r.get("a")):(m=P[1],_=1);let w=a.createElement("stop").attr({offset:P[0],"stop-color":m,"stop-opacity":_}).add(y);y.stops.push(w)})}v="url("+a.url+"#"+C+")",i.setAttribute(n,v),i.gradient=x,e.toString=function(){return v}}})}css(e){let r,n=this.styles,i={},a=this.element,c=!n;if(n&&mi(e,function(l,h){n&&n[h]!==l&&(i[h]=l,c=!0)}),c){n&&(e=pi(n,i)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===a.nodeName.toLowerCase()&&e.width&&(r=this.textWidth=Oo(e.width)),pi(this.styles,e),r&&!kn&&this.renderer.forExport&&delete e.width;let l=ce&&e.fontSize||null;l&&(ui(l)||/^\d+$/.test(l))&&(e.fontSize+="px");let h=La(e);a.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(p=>h&&delete h[p]),h.color&&(h.fill=h.color,delete h.color)),Mo(a,h)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let n,i=this["stroke-width"];if("inherit"===i&&(i=1),e){let a=(e=e.toLowerCase()).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(n=a.length;n--;)a[n]=""+Oo(a[n])*fn(i,NaN);e=a.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let c,l,e=this,n=e.element||{},i=e.renderer,a=n.ownerSVGElement,r="SPAN"===n.nodeName&&e.parentGroup||void 0;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,hs(e),e.clipPath&&a){let h=e.clipPath;[].forEach.call(a.querySelectorAll("[clip-path],[CLIP-PATH]"),function(p){p.getAttribute("clip-path").indexOf(h.element.id)>-1&&p.removeAttribute("clip-path")}),e.clipPath=h.destroy()}if(e.stops){for(l=0;l<e.stops.length;l++)e.stops[l].destroy();e.stops.length=0,e.stops=void 0}for(e.safeRemoveChild(n);r?.div&&0===r.div.childNodes.length;)c=r.parentGroup,e.safeRemoveChild(r.div),delete r.div,r=c;e.alignOptions&&Mh(i.alignedObjects,e),mi(e,(h,p)=>{(e[p]?.parentGroup===e||-1!==["connector","foreignObject"].indexOf(p))&&e[p]?.destroy?.(),delete e[p]})}dSetter(e,n,i){us(e)&&("string"==typeof e[0]&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((a,r,c)=>r?.join?(c?a+" ":"")+r.join(" "):(r||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[n]!==e&&(i.setAttribute(n,e),this[n]=e)}fillSetter(e,n,i){"string"==typeof e?i.setAttribute(n,e):e&&this.complexColor(e,n,i)}hrefSetter(e,n,i){i.setAttributeNS("http://www.w3.org/1999/xlink",n,e)}getBBox(e,n){let i,a,r,c,{alignValue:l,element:h,renderer:p,styles:f,textStr:m}=this,{cache:_,cacheKeys:b}=p,C=h.namespaceURI===this.SVG_NS,x=fn(n,this.rotation,0),v=p.styledMode?h&&pe.prototype.getStyle.call(h,"font-size"):f.fontSize;if(Ce(m)&&(-1===(c=m.toString()).indexOf("<")&&(c=c.replace(/\d/g,"0")),c+=["",p.rootFontSize,v,x,this.textWidth,l,f.lineClamp,f.textOverflow,f.fontWeight].join(",")),c&&!e&&(i=_[c]),!i||i.polygon){if(C||p.forExport){try{r=this.fakeTS&&function(P){let w=h.querySelector(".highcharts-text-outline");w&&Mo(w,{display:P})},ms(r)&&r("none"),i=h.getBBox?pi({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight,x:0,y:0},ms(r)&&r("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();a=i.height,C&&(i.height=a={"11px,17":14,"13px,20":16}[`${v||""},${Math.round(a)}`]||a),x&&(i=this.getRotatedBox(i,x));let y={bBox:i};vo(this,"afterGetBBox",y),i=y.bBox}if(c&&(""===m||i.height>0)){for(;b.length>250;)delete _[b.shift()];_[c]||b.push(c),_[c]=i}return i}getRotatedBox(e,n){let{x:i,y:a,width:r,height:c}=e,{alignValue:l,translateY:h,rotationOriginX:p=0,rotationOriginY:f=0}=this,m=Po(l),_=Number(this.element.getAttribute("y")||0)-(h?0:a),b=n*ds,C=(n-90)*ds,x=Math.cos(b),v=Math.sin(b),y=r*x,P=r*v,w=Math.cos(C),I=Math.sin(C),[[R,T],[k,A]]=[p,f].map(dt=>[dt-dt*x,dt*v]),F=i+m*(r-y)+R+A+_*w,G=F+y,j=G-c*w,U=j-y,K=a+_-m*P-T+k+_*I,it=K+P,rt=it-c*I,et=rt-P,ct=Math.min(F,G,j,U),Xt=Math.min(K,it,rt,et);return{x:ct,y:Xt,width:Math.max(F,G,j,U)-ct,height:Math.max(K,it,rt,et)-Xt,polygon:[[F,K],[G,it],[j,rt],[U,et]]}}getStyle(e){return xh.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,n){this.onEvents={},this.opacity=1,this.SVG_NS=Ie,this.element="span"===n||"body"===n?ps(n):di.createElementNS(this.SVG_NS,n),this.renderer=e,this.styles={},vo(this,"afterInit")}on(e,n){let{onEvents:i}=this;return i[e]&&i[e](),i[e]=yh(this.element,e,n),this}opacitySetter(e,n,i){let a=Number(Number(e).toFixed(3));this.opacity=a,i.setAttribute(n,a)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(wo(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let n=e.parentNode;n&&n.removeChild(e)}setRadialReference(e){let n=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,n?.radAttr&&n.animate(this.renderer.getRadialAttr(e,n.radAttr)),this}shadow(e){let{renderer:n}=this,i=La(90===this.parentGroup?.rotation?{offsetX:-1,offsetY:-1}:{},vh(e)?e:{}),a=n.shadowDefinition(i);return this.attr({filter:e?`url(${n.url}#${a})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,n,i){this[n]=e,i.setAttribute(n,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let i,e=this.getStyle("stroke-width"),n=0;return/px$/.test(e)?n=Oo(e):""!==e&&($a(i=di.createElementNS(Ie,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(i),n=i.getBBox().width,i.parentNode.removeChild(i)),n}symbolAttr(e){let n=this;
vendor: 6,553 bytes, line 1
1pe.symbolCustomAttribs.forEach(function(i){n[i]=fn(e[i],n[i])}),n.attr({d:n.renderer.symbols[n.symbolName](n.x,n.y,n.width,n.height,n)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let n=this.element,i=n.getElementsByTagName("title")[0]||di.createElementNS(this.SVG_NS,"title");n.insertBefore?n.insertBefore(i,n.firstChild):n.appendChild(i),i.textContent=wh(fn(e,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,n){return this.attr({translateX:e,translateY:n})}updateTransform(e="transform"){let{element:n,foreignObject:i,matrix:a,padding:r,rotation:c=0,rotationOriginX:l,rotationOriginY:h,scaleX:p,scaleY:f,text:m,translateX:_=0,translateY:b=0}=this,C=["translate("+_+","+b+")"];Ce(a)&&C.push("matrix("+a.join(",")+")"),c&&(C.push("rotate("+c+" "+(l??n.getAttribute("x")??this.x??0)+" "+(h??n.getAttribute("y")??this.y??0)+")"),"SPAN"!==m?.element.tagName||m?.foreignObject||m.attr({rotation:c,rotationOriginX:(l||0)-r,rotationOriginY:(h||0)-r})),(Ce(p)||Ce(f))&&C.push("scale("+fn(p,1)+" "+fn(f,1)+")"),C.length&&!(m||this).textPath&&(i?.element||n).setAttribute(e,C.join(" "))}visibilitySetter(e,n,i){"inherit"===e?i.removeAttribute(n):this[n]!==e&&i.setAttribute(n,e),this[n]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,n){let h,p,f,_,C,i=this.renderer,a=this.parentGroup,r=(a||i).element||i.box,c=this.element,l=r===i.box,m=!1,b=this.added;if(Ce(e)?(c.setAttribute("data-z-index",e),this[n]===(e*=1)&&(b=!1)):Ce(this[n])&&c.removeAttribute("data-z-index"),this[n]=e,b){for((e=this.zIndex)&&a&&(a.handleZ=!0),C=(h=r.childNodes).length-1;C>=0&&!m;C--)_=!Ce(f=(p=h[C]).getAttribute("data-z-index")),p!==c&&(e<0&&_&&!l&&!C?(r.insertBefore(c,h[C]),m=!0):(Oo(f)<=e||_&&(!Ce(e)||e>=0))&&(r.insertBefore(c,h[C+1]),m=!0));m||(r.insertBefore(c,h[3*!!l]),m=!0)}return m}}pe.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],pe.prototype.strokeSetter=pe.prototype.fillSetter,pe.prototype.yGetter=pe.prototype.xGetter,pe.prototype.matrixSetter=pe.prototype.rotationOriginXSetter=pe.prototype.rotationOriginYSetter=pe.prototype.rotationSetter=pe.prototype.scaleXSetter=pe.prototype.scaleYSetter=pe.prototype.translateXSetter=pe.prototype.translateYSetter=pe.prototype.verticalAlignSetter=function(d,e){this[e]=d,this.doTransform=!0};let Ue=pe,{defined:fs,extend:Ih,getAlignFactor:_s,isNumber:Yi,merge:Th,pick:Io,removeEvent:bs}=q;class An extends Ue{constructor(e,n,i,a,r,c,l,h,p,f){let m;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=n,this.x=i,this.y=a,this.anchorX=c,this.anchorY=l,this.baseline=p,this.className=f,this.addClass("button"===f?"highcharts-no-tooltip":"highcharts-label"),f&&this.addClass("highcharts-"+f),this.text=e.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof r&&((m=/^url\((.*?)\)$/.test(r))||this.renderer.symbols[r])&&(this.symbolKey=r),this.bBox=An.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||m,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let n=_s(e);this.textAlign=e,n!==this.alignFactor&&(this.alignFactor=n,this.bBox&&Yi(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(e,n){this.anchorX=e,this.boxAttr(n,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,n){this.anchorY=e,this.boxAttr(n,e-this.ySetting)}boxAttr(e,n){this.box?this.box.attr(e,n):this.deferredAttr[e]=n}css(e){if(e){let n={};e=Th(e),An.textProps.forEach(i=>{void 0!==e[i]&&(n[i]=e[i],delete e[i])}),this.text.css(n),"fontSize"in n||"fontWeight"in n?this.updateTextPadding():("width"in n||"textOverflow"in n)&&this.updateBoxSize()}return Ue.prototype.css.call(this,e)}destroy(){bs(this.element,"mouseenter"),bs(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Ue.prototype.destroy.call(this)}fillSetter(e,n){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(n,e)}getBBox(e,n){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:i,height:a=0,translateX:r=0,translateY:c=0,width:l=0}=this,h=Io(this.paddingLeft,i),p=n??(this.rotation||0),f={width:l,height:a,x:r+this.bBox.x-h,y:c+this.bBox.y-i+this.baselineOffset};return p&&(f=this.getRotatedBox(f,p)),f}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Io(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&fs(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,n){Yi(e)?e!==this[n]&&(this[n]=e,this.updateTextPadding()):this[n]=void 0}rSetter(e,n){this.boxAttr(n,e)}strokeSetter(e,n){this.stroke=e,this.boxAttr(n,e)}"stroke-widthSetter"(e,n){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(n,e)}"text-alignSetter"(e){this.textAlign=this["text-align"]=e,this.updateTextPadding()}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e,n=this.text,i={},a=this.padding,r=this.bBox=Yi(this.widthSetting)&&Yi(this.heightSetting)&&!this.textAlign||!fs(n.textStr)?An.emptyBBox:n.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*a;let c=this.renderer.fontMetrics(n);if(this.baselineOffset=a+Math.min((this.text.firstLineMetrics||c).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2),this.needsBox&&!n.textPath){if(!this.box){let l=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();l.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),l.add(this)}i.x=e=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+e,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(Ih(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,n=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,a=(this.paddingLeft??this.padding)+_s(n)*(this.widthSetting??this.bBox.width);
vendor: 5,573 bytes, line 1
1(a!==e.x||i!==e.y)&&(e.attr({align:n,x:a}),void 0!==i&&e.attr("y",i)),e.x=a,e.y=i}}widthSetter(e){this.widthSetting=Yi(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,n=Io(this.paddingLeft,e),i=Io(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+n+i}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}An.emptyBBox={width:0,height:0,x:0,y:0},An.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:Cs,isNumber:To,pick:Bi}=q;function xs(d,e,n,i,a){let r=[];if(a){let c=a.start||0,l=a.end||0,h=Bi(a.r,n),p=Bi(a.r,i||n),f=2e-4/(a.borderRadius?1:Math.max(h,1)),m=Math.abs(l-c-2*Math.PI)<f;m&&(c=Math.PI/2,l=2.5*Math.PI-f);let _=a.innerR,b=Bi(a.open,m),C=Math.cos(c),x=Math.sin(c),v=Math.cos(l),y=Math.sin(l),P=Bi(a.longArc,l-c-Math.PI<f?0:1),w=["A",h,p,0,P,Bi(a.clockwise,1),d+h*v,e+p*y];w.params={start:c,end:l,cx:d,cy:e},r.push(["M",d+h*C,e+p*x],w),Cs(_)&&((w=["A",_,_,0,P,Cs(a.clockwise)?1-a.clockwise:0,d+_*C,e+_*x]).params={start:l,end:c,cx:d,cy:e},r.push(b?["M",d+_*v,e+_*y]:["L",d+_*v,e+_*y],w)),b||r.push(["Z"])}return r}function ys(d,e,n,i,a){return a?.r?Ga(d,e,n,i,a):[["M",d,e],["L",d+n,e],["L",d+n,e+i],["L",d,e+i],["Z"]]}function Ga(d,e,n,i,a){let r=a?.r||0;return[["M",d+r,e],["L",d+n-r,e],["A",r,r,0,0,1,d+n,e+r],["L",d+n,e+i-r],["A",r,r,0,0,1,d+n-r,e+i],["L",d+r,e+i],["A",r,r,0,0,1,d,e+i-r],["L",d,e+r],["A",r,r,0,0,1,d+r,e],["Z"]]}let Ms={arc:xs,callout:function(d,e,n,i,a){let r=Math.min(a?.r||0,n,i),c=r+6,l=a?.anchorX,h=a?.anchorY||0,p=Ga(d,e,n,i,{r});if(!To(l)||l<n&&l>0&&h<i&&h>0)return p;if(d+l>n-c)if(h>e+c&&h<e+i-c)p.splice(3,1,["L",d+n,h-6],["L",d+n+6,h],["L",d+n,h+6],["L",d+n,e+i-r]);else if(l<n){let f=h<e+c;p.splice(f?2:5,0,["L",l,h],["L",d+n-r,f?e:e+i])}else p.splice(3,1,["L",d+n,i/2],["L",l,h],["L",d+n,i/2],["L",d+n,e+i-r]);else if(d+l<c)if(h>e+c&&h<e+i-c)p.splice(7,1,["L",d,h+6],["L",d-6,h],["L",d,h-6],["L",d,e+r]);else if(l>0){let f=h<e+c;p.splice(f?1:6,0,["L",l,h],["L",d+r,f?e:e+i])}else p.splice(7,1,["L",d,i/2],["L",l,h],["L",d,i/2],["L",d,e+r]);else h>i&&l<n-c?p.splice(5,1,["L",l+6,e+i],["L",l,e+i+6],["L",l-6,e+i],["L",d+r,e+i]):h<0&&l>c&&p.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",n-r,e]);return p},circle:function(d,e,n,i){return xs(d+n/2,e+i/2,n/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(d,e,n,i){return[["M",d+n/2,e],["L",d+n,e+i/2],["L",d+n/2,e+i],["L",d,e+i/2],["Z"]]},rect:ys,roundedRect:Ga,square:ys,triangle:function(d,e,n,i){return[["M",d+n/2,e],["L",d+n,e+i],["L",d,e+i],["Z"]]},"triangle-down":function(d,e,n,i){return[["M",d,e],["L",d+n,e],["L",d+n/2,e+i],["Z"]]}},{doc:ja,SVG_NS:kh,win:vs}=t,{attr:Na,extend:Rh,fireEvent:Ah,isString:Sh,objectEach:Dh,pick:Eh}=q,za=(d,e)=>d.substring(0,e)+"\u2026",Ps=class{constructor(d){let e=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=e?.lineHeight,this.textOutline=e?.textOutline,this.ellipsis="ellipsis"===e?.textOverflow,this.lineClamp=e?.lineClamp,this.noWrap="nowrap"===e?.whiteSpace}buildSVG(){let d=this.svgElement,e=d.element,n=d.renderer,i=Eh(d.textStr,"").toString(),a=-1!==i.indexOf("<"),r=e.childNodes,c=!d.added&&n.box,l=[i,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),d.styles.lineClamp,this.width].join(",");if(l!==d.textCache){d.textCache=l,delete d.actualWidth;for(let h=r.length;h--;)e.removeChild(r[h]);if(a||this.ellipsis||this.width||d.textPath||-1!==i.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(i))){if(""!==i){c&&c.appendChild(e);let h=new Qt(i);this.modifyTree(h.nodes),h.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),c&&c.removeChild(e)}}else e.appendChild(ja.createTextNode(this.unescapeEntities(i)));Sh(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){let d,e=this.svgElement,n=Na(e.element,"x");for(e.firstLineMetrics=void 0;(d=e.element.firstChild)&&/^[\s\u200B]*$/.test(d.textContent||" ");)e.element.removeChild(d);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(c,l)=>{c.nextSibling&&c.previousSibling&&(0===l&&1===c.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(c.previousSibling)),Na(c,{dy:this.getLineHeight(c.nextSibling),x:n}))});let i=this.width||0;if(!i)return;let a=(c,l)=>{let h=c.textContent||"",p=h.replace(/([^\^])-/g,"$1- ").split(" "),f=!this.noWrap&&(p.length>1||e.element.childNodes.length>1),m=this.getLineHeight(l),_=Math.max(0,i-.8*m),b=0,C=e.actualWidth;if(f){let x=[],v=[];for(;l.firstChild&&l.firstChild!==c;)v.push(l.firstChild),l.removeChild(l.firstChild);for(;p.length;)if(p.length&&!this.noWrap&&b>0&&(x.push(c.textContent||""),c.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(c,void 0,p,0===b&&C||0,i,_,(y,P)=>p.slice(0,P).join(" ").replace(/- /g,"-")),C=e.actualWidth,b++,this.lineClamp&&b>=this.lineClamp){p.length&&(this.truncate(c,c.textContent||"",void 0,0,i,_,za),c.textContent=c.textContent?.replace("\u2026","")+"\u2026");break}v.forEach(y=>{l.insertBefore(y,c)}),x.forEach(y=>{l.insertBefore(ja.createTextNode(y),c);let P=ja.createElementNS(kh,"tspan");P.textContent="\u200b",Na(P,{dy:m,x:n}
vendor: 5,348 bytes, line 1
1),l.insertBefore(P,c)})}else this.ellipsis&&h&&this.truncate(c,h,void 0,0,i,_,za)},r=c=>{[].slice.call(c.childNodes).forEach(l=>{l.nodeType===vs.Node.TEXT_NODE?a(l,c):(-1!==l.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),r(l))})};r(e.element)}getLineHeight(d){let e=d.nodeType===vs.Node.TEXT_NODE?d.parentElement:d;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(d){let e=(n,i)=>{let{attributes:a={},children:r,style:c={},tagName:l}=n,h=this.renderer.styledMode;if("b"===l||"strong"===l?h?a.class="highcharts-strong":c.fontWeight="bold":("i"===l||"em"===l)&&(h?a.class="highcharts-emphasized":c.fontStyle="italic"),c?.color&&(c.fill=c.color),"br"===l){a.class="highcharts-br",n.textContent="\u200b";let p=d[i+1];p?.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===l&&r&&r.some(p=>"#text"===p.tagName)&&(n.children=[{children:r,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(n.tagName="tspan"),Rh(n,{attributes:a,style:c}),r&&r.filter(p=>"#text"!==p.tagName).forEach(e)};d.forEach(e),Ah(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,e,n,i,a,r,c){let l,h,p=this.svgElement,{rotation:f}=p,m=[],_=n&&!i?1:0,b=(e||n||"").length,C=b;n||(a=r);let x=function(v,y){let P=y||v,w=d.parentNode;if(w&&void 0===m[P]&&w.getSubStringLength)try{m[P]=i+w.getSubStringLength(0,n?P+1:P)}catch{}return m[P]};if(p.rotation=0,i+(h=x(d.textContent.length))>a){for(;_<=b;)C=Math.ceil((_+b)/2),n&&(l=c(n,C)),h=x(C,l&&l.length-1),_===b?_=b+1:h>a?b=C-1:_=C;0===b?d.textContent="":e&&b===e.length-1||(d.textContent=l||c(e||n,C)),this.ellipsis&&h>a&&this.truncate(d,d.textContent||"",void 0,0,a,r,za)}n&&n.splice(0,C),p.actualWidth=h,p.rotation=f}unescapeEntities(d,e){return Dh(this.renderer.escapes,function(n,i){e&&-1!==e.indexOf(n)||(d=d.toString().replace(RegExp(n,"g"),i))}),d}},{defaultOptions:Fh}=ot,{charts:tn,deg2rad:Ya,doc:gi,isFirefox:ws,isMS:Os,isWebKit:$h,noop:Lh,SVG_NS:Gh,symbolSizes:Ba,win:Xa}=t,{addEvent:ko,attr:Ro,createElement:jh,crisp:Is,css:Ao,defined:Jn,destroyObjectProperties:Nh,extend:qn,isArray:zh,isNumber:fi,isObject:Xi,isString:Yh,merge:Va,pick:Wa,pInt:Bh,replaceNested:Xh,uniqueKey:Vh}=q;class Qn{constructor(e,n,i,a,r,c,l){let h,p;this.x=0,this.y=0;let f=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=f.element;l||f.css(this.getStyle(a||{})),e.appendChild(m),Ro(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&Ro(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=f,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(gi.createTextNode("Created with Highcharts 12.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=c,this.forExport=r,this.styledMode=l,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=f.getStyle("font-size"),this.setSize(n,i,!1),ws&&e.getBoundingClientRect&&((h=function(){Ao(e,{left:0,top:0}),p=e.getBoundingClientRect(),Ao(e,{left:Math.ceil(p.left)-p.left+"px",top:Math.ceil(p.top)-p.top+"px"})})(),this.unSubPixelFix=ko(Xa,"resize",h))}definition(e){return new Qt([e]).addToDOM(this.defs.element)}getReferenceURL(){if((ws||$h)&&gi.getElementsByTagName("base").length){if(!Jn(E)){let e=Vh(),n=new Qt([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(gi.body);Ao(n,{position:"fixed",top:0,left:0,zIndex:9e5}),E="hitme"===gi.elementFromPoint(6,6)?.id,gi.body.removeChild(n)}if(E)return Xh(Xa.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=qn({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),Nh(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,n){return{cx:e[0]-e[2]/2+(n.cx||0)*e[2],cy:e[1]-e[2]/2+(n.cy||0)*e[2],r:(n.r||0)*e[2]}}shadowDefinition(e){let n=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(a=>`${a}-${e[a]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=Va({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${n}`)||this.definition({tagName:"filter",attributes:{id:n,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),n}getShadowFilterContent(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}buildText(e){new Ps(e).buildSVG()}getContrast(e){let n=Z.parse(e).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(fi(n[0])||!Z.useColorMix){let a=n.map(c=>{let l=c/255;return l<=.04?l/12.92:Math.pow((l+.055)/1.055,2.4)}
vendor: 4,165 bytes, line 1
1),r=.2126*a[0]+.7152*a[1]+.0722*a[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+e+" srgb"+i+i+i+")"}button(e,n,i,a,r={},c,l,h,p,f){let m=this.label(e,n,i,p,void 0,void 0,f,void 0,"button"),_=this.styledMode,b=arguments,C=0;r=Va(Fh.global.buttonTheme,r),_&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);let x=r.states||{},v=r.style||{};delete r.states,delete r.style;let y=[Qt.filterUserAttributes(r)],P=[v];return _||["hover","select","disabled"].forEach((w,I)=>{y.push(Va(y[0],Qt.filterUserAttributes(b[I+5]||x[w]||{}))),P.push(y[I+1].style),delete y[I+1].style}),ko(m.element,Os?"mouseover":"mouseenter",function(){3!==C&&m.setState(1)}),ko(m.element,Os?"mouseout":"mouseleave",function(){3!==C&&m.setState(C)}),m.setState=(w=0)=>{if(1!==w&&(m.state=C=w),m.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][w]),!_){m.attr(y[w]);let I=P[w];Xi(I)&&m.css(I)}},m.attr(y[0]),!_&&(m.css(qn({cursor:"default"},v)),f&&m.text.css({pointerEvents:"none"})),m.on("touchstart",w=>w.stopPropagation()).on("click",function(w){3!==C&&a?.call(m,w)})}crispLine(e,n){let[i,a]=e;return Jn(i[1])&&i[1]===a[1]&&(i[1]=a[1]=Is(i[1],n)),Jn(i[2])&&i[2]===a[2]&&(i[2]=a[2]=Is(i[2],n)),e}path(e){let n=this.styledMode?{}:{fill:"none"};return zh(e)?n.d=e:Xi(e)&&qn(n,e),this.createElement("path").attr(n)}circle(e,n,i){let a=Xi(e)?e:void 0===e?{}:{x:e,y:n,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(c,l,h){h.setAttribute("c"+l,c)},r.attr(a)}arc(e,n,i,a,r,c){let l;Xi(e)?(n=(l=e).y,i=l.r,a=l.innerR,r=l.start,c=l.end,e=l.x):l={innerR:a,start:r,end:c};let h=this.symbol("arc",e,n,i,i,l);return h.r=i,h}rect(e,n,i,a,r,c){let l=Xi(e)?e:void 0===e?{}:{x:e,y:n,r,width:Math.max(i||0,0),height:Math.max(a||0,0)},h=this.createElement("rect");return this.styledMode||(void 0!==c&&(l["stroke-width"]=c,qn(l,h.crisp(l))),l.fill="none"),h.rSetter=function(p,f,m){h.r=p,Ro(m,{rx:p,ry:p})},h.rGetter=function(){return h.r||0},h.attr(l)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,n,i){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:Wa(i,!0)?void 0:0}),this.alignElements()}g(e){let n=this.createElement("g");return e?n.attr({class:"highcharts-"+e}):n}image(e,n,i,a,r,c){let l={preserveAspectRatio:"none"};fi(n)&&(l.x=n),fi(i)&&(l.y=i),fi(a)&&(l.width=a),fi(r)&&(l.height=r);let h=this.createElement("image").attr(l),p=function(f){h.attr({href:e}),c.call(h,f)};if(c){h.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let f=new Xa.Image;ko(f,"load",p),f.src=e,f.complete&&p({})}else h.attr({href:e});return h}symbol(e,n,i,a,r,c){let l,h,p,f,m=this,_=/^url\((.*?)\)$/,b=_.test(e),C=!b&&(this.symbols[e]?e:"circle"),x=C&&this.symbols[C];if(x)"number"==typeof n&&(h=x.call(this.symbols,n||0,i||0,a||0,r||0,c)),l=this.path(h),m.styledMode||l.attr("fill","none"),qn(l,{symbolName:C||void 0,x:n,y:i,width:a,height:r}),c&&qn(l,c);else if(b){p=e.match(_)[1];let v=l=this.image(p);v.imgwidth=Wa(c?.width,Ba[p]?.width),v.imgheight=Wa(c?.height,Ba[p]?.height),f=y=>y.attr({width:y.width,height:y.height}),["width","height"].forEach(y=>{v[`${y}Setter`]=function(P,w){this[w]=P;let{alignByTranslate:I,element:R,width:T,height:k,imgwidth:A,imgheight:F}=this,G="width"===w?A:F,j=1;c&&"within"===c.backgroundSize&&T&&k&&A&&F?(j=Math.min(T/A,k/F),Ro(R,{width:Math.round(A*j),height:Math.round(F*j)})):R&&G&&R.setAttribute(w,G),!I&&A&&F&&this.translate(((T||0)-A*j)/2,((k||0)-F*j)/2)}}),Jn(n)&&v.attr({x:n,y:i}),v.isImg=!0,v.symbolUrl=e,Jn(v.imgwidth)&&Jn(v.imgheight)?f(v):(v.attr({width:0,height:0}),jh("img",{onload:function(){let y=tn[m.chartIndex];0===this.width&&(Ao(this,{position:"absolute",top:"-999em"}),gi.body.appendChild(this)),Ba[p]={width:this.width,height:this.height},v.imgwidth=this.width,v.imgheight=this.height,v.element&&f(v),this.parentNode&&this.parentNode.removeChild(this),m.imgCount--,m.imgCount||!y||y.hasLoaded||y.onload()},src:p}),this.imgCount++)}return l}
1clipRect(e,n,i,a){return this.rect(e,n,i,a,0)}text(e,n,i,a){let r={};if(a&&(this.allowHTML||!this.forExport))return this.html(e,n,i);r.x=Math.round(n||0),i&&(r.y=Math.round(i)),Jn(e)&&(r.text=e);let c=this.createElement("text").attr(r);return a&&(!this.forExport||this.allowHTML)||(c.xSetter=function(l,h,p){let f=p.getElementsByTagName("tspan"),m=p.getAttribute(h);for(let b,_=0;_<f.length;_++)(b=f[_]).getAttribute(h)===m&&b.setAttribute(h,l);p.setAttribute(h,l)}),c}fontMetrics(e){let n=Bh(Ue.prototype.getStyle.call(e,"font-size")||0),i=n<24?n+3:Math.round(1.2*n);return{h:i,b:Math.round(.8*i),f:n}}rotCorr(e,n,i){let a=e;return n&&i&&(a=Math.max(a*Math.cos(n*Ya),4)),{x:-e/3*Math.sin(n*Ya),y:a}}pathToSegments(e){let n=[],i=[],a={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let r=0;r<e.length;r++)Yh(i[0])&&fi(e[r])&&i.length===a[i[0].toUpperCase()]&&e.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof e[r]&&(i.length&&n.push(i.slice(0)),i.length=0),i.push(e[r]);return n.push(i.slice(0)),n}label(e,n,i,a,r,c,l,h,p){return new An(this,e,n,i,a,r,c,l,h,p)}alignElements(){this.alignedObjects.forEach(e=>e.align())}}qn(Qn.prototype,{Element:Ue,SVG_NS:Gh,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:Ms,draw:Lh}),Ni.registerRendererType("svg",Qn,!0);let{composed:Wh,isFirefox:Uh}=t,{attr:Hh,css:Sn,createElement:Jh,defined:Ts,extend:qh,getAlignFactor:Qh,isNumber:So,pInt:Zh,pushUnique:Kh}=q;function ks(d,e,n){let i=this.div?.style||n.style;Ue.prototype[`${e}Setter`].call(this,d,e,n),i&&(i[e]=d)}let td=(d,e)=>{if(!d.div){let n=Hh(d.element,"class"),i=d.css,a=Jh("div",n?{className:n}:void 0,{position:"absolute",left:`${d.translateX||0}px`,top:`${d.translateY||0}px`,...d.styles,display:d.display,opacity:d.opacity,visibility:d.visibility},d.parentGroup?.div||e);d.classSetter=(r,c,l)=>{l.setAttribute("class",r),a.className=r},d.translateXSetter=d.translateYSetter=(r,c)=>{d[c]=r,a.style["translateX"===c?"left":"top"]=`${r}px`,d.doTransform=!0},d.opacitySetter=d.visibilitySetter=ks,d.css=r=>(i.call(d,r),r.cursor&&(a.style.cursor=r.cursor),r.pointerEvents&&(a.style.pointerEvents=r.pointerEvents),d),d.on=function(){return Ue.prototype.on.apply({element:a,onEvents:d.onEvents},arguments),d},d.div=a}return d.div};class _i extends Ue{static compose(e){Kh(Wh,this.compose)&&(e.prototype.html=function(n,i,a){return new _i(this,"span").attr({text:n,x:Math.round(i),y:Math.round(a)})})}constructor(e,n){super(e,n),_i.useForeignObject?this.foreignObject=e.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,n,i){this.xCorr=-e*i,this.yCorr=-n}css(e){let n,{element:i}=this,a="SPAN"===i.tagName&&e&&"width"in e,r=a&&e.width;return a&&(delete e.width,this.textWidth=Zh(r)||void 0,n=!0),"ellipsis"===e?.textOverflow&&(e.overflow="hidden",e.whiteSpace="nowrap"),e?.lineClamp&&(e.display="-webkit-box",e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient="vertical",e.overflow="hidden"),So(Number(e?.fontSize))&&(e.fontSize+="px"),qh(this.styles,e),Sn(i,e),n&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let{element:e,foreignObject:n,oldTextWidth:i,renderer:a,rotation:r,rotationOriginX:c,rotationOriginY:l,scaleX:h,scaleY:p,styles:{display:f="inline-block",whiteSpace:m},textAlign:_="left",textWidth:b,translateX:C=0,translateY:x=0,x:v=0,y=0}=this;if(n||Sn(e,{marginLeft:`${C}px`,marginTop:`${x}px`}),"SPAN"===e.tagName){let P,w=[r,_,e.innerHTML,b,this.textAlign].join(","),I=-1*this.parentGroup?.padding||0;if(b!==i){let A=this.textPxLength?this.textPxLength:(Sn(e,{width:"",whiteSpace:m||"nowrap"}),e.offsetWidth),F=b||0,G=""===e.style.textOverflow&&e.style.webkitLineClamp;(F>i||A>F||G)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(Sn(e,{width:(r||h||A>F||G)&&So(b)?b+"px":"auto",display:f,whiteSpace:m||"normal"}),this.oldTextWidth=b)}n&&(Sn(e,{display:"inline-block",verticalAlign:"top"}),n.attr({width:a.width,height:a.height})),w!==this.cTT&&(P=a.fontMetrics(e).b,Ts(r)&&!n&&(r!==(this.oldRotation||0)||_!==this.oldAlign)&&Sn(e,{transform:`rotate(${r}deg)`,transformOrigin:`${I}% ${I}px`}
1),this.getSpanCorrection(!Ts(r)&&!this.textWidth&&this.textPxLength||e.offsetWidth,P,Qh(_)));let{xCorr:R=0,yCorr:T=0}=this,k={left:`${v+R}px`,top:`${y+T}px`,textAlign:_,transformOrigin:`${(c??v)-R-v-I}px ${(l??y)-T-y-I}px`};(h||p)&&(k.transform=`scale(${h??1},${p??1})`),n?(super.updateTransform(),So(v)&&So(y)?(n.attr({x:v+R,y:y+T,width:e.offsetWidth+3,height:e.offsetHeight,"transform-origin":e.getAttribute("transform-origin")||"0 0"}),Sn(e,{display:f,textAlign:_})):Uh&&n.attr({width:0,height:0})):Sn(e,k),this.cTT=w,this.oldRotation=r,this.oldAlign=_}}add(e){let{foreignObject:n,renderer:i}=this,a=i.box.parentNode,r=[];if(n)n.add(e),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(n));else{let c;if(this.parentGroup=e,e&&!(c=e.div)){let l=e;for(;l;)r.push(l),l=l.parentGroup;for(let h of r.reverse())c=td(h,a)}(c||a).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,Qt.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,n){this[n]=e,this.doTransform=!0}}let Zn=_i.prototype;Zn.visibilitySetter=Zn.opacitySetter=ks,Zn.ySetter=Zn.rotationSetter=Zn.rotationOriginXSetter=Zn.rotationOriginYSetter=Zn.xSetter,function(d){d.xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},d.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:e}=this.axis.chart;return e(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0}}(Nn||(Nn={}));let ed=Nn,{addEvent:nd,isFunction:id,objectEach:od,removeEvent:ad}=q;(Vt||(Vt={})).registerEventOptions=function(d,e){d.eventOptions=d.eventOptions||{},od(e.events,function(n,i){d.eventOptions[i]!==n&&(d.eventOptions[i]&&(ad(d,i,d.eventOptions[i]),delete d.eventOptions[i]),id(n)&&(d.eventOptions[i]=n,nd(d,i,n,{order:0})))})};let Do=Vt,{deg2rad:Ua}=t,{clamp:rd,correctFloat:Eo,defined:Ha,destroyObjectProperties:sd,extend:Rs,fireEvent:Vi,getAlignFactor:ld,isNumber:Fo,merge:cd,objectEach:hd,pick:en}=q,bi=class{constructor(d,e,n,i,a){this.isNew=!0,this.isNewLabel=!0,this.axis=d,this.pos=e,this.type=n||"",this.parameters=a||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,Vi(this,"init"),n||i||this.addLabel()}addLabel(){let x,v,y,d=this,e=d.axis,n=e.options,i=e.chart,a=e.categories,r=e.logarithmic,c=e.names,l=d.pos,h=en(d.options?.labels,n.labels),p=e.tickPositions,f=l===p[0],m=l===p[p.length-1],_=(!h.step||1===h.step)&&1===e.tickInterval,b=p.info,C=d.label,P=this.parameters.category||(a?en(a[l],c[l],l):l);r&&Fo(P)&&(P=Eo(r.lin2log(P))),e.dateTime&&(b?x=(v=i.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&b.higherRanks[l]||b.unitName])).main:Fo(P)&&(x=e.dateTime.getXDateFormat(P,n.dateTimeLabelFormats||{}))),d.isFirst=f,d.isLast=m;let w={axis:e,chart:i,dateTimeLabelFormat:x,isFirst:f,isLast:m,pos:l,tick:d,tickPositionInfo:b,value:P};Vi(this,"labelFormat",w);let I=k=>h.formatter?h.formatter.call(k,k):h.format?(k.text=e.defaultLabelFormatter.call(k),Oe.format(h.format,k,i)):e.defaultLabelFormatter.call(k),R=I.call(w,w),T=v?.list;d.shortenLabel=T?function(){for(y=0;y<T.length;y++)if(Rs(w,{dateTimeLabelFormat:T[y]}),C.attr({text:I.call(w,w)}),C.getBBox().width<e.getSlotWidth(d)-2*(h.padding||0))return;C.attr({text:""})}:void 0,_&&e._addedPlotLB&&d.moveLabel(R,h),Ha(C)||d.movedLabel?C&&C.textStr!==R&&!_&&(!C.textWidth||h.style.width||C.styles.width||C.css({width:null}),C.attr({text:R}),C.textPxLength=C.getBBox().width):(d.label=C=d.createLabel(R,h),d.rotation=0)}createLabel(d,e,n){let i=this.axis,{renderer:a,styledMode:r}=i.chart,c=e.style.whiteSpace,l=Ha(d)&&e.enabled?a.text(d,n?.x,n?.y,e.useHTML).add(i.labelGroup):void 0;return l&&(r||l.css(cd(e.style)),l.textPxLength=l.getBBox().width,!r&&c&&l.css({whiteSpace:c})),l}destroy(){sd(this,this.axis)}getPosition(d,e,n,i){let a=this.axis,r=a.chart,c=i&&r.oldChartHeight||r.chartHeight,l={x:d?Eo(a.translate(e+n,void 0,void 0,i)+a.transB):a.left+a.offset+(a.opposite?(i&&r.oldChartWidth||r.chartWidth)-a.right-a.left:0),y:d?c-a.bottom+a.offset-(a.opposite?a.height:0):Eo(c-a.translate(e+n,void 0,void 0,i)-a.transB)};return l.y=rd(l.y,-1e9,1e9),Vi(this,"afterGetPosition",{pos:l}),l}getLabelPosition(d,e,n,i,a,r,c,l){let h,p,f=this.axis,m=f.transA,_=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,b=f.staggerLines,C=f.tickRotCorr||{x:0,y:0},x=i||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),v=a.distance,y={};return h=0===f.side?n.rotation?-v:-n.getBBox().height:2===f.side?C.y+v:Math.cos(n.rotation*Ua)*(C.y-n.getBBox(!1,0).height/2),Ha(a.y)&&(h=0===f.side&&f.horiz?a.y+h:a.y),d=d+en(a.x,[0,1,0,-1][f.side]*v)+x+C.x-(r&&i?r*m*(_?-1:1):0),e=e+h-(r&&!i?r*m*(_?1:-1):0),b&&(p=c/(l||1)%b,f.opposite&&(p=b-p-1),e+=p*(f.labelOffset/b)),y.x=d,y.y=Math.round(e),Vi(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:r,index:c}),y}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(d,e,n,i,a=!1,r){return r.crispLine([["M",d,e],["L",d+(a?0:-n),e+(a?n:0)]],i)}handleOverflow(d){let x,e=this.axis,n=e.options.labels,i=d.x,a=e.chart.chartWidth,r=e.chart.spacing,c=en(e.labelLeft,Math.min(e.pos,r[3])),l=en(e.labelRight,Math.max(e.isRadial?
10:e.pos+e.len,a-r[1])),h=this.label,p=this.rotation,f=ld(e.labelAlign||h.attr("align")),m=h.getBBox().width,_=e.getSlotWidth(this),b=_,C=1;p||"justify"!==n.overflow?p<0&&i-f*m<c?x=Math.round(i/Math.cos(p*Ua)-c):p>0&&i+f*m>l&&(x=Math.round((a-i)/Math.cos(p*Ua))):(i-f*m<c?b=d.x+b*(1-f)-c:i+(1-f)*m>l&&(b=l-d.x+b*f,C=-1),(b=Math.min(_,b))<_&&"center"===e.labelAlign&&(d.x+=C*(_-b-f*(_-Math.min(m,b)))),(m>b||e.autoRotation&&h?.styles?.width)&&(x=b)),x&&h&&(this.shortenLabel?this.shortenLabel():h.css(Rs({},{width:Math.floor(x)+"px",lineClamp:+!e.isRadial})))}moveLabel(d,e){let c,n=this,i=n.label,a=n.axis,r=!1;i&&i.textStr===d?(n.movedLabel=i,r=!0,delete n.label):hd(a.ticks,function(l){r||l.isNew||l===n||!l.label||l.label.textStr!==d||(n.movedLabel=l.label,r=!0,l.labelPos=n.movedLabel.xy,delete l.label)}),!r&&(n.labelPos||i)&&(c=n.labelPos||i.xy,n.movedLabel=n.createLabel(d,e,c),n.movedLabel&&n.movedLabel.attr({opacity:0}))}render(d,e,n){let i=this.axis,a=i.horiz,r=this.pos,c=en(this.tickmarkOffset,i.tickmarkOffset),l=this.getPosition(a,r,c,e),f=i.pos,m=f+i.len,_=a?l.x:l.y,b=en(n,this.label?.newOpacity,1);!i.chart.polar&&(Eo(_)<f||_>m)&&(n=0),n??(n=1),this.isActive=!0,this.renderGridLine(e,n),this.renderMark(l,n),this.renderLabel(l,e,b,d),this.isNew=!1,Vi(this,"afterRender")}renderGridLine(d,e){let f,n=this.axis,i=n.options,a={},r=this.pos,c=this.type,l=en(this.tickmarkOffset,n.tickmarkOffset),h=n.chart.renderer,p=this.gridLine,m=i.gridLineWidth,_=i.gridLineColor,b=i.gridLineDashStyle;"minor"===this.type&&(m=i.minorGridLineWidth,_=i.minorGridLineColor,b=i.minorGridLineDashStyle),p||(n.chart.styledMode||(a.stroke=_,a["stroke-width"]=m||0,a.dashstyle=b),c||(a.zIndex=1),d&&(e=0),this.gridLine=p=h.path().attr(a).addClass("highcharts-"+(c?c+"-":"")+"grid-line").add(n.gridGroup)),p&&(f=n.getPlotLinePath({value:r+l,lineWidth:p.strokeWidth(),force:"pass",old:d,acrossPanes:!1}))&&p[d||this.isNew?"attr":"animate"]({d:f,opacity:e})}renderMark(d,e){let n=this.axis,i=n.options,a=n.chart.renderer,r=this.type,c=n.tickSize(r?r+"Tick":"tick"),l=d.x,h=d.y,p=en(i["minor"!==r?"tickWidth":"minorTickWidth"],!r&&n.isXAxis?1:0),f=i["minor"!==r?"tickColor":"minorTickColor"],m=this.mark,_=!m;c&&(n.opposite&&(c[0]=-c[0]),m||(this.mark=m=a.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||m.attr({stroke:f,"stroke-width":p})),m[_?"attr":"animate"]({d:this.getMarkPath(l,h,c[0],m.strokeWidth(),n.horiz,a),opacity:e}))}renderLabel(d,e,n,i){let a=this.axis,r=a.horiz,c=a.options,l=this.label,h=c.labels,p=h.step,f=en(this.tickmarkOffset,a.tickmarkOffset),m=d.x,_=d.y,b=!0;l&&Fo(m)&&(l.xy=d=this.getLabelPosition(m,_,l,r,h,f,i,p),this.isFirst&&!this.isLast&&!c.showFirstLabel||this.isLast&&!this.isFirst&&!c.showLastLabel?b=!1:!r||h.step||h.rotation||e||0===n||this.handleOverflow(d),p&&i%p&&(b=!1),b&&Fo(d.y)?(d.opacity=n,l[this.isNewLabel?"attr":"animate"](d).show(!0),this.isNewLabel=!1):(l.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let d=this.label,e=this.axis;d&&!this.isNew&&(d.animate({opacity:0}
1,void 0,d.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:dd}=$t,{xAxis:As,yAxis:pd}=ed,{defaultOptions:Ja}=ot,{registerEventOptions:ud}=Do,{deg2rad:md}=t,{arrayMax:Ss,arrayMin:gd,clamp:qa,correctFloat:Re,defined:Bt,destroyObjectProperties:fd,erase:Ds,error:Qa,extend:$o,fireEvent:te,getClosestDistance:Es,insertItem:_d,isArray:Fs,isNumber:mt,isString:$s,merge:Lo,normalizeTickInterval:bd,objectEach:Go,pick:vt,relativeLength:Wi,removeEvent:Cd,splat:xd,syncTimeout:yd}=q,Ls=(d,e)=>bd(e,void 0,void 0,vt(d.options.allowDecimals,e<.5||void 0!==d.tickAmount),!!d.tickAmount);$o(Ja,{xAxis:As,yAxis:Lo(As,pd)});let Ui=(()=>{class d{constructor(n,i,a){this.init(n,i,a)}init(n,i,a=this.coll){let r="xAxis"===a,c=this.isZAxis||(n.inverted?!r:r);this.chart=n,this.horiz=c,this.isXAxis=r,this.coll=a,te(this,"init",{userOptions:i}),this.opposite=vt(i.opposite,this.opposite),this.side=vt(i.side,this.side,c?2*!this.opposite:this.opposite?1:3),this.setOptions(i);let l=this.options,h=l.labels;this.type??(this.type=l.type||"linear"),this.uniqueNames??(this.uniqueNames=l.uniqueNames??!0),te(this,"afterSetType"),this.userOptions=i,this.minPixelPadding=0,this.reversed=vt(l.reversed,this.reversed),this.visible=l.visible,this.zoomEnabled=l.zoomEnabled,this.hasNames="category"===this.type||!0===l.categories,this.categories=Fs(l.categories)&&l.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=Bt(l.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=l.minRange||l.maxZoom,this.range=l.range,this.offset=l.offset||0,this.max=void 0,this.min=void 0;let p=vt(l.crosshair,xd(n.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===p?{}:p,-1===n.axes.indexOf(this)&&(r?n.axes.splice(n.xAxis.length,0,this):n.axes.push(this),_d(this,n[this.coll])),n.orderItems(this.coll),this.series=this.series||[],n.inverted&&!this.isZAxis&&r&&!Bt(this.reversed)&&(this.reversed=!0),this.labelRotation=mt(h.rotation)?h.rotation:void 0,ud(this,l),te(this,"afterInit")}setOptions(n){this.options=Lo(this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}},"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},Ja[this.coll],n),te(this,"afterSetOptions",{userOptions:n})}defaultLabelFormatter(){let b,C,n=this.axis,{numberFormatter:i}=this.chart,a=mt(this.value)?this.value:NaN,r=n.chart.time,c=n.categories,l=this.dateTimeLabelFormat,h=Ja.lang,p=h.numericSymbols,f=h.numericSymbolMagnitude||1e3,m=n.logarithmic?Math.abs(a):n.tickInterval,_=p?.length;if(c)C=`${this.value}`;else if(l)C=r.dateFormat(l,a,!0);else if(_&&p&&m>=1e3)for(;_--&&void 0===C;)m>=(b=Math.pow(f,_+1))&&10*a%b==0&&null!==p[_]&&0!==a&&(C=i(a/b,-1)+p[_]);return void 0===C&&(C=Math.abs(a)>=1e4?i(a,-1):i(a,-1,void 0,"")),C}getSeriesExtremes(){let n,i=this;te(this,"getSeriesExtremes",null,function(){i.hasVisibleSeries=!1,i.dataMin=i.dataMax=i.threshold=void 0,i.softThreshold=!i.isXAxis,i.series.forEach(a=>{if(a.reserveSpace()){let c,h,p,r=a.options,l=r.threshold;if(i.hasVisibleSeries=!0,i.positiveValuesOnly&&0>=(l||0)&&(l=void 0),i.isXAxis)(c=a.getColumn("x")).length&&(c=i.logarithmic?c.filter(f=>f>0):c,h=(n=a.getXExtremes(c)).min,p=n.max,mt(h)||h instanceof Date||(c=c.filter(mt),h=(n=a.getXExtremes(c)).min,p=n.max),c.length&&(i.dataMin=Math.min(vt(i.dataMin,h),h),i.dataMax=Math.max(vt(i.dataMax,p),p)));else{let f=a.applyExtremes();mt(f.dataMin)&&(h=f.dataMin,i.dataMin=Math.min(vt(i.dataMin,h),h)),mt(f.dataMax)&&(p=f.dataMax,i.dataMax=Math.max(vt(i.dataMax,p),p)),Bt(l)&&(i.threshold=l),(!r.softThreshold||i.positiveValuesOnly)&&(i.softThreshold=!1)}}})}),te(this,"afterGetSeriesExtremes")}translate(n,i,a,r,c,l){let h=this.linkedParent||this,p=r&&h.old?h.old.min:h.min;if(!mt(p))return NaN;let f=h.minPixelPadding,m=(h.isOrdinal||h.brokenAxis?.hasBreaks||h.logarithmic&&c)&&h.lin2val,_=1,b=0,C=r&&h.old?h.old.transA:h.transA,x=0;return C||(C=h.transA),a&&(_*=-1,b=h.len),h.reversed&&(_*=-1,b-=_*(h.sector||h.len)),i?(x=(n=n*_+b-f)/C+p,m&&(x=h.lin2val(x))):(m&&(n=h.val2lin(n)),x=_*(n-p)*C+b+_*f+(mt(l)?C
1*l:0),h.isRadial||(x=Re(x))),x}toPixels(n,i){return this.translate(this.chart?.time.parse(n)??NaN,!1,!this.horiz,void 0,!0)+(i?0:this.pos)}toValue(n,i){return this.translate(n-(i?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(n){let x,v,y,P,w,i=this,a=i.chart,r=i.left,c=i.top,l=n.old,h=n.value,p=n.lineWidth,f=l&&a.oldChartHeight||a.chartHeight,m=l&&a.oldChartWidth||a.chartWidth,_=i.transB,b=n.translatedValue,C=n.force;function I(T,k,A){return"pass"!==C&&(T<k||T>A)&&(C?T=qa(T,k,A):w=!0),T}let R={value:h,lineWidth:p,old:l,force:C,acrossPanes:n.acrossPanes,translatedValue:b};return te(this,"getPlotLinePath",R,function(T){x=y=(b=qa(b=vt(b,i.translate(h,void 0,void 0,l)),-1e9,1e9))+_,v=P=f-b-_,mt(b)?i.horiz?(v=c,P=f-i.bottom+(i.options.isInternal?0:a.scrollablePixelsY||0),x=y=I(x,r,r+i.width)):(x=r,y=m-i.right+(a.scrollablePixelsX||0),v=P=I(v,c,c+i.height)):(w=!0,C=!1),T.path=w&&!C?void 0:a.renderer.crispLine([["M",x,v],["L",y,P]],p||1)}),R.path}getLinearTickPositions(n,i,a){let r,c,l,h=Re(Math.floor(i/n)*n),p=Re(Math.ceil(a/n)*n),f=[];if(Re(h+n)===h&&(l=20),this.single)return[i];for(r=h;r<=p&&(f.push(r),(r=Re(r+n,l))!==c);)c=r;return f}getMinorTickInterval(){let{minorTicks:n,minorTickInterval:i}=this.options;return!0===n?vt(i,"auto"):!1!==n?i:void 0}getMinorTickPositions(){let f,n=this.options,i=this.tickPositions,a=this.minorTickInterval,r=this.pointRangePadding||0,c=(this.min||0)-r,l=(this.max||0)+r,h=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:l-c,p=[];if(h&&h/a<this.len/3){let m=this.logarithmic;if(m)this.paddedTicks.forEach(function(_,b,C){b&&p.push.apply(p,m.getLogTickPositions(a,C[b-1],C[b],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())p=p.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(a),c,l,n.startOfWeek));else for(f=c+(i[0]-c)%a;f<=l&&f!==p[0];f+=a)p.push(f)}return 0!==p.length&&this.trimTicks(p),p}adjustForMinRange(){let h,p,f,m,n=this.options,i=this.logarithmic,a=this.chart.time,{max:r,min:c,minRange:l}=this;this.isXAxis&&void 0===l&&!i&&(l=Bt(n.min)||Bt(n.max)||Bt(n.floor)||Bt(n.ceiling)?null:Math.min(5*(Es(this.series.map(_=>{let b=_.getColumn("x");return _.xIncrement?b.slice(0,2):b}))||0),this.dataMax-this.dataMin)),mt(r)&&mt(c)&&mt(l)&&r-c<l&&(p=this.dataMax-this.dataMin>=l,h=(l-r+c)/2,f=[c-h,a.parse(n.min)??c-h],p&&(f[2]=i?i.log2lin(this.dataMin):this.dataMin),m=[(c=Ss(f))+l,a.parse(n.max)??c+l],p&&(m[2]=i?i.log2lin(this.dataMax):this.dataMax),(r=gd(m))-c<l&&(f[0]=r-l,f[1]=a.parse(n.min)??r-l,c=Ss(f))),this.minRange=l,this.min=c,this.max=r}getClosest(){let n,i;if(this.categories)i=1;else{let a=[];this.series.forEach(function(r){let c=r.closestPointRange,l=r.getColumn("x");1===l.length?a.push(l[0]):r.sorted&&Bt(c)&&r.reserveSpace()&&(i=Bt(i)?Math.min(i,c):c)}),a.length&&(a.sort((r,c)=>r-c),n=Es([a]))}return n&&i?Math.min(n,i):n||i}nameToX(n){let c,i=Fs(this.options.categories),a=i?this.categories:this.names,r=n.options.x;return n.series.requireSorting=!1,Bt(r)||(r=this.uniqueNames&&a?i?a.indexOf(n.name):vt(a.keys[n.name],-1):n.series.autoIncrement()),-1===r?!i&&a&&(c=a.length):mt(r)&&(c=r),void 0!==c?(this.names[c]=n.name,this.names.keys[n.name]=c):n.x&&(c=n.x),c}updateNames(){let n=this,i=this.names;i.length>0&&(Object.keys(i.keys).forEach(function(a){delete i.keys[a]}),i.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(a=>{a.xIncrement=null,(!a.points||a.isDirtyData)&&(n.max=Math.max(n.max||0,a.dataTable.rowCount-1),a.processData(),a.generatePoints());let r=a.getColumn("x").slice();a.data.forEach((c,l)=>{let h=r[l];c?.options&&void 0!==c.name&&void 0!==(h=n.nameToX(c))&&h!==c.x&&(r[l]=c.x=h)}),a.dataTable.setColumn("x",r)}))}setAxisTranslation(){let h,m,n=this,i=n.max-n.min,a=n.linkedParent,r=!!n.categories,c=n.isXAxis,l=n.axisPointRange||0,p=0,f=0,_=n.transA;(c||r||l)&&(h=n.getClosest(),a?(p=a.minPointOffset,f=a.pointRangePadding):n.series.forEach(function(b){let C=r?1:c?vt(b.options.pointRange,h,0):n.axisPointRange||0,x=b.options.pointPlacement;if(l=Math.max(l,C),!n.single||r){let v=b.is("xrange")?!c:c;p=Math.max(p,v&&$s(x)?0:C/2),f=Math.max(f,v&&"on"===x?0:C)}}),m=n.ordinal?.slope&&h?n.ordinal.slope/h:1,n.minPointOffset=p*=m,n.pointRangePadding=f*=m,n.pointRange=Math.min(l,n.single&&r?1:i),c&&(n.closestPointRange=h)),n.translationSlope=n.transA=_=n.staticScale||n.len/(i+f||1),n.transB=n.horiz?n.left
1:n.bottom,n.minPixelPadding=_*p,te(this,"afterSetAxisTranslation")}minFromRange(){let{max:n,min:i}=this;return mt(n)&&mt(i)&&n-i||void 0}setTickInterval(n){let F,j,U,K,it,{categories:i,chart:a,dataMax:r,dataMin:c,dateTime:l,isXAxis:h,logarithmic:p,options:f,softThreshold:m}=this,_=a.time,b=mt(this.threshold)?this.threshold:void 0,C=this.minRange||0,{ceiling:x,floor:v,linkedTo:y,softMax:P,softMin:w}=f,I=mt(y)&&a[this.coll]?.[y],R=f.tickPixelInterval,T=f.maxPadding,k=f.minPadding,A=0,G=mt(f.tickInterval)&&f.tickInterval>=0?f.tickInterval:void 0;if(l||i||I||this.getTickAmount(),K=vt(this.userMin,_.parse(f.min)),it=vt(this.userMax,_.parse(f.max)),I?(this.linkedParent=I,F=I.getExtremes(),this.min=vt(F.min,F.dataMin),this.max=vt(F.max,F.dataMax),this.type!==I.type&&Qa(11,!0,a)):(m&&Bt(b)&&mt(r)&&mt(c)&&(c>=b?(j=b,k=0):r<=b&&(U=b,T=0)),this.min=vt(K,j,c),this.max=vt(it,U,r)),mt(this.max)&&mt(this.min)&&(p&&(this.positiveValuesOnly&&!n&&0>=Math.min(this.min,vt(c,this.min))&&Qa(10,!0,a),this.min=Re(p.log2lin(this.min),16),this.max=Re(p.log2lin(this.max),16)),this.range&&mt(c)&&(this.userMin=this.min=K=Math.max(c,this.minFromRange()||0),this.userMax=it=this.max,this.range=void 0)),te(this,"foundExtremes"),this.adjustForMinRange(),mt(this.min)&&mt(this.max)){if(!mt(this.userMin)&&mt(w)&&w<this.min&&(this.min=K=w),!mt(this.userMax)&&mt(P)&&P>this.max&&(this.max=it=P),i||this.axisPointRange||this.stacking?.usePercentage||I||!(A=this.max-this.min)||(!Bt(K)&&k&&(this.min-=A*k),Bt(it)||!T||(this.max+=A*T)),!mt(this.userMin)&&mt(v)&&(this.min=Math.max(this.min,v)),!mt(this.userMax)&&mt(x)&&(this.max=Math.min(this.max,x)),m&&mt(c)&&mt(r)){let et=b||0;!Bt(K)&&this.min<et&&c>=et?this.min=f.minRange?Math.min(et,this.max-C):et:!Bt(it)&&this.max>et&&r<=et&&(this.max=f.minRange?Math.max(et,this.min+C):et)}!a.polar&&this.min>this.max&&(Bt(f.min)?this.max=this.min:Bt(f.max)&&(this.min=this.max)),A=this.max-this.min}if(this.tickInterval=this.min!==this.max&&mt(this.min)&&mt(this.max)?I&&!G&&R===I.options.tickPixelInterval?G=I.tickInterval:vt(G,this.tickAmount?A/Math.max(this.tickAmount-1,1):void 0,i?1:A*R/Math.max(this.len,R)):1,h&&!n){let et=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(ct){ct.forceCrop=ct.forceCropping?.(),ct.processData(et)}),te(this,"postProcessData",{hasExtremesChanged:et})}this.setAxisTranslation(),te(this,"initialAxisTranslation"),this.pointRange&&!G&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let rt=vt(f.minTickInterval,l&&!this.series.some(et=>!et.sorted)?this.closestPointRange:0);!G&&rt&&this.tickInterval<rt&&(this.tickInterval=rt),l||p||G||(this.tickInterval=Ls(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let f,n=this.options,i=n.tickPositions,a=n.tickPositioner,r=this.getMinorTickInterval(),c=!this.isPanning,l=c&&n.startOnTick,h=c&&n.endOnTick,p=[];if(this.tickmarkOffset=this.categories&&"between"===n.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&Bt(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==n.allowDecimals),i)p=i.slice();else if(mt(this.min)&&mt(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))p=[this.min,this.max],Qa(19,!1,this.chart);else if(this.dateTime)p=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,n.units),this.min,this.max,n.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)p=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let m=this.tickInterval,_=m;for(;_<=2*m&&(p=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&p.length>this.tickAmount);)this.tickInterval=Ls(this,_*=1.1)}p.length>this.len&&(p=[p[0],p[p.length-1]])[0]===p[1]&&(p.length=1),a&&(this.tickPositions=p,(f=a.apply(this,[this.min,this.max]))&&(p=f))}this.tickPositions=p,this.minorTickInterval="auto"===r&&this.tickInterval?this.tickInterval/n.minorTicksPerMajor:r,this.paddedTicks=p.slice(0),this.trimTicks(p,l,h),!this.isLinked&&mt(this.min)&&mt(this.max)&&(this.single&&p.length<2&&!this.categories&&!this.series.some(m=>m.is("heatmap")&&"between"===m.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||f||this.adjustTickAmount()),te(this,"afterSetTickPositions")}trimTicks(n,i,a){let r=n[0],c=n[n.length-1],l=!this.isOrdinal&&this.minPointOffset||0;if(te(this,"trimTicks"),!this.isLinked||!this.grid){if(i&&r!==-1/0)this.min=r;else for(;this.min-l>n[0];)n.shift();if(a)this.max=c;else for(;this.max+l<n[n.length-1];)n.pop();0===n.length&&Bt(r)&&!this.options.tickPositions&&n.push((c+r)/2)}}alignToOthers(){let n,i=this,a=i.chart,r=[this],c=i.options,l=a.options.chart,h="yAxis"===this.coll&&l.alignThresholds,p=[];if(i.thresholdAlignment=void 0,(!1!==l.alignTicks&&c.alignTicks||h)&&!1!==c.startOnTick&&!1!==c.endOnTick&&!i.logarithmic){let f=_=>{let{horiz:b,options:C}=_;
vendor: 4,678 bytes, line 1
1return[b?C.left:C.top,C.width,C.height,C.pane].join(",")},m=f(this);a[this.coll].forEach(function(_){let{series:b}=_;b.length&&b.some(C=>C.visible)&&_!==i&&f(_)===m&&(n=!0,r.push(_))})}if(n&&h){r.forEach(m=>{let _=m.getThresholdAlignment(i);mt(_)&&p.push(_)});let f=p.length>1?p.reduce((m,_)=>m+_,0)/p.length:void 0;r.forEach(m=>{m.thresholdAlignment=f})}return n}getThresholdAlignment(n){if((!mt(this.dataMin)||this!==n&&this.series.some(i=>i.isDirty||i.isDirtyData))&&this.getSeriesExtremes(),mt(this.threshold)){let i=qa((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(i=1-i),i}}getTickAmount(){let n=this.options,i=n.tickPixelInterval,a=n.tickAmount;Bt(n.tickInterval)||a||!(this.len<i)||this.isRadial||this.logarithmic||!n.startOnTick||!n.endOnTick||(a=2),!a&&this.alignToOthers()&&(a=Math.ceil(this.len/i)+1),a<4&&(this.finalTickAmt=a,a=5),this.tickAmount=a}adjustTickAmount(){let _,b,x,n=this,{finalTickAmt:i,max:a,min:r,options:c,tickPositions:l,tickAmount:h,thresholdAlignment:p}=n,f=l?.length,m=vt(n.threshold,n.softThreshold?0:null),C=n.tickInterval,v=()=>l.push(Re(l[l.length-1]+C)),y=()=>l.unshift(Re(l[0]-C));if(mt(p)&&(x=p<.5?Math.ceil(p*(h-1)):Math.floor(p*(h-1)),c.reversed&&(x=h-1-x)),n.hasData()&&mt(r)&&mt(a)){let P=()=>{n.transA*=(f-1)/(h-1),n.min=c.startOnTick?l[0]:Math.min(r,l[0]),n.max=c.endOnTick?l[l.length-1]:Math.max(a,l[l.length-1])};if(mt(x)&&mt(n.threshold)){for(;l[x]!==m||l.length!==h||l[0]>r||l[l.length-1]<a;){for(l.length=0,l.push(n.threshold);l.length<h;)void 0===l[x]||l[x]>n.threshold?y():v();if(C>8*n.tickInterval)break;C*=2}P()}else if(f<h){for(;l.length<h;)l.length%2||r===m?v():y();P()}if(Bt(i)){for(b=_=l.length;b--;)(3===i&&b%2==1||i<=2&&b>0&&b<_-1)&&l.splice(b,1);n.finalTickAmt=void 0}}}setScale(){let{coll:n,stacking:i}=this,a=!1,r=!1;this.series.forEach(l=>{a=a||l.isDirtyData||l.isDirty,r=r||l.xAxis?.isDirty||!1}),this.setAxisSize();let c=this.len!==this.old?.len;c||a||r||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(i&&"yAxis"===n&&i.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),i&&"xAxis"===n&&i.buildStacks(),this.isDirty||(this.isDirty=c||this.min!==this.old?.min||this.max!==this.old?.max)):i&&i.cleanStacks(),a&&delete this.allExtremes,te(this,"afterSetScale")}setExtremes(n,i,a=!0,r,c){let l=this.chart;this.series.forEach(h=>{delete h.kdTree}),n=l.time.parse(n),i=l.time.parse(i),te(this,"setExtremes",c=$o(c,{min:n,max:i}),h=>{this.userMin=h.min,this.userMax=h.max,this.eventArgs=h,a&&l.redraw(r)})}setAxisSize(){let n=this.chart,i=this.options,a=i.offsets||[0,0,0,0],r=this.horiz,c=this.width=Math.round(Wi(vt(i.width,n.plotWidth-a[3]+a[1]),n.plotWidth)),l=this.height=Math.round(Wi(vt(i.height,n.plotHeight-a[0]+a[2]),n.plotHeight)),h=this.top=Math.round(Wi(vt(i.top,n.plotTop+a[0]),n.plotHeight,n.plotTop)),p=this.left=Math.round(Wi(vt(i.left,n.plotLeft+a[3]),n.plotWidth,n.plotLeft));this.bottom=n.chartHeight-l-h,this.right=n.chartWidth-c-p,this.len=Math.max(r?c:l,0),this.pos=r?p:h}getExtremes(){let n=this.logarithmic;return{min:n?Re(n.lin2log(this.min)):this.min,max:n?Re(n.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(n){let i=this.logarithmic,a=i?i.lin2log(this.min):this.min,r=i?i.lin2log(this.max):this.max;return null===n||n===-1/0?n=a:n===1/0?n=r:a>n?n=a:r<n&&(n=r),this.translate(n,0,1,0,1)}autoLabelAlign(n){let i=(vt(n,0)-90*this.side+720)%360,a={align:"center"};return te(this,"autoLabelAlign",a,function(r){i>15&&i<165?r.align="right":i>195&&i<345&&(r.align="left")}),a.align}tickSize(n){let c,i=this.options,a=vt(i["tick"===n?"tickWidth":"minorTickWidth"],"tick"===n&&this.isXAxis&&!this.categories?1:0),r=i["tick"===n?"tickLength":"minorTickLength"];a&&r&&("inside"===i[n+"Position"]&&(r=-r),c=[r,a]);let l={tickSize:c};return te(this,"afterTickSize",l),l.tickSize}labelMetrics(){let n=this.chart.renderer,i=this.ticks,a=i[Object.keys(i)[0]]||{};return this.chart.renderer.fontMetrics(a.label||a.movedLabel||n.box)}unsquish(){let _,C,n=this.options.labels,i=n.padding||0,a=this.horiz,r=this.tickInterval,c=this.len/((+!!this.categories+this.max-this.min)/r),l=n.rotation,h=Re(.8*this.labelMetrics().h),p=Math.max(this.max-this.min,0),f=function(x){let v=(x+2*i)/(c||1);return(v=v>1?Math.ceil(v):1)*r>p&&x!==1/0&&c!==1/0&&p&&(v=Math.ceil(p/r)),Re(v*r)},m=r,b=Number.MAX_VALUE;if(a){if(!n.staggerLines&&(mt(l)?C=[l]:c<n.autoRotationLimit&&(C=n.autoRotation)),C){let x,v;for(let y of C)(y===l||y&&y>
1=-90&&y<=90)&&(v=(x=f(Math.abs(h/Math.sin(md*y))))+Math.abs(y/360))<b&&(b=v,_=y,m=x)}}else m=f(.75*h);return this.autoRotation=C,this.labelRotation=vt(_,mt(l)?l:0),n.step?r:m}getSlotWidth(n){let i=this.chart,a=this.horiz,r=this.options.labels,c=Math.max(this.tickPositions.length-+!this.categories,1),l=i.margin[3];if(n&&mt(n.slotWidth))return n.slotWidth;if(a&&r.step<2&&!this.isRadial)return r.rotation?0:(this.staggerLines||1)*this.len/c;if(!a){let h=r.style.width;if(void 0!==h)return parseInt(String(h),10);if(l)return l-i.spacing[3]}return.33*i.chartWidth}renderUnsquish(){let C,n=this.chart,i=n.renderer,a=this.tickPositions,r=this.ticks,c=this.options.labels,l=c.style,h=this.horiz,p=this.getSlotWidth(),f=Math.max(1,Math.round(p-(h?2*(c.padding||0):c.distance||0))),m={},_=this.labelMetrics(),b=l.lineClamp,x=b??(Math.floor(this.len/(a.length*_.h))||1),v=0;$s(c.rotation)||(m.rotation=c.rotation||0),a.forEach(function(y){let P=r[y];P.movedLabel&&P.replaceMovedLabel();let w=P.label?.textPxLength||0;w>v&&(v=w)}),this.maxLabelLength=v,this.autoRotation?v>f&&v>_.h?m.rotation=this.labelRotation:this.labelRotation=0:p&&(C=f),m.rotation&&(C=v>.5*n.chartHeight?.33*n.chartHeight:v,b||(x=1)),this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(m.align=this.labelAlign),a.forEach(function(y){let P=r[y],w=P?.label,I=l.width,R={};w&&(w.attr(m),P.shortenLabel?P.shortenLabel():C&&!I&&"nowrap"!==l.whiteSpace&&(C<(w.textPxLength||0)||"SPAN"===w.element.tagName)?w.css($o(R,{width:`${C}px`,lineClamp:x})):!w.styles.width||R.width||I||w.css({width:"auto"}),P.rotation=m.rotation)},this),this.tickRotCorr=i.rotCorr(_.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(n){return n.hasData()})||this.options.showEmpty&&Bt(this.min)&&Bt(this.max)}addTitle(n){let i,c=this.opposite,l=this.options.title,h=this.chart.styledMode;this.axisTitle||((i=l.textAlign)||(i=(this.horiz?{low:"left",middle:"center",high:"right"}:{low:c?"right":"left",middle:"center",high:c?"left":"right"})[l.align]),this.axisTitle=this.chart.renderer.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation||0,align:i}).addClass("highcharts-axis-title"),h||this.axisTitle.css(Lo(l.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),h||l.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[n?"show":"hide"](n)}generateTick(n){let i=this.ticks;i[n]?i[n].addLabel():i[n]=new bi(this,n)}createGroups(){let{axisParent:n,chart:i,coll:a,options:r}=this,c=i.renderer,l=(h,p,f)=>c.g(h).attr({zIndex:f}).addClass(`highcharts-${a.toLowerCase()}${p} `+(this.isRadial?`highcharts-radial-axis${p} `:"")+(r.className||"")).add(n);this.axisGroup||(this.gridGroup=l("grid","-grid",r.gridZIndex),this.axisGroup=l("axis","",r.zIndex),this.labelGroup=l("axis-labels","-labels",r.labels.zIndex))}getOffset(){let P,I,k,A,n=this,{chart:i,horiz:a,options:r,side:c,ticks:l,tickPositions:h,coll:p}=n,f=i.inverted&&!n.isZAxis?[1,0,3,2][c]:c,m=n.hasData(),_=r.title,b=r.labels,C=mt(r.crossing),x=i.axisOffset,v=i.clipOffset,y=[-1,1,1,-1][c],w=0,R=0,T=0;if(n.showAxis=P=m||r.showEmpty,n.staggerLines=n.horiz&&b.staggerLines||void 0,n.createGroups(),m||n.isLinked?(h.forEach(function(F){n.generateTick(F)}),n.renderUnsquish(),n.reserveSpaceDefault=0===c||2===c||{1:"left",3:"right"}[c]===n.labelAlign,vt(b.reserveSpace,!C&&null,"center"===n.labelAlign||null,n.reserveSpaceDefault)&&h.forEach(function(F){T=Math.max(l[F].getLabelSize(),T)}),n.staggerLines&&(T*=n.staggerLines),n.labelOffset=T*(n.opposite?-1:1)):Go(l,function(F,G){F.destroy(),delete l[G]}),_?.text&&!1!==_.enabled&&(n.addTitle(P),P&&!C&&!1!==_.reserveSpace&&(n.titleOffset=w=n.axisTitle.getBBox()[a?"height":"width"],R=Bt(I=_.offset)?0:vt(_.margin,a?5:10))),n.renderLine(),n.offset=y*vt(r.offset,x[c]?x[c]+(r.margin||0):0),n.tickRotCorr=n.tickRotCorr||{x:0,y:0},A=0===c?-n.labelMetrics().h:2===c?n.tickRotCorr.y:0,k=Math.abs(T)+R,T&&(k-=A,k+=y*(a?vt(b.y,n.tickRotCorr.y+y*b.distance):vt(b.x,y*b.distance))),n.axisTitleMargin=vt(I,k),n.getMaxLabelDimensions&&(n.maxLabelDimensions=n.getMaxLabelDimensions(l,h)),"colorAxis"!==p&&v){let F=this.tickSize("tick");x[c]=Math.max(x[c],(n.axisTitleMargin||0)+w+y*n.offset,k,h?.length&&F?F[0]+y*n.offset:0);let G=!n.axisLine||r.offset?0:n.axisLine.strokeWidth()/2;v[f]=Math.max(v[f],G)}te(this,"afterGetOffset")}getLinePath(n){let i=this.chart,a=this.opposite,r=this.offset,c=this.horiz,l=this.left+(a?this.width:0)+r,h=i.chartHe
1ight-this.bottom-(a?this.height:0)+r;return a&&(n*=-1),i.renderer.crispLine([["M",c?this.left:l,c?h:this.top],["L",c?i.chartWidth-this.right:l,c?h:i.chartHeight-this.bottom]],n)}renderLine(){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}))}getTitlePosition(n){let i=this.horiz,a=this.left,r=this.top,c=this.len,l=this.options.title,h=i?a:r,p=this.opposite,f=this.offset,m=l.x,_=l.y,b=this.chart.renderer.fontMetrics(n),C=n?Math.max(n.getBBox(!1,0).height-b.h-1,0):0,x={low:h+(i?0:c),middle:h+c/2,high:h+(i?c:0)}[l.align],v=(i?r+this.height:a)+(i?1:-1)*(p?-1:1)*(this.axisTitleMargin||0)+[-C,C,b.f,-C][this.side],y={x:i?x+m:v+(p?this.width:0)+f+m,y:i?v+_-(p?this.height:0)+f:x+_};return te(this,"afterGetTitlePosition",{titlePosition:y}),y}renderMinorTick(n,i){let a=this.minorTicks;a[n]||(a[n]=new bi(this,n,"minor")),i&&a[n].isNew&&a[n].render(null,!0),a[n].render(null,!1,1)}renderTick(n,i,a){let c=this.ticks;(!this.isLinked||n>=this.min&&n<=this.max||this.grid?.isColumn)&&(c[n]||(c[n]=new bi(this,n)),a&&c[n].isNew&&c[n].render(i,!0,-1),c[n].render(i))}render(){let n,i,a=this,r=a.chart,c=a.logarithmic,h=a.options,p=a.isLinked,f=a.tickPositions,m=a.axisTitle,_=a.ticks,b=a.minorTicks,C=a.alternateBands,x=h.stackLabels,v=h.alternateGridColor,y=h.crossing,P=a.tickmarkOffset,w=a.axisLine,I=a.showAxis,R=dd(r.renderer.globalAnimation);if(a.labelEdge.length=0,a.overlap=!1,[_,b,C].forEach(function(T){Go(T,function(k){k.isActive=!1})}),mt(y)){let T=this.isXAxis?r.yAxis[0]:r.xAxis[0],k=[1,-1,-1,1][this.side];if(T){let A=T.toPixels(y,!0);a.horiz&&(A=T.len-A),a.offset=k*A}}if(a.hasData()||p){let T=a.chart.hasRendered&&a.old&&mt(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(k){a.renderMinorTick(k,T)}),f.length&&(f.forEach(function(k,A){a.renderTick(k,A,T)}),P&&(0===a.min||a.single)&&(_[-1]||(_[-1]=new bi(a,-1,null,!0)),_[-1].render(-1))),v&&f.forEach(function(k,A){i=void 0!==f[A+1]?f[A+1]+P:a.max-P,A%2==0&&k<a.max&&i<=a.max+(r.polar?-P:P)&&(C[k]||(C[k]=new t.PlotLineOrBand(a,{})),n=k+P,C[k].options={from:c?c.lin2log(n):n,to:c?c.lin2log(i):i,color:v,className:"highcharts-alternate-grid"},C[k].render(),C[k].isActive=!0)}),a._addedPlotLB||(a._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(k){a.addPlotBandOrLine(k)}))}[_,b,C].forEach(function(T){let k=[],A=R.duration;Go(T,function(F,G){F.isActive||(F.render(G,!1,0),F.isActive=!1,k.push(G))}),yd(function(){let F=k.length;for(;F--;)T[k[F]]&&!T[k[F]].isActive&&(T[k[F]].destroy(),delete T[k[F]])},T!==C&&r.hasRendered&&A?A:0)}),w&&(w[w.isPlaced?"animate":"attr"]({d:this.getLinePath(w.strokeWidth())}),w.isPlaced=!0,w[I?"show":"hide"](I)),m&&I&&(m[m.isNew?"attr":"animate"](a.getTitlePosition(m)),m.isNew=!1),x?.enabled&&a.stacking&&a.stacking.renderStackTotals(),a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin},a.isDirty=!1,te(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(n){n.render()})),this.series.forEach(function(n){n.isDirty=!0})}getKeepProps(){return this.keepProps||d.keepProps}destroy(n){let i=this,a=i.plotLinesAndBands,r=this.eventOptions;if(te(this,"destroy",{keepEvents:n}),n||Cd(i),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(c){fd(c)}),a){let c=a.length;for(;c--;)a[c].destroy()}for(let c in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(l){i[l]&&(i[l]=i[l].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[c]=i.plotLinesAndBandsGroups[c].destroy();Go(i,function(c,l){-1===i.getKeepProps().indexOf(l)&&delete i[l]}),this.eventOptions=r}drawCrosshair(n,i){let l,h,p,m,a=this.crosshair,r=a?.snap??!0,c=this.chart,f=this.cross;if(te(this,"drawCrosshair",{e:n,point:i}),n||(n=this.cross?.e),a&&!1!==(Bt(i)||!r)){if(r?Bt(i)&&(h=vt("colorAxis"!==this.coll?i.crosshairPos:null,this.isXAxis?i.plotX:this.len-i.plotY)):h=n&&(this.horiz?n.chartX-this.pos:this.len-n.chartY+this.pos),Bt(h)&&(m={value:i&&(this.isXAxis?i.x:vt(i.stackY,i.y)),translatedValue:h},c.polar&&$o(m,{isCrosshair:!0,chartX:n?.chartX,chartY:n?.chartY,point:i}),l=this.getPlotLinePath(m)||null),!Bt(l))return void this.hideCrosshair();p=this.categories&&!this.isRadial,f||(this.cross=f=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(p?"category ":"thin ")+(a.className||"")).attr({zIndex:vt(a.zIndex,2)}).add(),!c.styledMode&&(f.attr({stroke:a.color||(p?Z.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":vt(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&f.attr({dashstyle:a.dashStyle}))),f.show().attr({d:l}),p&&!a.width&&f.attr({"stroke-width":this.transA}),this.cross.e=n}else this.hideCrosshair();te(this,"afterDrawCrosshair",{e:n,point:i})}hideCrosshair(){this.cross&&this.cross.hide(),te(this,"afterHideCrosshair")}update(n,i){let a=this.chart;
1n=Lo(this.userOptions,n),this.destroy(!0),this.init(a,n),a.isDirtyBox=!0,vt(i,!0)&&a.redraw()}remove(n){let i=this.chart,a=this.coll,r=this.series,c=r.length;for(;c--;)r[c]&&r[c].remove(!1);Ds(i.axes,this),Ds(i[a]||[],this),i.orderItems(a),this.destroy(),i.isDirtyBox=!0,vt(n,!0)&&i.redraw()}setTitle(n,i){this.update({title:n},i)}setCategories(n,i){this.update({categories:n},i)}}return d.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],d})(),{addEvent:Md,getMagnitude:vd,normalizeTickInterval:Pd,timeUnits:jo}=q;!function(d){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(){"datetime"===this.type?this.dateTime||(this.dateTime=new i(this)):this.dateTime=void 0}d.compose=function(a){return a.keepProps.includes("dateTime")||(a.keepProps.push("dateTime"),a.prototype.getTimeTicks=e,Md(a,"afterSetType",n)),a};class i{constructor(r){this.axis=r}normalizeTimeTickInterval(r,c){let m,l=c||[["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]],h=l[l.length-1],p=jo[h[0]],f=h[1];for(m=0;m<l.length&&(p=jo[(h=l[m])[0]],f=h[1],!(l[m+1]&&r<=(p*f[f.length-1]+jo[l[m+1][0]])/2));m++);return p===jo.year&&r<5*p&&(f=[1,2,5]),{unitRange:p,count:Pd(r/p,f,"year"===h[0]?Math.max(vd(r/p),1):1),unitName:h[0]}}getXDateFormat(r,c){let{axis:l}=this,h=l.chart.time;return l.closestPointRange?h.getDateFormat(l.closestPointRange,r,l.options.startOfWeek,c)||h.resolveDTLFormat(c.year).main:h.resolveDTLFormat(c.day).main}}d.Additions=i}(Kt||(Kt={}));let wd=Kt,{addEvent:Gs,normalizeTickInterval:Od,pick:Id}=q;!function(d){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new i(this))}function n(){let a=this.logarithmic;a&&(this.lin2val=function(r){return a.lin2log(r)},this.val2lin=function(r){return a.log2lin(r)})}d.compose=function(a){return a.keepProps.includes("logarithmic")||(a.keepProps.push("logarithmic"),Gs(a,"afterSetType",e),Gs(a,"afterInit",n)),a};class i{constructor(r){this.axis=r}getLogTickPositions(r,c,l,h){let p=this.axis,f=p.len,m=p.options,_=[];if(h||(this.minorAutoInterval=void 0),r>=.5)r=Math.round(r),_=p.getLinearTickPositions(r,c,l);else if(r>=.08){let b,C,x,v,y,P,w;for(b=r>.3?[1,2,4]:r>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],C=Math.floor(c);C<l+1&&!w;C++)for(x=0,v=b.length;x<v&&!w;x++)(y=this.log2lin(this.lin2log(C)*b[x]))>c&&(!h||P<=l)&&void 0!==P&&_.push(P),P>l&&(w=!0),P=y}else{let b=this.lin2log(c),C=this.lin2log(l),x=h?p.getMinorTickInterval():m.tickInterval;r=Od(r=Id("auto"===x?null:x,this.minorAutoInterval,m.tickPixelInterval/(h?5:1)*(C-b)/((h?f/p.tickPositions.length:f)||1))),_=p.getLinearTickPositions(r,b,C).map(this.log2lin),h||(this.minorAutoInterval=r/5)}return h||(p.tickInterval=r),_}lin2log(r){return Math.pow(10,r)}log2lin(r){return Math.log(r)/Math.LN10}}d.Additions=i}(zn||(zn={}));let Td=zn,{erase:kd,extend:Rd,isNumber:js}=q;!function(d){let e;function n(p){return this.addPlotBandOrLine(p,"plotBands")}function i(p,f){let m=this.userOptions,_=new e(this,p);if(this.visible&&(_=_.render()),_){if(this._addedPlotLB||(this._addedPlotLB=!0,(m.plotLines||[]).concat(m.plotBands||[]).forEach(b=>{this.addPlotBandOrLine(b)})),f){let b=m[f]||[];b.push(p),m[f]=b}this.plotLinesAndBands.push(_)}return _}function a(p){return this.addPlotBandOrLine(p,"plotLines")}function r(p,f,m){let y,w,_=this.getPlotLinePath({value:f,force:!0,acrossPanes:(m=m||this.options).acrossPanes}),b=[],C=this.horiz,x=!js(this.min)||!js(this.max)||p<this.min&&f<this.min||p>this.max&&f>this.max,v=this.getPlotLinePath({value:p,force:!0,acrossPanes:m.acrossPanes}),P=1;if(v&&_)for(x&&(w=v.toString()===_.toString(),P=0),y=0;y<v.length;y+=2){let I=v[y],R=v[y+1],T=_[y],k=_[y+1];("M"===I[0]||"L"===I[0])&&("M"===R[0]||"L"===R[0])&&("M"===T[0]||"L"===T[0])&&("M"===k[0]||"L"===k[0])&&(C&&T[1]===I[1]?(T[1]+=P,k[1]+=P):C||T[2]!==I[2]||(T[2]+=P,k[2]+=P),b.push(["M",I[1],I[2]],["L",R[1],R[2]],["L",k[1],k[2]],["L",T[1],T[2]],["Z"])),b.isFlat=w}return b}function c(p){this.removePlotBandOrLine(p)}function l(p){let f=this.plotLinesAndBands,m=this.options,_=this.userOptions;if(f){let b=f.length;for(;b--;)f[b].id===p&&f[b].destroy();[m.plotLines||[],_.plotLines||[],m.plotBands||[],_.plotBands||[]].forEac
1h(function(C){for(b=C.length;b--;)C[b]?.id===p&&kd(C,C[b])})}}function h(p){this.removePlotBandOrLine(p)}d.compose=function(p,f){let m=f.prototype;return m.addPlotBand||(e=p,Rd(m,{addPlotBand:n,addPlotLine:a,addPlotBandOrLine:i,getPlotBandPath:r,removePlotBand:c,removePlotLine:h,removePlotBandOrLine:l})),f}}(vn||(vn={}));let Ad=vn,{addEvent:Sd,arrayMax:Ns,arrayMin:zs,defined:nn,destroyObjectProperties:Dd,erase:Ed,fireEvent:Fd,merge:Ys,objectEach:$d,pick:Ld}=q;class No{static compose(e,n){return Sd(e,"afterInit",function(){this.labelCollectors.push(()=>{let i=[];for(let a of this.axes)for(let{label:r,options:c}of a.plotLinesAndBands)r&&!c?.label?.allowOverlap&&i.push(r);return i})}),Ad.compose(No,n)}constructor(e,n){this.axis=e,this.options=n,this.id=n.id}render(){Fd(this,"render");let w,{axis:e,options:n}=this,{horiz:i,logarithmic:a}=e,{color:r,events:c,zIndex:l=0}=n,{renderer:h,time:p}=e.chart,f={},m=p.parse(n.to),_=p.parse(n.from),b=p.parse(n.value),C=n.borderWidth,x=n.label,{label:v,svgElem:y}=this,P=[],I=nn(_)&&nn(m),R=nn(b),T=!y,k={class:"highcharts-plot-"+(I?"band ":"line ")+(n.className||"")},A=I?"bands":"lines";if(!e.chart.styledMode&&(R?(k.stroke=r||"#999999",k["stroke-width"]=Ld(n.width,1),n.dashStyle&&(k.dashstyle=n.dashStyle)):I&&(k.fill=r||"#e6e9ff",C&&(k.stroke=n.borderColor,k["stroke-width"]=C))),f.zIndex=l,A+="-"+l,(w=e.plotLinesAndBandsGroups[A])||(e.plotLinesAndBandsGroups[A]=w=h.g("plot-"+A).attr(f).add()),y||(this.svgElem=y=h.path().attr(k).add(w)),nn(b))P=e.getPlotLinePath({value:a?.log2lin(b)??b,lineWidth:y.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!nn(_)||!nn(m))return;P=e.getPlotBandPath(a?.log2lin(_)??_,a?.log2lin(m)??m,n)}return!this.eventsAdded&&c&&($d(c,(F,G)=>{y?.on(G,j=>{c[G].apply(this,[j])})}),this.eventsAdded=!0),!T&&y.d||!P?.length?y&&(P?(y.show(),y.animate({d:P})):y.d&&(y.hide(),v&&(this.label=v=v.destroy()))):y.attr({d:P}),x&&(nn(x.text)||nn(x.formatter))&&P?.length&&e.width>0&&e.height>0&&!P.isFlat?(x=Ys({align:i&&I?"center":void 0,x:i?!I&&4:10,verticalAlign:!i&&I?"middle":void 0,y:i?I?16:10:I?6:-4,rotation:i&&!I?90:0,...I?{inside:!0}:{}},x),this.renderLabel(x,P,I,l)):v&&v.hide(),this}renderLabel(e,n,i,a){let r=this.axis,c=r.chart.renderer,l=e.inside,h=this.label;h||(this.label=h=c.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(e.className||""),zIndex:a}),r.chart.styledMode||h.css(Ys({fontSize:"0.8em",textOverflow:i&&!l?"":"ellipsis"},e.style)),h.add());let p=n.xBounds||[n[0][1],n[1][1],i?n[2][1]:n[0][1]],f=n.yBounds||[n[0][2],n[1][2],i?n[2][2]:n[0][2]],m=zs(p),_=zs(f),b=Ns(p)-m;h.align(e,!1,{x:m,y:_,width:b,height:Ns(f)-_}),h.alignAttr.y-=c.fontMetrics(h).b,(!h.alignValue||"left"===h.alignValue||nn(l))&&h.css({width:(e.style?.width||(i&&l?b:90===h.rotation?r.height-(h.alignAttr.y-r.top):(e.clip?r.width:r.chart.chartWidth)-(h.alignAttr.x-r.left)))+"px"}),h.show(!0)}getLabelText(e){return nn(e.formatter)?e.formatter.call(this):e.text}destroy(){Ed(this.axis.plotLinesAndBands,this),delete this.axis,Dd(this)}}let{animObject:Gd}=$t,{format:Bs}=Oe,{composed:jd,dateFormats:Nd,doc:Xs,isSafari:zd}=t,{distribute:Yd}=zi,{addEvent:Bd,clamp:Ci,css:Vs,discardElement:Xd,extend:Vd,fireEvent:Ws,getAlignFactor:Us,isArray:Wd,isNumber:Ud,isObject:Hd,isString:Za,merge:Jd,pick:xi,pushUnique:Ae,splat:zo,syncTimeout:qd}=q;class Ka{constructor(e,n,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,n),this.pointer=i}bodyFormatter(e){return e.map(n=>{let i=n.series.tooltipOptions,a=n.formatPrefix||"point";return(i[a+"Formatter"]||n.tooltipFormatter).call(n,i[a+"Format"]||"")})}cleanSplit(e){this.chart.series.forEach(function(n){let i=n?.tt;i&&(!i.isActive||e?n.tt=i.destroy():i.isActive=!1)})}defaultFormatter(e){let n,i=this.points||zo(this);return(n=(n=[e.headerFooterFormatter(i[0])]).concat(e.bodyFormatter(i))).push(e.headerFooterFormatter(i[0],!0)),n}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),Xd(this.container)),q.clearTimeout(this.hideTimer)}
vendor: 4,001 bytes, line 1
1getAnchor(e,n){let i,{chart:a,pointer:r}=this,c=a.inverted,l=a.plotTop,h=a.plotLeft;if(e=zo(e),e[0].series?.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&n)void 0===n.chartX&&(n=r.normalize(n)),i=[n.chartX-h,n.chartY-l];else if(e[0].tooltipPos)i=e[0].tooltipPos;else{let p=0,f=0;e.forEach(function(m){let _=m.pos(!0);_&&(p+=_[0],f+=_[1])}),p/=e.length,f/=e.length,this.shared&&e.length>1&&n&&(c?p=n.chartX:f=n.chartY),i=[p-h,f-l]}return i.map(Math.round)}getClassName(e,n,i){let r=e.series,c=r.options;return[this.options.className,"highcharts-label",i&&"highcharts-tooltip-header",n?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+xi(e.colorIndex,r.colorIndex),c?.className].filter(Za).join(" ")}getLabel({anchorX:e,anchorY:n}={anchorX:0,anchorY:0}){let i=this,a=this.chart.styledMode,r=this.options,c=this.split&&this.allowShared,l=this.container,h=this.chart.renderer;if(this.label){let p=!this.label.hasClass("highcharts-label");(!c&&p||c&&!p)&&this.destroy()}if(!this.label){if(this.outside){let p=this.chart,f=p.options.chart.style,m=Ni.getRendererType();this.container=l=t.doc.createElement("div"),l.className="highcharts-tooltip-container "+(p.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),Vs(l,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(f?.zIndex||0)+3)}),this.renderer=h=new m(l,0,0,f,void 0,void 0,h.styledMode)}if(c?this.label=h.g("tooltip"):(this.label=h.label("",e,n,r.shape||"callout",void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),a||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth||0}).css(r.style).css({pointerEvents:r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let p=this.label;[p.xSetter,p.ySetter].forEach((f,m)=>{p[m?"ySetter":"xSetter"]=_=>{f.call(p,i.distance),p[m?"y":"x"]=_,l&&(l.style[m?"top":"left"]=`${_}px`)}})}this.label.attr({zIndex:8}).shadow(r.shadow??!r.fixed).add()}return l&&!l.parentElement&&t.doc.body.appendChild(l),this.label}getPlayingField(){let{body:e,documentElement:n}=Xs,{chart:i,distance:a,outside:r}=this;return{width:r?Math.max(e.scrollWidth,n.scrollWidth,e.offsetWidth,n.offsetWidth,n.clientWidth)-2*a-2:i.chartWidth,height:r?Math.max(e.scrollHeight,n.scrollHeight,e.offsetHeight,n.offsetHeight,n.clientHeight):i.chartHeight}}getPosition(e,n,i){let A,{distance:a,chart:r,outside:c,pointer:l}=this,{inverted:h,plotLeft:p,plotTop:f,polar:m}=r,{plotX:_=0,plotY:b=0}=i,C={},x=h&&i.h||0,{height:v,width:y}=this.getPlayingField(),P=l.getChartPosition(),w=rt=>rt*P.scaleX,I=rt=>rt*P.scaleY,R=rt=>{let et="x"===rt;return[rt,et?y:v,et?e:n].concat(c?[et?w(e):I(n),et?P.left-a+w(_+p):P.top-a+I(b+f),0,et?y:v]:[et?e:n,et?_+p:b+f,et?p:f,et?p+r.plotWidth:f+r.plotHeight])},T=R("y"),k=R("x"),F=!!i.negative;!m&&r.hoverSeries?.yAxis?.reversed&&(F=!F);let G=!this.followPointer&&xi(i.ttBelow,!m&&!h===F),j=function(rt,et,ct,Xt,Gt,re,dt){let ft=c?"y"===rt?I(a):w(a):a,kt=(ct-Xt)/2,Pt=Xt<Gt-a,Ht=Gt+a+Xt<et,qt=Gt-ft-ct+kt,Yt=Gt+ft-kt;if(G&&Ht)C[rt]=Yt;else if(!G&&Pt)C[rt]=qt;else if(Pt)C[rt]=Math.min(dt-Xt,qt-x<0?qt:qt-x);else{if(!Ht)return C[rt]=0,!1;C[rt]=Math.max(re,Yt+x+ct>et?Yt:Yt+x)}},U=function(rt,et,ct,Xt,Gt){if(Gt<a||Gt>et-a)return!1;C[rt]=Gt<ct/2?1:Gt>et-Xt/2?et-Xt-2:Gt-ct/2},K=function(rt){[T,k]=[k,T],A=rt},it=()=>{!1!==j.apply(0,T)?!1!==U.apply(0,k)||A||(K(!0),it()):A?C.x=C.y=0:(K(!0),it())};return(h&&!m||this.len>1)&&K(),it(),C}getFixedPosition(e,n,i){let a=i.series,{chart:r,options:c,split:l}=this,h=c.position,p=h.relativeTo,f=c.shared||a?.yAxis?.isRadial&&("pane"===p||!p)?"plotBox":p,m="chart"===f?r.renderer:r[f]||r.getClipBox(a,!0);return{x:m.x+(m.width-e)*Us(h.align)+h.x,y:m.y+(m.height-n)*Us(h.verticalAlign)+(!l&&h.y||0)}}hide(e){let n=this;q.clearTimeout(this.hideTimer),e=xi(e,this.options.hideDelay),this.isHidden||(this.hideTimer=qd(function(){let i=n.getLabel();n.getLabel().animate({opacity:0}
1,{duration:e&&150,complete:()=>{i.hide(),n.container&&n.container.remove()}}),n.isHidden=!0},e))}init(e,n){this.chart=e,this.options=n,this.crosshairs=[],this.isHidden=!0,this.split=n.split&&!e.inverted&&!e.polar,this.shared=n.shared||this.split,this.outside=xi(n.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}shouldStickOnContact(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.pointer.inClass(e.target,"highcharts-tooltip"))}move(e,n,i,a){let{followPointer:r,options:c}=this,l=Gd(!r&&!this.isHidden&&!c.fixed&&c.animation),p={x:e,y:n};r||(this.len||0)>1?p.anchorX=p.anchorY=NaN:(p.anchorX=i,p.anchorY=a),l.step=()=>this.drawTracker(),this.getLabel().animate(p,l)}refresh(e,n){let{chart:i,options:a,pointer:r,shared:c}=this,l=zo(e),h=l[0],p=a.format,f=a.formatter||this.defaultFormatter,m=i.styledMode,_=this.allowShared;if(!a.enabled||!h.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!Wd(e)&&e.series&&e.series.noSharedTooltip),_=_&&!this.allowShared,this.followPointer=!this.split&&h.series.tooltipOptions.followPointer;let b=this.getAnchor(e,n),C=b[0],x=b[1];c&&this.allowShared&&(r.applyInactiveState(l),l.forEach(P=>P.setState("hover")),h.points=l),this.len=l.length;let v=Za(p)?Bs(p,h,i):f.call(h,this);h.points=void 0;let y=h.series;if(this.distance=xi(y.tooltipOptions.distance,16),!1===v)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(v,l);else{let P=C,w=x;if(n&&r.isDirectTouch&&(P=n.chartX-i.plotLeft,w=n.chartY-i.plotTop),!i.polar&&!1!==y.options.clip&&!l.some(I=>r.isDirectTouch||I.series.shouldShowTooltip(P,w)))return void this.hide();{let I=this.getLabel(_&&this.tt||{});(!a.style.width||m)&&I.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),I.attr({class:this.getClassName(h),text:v&&v.join?v.join(""):v}),this.outside&&I.attr({x:Ci(I.x||0,0,this.getPlayingField().width-(I.width||0)-1)}),m||I.attr({stroke:a.borderColor||h.color||y.color||"#666666"}),this.updatePosition({plotX:C,plotY:x,negative:h.negative,ttBelow:h.ttBelow,series:y,h:b[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}Ws(this,"refresh")}renderSplit(e,n){let i=this,{chart:a,chart:{chartWidth:r,chartHeight:c,plotHeight:l,plotLeft:h,plotTop:p,scrollablePixelsY:f=0,scrollablePixelsX:m,styledMode:_},distance:b,options:C,options:{fixed:x,position:v,positioner:y},pointer:P}=i,{scrollLeft:w=0,scrollTop:I=0}=a.scrollablePlotArea?.scrollingContainer||{},R=i.outside&&"number"!=typeof m?Xs.documentElement.getBoundingClientRect():{left:w,right:w+r,top:I,bottom:I+c},T=i.getLabel(),k=this.renderer||a.renderer,A=!!a.xAxis[0]?.opposite,{left:F,top:G}=P.getChartPosition(),j=y||x,U=p+I,K=0,it=l-f,rt=function(dt,ft,kt,Pt=[0,0],Ht=!0){let qt,Yt;if(kt.isHeader)Yt=A?0:it,qt=Ci(Pt[0]-dt/2,R.left,R.right-dt-(i.outside?F:0));else if(x&&kt){let ie=i.getFixedPosition(dt,ft,kt);qt=ie.x,Yt=ie.y-U}else Yt=Pt[1]-U,qt=Ci(qt=Ht?Pt[0]-dt-b:Pt[0]+b,Ht?qt:R.left,R.right);return{x:qt,y:Yt}};Za(e)&&(e=[!1,e]);let et=e.slice(0,n.length+1).reduce(function(dt,ft,kt){if(!1!==ft&&""!==ft){let Pt=n[kt-1]||{isHeader:!0,plotX:n[0].plotX,plotY:l,series:{}},Ht=Pt.isHeader,qt=Ht?i:Pt.series,Yt=qt.tt=function(Ia,hn,qr){let Si=Ia,{isHeader:go,series:Qr}=hn,Mn=Qr.tooltipOptions||C;if(!Si){let Ta={padding:Mn.padding,r:Mn.borderRadius};_||(Ta.fill=Mn.backgroundColor,Ta["stroke-width"]=Mn.borderWidth??(x&&!go?0:1)),Si=k.label("",0,0,Mn[go?"headerShape":"shape"]||(x&&!go?"rect":"callout"),void 0,void 0,Mn.useHTML).addClass(i.getClassName(hn,!0,go)).attr(Ta).add(T)}return Si.isActive=!0,Si.attr({text:qr}),_||Si.css(Mn.style).attr({stroke:Mn.borderColor||hn.color||Qr.color||"#333333"}),Si}(qt.tt,Pt,ft.toString()),ie=Yt.getBBox(),Te=ie.width+Yt.strokeWidth();Ht&&(K=ie.height,it+=K,A&&(U-=K));let{anchorX:je,anchorY:Ai}=function(Ia){let hn,qr,{isHeader:Si,plotX:go=0,plotY:Qr=0,series:Mn}=Ia;if(Si)hn=Math.max(h+go,h),qr=p+l/2;else{let{xAxis:Ta,yAxis:Yg}=Mn;hn=Ta.pos+Ci(go,-b,Ta.len+b),Mn.shouldShowTooltip(0,Yg.pos-p+Qr,{ignoreX:!0})&&(qr=Yg.pos+Qr)}return{anchorX:hn=Ci(hn,R.left-b,R.right+b),anchorY:qr}}(Pt);if("number"==typeof Ai){let Ia=ie.height+1,hn=(y||rt).call(i,Te,Ia,Pt,[je,Ai]);dt.push({align:j?0:void 0,anchorX:je,anchorY:Ai,boxWidth:Te,point:Pt,rank:xi(hn.rank,+!!Ht),size:Ia,target:hn.y,tt:Yt,x:hn.x})}else Yt.isActive=!1}return dt},[]);!j&&et.some(dt=>{let{outside:ft}=i,kt=(ft?F:0)+dt.anchorX;return kt<R.left&&kt+dt.boxWidth<R.right||kt<F-R.left+dt.boxWidth&&R.right-kt>kt})&&(et=et.map(dt=>{let{x:ft,y:kt}=rt.call(this,dt.boxWidth,dt.size,dt.point,[dt.anchorX,dt.anchorY],!1);return Vd(dt,{target:kt,x:ft})})),i.cleanSplit(),Yd(et,it);let ct={left:F,right:F};et.forEach(function(dt){let{x:ft,boxWidth:kt,isHeader:Pt}=dt;!Pt&&(i.outside&&F+ft<ct.left&&(ct.left=F+ft),!Pt&&i.outside&&ct.left+kt>ct.right&&(ct.right=F+ft))}),et.forEach(function(dt){let{x:ft,anchorX:kt,anchorY:Pt,pos:Ht,point:{isHeader:qt}}=dt,Yt={visibility:void 0===Ht?"hidden":"inherit",x:ft,y:(Ht||0)+U+(x&&v.y||0),anchorX:kt,anchorY:Pt};if(i.outside&&ft<kt){let ie=F-ct.left;ie>0&&(qt||(Yt.x=ft+ie,Yt.anchorX=kt+ie),qt&&(Yt.x=(ct.right-ct.left)/2,Yt.anchorX=kt+ie))}dt.tt.attr(Yt)});let{container:Xt,outside:Gt,renderer:re}=i;if(Gt&&Xt&&re){let{width:dt,height:ft,x:kt,y:Pt}=T.getBBox();re.setSize(dt+kt,ft+Pt,!1),Xt.style.left=ct.left+"px",Xt.style.top=G+"px"}zd&&T.attr({opacity:1===T.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact())return void(this.tracker&&(this.tracker=this.tracker.destroy()));let e=this.chart,n=this.label,i=this.shared?e.hoverPoints:e.hoverPoint;if(!n||!i)return;let a={x:0,y:0,width:0,height:0},r=this.getAnchor(i),c=n.getBBox();r[0]+=e.plotLeft-(n.translateX||0),r[1]+=e.plotTop-(n.translateY||0),a.x=Math.min(0,r[0]),a.y=Math.min(0,r[1]),a.width=r[0]<0?Math.max(Math.abs(r[0]),c.width-r[0]):Math.max(Math.abs(r[0]),c.width),a.height=r[1]<0?Math.max(Math.abs(r[1]),c.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),c.height),this.tracker?this.tracker.attr(a):(this.tracker=n.renderer.rect(a).addClass("highcharts-tracker").add(n),e.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(e,n){let i=e.series,a=i.tooltipOptions,r=i.xAxis,c=r?.dateTime,l={isFooter:n,point:e},h=a.xDateFormat||"",p=a[n?"footerFormat":"headerFormat"];return Ws(this,"headerFormatter",l,function(f){if(c&&!h&&Ud(e.key)&&
1(h=c.getXDateFormat(e.key,a.dateTimeLabelFormats)),c&&h){if(Hd(h)){let m=h;Nd[0]=_=>i.chart.time.dateFormat(m,_),h="%0"}(e.tooltipDateKeys||["key"]).forEach(m=>{p=p.replace(RegExp("point\\."+m+"([ \\)}])"),`(point.${m}:${h})$1`)})}i.chart.styledMode&&(p=this.styledModeFormat(p)),f.text=Bs(p,e,this.chart)}),l.text||""}update(e){this.destroy(),this.init(this.chart,Jd(!0,this.options,e))}updatePosition(e){let I,{chart:n,container:i,distance:a,options:r,pointer:c,renderer:l}=this,{height:h=0,width:p=0}=this.getLabel(),{fixed:f,positioner:m}=r,{left:_,top:b,scaleX:C,scaleY:x}=c.getChartPosition(),v=(m||f&&this.getFixedPosition||this.getPosition).call(this,p,h,e),y=t.doc,P=(e.plotX||0)+n.plotLeft,w=(e.plotY||0)+n.plotTop;if(l&&i){if(m||f){let{scrollLeft:R=0,scrollTop:T=0}=n.scrollablePlotArea?.scrollingContainer||{};v.x+=R+_-a,v.y+=T+b-a}I=(r.borderWidth||0)+2*a+2,l.setSize(Ci(p+I,0,y.documentElement.clientWidth)-1,h+I,!1),(1!==C||1!==x)&&(Vs(i,{transform:`scale(${C}, ${x})`}),P*=C,w*=x),P+=_-v.x,w+=b-v.y}this.move(Math.round(v.x),Math.round(v.y||0),P,w)}}!function(d){d.compose=function(e){Ae(jd,"Core.Tooltip")&&Bd(e,"afterInit",function(){let n=this.chart;n.options.tooltip&&(n.tooltip=new d(n,n.options.tooltip,this))})}}(Ka||(Ka={}));let Hs=Ka,{animObject:Qd}=$t,{defaultOptions:Zd}=ot,{format:Kd}=Oe,{addEvent:tp,crisp:Js,erase:ep,extend:Yo,fireEvent:tr,getNestedProperty:np,isArray:qs,isFunction:ip,isNumber:_n,isObject:Bo,merge:Qs,pick:on,syncTimeout:op,removeEvent:Zs,uniqueKey:ap}=q;class Hi{animateBeforeDestroy(){let e=this,n={x:e.startXPos,opacity:0},i=e.getGraphicalProps();i.singular.forEach(function(a){e[a]=e[a].animate("dataLabel"===a?{x:e[a].startXPos,y:e[a].startYPos,opacity:0}:n)}),i.plural.forEach(function(a){e[a].forEach(function(r){r.element&&r.animate(Yo({x:e.startXPos},r.startYPos?{x:r.startXPos,y:r.startYPos}:{}))})})}applyOptions(e,n){let i=this.series,a=i.options.pointValKey||i.pointValKey;return Yo(this,e=Hi.prototype.optionsToObject.call(this,e)),this.options=this.options?Yo(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,a&&(this.y=Hi.prototype.getNestedProperty.call(this,a)),this.selected&&(this.state="select"),"name"in this&&void 0===n&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=n??i.autoIncrement():_n(e.x)&&i.options.relativeXValue?this.x=i.autoIncrement(e.x):"string"==typeof this.x&&(n??(n=i.chart.time.parse(this.x)),_n(n)&&(this.x=n)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,n=e.series,i=n.chart,a=n.options.dataSorting,r=i.hoverPoints,c=Qd(e.series.chart.renderer.globalAnimation),l=()=>{for(let h in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Zs(e),e.destroyElements()),e)delete e[h]};e.legendItem&&i.legend.destroyItem(e),r&&(e.setState(),ep(r,e),r.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),a?.enabled?(this.animateBeforeDestroy(),op(l,c.duration)):l(),i.pointCount--}this.destroyed=!0}destroyElements(e){let n=this,i=n.getGraphicalProps(e);i.singular.forEach(function(a){n[a]=n[a].destroy()}),i.plural.forEach(function(a){n[a].forEach(function(r){r?.element&&r.destroy()}),delete n[a]})}firePointEvent(e,n,i){let a=this,r=this.series.options;a.manageEvent(e),"click"===e&&r.allowPointSelect&&(i=function(c){!a.destroyed&&a.select&&a.select(null,c.ctrlKey||c.metaKey||c.shiftKey)}),tr(a,e,n,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let n,i,a=this,r=[],c={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","connector"),e.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)a[n=r[i]]&&c.singular.push(n);return["graphic","dataLabel"].forEach(function(l){let h=l+"s";e[l]&&a[h]&&c.plural.push(h)}),c}getNestedProperty(e){return e?0===e.indexOf("custom.")?np(e,this.options):this[e]:void 0}getZone(){let a,e=this.series,n=e.zones,i=e.zoneAxis||"y",r=0;for(a=n[0];this[i]>=a.value;)a=n[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=a?.color&&!this.options.color?a.color:this.nonZonedColor,a}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(e,n,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=e,this.applyOptions(n,i),this.id??(this.id=ap()),this.resolveColor(),this.dataLabelO
1nNull??(this.dataLabelOnNull=e.options.nullInteraction),e.chart.pointCount++,tr(this,"afterInit")}isValid(){return(_n(this.x)||this.x instanceof Date)&&_n(this.y)}optionsToObject(e){let l,n=this.series,i=n.options.keys,a=i||n.pointArrayMap||["y"],r=a.length,c={},h=0,p=0;if(_n(e)||null===e)c[a[0]]=e;else if(qs(e))for(!i&&e.length>r&&("string"==(l=typeof e[0])?n.xAxis?.dateTime?c.x=n.chart.time.parse(e[0]):c.name=e[0]:"number"===l&&(c.x=e[0]),h++);p<r;)i&&void 0===e[h]||(a[p].indexOf(".")>0?Hi.prototype.setNestedProperty(c,e[h],a[p]):c[a[p]]=e[h]),h++,p++;else"object"==typeof e&&(c=e,e.dataLabels&&(n.hasDataLabels=()=>!0),e.marker&&(n._hasPointMarkers=!0));return c}pos(e,n=this.plotY){if(!this.destroyed){let{plotX:i,series:a}=this,{chart:r,xAxis:c,yAxis:l}=a,h=0,p=0;if(_n(i)&&_n(n))return e&&(h=c?c.pos:r.plotLeft,p=l?l.pos:r.plotTop),r.inverted&&c&&l?[l.len-n+p,c.len-i+h]:[i+h,n+p]}}resolveColor(){let a,r,l,e=this.series,i=e.chart.styledMode,c=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(i||(a=(r=e.options.colors||e.chart.options.colors)[e.colorCounter],c=r.length),l=e.colorCounter,e.colorCounter++,e.colorCounter===c&&(e.colorCounter=0)):(i||(a=e.color),l=e.colorIndex),this.colorIndex=on(this.options.colorIndex,l),this.color=on(this.options.color,a)}setNestedProperty(e,n,i){return i.split(".").reduce(function(a,r,c,l){return a[r]=l.length-1===c?n:Bo(a[r],!0)?a[r]:{},a[r]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let{chart:n,pointArrayMap:i=["y"],tooltipOptions:a}=this.series,{valueDecimals:r="",valuePrefix:c="",valueSuffix:l=""}=a;return n.styledMode&&(e=n.tooltip?.styledModeFormat(e)||e),i.forEach(h=>{h="{point."+h,(c||l)&&(e=e.replace(RegExp(h+"}","g"),c+h+"}"+l)),e=e.replace(RegExp(h+"}","g"),h+":,."+r+"f}")}),Kd(e,this,n)}update(e,n,i,a){let r,c=this,l=c.series,h=c.graphic,p=l.chart,f=l.options;function m(){c.applyOptions(e);let _=h&&c.hasMockGraphic;h&&(null===c.y?!_:_)&&(c.graphic=h.destroy(),delete c.hasMockGraphic),Bo(e,!0)&&(h?.element&&e&&e.marker&&void 0!==e.marker.symbol&&(c.graphic=h.destroy()),e?.dataLabels&&c.dataLabel&&(c.dataLabel=c.dataLabel.destroy())),r=c.index;let C={};for(let x of l.dataColumnKeys())C[x]=c[x];l.dataTable.setRow(C,r),f.data[r]=Bo(f.data[r],!0)||Bo(e,!0)?c.options:on(e,f.data[r]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(p.isDirtyBox=!0),"point"===f.legendType&&(p.isDirtyLegend=!0),n&&p.redraw(i)}n=on(n,!0),!1===a?m():c.firePointEvent("update",{options:e},m)}remove(e,n){this.series.removePoint(this.series.data.indexOf(this),e,n)}select(e,n){let i=this,a=i.series,r=a.chart;e=on(e,!i.selected),this.selectedStaging=e,i.firePointEvent(e?"select":"unselect",{accumulate:n},function(){i.selected=i.options.selected=e,a.options.data[a.data.indexOf(i)]=i.options,i.setState(e&&"select"),n||r.getSelectedPoints().forEac
1h(function(c){let l=c.series;c.selected&&c!==i&&(c.selected=c.options.selected=!1,l.options.data[l.data.indexOf(c)]=c.options,c.setState(r.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),c.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:n,pointer:i}=this.series.chart;i&&(e=e?i.normalize(e):i.getChartCoordinatesFromPoint(this,n),i.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(n){n.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){let n=Qs(this.series.options.point,this.options),i=n.events?.[e];!ip(i)||this.hcEvents?.[e]&&-1!==this.hcEvents?.[e]?.map(a=>a.fn).indexOf(i)?this.importedUserEvent&&!i&&this.hcEvents?.[e]&&this.hcEvents?.[e].userEvent&&(Zs(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent):(this.importedUserEvent?.(),this.importedUserEvent=tp(this,e,i),this.hcEvents&&(this.hcEvents[e].userEvent=!0))}setState(e,n){let C,x,v,P,i=this.series,a=this.state,r=i.options.states[e||"normal"]||{},c=Zd.plotOptions[i.type].marker&&i.options.marker,l=c&&!1===c.enabled,h=c?.states?.[e||"normal"]||{},f=this.marker||{},m=i.chart,_=c&&i.markerAttribs,b=i.halo,y=i.stateMarkerGraphic;if((e=e||"")===this.state&&!n||this.selected&&"select"!==e||!1===r.enabled||e&&(!1===h.enabled||l&&!1===h.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)return;if(this.state=e,_&&(C=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),e&&this.graphic.addClass("highcharts-point-"+e),!m.styledMode){x=i.pointAttribs(this,e),v=on(m.options.chart.animation,r.animation);let T=x.opacity;i.options.inactiveOtherPoints&&_n(T)&&(this.dataLabels||[]).forEach(function(k){k&&!k.hasClass("highcharts-data-label-hidden")&&(k.animate({opacity:T},v),k.connector&&k.connector.animate({opacity:T},v))}),this.graphic.animate(x,v)}C&&this.graphic.animate(C,on(m.options.chart.animation,h.animation,c.animation)),y&&y.hide()}else e&&h&&(P=f.symbol||i.symbol,y&&y.currentSymbol!==P&&(y=y.destroy()),C&&(y?y[n?"animate":"attr"]({x:C.x,y:C.y}):P&&(i.stateMarkerGraphic=y=m.renderer.symbol(P,C.x,C.y,C.width,C.height,Qs(c,h)).add(i.markerGroup),y.currentSymbol=P)),!m.styledMode&&y&&"inactive"!==this.state&&y.attr(i.pointAttribs(this,e))),y&&(y[e&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0));let w=r.halo,I=this.graphic||y,R=I?.visibility||"inherit";w?.size&&I&&"hidden"!==R&&!this.isCluster?(b||(i.halo=b=m.renderer.path().add(I.parentGroup)),b.show()[n?"animate":"attr"]({d:this.haloPath(w.size)}),b.attr({class:"highcharts-halo highcharts-color-"+on(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:R,zIndex:-1}),b.point=this,m.styledMode||b.attr(Yo({fill:this.color||i.color,"fill-opacity":w.opacity},Qt.filterUserAttributes(w.attributes||{})))):b?.point?.haloPath&&!b.point.destroyed&&b.animate({d:b.point.haloPath(0)},null,b.hide),tr(this,"afterSetState",{state:e})}haloPath(e){let n=this.pos();return n?this.series.chart.renderer.symbols.circle(Js(n[0],1)-e,n[1]-e,2*e,2*e):[]}}let bn=Hi,{parse:rp}=Z,{charts:er,composed:sp,isTouchDevice:lp}=t,{addEvent:Le,attr:cp,css:nr,extend:ir,find:Ks,fireEvent:Dn,isNumber:Xo,isObject:Vo,objectEach:hp,offset:dp,pick:an,pushUnique:pp,splat:tl}=q;class ue{applyInactiveState(e=[]){let n=[];e.forEach(i=>{let a=i.series;n.push(a),a.linkedParent&&n.push(a.linkedParent),a.linkedSeries&&n.push.apply(n,a.linkedSeries),a.navigatorSeries&&n.push(a.navigatorSeries),a.boosted&&a.markerGroup&&n.push.apply(n,this.chart.series.filter(r=>r.markerGroup===a.markerGroup))}),this.chart.series.forEach(i=>{-1===n.indexOf(i)?i.setState("inactive",!0):i.options.inactiveOtherPoints&&i.setAllPointsToState("inactive")})}destroy(){let e=this;this.eventsToUnbind.forEach(n=>n()),this.eventsToUnbind=[],!t.chartCount&&(ue.unbindDocumentMouseUp.forEach(n=>n.unbind()),ue.unbindDocumentMouseUp.length=0,ue.unbindDocumentTouchEnd&&(ue.unbindDocumentTouchEnd=ue.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),hp(e,function(n,i){e[i]=void 0})}getSelectionMarkerAttrs(e,n){let i={args:{chartX:e,chartY:n},attrs:{},shapeType:"rect"};return Dn(this,"getSelectionMarkerAttrs",i,a=>{let r,{chart:c,zoomHor:l,zoomVert:h}=this,{mouseDownX:p=0,mouseDownY:f=0}=c,m=a.attrs;m.x=c.plotLeft,m.y=c.plotTop,m.width=l?1:c.plotWidth,m.height=h?1:c.plotHeight,l&&(m.width=Math.max(1,Math.abs(r=e-p)),m.x=(r>0?0:r)+p),h&&(m.height=Math.max(1,Math.abs(r=n-f)),m.y=(r>0?0:r)+f)}),i}drag(e){let v,{chart:n}
vendor: 4,792 bytes, line 1
1=this,{mouseDownX:i=0,mouseDownY:a=0}=n,{panning:r,panKey:c,selectionMarkerFill:l}=n.options.chart,h=n.plotLeft,p=n.plotTop,f=n.plotWidth,m=n.plotHeight,_=Vo(r)?r.enabled:r,b=c&&e[`${c}Key`],C=e.chartX,x=e.chartY,y=this.selectionMarker;if((!y||!y.touch)&&(C<h?C=h:C>h+f&&(C=h+f),x<p?x=p:x>p+m&&(x=p+m),this.hasDragged=Math.sqrt(Math.pow(i-C,2)+Math.pow(a-x,2)),this.hasDragged>10)){v=n.isInsidePlot(i-h,a-p,{visiblePlotOnly:!0});let{shapeType:P,attrs:w}=this.getSelectionMarkerAttrs(C,x);(n.hasCartesianSeries||n.mapView)&&this.hasZoom&&v&&!b&&!y&&(this.selectionMarker=y=n.renderer[P](),y.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||y.attr({fill:l||rp("#334eff").setOpacity(.25).get()})),y&&y.attr(w),v&&!y&&_&&n.pan(e,r)}}dragStart(e){let n=this.chart;n.mouseIsDown=e.type,n.cancelClick=!1,n.mouseDownX=e.chartX,n.mouseDownY=e.chartY}getSelectionBox(e){let n={args:{marker:e},result:e.getBBox()};return Dn(this,"getSelectionBox",n),n.result}drop(e){let n,{chart:i,selectionMarker:a}=this;for(let r of i.axes)r.isPanning&&(r.isPanning=!1,(r.options.startOnTick||r.options.endOnTick||r.series.some(c=>c.boosted))&&(r.forceRedraw=!0,r.setExtremes(r.userMin,r.userMax,!1),n=!0));if(n&&i.redraw(),a&&e){if(this.hasDragged){let r=this.getSelectionBox(a);i.transform({axes:i.axes.filter(c=>c.zoomEnabled&&("xAxis"===c.coll&&this.zoomX||"yAxis"===c.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...r},from:r})}Xo(i.index)&&(this.selectionMarker=a.destroy())}i&&Xo(i.index)&&(nr(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(e,n,i){let a;return e.forEach(function(r){let c=!(r.noSharedTooltip&&n)&&0>r.options.findNearestPointBy.indexOf("y"),l=r.searchPoint(i,c);Vo(l,!0)&&l.series&&(!Vo(a,!0)||function(h,p){let m=h.distX-p.distX,_=h.dist-p.dist,b=p.series.group?.zIndex-h.series.group?.zIndex;return 0!==m&&n?m:0!==_?_:0!==b?b:h.series.index>p.series.index?-1:1}(a,l)>0)&&(a=l)}),a}getChartCoordinatesFromPoint(e,n){let{xAxis:i,yAxis:a}=e.series,r=e.shapeArgs;if(i&&a){let c=e.clientX??e.plotX??0,l=e.plotY||0;return e.isNode&&r&&Xo(r.x)&&Xo(r.y)&&(c=r.x,l=r.y),n?{chartX:a.len+a.pos-l,chartY:i.len+i.pos-c}:{chartX:c+i.pos,chartY:l+a.pos}}if(r?.x&&r.y)return{chartX:r.x,chartY:r.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,n=dp(e);this.chartPosition={left:n.left,top:n.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:a}=e;return a>2&&i>2&&(this.chartPosition.scaleX=n.width/a,this.chartPosition.scaleY=n.height/i),this.chartPosition}getCoordinates(e){let n={xAxis:[],yAxis:[]};for(let i of this.chart.axes)n[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(e[i.horiz?"chartX":"chartY"])});return n}getHoverData(e,n,i,a,r,c){let f,l=[],h=function(b){return b.visible&&!(!r&&b.directTouch)&&an(b.options.enableMouseTracking,!0)},p=n,m={chartX:c?c.chartX:void 0,chartY:c?c.chartY:void 0,shared:r};Dn(this,"beforeGetHoverData",m),f=p&&!p.stickyTracking?[p]:i.filter(b=>b.stickyTracking&&(m.filter||h)(b));let _=a&&e||!c?e:this.findNearestKDPoint(f,r,c);return p=_?.series,_&&(r&&!p.noSharedTooltip?(f=i.filter(function(b){return m.filter?m.filter(b):h(b)&&!b.noSharedTooltip})).forEach(function(b){let C=b.options?.nullInteraction,x=Ks(b.points,function(v){return!(v.x!==_.x||v.isNull&&!C)});Vo(x)&&(b.boosted&&b.boost&&(x=b.boost.getPoint(x)),l.push(x))}):l.push(_)),Dn(this,"afterGetHoverData",m={hoverPoint:_}),{hoverPoint:m.hoverPoint,hoverSeries:p,hoverPoints:l}}getPointFromEvent(e){let i,n=e.target;for(;n&&!i;)i=n.point,n=n.parentNode;return i}onTrackerMouseOut(e){let i=e.relatedTarget,a=this.chart.hoverSeries;this.isDirectTouch=!1,!a||!i||a.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+a.index)&&this.inClass(i,"highcharts-tracker")||a.onMouseOut()}inClass(e,n){let a,i=e;for(;i;){if(a=cp(i,"class")){if(-1!==a.indexOf(n))return!0;if(-1!==a.indexOf("highcharts-container"))return!1}i=i.parentElement}}constructor(e,n){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=n,this.chart=e,this.runChartClick=!!n.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),Dn(this,"afterInit")}normalize(e,n){let i=e.touches,a=i?i.length?i.item(0):an(i.changedTouches,e.changedTouches)[0]:e;n||(n=this.getChartPosition());let r=a.pageX-n.left,c=a.pageY-n.top;return ir(e,{chartX:Math.round(r/=n.scaleX),chartY:Math.round(c/=n.scaleY)})}onContainerClick(e){let n=this.chart,i=n.hoverPoint,a=this.normalize(e),r=n.plotLeft,c=n.plotTop;!n.cancelClick&&(i&&this.inClass(a.target,"highcharts-tracker")?(Dn(i.series,"click",ir(a,{point:i})),n.hoverPoint&&i.firePointEvent("click",a)):(ir(a,this.getCoordinates(a)
vendor: 4,226 bytes, line 1
1),n.isInsidePlot(a.chartX-r,a.chartY-c,{visiblePlotOnly:!0})&&Dn(n,"click",a)))}onContainerMouseDown(e){let n=!(1&~(e.buttons||e.button));e=this.normalize(e),t.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||n)&&(this.zoomOption(e),n&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:n}=er[an(ue.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),n&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(n.reset(),n.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){let n=this.chart,i=n.tooltip,a=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===n.mouseIsDown||this.touchSelect(a))&&this.drag(a),!n.openMenu&&(this.inClass(a.target,"highcharts-tracker")||n.isInsidePlot(a.chartX-n.plotLeft,a.chartY-n.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(a)&&(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let n=this.chart,i=n.tooltip,a=this.chartPosition,r=this.normalize(e,a);!a||n.isInsidePlot(r.chartX-n.plotLeft,r.chartY-n.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(r)||r.target!==n.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){er[an(ue.hoverChartIndex,-1)]?.pointer?.drop(e)}pinch(e){let n=this,{chart:i,hasZoom:a,lastTouches:r}=n,c=[].map.call(e.touches||[],m=>n.normalize(m)),l=c.length,h=1===l&&(n.inClass(e.target,"highcharts-tracker")&&i.runTrackerClick||n.runChartClick),p=i.tooltip,f=1===l&&an(p?.options.followTouchMove,!0);l>1?n.initiated=!0:f&&(n.initiated=!1),a&&n.initiated&&!h&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(n.pinchDown=c,n.res=!0,i.mouseDownX=e.chartX):f?this.runPointActions(n.normalize(e)):r&&(Dn(i,"touchpan",{originalEvent:e,touches:c},()=>{let m=_=>{let b=_[0],C=_[1]||b;return{x:b.chartX,y:b.chartY,width:C.chartX-b.chartX,height:C.chartY-b.chartY}};i.transform({axes:i.axes.filter(_=>_.zoomEnabled&&(this.zoomHor&&_.horiz||this.zoomVert&&!_.horiz)),to:m(c),from:m(r),trigger:e.type})}),n.res&&(n.res=!1,this.reset(!1,0))),n.lastTouches=c}reset(e,n){let i=this.chart,a=i.hoverSeries,r=i.hoverPoint,c=i.hoverPoints,l=i.tooltip,h=l?.shared?c:r;e&&h&&tl(h).forEach(function(p){p.series.isCartesian&&void 0===p.plotX&&(e=!1)}),e?l&&h&&tl(h).length&&(l.refresh(h),l.shared&&c?c.forEach(function(p){p.setState(p.state,!0),p.series.isCartesian&&(p.series.xAxis.crosshair&&p.series.xAxis.drawCrosshair(null,p),p.series.yAxis.crosshair&&p.series.yAxis.drawCrosshair(null,p))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(p){p.crosshair&&r.series[p.coll]===p&&p.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),c&&c.forEach(function(p){p.setState()}),a&&a.onMouseOut(),l&&l.hide(n),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(p){p.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(e,n,i){let a=this.chart,r=a.series,c=a.tooltip?.options.enabled?a.tooltip:void 0,l=!!c&&c.shared,h=n||a.hoverPoint,p=h?.series||a.hoverSeries,m=this.getHoverData(h,p,r,(!e||"touchmove"!==e.type)&&(!!n||p?.directTouch&&this.isDirectTouch),l,e);h=m.hoverPoint,p=m.hoverSeries;let _=m.hoverPoints,b=p?.tooltipOptions.followPointer&&!p.tooltipOptions.split,C=l&&p&&!p.noSharedTooltip;if(h&&(i||h!==a.hoverPoint||c?.isHidden)){if((a.hoverPoints||[]).forEach(function(x){-1===_.indexOf(x)&&x.setState()}),a.hoverSeries!==p&&p.onMouseOver(),this.applyInactiveState(_),(_||[]).forEach(function(x){x.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!h.series)return;a.hoverPoints=_,a.hoverPoint=h,h.firePointEvent("mouseOver",void 0,()=>{c&&h&&c.refresh(C?_:h,e)})}else if(b&&c&&!c.isHidden){let x=c.getAnchor([{}],e);a.isInsidePlot(x[0],x[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:x[0],plotY:x[1]})}this.unDocMouseMove||(this.unDocMouseMove=Le(a.container.ownerDocument,"mousemove",x=>
1er[ue.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(x)),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(x){let v,y=x.crosshair?.snap??!0;!y||(v=a.hoverPoint)&&v.series[x.coll]===x||(v=Ks(_,P=>P.series?.[x.coll]===x)),v||!y?x.drawCrosshair(e,v):x.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,n=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Le(e,"mouseenter",this.onContainerMouseEnter.bind(this)),Le(e,"mouseleave",this.onContainerMouseLeave.bind(this))),ue.unbindDocumentMouseUp.some(a=>a.doc===n)||ue.unbindDocumentMouseUp.push({doc:n,unbind:Le(n,"mouseup",this.onDocumentMouseUp.bind(this))});let i=this.chart.renderTo.parentElement;for(;i&&"BODY"!==i.tagName;)this.eventsToUnbind.push(Le(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(Le(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),Le(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),ue.unbindDocumentTouchEnd||(ue.unbindDocumentTouchEnd=Le(n,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),Le(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!lp)return;let e=this.pointerCaptureEventsToUnbind,n=this.chart,i=n.container,a=an(n.options.tooltip?.followTouchMove,!0)&&n.series.some(r=>r.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&a?(e.push(Le(i,"pointerdown",r=>{r.target?.hasPointerCapture(r.pointerId)&&r.target?.releasePointerCapture(r.pointerId)}),Le(i,"pointermove",r=>{n.pointer?.getPointFromEvent(r)?.onMouseOver(r)})),n.styledMode||nr(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!a&&(e.forEach(r=>r()),e.length=0,n.styledMode||nr(i,{"touch-action":an(n.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){let n=this.chart,i=t.charts[an(ue.hoverChartIndex,-1)];if(i&&i!==n){let a={relatedTarget:n.container};e&&!e?.relatedTarget&&Object.assign({},e,a),i.pointer?.onContainerMouseLeave(e||a)}i?.mouseIsDown||(ue.hoverChartIndex=n.index)}touch(e,n){let i,{chart:a,pinchDown:r=[]}=this;this.setHoverChartIndex(),1===(e=this.normalize(e)).touches.length?a.isInsidePlot(e.chartX-a.plotLeft,e.chartY-a.plotTop,{visiblePlotOnly:!0})&&!a.openMenu?(n&&this.runPointActions(e),"touchmove"===e.type&&(i=!!r[0]&&Math.pow(r[0].chartX-e.chartX,2)+Math.pow(r[0].chartY-e.chartY,2)>=16),an(i,!0)&&this.pinch(e)):n&&this.reset():2===e.touches.length&&this.pinch(e)}touchSelect(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}zoomOption(e){let r,c,n=this.chart,i=n.inverted,a=n.zooming.type||"";/touch/.test(e.type)&&(a=an(n.zooming.pinchType,a)),this.zoomX=r=/x/.test(a),this.zoomY=c=/y/.test(a),this.zoomHor=r&&!i||c&&i,this.zoomVert=c&&!i||r&&i,this.hasZoom=r||c}}ue.unbindDocumentMouseUp=[],function(d){d.compose=function(e){pp(sp,"Core.Pointer")&&Le(e,"beforeRender",function(){this.pointer=new d(this,this.options)})}}(ue||(ue={}));let el=ue;!function(d){d.setLength=function(e,n,i){return Array.isArray(e)?(e.length=n,e):e[i?"subarray":"slice"](0,n)},d.splice=function(e,n,i,a,r=[]){if(Array.isArray(e))return Array.isArray(r)||(r=Array.from(r)),{removed:e.splice(n,i,...r),array:e};let c=Object.getPrototypeOf(e).constructor,l=e[a?"subarray":"slice"](n,n+i),h=new c(e.length-i+r.length);return h.set(e.subarray(0,n),0),h.set(r,n),h.set(e.subarray(n+i),n+r.length),{removed:l,array:h}}}(Pn||(Pn={}));let{setLength:up,splice:nl}=Pn,{fireEvent:or,objectEach:Ji,uniqueKey:qi}=q,Wo=class{constructor(d={}){this.autoId=!d.id,this.columns={},this.id=d.id||qi(),this.modified=this,this.rowCount=0,this.versionTag=qi();let e=0;Ji(d.columns||{},(n,i)=>{this.columns[i]=n.slice(),e=Math.max(e,n.length)}),this.applyRowCount(e)}applyRowCount(d){this.rowCount=d,Ji(this.columns,(e,n)=>{e.length!==d&&(this.columns[n]=up(e,d))})}deleteRows(d,e=1){if(e>0&&d<this.rowCount){let n=0;Ji(this.columns,(i,a)=>{this.columns[a]=nl(i,d,e).array,n=i.length}),this.rowCount=n}or(this,"afterDeleteRows",{rowIndex:d,rowCount:e}),this.versionTag=qi()}getColumn(d,e){return this.columns[d]}getColumns(d,e){return(d||Object.keys(this.columns)).reduce((n,i)=>(n[i]=this.columns[i],n),{})}getRow(d,e){return(e||Object.keys(this.columns)).map(n=>this.columns[n]?.[d])}setColumn(d,e=[],n=0,i){this.setColumns({[d]:e},n,i)}setColumns(d,e,n){let i=this.rowCount;Ji(d,(a,r)=>{this.columns[r]=a.slice(),i=a.length}),this.applyRowCount(i),n?.silent||(or(this,"afterSetColumns"),this.versionTag=qi())}setRow(d,e=this.rowCount,n,i){let{columns:a}=this,r=n?this.rowCount+1:e+1;Ji(d,(c,l)=>{let h=a[l]||!1!==i?.addColumns&&Array(r);h&&(n?h=nl(h,e,0,!0,[c]).array:h[e]=c,a[l]=h)}),r>this.rowCount&&this.applyRowCount(r),i?.silent||(or(this,"afterSetRows"),this.versionTag=qi())}},{extend:mp,merge:gp,pick:il}=q;!function(d){function e(n,i,a){let y,r=this.legendItem=this.legendItem||{},{chart:c,options:l}
1=this,{baseline:h=0,symbolWidth:p,symbolHeight:f}=n,m=this.symbol||"circle",_=f/2,b=c.renderer,C=r.group,x=h-Math.round((n.fontMetrics?.b||f)*(a?.4:.3)),v={},P=l.marker,w=0;if(c.styledMode||(v["stroke-width"]=Math.min(l.lineWidth||0,24),l.dashStyle?v.dashstyle=l.dashStyle:"square"===l.linecap||(v["stroke-linecap"]="round")),r.line=b.path().addClass("highcharts-graph").attr(v).add(C),a&&(r.area=b.path().addClass("highcharts-area").add(C)),v["stroke-linecap"]&&(w=Math.min(r.line.strokeWidth(),p)/2),p){let I=[["M",w,x],["L",p-w,x]];r.line.attr({d:I}),r.area?.attr({d:[...I,["L",p-w,h],["L",w,h]]})}if(P&&!1!==P.enabled&&p){let I=Math.min(il(P.radius,_),_);0===m.indexOf("url")&&(P=gp(P,{width:f,height:f}),I=0),r.symbol=y=b.symbol(m,p/2-I,x-I,2*I,2*I,mp({context:"legend"},P)).addClass("highcharts-point").add(C),y.isMarker=!0}}d.areaMarker=function(n,i){e.call(this,n,i,!0)},d.lineMarker=e,d.rectangle=function(n,i){let a=i.legendItem||{},c=n.symbolHeight,l=n.options.squareSymbol;a.symbol=this.chart.renderer.rect(l?(n.symbolWidth-c)/2:0,n.baseline-c+1,l?c:n.symbolWidth,c,il(n.options.symbolRadius,c/2)).addClass("highcharts-point").attr({zIndex:3}).add(a.group)}}(Yn||(Yn={}));let ar=Yn,{defaultOptions:ol}=ot,{extend:fp,extendClass:_p,merge:bp}=q;!function(d){function e(n,i){let a=ol.plotOptions||{},r=i.defaultOptions,c=i.prototype;return c.type=n,c.pointClass||(c.pointClass=bn),!d.seriesTypes[n]&&(r&&(a[n]=r),d.seriesTypes[n]=i,!0)}d.seriesTypes=t.seriesTypes,d.registerSeriesType=e,d.seriesType=function(n,i,a,r,c){let l=ol.plotOptions||{};if(l[n]=bp(l[i=i||""],a),delete d.seriesTypes[n],e(n,_p(d.seriesTypes[i]||function(){},r)),d.seriesTypes[n].prototype.type=n,c){class h extends bn{}fp(h.prototype,c),d.seriesTypes[n].prototype.pointClass=h}return d.seriesTypes[n]}}(pn||(pn={}));let Tt=pn,{animObject:al,setAnimation:Cp}=$t,{defaultOptions:Uo}=ot,{registerEventOptions:xp}=Do,{svg:yp,win:Mp}=t,{seriesTypes:yi}=Tt,{format:vp}=Oe,{arrayMax:rr,arrayMin:rl,clamp:sl,correctFloat:ll,crisp:Pp,defined:he,destroyObjectProperties:wp,diffObjects:Op,erase:cl,error:Ho,extend:Mi,find:Ip,fireEvent:ne,getClosestDistance:Tp,getNestedProperty:hl,insertItem:dl,isArray:pl,isNumber:me,isString:kp,merge:Qi,objectEach:sr,pick:ee,removeEvent:Rp,syncTimeout:ul}=q;class He{constructor(){this.zoneAxis="y"}init(e,n){let i;ne(this,"init",{options:n}),this.dataTable??(this.dataTable=new Wo);let a=e.series;this.eventsToUnbind=[],this.chart=e,this.options=this.setOptions(n);let r=this.options,c=!1!==r.visible;this.linkedSeries=[],this.bindAxes(),Mi(this,{name:r.name,state:"",visible:c,selected:!0===r.selected}),xp(this,r),(r.events?.click||r.point?.events?.click||r.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(e.hasCartesianSeries=!0),a.length&&(i=a[a.length-1]),this._i=ee(i?._i,-1)+1,this.opacity=this.options.opacity,e.orderItems("series",dl(this,a)),r.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(r.data,!1),ne(this,"afterInit")}is(e){return yi[e]&&this instanceof yi[e]}bindAxes(){let e,n=this,i=n.options,a=n.chart;ne(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(r){(a[r]||[]).forEach(function(c){e=c.options,(ee(i[r],0)===c.index||void 0!==i[r]&&i[r]===e.id)&&(dl(n,c.series),n[r]=c,c.isDirty=!0)}),n[r]||n.optionalAxis===r||Ho(18,!0,a)})}),ne(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,n){let i=e.marker,a=n.marker||{};return i&&(a.enabled&&!i.enabled||a.symbol!==i.symbol||a.height!==i.height||a.width!==i.width)}autoIncrement(e){let n,i=this.options,{pointIntervalUnit:a,relativeXValue:r}=this.options,c=this.chart.time,l=this.xIncrement??c.parse(i.pointStart)??0;if(this.pointInterval=n=ee(this.pointInterval,i.pointInterval,1),r&&me(e)&&(n*=e),a){let h=c.toParts(l);"day"===a?h[2]+=n:"month"===a?h[1]+=n:"year"===a&&(h[0]+=n),n=c.makeTime.apply(c,h)-l}return r&&me(e)?l+n:(this.xIncrement=l+n,l)}setDataSortingOptions(){let e=this.options;Mi(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),he(e.pointRange)||(e.pointRange=1)}setOptions(e){let n,i=this.chart,a=i.options.plotOptions,r=i.userOptions||{},c=Qi(e),l=i.styledMode,h={plotOptions:a,userOptions:c};ne(this,"setOptions",h);let p=h.plotOptions[this.type],f=r.plotOptions||{},m=f.series||{},_=Uo.plotOptions[this.type]||{},b=f[this.type]||{};p.dataLabels=this.mergeArrays(_.dataLabels,p.dataLabels),this.userOptions=h.userOptions;let C=Qi(p,a.series,b,c);this.tooltipOptions=Qi(Uo.tooltip,Uo.plotOptions.series?.tooltip,_?.tooltip,i.userOptions.tooltip,f.series?.tooltip,b.tooltip,c.tooltip),this.stickyTracking=ee(c.stickyTracking,b.stickyTracking,m.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||C.stickyTracking),null===p.marker&&delete C.marker,this.zoneAxis=C.zoneAxis||"y";let x=this.zones=(C.zones||[]).map(v=>({...v}));return(C.negativeColor||C.negativeFillColor)&&!C.zones&&(n={value:C[this.zoneAxis+"Threshold"]||C.threshold||0,className:"highcharts-negative"},l||(n.color=C.negativeColor,n.fillColor=C.negativeFillColor),x.push(n)),x.length&&he(x[x.length-1].value)&&x.push(l?{}:{color:this.color,fillColor:this.fillColor}),ne(this,"afterSetOptions",{options:C}),C}getName(){return this.options.name??vp(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,n,i){let a,r,c=this.chart,l=`${e}Index`,h=`${e}Counter`,p=i?.length||c.options.chart.colorCount;!n&&(he(r=ee("color"===e?this.options.colorIndex:void 0,this[l]))?a=r:(c.series.length||(c[h]=0),a=c[h]%p,c[h]+=1),i&&(n=i[a])),void 0!==a&&(this[l]=a),this[e]=n}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||Uo.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)}getColumn(e,n){return(n?this.dataTable.modified:this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,n){let i,a,r,{id:c,x:l}=e,h=this.points,p=this.options.dataSorting,f=this.cropStart||0;if(c){let m=this.chart.get(c);m instanceof bn&&(i=m)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let m=_=>!_.touched&&_.index===e.index;if(p?.matchByName?m=_=>!_.touched&&_.name===e.name:this.options.relativeXValue&&(m=_=>!_.touched&&_.options.x===e.x),!(i=Ip(h,m)))return}return i&&void 0!==(r=i?.index)&&(a=!0),void 0===r&&me(l)&&(r=this.getColumn("x").indexOf(l,n)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=f?r-f:r),!a&&me(r)&&h[r]?.touched&&(r=void 0),r}updateData(e,n){let p,f,m,_,{options:i,requireSorting:a}=this,r=i.dataSorting,c=this.points,l=[],h=e.length===c.length,b=!0;if(this.xIncrement=null,e.forEach((x,v)=>{let y,P=he(x)&&this.pointClass.prototype.optionsToObject.call({series:this},x)||{},{id:w,x:I}=P;w||me(I)?(-1===(y=this.findPointIndex(P,_))||void 0===y?l.push(x):c[y]&&x!==i.data?.[y]?(c[y].update(x,!1,void 0,!1),c[y].touched=!0,a&&(_=y+1)):c[y]&&(c[y].touched=!0),(!h||v!==y||r?.enabled||this.hasDerivedData)&&(p=!0)):l.push(x)},this),p)for(f=c.length;f--;)(m=c[f])&&!m.touched&&m.remove?.(!1,n);else h&&!r?.enabled?(e.forEach((x,v)=>{x===c[v].y||c[v].destroyed||c[v].update(x,!1,void 0,!1)}),l.length=0):b=!1;if(c.forEach(x=>{x&&(x.touched=!1)}),!b)return!1;l.forEach(x=>{this.addPoint(x,!1,void 0,void 0,!1)},this);let C=this.getColumn("x");return null===this.xIncrement&&C.length&&(this.xIncrement=rr(C),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(e,n=!0,i,a){let y,P,R,r=this.points,c=r?.length||0,l=this.options,h=this.chart,p=l.dataSorting,f=this.xAxis,m=l.turboThreshold,_=this.dataTable,b=this.dataColumnKeys(),C=this.pointV
1alKey||"y",x=(this.pointArrayMap||[]).length,v=l.keys,w=0,I=1;h.options.chart.allowMutatingData||(l.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,R=Qi(!0,e));let T=(e=R||e||[]).length;if(p?.enabled&&(e=this.sortData(e)),h.options.chart.allowMutatingData&&!1!==a&&T&&c&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(P=this.updateData(e,i)),!P){this.xIncrement=null,this.colorCounter=0;let k=m&&T>m;if(k){let A=this.getFirstValidPoint(e),F=this.getFirstValidPoint(e,T-1,-1),G=j=>!(!pl(j)||!v&&!me(j[0]));if(me(A)&&me(F)){let j=[],U=[];for(let K of e)j.push(this.autoIncrement()),U.push(K);_.setColumns({x:j,[C]:U})}else if(G(A)&&G(F))if(x){let j=+(A.length===x),U=Array(b.length).fill(0).map(()=>[]);for(let K of e){j&&U[0].push(this.autoIncrement());for(let it=j;it<=x;it++)U[it]?.push(K[it-j])}_.setColumns(b.reduce((K,it,rt)=>(K[it]=U[rt],K),{}))}else{v&&(w=v.indexOf("x"),I=v.indexOf("y"),w=w>=0?w:0,I=I>=0?I:1),1===A.length&&(I=0);let j=[],U=[];if(w===I)for(let K of e)j.push(this.autoIncrement()),U.push(K[I]);else for(let K of e)j.push(K[w]),U.push(K[I]);_.setColumns({x:j,[C]:U})}else k=!1}if(!k){let A=b.reduce((F,G)=>(F[G]=[],F),{});for(y=0;y<T;y++){let F=this.pointClass.prototype.applyOptions.apply({series:this},[e[y]]);for(let G of b)A[G][y]=F[G]}_.setColumns(A)}for(kp(this.getColumn("y")[0])&&Ho(14,!0,h),this.data=[],this.options.data=this.userOptions.data=e,y=c;y--;)r[y]?.destroy();f&&(f.minRange=f.userMinRange),this.isDirty=h.isDirtyBox=!0,this.isDirtyData=!!r,i=!1}"point"===l.legendType&&(this.processData(),this.generatePoints()),n&&h.redraw(i)}sortData(e){let n=this,i=n.options.dataSorting.sortKey||"y",a=function(r,c){return he(c)&&r.pointClass.prototype.optionsToObject.call({series:r},c)||{}};return e.forEach(function(r,c){e[c]=a(n,r),e[c].index=c},this),e.concat().sort((r,c)=>{let l=hl(i,r),h=hl(i,c);return h<l?-1:+(h>l)}).forEach(function(r,c){r.x=c},this),n.linkedSeries&&n.linkedSeries.forEach(function(r){let c=r.options,l=c.data;!c.dataSorting?.enabled&&l&&(l.forEach(function(h,p){l[p]=a(r,h),e[p]&&(l[p].x=e[p].x,l[p].index=p)}),r.setData(l,!1))}),e}getProcessedData(e){let m,_,C,x,v,n=this,{dataTable:i,isCartesian:a,options:r,xAxis:c}=n,l=r.cropThreshold,h=e||n.getExtremesFromAll,p=c?.logarithmic,f=i.rowCount,b=0,y=n.getColumn("x"),P=i,w=!1;return c&&(x=(C=c.getExtremes()).min,v=C.max,w=!(!c.categories||c.names.length),a&&n.sorted&&!h&&(!l||f>l||n.forceCrop)&&(y[f-1]<x||y[0]>
1v?P=new Wo:n.getColumn(n.pointValKey||"y").length&&(y[0]<x||y[f-1]>v)&&(P=(m=this.cropData(i,x,v)).modified,b=m.start,_=!0))),y=P.getColumn("x")||[],{modified:P,cropped:_,cropStart:b,closestPointRange:Tp([p?y.map(p.log2lin):y],()=>n.requireSorting&&!w&&Ho(15,!1,n.chart))}}processData(e){let i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!e)return!1;let a=this.getProcessedData();i.modified=a.modified,this.cropped=a.cropped,this.cropStart=a.cropStart,this.closestPointRange=this.basePointRange=a.closestPointRange,ne(this,"afterProcessData")}cropData(e,n,i){let l,h,a=e.getColumn("x",!0)||[],r=a.length,c={},p=0,f=r;for(l=0;l<r;l++)if(a[l]>=n){p=Math.max(0,l-1);break}for(h=l;h<r;h++)if(a[h]>i){f=h+1;break}for(let m of this.dataColumnKeys()){let _=e.getColumn(m,!0);_&&(c[m]=_.slice(p,f))}return{modified:new Wo({columns:c}),start:p,end:f}}generatePoints(){let x,v,y,P,I,e=this.options,n=this.processedData||e.data,i=this.dataTable.modified,a=this.getColumn("x",!0),r=this.pointClass,c=i.rowCount,l=this.cropStart||0,h=this.hasGroupedData,p=e.keys,f=[],m=e.dataGrouping?.groupAll?l:0,_=this.xAxis?.categories,b=this.pointArrayMap||["y"],C=this.dataColumnKeys(),w=this.data;if(!w&&!h){let R=[];R.length=n?.length||0,w=this.data=R}for(p&&h&&(this.options.keys=!1),P=0;P<c;P++)v=l+P,h?((y=new r(this,i.getRow(P,C)||[])).dataGroup=this.groupMap[m+P],y.dataGroup?.options&&(y.options=y.dataGroup.options,Mi(y,y.dataGroup.options),delete y.dataLabels)):(y=w[v],I=n?n[v]:i.getRow(P,b),y||void 0===I||(w[v]=y=new r(this,I,a[P]))),y&&(y.index=h?m+P:v,f[P]=y,y.category=_?.[y.x]??y.x,y.key=y.name??y.category);if(this.options.keys=p,w&&(c!==(x=w.length)||h))for(P=0;P<x;P++)P!==l||h||(P+=c),w[P]&&(w[P].destroyElements(),w[P].plotX=void 0);this.data=w,this.points=f,ne(this,"afterGeneratePoints")}getXExtremes(e){return{min:rl(e),max:rr(e)}}getExtremes(e,n){let x,v,y,{xAxis:i,yAxis:a}=this,r=n||this.getExtremesFromAll||this.options.getExtremesFromAll,c=r&&this.cropped?this.dataTable:this.dataTable.modified,l=c.rowCount,h=e||this.stackedYData,p=h?[h]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(R=>c.getColumn(R,!0)||[])||[],f=this.getColumn("x",!0),m=[],_=this.requireSorting&&!this.is("column")?1:0,b=!!a&&a.positiveValuesOnly,C=r||this.cropped||!i,P=0,w=0;for(i&&(P=(x=i.getExtremes()).min,w=x.max),y=0;y<l;y++)if(v=f[y],C||(f[y+_]||v)>=P&&(f[y-_]||v)<=w)for(let R of p){let T=R[y];me(T)&&(T>0||!b)&&m.push(T)}let I={activeYData:m,dataMin:rl(m),dataMax:rr(m)};return ne(this,"afterGetExtremes",{dataExtremes:I}),I}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,n=0,i=1){let a=e.length,r=n;for(;r>=0&&r<a;){if(he(e[r]))return e[r];r+=i}}translate(){this.generatePoints();let b,C,x,v,e=this.options,n=e.stacking,i=this.xAxis,a=this.enabledDataSorting,r=this.yAxis,c=this.points,l=c.length,h=this.pointPlacementToXValue(),p=!!h,f=e.threshold,m=e.startFromThreshold?f:0,_=e?.nullInteraction&&r.len,y=Number.MAX_VALUE;function P(w){return sl(w,-1e9,1e9)}for(b=0;b<l;b++){let w,T,k,I=c[b],R=I.x,A=I.y,F=I.low,G=n&&r.stacking?.stacks[(this.negStacks&&A<(m?0:f)?"-":"")+this.stackKey];I.plotX=me(C=i.translate(R,!1,!1,!1,!0,h))?ll(P(C)):void 0,n&&this.visible&&G&&G[R]&&(v=this.getStackIndicator(v,R,this.index),!I.isNull&&v.key&&(k=(T=G[R]).points[v.key]),T&&pl(k)&&(F=k[0],A=k[1],F===m&&v.key===G[R].base&&(F=ee(me(f)?f:r.min)),r.positiveValuesOnly&&he(F)&&F<=0&&(F=void 0),I.total=I.stackTotal=ee(T.total),I.percentage=he(I.y)&&T.total?I.y/T.total*100:void 0,I.stackY=A,this.irregularWidths||T.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),I.yBottom=he(F)?P(r.translate(F,!1,!0,!1,!0)):void 0,this.dataModify&&(A=this.dataModify.modifyValue(A,b)),me(A)&&void 0!==I.plotX?w=me(w=r.translate(A,!1,!0,!1,!0))?P(w):void 0:!me(A)&&_&&(w=_),I.plotY=w,I.isInside=this.isPointInside(I),I.clientX=p?ll(i.translate(R,!1,!1,!1,!0,h)):C,I.negative=(I.y||0)<(f||0),I.isNull||!1===I.visible||(void 0!==x&&(y=Math.min(y,Math.abs(C-x))),x=C),I.zone=this.zones.length?I.getZone():void 0,!I.graphic&&this.group&&a&&(I.isNew=!0)}this.closestPointRangePx=y,ne(this,"afterTranslate")}getValidPoints(e,n,i){let a=this.chart;return(e||this.points||[]).filter(function(r){let{plotX:c,plotY:l}=r;return!(!(i||!r.isNull&&me(l))||n&&!a.isInsidePlot(c,l,{inverted:a.inverted}))&&!1!==r.visible})}
1getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:e,group:n,markerGroup:i}=this,a=e.sharedClips,r=e.renderer,c=e.getClipBox(this),l=this.getSharedClipKey(),h=a[l];h?h.animate(c):a[l]=h=r.clipRect(c),n&&n.clip(!1===this.options.clip?void 0:h),i&&i.clip()}animate(e){let{chart:n,group:i,markerGroup:a}=this,r=n.inverted,c=al(this.options.animation),l=[this.getSharedClipKey(),c.duration,c.easing,c.defer].join(","),h=n.sharedClips[l],p=n.sharedClips[l+"m"];if(e&&i){let f=n.getClipBox(this);h?h.attr("height",f.height):(f.width=0,r&&(f.x=n.plotHeight),h=n.renderer.clipRect(f),n.sharedClips[l]=h,p=n.renderer.clipRect({x:-99,y:-99,width:r?n.plotWidth+199:99,height:r?99:n.plotHeight+199}),n.sharedClips[l+"m"]=p),i.clip(h),a?.clip(p)}else if(h&&!h.hasClass("highcharts-animating")){let f=n.getClipBox(this),m=c.step;(a?.element.childNodes.length||n.series.length>1)&&(c.step=function(_,b){m&&m.apply(b,arguments),"width"===b.prop&&p?.element&&p.attr(r?"height":"width",_+99)}),h.addClass("highcharts-animating").animate(f,c)}}afterAnimate(){this.setClip(),sr(this.chart.sharedClips,(e,n,i)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete i[n])}),this.finishedAnimating=!0,ne(this,"afterAnimate")}drawPoints(e=this.points){let n,i,a,r,c,l,h,p=this.chart,f=p.styledMode,{colorAxis:m,options:_}=this,b=_.marker,C=_.nullInteraction,x=this[this.specialGroup||"markerGroup"],v=this.xAxis,y=ee(b.enabled,!v||!!v.isRadial||null,this.closestPointRangePx>=b.enabledThreshold*b.radius);if(!1!==b.enabled||this._hasPointMarkers)for(n=0;n<e.length;n++){r=(a=(i=e[n]).graphic)?"animate":"attr",c=i.marker||{},l=!!i.marker;let P=i.isNull;if(!(y&&!he(c.enabled)||c.enabled)||P&&!C||!1===i.visible)a&&(i.graphic=a.destroy());else{let w=ee(c.symbol,this.symbol,"rect");h=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=v.reversed?-(h.width||0):v.width);let I=!1!==i.isInside;if(!a&&I&&((h.width||0)>0||i.hasImage)&&(i.graphic=a=p.renderer.symbol(w,h.x,h.y,h.width,h.height,l?c:b).add(x),this.enabledDataSorting&&p.hasRendered&&(a.attr({x:i.startXPos}),r="animate")),a&&"animate"===r&&a[I?"show":"hide"](I).animate(h),a){let R=this.pointAttribs(i,f||!i.selected?void 0:"select");f?m&&a.css({fill:R.fill}):a[r](R)}a&&a.addClass(i.getClassName(),!0)}}}markerAttribs(e,n){let h,p,i=this.options,a=i.marker,r=e.marker||{},c=r.symbol||a.symbol,l={},f=ee(r.radius,a?.radius);n&&(h=a.states[n],p=r.states&&r.states[n],f=ee(p?.radius,h?.radius,f&&f+(h?.radiusPlus||0))),e.hasImage=c&&0===c.indexOf("url"),e.hasImage&&(f=0);let m=e.pos();return me(f)&&m&&(i.crisp&&(m[0]=Pp(m[0],e.hasImage?0:"rect"===c?a?.lineWidth||0:1)),l.x=m[0]-f,l.y=m[1]-f),f&&(l.width=l.height=2*f),l}pointAttribs(e,n){let f,m,b,C,i=this.options,a=i.marker,r=e?.options,c=r?.marker||{},l=r?.color,h=e?.color,p=e?.zone?.color,_=this.color,x=ee(c.lineWidth,a.lineWidth),v=e?.isNull&&i.nullInteraction?0:1;return _=l||p||h||_,b=c.fillColor||a.fillColor||_,C=c.lineColor||a.lineColor||_,f=a.states[n=n||"normal"]||{},x=ee((m=c.states&&c.states[n]||{}).lineWidth,f.lineWidth,x+ee(m.lineWidthPlus,f.lineWidthPlus,0)),b=m.fillColor||f.fillColor||b,C=m.lineColor||f.lineColor||C,{stroke:C,"stroke-width":x,fill:b,opacity:v=ee(m.opacity,f.opacity,v)}}destroy(e){let n,i,a=this,r=a.chart,c=/AppleWebKit\/533/.test(Mp.navigator.userAgent),l=a.data||[];for(ne(a,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(a.axisTypes||[]).forEach(function(h){i=a[h],i?.series&&(cl(i.series,a),i.isDirty=i.forceRedraw=!0)}),a.legendItem&&a.chart.legend.destroyItem(a),n=l.length;n--;)l[n]?.destroy?.();for(let h of a.zones)wp(h,void 0,!0);q.clearTimeout(a.animationTimeout),sr(a,function(h,p){h instanceof Ue&&!h.survive&&h[c&&"group"===p?"hide":"destroy"]()}),r.hoverSeries===a&&(r.hoverSeries=void 0),cl(r.series,a),r.orderItems("series"),sr(a,function(h,p){e&&"hcEvents"===p||delete a[p]})}applyZones(){let{area:e,chart:n,graph:i,zones:a,points:r,xAxis:c,yAxis:l,zoneAxis:h}=this,{inverted:p,renderer:f}=n,m=this[`${h}Axis`],{isXAxis:_,len:b=0,minPointOffset:C=0}=m||{},x=(i?.strokeWidth()||0)/2+1,v=(y,P=0,w=0)=>{p&&(w=b-w);let{translated:I=0,lineClip:R}=y,T=w-I;R?.push(["L",P,Math.abs(T)<x?w-x*(T<=0?-1:1):I])};if(a.length&&(i||e)&&m&&me(m.min)){let y=m.getExtremes().max+C,P=R=>{R.forEach((T,k)=>{("M"===T[0]||"L"===T[0])&&(R[k]=[T[0],_?b-T[1]:T[1],_?T[2]:b-T[2]])})};
vendor: 4,903 bytes, line 1
1if(a.forEach(R=>{R.lineClip=[],R.translated=sl(m.toPixels(ee(R.value,y),!0)||0,0,b)}),i&&!this.showLine&&i.hide(),e&&e.hide(),"y"===h&&r.length<c.len)for(let R of r){let{plotX:T,plotY:k,zone:A}=R,F=A&&a[a.indexOf(A)-1];A&&v(A,T,k),F&&v(F,T,k)}let w=[],I=m.toPixels(m.getExtremes().min-C,!0);a.forEach(R=>{let T=R.lineClip||[],k=Math.round(R.translated||0);c.reversed&&T.reverse();let{clip:A,simpleClip:F}=R,G=0,j=0,U=c.len,K=l.len;_?(G=k,U=I):(j=k,K=I);let it=[["M",G,j],["L",U,j],["L",U,K],["L",G,K],["Z"]],rt=[it[0],...T,it[1],it[2],...w,it[3],it[4]];w=T.reverse(),I=k,p&&(P(rt),e&&P(it)),A?(A.animate({d:rt}),F?.animate({d:it})):(A=R.clip=f.path(rt),e&&(F=R.simpleClip=f.path(it))),i&&R.graph?.clip(A),e&&R.area?.clip(F)})}else this.visible&&(i&&i.show(),e&&e.show())}plotGroup(e,n,i,a,r){let c=this[e],l=!c,h={visibility:i,zIndex:a||.1};return he(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(h.opacity=this.opacity),c||(this[e]=c=this.chart.renderer.g().add(r)),c.addClass("highcharts-"+n+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(he(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(c.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),c.attr(h)[l?"attr":"animate"](this.getPlotBox(n)),c}getPlotBox(e){let n=this.xAxis,i=this.yAxis,a=this.chart,r=a.inverted&&!a.polar&&n&&this.invertible&&"series"===e;return a.inverted&&(n=i,i=this.xAxis),{translateX:n?n.left:a.plotLeft,translateY:i?i.top:a.plotTop,rotation:90*!!r,rotationOriginX:r?(n.len-i.len)/2:0,rotationOriginY:r?(n.len+i.len)/2:0,scaleX:r?-1:1,scaleY:1}}removeEvents(e){let{eventsToUnbind:n}=this;e||Rp(this),n.length&&(n.forEach(i=>{i()}),n.length=0)}render(){let e=this,{chart:n,options:i,hasRendered:a}=e,r=al(i.animation),c=e.visible?"inherit":"hidden",l=i.zIndex,h=n.seriesGroup,p=e.finishedAnimating?0:r.duration;ne(this,"render"),e.plotGroup("group","series",c,l,h),e.markerGroup=e.plotGroup("markerGroup","markers",c,l,h),!1!==i.clip&&e.setClip(),p&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),i.enableMouseTracking&&e.drawTracker?.(),p&&e.animate?.(),a||(p&&r.defer&&(p+=r.defer),e.animationTimeout=ul(()=>{e.afterAnimate()},p||0)),e.isDirty=!1,e.hasRendered=!0,ne(e,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,n){let{xAxis:i,yAxis:a}=this,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-e.chartY+i.pos:e.chartX-i.pos,plotY:r?a.len-e.chartX+a.pos:e.chartY-a.pos},n,e)}buildKDTree(e){this.buildingKdTree=!0;let n=this,i=n.options,a=i.findNearestPointBy.indexOf("y")>-1?2:1;delete n.kdTree,ul(function(){n.kdTree=function r(c,l,h){let p,f,m=c?.length;if(m)return p=n.kdAxisArray[l%h],c.sort((_,b)=>(_[p]||0)-(b[p]||0)),{point:c[f=Math.floor(m/2)],left:r(c.slice(0,f),l+1,h),right:r(c.slice(f+1),l+1,h)}}(n.getValidPoints(void 0,!n.directTouch,i?.nullInteraction),a,a),n.buildingKdTree=!1},i.kdNow||"touchstart"===e?.type?0:1)}searchKDTree(e,n,i,a,r){let c=this,[l,h]=this.kdAxisArray,p=n?"distX":"dist",f=(c.options.findNearestPointBy||"").indexOf("y")>-1?2:1,m=!!c.isBubble,_=a||((C,x,v)=>{let y=C[v]||0,P=x[v]||0;return[y===P&&C.index>x.index||y<P?C:x,!1]}),b=r||((C,x)=>C<x);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function C(x,v,y,P){let w=v.point,I=c.kdAxisArray[y%P],R=w,T=!1;!function(G,j){let U=G[l],K=j[l],it=he(U)&&he(K)?U-K:null,rt=G[h],et=j[h],ct=he(rt)&&he(et)?rt-et:0,Xt=m&&j.marker?.radius||0;j.dist=Math.sqrt((it&&it*it||0)+ct*ct)-Xt,j.distX=he(it)?Math.abs(it)-Xt:Number.MAX_VALUE}(x,w);let k=(x[I]||0)-(w[I]||0)+(m&&w.marker?.radius||0),A=k<0?"left":"right",F=k<0?"right":"left";return v[A]&&([R,T]=_(w,C(x,v[A],y+1,P),p)),v[F]&&b(Math.sqrt(k*k),R[p],T)&&(R=_(R,C(x,v[F],y+1,P),p)[0]),R}(e,this.kdTree,f,f)}pointPlacementToXValue(){let{options:e,xAxis:n}=this,i=e.pointPlacement;return"between"===i&&(i=n.reversed?-.5:.5),me(i)?i*(e.pointRange||n.pointRange):0}isPointInside(e){let{chart:n,xAxis:i,yAxis:a}=this,{plotX:r=-1,plotY:c=-1}=e;return c>=0&&c<=(a?a.len:n.plotHeight)&&r>=0&&r<=(i?i.len:n.plotWidth)}drawTracker(){let e=this,n=e.options,i=n.trackByArea,a=[].concat((i?e.areaPath:e.graphPath)||[]),r=e.chart,c=r.pointer,l=r.renderer,h=r.options.tooltip?.snap||0,p=()=>{n.enableMouseTracking&&r.hoverSeries!==e&&e.onMouseOver()},f="rgba(192,192,192,"+(yp?1e-4:.002)+")",m=e.tracker;m?m.attr({d:a}):e.graph&&(e.tracker=m=l.path(a).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),r.styledMode||m.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:f,fill:i?f:"none","stroke-width":e.graph.strokeWidth()+(i?0:2*h)}
1),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(_=>{_&&(_.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",b=>{c?.onTrackerMouseOut(b)}),n.cursor&&!r.styledMode&&_.css({cursor:n.cursor}),_.on("touchstart",p))})),ne(this,"afterDrawTracker")}addPoint(e,n,i,a,r){let c,l,h=this.options,{chart:p,data:f,dataTable:m,xAxis:_}=this,b=_?.hasNames&&_.names,C=h.data,x=this.getColumn("x");n=ee(n,!0);let v={series:this};this.pointClass.prototype.applyOptions.apply(v,[e]);let y=v.x;if(l=x.length,this.requireSorting&&y<x[l-1])for(c=!0;l&&x[l-1]>y;)l--;m.setRow(v,l,!0,{addColumns:!1}),b&&v.name&&(b[y]=v.name),C?.splice(l,0,e),(c||this.processedData)&&(this.data.splice(l,0,null),this.processData()),"point"===h.legendType&&this.generatePoints(),i&&(f[0]&&f[0].remove?f[0].remove(!1):([f,C].filter(he).forEach(P=>{P.shift()}),m.deleteRows(0))),!1!==r&&ne(this,"addPoint",{point:v}),this.isDirty=!0,this.isDirtyData=!0,n&&p.redraw(a)}removePoint(e,n,i){let a=this,{chart:r,data:c,points:l,dataTable:h}=a,p=c[e],f=function(){[l?.length===c.length?l:void 0,c,a.options.data].filter(he).forEach(m=>{m.splice(e,1)}),h.deleteRows(e),p?.destroy(),a.isDirty=!0,a.isDirtyData=!0,n&&r.redraw()};Cp(i,r),n=ee(n,!0),p?p.firePointEvent("remove",null,f):f()}remove(e,n,i,a){let r=this,c=r.chart;function l(){r.destroy(a),c.isDirtyLegend=c.isDirtyBox=!0,c.linkSeries(a),ee(e,!0)&&c.redraw(n)}!1!==i?ne(r,"remove",null,l):l()}update(e,n){ne(this,"update",{options:e=Op(e,this.userOptions)});let m,_,i=this,a=i.chart,r=i.userOptions,c=i.initialType||i.type,l=a.options.plotOptions,h=yi[c].prototype,p=i.finishedAnimating&&{animation:!1},f={},b=He.keepProps.slice(),C=e.type||r.type||a.options.chart.type,x=!(this.hasDerivedData||C&&C!==this.type||void 0!==e.ke
1ys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(y=>i.hasOptionChanged(y)));C=C||c,x?(b.push.apply(b,He.keepPropsForPoints),!1!==e.visible&&b.push("area","graph"),i.parallelArrays.forEach(function(y){b.push(y+"Data")}),e.data&&(e.dataSorting&&Mi(i.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e=Qi(r,{index:void 0===r.index?i.index:r.index,pointStart:l?.series?.pointStart??r.pointStart??i.getColumn("x")[0]},!x&&{data:i.options.data},e,p),x&&e.data&&(e.data=i.options.data),(b=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(b)).forEach(function(y){b[y]=i[y],delete i[y]});let v=!1;if(yi[C]){if(v=C!==i.type,i.remove(!1,!1,!1,!0),v)if(a.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,yi[C].prototype);else{let y=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(_ in h)i[_]=void 0;Mi(i,yi[C].prototype),y?i.hcEvents=y:delete i.hcEvents}}else Ho(17,!0,a,{missingModuleFor:C});if(b.forEach(function(y){i[y]=b[y]}),i.init(a,e),x&&this.points)for(let y of(!1===(m=i.options).visible?(f.graphic=1,f.dataLabel=1):(this.hasMarkerChanged(m,r)&&(f.graphic=1),i.hasDataLabels?.()||(f.dataLabel=1)),this.points))y?.series&&(y.resolveColor(),Object.keys(f).length&&y.destroyElements(f),!1===m.showInLegend&&y.legendItem&&a.legend.destroyItem(y));i.initialType=c,a.linkSeries(),a.setSortedData(),v&&i.linkedSeries.length&&(i.isDirtyData=!0),ne(this,"afterUpdate"),ee(n,!0)&&a.redraw(!!x&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){let i=this.options[e],a=this.chart.options.plotOptions,r=this.userOptions[e],c=ee(a?.[this.type]?.[e],a?.series?.[e]);return r&&!he(c)?i!==r:i!==ee(c,i)}onMouseOver(){let e=this.chart,n=e.hoverSeries;e.pointer?.setHoverChartIndex(),n&&n!==this&&n.onMouseOut(),this.options.events.mouseOver&&ne(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,n=this.chart,i=n.tooltip,a=n.hoverPoint;n.hoverSeries=null,a&&a.onMouseOut(),this&&e.events.mouseOut&&ne(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),n.series.forEach(function(r){r.setState("",!0)})}setState(e,n){let i=this,a=i.options,r=i.graph,c=a.inactiveOtherPoints,l=a.states,h=ee(l[e||"normal"]&&l[e||"normal"].animation,i.chart.options.chart.animation),p=a.lineWidth,f=a.opacity;if(i.state!==(e=e||"")&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(m){m&&(i.state&&m.removeClass("highcharts-series-"+i.state),e&&m.addClass("highcharts-series-"+e))}),i.state=e,!i.chart.styledMode)){if(l[e]&&!1===l[e].enabled)return;if(e&&(p=l[e].lineWidth||p+(l[e].lineWidthPlus||0),f=ee(l[e].opacity,f)),r&&!r.dashstyle&&me(p))for(let m of[r,...this.zones.map(_=>_.graph)])m?.animate({"stroke-width":p},h);c||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(m){m&&m.animate({opacity:f},h)})}n&&c&&i.points&&i.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(n){n.setState&&n.setState(e)})}setVisible(e,n){let i=this,a=i.chart,r=a.options.chart.ignoreHiddenSeries;i.visible=e=i.options.visible=i.userOptions.visible=void 0===e?!i.visible:e;let l=e?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(h=>{i[h]?.[l]()}),(a.hoverSeries===i||a.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&a.legend.colorizeItem(i,e),i.isDirty=!0,i.options.stacking&&a.series.forEach(h=>{h.options.stacking&&h.visible&&(h.isDirty=!0)}),i.linkedSeries.forEach(h=>{h.setVisible(e,!1)}),r&&(a.isDirtyBox=!0),ne(i,l),!1!==n&&a.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),ne(this,e?"select":"unselect")}shouldShowTooltip(e,n,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(e,n,i)}drawLegendSymbol(e,n){ar[this.options.legendSymbol||"rectangle"]?.call(this,e,n)}}He.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:d}=this.series.chart;return"number"!=typeof this.y?"":d(this.y,-1)},padding:5,style:{fontSize:"0.7em",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:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},He.types=Tt.seriesTypes,He.registerType=Tt.registerSeriesType,He.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],He.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Mi(He.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:bn,requireSorting:!0,sorted:!0}
vendor: 4,685 bytes, line 1
1),Tt.series=He;let Se=He,{animObject:Ap,setAnimation:Sp}=$t,{registerEventOptions:ml}=Do,{composed:Dp,marginNames:gl}=t,{distribute:Ep}=zi,{format:Fp}=Oe,{addEvent:Jo,createElement:$p,css:Lp,defined:lr,discardElement:Gp,find:jp,fireEvent:Cn,isNumber:fl,merge:Kn,pick:Ge,pushUnique:Np,relativeLength:zp,stableSort:Yp,syncTimeout:Bp}=q;class cr{constructor(e,n){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(n),n.enabled&&(this.render(),ml(this,n),Jo(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),Jo(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let n=Ge(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Kn(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=n,this.initialItemY=n-5,this.symbolWidth=Ge(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,n){let i=this.chart;this.setOptions(Kn(!0,this.options,e)),"events"in this.options&&ml(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,Ge(n,!0)&&i.redraw(),Cn(this,"afterUpdate",{redraw:n})}colorizeItem(e,n){let i=e.color,{area:a,group:r,label:c,line:l,symbol:h}=e.legendItem||{};if((e instanceof Se||e instanceof bn)&&(e.color=e.options?.legendSymbolColor||i),r?.[n?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:p={}}=this,f=p.color,{fillColor:m,fillOpacity:_,lineColor:b,marker:C}=e.options,x=v=>(!n&&(v.fill&&(v.fill=f),v.stroke&&(v.stroke=f)),v);c?.css(Kn(n?this.itemStyle:p)),l?.attr(x({stroke:b||e.color})),h&&h.attr(x(C&&h.isMarker?e.pointAttribs():{fill:e.color})),a?.attr(x({fill:m||e.color,"fill-opacity":m?1:_??.75}))}e.color=i,Cn(this,"afterColorizeItem",{item:e,visible:n})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:n,x:i=0,y:a=0}=e.legendItem||{},r=this.options,c=r.symbolPadding,l=!r.rtl,h=e.checkbox;if(n?.element){let p={translateX:l?i:this.legendWidth-i-2*c-4,translateY:a};n[lr(n.translateY)?"animate":"attr"](p,void 0,()=>{Cn(this,"afterPositionItem",{item:e})})}h&&(h.x=i,h.y=a)}destroyItem(e){let n=e.checkbox,i=e.legendItem||{};for(let a of["group","label","line","symbol"])i[a]&&(i[a]=i[a].destroy());n&&Gp(n),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){let e,n=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,a=this.titleHeight;n&&(e=n.translateY,this.allItems.forEach(function(r){let c,l=r.checkbox;l&&(c=e+a+l.y+(this.scrollOffset||0)+3,Lp(l,{left:n.translateX+r.checkboxOffset+l.x-20+"px",top:c+"px",display:this.proximate||c>e-6&&c<e+i-6?"":"none"}))},this))}renderTitle(){let a,e=this.options,n=this.padding,i=e.title,r=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,n-3,n-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(a=this.title.getBBox()).height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r}setText(e){let n=this.options;e.legendItem.label.attr({text:n.labelFormat?Fp(n.labelFormat,e,this.chart):n.labelFormatter.call(e)})}renderItem(e){let n=e.legendItem=e.legendItem||{},i=this.chart,a=i.renderer,r=this.options,l=this.symbolWidth,h=r.symbolPadding||0,p=this.itemStyle,f=this.itemHiddenStyle,m="horizontal"===r.layout?Ge(r.itemDistance,20):0,_=!r.rtl,b=!e.series,C=!b&&e.series.drawLegendSymbol?e.series:e,x=C.options,v=!!this.createCheckboxForItem&&x&&x.showCheckbox,y=r.useHTML,P=e.options.className,w=n.label,I=l+h+m+20*!!v;!w&&(n.group=a.g("legend-item").addClass("highcharts-"+C.type+"-series highcharts-color-"+e.colorIndex+(P?" "+P:"")+(b?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),n.label=w=a.text("",_?l+h:-h,this.baseline||0,y),i.styledMode||w.css(Kn(e.visible?p:f)),w.attr({align:_?"left"
1:"right",zIndex:2}).add(n.group),!this.baseline&&(this.fontMetrics=a.fontMetrics(w),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,w.attr("y",this.baseline),this.symbolHeight=Ge(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=Ge(r.symbolWidth,Math.max(this.symbolHeight,16)),I=this.symbolWidth+h+m+20*!!v,_&&w.attr("x",this.symbolWidth+h))),C.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,w,y)),v&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),(i.styledMode||!p.width)&&w.css({width:(r.itemWidth||this.widthOption||i.spacingBox.width)-I+"px"}),this.setText(e);let R=w.getBBox(),T=this.fontMetrics?.h||0;e.itemWidth=e.checkboxOffset=r.itemWidth||n.labelWidth||R.width+I,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(n.labelHeight||(R.height>1.5*T?R.height:T))}layoutItem(e){let n=this.options,i=this.padding,a="horizontal"===n.layout,r=e.itemHeight,c=this.itemMarginBottom,l=this.itemMarginTop,h=a?Ge(n.itemDistance,20):0,p=this.maxLegendWidth,f=n.alignColumns&&this.totalItemWidth>p?this.maxItemWidth:e.itemWidth,m=e.legendItem||{};a&&this.itemX-i+f>p&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+c),this.lastLineHeight=0),this.lastItemY=l+this.itemY+c,this.lastLineHeight=Math.max(r,this.lastLineHeight),m.x=this.itemX,m.y=this.itemY,a?this.itemX+=f:(this.itemY+=l+r+c,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((a?this.itemX-i-(e.checkbox?0:h):f)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(n){let i=n?.options;n&&Ge(i.showInLegend,!lr(i.linkedTo)&&void 0,!0)&&(e=e.concat(n.legendItem?.labels||("point"===i.legendType?n.data:n)))}),Cn(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,n){let i=this.chart,a=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
vendor: 8,752 bytes, line 1
1h(function(c,l){c.test(r)&&!lr(e[l])&&(i[gl[l]]=Math.max(i[gl[l]],i.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*a[l%2?"x":"y"]+Ge(a.margin,12)+n[l]+(i.titleOffset[l]||0)))})}proximatePositions(){let e,n=this.chart,i=[],a="left"===this.options.align;for(let r of(this.allItems.forEach(function(c){let l,h,f,m,p=a;c.yAxis&&(c.xAxis.options.reversed&&(p=!p),c.points&&(l=jp(p?c.points:c.points.slice(0).reverse(),function(_){return fl(_.plotY)})),h=this.itemMarginTop+c.legendItem.label.getBBox().height+this.itemMarginBottom,m=c.yAxis.top-n.plotTop,f=c.visible?(l?l.plotY:c.yAxis.height)+(m-.3*h):m+c.yAxis.height,i.push({target:f,size:h,item:c}))},this),Ep(i,n.plotHeight)))e=r.item.legendItem||{},fl(r.pos)&&(e.y=n.plotTop-n.spacing[0]+r.pos)}render(){let c,l,h,f,e=this.chart,n=e.renderer,i=this.options,a=this.padding,r=this.getAllItems(),p=this.group,m=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=zp(i.width,e.spacingBox.width-a),f=e.spacingBox.width-2*a-i.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(f/=2),this.maxLegendWidth=this.widthOption||f,p||(this.group=p=n.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=n.g().attr({zIndex:1}).add(p),this.scrollGroup=n.g().add(this.contentGroup)),this.renderTitle(),Yp(r,(_,b)=>(_.options?.legendIndex||0)-(b.options?.legendIndex||0)),i.reversed&&r.reverse(),this.allItems=r,this.display=c=!!r.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),l=(this.widthOption||this.offsetWidth)+a,h=this.lastItemY+this.lastLineHeight+this.titleHeight,h=this.handleOverflow(h)+a,m||(this.box=m=n.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(p)),e.styledMode||m.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),l>0&&h>0&&m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:l,height:h},m.strokeWidth())),p[c?"show":"hide"](),e.styledMode&&"none"===p.getStyle("display")&&(l=h=0),this.legendWidth=l,this.legendHeight=h,c&&this.align(),this.proximate||this.positionItems(),Cn(this,"afterRender")}align(e=this.chart.spacingBox){let n=this.chart,i=this.options,a=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&n.titleOffset[0]>0?a+=n.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&n.titleOffset[2]>0&&(a-=n.titleOffset[2]),a!==e.y&&(e=Kn(e,{y:a})),n.hasRendered||(this.group.placed=!1),this.group.align(Kn(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){let y,P,w,I,n=this,i=this.chart,a=i.renderer,r=this.options,c=r.y,l="top"===r.verticalAlign,h=this.padding,p=r.maxHeight,f=r.navigation,m=Ge(f.animation,!0),_=f.arrowSize||12,b=this.pages,C=this.allItems,x=function(A){"number"==typeof A?k.attr({height:A}):k&&(n.clipRect=k.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=A?"rect("+h+"px,9999px,"+(h+A)+"px,0)":"auto")},v=function(A){return n[A]=a.circle(0,0,1.3*_).translate(_/2,_/2).add(T),i.styledMode||n[A].attr("fill","rgba(0,0,0,0.0001)"),n[A]},R=i.spacingBox.height+(l?-c:c)-h,T=this.nav,k=this.clipRect;return"horizontal"!==r.layout||"middle"===r.verticalAlign||r.floating||(R/=2),p&&(R=Math.min(R,p)),b.length=0,e&&R>0&&e>R&&!1!==f.enabled?(this.clipHeight=y=Math.max(R-20-this.titleHeight-h,0),this.currentPage=Ge(this.currentPage,1),this.fullHeight=e,C.forEach((A,F)=>{let G=(w=A.legendItem||{}).y||0,j=Math.round(w.label.getBBox().height),U=b.length;(!U||G-b[U-1]>y&&(P||G)!==b[U-1])&&(b.push(P||G),U++),w.pageIx=U-1,P&&I&&(I.pageIx=U-1),F===C.length-1&&G+j-b[U-1]>y&&G>b[U-1]&&(b.push(G),w.pageIx=U),G!==P&&(P=G),I=w}),k||(k=n.clipRect=a.clipRect(0,h-2,9999,0),n.contentGroup.clip(k)),x(y),T||(this.nav=T=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,_,_).add(T),v("upTracker").on("click",function(){n.scroll(-1,m)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&f.style&&this.pager.css(f.style),this.pager.add(T),this.down=a.symbol("triangle-down",0,0,_,_).add(T),v("downTracker").on("click",function(){n.scroll(1,m)})),n.scroll(0),e=R):T&&(x(),this.nav=T.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,n){let i=this.chart,a=this.pages,r=a.length,c=this.clipHeight,l=this.options.navigation,h=this.pager,p=this.padding,f=this.currentPage+e;f>r&&(f=r),f>0&&(void 0!==n&&Sp(n,i),this.nav.attr({translateX:p,translateY:c+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(m){m.attr({class:1===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),h.attr({text:f+"/"+r}),[this.down,this.downTracker].forEach(function(m){m.attr({x:18+this.pager.getBBox().width,class:f===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===f?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===f?"default":"pointer"}),this.down.attr({fill:f===r?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:f===r?"default":"pointer"})),this.scrollOffset=-a[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),Bp(()=>{Cn(this,"afterScroll",{currentPage:f})},Ap(Ge(n,i.renderer.globalAnimation,!0)).duration))}setItemEvents(e,n,i){let a=this,r=e.legendItem||{},c=a.chart.renderer.boxWrapper,l=e instanceof bn,h=e instanceof Se,p="highcharts-legend-"+(l?"point":"series")+"-active",f=a.chart.styledMode,m=i?[n,r.symbol]:[r.group],_=b=>{a.allItems.forEach(C=>{e!==C&&[C].concat(C.linkedSeries||[]).forEach(x=>{x.setState(b,!l)})})};for(let b of m)b&&b.on("mouseover",function(){e.visible&&_("inactive"),e.setState("hover"),e.visible&&c.addClass(p),f||n.css(a.options.itemHoverStyle)}).on("mouseout",function(){a.chart.styledMode||n.css(Kn(e.visible?a.itemStyle:a.itemHiddenStyle)),_(""),c.removeClass(p),e.setState()}).on("click",function(C){c.removeClass(p),Cn(a,"itemClick",{browserEvent:C,legendItem:e},function(){e.setVisible&&e.setVisible(),_(e.visible?"inactive":"")}),l?e.firePointEvent("legendItemClick",{browserEvent:C}):h&&Cn(e,"legendItemClick",{browserEvent:C})})}createCheckboxForItem(e){e.checkbox=$p("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),Jo(e.checkbox,"click",function(n){Cn(e.series||e,"checkboxClick",{checked:n.target.checked,item:e},function(){e.select()})})}}!function(d){d.compose=function(e){Np(Dp,"Core.Legend")&&Jo(e,"beforeMargins",function(){this.legend=new d(this,this.options.legend)})}}(cr||(cr={}));let _l=cr,{animate:hr,animObject:Xp,setAnimation:dr}=$t,{defaultOptions:pr}=ot,{numberFormat:Vp}=Oe,{registerEventOptions:bl}=Do,{charts:ti,doc:Zi,marginNames:Cl,svg:Wp,win:xl}=t,{seriesTypes:ur}=Tt,{addEvent:Je,attr:yl,createElement:mr,css:qe,defined:En,diffObjects:Ml,discardElement:Up,erase:Hp,error:gr,extend:Fn,find:fr,fireEvent:Lt,getAlignFactor:Jp,getStyle:_r,isArray:qp,isNumber:vi,isObject:Qp,isString:qo,merge:rn,objectEach:br,pick:xe,pInt:Zp,relativeLength:vl,removeEvent:Pl,splat:Qo,syncTimeout:Kp,uniqueKey:tu}=q;class ei{static chart(e,n,i){return new ei(e,n,i)}constructor(e,n,i){this.sharedClips={};let a=[...arguments];(qo(e)||e.nodeName)&&(this.renderTo=a.shift()),this.init(a[0],a[1])}setZoomOptions(){let e=this.options.chart,n=e.zooming;this.zooming={...n,type:xe(e.zoomType,n.type),key:xe(e.zoomKey,n.key),pinchType:xe(e.pinchType,n.pinchType),singleTouch:xe(e.zoomBySingleTouch,n.singleTouch,!1),resetButton:rn(n.resetButton,e.resetZoomButton)}}init(e,n){Lt(this,"init",{args:arguments},function(){let i=rn(pr,e),a=i.chart,r=this.renderTo||a.renderTo;this.userOptions=Fn({},e),(this.renderTo=qo(r)?Zi.getElementById(r):r)||gr(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=n,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new S(Fn(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(a.numberFormatter||Vp).bind(this),this.styledMode=a.styledMode,this.hasCartesianSeries=a.showAxes,this.index=ti.length,ti.push(this),t.chartCount++,bl(this,a),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Lt(this,"afterInit"),this.firstRender()})}initSeries(e){let i=e.type||this.options.chart.type,a=ur[i];a||gr(17,!0,this,{missingModuleFor:i});let r=new a;return"function"==typeof r.init&&r.init(this,e),r}
vendor: 4,847 bytes, line 1
1setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,n){return e.linkedSeries.length||n.linkedSeries.length?n.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,n=0){let i=this[e],a=this.options[e]=Qo(this.options[e]).slice(),r=this.userOptions[e]=this.userOptions[e]?Qo(this.userOptions[e]).slice():[];if(this.hasRendered&&(a.splice(n),r.splice(n)),i)for(let c=n,l=i.length;c<l;++c){let h=i[c];h&&(h.index=c,h instanceof Se&&(h.name=h.getName()),h.options.isInternal||(a[c]=h.options,r[c]=h.userOptions))}}getClipBox(e,n){let i=this.inverted,{xAxis:a,yAxis:r}=e||{},{x:c,y:l,width:h,height:p}=rn(this.clipBox);return e&&(a&&a.len!==this.plotSizeX&&(h=a.len),r&&r.len!==this.plotSizeY&&(p=r.len),i&&!e.invertible&&([h,p]=[p,h])),n&&(c+=(i?r:a)?.pos??this.plotLeft,l+=(i?a:r)?.pos??this.plotTop),{x:c,y:l,width:h,height:p}}isInsidePlot(e,n,i={}){let{inverted:a,plotBox:r,plotLeft:c,plotTop:l,scrollablePlotBox:h}=this,{scrollLeft:p=0,scrollTop:f=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},m=i.series,_=i.visiblePlotOnly&&h||r,b=i.inverted?n:e,C=i.inverted?e:n,x={x:b,y:C,isInsidePlot:!0,options:i};if(!i.ignoreX){let v=m&&(a&&!this.polar?m.yAxis:m.xAxis)||{pos:c,len:1/0},y=i.paneCoordinates?v.pos+b:c+b;y>=Math.max(p+c,v.pos)&&y<=Math.min(p+c+_.width,v.pos+v.len)||(x.isInsidePlot=!1)}if(!i.ignoreY&&x.isInsidePlot){let v=!a&&i.axis&&!i.axis.isXAxis&&i.axis||m&&(a?m.xAxis:m.yAxis)||{pos:l,len:1/0},y=i.paneCoordinates?v.pos+C:l+C;y>=Math.max(f+l,v.pos)&&y<=Math.min(f+l+_.height,v.pos+v.len)||(x.isInsidePlot=!1)}return Lt(this,"afterIsInsidePlot",x),x.isInsidePlot}redraw(e){Lt(this,"beforeRedraw");let f,m,_,x,n=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,a=this.pointer,r=this.legend,c=this.userOptions.legend,l=this.renderer,h=l.isHidden(),p=[],b=this.isDirtyBox,C=this.isDirtyLegend;for(l.rootFontSize=l.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),dr(!!this.hasRendered&&e,this),h&&this.temporaryDisplay(),this.layOutTitles(!1),_=i.length;_--;)if(((x=i[_]).options.stacking||x.options.centerInCategory)&&(m=!0,x.isDirty)){f=!0;break}if(f)for(_=i.length;_--;)(x=i[_]).options.stacking&&(x.isDirty=!0);i.forEach(function(v){v.isDirty&&("point"===v.options.legendType?("function"==typeof v.updateTotals&&v.updateTotals(),C=!0):c&&(c.labelFormatter||c.labelFormat)&&(C=!0)),v.isDirtyData&&Lt(v,"updatedData")}),C&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),m&&this.getStacks(),n.forEach(function(v){v.updateNames(),v.setScale()}),this.getMargins(),n.forEach(function(v){v.isDirty&&(b=!0)}),n.forEach(function(v){let y=v.min+","+v.max;v.extKey!==y&&(v.extKey=y,p.push(function(){Lt(v,"afterSetExtremes",Fn(v.eventArgs,v.getExtremes())),delete v.eventArgs})),(b||m)&&v.redraw()}),b&&this.drawChartBox(),Lt(this,"predraw"),i.forEach(function(v){(b||v.isDirty)&&v.visible&&v.redraw(),v.isDirtyData=!1}),a&&a.reset(!0),l.draw(),Lt(this,"redraw"),Lt(this,"render"),h&&this.temporaryDisplay(!0),p.forEach(function(v){v.call()})}get(e){let n=this.series;function i(r){return r.id===e||r.options&&r.options.id===e}let a=fr(this.axes,i)||fr(this.series,i);for(let r=0;!a&&r<n.length;r++)a=fr(n[r].points||[],i);return a}createAxes(){let e=this.userOptions;for(let n of(Lt(this,"createAxes"),["xAxis","yAxis"]))for(let i of e[n]=Qo(e[n]||{}))new Ui(this,i,n);Lt(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((e,n)=>(n.getPointsCollection().forEach(i=>{xe(i.selectedStaging,i.selected)&&e.push(i)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,n,i){this.applyDescription("title",e),this.applyDescription("subtitle",n),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(e,n){let i=this,a=this.options[e]=rn(this.options[e],n),r=this[e];r&&n&&(this[e]=r=r.destroy()),a&&!r&&((r=this.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,class:"highcharts-"+e,zIndex:a.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(c,l){i.applyDescription(e,c),i.layOutTitles(l)},this.styledMode||r.css(Fn("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},a.style)),r.textPxLength=r.getBBox().width,r.css({whiteSpace:a.style?.whiteSpace}),this[e]=r)}layOutTitles(e=!0){let n=[0,0,0],{options:i,renderer:a,spacingBox:r}=this;["title","subtitle","caption"].forEach(l=>{let h=this[l],p=this.options[l],f=rn(r),m=h?.textPxLength||0;if(h&&p){Lt(this,"layOutTitle",{alignTo:f,key:l,textPxLength:m});let _=a.fontMetrics(h),b=_.b,C=_.h,x=p.verticalAlign||"top",v="top"===x,y=v&&p.minScale||1,P="title"===l?v?-3:0:v?n[0]+2:0,w=Math.min(f.width/m,1),I=Math.max(y,w),R=rn({y:"bottom"===x?b:P+b}
vendor: 4,551 bytes, line 1
1,{align:"title"===l?w<y?"left":"center":this.title?.alignValue},p),T=(p.width||(w>y?this.chartWidth:f.width)/I)+"px";h.alignValue!==R.align&&(h.placed=!1);let k=Math.round(h.css({width:T}).getBBox(p.useHTML).height);if(R.height=k,h.align(R,!1,f).attr({align:R.align,scaleX:I,scaleY:I,"transform-origin":`${f.x+m*I*Jp(R.align)} ${C}`}),!p.floating){let A=k*(k<1.2*C?1:I);"top"===x?n[0]=Math.ceil(n[0]+A):"bottom"===x&&(n[2]=Math.ceil(n[2]+A))}}},this),n[0]&&"top"===(i.title?.verticalAlign||"top")&&(n[0]+=i.title?.margin||0),n[2]&&"bottom"===i.caption?.verticalAlign&&(n[2]+=i.caption?.margin||0);let c=!this.titleOffset||this.titleOffset.join(",")!==n.join(",");this.titleOffset=n,Lt(this,"afterLayOutTitles"),!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){let e=[].map.call(this.renderTo.children,i=>{if(i!==this.container){let a=i.style.display;return i.style.display="none",[i,a]}}),n={width:_r(this.renderTo,"width",!0)||0,height:_r(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(([i,a])=>{i.style.display=a}),n}getChartSize(){let e=this.options.chart,n=e.width,i=e.height,a=this.getContainerBox(),r=a.height<=1||!this.renderTo.parentElement?.style.height&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,n||a.width||600),this.chartHeight=Math.max(0,vl(i,this.chartWidth)||(r?400:a.height)),this.containerBox=a}temporaryDisplay(e){let i,n=this.renderTo;if(e)for(;n?.style;)n.hcOrigStyle&&(qe(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(Zi.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;n?.style&&(Zi.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,Zi.body.appendChild(n)),("none"===_r(n,"display",!1)||n.hcOricDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},i={display:"block",overflow:"hidden"},n!==this.renderTo&&(i.height=0),qe(n,i),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==Zi.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){let e,n=this.options,i=n.chart,a="data-highcharts-chart",r=tu(),c=this.renderTo,l=Zp(yl(c,a));vi(l)&&ti[l]&&ti[l].hasRendered&&ti[l].destroy(),yl(c,a,this.index),c.innerHTML=Qt.emptyHTML,i.skipClone||c.offsetWidth||this.temporaryDisplay(),this.getChartSize();let h=this.chartHeight,p=this.chartWidth;qe(c,{overflow:"hidden"}),this.styledMode||(e=Fn({position:"relative",overflow:"hidden",width:p+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));let f=mr("div",{id:r},e,c);this.container=f,this.getChartSize(),p===this.chartWidth||(p=this.chartWidth,this.styledMode||qe(f,{width:xe(i.style?.width,p+"px")})),this.containerBox=this.getContainerBox(),this._cursor=f.style.cursor;let m=i.renderer||!Wp?Ni.getRendererType(i.renderer):Qn;if(this.renderer=new m(f,p,h,void 0,i.forExport,n.exporting?.allowHTML,this.styledMode),dr(void 0,this),this.setClassName(i.className),this.styledMode)for(let _ in n.defs)this.renderer.definition(n.defs[_]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,Lt(this,"afterGetContainer")}getMargins(e){let{spacing:n,margin:i,titleOffset:a}=this;this.resetMargins(),a[0]&&!En(i[0])&&(this.plotTop=Math.max(this.plotTop,a[0]+n[0])),a[2]&&!En(i[2])&&(this.marginBottom=Math.max(this.marginBottom,a[2]+n[2])),this.legend?.display&&this.legend.adjustMargins(i,n),Lt(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,n=e.axisOffset=[0,0,0,0],i=e.colorAxis,a=e.margin,r=function(c){c.forEach(function(l){l.visible&&l.getOffset()})};e.hasCartesianSeries?r(e.axes):i?.length&&r(i),Cl.forEach(function(c,l){En(a[l])||(e[c]+=n[l])}),e.setChartSize()}getOptions(){return Ml(this.userOptions,pr)}reflow(e){let n=this,i=n.containerBox,a=n.getContainerBox();delete n.pointer?.chartPosition,!n.isPrinting&&!n.isResizing&&i&&a.width&&((a.width!==i.width||a.height!==i.height)&&(q.clearTimeout(n.reflowTimeout),n.reflowTimeout=Kp(function(){n.container&&n.setSize(void 0,void 0,!1)},100*!!e)),n.containerBox=a)}setReflow(){let e=this,n=i=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(i)};if("function"==typeof ResizeObserver)new ResizeObserver(n).observe(e.renderTo);else{let i=Je(xl,"resize",n);Je(this,"destroy",i)}}setSize(e,n,i){let a=this,r=a.renderer;a.isResizing+=1,dr(i,a);let c=r.globalAnimation;
1a.oldChartHeight=a.chartHeight,a.oldChartWidth=a.chartWidth,void 0!==e&&(a.options.chart.width=e),void 0!==n&&(a.options.chart.height=n),a.getChartSize();let{chartWidth:l,chartHeight:h,scrollablePixelsX:p=0,scrollablePixelsY:f=0}=a;(a.isDirtyBox||l!==a.oldChartWidth||h!==a.oldChartHeight)&&(a.styledMode||(c?hr:qe)(a.container,{width:`${l+p}px`,height:`${h+f}px`},c),a.setChartSize(!0),r.setSize(l,h,c),a.axes.forEach(function(m){m.isDirty=!0,m.setScale()}),a.isDirtyLegend=!0,a.isDirtyBox=!0,a.layOutTitles(),a.getMargins(),a.redraw(c),a.oldChartHeight=void 0,Lt(a,"resize"),setTimeout(()=>{a&&Lt(a,"endResize")},Xp(c).duration)),a.isResizing-=1}setChartSize(e){let n,i,a,r,{chartHeight:c,chartWidth:l,inverted:h,spacing:p,renderer:f}=this,m=this.clipOffset,_=Math[h?"floor":"round"];this.plotLeft=n=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=a=Math.max(0,Math.round(l-n-(this.marginRight??0))),this.plotHeight=r=Math.max(0,Math.round(c-i-(this.marginBottom??0))),this.plotSizeX=h?r:a,this.plotSizeY=h?a:r,this.spacingBox=f.spacingBox={x:p[3],y:p[0],width:l-p[3]-p[1],height:c-p[0]-p[2]},this.plotBox=f.plotBox={x:n,y:i,width:a,height:r},m&&(this.clipBox={x:_(m[3]),y:_(m[0]),width:_(this.plotSizeX-m[1]-m[3]),height:_(this.plotSizeY-m[0]-m[2])}),e||(this.axes.forEach(function(b){b.setAxisSize(),b.setAxisTranslation()}),f.alignElements()),Lt(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){Lt(this,"resetMargins");let e=this,n=e.options.chart,i=n.plotBorderWidth||0,a=Math.round(i)/2;["margin","spacing"].forEach(function(r){let c=n[r],l=Qp(c)?c:[c,c,c,c];["Top","Right","Bottom","Left"].forEach(function(h,p){e[r][p]=xe(n[r+h],l[p])})}),Cl.forEach(function(r,c){e[r]=xe(e.margin[c],e.spacing[c])}),e.axisOffset=[0,0,0,0],e.clipOffset=[a,a,a,a],e.plotBorderWidth=i}drawChartBox(){let I,R,T,e=this.options.chart,n=this.renderer,i=this.chartWidth,a=this.chartHeight,r=this.styledMode,c=this.plotBGImage,l=e.backgroundColor,h=e.plotBackgroun
1dColor,p=e.plotBackgroundImage,f=this.plotLeft,m=this.plotTop,_=this.plotWidth,b=this.plotHeight,C=this.plotBox,x=this.clipRect,v=this.clipBox,y=this.chartBackground,P=this.plotBackground,w=this.plotBorder,k="animate";y||(this.chartBackground=y=n.rect().addClass("highcharts-background").add(),k="attr"),r?I=R=y.strokeWidth():(R=(I=e.borderWidth||0)+8*!!e.shadow,T={fill:l||"none"},(I||y["stroke-width"])&&(T.stroke=e.borderColor,T["stroke-width"]=I),y.attr(T).shadow(e.shadow)),y[k]({x:R/2,y:R/2,width:i-R-I%2,height:a-R-I%2,r:e.borderRadius}),k="animate",P||(k="attr",this.plotBackground=P=n.rect().addClass("highcharts-plot-background").add()),P[k](C),!r&&(P.attr({fill:h||"none"}).shadow(e.plotShadow),p&&(c?(p!==c.attr("href")&&c.attr("href",p),c.animate(C)):this.plotBGImage=n.image(p,f,m,_,b).add())),x?x.animate({width:v.width,height:v.height}):this.clipRect=n.clipRect(v),k="animate",w||(k="attr",this.plotBorder=w=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||w.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),w[k](w.crisp(C,-w.strokeWidth())),this.isDirtyBox=!1,Lt(this,"afterDrawChartBox")}propFromSeries(){let e,n,i,a=this,r=a.options.chart,c=a.options.series;["inverted","angular","polar"].forEach(function(l){for(n=ur[r.type],i=r[l]||n&&n.prototype[l],e=c?.length;!i&&e--;)(n=ur[c[e].type])&&n.prototype[l]&&(i=!0);a[l]=i})}linkSeries(e){let n=this,i=n.series;i.forEach(function(a){a.linkedSeries.length=0}),i.forEach(function(a){let{linkedTo:r}=a.options;if(qo(r)){let c;(c=":previous"===r?n.series[a.index-1]:n.get(r))&&c.linkedParent!==a&&(c.linkedSeries.push(a),a.linkedParent=c,c.enabledDataSorting&&a.setDataSortingOptions(),a.visible=xe(a.options.visible,c.options.visible,a.visible))}}),Lt(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){let h,e=this.axes,n=this.colorAxis,i=this.renderer,a=this.options.chart.axisLayoutRuns||2,r=f=>{f.forEach(m=>{m.visible&&m.render()})},c=0,l=!0,p=0;for(let f of(this.setTitle(),Lt(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:m}=f,{labels:_}=m;if(this.hasCartesianSeries&&f.horiz&&f.visible&&_.enabled&&f.series.length&&"colorAxis"!==f.coll&&!this.polar){c=m.tickLength,f.createGroups();let b=new bi(f,0,"",!0),C=b.createLabel("x",_);if(b.destroy(),C&&xe(_.reserveSpace,!vi(m.crossing))&&(c=C.getBBox().height+_.distance+Math.max(m.offset||0,0)),c){C?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-c,0);(l||h||a>1)&&p<a;){let f=this.plotWidth,m=this.plotHeight;for(let _ of e)0===p?_.setScale():(_.horiz&&l||!_.horiz&&h)&&_.setTickInterval(!0);0===p?this.getAxisMargins():this.getMargins(),l=f/this.plotWidth>(p?1:1.1),h=m/this.plotHeight>(p?1:1.05),p++}this.drawChartBox(),this.hasCartesianSeries?r(e):n?.length&&r(n),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){let n=this,i=rn(!0,this.options.credits,e);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(xl.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),n.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(a){n.credits=n.credits.destroy(),n.addCredits(a)})}destroy(){let e,n=this,i=n.axes,a=n.series,r=n.container,c=r?.parentNode;for(Lt(n,"destroy"),n.renderer.forExport?Hp(ti,n):ti[n.index]=void 0,t.chartCount--,n.renderTo.removeAttribute("data-highcharts-chart"),Pl(n),e=i.length;e--;)i[e]=i[e].destroy();for(this.scroller?.destroy?.(),e=a.length;e--;)a[e]=a[e].destroy();
1["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(l=>{n[l]=n[l]?.destroy?.()}),r&&(r.innerHTML=Qt.emptyHTML,Pl(r),c&&Up(r)),br(n,function(l,h){delete n[h]})}firstRender(){let e=this,n=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();let i=qp(n.series)?n.series:[];n.series=[],i.forEach(function(a){e.initSeries(a)}),e.linkSeries(),e.setSortedData(),Lt(e,"beforeRender"),e.render(),e.pointer?.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),Lt(this,"load"),Lt(this,"render"),En(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:n}=this;!e||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(n?.element.textContent||"").replace(/</g,"&lt;")}),e.accessibility&&!1===e.accessibility.enabled||gr('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(e,n,i){let a,r=this;return e&&(n=xe(n,!0),Lt(r,"addSeries",{options:e},function(){a=r.initSeries(e),r.isDirtyLegend=!0,r.linkSeries(),a.enabledDataSorting&&a.setData(e.data,!1),Lt(r,"afterAddSeries",{series:a}),n&&r.redraw(i)})),a}addAxis(e,n,i,a){return this.createAxis(n?"xAxis":"yAxis",{axis:e,redraw:i,animation:a})}addColorAxis(e,n,i){return this.createAxis("colorAxis",{axis:e,redraw:n,animation:i})}createAxis(e,n){let i=new Ui(this,n.axis,e);return xe(n.redraw,!0)&&this.redraw(n.animation),i}showLoading(e){let n=this,i=n.options,a=i.loading,r=function(){c&&qe(c,{left:n.plotLeft+"px",top:n.plotTop+"px",width:n.plotWidth+"px",height:n.plotHeight+"px"})},c=n.loadingDiv,l=n.loadingSpan;c||(n.loadingDiv=c=mr("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container)),l||(n.loadingSpan=l=mr("span",{className:"highcharts-loading-inner"},null,c),Je(n,"redraw",r)),c.className="highcharts-loading",Qt.setElementHTML(l,xe(e,i.lang.loading,"")),n.styledMode||(qe(c,Fn(a.style,{zIndex:10})),qe(l,a.labelStyle),n.loadingShown||(qe(c,{opacity:0,display:""}),hr(c,{opacity:a.style.opacity||.5},{duration:a.showDuration||0}))),n.loadingShown=!0,r()}hideLoading(){let e=this.options,n=this.loadingDiv;n&&(n.className="highcharts-loading highcharts-loading-hidden",this.styledMode||hr(n,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){qe(n,{display:"none"})}})),this.loadingShown=!1}update(e,n,i,a){let r,c,l,h=this,p={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},f=e.isResponsiveOptions,m=[];Lt(h,"update",{options:e}),f||h.setResponsive(!1,!0),e=Ml(e,h.options),h.userOptions=rn(h.userOptions,e);let _=e.chart;_&&(rn(!0,h.options.chart,_),this.setZoomOptions(),"className"in _&&h.setClassName(_.className),("inverted"in _||"polar"in _||"type"in _)&&(h.propFromSeries(),r=!0),"alignTicks"in _&&(r=!0),"events"in _&&bl(this,_),br(_,function(x,v){-1!==h.propsRequireUpdateSeries.indexOf("chart."+v)&&(c=!0),-1!==h.propsRequireDirtyBox.indexOf(v)&&(h.isDirtyBox=!0),-1===h.propsRequireReflow.indexOf(v)||(h.isDirtyBox=!0,f||(l=!0))}),!h.styledMode&&_.style&&h.renderer.setStyle(h.options.chart.style||{})),!h.styledMode&&e.colors&&(this.options.colors=e.colors),br(e,function(x,v){h[v]&&"function"==typeof h[v].update?h[v].update(x,!1):"function"==typeof h[p[v]]?h[p[v]](x):"colors"!==v&&-1===h.collectionsWithUpdate.indexOf(v)&&rn(!0,h.options[v],e[v]),"chart"!==v&&-1!==h.propsRequireUpdateSeries.indexOf(v)&&(c=!0)}),this.collectionsWithUpdate.forEach(function(x){e[x]&&(Qo(e[x]).forEach(function(v,y){let P,w=En(v.id);w&&(P=h.get(v.id)),!P&&h[x]&&(P=h[x][xe(v.index,y)])&&(w&&En(P.options.id)||P.options.isInternal)&&(P=void 0),P&&P.coll===x&&(P.update(v,!1),i&&(P.touched=!0)),!P&&i&&h.collectionsWithInit[x]&&
1(h.collectionsWithInit[x][0].apply(h,[v].concat(h.collectionsWithInit[x][1]||[]).concat([!1])).touched=!0)}),i&&h[x].forEach(function(v){v.touched||v.options.isInternal?delete v.touched:m.push(v)}))}),m.forEach(function(x){x.chart&&x.remove&&x.remove(!1)}),r&&h.axes.forEach(function(x){x.update({},!1)}),c&&h.getSeriesOrderByLinks().forEach(function(x){x.chart&&x.update({},!1)},this);let b=_?.width,C=_&&(qo(_.height)?vl(_.height,b||h.chartWidth):_.height);l||vi(b)&&b!==h.chartWidth||vi(C)&&C!==h.chartHeight?h.setSize(b,C,a):xe(n,!0)&&h.redraw(a),Lt(h,"afterUpdate",{options:e,redraw:n,animation:a})}setSubtitle(e,n){this.applyDescription("subtitle",e),this.layOutTitles(n)}setCaption(e,n){this.applyDescription("caption",e),this.layOutTitles(n)}showResetZoom(){let e=this,n=pr.lang,i=e.zooming.resetButton,a=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function c(){e.zoomOut()}Lt(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(n.resetZoom,null,null,c,a).attr({align:i.position.align,title:n.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),Lt(this,"afterShowResetZoom")}zoomOut(){Lt(this,"selection",{resetSelection:!0}
1,()=>this.transform({reset:!0,trigger:"zoom"}))}pan(e,n){let i=this,a="object"==typeof n?n:{enabled:n,type:"x"},r=a.type,c=r&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[r]].filter(h=>h.options.panningEnabled&&!h.options.isInternal),l=i.options.chart;l?.panning&&(l.panning=a),Lt(this,"pan",{originalEvent:e},()=>{i.transform({axes:c,event:e,to:{x:e.chartX-(i.mouseDownX||0),y:e.chartY-(i.mouseDownY||0)},trigger:"pan"}),qe(i.container,{cursor:"move"})})}transform(e){let _,b,{axes:n=this.axes,event:i,from:a={},reset:r,selection:c,to:l={},trigger:h}=e,{inverted:p,time:f}=this,m=!1;for(let C of(this.hoverPoints?.forEach(x=>x.setState()),n)){let{horiz:x,len:v,minPointOffset:y=0,options:P,reversed:w}=C,I=x?"width":"height",R=x?"x":"y",T=xe(l[I],C.len),k=xe(a[I],C.len),A=10>Math.abs(T)?1:T/k,F=(a[R]||0)+k/2-C.pos,G=F-((l[R]??C.pos)+T/2-C.pos)/A,j=w&&!p||!w&&p?-1:1;if(!r&&(F<0||F>C.len))continue;let U=C.toValue(G,!0)+(c||C.isOrdinal?0:y*j),K=C.toValue(G+v/A,!0)-(c||C.isOrdinal?0:y*j||0),it=C.allExtremes;if(U>K&&([U,K]=[K,U]),1===A&&!r&&"yAxis"===C.coll&&!it){for(let je of C.series){let Ai=je.getExtremes(je.getProcessedData(!0).modified.getColumn("y")||[],!0);it??(it={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),vi(Ai.dataMin)&&vi(Ai.dataMax)&&(it.dataMin=Math.min(Ai.dataMin,it.dataMin),it.dataMax=Math.max(Ai.dataMax,it.dataMax))}C.allExtremes=it}let{dataMin:rt,dataMax:et,min:ct,max:Xt}=Fn(C.getExtremes(),it||{}),Gt=f.parse(P.min),re=f.parse(P.max),dt=rt??Gt,ft=et??re,kt=K-U,Pt=C.categories?0:Math.min(kt,ft-dt),Ht=dt-Pt*(En(Gt)?0:P.minPadding),qt=ft+Pt*(En(re)?0:P.maxPadding),Yt=C.allowZoomOutside||1===A||"zoom"!==h&&A>1,ie=Math.min(Gt??Ht,Ht,Yt?ct:Ht),Te=Math.max(re??qt,qt,Yt?Xt:qt);(!C.isOrdinal||C.options.overscroll||1!==A||r)&&(U<ie&&(U=ie,A>=1&&(K=U+kt)),K>Te&&(K=Te,A>=1&&(U=K-kt)),(r||C.series.length&&(U!==ct||K!==Xt)&&U>=ie&&K<=Te)&&(c?c[C.coll].push({axis:C,min:U,max:K}):(C.isPanning="zoom"!==h,C.isPanning&&(b=!0),C.setExtremes(r?void 0:U,r?void 0:K,!1,!1,{move:G,trigger:h,scale:A}),!r&&(U>ie||K<Te)&&"mousewheel"!==h&&(_=!0)),m=!0),i&&(this[x?"mouseDownX":"mouseDownY"]=i[x?"chartX":"chartY"]))}return m&&(c?Lt(this,"selection",c,()=>{delete e.selection,e.trigger="zoom",this.transform(e)}):(!_||b||this.resetZoomButton?!_&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===h&&(this.options.chart.animation??this.pointCount<100)))),m}}Fn(ei.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ei.prototype.addAxis,[!0]],yAxis:[ei.prototype.addAxis,[!1]],series:[ei.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroun
1dColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let Cr=ei,{stop:eu}=$t,{composed:nu}=t,{addEvent:$n,createElement:Zo,css:xr,defined:yr,erase:iu,merge:wl,pushUnique:Ol}=q;function ou(){let d=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!d&&(this.scrollablePlotArea=d=new Tl(this)),d?.applyFixed()}function Il(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}let Tl=(()=>{class d{static compose(n,i,a){Ol(nu,this.compose)&&($n(n,"afterInit",Il),$n(i,"afterSetChartSize",r=>this.afterSetSize(r.target,r)),$n(i,"render",ou),$n(a,"show",Il))}static afterSetSize(n,i){let a,r,c,{minWidth:l,minHeight:h}=n.options.chart.scrollablePlotArea||{},{clipBox:p,plotBox:f,inverted:m,renderer:_}=n;if(!_.forExport&&(l?(n.scrollablePixelsX=a=Math.max(0,l-n.chartWidth),a&&(n.scrollablePlotBox=wl(n.plotBox),f.width=n.plotWidth+=a,p[m?"height":"width"]+=a,c=!0)):h&&(n.scrollablePixelsY=r=Math.max(0,h-n.chartHeight),yr(r)&&(n.scrollablePlotBox=wl(n.plotBox),f.height=n.plotHeight+=r,p[m?"width":"height"]+=r,c=!1)),yr(c)&&!i.skipAxes))for(let b of n.axes)(b.horiz===c||n.hasParallelCoordinates&&"yAxis"===b.coll)&&(b.setAxisSize(),b.setAxisTranslation())}constructor(n){let i,a=n.options.chart,r=Ni.getRendererType(),c=a.scrollablePlotArea||{},l=this.moveFixedElements.bind(this),h={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};n.scrollablePixelsX&&(h.overflowX="auto"),n.scrollablePixelsY&&(h.overflowY="auto"),this.chart=n;let p=this.parentDiv=Zo("div",{className:"highcharts-scrolling-parent"},{position:"relative"},n.renderTo),f=this.scrollingContainer=Zo("div",{className:"highcharts-scrolling"},h,p),m=this.innerContainer=Zo("div",{className:"highcharts-inner-container"},void 0,f),_=this.fixedDiv=Zo("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style?.zIndex||0)+2,top:0},void 0,!0),b=this.fixedRenderer=new r(_,n.chartWidth,n.chartHeight,a.style);this.mask=b.path().attr({fill:a.backgroundColor||"#fff","fill-opacity":c.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),f.parentNode.insertBefore(_,f),xr(n.renderTo,{overflow:"visible"}),$n(n,"afterShowResetZoom",l),$n(n,"afterApplyDrilldown",l),$n(n,"afterLayOutTitles",l),$n(f,"scroll",()=>{let{pointer:C,hoverPoint:x}=n;C&&(delete C.chartPosition,x&&(i=x),C.runPointActions(void 0,i,!0))}),m.appendChild(n.container)}applyFixed(){let{chart:n,fixedRenderer:i,isDirty:a,scrollingContainer:r}=this,{axisOffset:c,chartWidth:l,chartHeight:h,container:p,plotHeight:f,plotLeft:m,plotTop:_,plotWidth:b,scrollablePixelsX:C=0,scrollablePixelsY:x=0}=n,{scrollPositionX:v=0,scrollPositionY:y=0}=n.options.chart.scrollablePlotArea||{},P=l+C,w=h+x;i.setSize(l,h),(a??!0)&&(this.isDirty=!1,this.moveFixedElements()),eu(n.container),xr(p,{width:`${P}px`,height:`${w}px`}),n.renderer.boxWrapper.attr({width:P,height:w,viewBox:[0,0,P,w].join(" ")}),n.chartBackground?.attr({width:P,height:w}),xr(r,{width:`${l}px`,height:`${h}px`}),yr(a)||(r.scrollLeft=C*v,r.scrollTop=x*y);let I=_-c[0]-1,R=m-c[3]-1,T=_+f+c[2]+1,k=m+b+c[1]+1,A=m+b-C,F=_+f-x,G=[["M",0,0]];C?G=[["M",0,I],["L",m-1,I],["L",m-1,T],["L",0,T],["Z"],["M",A,I],["L",l,I],["L",l,T],["L",A,T],["Z"]]:x&&(G=[["M",R,0],["L",R,_-1],["L",k,_-1],["L",k,0],["Z"],["M",R,F],["L",R,h],["L",k,h],["L",k,F],["Z"]]),"adjustHeight"!==n.redrawTrigger&&this.mask.attr({d:G})}moveFixedElements(){let n,{container:i,inverted:a,scrollablePixelsX:r,scrollablePixelsY:c}=this.chart,l=this.fixedRenderer,h=d.fixedSelectors;if(r&&!a?n=".highcharts-yaxis":r&&a||c&&!a?n=".highcharts-xaxis":c&&a&&(n=".highcharts-yaxis"),!n||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===n)for(let p of[".highcharts-xaxis",".highcharts-yaxis"])for(let f of[`${p}:not(.highcharts-radial-axis)`,`${p}-labels:not(.highcharts-radial-axis-labels)`])iu(h,f);else for(let p of[`${n}:not(.highcharts-radial-axis)`,`${n}-labels:not(.highcharts-radial-axis-labels)`])Ol(h,p);for(let p of h)[].forEach.call(i.querySelectorAll(p),f=>{(f.namespaceURI===l.SVG_NS?l.box:l.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})}}return d.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],d})(),{format:au}=Oe,{series:ru}=Tt,{destroyObjectProperties:su,fireEvent:kl,getAlignFactor:Mr,isNumber:vr,pick:Ki}=q,Rl=class{constructor(d,e,n,i,a){let r=d.chart.inverted,c=d.reversed;this.axis=d;let l=this.isNegative=!!n!=!!c;this.options=e=e||{},this.x=i,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=a,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(r?l?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":l?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?l?"right":"left":"center")}destroy(){su(this,this.axis)}render(d){let e=this.axis.chart,n=this.options,i=n.format,a=i?au(i,this,e):n.formatter.call(this);if(this.label)this.label.attr({text:a,visibility:"hidden"});else{this.label=e.renderer.label(a,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,"stack-labels");let r={r:n.borderRadius||0,text:a,padding:Ki(n.padding,5),visibility:"hidden"};e.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r["
1stroke-width"]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(r),this.label.added||this.label.add(d)}this.label.labelrank=e.plotSizeY,kl(this,"afterRender")}setOffset(d,e,n,i,a,r){let{alignOptions:c,axis:l,label:h,options:p,textAlign:f}=this,m=l.chart,_=this.getStackBox({xOffset:d,width:e,boxBottom:n,boxTop:i,defaultX:a,xAxis:r}),{verticalAlign:b}=c;if(h&&_){let y,C=h.getBBox(void 0,0),x=h.padding,v="justify"===Ki(p.overflow,"justify");c.x=p.x||0,c.y=p.y||0;let{x:P,y:w}=this.adjustStackPosition({labelBox:C,verticalAlign:b,textAlign:f});_.x-=P,_.y-=w,h.align(c,!1,_),(y=m.isInsidePlot(h.alignAttr.x+c.x+P,h.alignAttr.y+c.y+w))||(v=!1),v&&ru.prototype.justifyDataLabel.call(l,h,c,h.alignAttr,C,_),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:p.rotation,rotationOriginX:C.width*Mr(p.textAlign||"center"),rotationOriginY:C.height/2}),Ki(!v&&p.crop,!0)&&(y=vr(h.x)&&vr(h.y)&&m.isInsidePlot(h.x-x+(h.width||0),h.y)&&m.isInsidePlot(h.x+x,h.y)),h[y?"show":"hide"]()}kl(this,"afterSetOffset",{xOffset:d,width:e})}adjustStackPosition({labelBox:d,verticalAlign:e,textAlign:n}){return{x:d.width/2+d.width/2*(2*Mr(n)-1),y:d.height/2*2*(1-Mr(e))}}getStackBox(d){let e=this.axis,n=e.chart,{boxTop:i,defaultX:a,xOffset:r,width:c,boxBottom:l}=d,h=e.stacking.usePercentage?100:Ki(i,this.total,0),p=e.toPixels(h),f=d.xAxis||n.xAxis[0],m=Ki(a,f.translate(this.x))+r,_=Math.abs(p-e.toPixels(l||vr(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),C=this.isNegative;return n.inverted?{x:(C?p:p-_)-n.plotLeft,y:f.height-m-c+f.top-n.plotTop,width:_,height:c}:{x:m+f.transB-n.plotLeft,y:(C?p-_:p)-n.plotTop,width:c,height:_}}},{getDeferredAnimation:lu}=$t,{series:{prototype:cu}}=Tt,{addEvent:Al,correctFloat:to,defined:Sl,destroyObjectProperties:hu,fireEvent:du,isNumber:Ko,objectEach:ni,pick:Pr}=q;function pu(){let d=this.inverted;this.axes.forEach(e=>{e.stacking?.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(e=>{let n=e.xAxis?.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,Pr(e.options.stack,""),d?n.top:n.left,d?n.height:n.width].join(","))})}function uu(){let d=this.stacking;if(d){let e=d.stacks;ni(e,(n,i)=>{hu(n),delete e[i]}),d.stackTotalGroup?.destroy()}}function mu(){this.stacking||(this.stacking=new El(this))}function gu(d,e,n,i){return!Sl(d)||d.x!==e||i&&d.stackKey!==i?d={x:e,index:0,key:i,stackKey:i}:d.index++,d.key=[n,e,d.index].join(","),d}function Dl(){let d,e=this,i=e.stackKey||"",a=e.yAxis.stacking.stacks,r=e.getColumn("x",!0),l=e[e.options.stacking+"Stacker"];l&&[i,"-"+i].forEach(h=>{let f,m,_,p=r.length;for(;p--;)f=r[p],d=e.getStackIndicator(d,f,e.index,h),m=a[h]?.[f],(_=m?.points[d.key||""])&&l.call(e,_,m,p)})}function fu(d,e,n){let i=e.total?100/e.total:0;d[0]=to(d[0]*i),d[1]=to(d[1]*i),this.stackedYData[n]=d[1]}function _u(d){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?cu.setStackedPoints.call(this,d,"group"):d.stacking.resetStacks())}function bu(d,e){let n,i,a,r,c,l,h,p=e||this.options.stacking;if(!p||!this.reserveSpace()||({group:"xAxis"}[p]||"yAxis")!==d.coll)return;let f=this.getColumn("x",!0),m=this.getColumn(this.pointValKey||"y",!0),_=[],b=m.length,C=this.options,x=C.threshold||0,v=C.startFromThreshold?x:0,y=C.stack,P=e?`${this.type},${p}`:this.stackKey||"",w="-"+P,I=this.negStacks,R=d.stacking,T=R.stacks,k=R.oldStacks;for(R.stacksTouched+=1,h=0;h<b;h++){let A=f[h]||0,F=m[h],G=Ko(F)&&F||0;l=(n=this.getStackIndicator(n,A,this.index)).key||"",T[c=(i=I&&G<(v?0:x))?w:P]||(T[c]={}),T[c][A]||(k[c]?.[A]?(T[c][A]=k[c][A],T[c][A].total=null):T[c][A]=new Rl(d,d.options.stackLabels,!!i,A,y)),a=T[c][A],null!==F?(a.points[l]=a.points[this.index]=[Pr(a.cumulative,v)],Sl(a.cumulative)||(a.base=l),a.touched=R.stacksTouched,n.index>0&&!1===this.singleStacks&&(a.points[l][0]=a.points[this.index+","+A+",0"][0])):(delete a.points[l],delete a.points[this.index]);let j=a.total||0;"percent"===p?(r=i?P:w,j=I&&T[r]?.[A]?(r=T[r][A]).total=Math.max(r.total||0,j)+Math.abs(G):to(j+Math.abs(G))):"group"===p?Ko(F)&&j++:j=to(j+G),a.cumulative="group"===p?(j||1)-1:to(Pr(a.cumulative,v)+G),a.total=j,null!==F&&(a.points[l].push(a.cumulative),_[h]=a.cumulative,a.hasValidPoints=!0)}"percent"===p&&(R.usePercentage=!0),"group"!==p&&(this.stackedYData=_),R.oldStacks={}}class El{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,n,i=this.axis,a=i.series,r="xAxis"===i.coll,c=i.options.reversedStacks,l=a.length;for(this.resetStacks(),this.usePercentage=!1,n=l;n--;)e=a[c?n:l-n-1],r&&e.setGroupedPoints(i),e.setStackedPoints(i);if(!r)for(n=0;n<l;n++)a[n].modifyStacks();du(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,ni(this.stacks,e=>{ni(e,n=>{n.cumulative=n.total})}))}resetStacks(){ni(this.stacks,e=>{ni(e,(n,i)=>{Ko(n.touched)&&n.touched<this.stacksTouched?(n.destroy(),delete e[i]):(n.total=null,n.cumulative=null)})})}renderStackTotals(){let e=this.axis,n=e.chart,i=n.renderer,a=this.stacks,r=lu(n,e.options.stackLabels?.animation||!1),c=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}
vendor: 4,403 bytes, line 1
1).add();c.translate(n.plotLeft,n.plotTop),ni(a,l=>{ni(l,h=>{h.render(c)})}),c.animate({opacity:1},r)}}(Ze||(Ze={})).compose=function(d,e,n){let i=e.prototype,a=n.prototype;i.getStacks||(Al(d,"init",mu),Al(d,"destroy",uu),i.getStacks=pu,a.getStackIndicator=gu,a.modifyStacks=Dl,a.percentStacker=fu,a.setGroupedPoints=_u,a.setStackedPoints=bu)};let Cu=Ze,{defined:xu,merge:Fl,isObject:yu}=q;class $l extends Se{drawGraph(){let e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((a,r)=>{let c,l=a.graph,h=l?"animate":"attr",p=a.dashStyle||e.dashStyle;l?(l.endX=this.preventGraphAnimation?null:n.xMap,l.animate({d:n})):n.length&&(a.graph=l=this.chart.renderer.path(n).addClass("highcharts-graph"+(r?` highcharts-zone-graph-${r-1} `:" ")+(r&&a.className||"")).attr({zIndex:1}).add(this.group)),l&&!i&&(c={stroke:!r&&e.lineColor||a.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},p?c.dashstyle=p:"square"!==e.linecap&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),l[h](c).shadow(e.shadow&&Fl({filterUnits:"userSpaceOnUse"},yu(e.shadow)?e.shadow:{}))),l&&(l.startX=n.xMap,l.isArea=n.isArea)})}getGraphPath(e,n,i){let h,a=this,r=a.options,c=[],l=[],p=r.step,f=(e=e||a.points).reversed;return f&&e.reverse(),(p={right:1,center:2}[p]||p&&3)&&f&&(p=4-p),(e=this.getValidPoints(e,!1,r.nullInteraction||!(r.connectNulls&&!n&&!i))).forEach(function(m,_){let b,C=m.plotX,x=m.plotY,v=e[_-1],y=m.isNull||"number"!=typeof x;(m.leftCliff||v?.rightCliff)&&!i&&(h=!0),y&&!xu(n)&&_>0?h=!r.connectNulls:y&&!n?h=!0:(0===_||h?b=[["M",m.plotX,m.plotY]]:a.getPointSpline?b=[a.getPointSpline(e,m,_)]:p?(b=1===p?[["L",v.plotX,x]]:2===p?[["L",(v.plotX+C)/2,v.plotY],["L",(v.plotX+C)/2,x]]:[["L",C,v.plotY]]).push(["L",C,x]):b=[["L",C,x]],l.push(m.x),p&&(l.push(m.x),2===p&&l.push(m.x)),c.push.apply(c,b),h=!1)}),c.xMap=l,a.graphPath=c,c}}$l.defaultOptions=Fl(Se.defaultOptions,{legendSymbol:"lineMarker"}),Tt.registerSeriesType("line",$l);let{seriesTypes:{line:wr}}=Tt,{extend:Mu,merge:vu,objectEach:Pu,pick:ta}=q;class Or extends wr{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:n}=this;[this,...this.zones].forEach((i,a)=>{let r={},c=i.fillColor||n.fillColor,l=i.area,h=l?"animate":"attr";l?(l.endX=this.preventGraphAnimation?null:e.xMap,l.animate({d:e})):(r.zIndex=0,(l=i.area=this.chart.renderer.path(e).addClass("highcharts-area"+(a?` highcharts-zone-area-${a-1} `:" ")+(a&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(r.fill=c||i.color||this.color,r["fill-opacity"]=c?1:n.fillOpacity??.75,l.css({pointerEvents:this.stickyTracking?"none":"auto"})),l[h](r),l.startX=e.xMap,l.shiftUnit=n.step?2:1})}getGraphPath(e){let n,i,a,r=wr.prototype.getGraphPath,c=this.options,l=c.stacking,h=this.yAxis,p=[],f=[],m=this.index,_=h.stacking.stacks[this.stackKey],b=c.threshold,C=Math.round(h.getThreshold(c.threshold)),x=ta(c.connectNulls,"percent"===l),v=function(T,k,A){let K,it,F=e[T],G=l&&_[F.x].points[m],j=F[A+"Null"]||0,U=F[A+"Cliff"]||0,rt=!0;U||j?(K=(j?G[0]:G[1])+U,it=G[0]+U,rt=!!j):!l&&e[k]&&e[k].isNull&&(K=it=b),void 0!==K&&(f.push({plotX:n,plotY:null===K?C:h.getThreshold(K),isNull:rt,isCliff:!0}),p.push({plotX:n,plotY:null===it?C:h.getThreshold(it),doCurve:!1}))};e=e||this.points,l&&(e=this.getStackPoints(e));for(let T=0,k=e.length;T<k;++T)l||(e[T].leftCliff=e[T].rightCliff=e[T].leftNull=e[T].rightNull=void 0),i=e[T].isNull,n=ta(e[T].rectPlotX,e[T].plotX),a=l?ta(e[T].yBottom,C):C,i&&!x||(x||v(T,T-1,"left"),i&&!l&&x||(f.push(e[T]),p.push({x:T,plotX:n,plotY:a})),x||v(T,T+1,"right"));let y=r.call(this,f,!0,!0);p.reversed=!0;let P=r.call(this,p,!0,!0),w=P[0];w&&"M"===w[0]&&(P[0]=["L",w[1],w[2]]);let I=y.concat(P);I.length&&I.push(["Z"]);let R=r.call(this,f,!1,x);return this.chart.series.length>1&&l&&f.some(T=>T.isCliff)&&(I.hasStackedCliffs=R.hasStackedCliffs=!0),I.xMap=y.xMap,this.areaPath=I,R}getStackPoints(e){let n=this,i=[],a=[],r=this.xAxis,c=this.yAxis,l=c.stacking.stacks[this.stackKey],h={},p=c.series,f=p.length,m=c.options.reversedStacks?1:-1,_=p.indexOf(n);if(e=e||this.points,this.options.stacking){for(let C=0;C<e.length;C++)e[C].leftNull=e[C].rightNull=void 0,h[e[C].x]=e[C];Pu(l,function(C,x){null!==C.total&&a.push(x)}),a.sort(function(C,x){return C-x});let b=p.map(C=>C.visible);a.forEach(function(C,x){let y,P,v=0;
1if(h[C]&&!h[C].isNull)i.push(h[C]),[-1,1].forEach(function(w){let I=1===w?"rightNull":"leftNull",R=l[a[x+w]],T=0;if(R){let k=_;for(;k>=0&&k<f;){let A=p[k].index;!(y=R.points[A])&&(A===n.index?h[C][I]=!0:b[k]&&(P=l[C].points[A])&&(T-=P[1]-P[0])),k+=m}}h[C][1===w?"rightCliff":"leftCliff"]=T});else{let w=_;for(;w>=0&&w<f;){if(y=l[C].points[p[w].index]){v=y[1];break}w+=m}v=ta(v,0),v=c.translate(v,0,1,0,1),i.push({isNull:!0,plotX:r.translate(C,0,0,0,1),x:C,plotY:v,yBottom:v})}})}return i}}Or.defaultOptions=vu(wr.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Mu(Or.prototype,{singleStacks:!1}),Tt.registerSeriesType("area",Or);let{line:Ll}=Tt.seriesTypes,{merge:wu,pick:ea}=q;class Ir extends Ll{getPointSpline(e,n,i){let a,r,c,l,h=n.plotX||0,p=n.plotY||0,f=e[i-1],m=e[i+1];function _(C){return C&&!C.isNull&&!1!==C.doCurve&&!n.isCliff}if(_(f)&&_(m)){let x=f.plotY||0,y=m.plotY||0,P=0;a=(1.5*h+(f.plotX||0))/2.5,r=(1.5*p+x)/2.5,c=(1.5*h+(m.plotX||0))/2.5,l=(1.5*p+y)/2.5,c!==a&&(P=(l-r)*(c-h)/(c-a)+p-l),r+=P,l+=P,r>x&&r>p?(r=Math.max(x,p),l=2*p-r):r<x&&r<p&&(r=Math.min(x,p),l=2*p-r),l>y&&l>p?(l=Math.max(y,p),r=2*p-l):l<y&&l<p&&(l=Math.min(y,p),r=2*p-l),n.rightContX=c,n.rightContY=l,n.controlPoints={low:[a,r],high:[c,l]}}let b=["C",ea(f.rightContX,f.plotX,0),ea(f.rightContY,f.plotY,0),ea(a,h,0),ea(r,p,0),h,p];return f.rightContX=f.rightContY=void 0,b}}Ir.defaultOptions=wu(Ll.defaultOptions),Tt.registerSeriesType("spline",Ir);let Gl=Ir,{area:Ou,area:{prototype:Tr}}=Tt.seriesTypes,{extend:jl,merge:na}=q;class kr extends Gl{}kr.defaultOptions=na(Gl.defaultOptions,Ou.defaultOptions),jl(kr.prototype,{getGraphPath:Tr.getGraphPath,getStackPoints:Tr.getStackPoints,drawGraph:Tr.drawGraph}),Tt.registerSeriesType("areaspline",kr);let{animObject:Nl}=$t,{parse:zl}
1=Z,{noop:Iu}=t,{clamp:ia,crisp:oa,defined:Yl,extend:Bl,fireEvent:Xl,isArray:Vl,isNumber:aa,merge:Rr,pick:eo,objectEach:Tu}=q;class ra extends Se{animate(e){let n,i,a=this,r=this.yAxis,c=r.pos,l=r.reversed,h=a.options,{clipOffset:p,inverted:f}=this.chart,m={},_=f?"translateX":"translateY";e&&p?(m.scaleY=.001,i=ia(r.toPixels(h.threshold||0),c,c+r.len),f?m.translateX=(i+=l?-Math.floor(p[0]):Math.ceil(p[2]))-r.len:m.translateY=i+=l?Math.ceil(p[0]):-Math.floor(p[2]),a.clipBox&&a.setClip(),a.group.attr(m)):(n=Number(a.group.attr(_)),a.group.animate({scaleY:1},Bl(Nl(a.options.animation),{step:function(b,C){a.group&&(m[_]=n+C.pos*(c-n),a.group.attr(m))}})))}init(e,n){super.init.apply(this,arguments);let i=this;(e=i.chart).hasRendered&&e.series.forEach(function(a){a.type===i.type&&(a.isDirty=!0)})}getColumnMetrics(){let h,e=this,n=e.options,i=e.xAxis,a=e.yAxis,r=i.options.reversedStacks,c=i.reversed&&!r||!i.reversed&&r,l={},p=0;!1===n.grouping?p=1:e.chart.series.forEach(function(x){let v,y=x.yAxis,P=x.options;x.type===e.type&&x.reserveSpace()&&a.len===y.len&&a.pos===y.pos&&(P.stacking&&"group"!==P.stacking?(void 0===l[h=x.stackKey]&&(l[h]=p++),v=l[h]):!1!==P.grouping&&(v=p++),x.columnIndex=v)});let f=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||n.pointRange||i.closestPointRange||i.tickInterval||1),i.len),m=f*n.groupPadding,_=(f-2*m)/(p||1),b=Math.min(n.maxPointWidth||i.len,eo(n.pointWidth,_*(1-2*n.pointPadding)));return e.columnMetrics={width:b,offset:(_-b)/2+(m+((e.columnIndex||0)+ +!!c)*_-f/2)*(c?-1:1),paddedWidth:_,columnCount:p},e.columnMetrics}crispCol(e,n,i,a){let r=this.borderWidth,c=this.chart.inverted;return a=oa(n+a,r,c)-(n=oa(n,r,c)),this.options.crisp&&(i=oa(e+i,r)-(e=oa(e,r))),{x:e,y:n,width:i,height:a}}adjustForMissingColumns(e,n,i,a){if(!i.isNull&&a.columnCount>1){let r=this.xAxis.series.filter(p=>p.visible).map(p=>p.index),c=0,l=0;Tu(this.xAxis.stacking?.stacks,p=>{let f="number"==typeof i.x?p[i.x.toString()]?.points:void 0,m=f?.[this.index],_={};if(f&&Vl(m)){let b=this.index,C=Object.keys(f).filter(x=>!x.match(",")&&f[x]&&f[x].length>1).map(parseFloat).filter(x=>-1!==r.indexOf(x)).filter(x=>{let v=this.chart.series[x].options,y=v.stacking&&v.stack;if(Yl(y)){if(aa(_[y]))return b===x&&(b=_[y]),!1;_[y]=x}return!0}).sort((x,v)=>v-x);c=C.indexOf(b),l=C.length}}),c=this.xAxis.reversed?l-1-c:c,e=(i.plotX||0)+((l-1)*a.paddedWidth+n)/2-n-c*a.paddedWidth}return e}translate(){let e=this,n=e.chart,i=e.options,a=e.dense=e.closestPointRange*e.xAxis.transA<2,r=e.borderWidth=eo(i.borderWidth,+!a),c=e.xAxis,l=e.yAxis,h=i.threshold,p=eo(i.minPointLength,5),f=e.getColumnMetrics(),m=f.width,_=e.pointXOffset=f.offset,b=e.dataMin,C=e.dataMax,x=e.translatedThreshold=l.getThreshold(h),v=e.barW=Math.max(m,1+2*r);i.pointPadding&&i.crisp&&(v=Math.ceil(v)),Se.prototype.translate.apply(e),e.points.forEach(function(y){let T,P=eo(y.yBottom,x),w=999+Math.abs(P),I=y.plotX||0,R=ia(y.plotY,-w,l.len+w),k=Math.min(R,P),A=Math.max(R,P)-k,F=m,G=I+_,j=v;p&&Math.abs(A)<p&&(A=p,T=!l.reversed&&!y.negative||l.reversed&&y.negative,aa(h)&&aa(C)&&y.y===h&&C<=h&&(l.min||0)<h&&(b!==C||(l.max||0)<=h)&&(T=!T,y.negative=!y.negative),k=Math.abs(k-x)>p?P-p:x-(T?p:0)),Yl(y.options.pointWidth)&&(G-=Math.round(((F=j=Math.ceil(y.options.pointWidth))-m)/2)),i.centerInCategory&&(G=e.adjustForMissingColumns(G,F,y,f)),y.barX=G,y.pointWidth=F,y.tooltipPos=n.inverted?[ia(l.len+l.pos-n.plotLeft-R,l.pos-n.plotLeft,l.len+l.pos-n.plotLeft),c.len+c.pos-n.plotTop-G-j/2,A]:[c.left-n.plotLeft+G+j/2,ia(R+l.pos-n.plotTop,l.pos-n.plotTop,l.len+l.pos-n.plotTop),A],y.shapeType=e.pointClass.prototype.shapeType||"roundedRect",y.shapeArgs=e.crispCol(G,k,j,y.isNull?0:A)}),Xl(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,n){let l,h,p,i=this.options,a=this.pointAttrToOptions||{},r=a.stroke||"borderColor",c=a["stroke-width"]||"borderWidth",f=e&&e.color||this.color,m=e&&e[r]||i[r]||f,_=e&&e.options.dashStyle||i.dashStyle,b=e&&e[c]||i[c]||this[c]||0,C=e?.isNull&&i.nullInteraction?0:e?.opacity??i.opacity??1;e&&this.zones.length&&(h=e.getZone(),f=e.options.color||h&&(h.color||e.nonZonedColor)||this.color,h&&(m=h.borderColor||m,_=h.dashStyle||_,b=h.borderWidth||b)),n&&e&&(p=(l=Rr(i.states[n],e.options.states&&e.options.states[n]||{})).brightness,f=l.color||void 0!==p&&zl(f).brighten(l.brightness).get()||f,m=l[r]||m,b=l[c]||b,_=l.dashStyle||_,C=eo(l.opacity,C));let x={fill:f,stroke:m,"stroke-width":b,opacity:C};return _&&(x.dashstyle=_),x}
1drawPoints(e=this.points){let n,i=this,a=this.chart,r=i.options,c=r.nullInteraction,l=a.renderer,h=r.animationLimit||250;e.forEach(function(p){let m=p.graphic,_=!!m,b=m&&a.pointCount<h?"animate":"attr";aa(p.plotY)&&(null!==p.y||c)?(n=p.shapeArgs,m&&p.hasNewShapeType()&&(m=m.destroy()),i.enabledDataSorting&&(p.startXPos=i.xAxis.reversed?-(n&&n.width||0):i.xAxis.width),!m&&(p.graphic=m=l[p.shapeType](n).add(p.group||i.group),m&&i.enabledDataSorting&&a.hasRendered&&a.pointCount<h&&(m.attr({x:p.startXPos}),_=!0,b="animate")),m&&_&&m[b](Rr(n)),a.styledMode||m[b](i.pointAttribs(p,p.selected&&"select")).shadow(!1!==p.allowShadow&&r.shadow),m&&(m.addClass(p.getClassName(),!0),m.attr({visibility:p.visible?"inherit":"hidden"}))):m&&(p.graphic=m.destroy())})}drawTracker(e=this.points){let n,i=this,a=i.chart,r=a.pointer,c=function(l){r?.normalize(l);let h=r?.getPointFromEvent(l);r&&h&&i.options.enableMouseTracking&&(a.isInsidePlot(l.chartX-a.plotLeft,l.chartY-a.plotTop,{visiblePlotOnly:!0})||r?.inClass(l.target,"highcharts-data-label"))&&(r.isDirectTouch=!0,h.onMouseOver(l))};e.forEach(function(l){n=Vl(l.dataLabels)?l.dataLabels:l.dataLabel?[l.dataLabel]:[],l.graphic&&(l.graphic.element.point=l),n.forEach(function(h){(h.div||h.element).point=l})}),i._hasTracking||(i.trackerGroups.forEach(function(l){i[l]&&(i[l].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(h){r?.onTrackerMouseOut(h)}).on("touchstart",c),!a.styledMode&&i.options.cursor&&i[l].css({cursor:i.options.cursor}))}),i._hasTracking=!0),Xl(this,"afterDrawTracker")}remove(){let e=this,n=e.chart;n.hasRendered&&n.series.forEach(function(i){i.type===e.type&&(i.isDirty=!0)}),Se.prototype.remove.apply(e,arguments)}}ra.defaultOptions=Rr(Se.defaultOptions,{borderRadius:3,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"}),Bl(ra.prototype,{directTouch:!0,getSymbol:Iu,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Tt.registerSeriesType("column",ra);let sa=ra,{getDeferredAnimation:ku}=$t,{format:Ru}=Oe,{defined:ii,extend:Wl,fireEvent:Ar,getAlignFactor:Ul,isArray:Ln,isString:no,merge:io,objectEach:Au,pick:oo,pInt:Su,splat:Hl}=q;!function(d){function e(){return h(this).some(f=>f?.enabled)}function n(f,m,_,b,C){let{chart:x,enabledDataSorting:v}=this,y=this.isCartesian&&x.inverted,P=f.plotX,w=f.plotY,I=_.rotation||0,R=ii(P)&&ii(w)&&x.isInsidePlot(P,Math.round(w),{inverted:y,paneCoordinates:!0,series:this}),T=0===I&&"justify"===oo(_.overflow,v?"none":"justify"),k=this.visible&&!1!==f.visible&&ii(P)&&(f.series.forceDL||v&&!T||R||oo(_.inside,!!this.options.stacking)&&b&&x.isInsidePlot(P,y?b.x+1:b.y+b.height-1,{inverted:y,paneCoordinates:!0,series:this})),A=f.pos();if(k&&A){let G=m.getBBox(),j=m.getBBox(void 0,0);if(b=Wl({x:A[0],y:Math.round(A[1]),width:0,height:0},b||{}),"plotEdges"===_.alignTo&&this.isCartesian&&(b[y?"x":"y"]=0,b[y?"width":"height"]=this.yAxis?.len||0),Wl(_,{width:G.width,height:G.height}),v&&this.xAxis&&!T&&this.setDataLabelStartPos(f,m,C,R,b),m.align(io(_,{width:j.width,height:j.height}),!1,b,!1),m.alignAttr.x+=Ul(_.align)*(j.width-G.width),m.alignAttr.y+=Ul(_.verticalAlign)*(j.height-G.height),m[m.placed?"animate":"attr"]({"text-align":m.alignAttr["text-align"]||"center",x:m.alignAttr.x+(G.width-j.width)/2,y:m.alignAttr.y+(G.height-j.height)/2,rotationOriginX:(m.width||0)/2,rotationOriginY:(m.height||0)/2}),T&&b.height>=0)this.justifyDataLabel(m,_,m.alignAttr,G,b,C);else if(oo(_.crop,!0)){let{x:U,y:K}=m.alignAttr;k=x.isInsidePlot(U,K,{paneCoordinates:!0,series:this})&&x.isInsidePlot(U+G.width-1,K+G.height-1,{paneCoordinates:!0,series:this})}_.shape&&!I&&m[C?"attr":"animate"]({anchorX:A[0],anchorY:A[1]})}C&&v&&(m.placed=!1),k||v&&!T?(m.show(),m.placed=!0):(m.hide(),m.placed=!1)}function i(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function a(f){let m=this.hasRendered||0,_=this.initDataLabelsGroup().attr({opacity:+m});return!m&&_&&(this.visible&&_.show(),this.options.animation?_.animate({opacity:1},f):_.attr({opacity:1})),_}function r(f){let m;f=f||this.points;let _=this,b=_.chart,C=_.options,x=b.renderer,{backgroundColor:v,plotBackgroun
1dColor:y}=b.options.chart,P=x.getContrast(no(y)&&y||no(v)&&v||"#000000"),w=h(_),{animation:I,defer:R}=w[0],T=R?ku(b,I,_):{defer:0,duration:0};Ar(this,"drawDataLabels"),_.hasDataLabels?.()&&(m=this.initDataLabels(T),f.forEach(k=>{let A=k.dataLabels||[],F=k.color||_.color;Hl(l(w,k.dlOptions||k.options?.dataLabels)).forEach((j,U)=>{let Xt,Gt,re,Pt,K=j.enabled&&(k.visible||k.dataLabelOnHidden)&&(!k.isNull||k.dataLabelOnNull)&&function(Ht,qt){let Yt=qt.filter;if(Yt){let ie=Yt.operator,Te=Ht[Yt.property],je=Yt.value;return">"===ie&&Te>je||"<"===ie&&Te<je||">="===ie&&Te>=je||"<="===ie&&Te<=je||"=="===ie&&Te==je||"==="===ie&&Te===je||"!="===ie&&Te!=je||"!=="===ie&&Te!==je||!1}return!0}(k,j),{backgroundColor:it,borderColor:rt,distance:et,style:ct={}}=j,dt={},ft=A[U],kt=!ft;K&&(Gt=ii(Xt=oo(j[k.formatPrefix+"Format"],j.format))?Ru(Xt,k,b):(j[k.formatPrefix+"Formatter"]||j.formatter).call(k,j),re=j.rotation,!b.styledMode&&(ct.color=oo(j.color,ct.color,no(_.color)?_.color:void 0,"#000000"),"contrast"===ct.color?("none"!==it&&(Pt=it),k.contrastColor=x.getContrast("auto"!==Pt&&no(Pt)&&Pt||(no(F)?F:"")),ct.color=Pt||!ii(et)&&j.inside||0>Su(et||0)||C.stacking?k.contrastColor:P):delete k.contrastColor,C.cursor&&(ct.cursor=C.cursor)),dt={r:j.borderRadius||0,rotation:re,padding:j.padding,zIndex:1},b.styledMode||(dt.fill="auto"===it?k.color:it,dt.stroke="auto"===rt?k.color:rt,dt["stroke-width"]=j.borderWidth),Au(dt,(Ht,qt)=>{void 0===Ht&&delete dt[qt]})),!ft||K&&ii(Gt)&&!(!ft.div&&!ft.text?.foreignObject)==!!j.useHTML&&(ft.rotation&&j.rotation||ft.rotation===j.rotation)||(ft=void 0,kt=!0),K&&ii(Gt)&&(ft?dt.text=Gt:(ft=x.label(Gt,0,0,j.shape,void 0,void 0,j.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(j.className||"")+(j.useHTML?" highcharts-tracker":"")),ft&&(ft.options=j,ft.attr(dt),b.styledMode?ct.width&&ft.css({width:ct.width,textOverflow:ct.textOverflow,whiteSpace:ct.whiteSpace}):ft.css(ct).shadow(j.shadow),Ar(ft,"beforeAddingDataLabel",{labelOptions:j,point:k}),ft.added||ft.add(m),_.alignDataLabel(k,ft,j,void 0,kt),ft.isActive=!0,A[U]&&A[U]!==ft&&A[U].destroy(),A[U]=ft))});let G=A.length;for(;G--;)A[G]?.isActive?A[G].isActive=!1:(A[G]?.destroy(),A.splice(G,1));k.dataLabel=A[0],k.dataLabels=A})),Ar(this,"afterDrawDataLabels")}function c(f,m,_,b,C,x){let G,j,v=this.chart,y=m.align,P=m.verticalAlign,w=f.box?0:f.padding||0,I=v.inverted?this.yAxis:this.xAxis,R=I?I.left-v.plotLeft:0,T=v.inverted?this.xAxis:this.yAxis,k=T?T.top-v.plotTop:0,{x:A=0,y:F=0}=m;return(G=(_.x||0)+w+R)<0&&("right"===y&&A>=0?(m.align="left",m.inside=!0):A-=G,j=!0),(G=(_.x||0)+b.width-w+R)>v.plotWidth&&("left"===y&&A<=0?(m.align="right",m.inside=!0):A+=v.plotWidth-G,j=!0),(G=_.y+w+k)<0&&("bottom"===P&&F>=0?(m.verticalAlign="top",m.inside=!0):F-=G,j=!0),(G=(_.y||0)+b.height-w+k)>v.plotHeight&&("top"===P&&F<=0?(m.verticalAlign="bottom",m.inside=!0):F+=v.plotHeight-G,j=!0),j&&(m.x=A,m.y=F,f.placed=!x,f.align(m,void 0,C)),j}function l(f,m){let b,_=[];if(Ln(f)&&!Ln(m))_=f.map(function(C){return io(C,m)});else if(Ln(m)&&!Ln(f))_=m.map(function(C){return io(f,C)});else if(Ln(f)||Ln(m)){if(Ln(f)&&Ln(m))for(b=Math.max(f.length,m.length);b--;)_[b]=io(f[b],m[b])}else _=io(f,m);return _}function h(f){let m=f.chart.options.plotOptions;return Hl(l(l(m?.series?.dataLabels,m?.[f.type]?.dataLabels),f.options.dataLabels))}function p(f,m,_,b,C){let x=this.chart,v=x.inverted,y=this.xAxis,P=y.reversed,w=((v?m.height:m.width)||0)/2,I=f.pointWidth,R=I?I/2:0;m.startXPos=v?C.x:P?-w-R:y.width-w+R,m.startYPos=v?P?this.yAxis.height-w+R:-w-R:C.y,b?"hidden"===m.visibility&&(m.show(),m.attr({opacity:0}).animate({opacity:1})):m.attr({opacity:1}).animate({opacity:0}
1,void 0,m.hide),x.hasRendered&&(_&&m.attr({x:m.startXPos,y:m.startYPos}),m.placed=!0)}d.compose=function(f){let m=f.prototype;m.initDataLabels||(m.initDataLabels=a,m.initDataLabelsGroup=i,m.alignDataLabel=n,m.drawDataLabels=r,m.justifyDataLabel=c,m.mergeArrays=l,m.setDataLabelStartPos=p,m.hasDataLabels=e)}}(Ei||(Ei={}));let la=Ei,{composed:Du}=t,{series:Jl}=Tt,{merge:Eu,pushUnique:Fu}=q;!function(d){function e(n,i,a,r,c){let{chart:l,options:h}=this,p=l.inverted,f=this.xAxis?.len||l.plotSizeX||0,m=this.yAxis?.len||l.plotSizeY||0,_=n.dlBox||n.shapeArgs,b=n.below??(n.plotY||0)>(this.translatedThreshold??m),C=a.inside??!!h.stacking;if(_){if(r=Eu(_),"allow"!==a.overflow||!1!==a.crop||!1!==h.clip){r.y<0&&(r.height+=r.y,r.y=0);let x=r.y+r.height-m;x>0&&x<r.height-1&&(r.height-=x)}p&&(r={x:m-r.y-r.height,y:f-r.x-r.width,width:r.height,height:r.width}),C||(p?(r.x+=b?0:r.width,r.width=0):(r.y+=b?r.height:0,r.height=0))}a.align??(a.align=!p||C?"center":b?"right":"left"),a.verticalAlign??(a.verticalAlign=p||C?"middle":b?"top":"bottom"),Jl.prototype.alignDataLabel.call(this,n,i,a,r,c),a.inside&&n.contrastColor&&i.css({color:n.contrastColor})}d.compose=function(n){la.compose(Jl),Fu(Du,"ColumnDataLabel")&&(n.prototype.alignDataLabel=e)}}(Fi||(Fi={}));let $u=Fi,{extend:Lu,merge:Gu}=q;class Sr extends sa{}Sr.defaultOptions=Gu(sa.defaultOptions,{}),Lu(Sr.prototype,{inverted:!0}),Tt.registerSeriesType("bar",Sr);let{column:ju,line:ql}=Tt.seriesTypes,{addEvent:Nu,extend:zu,merge:Yu}=q;class ca extends ql{applyJitter(){let e=this,n=this.options.jitter,i=this.points.length;n&&this.points.forEach(function(a,r){["x","y"].forEach(function(c,l){if(n[c]&&!a.isNull){let h=`plot${c.toUpperCase()}`,p=e[`${c}Axis`],f=n[c]*p.transA;if(p&&!p.logarithmic){let m=Math.max(0,(a[h]||0)-f),_=Math.min(p.len,(a[h]||0)+f);a[h]=m+(_-m)*function(b){let C=1e4*Math.sin(b);return C-Math.floor(C)}(r+l*i),"x"===c&&(a.clientX=a.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}ca.defaultOptions=Yu(ql.defaultOptions,{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: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),zu(ca.prototype,{drawTracker:ju.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),Nu(ca,"afterTranslate",function(){this.applyJitter()}),Tt.registerSeriesType("scatter",ca);let{deg2rad:Ql}=t,{fireEvent:Bu,isNumber:Dr,pick:ha,relativeLength:Xu}=q;!function(d){d.getCenter=function(){let p,_,b,e=this.options,n=this.chart,i=2*(e.slicedOffset||0),a=n.plotWidth-2*i,r=n.plotHeight-2*i,c=e.center,l=Math.min(a,r),h=e.thickness,f=e.size,m=e.innerSize||0;"string"==typeof f&&(f=parseFloat(f)),"string"==typeof m&&(m=parseFloat(m));let C=[ha(c?.[0],"50%"),ha(c?.[1],"50%"),ha(f&&f<0?void 0:e.size,"100%"),ha(m&&m<0?void 0:e.innerSize||0,"0%")];for(!n.angular||this instanceof Se||(C[3]=0),_=0;_<4;++_)b=C[_],p=_<2||2===_&&/%$/.test(b),C[_]=Xu(b,[a,r,l,C[2]][_])+(p?i:0);return C[3]>C[2]&&(C[3]=C[2]),Dr(h)&&2*h<C[2]&&h>0&&(C[3]=C[2]-2*h),Bu(this,"afterGetCenter",{positions:C}),C},d.getStartAndEndRadians=function(e,n){let i=Dr(e)?e:0,a=Dr(n)&&n>i&&n-i<360?n:i+360;return{start:Ql*(i+-90),end:Ql*(a+-90)}}}(jt||(jt={}));let Er=jt,{setAnimation:Vu}=$t,{addEvent:Zl,defined:Wu,extend:Uu,isNumber:Hu,pick:Ju,relativeLength:qu}=q;class Kl extends bn{getConnectorPath(e){let n=e.dataLabelPosition,i=e.options||{},a=i.connectorShape;return n&&(this.connectorShapes[a]||a).call(this,{...n.computed,alignment:n.alignment},n.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let n=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(n.x,n.y,n.r+e,n.r+e,{innerR:n.r-1,start:n.start,end:n.end,borderRadius:n.borderRadius})}constructor(e,n,i){super(e,n,i),this.half=0,this.name??(this.name=e.chart.options.lang.pieSliceName);let a=r=>{this.slice("select"===r.type)};Zl(this,"select",a),Zl(this,"unselect",a)}isValid(){return Hu(this.y)&&this.y>=0}setVisible(e,n=!0){e!==this.visible&&this.update({visible:e??!this.visible},n,void 0,!1)}slice(e,n,i){let a=this.series;Vu(i,a.chart),n=Ju(n,!0),this.sliced=this.options.sliced=e=Wu(e)?e:!this.sliced,a.options.data[a.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}Uu(Kl.prototype,{connectorShapes:{fixedOffset:function(d,e,n){let i=e.breakAt,a=e.touchingSliceAt;return[["M",d.x,d.y],n.softConnector?["C",d.x+("left"===d.alignment?-5:5),d.y,2*i.x-a.x,2*i.y-a.y,i.x,i.y]:["L",i.x,i.y],["L",a.x,a.y]]},straight:function(d,e){let n=e.touchingSliceAt;return[["M",d.x,d.y],["L",n.x,n.y]]},crookedLine:function(d,e,n){let{angle:i=this.angle||0,breakAt:a,touchingSliceAt:r}=e,{series:c}
vendor: 5,021 bytes, line 1
1=this,[l,h,p]=c.center,f=p/2,{plotLeft:m,plotWidth:_}=c.chart,b="left"===d.alignment,{x:C,y:x}=d,v=a.x;if(n.crookDistance){let P=qu(n.crookDistance,1);v=b?l+f+(_+m-l-f)*(1-P):m+(l-f)*P}else v=l+(h-x)*Math.tan(i-Math.PI/2);let y=[["M",C,x]];return(b?v<=C&&v>=a.x:v>=C&&v<=a.x)&&y.push(["L",v,x]),y.push(["L",a.x,a.y],["L",r.x,r.y]),y}}});let{getStartAndEndRadians:Qu}=Er,{noop:tc}=t,{clamp:Zu,extend:Ku,fireEvent:ec,merge:Fr,pick:tm}=q;class $r extends Se{animate(e){let n=this,a=n.startAngleRad;e||n.points.forEach(function(r){let c=r.graphic,l=r.shapeArgs;c&&l&&(c.attr({r:tm(r.startR,n.center&&n.center[3]/2),start:a,end:a}),c.animate({r:l.r,start:l.start,end:l.end},n.options.animation))})}drawEmpty(){let e,n,i=this.startAngleRad,a=this.endAngleRad,r=this.options;0===this.total&&this.center?(e=this.center[0],n=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,n,this.center[1]/2,0,i,a).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Ms.arc(e,n,this.center[2]/2,0,{start:i,end:a,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(n){n.graphic&&n.hasNewShapeType()&&(n.graphic=n.graphic.destroy()),n.graphic||(n.graphic=e[n.shapeType](n.shapeArgs).add(n.series.group),n.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,n,i,a){let r=this.center,c=this.radii?this.radii[i.index]||0:r[2]/2,l=a.dataLabelPosition,h=l?.distance||0,p=Math.asin(Zu((e-r[1])/(c+h),-1,1));return r[0]+Math.cos(p)*(c+h)*(n?-1:1)+(h>0?(n?-1:1)*(a.padding||0):0)}hasData(){return!!this.dataTable.rowCount}redrawPoints(){let e,n,i,a,r=this,c=r.chart;this.drawEmpty(),r.group&&!c.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(l){let h={};n=l.graphic,!l.isNull&&n?(a=l.shapeArgs,e=l.getTranslate(),c.styledMode||(i=r.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(n.setRadialReference(r.center).attr(a).attr(e),c.styledMode||n.attr(i).attr({"stroke-linejoin":"round"}),l.delayedRendering=!1):(n.setRadialReference(r.center),c.styledMode||Fr(!0,h,i),Fr(!0,h,a,e),n.animate(h)),n.attr({visibility:l.visible?"inherit":"hidden"}),n.addClass(l.getClassName(),!0)):n&&(l.graphic=n.destroy())})}sortByAngle(e,n){e.sort(function(i,a){return void 0!==i.angle&&(a.angle-i.angle)*n})}translate(e){ec(this,"translate"),this.generatePoints();let f,m,_,b,C,x,v,n=this.options,i=n.slicedOffset,a=Qu(n.startAngle,n.endAngle),r=this.startAngleRad=a.start,c=(this.endAngleRad=a.end)-r,l=this.points,h=n.ignoreHiddenPoint,p=l.length,y=0;for(e||(this.center=e=this.getCenter()),x=0;x<p;x++){v=l[x],f=r+y*c,v.isValid()&&(!h||v.visible)&&(y+=v.percentage/100),m=r+y*c;let P={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*m)/1e3};v.shapeType="arc",v.shapeArgs=P,(_=(m+f)/2)>1.5*Math.PI?_-=2*Math.PI:_<-Math.PI/2&&(_+=2*Math.PI),v.slicedTranslation={translateX:Math.round(Math.cos(_)*i),translateY:Math.round(Math.sin(_)*i)},b=Math.cos(_)*e[2]/2,C=Math.sin(_)*e[2]/2,v.tooltipPos=[e[0]+.7*b,e[1]+.7*C],v.half=+(_<-Math.PI/2||_>Math.PI/2),v.angle=_}ec(this,"afterTranslate")}updateTotals(){let a,r,e=this.points,n=e.length,i=this.options.ignoreHiddenPoint,c=0;for(a=0;a<n;a++)(r=e[a]).isValid()&&(!i||r.visible)&&(c+=r.y);for(a=0,this.total=c;a<n;a++)(r=e[a]).percentage=c>0&&(r.visible||!i)?r.y/c*100:0,r.total=c}}$r.defaultOptions=Fr(Se.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.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}}}),Ku($r.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:sa.prototype.drawTracker,getCenter:Er.getCenter,getSymbol:tc,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:sa.prototype.pointAttribs,pointClass:Kl,requireSorting:!1,searchPoint:tc,trackerGroups:["group","dataLabelsGroup"]}),Tt.registerSeriesType("pie",$r);let{composed:em,noop:nm}=t,{distribute:im}=zi,{series:nc}=Tt,{arrayMax:om,clamp:ic,defined:oc,pick:am,pushUnique:rm,relativeLength:ac}=q;!function(d){let e={radialDistributionY:function(c,l){return(l.dataLabelPosition?.top||0)+c.distributeBox.pos},radialDistributionX:function(c,l,h,p,f){let m=f.dataLabelPosition;return c.getX(h<(m?.top||0)+2||h>(m?.bottom||0)-2?p:h,l.half,l,f)},justify:function(c,l,h,p){return p[0]+(c.half?-1:1)*(h+(l.dataLabelPosition?.distance||0))},alignToPlotEdges:function(c,l,h,p){let f=c.getBBox().width;return l?f+p:h-f-p},alignToConnectors:function(c,l,h,p){let m,f=0;
vendor: 4,829 bytes, line 1
1return c.forEach(function(_){(m=_.dataLabel.getBBox().width)>f&&(f=m)}),l?f+p:h-f-p}};function n(c,l){let h=Math.PI/2,{start:p=0,end:f=0}=c.shapeArgs||{},m=c.angle||0;l>0&&p<h&&f>h&&m>h/2&&m<1.5*h&&(m=m<=h?Math.max(h/2,(p+h)/2):Math.min(1.5*h,(h+f)/2));let{center:_,options:b}=this,C=_[2]/2,x=Math.cos(m),v=Math.sin(m),y=_[0]+x*C,P=_[1]+v*C,w=Math.min((b.slicedOffset||0)+(b.borderWidth||0),l/5);return{natural:{x:y+x*l,y:P+v*l},computed:{},alignment:l<0?"center":c.half?"right":"left",connectorPosition:{angle:m,breakAt:{x:y+x*w,y:P+v*w},touchingSliceAt:{x:y,y:P}},distance:l}}function i(){let w,I,R,c=this,l=c.points,h=c.chart,p=h.plotWidth,f=h.plotHeight,m=h.plotLeft,_=Math.round(h.chartWidth/3),b=c.center,C=b[2]/2,x=b[1],v=[[],[]],y=[0,0,0,0],P=c.dataLabelPositioners,T=0;c.visible&&c.hasDataLabels?.()&&(l.forEach(k=>{(k.dataLabels||[]).forEach(A=>{A.shortened&&(A.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),A.shortened=!1)})}),nc.prototype.drawDataLabels.apply(c),l.forEach(k=>{(k.dataLabels||[]).forEach((A,F)=>{let G=b[2]/2,j=A.options,U=ac(j?.distance||0,G);0===F&&v[k.half].push(k),!oc(j?.style?.width)&&A.getBBox().width>_&&(A.css({width:Math.round(.7*_)+"px"}),A.shortened=!0),A.dataLabelPosition=this.getDataLabelPosition(k,U),T=Math.max(T,U)})}),v.forEach((k,A)=>{let j,U,it,G=[],K=0;k.length&&(c.sortByAngle(k,A-.5),T>0&&(j=Math.max(0,x-C-T),U=Math.min(x+C+T,h.plotHeight),k.forEach(rt=>{(rt.dataLabels||[]).forEach(et=>{let ct=et.dataLabelPosition;ct&&ct.distance>0&&(ct.top=Math.max(0,x-C-ct.distance),ct.bottom=Math.min(x+C+ct.distance,h.plotHeight),K=et.getBBox().height||21,et.lineHeight=h.renderer.fontMetrics(et.text||et).h+2*et.padding,rt.distributeBox={target:(et.dataLabelPosition?.natural.y||0)-ct.top+et.lineHeight/2,size:K,rank:rt.y},G.push(rt.distributeBox))})}),im(G,it=U+K-j,it/5)),k.forEach(rt=>{(rt.dataLabels||[]).forEach(et=>{let ct=et.options||{},Xt=rt.distributeBox,Gt=et.dataLabelPosition,re=Gt?.natural.y||0,dt=ct.connectorPadding||0,ft=et.lineHeight||21,kt=(ft-et.getBBox().height)/2,Pt=0,Ht=re,qt="inherit";if(Gt){if(G&&oc(Xt)&&Gt.distance>0&&(void 0===Xt.pos?qt="hidden":(R=Xt.size,Ht=P.radialDistributionY(rt,et))),ct.justify)Pt=P.justify(rt,et,C,b);else switch(ct.alignTo){case"connectors":Pt=P.alignToConnectors(k,A,p,m);break;case"plotEdges":Pt=P.alignToPlotEdges(et,A,p,m);break;default:Pt=P.radialDistributionX(c,rt,Ht-kt,re,et)}if(Gt.attribs={visibility:qt,align:Gt.alignment},Gt.posAttribs={x:Pt+(ct.x||0)+({left:dt,right:-dt}[Gt.alignment]||0),y:Ht+(ct.y||0)-ft/2},Gt.computed.x=Pt,Gt.computed.y=Ht-kt,am(ct.crop,!0)){let Yt;Pt-(I=et.getBBox().width)<dt&&1===A?(Yt=Math.round(I-Pt+dt),y[3]=Math.max(Yt,y[3])):Pt+I>p-dt&&0===A&&(Yt=Math.round(Pt+I-p+dt),y[1]=Math.max(Yt,y[1])),Ht-R/2<0?y[0]=Math.max(Math.round(R/2-Ht),y[0]):Ht+R/2>f&&(y[2]=Math.max(Math.round(Ht+R/2-f),y[2])),Gt.sideOverflow=Yt}}})}))}),(0===om(y)||this.verifyDataLabelOverflow(y))&&(this.placeDataLabels(),this.points.forEach(k=>{(k.dataLabels||[]).forEach(A=>{let{connectorColor:F,connectorWidth:G=1}=A.options||{},j=A.dataLabelPosition;if(G){let U;w=A.connector,j&&j.distance>0?(U=!w,w||(A.connector=w=h.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+k.colorIndex+(k.className?" "+k.className:"")).add(c.dataLabelsGroup)),h.styledMode||w.attr({"stroke-width":G,stroke:F||k.color||"#666666"}),w[U?"attr":"animate"]({d:k.getConnectorPath(A)}),w.attr({visibility:j.attribs?.visibility})):w&&(A.connector=w.destroy())}})})))}function a(){this.points.forEach(c=>{(c.dataLabels||[]).forEach(l=>{let h=l.dataLabelPosition;h?(h.sideOverflow&&(l.css({width:Math.max(l.getBBox().width-h.sideOverflow,0)+"px",textOverflow:l.options?.style?.textOverflow||"ellipsis"}),l.shortened=!0),l.attr(h.attribs),l[l.moved?"animate":"attr"](h.posAttribs),l.moved=!0):l&&l.attr({y:-9999})}),delete c.distributeBox},this)}function r(c){let l=this.center,h=this.options,p=h.center,f=h.minSize||80,m=f,_=null!==h.size;return!_&&(null!==p[0]?m=Math.max(l[2]-Math.max(c[1],c[3]),f):(m=Math.max(l[2]-c[1]-c[3],f),l[0]+=(c[3]-c[1])/2),null!==p[1]?m=ic(m,f,l[2]-Math.max(c[0],c[2])):(m=ic(m,f,l[2]-c[0]-c[2]),l[1]+=(c[0]-c[2])/2),m<l[2]?(l[2]=m,l[3]=Math.min(h.thickness?Math.max(0,m-2*h.thickness):Math.max(0,ac(h.innerSize||0,m)),m),this.translate(l),this.drawDataLabels&&this.drawDataLabels()):_=!0),_}d.compose=function(c){if(la.compose(nc),rm(em,"PieDataLabel")){let l=c.prototype;l.dataLabelPositioners=e,l.alignDataLabel=nm,l.drawDataLabels=i,l.getDataLabelPosition=n,l.placeDataLabels=a,l.verifyDataLabelOverflow=r}}}(ze||(ze={}));let sm=ze;!function(d){d.getCenterOfPoints=function(e){let n=e.reduce((i,a)=>(i.x+=a.x,i.y+=a.y,i),{x:0,y:0});return{x:n.x/e.length,y:n.y/e.length}},d.getDistanceBetweenPoints=function(e,n){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}
1,d.getAngleBetweenPoints=function(e,n){return Math.atan2(n.x-e.x,n.y-e.y)},d.pointInPolygon=function({x:e,y:n},i){let r,c,a=i.length,l=!1;for(r=0,c=a-1;r<a;c=r++){let[h,p]=i[r],[f,m]=i[c];p>n!=m>n&&e<(f-h)*(n-p)/(m-p)+h&&(l=!l)}return l}}(we||(we={}));let rc=we,{pointInPolygon:lm}=rc,{addEvent:cm,getAlignFactor:hm,fireEvent:sc,objectEach:lc,pick:dm}=q;function pm(d){let a,r,c,l,h,e=d.length,n=(f,m)=>!(m.x>=f.x+f.width||m.x+m.width<=f.x||m.y>=f.y+f.height||m.y+m.height<=f.y),i=(f,m)=>{for(let _ of f)if(lm({x:_[0],y:_[1]},m))return!0;return!1},p=!1;for(let f=0;f<e;f++)(a=d[f])&&(a.oldOpacity=a.opacity,a.newOpacity=1,a.absoluteBox=function(m){if(m&&(!m.alignAttr||m.placed)){let _=m.box?0:m.padding||0,b=m.alignAttr||{x:m.attr("x"),y:m.attr("y")},{height:C,polygon:x,width:v}=m.getBBox(),y=hm(m.alignValue)*v;return m.width=v,m.height=C,{x:b.x+(m.parentGroup?.translateX||0)+_-y,y:b.y+(m.parentGroup?.translateY||0)+_,width:v-2*_,height:C-2*_,polygon:x}}}(a));d.sort((f,m)=>(m.labelrank||0)-(f.labelrank||0));for(let f=0;f<e;++f){l=(r=d[f])&&r.absoluteBox;let m=l?.polygon;for(let _=f+1;_<e;++_){h=(c=d[_])&&c.absoluteBox;let b=!1;if(l&&h&&r!==c&&0!==r.newOpacity&&0!==c.newOpacity&&"hidden"!==r.visibility&&"hidden"!==c.visibility){let C=h.polygon;if(m&&C&&m!==C?i(m,C)&&(b=!0):n(l,h)&&(b=!0),b){let x=r.labelrank<c.labelrank?r:c,v=x.text;x.newOpacity=0,v?.element.querySelector("textPath")&&v.hide()}}}}for(let f of d)cc(f,this)&&(p=!0);p&&sc(this,"afterHideAllOverlappingLabels")}function cc(d,e){let n,i=!1;return d&&(n=d.newOpacity,d.oldOpacity!==n&&(d.hasClass("highcharts-data-label")?(d[n?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,d[d.isOld?"animate":"attr"]({opacity:n},void 0,function(){e.styledMode||d.css({pointerEvents:n?"auto":"none"})}),sc(e,"afterHideOverlappingLabel")):d.attr({opacity:n})),d.isOld=!0),i}function um(){let d=this,e=[];for(let n of d.labelCollectors||[])e=e.concat(n());for(let n of d.yAxis||[])n.stacking&&n.options.stackLabels&&!n.options.stackLabels.allowOverlap&&lc(n.stacking.stacks,i=>{lc(i,a=>{a.label&&e.push(a.label)})});for(let n of d.series||[])if(n.visible&&n.hasDataLabels?.()){let i=a=>{for(let r of a)r.visible&&(r.dataLabels||[]).forEach(c=>{let l=c.options||{};c.labelrank=dm(l.labelrank,r.labelrank,r.shapeArgs?.height),l.allowOverlap??Number(l.distance)>0?(c.oldOpacity=c.opacity,c.newOpacity=1,cc(c,d)):e.push(c)})};i(n.nodes||[]),i(n.points)}this.hideOverlappingLabels(e)}let hc={compose:function(d){let e=d.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=pm,cm(d,"render",um))}},{defaultOptions:mm}=ot,{noop:dc}=t,{addEvent:pc,extend:gm,isObject:uc,merge:fm,relativeLength:Lr}=q,_m={radius:0,scope:"stack",where:void 0},mc=dc,gc=dc;function bm(d,e,n,i,a={}){let r=mc(d,e,n,i,a),{innerR:c=0,r:l=n,start:h=0,end:p=0}=a;if(a.open||!a.borderRadius)return r;let f=p-h,m=Math.sin(f/2),_=Math.max(Math.min(Lr(a.borderRadius||0,l-c),(l-c)/2,l*m/(1+m)),0),b=Math.min(_,f/Math.PI*2*c),C=r.length-1;for(;C--;)!function(x,v,y){let P,w,I,R=x[v],T=x[v+1];if("Z"===T[0]&&(T=x[0]),"M"!==R[0]&&"L"!==R[0]||"A"!==T[0]?"A"===R[0]&&("M"===T[0]||"L"===T[0])&&(P=T,w=R):(P=R,w=T,I=!0),P&&w&&w.params){let k=w[1],A=w[5],F=w.params,{start:G,end:j,cx:U,cy:K}=F,it=A?k-y:k+y,rt=it?Math.asin(y/it):0,et=A?rt:-rt,ct=Math.cos(rt)*it;I?(F.start=G+et,P[1]=U+ct*Math.cos(G),P[2]=K+ct*Math.sin(G),x.splice(v+1,0,["A",y,y,0,0,1,U+k*Math.cos(F.start),K+k*Math.sin(F.start)])):(F.end=j-et,w[6]=U+k*Math.cos(F.end),w[7]=K+k*Math.sin(F.end),x.splice(v+1,0,["A",y,y,0,0,1,U+ct*Math.cos(j),K+ct*Math.sin(j)])),w[4]=Math.abs(F.end-F.start)<Math.PI?0:1}}(r,C,C>1?b:_);return r}function Cm(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:d,yAxis:e}=this,n="percent"===d.stacking,i=mm.plotOptions?.[this.type]?.borderRadius,a=da(d.borderRadius,uc(i)?i:{}),r=e.options.reversed;for(let c of this.points){let{shapeArgs:l}=c;if("roundedRect"===c.shapeType&&l){let{width:h=0,height:p=0,y:f=0}=l,m=f,_=p;if("stack"===a.scope&&c.stackTotal){let v=e.translate(n?100:c.stackTotal,!1,!0,!1,!0),y=e.translate(d.threshold||0,!1,!0,!1,!0),P=this.crispCol(0,Math.min(v,y),0,Math.abs(v-y));m=P.y,_=P.height}let b=(c.negative?-1:1)*(r?-1:1)==-1,C=a.where;!C&&this.is("waterfall")&&Math.abs((c.yBottom||0)-(this.translatedThreshold||0))>
vendor: 1,641 bytes, line 1
1this.borderWidth&&(C="all"),C||(C="end");let x=Math.min(Lr(a.radius,h),h/2,"all"===C?p/2:1/0)||0;"end"===C&&(b&&(m-=x),_+=x),gm(l,{brBoxHeight:_,brBoxY:m,r:x})}}}}function da(d,e){return uc(d)||(d={radius:d||0}),fm(_m,e,d)}function xm(){let d=da(this.options.borderRadius);for(let e of this.points){let n=e.shapeArgs;n&&(n.borderRadius=Lr(d.radius,(n.r||0)-(n.innerR||0)))}}function ym(d,e,n,i,a={}){let r=gc(d,e,n,i,a),{r:c=0,brBoxHeight:l=i,brBoxY:h=e}=a,p=e-h,f=h+l-(e+i),m=p-c>-.1?0:c,_=f-c>-.1?0:c,b=Math.max(m&&p,0),C=Math.max(_&&f,0),x=[d+m,e],v=[d+n-m,e],y=[d+n,e+m],P=[d+n,e+i-_],w=[d+n-_,e+i],I=[d+_,e+i],R=[d,e+i-_],T=[d,e+m],k=(A,F)=>Math.sqrt(Math.pow(A,2)-Math.pow(F,2));if(b){let A=k(m,m-b);x[0]-=A,v[0]+=A,y[1]=T[1]=e+m-b}if(i<m-b){let A=k(m,m-b-i);y[0]=P[0]=d+n-m+A,w[0]=Math.min(y[0],w[0]),I[0]=Math.max(P[0],I[0]),R[0]=T[0]=d+m-A,y[1]=T[1]=e+i}if(C){let A=k(_,_-C);w[0]+=A,I[0]-=A,P[1]=R[1]=e+i-_+C}if(i<_-C){let A=k(_,_-C-i);y[0]=P[0]=d+n-_+A,v[0]=Math.min(y[0],v[0]),x[0]=Math.max(P[0],x[0]),R[0]=T[0]=d+_-A,P[1]=R[1]=e}return r.length=0,r.push(["M",...x],["L",...v],["A",m,m,0,0,1,...y],["L",...P],["A",_,_,0,0,1,...w],["L",...I],["A",_,_,0,0,1,...R],["L",...T],["A",m,m,0,0,1,...x],["Z"]),r}let{diffObjects:Mm,extend:fc,find:Pi,merge:vm,pick:pa,uniqueKey:Pm}=q;!function(d){function e(i,a){let r=i.condition;(r.callback||function(){return this.chartWidth<=pa(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=pa(r.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=pa(r.minWidth,0)&&this.chartHeight>=pa(r.minHeight,0)}).call(this)&&a.push(i._id)}function n(i,a){let h,r=this.options.responsive,c=this.currentResponsive,l=[];
vendor: 4,496 bytes, line 1
1!a&&r&&r.rules&&r.rules.forEach(m=>{void 0===m._id&&(m._id=Pm()),this.matchResponsiveRule(m,l)},this);let p=vm(...l.map(m=>Pi(r?.rules||[],_=>_._id===m)).map(m=>m?.chartOptions));p.isResponsiveOptions=!0,l=l.toString()||void 0;let f=c?.ruleIds;l===f||(c&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(c.undoOptions,i,!0),this.updatingResponsive=!1),l?((h=Mm(p,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:l,mergedOptions:p,undoOptions:h},this.updatingResponsive||this.update(p,i,!0)):this.currentResponsive=void 0)}d.compose=function(i){let a=i.prototype;return a.matchResponsiveRule||fc(a,{matchResponsiveRule:e,setResponsive:n}),i}}($i||($i={}));let wm=$i;t.AST=Qt,t.Axis=Ui,t.Chart=Cr,t.Color=Z,t.DataLabel=la,t.DataTableCore=Wo,t.Fx=Ut,t.HTMLElement=_i,t.Legend=_l,t.LegendSymbol=ar,t.OverlappingDataLabels=t.OverlappingDataLabels||hc,t.PlotLineOrBand=No,t.Point=bn,t.Pointer=el,t.RendererRegistry=Ni,t.Series=Se,t.SeriesRegistry=Tt,t.StackItem=Rl,t.SVGElement=Ue,t.SVGRenderer=Qn,t.Templating=Oe,t.Tick=bi,t.Time=S,t.Tooltip=Hs,t.animate=$t.animate,t.animObject=$t.animObject,t.chart=Cr.chart,t.color=Z.parse,t.dateFormat=Oe.dateFormat,t.defaultOptions=ot.defaultOptions,t.distribute=zi.distribute,t.format=Oe.format,t.getDeferredAnimation=$t.getDeferredAnimation,t.getOptions=ot.getOptions,t.numberFormat=Oe.numberFormat,t.seriesType=Tt.seriesType,t.setAnimation=$t.setAnimation,t.setOptions=ot.setOptions,t.stop=$t.stop,t.time=ot.defaultTime,t.timers=Ut.timers,function(d,e,n){let i=d.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let a=n.prototype.symbols;pc(d,"afterColumnTranslate",Cm,{order:9}),pc(i,"afterTranslate",xm),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),mc=a.arc,gc=a.roundedRect,a.arc=bm,a.roundedRect=ym}}(t.Series,t.SVGElement,t.SVGRenderer),$u.compose(t.Series.types.column),la.compose(t.Series),wd.compose(t.Axis),_i.compose(t.SVGRenderer),_l.compose(t.Chart),Td.compose(t.Axis),hc.compose(t.Chart),sm.compose(t.Series.types.pie),No.compose(t.Chart,t.Axis),el.compose(t.Chart),wm.compose(t.Chart),Tl.compose(t.Axis,t.Chart,t.Series),Cu.compose(t.Axis,t.Chart,t.Series),Hs.compose(t.Pointer),q.extend(t,q);let{parse:ua}=Z,{addEvent:wi,extend:_c,merge:Om,pick:Im,splat:Tm}=q;!function(d){let e;function n(){let{userOptions:_}=this;this.colorAxis=[],_.colorAxis&&(_.colorAxis=Tm(_.colorAxis),_.colorAxis.map(b=>new e(this,b)))}function i(_){let v,y,C=P=>{let w=_.allItems.indexOf(P);-1!==w&&(this.destroyItem(_.allItems[w]),_.allItems.splice(w,1))},x=[];for((this.chart.colorAxis||[]).forEach(function(P){v=P.options,v?.showInLegend&&(v.dataClasses&&v.visible?x=x.concat(P.getDataClassLegendSymbols()):v.visible&&x.push(P),P.series.forEach(function(w){(!w.options.showInLegend||v.dataClasses)&&("point"===w.options.legendType?w.points.forEach(function(I){C(I)}):C(w))}))}),y=x.length;y--;)_.allItems.unshift(x[y])}function a(_){_.visible&&_.item.legendColor&&_.item.legendItem.symbol.attr({fill:_.item.legendColor})}function r(_){this.chart.colorAxis?.forEach(b=>{b.update({},_.redraw)})}function c(){(this.chart.colorAxis?.length||this.colorAttribs)&&this.translateColors()}function l(){let _=this.axisTypes;_?-1===_.indexOf("colorAxis")&&_.push("colorAxis"):this.axisTypes=["colorAxis"]}function h(_){let b=this,C=_?"show":"hide";b.visible=b.options.visible=!!_,["graphic","dataLabel"].forEach(function(x){b[x]&&b[x][C]()}),this.series.buildKDTree()}function p(){let _=this,b=this.getPointsCollection(),C=this.options.nullColor,x=this.colorAxis,v=this.colorKey;b.forEach(y=>{let P=y.getNestedProperty(v),w=y.options.color||(y.isNull||null===y.value?C:x&&void 0!==P?x.toColor(P,y):y.color||_.color);w&&y.color!==w&&(y.color=w,"point"===_.options.legendType&&y.legendItem&&y.legendItem.label&&_.chart.legend.colorizeItem(y,y.visible))})}function f(){this.elem.attr("fill",ua(this.start).tweenTo(ua(this.end),this.pos),void 0,!0)}function m(){this.elem.attr("stroke",ua(this.start).tweenTo(ua(this.end),this.pos),void 0,!0)}d.compose=function(_,b,C,x,v){let y=b.prototype,P=C.prototype,w=v.prototype;y.collectionsWithUpdate.includes("colorAxis")||(e=_,y.collectionsWithUpdate.push("colorAxis"),y.collectionsWithInit.colorAxis=[y.addColorAxis],wi(b,"afterCreateAxes",n),function(I){let R=I.prototype.createAxis;I.prototype.createAxis=function(T,k){if("colorAxis"!==T)return R.apply(this,arguments);let A=new e(this,Om(k.axis,{index:this[T].length,isX:!1}));
1return this.isDirtyLegend=!0,this.axes.forEach(F=>{F.series=[]}),this.series.forEach(F=>{F.bindAxes(),F.isDirtyData=!0}),Im(k.redraw,!0)&&this.redraw(k.animation),A}}(b),P.fillSetter=f,P.strokeSetter=m,wi(x,"afterGetAllItems",i),wi(x,"afterColorizeItem",a),wi(x,"afterUpdate",r),_c(w,{optionalAxis:"colorAxis",translateColors:p}),_c(w.pointClass.prototype,{setVisible:h}),wi(v,"afterTranslate",c,{order:1}),wi(v,"bindAxes",l))},d.pointSetVisible=h}(si||(si={}));let km=si,{parse:Gr}=Z,{merge:Rm}=q;!function(d){d.initDataClasses=function(e){let c,l,f,n=this.chart,i=this.legendItem=this.legendItem||{},a=this.options,r=e.dataClasses||[],h=n.options.chart.colorCount,p=0;this.dataClasses=l=[],i.labels=[];for(let m=0,_=r.length;m<_;++m)c=Rm(c=r[m]),l.push(c),(n.styledMode||!c.color)&&("category"===a.dataClassColor?(n.styledMode||(h=(f=n.options.colors||[]).length,c.color=f[p]),c.colorIndex=p,++p===h&&(p=0)):c.color=Gr(a.minColor).tweenTo(Gr(a.maxColor),_<2?.5:m/(_-1)))},d.initStops=function(){let e=this.options,n=this.stops=e.stops||[[0,e.minColor||""],[1,e.maxColor||""]];for(let i=0,a=n.length;i<a;++i)n[i].color=Gr(n[i][1])},d.normalizedValue=function(e){let n=this.max||0,i=this.min||0;return this.logarithmic&&(e=this.logarithmic.log2lin(e)),1-(n-e)/(n-i||1)},d.toColor=function(e,n){let i,a,r,c,l,h,p=this.dataClasses,f=this.stops;if(p){for(h=p.length;h--;)if(a=(l=p[h]).from,r=l.to,(void 0===a||e>=a)&&(void 0===r||e<=r)){c=l.color,n&&(n.dataClass=h,n.colorIndex=l.colorIndex);break}}else{for(i=this.normalizedValue(e),h=f.length;h--&&!(i>f[h][0]););a=f[h]||f[h+1],i=1-((r=f[h+1]||a)[0]-i)/(r[0]-a[0]||1),c=a.color.tweenTo(r.color,i)}return c}}(li||(li={}));let Am=li,{defaultOptions:jr}=ot,{series:bc}=Tt,{defined:ma,extend:Cc,fireEvent:Sm,isArray:Dm,isNumber:Em,merge:xc,pick:Gn,relativeLength:yc}=q;jr.colorAxis=xc(jr.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0});class Qe extends Ui{static compose(e,n,i,a){km.compose(Qe,e,n,i,a)}constructor(e,n){super(e,n),this.coll="colorAxis",this.visible=!0,this.init(e,n)}init(e,n){let a=n.layout?"vertical"!==n.layout:"vertical"!==(e.options.legend||{}).layout;this.side=n.side||a?2:1,this.reversed=n.reversed||!a,this.opposite=!a,super.init(e,n,"colorAxis"),this.userOptions=n,Dm(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=n),n.dataClasses&&this.initDataClasses(n),this.initStops(),this.horiz=a,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(e){let n=xc(jr.colorAxis,e,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&!1!==e.visible});super.setOptions(n),this.options.crosshair=this.options.marker}setAxisSize(){let e=this.chart,n=this.legendItem?.symbol,{width:i,height:a}=this.getSize();n&&(this.left=+n.attr("x"),this.top=+n.attr("y"),this.width=i=+n.attr("width"),this.height=a=+n.attr("height"),this.right=e.chartWidth-this.left-i,this.bottom=e.chartHeight-this.top-a,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?i:a)||Qe.defaultLegendLength}getOffset(){let e=this.legendItem?.group,n=this.chart.axisOffset[this.side];if(e){this.axisParent=e,super.getOffset();let i=this.chart.legend;i.allItems.forEach(function(a){a instanceof Qe&&a.drawLegendSymbol(i,a)}),i.render(),this.chart.getMargins(!0),this.chart.series.some(a=>a.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=n}}setLegendColor(){let n=this.reversed,i=+!!n,a=+!n,r=this.horiz?[i,0,a,0]:[0,a,0,i];this.legendColor={linearGradient:{x1:r[0],y1:r[1],x2:r[2],y2:r[3]},stops:this.stops}}drawLegendSymbol(e,n){let i=n.legendItem||{},a=e.padding,r=e.options,c=this.options.labels,l=Gn(r.itemDistance,10),h=this.horiz,{width:p,height:f}=this.getSize(),m=Gn(r.labelPadding,h?16:30);
1this.setLegendColor(),i.symbol||(i.symbol=this.chart.renderer.symbol("roundedRect").attr({r:r.symbolRadius??3,zIndex:1}).add(i.group)),i.symbol.attr({x:0,y:(e.baseline||0)-11,width:p,height:f}),i.labelWidth=p+a+(h?l:Gn(c.x,c.distance)+(this.maxLabelLength||0)),i.labelHeight=f+a+(h?m:0)}setState(e){this.series.forEach(function(n){n.setState(e)})}setVisible(){}getSeriesExtremes(){let n,i,a,r,e=this.series,c=e.length;for(this.dataMin=1/0,this.dataMax=-1/0;c--;){for(let l of(i=(r=e[c]).colorKey=Gn(r.options.colorKey,r.colorKey,r.pointValKey,r.zoneAxis,"y"),a=r[i+"Min"]&&r[i+"Max"],[i,"value","y"]))if((n=r.getColumn(l)).length)break;if(a)r.minColorValue=r[i+"Min"],r.maxColorValue=r[i+"Max"];else{let l=bc.prototype.getExtremes.call(r,n);r.minColorValue=l.dataMin,r.maxColorValue=l.dataMax}ma(r.minColorValue)&&ma(r.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,r.minColorValue),this.dataMax=Math.max(this.dataMax,r.maxColorValue)),a||bc.prototype.applyExtremes.call(r)}}drawCrosshair(e,n){let i,a=this.legendItem||{},r=n?.plotX,c=n?.plotY,l=this.pos,h=this.len;n&&((i=this.toPixels(n.getNestedProperty(n.series.colorKey)))<l?i=l-2:i>l+h&&(i=l+h+2),n.plotX=i,n.plotY=this.len-i,super.drawCrosshair(e,n),n.plotX=r,n.plotY=c,this.cross&&!this.cross.addedToColorAxis&&a.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(a.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(e){let n=this.left,i=e.translatedValue,a=this.top;return Em(i)?this.horiz?[["M",i-4,a-6],["L",i+4,a-6],["L",i,a],["Z"]]:[["M",n,i],["L",n-6,i+6],["L",n-6,i-6],["Z"]]:super.getPlotLinePath(e)}update(e,n){let i=this.chart.legend;this.series.forEach(a=>{a.isDirtyData=!0}),(e.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),super.update(e,n),this.legendItem?.label&&(this.setLegendColor(),i.colorizeItem(this,!0))}destroyItems(){let e=this.chart,n=this.legendItem||{};if(n.label)e.legend.destroyItem(this);else if(n.labels)for(let i of n.labels)e.legend.destroyItem(i);e.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(e){this.destroyItems(),super.remove(e)}getDataClassLegendSymbols(){let e,n=this,i=n.chart,a=n.legendItem&&n.legendItem.labels||[],r=i.options.legend,c=Gn(r.valueDecimals,-1),l=Gn(r.valueSuffix,""),h=p=>n.series.reduce((f,m)=>(f.push(...m.points.filter(_=>_.dataClass===p)),f),[]);return a.length||n.dataClasses.forEach((p,f)=>{let m=p.from,_=p.to,{numberFormatter:b}=i,C=!0;e="",void 0===m?e="< ":void 0===_&&(e="> "),void 0!==m&&(e+=b(m,c)+l),void 0!==m&&void 0!==_&&(e+=" - "),void 0!==_&&(e+=b(_,c)+l),a.push(Cc({chart:i,name:e,options:{},drawLegendSymbol:ar.rectangle,visible:!0,isDataClass:!0,setState:x=>{for(let v of h(f))v.setState(x)},setVisible:function(){this.visible=C=n.visible=!C;let x=[];for(let v of h(f))v.setVisible(C),v.hiddenInDataClass=!C,-1===x.indexOf(v.series)&&x.push(v.series);i.legend.colorizeItem(this,C),x.forEach(v=>{Sm(v,"afterDataClassLegendClick")})}},p))}),a}getSize(){let{chart:e,horiz:n}=this,{height:i,width:a}=this.options,{legend:r}=e.options;return{width:Gn(ma(a)?yc(a,e.chartWidth):void 0,r?.symbolWidth,n?Qe.defaultLegendLength:12),height:Gn(ma(i)?yc(i,e.chartHeight):void 0,r?.symbolHeight,n?12:Qe.defaultLegendLength)}}}Qe.defaultLegendLength=200,Qe.keepProps=["legendItem"],Cc(Qe.prototype,Am),Array.prototype.push.apply(Ui.keepProps,Qe.keepProps),t.ColorAxis=t.ColorAxis||Qe,t.ColorAxis.compose(t.Chart,t.Fx,t.Legend,t.Series);let Fm={lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}},{defined:$m,extend:Mc,pick:Lm,wrap:vc}=q;!function(d){let e,n=0;function i(l){let h=this.chart;l=this.normalize(l),h.options.mapNavigation.enableDoubleClickZoomTo?h.pointer.inClass(l.target,"highcharts-tracker")&&h.hoverPoint&&h.hoverPoint.zoomTo():h.isInsidePlot(l.chartX-h.plotLeft,l.chartY-h.plotTop)&&h.mapZoom(.5,void 0,void 0,l.chartX,l.chartY)}function a(l){let h=this.chart,p=$m((l=this.normalize(l)).wheelDelta)&&-l.wheelDelta/120||l.deltaY||l.detail;Math.abs(p)>=1&&(n+=Math.abs(p),e&&clearTimeout(e),e=setTimeout(()=>{n=0},50)),n<10&&h.isInsidePlot(l.chartX-h.plotLeft,l.chartY-h.plotTop)&&h.mapView&&h.mapView.zoomBy(-(h.options.mapNavigation.mouseWheelSensitivity-1)*p,void 0,[l.chartX,l.chartY],!(1>Math.abs(p))&&void 0)}function r(l,h,p){let f=this.chart;if(h=l.call(this,h,p),f&&f.mapView){let m=f.mapView.pixelsToLonLat({x:h.chartX-f.plotLeft,y:h.chartY-f.plotTop});m&&Mc(h,m)}return h}function c(l){let h=this.chart.options.mapNavigation;h&&Lm(h.enableTouchZoom,h.enabled)&&(this.chart.zooming.pinchType="xy"),l.apply(this,[].slice.call(arguments,1
1))}d.compose=function(l){let h=l.prototype;h.onContainerDblClick||(Mc(h,{onContainerDblClick:i,onContainerMouseWheel:a}),vc(h,"normalize",r),vc(h,"zoomOption",c))}}(Bn||(Bn={}));let Gm=Bn;function jm(d,e,n,i,a){if(a){let r=a?.r||0;a.brBoxY=e-r,a.brBoxHeight=i+r}return dn.roundedRect(d,e,n,i,a)}function Nm(d,e,n,i,a){return a&&(a.brBoxHeight=i+(a?.r||0)),dn.roundedRect(d,e,n,i,a)}let{setOptions:Ym}=ot,{composed:Bm}=t,{addEvent:Oi,extend:Pc,merge:Nr,objectEach:Xm,pick:zr,pushUnique:Vm}=q;function Yr(d){d&&(d.preventDefault?.(),d.stopPropagation?.(),d.cancelBubble=!0)}class ga{static compose(e,n,i){Gm.compose(n),function(d){(dn=d.prototype.symbols).bottombutton=jm,dn.topbutton=Nm}(i),Vm(Bm,"Map.Navigation")&&(Oi(e,"beforeRender",function(){this.mapNavigation=new ga(this),this.mapNavigation.update()}),Ym(Fm))}constructor(e){this.chart=e,this.navButtons=[]}update(e){let n=this,i=n.chart,a=n.navButtons,r=function(l){this.handler.call(i,l),Yr(l)},c=i.options.mapNavigation;for(e&&(c=i.options.mapNavigation=Nr(i.options.mapNavigation,e));a.length;)a.pop()?.destroy();if(!i.renderer.forExport&&zr(c.enableButtons,c.enabled)){n.navButtonsGroup||(n.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),Xm(c.buttons,(h,p)=>{let f={padding:(h=Nr(c.buttonOptions,h)).padding};!i.styledMode&&h.theme&&(Pc(f,h.theme),f.style=Nr(h.theme.style,h.style));let{text:m,width:_=0,height:b=0,padding:C=0}=h,x=i.renderer.button("+"!==m&&"-"!==m&&m||"",0,0,r,f,void 0,void 0,void 0,"zoomIn"===p?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[p]).attr({width:_,height:b,title:i.options.lang[p],zIndex:5}).add(n.navButtonsGroup);if("+"===m||"-"===m){let v=_+1,y=[["M",C+3,C+b/2],["L",C+v-3,C+b/2]];"+"===m&&y.push(["M",C+v/2,C+3],["L",C+v/2,C+b-3]),i.renderer.path(y).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:h.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(x)}if(x.handler=h.onclick,Oi(x.element,"dblclick",Yr),a.push(x),Pc(h,{width:x.width,height:2*(x.height||0)}),i.hasLoaded)x.align(h,!1,h.alignTo);else{let v=Oi(i,"load",()=>{x.element&&x.align(h,!1,h.alignTo),v()})}});let l=(h,p)=>!(p.x>=h.x+h.width||p.x+p.width<=h.x||p.y>=h.y+h.height||p.y+p.height<=h.y);i.hasLoaded||Oi(i,"render",function(){let h=i.exportingGroup?.getBBox();if(h){let p=n.navButtonsGroup.getBBox();l(h,p)&&n.navButtonsGroup.attr({translateY:"bottom"===(c.buttonOptions&&c.buttonOptions.verticalAlign)?-p.y-p.height+h.y-5:h.y+h.height-p.y+5})}})}this.updateEvents(c)}updateEvents(e){let n=this.chart;zr(e.enableDoubleClickZoom,e.enabled)||e.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||Oi(n.container,"dblclick",function(i){n.pointer.onContainerDblClick(i)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),zr(e.enableMouseWheelZoom,e.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||Oi(n.container,"wheel",function(i){if(!n.pointer.inClass(i.target,"highcharts-no-mousewheel")){let a=n.mapView?.zoom;n.pointer.onContainerMouseWheel(i),a!==n.mapView?.zoom&&Yr(i)}return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}let{column:{prototype:Wm}}=Tt.seriesTypes,{addEvent:Um,defined:Hm}=q;!function(d){function e(n){let i=this.series,a=i.chart.renderer;this.moveToTopOnHover&&this.graphic&&(i.stateMarkerGraphic||(i.stateMarkerGraphic=new Ue(a,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),"hover"===n?.state?(this.graphic.attr({id:this.id}),i.stateMarkerGraphic.attr({href:`${a.url}#${this.id}`,visibility:"visible"})):i.stateMarkerGraphic.attr({href:""}))}d.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},d.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(n){let i={};return Hm(n.color)&&(!n.state||"normal"===n.state)&&(i[this.colorProp||"fill"]=n.color),i},pointAttribs:Wm.pointAttribs},d.compose=function(n){return Um(n.prototype.pointClass,"afterSetState",e),n}}(un||(un={}));let ye=un,{getOptions:Br}=ot,{isNumber:ao,merge:Jm,pick:wc}=q;
vendor: 28,889 bytes, line 1
1class Xr extends Cr{init(e,n){let i=Br().credits,a=Jm({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:wc(i.mapText,' \xa9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:wc(i.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);super.init(a,n)}mapZoom(e,n,i,a,r){this.mapView&&(ao(e)&&(e=Math.log(e)/Math.log(.5)),this.mapView.zoomBy(e,ao(n)&&ao(i)?this.mapView.projection.inverse([n,i]):void 0,ao(a)&&ao(r)?[a,r]:void 0))}update(e){e.chart&&"map"in e.chart&&this.mapView?.recommendMapView(this,[e.chart.map,...(this.options.series||[]).map(n=>n.mapData)],!0),super.update.apply(this,arguments)}}!function(d){d.maps={},d.mapChart=function(e,n,i){return new d(e,n,i)},d.splitPath=function(e){let n;return n="string"==typeof e?(e=e.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(i=>/[A-Z]/i.test(i)?i:parseFloat(i)):e,Qn.prototype.pathToSegments(n)}}(Xr||(Xr={}));let fa=Xr,Oc={boundsFromPath:function(d){let r,e=-Number.MAX_VALUE,n=Number.MAX_VALUE,i=-Number.MAX_VALUE,a=Number.MAX_VALUE;if(d.forEach(c=>{let l=c[c.length-2],h=c[c.length-1];"number"==typeof l&&"number"==typeof h&&(n=Math.min(n,l),e=Math.max(e,l),a=Math.min(a,h),i=Math.max(i,h),r=!0)}),r)return{x1:n,y1:a,x2:e,y2:i}}},{boundsFromPath:qm}=Oc,Qm=Tt.seriesTypes.scatter.prototype.pointClass,{extend:Ic,isNumber:oi,pick:Tc}=q;class Ii extends Qm{static getProjectedPath(e,n){return e.projectedPath||(n&&e.geometry?(n.hasCoordinates=!0,e.projectedPath=n.path(e.geometry)):e.projectedPath=e.path),e.projectedPath||[]}applyOptions(e,n){let i=this.series,a=super.applyOptions(e,n);if(i.mapData&&i.mapMap){let l=super.getNestedProperty(i.joinBy[1]),h=void 0!==l&&i.mapMap[l];h?Ic(a,{...h,name:a.name??h.name}):-1!==i.pointArrayMap.indexOf("value")&&(a.value=a.value||null)}return a}getProjectedBounds(e){let n=qm(Ii.getProjectedPath(this,e)),i=this.properties,a=this.series.chart.mapView;if(n){let r=i?.["hc-middle-lon"],c=i?.["hc-middle-lat"];if(a&&oi(r)&&oi(c)){let l=e.forward([r,c]);n.midX=l[0],n.midY=l[1]}else{let l=i?.["hc-middle-x"],h=i?.["hc-middle-y"];n.midX=n.x1+(n.x2-n.x1)*Tc(this.middleX,oi(l)?l:.5);let p=Tc(this.middleY,oi(h)?h:.5);this.geometry||(p=1-p),n.midY=n.y2-(n.y2-n.y1)*p}return n}}onMouseOver(e){q.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,e):this.series.onMouseOut()}setVisible(e){this.visible=this.options.visible=!!e,this.dataLabel&&this.dataLabel[e?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(e){let n=this.series.chart,i=n.mapView,a=this.bounds;if(i&&a){let r=oi(this.insetIndex)&&i.insets[this.insetIndex];if(r){let c=r.projectedUnitsToPixels({x:a.x1,y:a.y1}),l=r.projectedUnitsToPixels({x:a.x2,y:a.y2}),h=i.pixelsToProjectedUnits({x:c.x,y:c.y}),p=i.pixelsToProjectedUnits({x:l.x,y:l.y});a={x1:h.x,y1:h.y,x2:p.x,y2:p.y}}i.fitToBounds(a,void 0,!1),this.series.isDirty=!0,n.redraw(e)}}}Ic(Ii.prototype,{dataLabelOnNull:ye.pointMembers.dataLabelOnNull,moveToTopOnHover:ye.pointMembers.moveToTopOnHover,isValid:ye.pointMembers.isValid});let{isNumber:Zm}=q,Km={center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}},{win:kc}=t,{format:Rc}=Oe,{error:Ac,extend:tg,merge:eg,wrap:ng}=q;!function(d){function e(l){return this.mapView&&this.mapView.lonLatToProjectedUnits(l)}function n(l){return this.mapView&&this.mapView.projectedUnitsToLonLat(l)}function i(l,h){let p=this.options.chart.proj4||kc.proj4;if(!p)return void Ac(21,!1,this);let{jsonmarginX:f=0,jsonmarginY:m=0,jsonres:_=1,scale:b=1,xoffset:C=0,xpan:x=0,yoffset:v=0,ypan:y=0}=h,P=p(h.crs,[l.lon,l.lat]),w=h.cosAngle||h.rotation&&Math.cos(h.rotation),I=h.sinAngle||h.rotation&&Math.sin(h.rotation),R=h.rotation?[P[0]*w+P[1]*I,-P[0]*I+P[1]*w]:P;return{x:((R[0]-C)*b+x)*_+f,y:-(((v-R[1])*b+y)*_-m)}}function a(l,h){let p=this.options.chart.proj4||kc.proj4;if(!p)return void Ac(21,!1,this);if(null===l.y)return;let{jsonmarginX:f=0,jsonmarginY:m=0,jsonres:_=1,scale:b=1,xoffset:C=0,xpan:x=0,yoffset:v=0,ypan:y=0}=h,P={x:((l.x-f)/_-x)/b+C,y:((l.y-m)/_+y)/b+v},w=h.cosAngle||h.rotation&&Math.cos(h.rotation),I=h.sinAngle||h.rotation&&Math.sin(h.rotation),R=p(h.crs,"WGS84",h.rotation?{x:P.x*w+-P.y*I,y:P.x*I+P.y*w}:P);return{lat:R.y,lon:R.x}}function r(l,h){h||(h=Object.keys(l.objects)[0]);let p=l.objects[h];if(p["hc-decoded-geojson"]&&p["hc-decoded-geojson"].title===l.title)return p["hc-decoded-geojson"];let f=l.arcs;if(l.transform){let x,v,y,P=l.arcs,{scale:w,translate:I}=l.transform;f=[];for(let R=0,T=P.length;R<T;++R){let k=P[R];f.push(x=[]),v=0,y=0;for(let A=0,F=k.length;A<F;++A)x.push([(v+=k[A][0])*w[0]+I[0],(y+=k[A][1])*w[1]+I[1]])}}let m=x=>"number"==typeof x[0]?x.reduce((v,y,P)=>{let w=y<0?f[~y]:f[y];return y<0?(w=w.slice(0,0===P?w.length:w.length-1)).reverse():P&&(w=w.slice(1)),v.concat(w)},[]):x.map(m),_=p.geometries,b=[];for(let x=0,v=_.length;x<v;++x)b.push({type:"Feature",properties:_[x].properties,geometry:{type:_[x].type,coordinates:_[x].coordinates||m(_[x].arcs)}});let C={type:"FeatureCollection",copyright:l.copyright,copyrightShort:l.copyrightShort,copyrightUrl:l.copyrightUrl,features:b,"hc-recommended-mapview":p["hc-recommended-mapview"],bbox:l.bbox,title:l.title};return p["hc-decoded-geojson"]=C,C}function c(l,h){h=eg(!0,this.options.credits,h),l.call(this,h),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}d.compose=function(l){let h=l.prototype;h.transformFromLatLon||(h.fromLatLonToPoint=e,h.fromPointToLatLon=n,h.transformFromLatLon=i,h.transformToLatLon=a,ng(h,"addCredits",c))},d.geojson=function(l,h="map",p){let f=[],m="Topology"===l.type?r(l):l,_=m.features;for(let b=0,C=_.length;b<C;++b){let x,v=_[b],y=v.geometry||{},P=y.type,w=y.coordinates,I=v.properties;if(("map"!==h&&"mapbubble"!==h||"Polygon"!==P&&"MultiPolygon"!==P)&&("mapline"!==h||"LineString"!==P&&"MultiLineString"!==P)?"mappoint"===h&&"Point"===P&&w.length&&(x={geometry:{coordinates:w,type:P}}):w.length&&(x={geometry:{coordinates:w,type:P}}),x){let R=I&&(I.name||I.NAME),T=I&&I.lon,k=I&&I.lat;f.push(tg(x,{lat:"number"==typeof k?k:void 0,lon:"number"==typeof T?T:void 0,name:"string"==typeof R?R:void 0,properties:I}))}}return p&&m.copyrightShort&&(p.chart.mapCredits=Rc(p.chart.options.credits?.mapText,{geojson:m}),p.chart.mapCreditsFull=Rc(p.chart.options.credits?.mapTextFull,{geojson:m})),f},d.topo2geo=r}(B||(B={}));let _a=B;function Sc(d,e,n=!0){let a,r,c,i=e[e.length-1],l=d;for(let h=0;h<e.length;h++){let p=l;a=e[h],l=[],r=n?p[p.length-1]:p[0];for(let f=0;f<p.length;f++)Vr(i,a,c=p[f])?(Vr(i,a,r)||l.push(Dc(i,a,r,c)),l.push(c)):Vr(i,a,r)&&l.push(Dc(i,a,r,c)),r=c;i=a}return l}function Vr(d,e,n){return(e[0]-d[0])*(n[1]-d[1])>(e[1]-d[1])*(n[0]-d[0])}function Dc(d,e,n,i){let a=[d[0]-e[0],d[1]-e[1]],r=[n[0]-i[0],n[1]-i[1]],c=d[0]*e[1]-d[1]*e[0],l=n[0]*i[1]-n[1]*i[0],h=1/(a[0]*r[1]-a[1]*r[0]),p=[(c*r[0]-l*a[0])*h,(c*r[1]-l*a[1])*h];return p.isIntersection=!0,p}let ro=Math.sign||(d=>0===d?0:d>0?1:-1),so=Math.PI/180,Ti=Math.PI/2,lo=d=>Math.tan((Ti+d)/2),Ec=class{constructor(d){let e=(d.parallels||[]).map(c=>c*so),n=e[0]||0,i=e[1]??n,a=Math.cos(n);"object"==typeof d.projectedBounds&&(this.projectedBounds=d.projectedBounds);let r=n===i?Math.sin(n):Math.log(a/Math.cos(i))/Math.log(lo(i)/lo(n));1e-10>Math.abs(r)&&(r=1e-10*(ro(r)||1)),this.n=r,this.c=a*Math.pow(lo(n),r)/r}forward(d){let{c:e,n,projectedBounds:i}=this,a=d[0]*so,r=d[1]*so;e>0?r<1e-6-Ti&&(r=1e-6-Ti):r>Ti-1e-6&&(r=Ti-1e-6);let c=e/Math.pow(lo(r),n),l=c*Math.sin(n*a)*63.78137,h=63.78137*(e-c*Math.cos(n*a)),p=[l,h];return i&&(l<i.x1||l>i.x2||h<i.y1||h>i.y2)&&(p.outside=!0),p}inverse(d){let{c:e,n}=this,i=d[0]/63.78137,a=e-d[1]/63.78137,r=ro(n)*Math.sqrt(i*i+a*a),c=Math.atan2(i,Math.abs(a))*ro(a);return a*n<0&&(c-=Math.PI*ro(i)*ro(a)),[c/n/so,(2*Math.atan(Math.pow(e/r,1/n))-Ti)/so]}},ba=Math.sqrt(3)/2,ig=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(d){let e=Math.PI/180,n=Math.asin(ba*Math.sin(d[1]*e)),i=n*n,a=i*i*i;return[d[0]*e*Math.cos(n)*74.03120656864502/(ba*(1.340264+-.24331799999999998*i+a*(.0062510000000000005+.034164*i))),74.03120656864502*n*(1.340264+-.081106*i+a*(893e-6+.003796*i))]}inverse(d){let r,c,l,h,e=d[0]/74.03120656864502,n=d[1]/74.03120656864502,i=180/Math.PI,a=n;for(let m=0;m<12&&(c=(r=a*a)*r*r,l=a*(1.340264+-.081106*r+c*(893e-6+.003796*r))-n,a-=h=l/(1.340264+-.24331799999999998*r+c*(.0062510000000000005+.034164*r)),!(1e-9>Math.abs(h)));++m);c=(r=a*a)*r*r;let p=i*ba*e*(1.340264+-.24331799999999998*r+c*(.0062510000000000005+.034164*r))/Math.cos(a),f=i*Math.asin(Math.sin(a)/ba);return Math.abs(p)>180?[NaN,NaN]:[p,f]}},Fc=Math.PI/4,Ca=Math.PI/180,og=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(d){return[d[0]*Ca*63.78137,79.7267125*Math.log(Math.tan(Fc+.4*d[1]*Ca))]}inverse(d){return[d[0]/63.78137/Ca,2.5*(Math.atan(Math.exp(d[1]/63.78137*.8))-Fc)/Ca]}},xa=Math.PI/180,ag=class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(d){let e=d[0],n=d[1]*xa,i=[Math.cos(n)*Math.sin(e*xa)*63.78460826781007,63.78460826781007*Math.sin(n)];return(e<-90||e>90)&&(i.outside=!0),i}inverse(d){let e=d[0]/63.78460826781007,n=d[1]/63.78460826781007,i=Math.sqrt(e*e+n*n),a=Math.asin(i),r=Math.sin(a);return[Math.atan2(e*r,i*Math.cos(a))/xa,Math.asin(i&&n*r/i)/xa]}},ya=Math.PI/180,rg=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(d){let e=Math.sin(d[1]*ya),n=[63.78137*d[0]*ya,63.78137*Math.log((1+e)/(1-e))/2];return Math.abs(d[1])>this.maxLatitude&&(n.outside=!0),n}inverse(d){return[d[0]/(63.78137*ya),(2*Math.atan(Math.exp(d[1]/63.78137))-Math.PI/2)/ya]}},{clipLineString:sg,clipPolygon:lg}={clipLineString:function(d,e){let n=[],i=Sc(d,e,!1);for(let a=1;a<i.length;a++)i[a].isIntersection&&i[a-1].isIntersection&&(n.push(i.splice(0,a)),a=0),a===i.length-1&&n.push(i);return n},clipPolygon:Sc},{clamp:cg,erase:hg}=q,se=2*Math.PI/360,ki=d=>(d<-180&&(d+=360),d>180&&(d-=360),d),$c=d=>(1-Math.cos(d))/2,co=(()=>{class d{static add(n,i){d.registry[n]=i}static distance(n,i){let{atan2:a,sqrt:r}=Math,c=((d,e)=>{let n=Math.cos,i=d[1]*se,a=d[0]*se,r=e[1]*se,c=e[0]*se;return $c(r-i)+n(i)*n(r)*$c(c-a)})(n,i);return 2*a(r(c),r(1-c))*6371e3}static geodesic(n,i,a,r=5e5){let{atan2:c,cos:l,sin:h,sqrt:p}=Math,f=d.distance,m=n[1]*se,_=n[0]*se,b=i[1]*se,C=i[0]*se,x=l(m)*l(_),v=l(b)*l(C),y=l(m)*h(_),P=l(b)*h(C),w=h(m),I=h(b),R=f(n,i),T=R/6371e3,k=h(T),A=Math.round(R/r),F=[];if(a&&F.push(n),A>1){let G=1/A;for(let j=G;j<.999;j+=G){let U=h((1-j)*T)/k,K=h(j*T)/k,it=U*x+K*v,rt=U*y+K*P,et=c(U*w+K*I,p(it*it+rt*rt)),ct=c(rt,it);F.push([ct/se,et/se])}}return a&&F.push(i),F}static insertGeodesics(n){let i=n.length-1;for(;i--;)if(Math.max(Math.abs(n[i][0]-n[i+1][0]),Math.abs(n[i][1]-n[i+1][1]))>10){let a=d.geodesic(n[i],n[i+1]);a.length&&n.splice(i+1,0,...a)}}static toString(n){let{name:i,rotation:a}=n||{};return[i,a&&a.join(",")].join(";")}constructor(n={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=n;let{name:i,projectedBounds:a,rotation:r}=n;this.rotator=r?this.getRotator(r):void 0;let c=i?d.registry[i]:void 0;c&&(this.def=new c(n));let{def:l,rotator:h}=this;l&&(this.maxLatitude=l.maxLatitude||90,this.hasGeoProjection=!0),h&&l?(this.forward=p=>l.forward(h.forward(p)),this.inverse=p=>h.inverse(l.inverse(p))):l?(this.forward=p=>l.forward(p),this.inverse=p=>l.inverse(p)):h&&(this.forward=h.forward,this.inverse=h.inverse),this.bounds="world"===a?l&&l.bounds:a}lineIntersectsBounds(n){let h,{x1:i,x2:a,y1:r,y2:c}=this.bounds||{},l=(f,m,_)=>{let[b,C]=f,x=+!m;if("number"==typeof _&&b[m]>=_!=C[m]>=_){let y=b[x]+(_-b[m])/(C[m]-b[m])*(C[x]-b[x]);return m?[y,_]:[_,y]}},p=n[0];return((h=l(n,0,i))||(h=l(n,0,a)))&&(p=h,n[1]=h),((h=l(n,1,r))||(h=l(n,1,c)))&&(p=h),p}getRotator(n){let i=n[0]*se,a=(n[1]||0)*se,r=(n[2]||0)*se,c=Math.cos(a),l=Math.sin(a),h=Math.cos(r),p=Math.sin(r);if(0!==i||0!==a||0!==r)return{forward:f=>{let m=f[0]*se+i,_=f[1]*se,b=Math.cos(_),C=Math.cos(m)*b,x=Math.sin(m)*b,v=Math.sin(_),y=v*c+C*l;return[Math.atan2(x*h-y*p,C*c-v*l)/se,Math.asin(y*h+x*p)/se]},inverse:f=>{let m=f[0]*se,_=f[1]*se,b=Math.cos(_),C=Math.cos(m)*b,x=Math.sin(m)*b,v=Math.sin(_),y=v*h-x*p;return[(Math.atan2(x*h+v*p,C*c+y*l)-i)/se,Math.asin(y*c-C*l)/se]}}}forward(n){return n}inverse(n){return n}cutOnAntimeridian(n,i){let a,r=[],c=[n];for(let l=0,h=n.length;l<h;++l){let p=n[l],f=n[l-1];if(!l){if(!i)continue;f=n[n.length-1]}let m=f[0],_=p[0];if((m<-90||m>90)&&(_<-90||_>90)&&m>0!=_>0){let b=cg((180-(m+360)%360)/((_+360)%360-(m+360)%360),0,1);r.push({i:l,lat:f[1]+b*(p[1]-f[1]),direction:m<0?1:-1,previousLonLat:f,lonLat:p})}}if(r.length)if(i){r.length%2==1&&(a=r.slice().sort((h,p)=>Math.abs(p.lat)-Math.abs(h.lat))[0],hg(r,a));let l=r.length-2;for(;l>=0;){let h=r[l].i,p=ki(180+1e-6*r[l].direction),f=ki(180-1e-6*r[l].direction),m=n.splice(h,r[l+1].i-h,...d.geodesic([p,r[l].lat],[p,r[l+1].lat],!0));m.push(...d.geodesic([f,r[l+1].lat],[f,r[l].lat],!0)),c.push(m),l-=2}if(a)for(let h=0;h<c.length;h++){let{direction:p,lat:f}=a,m=c[h],_=m.indexOf(a.lonLat);if(_>-1){let b=(f<0?-1:1)*this.maxLatitude,C=ki(180+1e-6*p),x=ki(180-1e-6*p),v=d.geodesic([C,f],[C,b],!0);for(let y=C+120*p;y>-180&&y<180;y+=120*p)v.push([y,b]);v.push(...d.geodesic([x,b],[x,a.lat],!0)),m.splice(_,0,...v);break}}}else{let l=r.length;for(;l--;){let p=n.splice(r[l].i,n.length,[ki(180+1e-6*r[l].direction),r[l].lat]);p.unshift([ki(180-1e-6*r[l].direction),r[l].lat]),c.push(p)}}return c}path(n){let i,{bounds:a,def:r,rotator:c}=this,l=[],h="Polygon"===n.type||"MultiPolygon"===n.type,p=this.hasGeoProjection,f=!r||!1!==r.antimeridianCutting,m=f?c:void 0,_=f&&r||this;a&&(i=[[a.x1,a.y1],[a.x2,a.y1],[a.x2,a.y2],[a.x1,a.y2]]);let b=C=>{let x=C.map(y=>{if(f){m&&(y=m.forward(y));let P=y[0];1e-6>Math.abs(P-180)&&(P=P<180?179.999999:180.000001),y=[P,y[1]]}return y}),v=[x];p&&(d.insertGeodesics(x),f&&(v=this.cutOnAntimeridian(x,h))),v.forEach(y=>{let P,w;if(y.length<2)return;let I=!1,R=!1,T=G=>{I?l.push(["L",G[0],G[1]]):(l.push(["M",G[0],G[1]]),I=!0)},k=!1,A=!1,F=y.map(G=>{let j=_.forward(G);return j.outside?k=!0:A=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(f){if(h&&F.push(F[0]),k){if(!A)return;if(i)if(h)F=lg(F,i);else if(a)return void sg(F,i).forEach(G=>{I=!1,G.forEach(T)})}F.forEach(T)}else for(let G=0;G<F.length;G++){let j=y[G],U=F[G];U.outside?R=!0:(h&&!P&&(P=j,y.push(j),F.push(U)),R&&w&&(h&&p?d.geodesic(w,j).forEach(K=>T(_.forward(K))):I=!1),T(U),w=j,R=!1)}})};return"LineString"===n.type?b(n.coordinates):"MultiLineString"===n.type?n.coordinates.forEach(C=>b(C)):"Polygon"===n.type?(n.coordinates.forEach(C=>b(C)),l.length&&l.push(["Z"])):"MultiPolygon"===n.type&&(n.coordinates.forEach(C=>{C.forEach(x=>b(x))}),l.length&&l.push(["Z"])),l}}return d.registry={EqualEarth:ig,LambertConformalConic:Ec,Miller:og,Orthographic:ag,WebMercator:rg},d})(),{composed:pg}=t,{pointInPolygon:ho}=rc,{topo2geo:Lc}=_a,{boundsFromPath:Gc}=Oc,{addEvent:ai,clamp:ug,crisp:jc,fireEvent:Nc,isArray:mg,isNumber:sn,isObject:gg,isString:fg,merge:xn,pick:_g,pushUnique:bg,relativeLength:jn}=q,po={};function zc(d,e){let{width:n,height:i}=e;return Math.log(400.979322/Math.max((d.x2-d.x1)/(n/256),(d.y2-d.y1)/(i/256)))/Math.log(2)}function Yc(d){d.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,d.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class ln{static compose(e){bg(pg,"MapView")&&(po=e.maps,ai(e,"afterInit",function(){this.mapView=new ln(this,this.options.mapView)},{order:0}),ai(e,"addSeriesAsDrilldown",Yc),ai(e,"afterDrillUp",Yc))}static compositeBounds(e){if(e.length)return e.slice(1).reduce((n,i)=>(n.x1=Math.min(n.x1,i.x1),n.y1=Math.min(n.y1,i.y1),n.x2=Math.max(n.x2,i.x2),n.y2=Math.max(n.y2,i.y2),n),xn(e[0]))}static mergeInsets(e,n){let i=r=>{let c={};return r.forEach((l,h)=>{c[l&&l.id||`i${h}`]=l}),c},a=xn(i(e),i(n));return Object.keys(a).map(r=>a[r])}constructor(e,n){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof Bc||this.recommendMapView(e,[e.options.chart.map,...(e.options.series||[]).map(c=>c.mapData)]),this.userOptions=n||{};let i=xn(Km,this.recommendedMapView,n),a=this.recommendedMapView?.insets,r=n&&n.insets;a&&r&&(i.insets=ln.mergeInsets(a,r)),this.chart=e,this.center=i.center,this.options=i,this.projection=new co(i.projection),this.playingField=e.plotBox,this.zoom=i.zoom||0,this.minZoom=i.minZoom,this.createInsets(),this.eventsToUnbind.push(ai(e,"afterSetChartSize",()=>{this.playingField=this.getField(),(void 0===this.minZoom||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&sn(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&xn(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let e=this.options,n=e.insets;n&&n.forEach(i=>{let a=new Bc(this,xn(e.insetOptions,i));this.insets.push(a)})}fitToBounds(e,n,i=!0,a){let r=e||this.getProjectedBounds();if(r){let c=_g(n,e?0:this.options.padding),l=this.getField(!1),h=mg(c)?c:[c,c,c,c];this.padding=[jn(h[0],l.height),jn(h[1],l.width),jn(h[2],l.height),jn(h[3],l.width)],this.playingField=this.getField();let p=zc(r,this.playingField);e||(this.minZoom=p);let f=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(f,p,i,a)}}getField(e=!0){let n=e?this.padding:[0,0,0,0];return{x:n[3],y:n[0],width:this.chart.plotWidth-n[1]-n[3],height:this.chart.plotHeight-n[0]-n[2]}}getGeoMap(e){if(fg(e))return po[e]&&"Topology"===po[e].type?Lc(po[e]):po[e];if(gg(e,!0)){if("FeatureCollection"===e.type)return e;if("Topology"===e.type)return Lc(e)}}getMapBBox(){let e=this.getProjectedBounds(),n=this.getScale();if(e){let i=this.padding,a=this.projectedUnitsToPixels({x:e.x1,y:e.y2});return{width:(e.x2-e.x1)*n+i[1]+i[3],height:(e.y2-e.y1)*n+i[0]+i[2],x:a.x-i[3],y:a.y-i[0]}}}getProjectedBounds(){let e=this.projection,n=this.chart.series.reduce((a,r)=>{let c=r.getProjectedBounds&&r.getProjectedBounds();return c&&!1!==r.options.affectsMapView&&a.push(c),a},[]),i=this.options.fitToGeometry;if(i){if(!this.fitToGeometryCache)if("MultiPoint"===i.type){let a=i.coordinates.map(l=>e.forward(l)),r=a.map(l=>l[0]),c=a.map(l=>l[1]);this.fitToGeometryCache={x1:Math.min.apply(0,r),x2:Math.max.apply(0,r),y1:Math.min.apply(0,c),y2:Math.max.apply(0,c)}}else this.fitToGeometryCache=Gc(e.path(i));return this.fitToGeometryCache}return this.projection.bounds||ln.compositeBounds(n)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:e,y:n,width:i,height:a}=this.playingField,r=this.projection.forward(this.center),c=this.projection.hasCoordinates?-1:1,l=this.getScale(),h=l*c;return{scaleX:l,scaleY:h,translateX:e+i/2-r[0]*l,translateY:n+a/2-r[1]*h}}lonLatToPixels(e){let n=this.lonLatToProjectedUnits(e);if(n)return this.projectedUnitsToPixels(n)}lonLatToProjectedUnits(e){let n=this.chart,i=n.mapTransforms;if(i){for(let r in i)if(Object.hasOwnProperty.call(i,r)&&i[r].hitZone){let c=n.transformFromLatLon(e,i[r]);if(c&&ho(c,i[r].hitZone.coordinates[0]))return c}return n.transformFromLatLon(e,i.default)}for(let r of this.insets)if(r.options.geoBounds&&ho({x:e.lon,y:e.lat},r.options.geoBounds.coordinates[0])){let c=r.projection.forward([e.lon,e.lat]),l=r.projectedUnitsToPixels({x:c[0],y:c[1]});return this.pixelsToProjectedUnits(l)}let a=this.projection.forward([e.lon,e.lat]);if(!a.outside)return{x:a[0],y:a[1]}}projectedUnitsToLonLat(e){let n=this.chart,i=n.mapTransforms;if(i){for(let c in i)if(Object.hasOwnProperty.call(i,c)&&i[c].hitZone&&ho(e,i[c].hitZone.coordinates[0]))return n.transformToLatLon(e,i[c]);return n.transformToLatLon(e,i.default)}let a=this.projectedUnitsToPixels(e);for(let c of this.insets)if(c.hitZone&&ho(a,c.hitZone.coordinates[0])){let l=c.pixelsToProjectedUnits(a),h=c.projection.inverse([l.x,l.y]);return{lon:h[0],lat:h[1]}}let r=this.projection.inverse([e.x,e.y]);return{lon:r[0],lat:r[1]}}recommendMapView(e,n,i=!1){this.recommendedMapView={};let a=n.map(l=>this.getGeoMap(l)),r=[];a.forEach(l=>{if(l&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=l["hc-recommended-mapview"]||{}),l.bbox)){let[h,p,f,m]=l.bbox;r.push({x1:h,y1:p,x2:f,y2:m})}});let c=r.length&&ln.compositeBounds(r);Nc(this,"onRecommendMapView",{geoBounds:c,chart:e},function(){if(c&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:l,y1:h,x2:p,y2:f}=c;this.recommendedMapView.projection=p-l>180&&f-h>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[h,f],rotation:[-(l+p)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=a[0],i&&e.hasRendered&&!e.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(e){this.chart.series.forEach(n=>{n.useMapGeometry&&(n.isDirty=!0)}),this.chart.redraw(e)}setView(e,n,i=!0,a){e&&(this.center=e),"number"==typeof n&&("number"==typeof this.minZoom&&(n=Math.max(n,this.minZoom)),"number"==typeof this.options.maxZoom&&(n=Math.min(n,this.options.maxZoom)),sn(n)&&(this.zoom=n));let r=this.getProjectedBounds();if(r){let c=this.projection.forward(this.center),{x:l,y:h,width:p,height:f}=this.playingField,m=this.getScale(),_=this.projectedUnitsToPixels({x:r.x1,y:r.y1}),b=this.projectedUnitsToPixels({x:r.x2,y:r.y2}),C=[(r.x1+r.x2)/2,(r.y1+r.y2)/2];if(!this.chart.series.some(x=>x.isDrilling)){let x=_.x,v=b.y,y=b.x,P=_.y;y-x<p?c[0]=C[0]:x<l&&y<l+p?c[0]+=Math.max(x-l,y-p-l)/m:y>l+p&&x>l&&(c[0]+=Math.min(y-p-l,x-l)/m),P-v<f?c[1]=C[1]:v<h&&P<h+f?c[1]-=Math.max(v-h,P-f-h)/m:P>h+f&&v>h&&(c[1]-=Math.min(P-f-h,v-h)/m),this.center=this.projection.inverse(c)}this.insets.forEach(x=>{x.options.field&&(x.hitZone=x.getHitZone(),x.playingField=x.getField())}),this.render()}Nc(this,"afterSetView"),i&&this.redraw(a)}projectedUnitsToPixels(e){let n=this.getScale(),i=this.projection.forward(this.center),a=this.playingField;return{x:a.x+a.width/2-n*(i[0]-e.x),y:a.y+a.height/2+n*(i[1]-e.y)}}pixelsToLonLat(e){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(e))}pixelsToProjectedUnits(e){let{x:n,y:i}=e,a=this.getScale(),r=this.projection.forward(this.center),c=this.playingField;return{x:r[0]+(n-(c.x+c.width/2))/a,y:r[1]-(i-(c.y+c.height/2))/a}}setUpEvents(){let e,n,i,{chart:a}=this,r=c=>{let{lastTouches:l,pinchDown:h}=a.pointer,p=this.projection,f=c.touches,{mouseDownX:m,mouseDownY:_}=a,b=0;if(1===h?.length?(m=h[0].chartX,_=h[0].chartY):2===h?.length&&(m=(h[0].chartX+h[1].chartX)/2,_=(h[0].chartY+h[1].chartY)/2),2===f?.length&&l&&(b=Math.log(Math.sqrt(Math.pow(l[0].chartX-l[1].chartX,2)+Math.pow(l[0].chartY-l[1].chartY,2))/Math.sqrt(Math.pow(f[0].chartX-f[1].chartX,2)+Math.pow(f[0].chartY-f[1].chartY,2)))/Math.log(.5)),sn(m)&&sn(_)){let C=`${m},${_}`,{chartX:x,chartY:v}=c.originalEvent;2===f?.length&&(x=(f[0].chartX+f[1].chartX)/2,v=(f[0].chartY+f[1].chartY)/2),C!==n&&(n=C,e=this.projection.forward(this.center),i=(this.projection.options.rotation||[0,0]).slice());let y=p.def&&p.def.bounds,P=y&&zc(y,this.playingField)||-1/0;if("Orthographic"===p.options.name&&2>(f?.length||0)&&(this.minZoom||1/0)<1.3*P){let w=440/(this.getScale()*Math.min(a.plotWidth,a.plotHeight));if(i){let I=(m-x)*w-i[0],R=ug(-i[1]-(_-v)*w,-80,80),T=this.zoom;this.update({projection:{rotation:[-I,-R]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=T,a.redraw(!1)}}else if(sn(x)&&sn(v)){let w=this.getScale(),R=this.projection.inverse([e[0]+(m-x)/w,e[1]-(_-v)/w*(this.projection.hasCoordinates?1:-1)]);isNaN(R[0]+R[1])||this.zoomBy(b,R,void 0,!1)}c.preventDefault()}};ai(a,"pan",r),ai(a,"touchpan",r),ai(a,"selection",c=>{if(c.resetSelection)this.zoomBy();else{let l=c.x-a.plotLeft,h=c.y-a.plotTop,{y:p,x:f}=this.pixelsToProjectedUnits({x:l,y:h}),{y:m,x:_}=this.pixelsToProjectedUnits({x:l+c.width,y:h+c.height});this.fitToBounds({x1:f,y1:p,x2:_,y2:m},void 0,!0,!c.originalEvent.touches&&void 0),/^touch/.test(c.originalEvent.type)||a.showResetZoom(),c.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(e,n=!0,i){let a=e.projection,r=a&&co.toString(a)!==co.toString(this.options.projection),c=!1;xn(!0,this.userOptions,e),xn(!0,this.options,e),"insets"in e&&(this.insets.forEach(l=>l.destroy()),this.insets.length=0,c=!0),(r||"fitToGeometry"in e)&&delete this.fitToGeometryCache,(r||c)&&(this.chart.series.forEach(l=>{let h=l.transformGroups;if(l.clearBounds&&l.clearBounds(),l.isDirty=!0,l.isDirtyData=!0,c&&h)for(;h.length>1;){let p=h.pop();p&&p.destroy()}}),r&&(this.projection=new co(this.options.projection)),c&&this.createInsets(),!e.center&&Object.hasOwnProperty.call(e,"zoom")&&!sn(e.zoom)&&this.fitToBounds(void 0,void 0,!1)),e.center||sn(e.zoom)?this.setView(this.options.center,e.zoom,!1):"fitToGeometry"in e&&this.fitToBounds(void 0,void 0,!1),n&&this.chart.redraw(i)}zoomBy(e,n,i,a){let r=this.chart,c=this.projection.forward(this.center);if("number"==typeof e){let l,h,p,f=this.zoom+e;if(i){let[m,_]=i,b=this.getScale();h=c[0]+(m-r.plotLeft-r.plotWidth/2)/b,p=c[1]+(_-r.plotTop-r.plotHeight/2)/b}if("number"==typeof h&&"number"==typeof p){let m=1-Math.pow(2,this.zoom)/Math.pow(2,f),b=c[1]-p;c[0]-=(c[0]-h)*m,c[1]+=b*m,l=this.projection.inverse(c)}this.setView(n||l,f,void 0,a)}else this.fitToBounds(void 0,void 0,void 0,a)}}class Bc extends ln{constructor(e,n){if(super(e.chart,n),this.id=n.id,this.mapView=e,this.options=xn({center:[0,0]},e.options.insetOptions,n),this.allBounds=[],this.options.geoBounds){let i=e.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=Gc(i),this.geoBoundsProjectedPolygon=i.map(a=>[a[1]||0,a[2]||0])}}getField(e=!0){let n=this.hitZone;if(n){let i=e?this.padding:[0,0,0,0],a=n.coordinates[0],r=a.map(m=>m[0]),c=a.map(m=>m[1]),l=Math.min.apply(0,r)+i[3],h=Math.max.apply(0,r)-i[1],p=Math.min.apply(0,c)+i[0],f=Math.max.apply(0,c)-i[2];if(sn(l)&&sn(p))return{x:l,y:p,width:h-l,height:f-p}}return super.getField.call(this,e)}getHitZone(){let{chart:e,mapView:n,options:i}=this,{coordinates:a}=i.field||{};if(a){let r=a[0];if("percent"===i.units){let c="mapBoundingBox"===i.relativeTo&&n.getMapBBox()||xn(e.plotBox,{x:0,y:0});r=r.map(l=>[jn(`${l[0]}%`,c.width,c.x),jn(`${l[1]}%`,c.height,c.y)])}return{type:"Polygon",coordinates:[r]}}}getProjectedBounds(){return ln.compositeBounds(this.allBounds)}isInside(e){let{geoBoundsProjectedBox:n,geoBoundsProjectedPolygon:i}=this;return!!(n&&e.x>=n.x1&&e.x<=n.x2&&e.y>=n.y1&&e.y<=n.y2&&i&&ho(e,i))}render(){let{chart:e,mapView:n,options:i}=this,a=i.borderPath||i.field;if(a&&n.group){let r=!0;this.border||(this.border=e.renderer.path().addClass("highcharts-mapview-inset-border").add(n.group),r=!1),e.styledMode||this.border.attr({stroke:i.borderColor,"stroke-width":i.borderWidth});let c=this.border.strokeWidth(),l="mapBoundingBox"===i.relativeTo&&n.getMapBBox()||n.playingField,h=(a.coordinates||[]).reduce((p,f)=>f.reduce((m,_,b)=>{let[C,x]=_;return"percent"===i.units&&(C=e.plotLeft+jn(`${C}%`,l.width,l.x),x=e.plotTop+jn(`${x}%`,l.height,l.y)),C=jc(C,c),x=jc(x,c),m.push(0===b?["M",C,x]:["L",C,x]),m},p),[]);this.border[r?"animate":"attr"]({d:h})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(e=>e())}setUpEvents(){}}let{animObject:Xc,stop:Cg}=$t,{noop:Ma}=t,{splitPath:Vc}=fa,{column:Wc,scatter:Uc}=Tt.seriesTypes,{extend:xg,find:yg,fireEvent:Hc,getNestedProperty:Jc,isArray:Wr,defined:qc,isNumber:s,isObject:M,merge:o,objectEach:u,pick:g,splat:O}=q;class $ extends Uc{constructor(){super(...arguments),this.processedData=[]}animate(e){let{chart:n,group:i}=this,a=Xc(this.options.animation);e?i.attr({translateX:n.plotLeft+n.plotWidth/2,translateY:n.plotTop+n.plotHeight/2,scaleX:.001,scaleY:.001}):i.animate({translateX:n.plotLeft,translateY:n.plotTop,scaleX:1,scaleY:1},a)}clearBounds(){this.points.forEach(e=>{delete e.bounds,delete e.insetIndex,delete e.projectedPath}),delete this.bounds}doFullTranslate(){return!(!this.isDirtyData&&!this.chart.isResizing&&this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let e=this,{chart:n,group:i,transformGroups:a=[]}=this,{mapView:r,renderer:c}=n;if(r){this.transformGroups=a,a[0]||(a[0]=c.g().add(i));for(let l=0,h=r.insets.length;l<h;++l)a[l+1]||a.push(c.g().add(i));
1this.doFullTranslate()&&(this.points.forEach(l=>{let{graphic:h}=l;l.group=a["number"==typeof l.insetIndex?l.insetIndex+1:0],h&&h.parentGroup!==l.group&&h.add(l.group)}),Wc.prototype.drawPoints.apply(this),this.points.forEach(l=>{let h=l.graphic;if(h){let p=h.animate,f="";l.name&&(f+="highcharts-name-"+l.name.replace(/ /g,"-").toLowerCase()),l.properties?.["hc-key"]&&(f+=" highcharts-key-"+l.properties["hc-key"].toString().toLowerCase()),f&&h.addClass(f),n.styledMode&&h.css(this.pointAttribs(l,l.selected?"select":void 0)),h.attr({visibility:l.visible||!l.visible&&!l.isNull?"inherit":"hidden"}),h.animate=function(m,_,b){let C=s(m["stroke-width"])&&!s(h["stroke-width"]),x=s(h["stroke-width"])&&!s(m["stroke-width"]);if(C||x){let v=g(e.getStrokeWidth(e.options),1)/(n.mapView?.getScale()||1);C&&(h["stroke-width"]=v),x&&(m["stroke-width"]=v)}return p.call(h,m,_,x?function(){h.element.removeAttribute("stroke-width"),delete h["stroke-width"],b&&b.apply(this,arguments)}:b)}}})),a.forEach((l,h)=>{let p=(0===h?r:r.insets[h-1]).getSVGTransform(),f=g(this.getStrokeWidth(this.options),1),m=p.scaleX,_=p.scaleY>0?1:-1,b=C=>{(e.points||[]).forEach(x=>{let v,y=x.graphic;y?.["stroke-width"]&&(v=this.getStrokeWidth(x.options))&&y.attr({"stroke-width":v/C})})};if(c.globalAnimation&&n.hasRendered&&r.allowTransformAnimation){let C=Number(l.attr("translateX")),x=Number(l.attr("translateY")),v=Number(l.attr("scaleX")),y=(I,R)=>{let T=v+(m-v)*R.pos;l.attr({translateX:C+(p.translateX-C)*R.pos,translateY:x+(p.translateY-x)*R.pos,scaleX:T,scaleY:T*_,"stroke-width":f/T}),b(T)},P=o(Xc(c.globalAnimation)),w=P.step;P.step=function(){w&&w.apply(this,arguments),y.apply(this,arguments)},l.attr({animator:0}).animate({animator:1},P,function(){"boolean"!=typeof c.globalAnimation&&c.globalAnimation.complete&&c.globalAnimation.complete({applyDrilldown:!0}),Hc(this,"mapZoomComplete")}.bind(this))}else Cg(l),l.attr(o(p,{"stroke-width":f/m})),b(m)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:e,projection:n}=this.chart.mapView,i=[];(this.points||[]).forEach(a=>{if(a.path||a.geometry){if("string"==typeof a.path?a.path=Vc(a.path):Wr(a.path)&&"M"===a.path[0]&&(a.path=this.chart.renderer.pathToSegments(a.path)),!a.bounds){let r=a.getProjectedBounds(n);if(r){a.labelrank=g(a.labelrank,(r.x2-r.x1)*(r.y2-r.y1));let{midX:c,midY:l}=r;if(e&&s(c)&&s(l)){let h=yg(e,p=>p.isInside({x:c,y:l}));h&&(delete a.projectedPath,(r=a.getProjectedBounds(h.projection))&&h.allBounds.push(r),a.insetIndex=e.indexOf(h))}a.bounds=r}}a.bounds&&void 0===a.insetIndex&&i.push(a.bounds)}}),this.bounds=ln.compositeBounds(i)}return this.bounds}getStrokeWidth(e){let n=this.pointAttrToOptions;return e[n?.["stroke-width"]||"borderWidth"]}hasData(){return!!this.dataTable.rowCount}pointAttribs(e,n){let{mapView:i,styledMode:a}=e.series.chart,r=a?this.colorAttribs(e):Wc.prototype.pointAttribs.call(this,e,n),c=this.getStrokeWidth(e.options);if(n){let h=o(this.options.states&&this.options.states[n],e.options.states&&e.options.states[n]||{}),p=this.getStrokeWidth(h);qc(p)&&(c=p),r.stroke=h.borderColor??e.color}c&&i&&(c/=i.getScale());let l=this.getStrokeWidth(this.options);return r.dashstyle&&i&&s(l)&&(c=l/i.getScale()),e.visible||(r.fill=this.options.nullColor),qc(c)?r["stroke-width"]=c:delete r["stroke-width"],r["stroke-linecap"]=r["stroke-linejoin"]=this.options.linecap,r}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(e,n=!0,i,a){delete this.bounds,super.setData(e,!1,void 0,a),this.processData(),this.generatePoints(),n&&this.chart.redraw(i)}dataColumnKeys(){return this.pointArrayMap}processData(){let e,n,i,a=this.options,r=a.data,c=this.chart,l=c.options.chart,h=this.joinBy,p=a.keys||this.pointArrayMap,f=[],m={},_=this.chart.mapView,b=_&&(M(a.mapData,!0)?_.getGeoMap(a.mapData):_.geoMap),C=c.mapTransforms=l.mapTransforms||b?.["hc-transform"]||c.mapTransforms;C&&u(C,v=>{v.rotation&&(v.cosAngle=Math.cos(v.rotation),v.sinAngle=Math.sin(v.rotation))}),Wr(a.mapData)?i=a.mapData:b&&"FeatureCollection"===b.type&&(this.mapTitle=b.title,i=t.geojson(b,this.type,this)),this.processedData=[];let x=this.processedData;if(r){let v;for(let y=0,P=r.length;y<P;++y){if(s(v=r[y]))x[y]={value:v};else if(Wr(v)){let w=0;x[y]={},!a.keys&&v.length>p.length&&"string"==typeof v[0]&&(x[y]["hc-key"]=v[0],++w);for(let I=0;I<p.length;++I,++w)p[I]&&void 0!==v[w]&&(p[I].indexOf(".")>0?Ii.prototype.setNestedProperty(x[y],v[w],p[I]):x[y][p[I]]=v[w])}else x[y]=r[y];h&&"_i"===h[0]&&(x[y]._i=y)}}if(i){this.mapData=i,this.mapMap={};for(let v=0;v<i.length;v++)n=(e=i[v]).properties,e._i=v,h[0]&&n&&n[h[0]]&&(e[h[0]]=n[h[0]]),m[e[h[0]]]=e;if(this.mapMap=m,h[1]){let v=h[1];x.forEach(y=>{let P=Jc(v,y);m[P]&&f.push(m[P])})}if(a.allAreas){if(h[1]){let y=h[1];x.forEach(P=>{f.push(Jc(y,P))})}let v="|"+f.map(function(y){return y&&y[h[0]]}).join("|")+"|";
vendor: 26,321 bytes, line 1
1i.forEach(y=>{h[0]&&-1!==v.indexOf("|"+y[h[0]]+"|")||x.push(o(y,{value:null}))})}}this.dataTable.rowCount=x.length}setOptions(e){let n=super.setOptions(e),i=n.joinBy;return null===n.joinBy&&(i="_i"),i&&(this.joinBy=O(i),this.joinBy[1]||(this.joinBy[1]=this.joinBy[0])),n}translate(){let e=this.doFullTranslate(),n=this.chart.mapView,i=n?.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!n||n.userOptions.center||s(n.userOptions.zoom)||n.zoom!==n.minZoom?this.getProjectedBounds():n.fitToBounds(void 0,void 0,!1)),n){let a=n.getSVGTransform();this.points.forEach(r=>{let c=s(r.insetIndex)&&n.insets[r.insetIndex].getSVGTransform()||a;c&&r.bounds&&s(r.bounds.midX)&&s(r.bounds.midY)&&(r.plotX=r.bounds.midX*c.scaleX+c.translateX,r.plotY=r.bounds.midY*c.scaleY+c.translateY),e&&(r.shapeType="path",r.shapeArgs={d:Ii.getProjectedPath(r,i)}),r.hiddenInDataClass||(r.projectedPath&&!r.projectedPath.length?r.setVisible(!1):r.visible||r.setVisible(!0))})}Hc(this,"afterTranslate")}update(e){e.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((n,i)=>i===this._i?e.mapData:n.mapData)],!0),super.update.apply(this,arguments)}}$.defaultOptions=o(Uc.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:d}=this.series.chart,{value:e}=this.point;return Zm(e)?d(e,-1):this.point.name||""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}),xg($.prototype,{type:"map",axisTypes:ye.seriesMembers.axisTypes,colorAttribs:ye.seriesMembers.colorAttribs,colorKey:ye.seriesMembers.colorKey,directTouch:!0,drawDataLabels:Ma,drawGraph:Ma,forceDL:!0,getCenter:Er.getCenter,getExtremesFromAll:!0,getSymbol:Ma,isCartesian:!1,parallelArrays:ye.seriesMembers.parallelArrays,pointArrayMap:ye.seriesMembers.pointArrayMap,pointClass:Ii,preserveAspectRatio:!0,searchPoint:Ma,trackerGroups:ye.seriesMembers.trackerGroups,useMapGeometry:!0}),ye.compose($),Tt.registerSeriesType("map",$);let J=$,{extend:st,merge:gt}=q;class zt extends J{pointAttribs(e,n){let i=super.pointAttribs(e,n);return i.fill=this.options.fillColor,i}}zt.defaultOptions=gt(J.defaultOptions,{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}),st(zt.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),Tt.registerSeriesType("mapline",zt);let{scatter:bt}=Tt.seriesTypes,{isNumber:Dt}=q,{noop:cn}=t,{map:ae,scatter:Me}=Tt.seriesTypes,{extend:yn,fireEvent:Mg,isNumber:ri,merge:Qc}=q;class Ri extends Me{constructor(){super(...arguments),this.clearBounds=ae.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(e){let n=this.chart.mapView;if(n){let{geometry:i,lon:a,lat:r}=e,c=i&&"Point"===i.type&&i.coordinates;if(ri(a)&&ri(r)&&(c=[a,r]),c)return n.lonLatToProjectedUnits({lon:c[0],lat:c[1]})}}translate(){let e=this.chart.mapView;if(this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),e){let n=e.getSVGTransform(),{hasCoordinates:i}=e.projection;this.points.forEach(a=>{let r,{x:c,y:l}=a,h=ri(a.insetIndex)&&e.insets[a.insetIndex].getSVGTransform()||n,p=this.projectPoint(a.options)||a.properties&&this.projectPoint(a.properties);if(p?(c=p.x,l=p.y):a.bounds&&(c=a.bounds.midX,l=a.bounds.midY,h&&ri(c)&&ri(l)&&(a.plotX=c*h.scaleX+h.translateX,a.plotY=l*h.scaleY+h.translateY,r=!0)),ri(c)&&ri(l)){if(!r){let f=e.projectedUnitsToPixels({x:c,y:l});a.plotX=f.x,a.plotY=i?f.y:this.chart.plotHeight-f.y}}else a.y=a.plotX=a.plotY=void 0;a.isInside=this.isPointInside(a),a.zone=this.zones.length?a.getZone():void 0})}Mg(this,"afterTranslate")}}Ri.defaultOptions=Qc(Me.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"}),Qn.prototype.symbols.mapmarker=(d,e,n,i,a)=>{let r,c,l=a&&"legend"===a.context;l?(r=d+n/2,c=e+i):a&&"number"==typeof a.anchorX&&"number"==typeof a.anchorY?(r=a.anchorX,c=a.anchorY):(r=d+n/2,c=e+i/2,e-=i);let h=l?i/3:i/2;return[["M",r,c],["C",r,c,r-h,e+1.5*h,r-h,e+h],["A",h,h,1,1,1,r+h,e+h],["C",r+h,e+1.5*h,r,c,r,c],["Z"]]},yn(Ri.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:class De extends bt.prototype.pointClass{isValid(){return!!(this.options.geometry||Dt(this.x)&&Dt(this.y)||Dt(this.options.lon)&&Dt(this.options.lat))}},searchPoint:cn,useMapGeometry:!0}),Tt.registerSeriesType("mappoint",Ri);let va={borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0},{noop:Bg}=t,{arrayMax:Xg,arrayMin:Vg,isNumber:Tg,merge:Ur,pick:Hr,stableSort:Wg}=q,Ug=class{constructor(d,e){this.setState=Bg,this.init(d,e)}init(d,e){this.options=d,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(d){d.splice(this.options.legendIndex,0,this)}drawLegendSymbol(d){let e,n=Hr(d.options.itemDistance,20),i=this.legendItem||{},a=this.options,r=a.ranges,c=a.connectorDistance;if(!r||!r.length||!Tg(r[0].value))return void(d.options.bubbleLegend.autoRanges=!0);Wg(r,function(f,m){return m.value-f.value}),this.ranges=r,this.setOptions(),this.render();let l=this.getMaxLabelSize(),h=this.ranges[0].radius,p=2*h;e=(e=c-h+l.width)>0?e:0,this.maxLabel=l,this.movementX="left"===a.labels.align?e:0,i.labelWidth=p+e+n,i.labelHeight=p+l.height/2}setOptions(){let d=this.ranges,e=this.options,n=this.chart.series[e.seriesIndex],i=this.legend.baseline,a={zIndex:e.zIndex,"stroke-width":e.borderWidth},r={zIndex:e.zIndex,"stroke-width":e.connectorWidth},c={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=n.options.marker.fillOpacity,h=this.chart.styledMode;d.forEach(function(p,f){h||(a.stroke=Hr(p.borderColor,e.borderColor,n.color),a.fill=p.color||e.color,a.fill||(a.fill=n.color,a["fill-opacity"]=l??1),r.stroke=Hr(p.connectorColor,e.connectorColor,n.color)),d[f].radius=this.getRangeRadius(p.value),d[f]=Ur(d[f],{center:d[0].radius-d[f].radius+i}),h||Ur(!0,d[f],{bubbleAttribs:Ur(a),connectorAttribs:Ur(r),labelAttribs:c})},this)}getRangeRadius(d){let e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,d)}render(){let d=this.legendItem||{},e=this.chart.renderer,n=this.options.zThreshold;for(let i of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),d.symbol=e.g("bubble-legend"),d.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),d.symbol.translateX=0,d.symbol.translateY=0,d.symbol.add(d.label),d.label.add(d.group),this.ranges))i.value>=n&&this.renderRange(i);this.hideOverlappingLabels()}renderRange(d){let e=this.ranges[0],n=this.legend,i=this.options,a=i.labels,r=this.chart,c=r.series[i.seriesIndex],l=r.renderer,h=this.symbols,p=h.labels,f=d.center,m=Math.abs(d.radius),_=i.connectorDistance||0,b=a.align,v=i.connectorWidth,y=e.radius||0,P=f-m-i.borderWidth/2+v/2,w=(P%1?1:.5)-(v%2?0:.5),I=l.styledMode,R=n.options.rtl||"left"===b?-_:_;"center"===b&&(R=0,i.connectorDistance=0,d.labelAttribs.align="center"),h.bubbleItems.push(l.circle(y,f+w,m).attr(I?{}:d.bubbleAttribs).addClass((I?"highcharts-color-"+c.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(i.className||"")).add(this.legendItem.symbol)),h.connectors.push(l.path(l.crispLine([["M",y,P],["L",y+R,P]],i.connectorWidth)).attr(I?{}:d.connectorAttribs).addClass((I?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(i.connectorClassName||"")).add(this.legendItem.symbol));let T=l.text(this.formatLabel(d)).attr(I?{}:d.labelAttribs).css(I?{}:a.style).addClass("highcharts-bubble-legend-labels "+(i.labels.className||"")).add(this.legendItem.symbol),k={x:y+R+i.labels.x,y:P+i.labels.y+.4*T.getBBox().height};T.attr(k),p.push(T),T.placed=!0,T.alignAttr=k}getMaxLabelSize(){let d,e;return this.symbols.labels.forEach(function(n){e=n.getBBox(!0),d=d?e.width>d.width?e:d:e}),d||{}}formatLabel(d){let e=this.options,n=e.labels.formatter,i=e.labels.format,{numberFormatter:a}=this.chart;return i?Oe.format(i,d,this.chart):n?n.call(d):a(d.value,1)}hideOverlappingLabels(){let n=this.symbols;!this.options.labels.allowOverlap&&n&&(this.chart.hideOverlappingLabels(n.labels),n.labels.forEach(function(i,a){i.newOpacity?i.newOpacity!==i.oldOpacity&&n.connectors[a].show():n.connectors[a].hide()}))}getRanges(){let i,a,d=this.legend.bubbleLegend,n=d.options.ranges,r=Number.MAX_VALUE,c=-Number.MAX_VALUE;return d.chart.series.forEach(function(l){l.isBubble&&!l.ignoreSeries&&(a=l.getColumn("z").filter(Tg)).length&&(r=Hr(l.options.zMin,Math.min(r,Math.max(Vg(a),!1===l.options.displayNegative?l.options.zThreshold:-Number.MAX_VALUE))),c=Hr(l.options.zMax,Math.max(c,Xg(a))))}),i=r===c?[{value:c}]:[{value:r},{value:(r+c)/2},{value:c,autoRanges:!0}],n.length&&n[0].radius&&i.reverse(),i.forEach(function(l,h){n&&n[h]&&(i[h]=Ur(n[h],l))}),i}predictBubbleSizes(){let _,d=this.chart,e=d.legend.options,n=e.floating,i="horizontal"===e.layout,a=i?d.legend.lastLineHeight:0,r=d.plotSizeX,c=d.plotSizeY,l=d.series[this.options.seriesIndex],h=l.getPxExtremes(),p=Math.ceil(h.minPxSize),f=Math.ceil(h.maxPxSize),m=Math.min(c,r),b=l.options.maxSize;return n||!/%$/.test(b)?_=f:(_=(m+a)*(b=parseFloat(b))/100/(b/100+1),(i&&c-_>=r||!i&&r-_>=c)&&(_=f)),[p,Math.ceil(_)]}updateRanges(d,e){let n=this.legend.options.bubbleLegend;n.minSize=d,n.maxSize=e,n.ranges=this.getRanges()}correctSizes(){let d=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),d.render())}},{setOptions:Hg}=ot,{composed:Jg}=t,{addEvent:kg,objectEach:qg,pushUnique:Qg,wrap:Zg}=q;function Kg(d,e,n){let i,a,r,c=this.legend,l=vg(this)>=0;c&&c.options.enabled&&c.bubbleLegend&&c.options.bubbleLegend.autoRanges&&l?(i=c.bubbleLegend.options,a=c.bubbleLegend.predictBubbleSizes(),c.bubbleLegend.updateRanges(a[0],a[1]),i.placed||(c.group.placed=!1,c.allItems.forEach(h=>{(r=h.legendItem||{}).group&&(r.group.translateY=void 0)})),c.render(),i.placed||(this.getMargins(),this.axes.forEach(h=>{h.setScale(),h.updateNames(),qg(h.ticks,function(p){p.isNew=!0,p.isNewLabel=!0})}),this.getMargins()),i.placed=!0,d.call(this,e,n),c.bubbleLegend.correctSizes(),Ag(c,Rg(c))):(d.call(this,e,n),c&&c.options.enabled&&c.bubbleLegend&&(c.render(),Ag(c,Rg(c))))}function vg(d){let e=d.series,n=0;for(;n<e.length;){if(e[n]&&e[n].isBubble&&e[n].visible&&e[n].dataTable.rowCount)return n;n++}return-1}function Rg(d){let a,r,c,e=d.allItems,n=[],i=e.length,l=0,h=0;for(l=0;l<i;l++)if(r=e[l].legendItem||{},c=(e[l+1]||{}).legendItem||{},r.labelHeight&&(e[l].itemHeight=r.labelHeight),e[l]===e[i-1]||r.y!==c.y){for(n.push({height:0}),a=n[n.length-1];h<=l;h++)e[h].itemHeight>a.height&&(a.height=e[h].itemHeight);a.step=l}return n}function tf(d){let e=this.bubbleLegend,n=this.options,i=n.bubbleLegend,a=vg(this.chart);e&&e.ranges&&e.ranges.length&&(i.ranges.length&&(i.autoRanges=!!i.ranges[0].autoRanges),this.destroyItem(e)),a>=0&&n.enabled&&i.enabled&&(i.seriesIndex=a,this.bubbleLegend=new Ug(i,this),this.bubbleLegend.addToLegend(d.allItems))}function ef(d){let e;if(d.defaultPrevented)return!1;let n=d.legendItem,i=this.chart,a=n.visible;this&&this.bubbleLegend&&(n.visible=!a,n.ignoreSeries=a,e=vg(i)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),n.visible=a)}function Ag(d,e){let a,r,c,l,i=d.options.rtl,h=0;d.allItems.forEach((p,f)=>{(l=p.legendItem||{}).group&&(a=l.group.translateX||0,r=l.y||0,((c=p.movementX)||i&&p.ranges)&&(c=i?a-p.options.maxSize/2:a+c,l.group.attr({translateX:c})),f>e[h].step&&h++,l.group.attr({translateY:Math.round(r+e[h].height/2)}),l.y=r+e[h].height/2)})}let{seriesTypes:{scatter:{prototype:{pointClass:of}}}}=Tt,{extend:af}=q;class Sg extends of{haloPath(e){let n=(e&&this.marker&&this.marker.radius||0)+e;if(this.series.chart.inverted){let i=this.pos()||[0,0],{xAxis:a,yAxis:r,chart:c}=this.series;return c.renderer.symbols.circle(a.len-i[1]-n,r.len-i[0]-n,2*n,2*n)}return bn.prototype.haloPath.call(this,n)}}af(Sg.prototype,{ttBelow:!1});let Dg=Sg,{composed:rf,noop:Pg}=t,{series:sf,seriesTypes:{column:{prototype:lf},scatter:Eg}}=Tt,{addEvent:Zc,arrayMax:cf,arrayMin:hf,clamp:df,extend:wg,isNumber:uo,merge:pf,pick:mo,pushUnique:uf}=q;function mf(){let h,d=this.len,{coll:e,isXAxis:n,min:i}=this,a=(this.max||0)-(i||0),r=0,c=d,l=d/a;("xAxis"===e||"yAxis"===e)&&(this.series.forEach(p=>{if(p.bubblePadding&&p.reserveSpace()){this.allowZoomOutside=!0,h=!0;let f=p.getColumn(n?"x":"y");if(n&&((p.onPoint||p).getRadii(0,0,p),p.onPoint&&(p.radii=p.onPoint.radii)),a>0){let m=f.length;for(;m--;)if(uo(f[m])&&this.dataMin<=f[m]&&f[m]<=this.max){let _=p.radii&&p.radii[m]||0;r=Math.min((f[m]-i)*l-_,r),c=Math.max((f[m]-i)*l+_,c)}}}}),h&&a>0&&!this.logarithmic&&(c-=d,l*=(d+Math.max(0,r)-Math.min(c,d))/d,[["min","userMin",r],["max","userMax",c]].forEach(p=>{void 0===mo(this.options[p[0]],this[p[1]])&&(this[p[0]]+=p[2]/l)})))}function gf(){let{ticks:d,tickPositions:e,dataMin:n=0,dataMax:i=0,categories:a}=this,r=this.options.type;if((a?.length||"category"===r)&&this.series.find(c=>c.bubblePadding)){let c=e.length;for(;c--;){let l=d[e[c]],h=l.pos||0;(h>i||h<n)&&l.label?.hide()}}}class Pa extends Eg{static compose(e,n,i){(function(d,e){Qg(Jg,"Series.BubbleLegend")&&(Hg({legend:{bubbleLegend:va}}),Zg(d.prototype,"drawChartBox",Kg),kg(e,"afterGetAllItems",tf),kg(e,"itemClick",ef))})(n,i),uf(rf,"Series.Bubble")&&(Zc(e,"foundExtremes",mf),Zc(e,"afterRender",gf))}animate(e){!e&&this.points.length<this.options.animationLimit&&this.points.forEach(function(n){let{graphic:i,plotX:a=0,plotY:r=0}=n;i&&i.width&&(this.hasRendered||i.attr({x:a,y:r,width:1,height:1}),i.animate(this.markerAttribs(n),this.options.animation))},this)}getRadii(){let a,r,c,e=this.getColumn("z"),n=this.getColumn("y"),i=[],l=this.chart.bubbleZExtremes,{minPxSize:h,maxPxSize:p}=this.getPxExtremes();if(!l){let f,m=Number.MAX_VALUE,_=-Number.MAX_VALUE;this.chart.series.forEach(b=>{if(b.bubblePadding&&b.reserveSpace()){let C=(b.onPoint||b).getZExtremes();C&&(m=Math.min(mo(m,C.zMin),C.zMin),_=Math.max(mo(_,C.zMax),C.zMax),f=!0)}}),f?(l={zMin:m,zMax:_},this.chart.bubbleZExtremes=l):l={zMin:0,zMax:0}}for(r=0,a=e.length;r<a;r++)c=e[r],i.push(this.getRadius(l.zMin,l.zMax,h,p,c,n&&n[r]));this.radii=i}getRadius(e,n,i,a,r,c){let l=this.options,h="width"!==l.sizeBy,p=l.zThreshold,f=n-e,m=.5;if(null===c||null===r)return null;if(uo(r)){if(l.sizeByAbsoluteValue&&(r=Math.abs(r-p),n=f=Math.max(n-p,Math.abs(e-p)),e=0),r<e)return i/2-1;f>0&&(m=(r-e)/f)}return h&&m>=0&&(m=Math.sqrt(m)),Math.ceil(i+m*(a-i))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(e,n){let i=super.markerAttribs(e,n),{height:a=0,width:r=0}=i;return this.chart.inverted?wg(i,{x:(e.plotX||0)-r/2,y:(e.plotY||0)-a/2}):i}pointAttribs(e,n){let i=this.options.marker,a=i?.fillOpacity,r=sf.prototype.pointAttribs.call(this,e,n);return r["fill-opacity"]=a??1,r}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:e,options:n,radii:i}=this,{minPxSize:a}=this.getPxExtremes(),r=e.length;for(;r--;){let c=e[r],l=i?i[r]:0;"z"===this.zoneAxis&&(c.negative=(c.z||0)<(n.zThreshold||0)),uo(l)&&l>=a/2?(c.marker=wg(c.marker,{radius:l,width:2*l,height:2*l}),c.dlBox={x:c.plotX-l,y:c.plotY-l,width:2*l,height:2*l}):(c.shapeArgs=c.plotY=c.dlBox=void 0,c.isInside=!1)}}getPxExtremes(){let e=Math.min(this.chart.plotWidth,this.chart.plotHeight),n=r=>{let c;return"string"==typeof r&&(c=/%$/.test(r),r=parseInt(r,10)),c?e*r/100:r},i=n(mo(this.options.minSize,8));return{minPxSize:i,maxPxSize:Math.max(n(mo(this.options.maxSize,"20%")),i)}}getZExtremes(){let e=this.options,n=this.getColumn("z").filter(uo);if(n.length){let i=mo(e.zMin,df(hf(n),!1===e.displayNegative?e.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),a=mo(e.zMax,cf(n));if(uo(i)&&uo(a))return{zMin:i,zMax:a}}}searchKDTree(e,n,i,a=Pg,r=Pg){return super.searchKDTree(e,n,i,(c,l,h)=>{let m,p=c[h]||0,f=l[h]||0,_=!1;return p===f?m=c.index>l.index?c:l:p<0&&f<0?(m=p-(c.marker?.radius||0)>=f-(l.marker?.radius||0)?c:l,_=!0):m=p<f?c:l,[m,_]},(c,l,h)=>!h&&c>l||c<l)}}Pa.defaultOptions=pf(Eg.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:d}=this.series.chart,{z:e}=this.point;return uo(e)?d(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),wg(Pa.prototype,{alignDataLabel:lf.alignDataLabel,applyZones:Pg,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:Dg,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),Zc(Pa,"updatedData",d=>{delete d.target.chart.bubbleZExtremes}),Zc(Pa,"remove",d=>{delete d.target.chart.bubbleZExtremes}),Tt.registerSeriesType("bubble",Pa);let Fg=Pa,{seriesTypes:{map:{prototype:{pointClass:{prototype:$g}}}}}=Tt,{extend:ff}=q;class Lg extends Dg{isValid(){return"number"==typeof this.z}}ff(Lg.prototype,{applyOptions:$g.applyOptions,getProjectedBounds:$g.getProjectedBounds});let{seriesTypes:{map:{prototype:wa},mappoint:{prototype:Gg}}}=Tt,{extend:_f,merge:bf}=q;class Kc extends Fg{constructor(){super(...arguments),this.clearBounds=wa.clearBounds}searchPoint(e,n){return this.searchKDTree({plotX:e.chartX-this.chart.plotLeft,plotY:e.chartY-this.chart.plotTop},n,e)}translate(){Gg.translate.call(this),this.getRadii(),this.translateBubble()}}Kc.defaultOptions=bf(Fg.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),_f(Kc.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:wa.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:Lg,processData:wa.processData,projectPoint:Gg.projectPoint,kdAxisArray:["plotX","plotY"],setData:wa.setData,setOptions:wa.setOptions,updateData:wa.updateData,useMapGeometry:!0,xyFromShape:!0}),Tt.registerSeriesType("mapbubble",Kc);let{scatter:{prototype:{pointClass:Cf}}}=Tt.seriesTypes,{clamp:th,defined:xf,extend:yf,pick:Mf}=q;class jg extends Cf{applyOptions(e,n){return(this.isNull||null===this.value)&&delete this.color,super.applyOptions(e,n),this.formatPrefix=this.isNull||null===this.value?"null":"point",this}getCellAttributes(){let e=this.series,n=e.options,i=(n.colsize||1)/2,a=(n.rowsize||1)/2,r=e.xAxis,c=e.yAxis,l=this.options.marker||e.options.marker,h=e.pointPlacementToXValue(),p=Mf(this.pointPadding,n.pointPadding,0),f={x1:th(Math.round(r.len-r.translate(this.x-i,!1,!0,!1,!0,-h)),-r.len,2*r.len),x2:th(Math.round(r.len-r.translate(this.x+i,!1,!0,!1,!0,-h)),-r.len,2*r.len),y1:th(Math.round(c.translate(this.y-a,!1,!0,!1,!0)),-c.len,2*c.len),y2:th(Math.round(c.translate(this.y+a,!1,!0,!1,!0)),-c.len,2*c.len)};for(let m of[["width","x"],["height","y"]]){let _=m[0],b=m[1],C=b+"1",x=b+"2",v=Math.abs(f[C]-f[x]),y=l&&l.lineWidth||0,P=Math.abs(f[C]+f[x])/2,w=l&&l[_];if(xf(w)&&w<v){let I=w/2+y/2;f[C]=P-I,f[x]=P+I}p&&(("x"===b&&r.reversed||"y"===b&&!c.reversed)&&(C=x,x=b+"1"),f[C]+=p,f[x]-=p)}return f}haloPath(e){if(!e)return[];let{x:n=0,y:i=0,width:a=0,height:r=0}=this.shapeArgs||{};return[["M",n-e,i-e],["L",n-e,i+r+e],["L",n+a+e,i+r+e],["L",n+a+e,i-e],["Z"]]}isValid(){return this.value!==1/0&&this.value!==-1/0}}yf(jg.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});let{isNumber:vf}=q,{doc:Pf}=t,{defined:wf,pick:Ng}=q,{series:Oa,seriesTypes:{column:Of,scatter:zg}}=Tt,{prototype:{symbols:eh}}=Qn,{addEvent:If,extend:Tf,fireEvent:kf,isNumber:nh,merge:Og,pick:Rf}=q,{colorFromPoint:Af,getContext:Sf}={colorFromPoint:function(d,e){let n=e.series.colorAxis;if(n){let i=n.toColor(d||0,e).split(")")[0].split("(")[1].split(",").map(a=>Ng(parseFloat(a),parseInt(a,10)));return i[3]=255*Ng(i[3],1),wf(d)&&e.visible||(i[3]=0),i}return[0,0,0,0]},getContext:function(d){let{canvas:e,context:n}=d;return e&&n?(n.clearRect(0,0,e.width,e.height),n):(d.canvas=Pf.createElement("canvas"),d.context=d.canvas.getContext("2d",{willReadFrequently:!0})||void 0,d.context)}};class Jr extends zg{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let e=this,n=e.options,a=n.marker||{};if(n.interpolation){let{image:r,chart:c,xAxis:l,yAxis:h}=e,{reversed:p=!1,len:f}=l,{reversed:m=!1,len:_}=h,b={width:f,height:_};if(!r||e.isDirtyData||e.isDirtyCanvas){let C=Sf(e),{canvas:x,options:{colsize:v=1,rowsize:y=1},points:P,points:{length:w}}=e;if(x&&C&&c.colorAxis&&c.colorAxis[0]){let{min:R,max:T}=l.getExtremes(),{min:k,max:A}=h.getExtremes(),F=T-R,G=A-k,j=Math.round(F/v/8*8),U=Math.round(G/y/8*8),[K,it]=[[j,j/F,p,"ceil"],[U,U/G,!m,"floor"]].map(([re,dt,ft,kt])=>ft?Pt=>Math[kt](re-dt*Pt):Pt=>Math[kt](dt*Pt)),rt=x.width=j+1,et=rt*(x.height=U+1),ct=(w-1)/et,Xt=new Uint8ClampedArray(4*et),Gt=(re,dt)=>4*Math.ceil(rt*it(dt-k)+K(re-R));e.buildKDTree();for(let re=0;re<et;re++){let dt=P[Math.ceil(ct*re)],{x:ft,y:kt}=dt;Xt.set(Af(dt.value,dt),Gt(ft,kt))}C.putImageData(new ImageData(Xt,rt),0,0),r?r.attr({...b,href:x.toDataURL("image/png",1)}):(e.directTouch=!1,e.image=c.renderer.image(x.toDataURL("image/png",1)).attr(b).add(e.group))}e.isDirtyCanvas=!1}else(r.width!==f||r.height!==_)&&r.attr(b)}else(a.enabled||e._hasPointMarkers)&&(Oa.prototype.drawPoints.call(e),e.points.forEach(r=>{r.graphic&&(r.graphic[e.chart.styledMode?"css":"animate"](e.colorAttribs(r)),null===r.value&&r.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:e,dataMax:n}=Oa.prototype.getExtremes.call(this,this.getColumn("value"));return nh(e)&&(this.valueMin=e),nh(n)&&(this.valueMax=n),Oa.prototype.getExtremes.call(this)}getValidPoints(e,n){return Oa.prototype.getValidPoints.call(this,e,n,!0)}hasData(){return!!this.dataTable.rowCount}init(){super.init.apply(this,arguments);let e=this.options;e.pointRange=Rf(e.pointRange,e.colsize||1),this.yAxis.axisPointRange=e.rowsize||1,eh.ellipse=eh.circle,e.marker&&nh(e.borderRadius)&&(e.marker.r=e.borderRadius)}markerAttribs(e,n){let i=e.shapeArgs||{};if(e.hasImage)return{x:e.plotX,y:e.plotY};if(n&&"normal"!==n){let a=e.options.marker||{},r=this.options.marker||{},c=r.states?.[n]||{},l=a.states?.[n]||{},h=(l.width||c.width||i.width||0)+(l.widthPlus||c.widthPlus||0),p=(l.height||c.height||i.height||0)+(l.heightPlus||c.heightPlus||0);return{x:(i.x||0)+((i.width||0)-h)/2,y:(i.y||0)+((i.height||0)-p)/2,width:h,height:p}}return i}pointAttribs(e,n){let i=Oa.prototype.pointAttribs.call(this,e,n),a=this.options||{},r=this.chart.options.plotOptions||{},c=r.series||{},l=r.heatmap||{},h=e?.options.borderColor||a.borderColor||l.borderColor||c.borderColor,p=e?.options.borderWidth||a.borderWidth||l.borderWidth||c.borderWidth||i["stroke-width"];if(i.stroke=e?.marker?.lineColor||a.marker?.lineColor||h||this.color,i["stroke-width"]=p,n&&"normal"!==n){let f=Og(a.states?.[n],a.marker?.states?.[n],e?.options.states?.[n]||{});i.fill=f.color||Z.parse(i.fill).brighten(f.brightness||0).get(),i.stroke=f.lineColor||i.stroke}return i}translate(){let{borderRadius:e,marker:n}=this.options,i=n?.symbol||"rect",a=eh[i]?i:"rect",r=-1!==["circle","square"].indexOf(a);for(let c of(this.generatePoints(),this.points)){let l=c.getCellAttributes(),h=Math.min(l.x1,l.x2),p=Math.min(l.y1,l.y2),f=Math.max(Math.abs(l.x2-l.x1),0),m=Math.max(Math.abs(l.y2-l.y1),0);if(c.hasImage=0===(c.marker?.symbol||i||"").indexOf("url"),r){let _=Math.abs(f-m);h=Math.min(l.x1,l.x2)+(f<m?0:_/2),p=Math.min(l.y1,l.y2)+(f<m?_/2:0),f=m=Math.min(f,m)}c.hasImage&&(c.marker={width:f,height:m}),c.plotX=c.clientX=(l.x1+l.x2)/2,c.plotY=(l.y1+l.y2)/2,c.shapeType="path",c.shapeArgs=Og(!0,{x:h,y:p,width:f,height:m},{d:eh[a](h,p,f,m,{r:nh(e)?e:0})})}kf(this,"afterTranslate")}}Jr.defaultOptions=Og(zg.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"#f7f7f7",dataLabels:{formatter:function(){let{numberFormatter:d}=this.series.chart,{value:e}=this.point;return vf(e)?d(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}),If(Jr,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints()}),Tf(Jr.prototype,{axisTypes:ye.seriesMembers.axisTypes,colorKey:ye.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:ye.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:jg,specialGroup:"group",trackerGroups:ye.seriesMembers.trackerGroups,alignDataLabel:Of.prototype.alignDataLabel,colorAttribs:ye.seriesMembers.colorAttribs,getSymbol:Oa.prototype.getSymbol}),ye.compose(Jr),Tt.registerSeriesType("heatmap",Jr),t.ColorMapComposition=ye,t.MapChart=t.MapChart||fa,t.MapNavigation=t.MapNavigation||ga,t.MapView=t.MapView||ln,t.Projection=t.Projection||co,t.mapChart=t.Map=t.MapChart.mapChart,t.maps=t.MapChart.maps,t.geojson=_a.geojson,t.topo2geo=_a.topo2geo,_a.compose(t.Chart),Kc.compose(t.Axis,t.Chart,t.Legend),ga.
1compose(fa,t.Pointer,t.SVGRenderer),ln.compose(fa),t.product="Highmaps";let Df=t;return ht.default})(),(Ne=typeof window>"u"?this:window)._Highcharts=E(),Zr.exports=Ne._Highcharts},61857:function(Zr){var Ne,E;Ne=typeof window>"u"?this:window,E=Ne=>(()=>{"use strict";let E;var dn,Di={944:S=>{S.exports=Ne}},Zt={};function Pe(S){var D=Zt[S];if(void 0!==D)return D.exports;var L=Zt[S]={exports:{}};return Di[S](L,L.exports,Pe),L.exports}Pe.n=S=>{var D=S&&S.__esModule?()=>S.default:()=>S;return Pe.d(D,{a:D}),D},Pe.d=(S,D)=>{for(var L in D)Pe.o(D,L)&&!Pe.o(S,L)&&Object.defineProperty(S,L,{enumerable:!0,get:D[L]})},Pe.o=(S,D)=>Object.prototype.hasOwnProperty.call(S,D);var Nn={};Pe.d(Nn,{default:()=>Nt});var Vt=Pe(944),Kt=Pe.n(Vt);let zn={cluster:{enabled:!1,allowOverlap:!0,animation:{duration:500},drillToCluster:!0,minimumClusterSize:2,layoutAlgorithm:{gridSize:50,distance:40,kmeansThreshold:100},marker:{symbol:"cluster",radius:15,lineWidth:0,lineColor:"#ffffff"},dataLabels:{enabled:!0,format:"{point.clusterPointsAmount}",verticalAlign:"middle",align:"center",style:{color:"contrast"},inside:!0}},tooltip:{clusterFormat:"<span>Clustered points: {point.clusterPointsAmount}</span><br/>"}};var S;(S=dn||(dn={})).setLength=function(D,L,z){return Array.isArray(D)?(D.length=L,D):D[z?"subarray":"slice"](0,L)},S.splice=function(D,L,z,N,nt=[]){if(Array.isArray(D))return Array.isArray(nt)||(nt=Array.from(nt)),{removed:D.splice(L,z,...nt),array:D};let ot=Object.getPrototypeOf(D).constructor,H=D[N?"subarray":"slice"](L,L+z),Q=new ot(D.length-z+nt.length);return Q.set(D.subarray(0,L),0),Q.set(nt,L),Q.set(D.subarray(L+z),L+nt.length),{removed:H,array:Q}};let wn,{setLength:vn,splice:Pn}=dn,{fireEvent:Yn,objectEach:pn,uniqueKey:Ze}=Kt(),Ei=class{constructor(S={}){this.autoId=!S.id,this.columns={},this.id=S.id||Ze(),this.modified=this,this.rowCount=0,this.versionTag=Ze();let D=0;pn(S.columns||{},(L,z)=>{this.columns[z]=L.slice(),D=Math.max(D,L.length)}),this.applyRowCount(D)}applyRowCount(S){this.rowCount=S,pn(this.columns,(D,L)=>{D.length!==S&&(this.columns[L]=vn(D,S))})}deleteRows(S,D=1){if(D>0&&S<this.rowCount){let L=0;pn(this.columns,(z,N)=>{this.columns[N]=Pn(z,S,D).array,L=z.length}),this.rowCount=L}Yn(this,"afterDeleteRows",{rowIndex:S,rowCount:D}),this.versionTag=Ze()}getColumn(S,D){return this.columns[S]}getColumns(S,D){return(S||Object.keys(this.columns)).reduce((L,z)=>(L[z]=this.columns[z],L),{})}getRow(S,D){return(D||Object.keys(this.columns)).map(L=>this.columns[L]?.[S])}setColumn(S,D=[],L=0,z){this.setColumns({[S]:D},L,z)}setColumns(S,D,L){let z=this.rowCount;pn(S,(N,nt)=>{this.columns[nt]=N.slice(),z=N.length}),this.applyRowCount(z),L?.silent||(Yn(this,"afterSetColumns"),this.versionTag=Ze())}setRow(S,D=this.rowCount,L,z){let{columns:N}=this,nt=L?this.rowCount+1:D+1;pn(S,(ot,H)=>{let Q=N[H]||!1!==z?.addColumns&&Array(nt);Q&&(L?Q=Pn(Q,D,0,!0,[ot]).array:Q[D]=ot,N[H]=Q)}),nt>this.rowCount&&this.applyRowCount(nt),z?.silent||(Yn(this,"afterSetRows"),this.versionTag=Ze())}},{animObject:Fi}=Kt(),{cluster:jt}=zn,{addEvent:ze,defined:we,error:$i,isArray:si,isFunction:li,isObject:Bn,isNumber:un,merge:B,objectEach:Ft,relativeLength:ht,syncTimeout:t}=Kt(),ka={grid:function(S,D,L,z){let N,nt,ot,H,Q,ut={},lt=this.getGridOffset(),tt=this.getScaledGridSize(z);for(Q=0;Q<S.length;Q++){let xt=Rt(this,{x:S[Q],y:D[Q]});N=xt.x-lt.plotLeft,nt=xt.y-lt.plotTop,ot=Math.floor(N/tt),ut[H=Math.floor(nt/tt)+":"+ot]??(ut[H]=[]),ut[H].push({dataIndex:L[Q],x:S[Q],y:D[Q]})}return ut},kmeans:function(S,D,L,z){let It,N=[],nt=[],ot={},H=z.processedDistance||jt.layoutAlgorithm.distance,Q=z.iterations,ut=0,lt=!0,tt=0,xt=0,yt=[];z.processedGridSize=z.processedDistance;let Z=this.markerClusterAlgorithms?this.markerClusterAlgorithms.grid.call(this,S,D,L,z):{};for(let X in Z)Z[X].length>1&&(It=Ye(Z[X]),N.push({posX:It.x,posY:It.y,oldX:0,oldY:0,startPointsLen:Z[X].length,points:[]}));for(;lt;){for(let X of N)X.points.length=0;nt.length=0;for(let X=0;X<S.length;X++)tt=S[X],xt=D[X],(yt=this.getClusterDistancesFromPoint(N,tt,xt)).length&&yt[0].distance<H?N[yt[0].clusterIndex].points.push({x:tt,y:xt,dataIndex:L[X]}):nt.push({x:tt,y:xt,dataIndex:L[X]});for(let X=0;X<N.length;X++)1===N[X].points.length&&(yt=this.getClusterDistancesFromPoint(N,N[X].points[0].x,N[X].points[0].y))[1].distance<H&&(N[yt[1].clusterIndex].points.push(N[X].points[0]),N[yt[0].clusterIndex].points.length=0);lt=!1;for(let X=0;X<N.length;X++)It=Ye(N[X].points),N[X].oldX=N[X].posX,N[X].oldY=N[X].posY,N[X].posX=It.x,N[X].posY=It.y,(N[X].posX>N[X].oldX+1||N[X].posX<N[X].oldX-1||N[X].posY>N[X].oldY+1||N[X].posY<N[X].oldY-1)&&(lt=!0);Q&&(lt=ut<Q-1),ut++}for(let X=0,Wt=N.length;X<Wt;++X)ot["cluster"+X]=N[X].points;for(let X=0,Wt=nt.length;X<Wt;++X)ot["noise"+X]=[nt[X]];return ot},optimizedKmeans:function(S,D,L,z){let H,ut,lt,N=z.processedDistance||jt.layoutAlgorithm.gridSize,nt=this.getRealExtremes(),ot=(this.options.cluster||{}).marker,Q={};if(!this.markerClusterInfo||this.initMaxX&&this.initMaxX<nt.maxX||this.initMinX&&this.initMinX>nt.minX||this.initMaxY&&this.initMaxY<nt.maxY||this.initMinY&&this.initMinY>nt.minY)this.initMaxX=nt.maxX,this.initMinX=nt.minX,this.initMaxY=nt.maxY,this.initMinY=nt.minY,Q=this.markerClusterAlgorithms?this.markerClusterAlgorithms.kmeans.call(this,S,D,L,z):{},this.baseClusters=null;else{for(let tt of(this.baseClusters??(this.baseClusters={clusters:this.markerClusterInfo.cluster
1s,noise:this.markerClusterInfo.noise}),this.baseClusters.clusters)){for(let It of(tt.pointsOutside=[],tt.pointsInside=[],tt.data)){let yt=Rt(this,It),Z=Rt(this,tt);H=Math.sqrt(Math.pow(yt.x-Z.x,2)+Math.pow(yt.y-Z.y,2)),ut=N-(lt=tt.clusterZone?.marker?.radius?tt.clusterZone.marker.radius:ot?.radius?ot.radius:jt.marker.radius)>=0?N-lt:lt,H>lt+ut&&we(tt.pointsOutside)?tt.pointsOutside.push(It):we(tt.pointsInside)&&tt.pointsInside.push(It)}tt.pointsInside.length&&(Q[tt.id]=tt.pointsInside);let xt=0;for(let It of tt.pointsOutside)Q[tt.id+"_noise"+xt++]=[It]}for(let tt of this.baseClusters.noise)Q[tt.id]=tt.data}return Q}},Ee=[],Xn=0;function Li(S,D,L){S.attr({opacity:D}).animate({opacity:1},L)}function mn(S,D,L,z){for(let N of(gn(S,z,L,!0,!0),D))N.point?.destroy?.()}function gn(S,D,L,z,N){S.point&&(z&&S.point.graphic&&(S.point.graphic.show(),Li(S.point.graphic,D,L)),N&&S.point.dataLabel&&(S.point.dataLabel.show(),Li(S.point.dataLabel,D,L)))}function Ye(S){let D=S.length,L=0,z=0;for(let N=0;N<D;N++)L+=S[N].x,z+=S[N].y;return{x:L/D,y:z/D}}function pt(S,D){let L=[];return L.length=D,S.clusters.forEach(function(z){z.data.forEach(function(N){L[N.dataIndex]=N})}),S.noise.forEach(function(z){L[z.data[0].dataIndex]=z.data[0]}),L}function ci(){return Math.random().toString(36).substring(2,7)+"-"+Xn++}function Be(S,D,L){S.point&&(D&&S.point.graphic&&S.point.graphic.hide(),L&&S.point.dataLabel&&S.point.dataLabel.hide())}function fe(S){(S.point||S.target).firePointEvent("drillToCluster",S,function(D){let L=D.point||D.target,z=L.series,{xAxis:N,yAxis:nt,chart:ot}=z,{inverted:H,mapView:Q,pointer:ut}=ot;if(z.options.cluster?.drillToCluster&&L.clusteredData){let lt=L.clusteredData.map(At=>At.x).sort((At,Ot)=>At-Ot),tt=L.clusteredData.map(At=>At.y).sort((At,Ot)=>At-Ot),xt=lt[0],It=lt[lt.length-1],yt=tt[0],Z=tt[tt.length-1],X=Math.abs(.1*(It-xt)),Wt=Math.abs(.1*(Z-yt)),le=Math.min(xt,It)-X,Jt=Math.max(xt,It)+X,Ut=Math.min(yt,Z)-Wt,ge=Math.max(yt,Z)+Wt;if(Q)Q.fitToBounds({x1:le,x2:Jt,y1:Ut,y2:ge});else if(N&&nt){let At=N.toPixels(le),Ot=N.toPixels(Jt),de=nt.toPixels(Ut),_e=nt.toPixels(ge);H&&([At,Ot,de,_e]=[de,_e,At,Ot]),At>Ot&&([At,Ot]=[Ot,At]),de>_e&&([de,_e]=[_e,de]),ut&&(ut.zoomX=!0,ut.zoomY=!0),ot.transform({from:{x:At,y:de,width:Ot-At,height:_e-de}})}}})}function Et(S,D){let{chart:L,xAxis:z,yAxis:N}=S;return L.mapView?L.mapView.pixelsToProjectedUnits(D):{x:z?z.toValue(D.x):0,y:N?N.toValue(D.y):0}}function fo(S){let ut,lt,tt,D=this.chart,L=D.mapView,z=Fi(this.options.cluster?.animation),N=z.duration||500,nt=this.markerClusterInfo?.pointsState,ot=nt?.newState,H=nt?.oldState,Q=[],xt=0,It=0,yt=0,Z=!1,X=!1;if(H&&ot){let Wt=Rt(this,lt=ot[S.stateId]);It=Wt.x-(L?0:D.plotLeft),yt=Wt.y-(L?0:D.plotTop),1===lt.parentsId.length?(ut=H[ot?.[S.stateId].parentsId[0]],lt.point?.graphic&&ut.point?.plotX&&ut.point.plotY&&(ut.point.plotX!==lt.point.plotX||ut.point.plotY!==lt.point.plotY)&&(tt=lt.point.graphic.getBBox(),xt=lt.point.graphic?.isImg?0:tt.width/2,lt.point.graphic.attr({x:ut.point.plotX-xt,y:ut.point.plotY-xt}),lt.point.graphic.animate({x:It-(lt.point.graphic.radius||0),y:yt-(lt.point.graphic.radius||0)},z,function(){X=!0,ut.point?.destroy?.()}),lt.point.dataLabel?.alignAttr&&ut.point.dataLabel?.alignAttr&&(lt.point.dataLabel.attr({x:ut.point.dataLabel.alignAttr.x,y:ut.point.dataLabel.alignAttr.y}),lt.point.dataLabel.animate({x:lt.point.dataLabel.alignAttr.x,y:lt.point.dataLabel.alignAttr.y},z)))):0===lt.parentsId.length?(Be(lt,!0,!0),t(function(){gn(lt,.1,z,!0,!0)},N/2)):(Be(lt,!0,!0),lt.parentsId.forEach(function(le){H?.[le]&&(ut=H[le],Q.push(ut),ut.point?.graphic&&(Z=!0,ut.point.graphic.show(),ut.point.graphic.animate({x:It-(ut.point.graphic.radius||0),y:yt-(ut.point.graphic.radius||0),opacity:.4},z,function(){X=!0,mn(lt,Q,z,.7)}),ut.point.dataLabel&&-9999!==ut.point.dataLabel.y&&lt.point?.dataLabel?.alignAttr&&(ut.point.dataLabel.show(),ut.point.dataLabel.animate({x:lt.point.dataLabel.alignAttr.x,y:lt.point.dataLabel.alignAttr.y,opacity:.4},z))))}),t(function(){X||mn(lt,Q,z,.85)},N),Z||t(function(){mn(lt,Q,z,.1)},N/2))}}function W(){this.markerClusterSeriesData?.forEach(S=>{S?.destroy?.()}),this.markerClusterSeriesData=null}function Ct(){let S,D,L,z,N,nt,ot,H,Q,ut,lt,xt,It,yt,Z,X=this,{chart:Wt}=X,le=Wt.mapView,Jt=X.getColumn("x"),Ut=X.getColumn("y"),ge=X.options.cluster,At=X.getRealExtremes(),Ot=[],de=[],_e=[];
1if(le&&X.is("mappoint")&&Jt&&Ut&&X.options.data?.forEach((Ve,We)=>{let $e=X.projectPoint(Ve);$e&&(Jt[We]=$e.x,Ut[We]=$e.y)}),ge?.enabled&&Jt?.length&&Ut?.length&&!Wt.polar){lt=ge.layoutAlgorithm.type,(yt=ge.layoutAlgorithm).processedGridSize=ht(yt.gridSize||jt.layoutAlgorithm.gridSize,Wt.plotWidth),yt.processedDistance=ht(yt.distance||jt.layoutAlgorithm.distance,Wt.plotWidth),z=yt.kmeansThreshold||jt.layoutAlgorithm.kmeansThreshold;let Ve=yt.processedGridSize/2,We=Et(X,{x:0,y:0}),$e=Et(X,{x:Ve,y:Ve});N=Math.abs(We.x-$e.x),nt=Math.abs(We.y-$e.y);for(let St=0;St<Jt.length;St++)!X.dataMaxX&&(we(H)&&we(ot)&&we(ut)&&we(Q)?un(Ut[St])&&un(ut)&&un(Q)&&(H=Math.max(Jt[St],H),ot=Math.min(Jt[St],ot),ut=Math.max(Ut[St]||ut,ut),Q=Math.min(Ut[St]||Q,Q)):(H=ot=Jt[St],ut=Q=Ut[St])),Jt[St]>=At.minX-N&&Jt[St]<=At.maxX+N&&(Ut[St]||At.minY)>=At.minY-nt&&(Ut[St]||At.maxY)<=At.maxY+nt&&(Ot.push(Jt[St]),de.push(Ut[St]),_e.push(St));we(H)&&we(ot)&&un(ut)&&un(Q)&&(X.dataMaxX=H,X.dataMinX=ot,X.dataMaxY=ut,X.dataMinY=Q),xt=(It=(li(lt)?lt:X.markerClusterAlgorithms?lt&&X.markerClusterAlgorithms[lt]?X.markerClusterAlgorithms[lt]:Ot.length<z?X.markerClusterAlgorithms.kmeans:X.markerClusterAlgorithms.grid:()=>!1).call(this,Ot,de,_e,yt))?X.getClusteredData(It,ge):It,ge.animation&&X.markerClusterInfo?.pointsState?.oldState?(function(St){for(let In of Object.keys(St))St[In].point?.destroy?.()}(X.markerClusterInfo.pointsState.oldState),S=X.markerClusterInfo.pointsState.newState):S={},D=Jt.length,L=X.markerClusterInfo,xt&&(X.dataTable.modified=new Ei({columns:{x:xt.groupedXData,y:xt.groupedYData}}),X.hasGroupedData=!0,X.markerClusterInfo=xt,X.groupMap=xt.groupMap),wn.apply(this),xt&&X.markerClusterInfo&&(X.markerClusterInfo.clusters?.forEach(St=>{(Z=X.points[St.index]).isCluster=!0,Z.clusteredData=St.data,Z.clusterPointsAmount=St.data.length,St.point=Z,ze(Z,"click",fe)}),X.markerClusterInfo.noise?.forEach(St=>{St.point=X.points[St.index]}),ge.animation&&X.markerClusterInfo&&(X.markerClusterInfo.pointsState={oldState:S,newState:X.getPointsState(xt,L,D)}),ge.animation?this.hideClusteredData():this.destroyClusteredData(),this.markerClusterSeriesData=this.hasGroupedData?this.points:null)}else wn.apply(this)}function ve(S,D,L){let z=[];for(let N=0;N<S.length;N++){let nt=Rt(this,{x:D,y:L}),ot=Rt(this,{x:S[N].posX,y:S[N].posY}),H=Math.sqrt(Math.pow(nt.x-ot.x,2)+Math.pow(nt.y-ot.y,2));z.push({clusterIndex:N,distance:H})}return z.sort((N,nt)=>N.distance-nt.distance)}function Vn(S,D){let lt,tt,xt,It,yt,Z,X,Wt,le,Jt,Ut,ge,L=this.options.data,z=[],N=[],nt=[],ot=[],H=[],Q=Math.max(2,D.minimumClusterSize||2),ut=0;if(li(D.layoutAlgorithm.type)&&!this.isValidGroupedDataObject(S))return $i("Highcharts marker-clusters module: The custom algorithm result is not valid!",!1,this.chart),!1;for(let At in S)if(S[At].length>=Q){if(xt=S[At],lt=ci(),yt=xt.length,D.zones)for(let Ot=0;Ot<D.zones.length;Ot++)yt>=D.zones[Ot].from&&yt<=D.zones[Ot].to&&((Ut=D.zones[Ot]).zoneIndex=Ot,Jt=D.zones[Ot].marker,ge=D.zones[Ot].className);le=Ye(xt),"grid"!==D.layoutAlgorithm.type||D.allowOverlap?X={x:le.x,y:le.y}:(Z=this.options.marker||{},X=this.preventClusterCollisions({x:le.x,y:le.y,key:At,groupedData:S,gridSize:this.getScaledGridSize(D.layoutAlgorithm),defaultRadius:Z.radius||3+(Z.lineWidth||0),clusterRadius:Jt&&Jt.radius?Jt.radius:(D.marker||{}).radius||jt.marker.radius}));for(let Ot=0;Ot<yt;Ot++)xt[Ot].parentStateId=lt;if(nt.push({x:X.x,y:X.y,id:At,stateId:lt,index:ut,data:xt,clusterZone:Ut,clusterZoneClassName:ge}),z.push(X.x),N.push(X.y),H.push({options:{formatPrefix:"cluster",dataLabels:D.dataLabels,marker:B(D.marker,{states:D.states},Jt||{})}}),L?.length)for(let Ot=0;Ot<yt;Ot++)Bn(L[xt[Ot].dataIndex])&&(xt[Ot].options=L[xt[Ot].dataIndex]);ut++,Jt=null}else for(let Ot=0;Ot<S[At].length;Ot++)tt=S[At][Ot],lt=ci(),Wt=null,It=L?.[tt.dataIndex],z.push(tt.x),N.push(tt.y),tt.parentStateId=lt,ot.push({x:tt.x,y:tt.y,id:At,stateId:lt,index:ut,data:S[At]}),Wt=It&&"object"==typeof It&&!si(It)?B(It,{x:tt.x,y:tt.y}):{userOptions:It,x:tt.x,y:tt.y},H.push({options:Wt}),ut++;return{clusters:nt,noise:ot,groupedXData:z,groupedYData:N,groupMap:H}}function at(){let{chart:S,xAxis:D,yAxis:L}=this,z=0;return{plotLeft:z=D&&this.dataMinX&&this.dataMaxX?D.toPixels(D.reversed?this.dataMaxX:this.dataMinX):S.plotLeft,plotTop:L&&this.dataMinY&&this.dataMaxY?L.toPixels(L.reversed?this.dataMinY:this.dataMaxY):S.plotTop}}function Y(S,D,L){let z,N,nt=D?pt(D,L):[],ot=pt(S,L),H={};
1Ee=[],S.clusters.forEach(Q=>{H[Q.stateId]={x:Q.x,y:Q.y,id:Q.stateId,point:Q.point,parentsId:[]}}),S.noise.forEach(Q=>{H[Q.stateId]={x:Q.x,y:Q.y,id:Q.stateId,point:Q.point,parentsId:[]}});for(let Q=0;Q<ot.length;Q++)z=ot[Q],N=nt[Q],z?.parentStateId&&N?.parentStateId&&-1===H[z.parentStateId]?.parentsId.indexOf(N.parentStateId)&&(H[z.parentStateId].parentsId.push(N.parentStateId),-1===Ee.indexOf(N.parentStateId)&&Ee.push(N.parentStateId));return H}function _t(){let S=this.chart,D=S.mapView?0:S.plotLeft,L=Et(this,{x:D,y:S.mapView?0:S.plotTop}),z=Et(this,{x:D+S.plotWidth,y:D+S.plotHeight}),N=L.x,nt=z.x,ot=L.y,H=z.y;return{minX:Math.min(N,nt),maxX:Math.max(N,nt),minY:Math.min(ot,H),maxY:Math.max(ot,H)}}function wt(S){let D=this.xAxis,L=this.chart.mapView,z=S.processedGridSize||jt.layoutAlgorithm.gridSize,N=!0,nt=1,ot=1;this.gridValueSize||(this.gridValueSize=L?z/L.getScale():Math.abs(D.toValue(z)-D.toValue(0)));let H=+(z/(L?this.gridValueSize*L.getScale():D.toPixels(this.gridValueSize)-D.toPixels(0))).toFixed(14);for(;N&&1!==H;){let Q=Math.pow(2,nt);H>.75&&H<1.25?N=!1:H>=1/Q&&H<1/Q*2?(N=!1,ot=Q):H<=Q&&H>Q/2&&(N=!1,ot=1/Q),nt++}return z/ot/H}function _o(){let S=this.markerClusterSeriesData,D=this.markerClusterInfo?.pointsState?.oldState,L=Ee.map(z=>D?.[z].point?.id||"");S?.forEach(z=>{z&&-1!==L.indexOf(z.id)?(z.graphic&&z.graphic.hide(),z.dataLabel&&z.dataLabel.hide()):z?.destroy?.()})}function Ra(S){let D=!1;return!!Bn(S)&&(Ft(S,L=>
1{if(D=!0,si(L)&&L.length){for(let z=0;z<L.length;z++)if(!Bn(L[z])||!L[z].x||!L[z].y)return void(D=!1)}else D=!1}),D)}function q(S){let le,Jt,Ut,ge,At,Ot,de,_e,Ve,We,$e,St,[D,L]=S.key.split(":").map(parseFloat),z=S.gridSize,N=S.groupedData,nt=S.defaultRadius,ot=S.clusterRadius,H=L*z,Q=D*z,ut=Rt(this,S),lt=[],tt=this.options.cluster?.marker,xt=this.options.cluster?.zones,It=this.getGridOffset(),yt=ut.x,Z=ut.y,X=0,Wt=0;yt-=It.plotLeft,Z-=It.plotTop;for(let $t=1;$t<5;$t++)for(de=0,Ut=$t%2?-1:1,ge=$t<3?-1:1,At=Math.floor((yt+Ut*ot)/z),St=[(Ot=Math.floor((Z+ge*ot)/z))+":"+At,Ot+":"+L,D+":"+At];de<St.length;de++)-1===lt.indexOf(St[de])&&St[de]!==S.key&&lt.push(St[de]);for(let $t of lt)if(N[$t]){N[$t].posX||(We=Ye(N[$t]),N[$t].posX=We.x,N[$t].posY=We.y);let ji=Rt(this,{x:N[$t].posX||0,y:N[$t].posY||0});if(le=ji.x-It.plotLeft,Jt=ji.y-It.plotTop,[Ve,_e]=$t.split(":").map(parseFloat),xt){X=N[$t].length;for(let Tn=0;Tn<xt.length;Tn++)X>=xt[Tn].from&&X<=xt[Tn].to&&(Wt=we(xt[Tn].marker?.radius)?xt[Tn].marker.radius||0:tt?.radius?tt.radius:jt.marker.radius)}N[$t].length>1&&0===Wt&&tt?.radius?Wt=tt.radius:1===N[$t].length&&(Wt=nt),$e=ot+Wt,Wt=0,_e!==L&&Math.abs(yt-le)<$e&&(yt=_e-L<0?H+ot:H+z-ot),Ve!==D&&Math.abs(Z-Jt)<$e&&(Z=Ve-D<0?Q+ot:Q+z-ot)}let In=Et(this,{x:yt+It.plotLeft,y:Z+It.plotTop});return N[S.key].posX=In.x,N[S.key].posY=In.y,In}function Rt(S,D){let{chart:L,xAxis:z,yAxis:N}=S;return L.mapView?L.mapView.projectedUnitsToPixels(D):{x:z?z.toPixels(D.x):0,y:N?N.toPixels(D.y):0}}let{animObject:Wn}=Kt(),{defaultOptions:Ke}=Kt(),{composed:oe}=Kt(),{addEvent:V,defined:Xe,error:Un,isFunction:Aa,merge:hi,pushUnique:Fe,syncTimeout:On}=Kt();function Gi(){let S=this.chart,D=0;for(let L of S.series)L.markerClusterInfo&&(D=Wn((L.options.cluster||{}).animation).duration||0);On(()=>{S.tooltip&&S.tooltip.destroy()},D)}function Kr(){for(let S of this.series||[])if(S.markerClusterInfo){let L=((S.markerClusterInfo||{}).pointsState||{}).oldState;if((S.options.cluster||{}).animation&&S.markerClusterInfo&&0===(S.chart.pointer?.pinchDown||[]).length&&"pan"!==((S.xAxis||{}).eventArgs||{}).trigger&&L&&Object.keys(L).length){for(let z of S.markerClusterInfo.clusters)S.animateClusterPoint(z);for(let z of S.markerClusterInfo.noise)S.animateClusterPoint(z)}}}function ts(S){let D=(((S.point||S.target).series.options.cluster||{}).events||{}).drillToCluster;Aa(D)&&D.call(this,S)}function Sa(){if(this.dataGroup)return Un("Highcharts marker-clusters module: Running `Point.update` when point belongs to clustered series is not supported.",!1,this.series.chart),!1}function Da(){let S=(this.options.cluster||{}).drillToCluster;if(this.markerClusterInfo&&this.markerClusterInfo.clusters)for(let D of this.markerClusterInfo.clusters)D.point&&D.point.graphic&&(D.point.graphic.addClass("highcharts-cluster-point"),S&&D.point&&(D.point.graphic.css({cursor:"pointer"}),D.point.dataLabel&&D.point.dataLabel.css({cursor:"pointer"})),Xe(D.clusterZone)&&D.point.graphic.addClass(D.clusterZoneClassName||"highcharts-cluster-zone-"+D.clusterZone.zoneIndex))}function bo(S,D,L,z){let N=L/2,nt=z/2,ot=E.arc(S+N,D+nt,N-4,nt-4,{start:.5*Math.PI,end:2.5*Math.PI,open:!1}),H=E.arc(S+N,D+nt,N-3,nt-3,{start:.5*Math.PI,end:2.5*Math.PI,innerR:N-2,open:!1});return E.arc(S+N,D+nt,N-1,nt-1,{start:.5*Math.PI,end:2.5*Math.PI,innerR:N,open:!1}).concat(H,ot)}(Ke.plotOptions||{}).series=hi((Ke.plotOptions||{}).series,zn);let Mt=Kt();(function(S,D,L,z){if(Fe(oe,"MarkerClusters")){let N=z.prototype.pointClass,{scatter:nt}=z.types;V(S,"setExtremes",Gi),V(D,"render",Kr),V(N,"drillToCluster",ts),V(N,"update",Sa),V(z,"afterRender",Da),nt&&function(S,D){let L=D.prototype;!L.markerClusterAlgorithms&&(wn=L.generatePoints,L.markerClusterAlgorithms=ka,L.animateClusterPoint=fo,L.destroyClusteredData=W,L.generatePoints=Ct,L.getClusterDistancesFromPoint=ve,L.getClusteredData=Vn,L.getGridOffset=at,L.getPointsState=Y,L.getRealExtremes=_t,L.getScaledGridSize=wt,L.hideClusteredData=_o,L.isValidGroupedDataObject=Ra,L.preventClusterCollisions=q,ze(D,"destroy",L.destroyClusteredData),S.plotOptions&&(S.plotOptions.series=B(S.plotOptions.series,zn)))}(L,nt)}})(Mt.Axis,Mt.Chart,Mt.defaultOptions,Mt.Series),function(S){(E=S.prototype.symbols).cluster=bo}(Mt.SVGRenderer);let Nt=Kt();return Nn.default}
1)(),Zr.exports=E(Ne._Highcharts)}}]);

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.