PageSourceSearch

https://tp.seerene.com/newui/en/428.f9c8db91a47052eb.js

js seerene.com collected 2026-10-03 19:32:30 UTC 52,782 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkseerene_client=self.webpackChunkseerene_client||[]).push([[428],{98948($,S,r){r.d(S,{p:()=>O});var p=r(5964),e=r(96354),b=r(25558),v=r(10772),s=r(11869),P=r(96562),M=r(46463),D=r(59608);class O{static reportKey(g){return`spaces/${g}/selectedReport`}static getSpaceChildIds(g,u){const a=this.getSpacesByParentId(u);return this._getSpaceChildIds(g,a)}static getVisibleSpaceIds(g,u){const a=P.BF.listToMap(u,"id");let l=a.get(g),h=a.get(l?.parentId);for(;h?.canView;)l=h,h=a.get(l.parentId);return l?this.getSpaceChildIds(l.id,u):[]}static mapToOption(g,u){const a=g.depth>0?"\u2003".repeat(g.depth-1)+"\u21b3 ":"";return{id:g.id,disabled:!u,name:a+g.name}}static getSpacesByParentId(g){const u=new Map;for(const a of g||[]){const l=u.get(a.parentId)||[];l.push(a),u.set(a.parentId,l)}return u}static getEntitiesByPortfolioId(g){const u=new Map,a=new Map;for(const l of g)u.set(l.id,l.entities),a.set(l.id,l.entities.length);return{entitiesByPortfolioId:u,nodeCounts:a}}static countNodes(g,u,a){let l=0;for(const h of g||[])l+=1,h.entityType===v.qE.PORTFOLIO&&(l+=this.countNodes(u.get(h.entityId),u,a));return l}static entitiesHaveSplitting(g,u){for(const a of g||[])if(a.splitting.type!==v.t5.STATIC||a.entityType===v.qE.PORTFOLIO&&this.entitiesHaveSplitting(u.get(a.entityId),u))return!0;return!1}static getUserSubscriptions(g,u){const a={};for(const l of g.subscriptions)l.userId===u&&(a[l.type]=!0);return a}static getSelectableSpaces(g,u,a){return g.select(D.Gw.getSpacesIfLoaded).pipe((0,p.p)(M.a4),(0,b.n)(l=>u.extendWithRights(s.Uk.SPACE,l)),(0,e.T)(l=>{if(a){const h=O.getVisibleSpaceIds(a,l);l.forEach(f=>f.canEdit=f.canEdit&&h.includes(f.id))}return l.map(h=>O.mapToOption(h,h.canEdit))}))}static mapPortfolioLinks(g,u,a){const l=[],h=O.mapPortfolioLinksCategory("report",g,u,a);h.length&&l.push({header:a.get("report"),entries:h});const f=O.mapPortfolioLinksCategory("portfolio",g,u,a);return f.length&&l.push({header:a.get("portfolio"),entries:f}),l}static buildReportOptions(g,u){const a=P.BF.groupBy(g,"sourceSpaceId");let l=[];for(const h of u){const f=a.get(h.id);f&&(l.push({name:h.name,isLabel:!0}),l=l.concat(f.map(T=>({...T,id:T.reportId,name:T.reportName,label:h.name}))))}return l}static mapPortfolioLinksCategory(g,u,a,l){return u.filter(h=>h.type===g).map(h=>{if(h.name){let T=P.$x.translate(h.name);const x=a.find(y=>y.id===h.spaceId)?.name;return x&&(T+=` (Space: ${x})`),T}return l.get("report"===h.type?"noAccessToReport":"noAccessToSpacePortfolio")})}static _getSpaceChildIds(g,u){let a=[g];for(const l of u.get(g)||[])a=a.concat(this._getSpaceChildIds(l.id,u));return a}}},73195($,S,r){r.d(S,{g:()=>b});var p=r(35547),e=r(21518);let b=(()=>{class v{get directory(){return this.data.location}static{this.\u0275fac=function(M){return new(M||v)}}static{this.\u0275cmp=p.VBU({type:v,selectors:[["tpe-map-dir-tooltip"]],inputs:{data:"data"},standalone:!1,features:[p.Jv_([])],decls:5,vars:1,consts:[[1,"dir"],[1,"dir-name"]],template:function(M,D){1&M&&(p.j41(0,"p",0)(1,"mat-icon"),p.EFF(2,"folder"),p.k0s(),p.j41(3,"span",1),p.EFF(4),p.k0s()()),2&M&&(p.R7$(4),p.JRh(D.directory))},dependencies:[e.An],styles:["[_nghost-%COMP%]   .dir[_ngcontent-%COMP%]{display:flex;font-weight:700;line-height:16px;margin:0;overflow:hidden}[_nghost-%COMP%]   .dir[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;line-height:16px;margin-right:6px}[_nghost-%COMP%]   .dir[_ngcontent-%COMP%]   .dir-name[_ngcontent-%COMP%]{overflow:hidden;word-break:break-all}"]})}}return v})()},36895($,S,r){r.d(S,{M:()=>N});var p=r(21413),e=r(56977),b=r(36891),v=r(96562),s=r(11172),P=r(21659),M=r(35547),D=r(17705);const O=["tooltipContent"];let N=(()=>{class g{constructor(a,l,h){this.mapInteraction=a,this.tooltipService=l,this.cdr=h,this.tooltipActive=!1,this.tooltipHidden=!1,this.tooltipLoading=!0,this.showTooltipLoader=!1,this.tooltipOffset={top:0,left:0},this.tooltipFixed=!1,this.lastPosition={top:0,left:0},this.unsubscribe$=new p.B}onContentSizeChanged(){this.updatePosition(v.BF.deepCopy(this.lastPosition),!0)}ngOnInit(){this.unsubscribe$=new p.B}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}setupMapInteraction(){this.mapInteraction.showTooltip.pipe((0,e.Q)(this.unsubscribe$)).subscribe(a=>this.showTooltip(a)),this.mapInteraction.hideTooltip.pipe((0,e.Q)(this.unsubscribe$)).subscribe(a=>this.hideTooltip(a)),this.mapInteraction.fixTooltip.pipe((0,e.Q)(this.unsubscribe$)).subscribe(a=>{this.onFixTooltip(a)}),this.mapInteraction.unfixTooltip.pipe((0,e.Q)(this.unsubscribe$)).subscribe(()=>{this.tooltipFixed=!1}),this.mapInteraction.reloadMap.pipe((0,e.Q)(this.unsubscribe$)).subscribe(()=>{this.tooltipService.invalidate()})}onFixTooltip(a){this.showTooltip(a),this.fixedItemId===a.itemId||this.mapInteraction.selectedNodeId===a.itemId?(this.tooltipFixed=!1,this.mapInteraction.hideCodeUnitDetails.emit()):this.tooltipFixed=!0,this.fixedItemId=a.itemId}loadTooltipData(a){this.tooltipActive=!0,this.tooltipLoading=!0,this.tooltipHidden=!0,this.loadingTimer&&window.clearTimeout(this.loadingTimer),this.loadingTimer=window.setTimeout(()=>{this.showTooltipLoader=this.tooltipLoading,this.cdr.detectChanges(),setTimeout(()=>{this.tooltipHidden=!1,this.onContentSizeChanged()})},500),this.cancelLoading(),this.timer=window.setTimeout(()=>{this.tooltipSub=this.loadTooltipContent(a)},100)}set fixedItemId(a){this._fixedItemId=this.tooltipFixed?a:null}get fixedItemId(){return this.tooltipFixed?this._fixedItemId:null}showTooltip(a){if(!this.tooltipFixed||!this.tooltipActive||a.forceUpdate){if(this.tooltipActive&&this.currentItemId===a.itemId)return void this.updatePosition(a.position,a.forceUpdate);this.lastPosition=v.BF.deepCopy(a.position),this.currentItemId=a.itemId,this.loadTooltipData(a)}}cancelLoading(){window.clearTimeout(this.timer),this.tooltipSub&&(this.tooltipSub.unsubscribe(),this.tooltipSub=null)}hideTooltip(a){this.tooltipFixed&&!a||(this.cancelLoading(),this.tooltipActive=!1,this.tooltipFixed=!1)}updatePosition(a,l=!1){if(this.tooltipFixed&&!l||!a||!a.top||!a.left||(this.lastPosition=v.BF.deepCopy(a),!this.tooltipContent))return;const f=this.tooltipContent.nativeElement.clientWidth;a.top=a.top-this.tooltipContent.nativeElement.clientHeight-10,a.left
1=a.left-f/2,this.tooltipOffset=a,this.cdr.detectChanges()}overrideMetricDataFromTreemap(a,l,h){if(!this.visualization)return console.error("tooltip error: visualization not set."),!1;const f=this.visualization.decodedMetricDataDeltaV2(l,!0);return!!f&&(this.mapDimensions(f,a),a.height&&a.color&&a.height.name===a.color.name&&(a.color.compareValue=a.height.compareValue),!0)}mapDimensions(a,l){for(const h of[b.d.COLOR,b.d.AREA,b.d.HEIGHT]){const{value:f,compareValue:T}=a[h];f===P.U?l[h]=null:(l[h].value=f,l[h].compareValue=void 0!==T?T===P.U?0:T:P.U)}}static{this.\u0275fac=function(l){return new(l||g)(M.rXU(s.Q6),M.rXU(s.m0),M.rXU(D.gRc))}}static{this.\u0275dir=M.FsC({type:g,viewQuery:function(l,h){if(1&l&&M.GBs(O,5),2&l){let f;M.mGM(f=M.lsd())&&(h.tooltipContent=f.first)}},inputs:{visualization:"visualization"}})}}return g})()},21659($,S,r){r.d(S,{U:()=>F,d:()=>G});var p=r(46463),e=r(96562),b=r(34373),v=r(11172),s=r(35547),P=r(21518),M=r(49769),D=r(52920),O=r(16038),N=r(93282),g=r(6085);const u=()=>[];function a(m,w){if(1&m&&(s.j41(0,"span",13),s.EFF(1),s.nI1(2,"humanizeNumber"),s.k0s()),2&m){const d=s.XpG().$implicit;s.R7$(),s.JRh(s.bMT(2,1,d.value))}}function l(m,w){1&m&&(s.j41(0,"mat-icon",16),s.EFF(1,"plusminus"),s.k0s())}function h(m,w){1&m&&(s.j41(0,"span"),s.EFF(1,"+"),s.k0s())}function f(m,w){if(1&m&&(s.j41(0,"span",14)(1,"span"),s.EFF(2,"\xa0("),s.k0s(),s.nVh(3,l,2,0,"mat-icon",16),s.nVh(4,h,2,0,"span"),s.EFF(5),s.nI1(6,"humanizeNumber"),s.j41(7,"span"),s.EFF(8,")"),s.k0s()()),2&m){const d=s.XpG().$index,C=s.XpG();s.Y8G("ngClass",C.deltaState[d].orientation),s.R7$(3),s.vxM(C.isDeltaOrientationNeutral(d)?3:-1),s.R7$(),s.vxM(C.deltaState[d].value>0?4:-1),s.R7$(),s.SpI(" ",s.bMT(6,4,C.deltaState[d].value)," ")}}function T(m,w){if(1&m&&(s.j41(0,"div",5)(1,"div",8)(2,"mat-icon"),s.EFF(3),s.k0s()(),s.j41(4,"div",9)(5,"div",10)(6,"span",11)(7,"tooltip-if-ellipsis"),s.EFF(8),s.k0s()(),s.j41(9,"span",12),s.nVh(10,a,3,3,"span",13),s.nVh(11,f,9,6,"span",14),s.k0s()(),s.j41(12,"div",15),s.EFF(13),s.k0s()()()),2&m){const d=w.$implicit,C=w.$index,E=s.XpG();s.R7$(3),s.JRh(d.iconName),s.R7$(5),s.JRh(d.longName),s.R7$(2),s.vxM(d?10:-1),s.R7$(),s.vxM(E.hasDelta&&E.deltaState[C]?11:-1),s.R7$(2),s.JRh(d.unit)}}function x(m,w){if(1&m&&(s.j41(0,"div",6)(1,"a",17),s.pXf(2,0),s.k0s()()),2&m){const d=s.XpG();s.R7$(),s.Y8G("href",d.codeUrl,s.B4B)}}function y(m,w){if(1&m&&(s.j41(0,"div",6)(1,"a",17),s.EFF(2),s.k0s()()),2&m){const d=w.$implicit,C=s.XpG();s.R7$(),s.Y8G("href",d.url,s.B4B),s.R7$(),s.JRh(C.translate(d.name))}}function V(m,w){if(1&m&&(s.j41(0,"div",7)(1,"span"),s.pXf(2,1),s.k0s(),s.EFF(3),s.k0s()),2&m){const d=s.XpG();s.R7$(3),s.JRh(d.data.notSeenSince)}}const F=-1;let G=(()=>{class m{constructor(d){this.params=d,this.noExtension=!1,this.deltaState=[],this.metricData=[],this.translate=e.$x.translate}ngOnChanges(d){this.hasDelta=this.params.get("compare",!1),this.data&&(this.processMetricData(),this.processFileLocation(),this.processValues(),this.hasDelta&&this.processDelta(),this.getCodeURL())}isDeltaOrientationNeutral(d){return!!this.deltaState[d]&&this.deltaState[d].orientation===b.n.NEUTRAL}copyFileName(d){d.preventDefault(),d.clipboardData.setData("text/plain",`${this.fileName}${this.fileExtension}`)}processMetricData(){if(this.metricData=[],(0,p.a4)(this.data.color?.value)&&this.metricData.push({...this.data.color,iconName:"opacity"}),(0,p.a4)(this.data.height?.value)&&(this.metricData[0]&&this.metricData[0].name===this.data.height.name?this.metricData[0].iconName="stacked_bar_chart":this.metricData.push({...this.data.height,iconName:"height"})),(0,p.a4)(this.data.area?.value)){const d=this.metricData.map(C=>C.name);-1===d.indexOf(this.data.area.name)?this.metricData.push({...this.data.area,iconName:"select_all"}):1===d.length&&(this.metricData[0].iconName="view_in_ar")}}processFileLocation(){const d=this.data.location.split("/").pop().split(".");if(this.noExtension)return this.fileExtension=null,void(this.fileName=d.join("."));this.fileExtension="."+d.pop(),this.fileName=d.join(".")}processDelta(){this.deltaState=[];for(const d of this.metricData){const C=d.compareValue||0;if(C===F){this.deltaState.push(null);continue}const E=d.value-C,I=b.G.getKpiDeltaOrientation(E,d.inverted);this.deltaState.push({value:I===b.n.NEUTRAL?0:E,orientation:I})}}processValues(){for(const d of this.metricData)d.isFloat||(d.value=Math.round(d.value),d.compareValue>0&&(d.compareValue=Math.round(d.compareValue)))}getCodeURL(){if(this.data.stringMetrics)for(const d of Object.keys(this.data.stringMetrics))this.data.stringMetrics[d].find(C=>"Location#Web"===C)&&(this.codeUrl=d)}static{this.\u0275fac=function(C){return new(C||m)(s.rXU(v.tN))}}static{this.\u0275cmp=s.VBU({type:m,selectors:[["tpe-map-unit-tooltip"]],inputs:{data:"data",noExtension:"noExtension"},standalone:!1,features:[s.Jv_([]),s.OA$],decls:12,vars:5,consts:()=>{let d,C;return d="View Source Code",C="Not seen since: ",[d,C,["fxLayout","column"],[1,"file",3,"copy"],[1,"file-name"],["fxLayout","row",1,"metric"],[1,"code-url"],[1,"ghost-info"],["fxFlex","nogrow","fxLayoutAlign","center center",1,"category-icon"],["fxLayout","column","fxLayoutAlign","center","fxFlex","auto",1,"metric-column"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","auto",1,"name"],["fxFlex","nogrow",1,"value-wrap"],[1,"value"],["fxFlex","nogrow","fxLayout","row",1,"delta",3,"ngClass"],[1,"unit-name"],["mat-font-library","seerene-iconset"],["target","_blank",3,"href"]]},template:function(C,E){1&C&&(s.j41(0,"div",2)(1,"div",3),s.bIt("copy",function(j){return E.copyFileName(j)}),s.j41(2,"span",4),s.EFF(3),s.k0s(),s.j41(4,"span"),s.EFF(5),s.k0s()(),s.Z7z(6,T,14,5,"div",5,s.fX1),s.nVh(8,x,3,1,"div",6),s.Z7z(9,y,3,2,"div",6,s.fX1),s.nVh(11,V,4,1,"div",7),s.k0s()),2&C&&(s.R7$(3),s.JRh(E.fileName),s.R7$(2),s.JRh(E.fileExtension),s.R7$(),s.Dyx(E.metricData),s.R7$(2),s.vxM(E.codeUrl&&!E.data.notSeenSince?8:-1),s.R7$(),s.Dyx(E.data.links||s.lJ4(4,u)),s.R7$(2),s.vxM(E.data.notSeenSince?11:-1))},dependencies:[P.An,M.YU,D.DJ,D.sA,D.UI,O.PW,N.f,g.g],styles:[".file[_ng
1content-%COMP%]{display:flex;font-size:12px;font-weight:500;margin:0;overflow:hidden;padding-bottom:4px;-webkit-user-select:all;user-select:all}.file[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-icon[_ngcontent-%COMP%]{background-color:#0000000f;color:#0000008a;margin-left:-8px;margin-right:4px;min-height:38px;width:24px}.category-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;line-height:16px}.metric[_ngcontent-%COMP%]{margin-bottom:1px}.metric[_ngcontent-%COMP%]   .metric-column[_ngcontent-%COMP%]{font-size:12px;width:calc(100% - 32px)}.metric[_ngcontent-%COMP%]:not(:last-child)   .metric-column[_ngcontent-%COMP%]{box-shadow:0 1px #0000001f}.metric[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.metric[_ngcontent-%COMP%]   .value-wrap[_ngcontent-%COMP%]{padding-left:8px}.metric[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%], .metric[_ngcontent-%COMP%]   .delta[_ngcontent-%COMP%]{font-weight:500}.metric[_ngcontent-%COMP%]   .value.positive[_ngcontent-%COMP%], .metric[_ngcontent-%COMP%]   .delta.positive[_ngcontent-%COMP%]{color:#00aa5e}.metric[_ngcontent-%COMP%]   .value.negative[_ngcontent-%COMP%], .metric[_ngcontent-%COMP%]   .delta.negative[_ngcontent-%COMP%]{color:#71237c}.metric[_ngcontent-%COMP%]   .value.neutral[_ngcontent-%COMP%], .metric[_ngcontent-%COMP%]   .delta.neutral[_ngcontent-%COMP%]{color:#0000008a}.metric[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .metric[_ngcontent-%COMP%]   .delta[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:13px;height:13px;width:13px;line-height:13px;margin:0 -1px;position:relative;top:1px}
1.metric[_ngcontent-%COMP%]   .unit-name[_ngcontent-%COMP%]{color:#0000008a;display:inline-block}.code-url[_ngcontent-%COMP%], .ghost-info[_ngcontent-%COMP%]{font-size:12px;margin-top:6px}.ghost-info[_ngcontent-%COMP%]{color:#e62325}"]})}}return m})()},91149($,S,r){r.d(S,{Z:()=>U,K:()=>we});var p=r(85802),e=r(35547),b=r(69764),v=r(1163),s=r(43978),P=r(96562),M=r(11172);class D{constructor(c,t){this.fixedClassBounds=!1,this._inverted=!1,this.toFloat=function(i){return[i[0]/255,i[1]/255,i[2]/255,i[3]/255]},this.mappingColors=c,this.classBoundsDefined=!!t,this.classBounds=t,this.classBounds&&(this.fixedClassBounds=!0)}get boundariesRounded(){return this.maxValue>=this.mappingColors.length}get maxValue(){return this._maxValue}set maxValue(c){if(this.maxValue!==c){if(void 0===c)throw new Error("Color max value undefined. Is the hierarchy fully initialized?");this._maxValue=c,this.updateClassBounds()}}set inverted(c){this._inverted!==c&&(this._inverted=c,this.mappingColors.reverse())}get inverted(){return this._inverted}get colorLegend(){if(void 0===this._maxValue||void 0===this.minValue)throw new Error("Color min or max value undefined. Is the hierarchy fully initialized?");const c=this.mappingColors,t=[];this._maxValue!==this.minValue&&!this.hasDiscreteValues&&t.push({color:null,value:this.minValue});const i=this.classBounds.slice(0);if(0===i.length||this.maxValue>i[i.length-1]){const _=this.boundariesRounded?Math.ceil(this.maxValue):this.maxValue;i.push(_)}const o=this.classIndex(this.maxValue)+1;for(let _=0;_<o;_++)t.unshift({color:c[_],value:i[_]});return t}get hasDiscreteValues(){const c=this.classBounds.every(o=>Number.isInteger(o)),t=Number.isInteger(this.maxValue)&&Number.isInteger(this.minValue);return c&&t&&this.classBounds[0]===this.minValue}updateClassBounds(){if(this.fixedClassBounds||(this.classBounds=[],0===this.maxValue))return;const c=this.mappingColors.length;for(let t=0;t<c-1;t++){let i=this.maxValue/c*(t+1);this.boundariesRounded&&(i=Math.ceil(i)),this.classBounds.push(i)}}classIndex(c){const t=this.classBounds.length;for(let i=0;i<t;i++)if(c<=this.classBounds[i])return i;return t}}var O=r(17705),N=r(99354),g=r(67575),u=r(21413),a=r(29340),l=r(88834),h=r(92367),f=r(25596),T=r(21518),x=r(52920),y=r(93282);let V=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-map-area-legend"]],inputs:{mappingEntry:"mappingEntry"},standalone:!1,decls:5,vars:2,consts:[[1,"legend-item-kpi","seerene-qa-area-legend-kpi"],[1,"legend-item-kpi-unit","seerene-qa-area-legend-kpi-unit"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"tooltip-if-ellipsis"),e.EFF(2),e.k0s()(),e.j41(3,"div",1),e.EFF(4),e.k0s()),2&i&&(e.R7$(2),e.JRh(o.mappingEntry.name),e.R7$(2),e.SpI(" ",o.mappingEntry.unit,"\n"))},dependencies:[y.f],styles:[".legend-item-kpi[_ngcontent-%COMP%]{color:#000000de;font-size:12px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-item-kpi-unit[_ngcontent-%COMP%]{color:#0000008a;font-size:12px}.legend-value[_ngcontent-%COMP%]{color:#0000008a;font-size:10px;font-weight:400}.outline[_ngcontent-%COMP%]{border:1px solid #bdbdbd}  .map-legend-tooltip{white-space:pre-line}.legend-items[_ngcontent-%COMP%]{margin-bottom:4px}.legend-items[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]})}}return n})(),F=(()=>{class n{constructor(){this.colorValues=[],this.actualColors=[]}ngOnChanges(t){t.colors&&(this.actualColors=this.colors.filter(i=>!!i.color),this.colorValues=this.colors.map(i=>i.value),this.fixDiscreteValues())}isWhite([t,i,o]){return 1===t&&1===i&&1===o}fixDiscreteValues(){if(this.actualColors.length!==this.colorValues.length||this.colorValues.length<1)return;if(this.colorValues.length<2)return void(this.colorValues[1]=this.colorValues[0]);const t=this.colorValues[0]<this.colorValues[this.colorValues.length-1];t&&this.colorValues.reverse();const i=this.colorValues[0];this.colorValues[0]=this.colorValues[1]+1,this.colorValues.unshift(i),t&&this.colorValues.reverse()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],inputs:{mappingEntry:"mappingEntry",colors:"colors",decimalPlaces:"decimalPlaces"},standalone:!1,features:[e.OA$],decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return n})();var G=r(49769),m=r(16038);function w(n,c){1&n&&(e.j41(0,"span",9),e.pXf(1,1),e.k0s())}function d(n,c){1&n&&(e.j41(0,"span",9),e.pXf(1,2),e.k0s())}function C(n,c){if(1&n&&(e.j41(0,"div",7),e.nrm(1,"div",10),e.nVh(2,w,2,0,"span",9),e.nVh(3,d,2,0,"span",9),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.isInverted?2:-1),e.R7$(),e.vxM(t.isInverted?-1:3)}}function E(n,c){1&n&&(e.j41(0,"span",9),e.pXf(1,3),e.k0s())}function I(n,c){1&n&&(e.j41(0,"span",9),e.pXf(1,4),e.k0s())}function j(n,c){if(1&n&&(e.j41(0,"div",7),e.nrm(1,"div",11),e.nVh(2,E,2,0,"span",9),e.nVh(3,I,2,0,"span",9),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.isInverted?2:-1),e.R7$(),e.vxM(t.isInverted?-1:3)}}function B(n,c){1&n&&(e.j41(0,"div",7),e.nrm(1,"div",12),e.j41(2,"span",9),e.pXf(3,5),e.k0s()())}let z=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-delta-legend"]],inputs:{isInverted:"isInverted",showDeltas:"showDeltas",showGhosts:"showGhosts"},standalone:!1,decls:8,vars:3,consts:()=>{let t,i,o,_,A,L;return t="unmodified",i="increased",o="decreased",_="decreased",A="increased",L="deleted",[t,i,o,_,A,L,["fxLayout","column","fxFlex","nogrow","fxLayoutAlign","center start"],[1,"legend-items"],[1,"color-box","unmodified-box"],["fxFlex","nogrow","fxLayout","column",1,"legend-info"],["fxFlex","nogrow","fxLayout","column",1,"color-box","improvement-box"],["fxFlex","nogrow","fxLayout","column",1,"color-box","detoriation-box"],[1,"color-box","ghost-box"]]},template:function(i,o){1&i&&(e.j41(0,"div",6),e.nVh(1,C,4,2,"div",7),e.nVh(2,j,4,2,"div",7),e.j41(3,"div",7),e.nrm(4,"div",8),e.j41(5,"span",9),e.pXf(6,0),e.k0s()(),e.nVh(7,B,4,0,"div",7),e.k0s()),2&i&&(e.R7$(),e.vxM(o.showDeltas?1:-1),e.R7$(),e.vxM(o.showDeltas?2:-1),e.R7$(5),e.vxM(o.showGhosts?7:-1))},dependencies:[x.DJ,x.sA,x.UI],styles:[".legend-item-kpi[_ngcontent-%COMP%]{color:#000000de;font-size:12px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-item-kpi-unit[_ngcontent-%COMP%]{color:#0000008a;font-size:12px}.legend-value[_ngcontent-%COMP%]{color:#0000008a;font-size:10px;font-weight:400}.outline[_ngcontent-%COMP%]{border:1px solid #bdbdbd}  .map-legend-tooltip{white-space:pre-line}.legend-items[_ngcontent-%COMP%]{margin-bottom:4px}.legend-items[_ngcontent-%COMP%]:last-child{margin-bottom:0}.legend-info[_ngcontent-%COMP%]{color:#0000008a;font-size:12px;margin-left:8px}.color-box[_ngcontent-%COMP%]{height:16px;width:16px}.color-box.improvement-box[_ngcontent-%COMP%]{background-color:#00aa5e}.color-box.detoriation-box[_ngcontent-%COMP%]{background-color:#71237c}.color-box.unmodified-box[_ngcontent-%COMP%]{background-color:#d8d8d8}.color-box.ghost-box[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#b0b0e6 30%,transparent 0%),linear-gradient(#b0b0e6 30%,transparent 0%);background-size:5px 5px}"]})}}return n})();var k=r(6085);const X=n=>({outline:n}
1);function H(n,c){if(1&n&&(e.j41(0,"div",9),e.nrm(1,"span",10),e.k0s()),2&n){const t=c.$implicit,i=c.$index,o=e.XpG();e.xc7("width",o.barScale+"%"),e.R7$(),e.xc7("height","calc(100% - "+o.barScale*i+"%)")("background-color",t.colorString),e.Y8G("ngClass",e.eq3(7,X,o.isWhite(t.color)))}}function W(n,c){if(1&n&&(e.j41(0,"div",7),e.nrm(1,"span",11),e.j41(2,"span",12),e.EFF(3),e.nI1(4,"humanizeNumber"),e.k0s()()),2&n){const t=c.$implicit,i=e.XpG();e.R7$(3),e.SpI(" ",e.i5U(4,1,t,i.decimalPlaces)," ")}}let J=(()=>{class n extends F{constructor(){super(...arguments),this.barScale=100,this.colorValues=[],this.actualColors=[]}ngOnChanges(t){super.ngOnChanges(t),t.colors&&(this.barScale=100/this.actualColors.length)}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=e.xGo(n)))(o||n)}})()}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-map-color-height-legend"]],inputs:{mappingEntry:"mappingEntry",colors:"colors",heights:"heights",isInverted:"isInverted",showDeltas:"showDeltas",showGhosts:"showGhosts",decimalPlaces:"decimalPlaces"},standalone:!1,features:[e.Vt3,e.OA$],decls:14,vars:5,consts:[[1,"legend-item-kpi","seerene-qa-color-height-legend-kpi"],[1,"legend-item-kpi-unit","seerene-qa-color-height-legend-kpi-unit"],["fxLayout","column",1,"legend-graph"],[1,"graph-wrap"],["fxLayout","row-reverse","fxLayoutAlign","space-around end",1,"graph-content-wrap"],["fxFlex","nogrow","fxLayout","column","fxLayoutAlign","end center",1,"graph-bar-wrap",3,"width"],["fxFlex","nogrow","fxLayout","row-reverse","fxLayoutAlign","space-between start",1,"legend-scale"],["fxFlex","nogrow","fxLayout","column",1,"legend-value","legend-label"],[3,"isInverted","showDeltas","showGhosts"],["fxFlex","nogrow","fxLayout","column","fxLayoutAlign","end center",1,"graph-bar-wrap"],["fxFlex","nogrow",1,"bar-color",3,"ngClass"],["fxFlex","nogrow",1,"legend-scale-dash"],["fxFlex","nogrow",1,"bar-value"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"tooltip-if-ellipsis"),e.EFF(2),e.k0s()(),e.j41(3,"div",1),e.EFF(4),e.k0s(),e.j41(5,"div",2)(6,"div",3)(7,"div",4),e.Z7z(8,H,2,9,"div",5,e.fX1),e.k0s(),e.j41(10,"div",6),e.Z7z(11,W,5,4,"div",7,e.Vm6),e.k0s()(),e.nrm(13,"tpe-delta-legend",8),e.k0s()),2&i&&(e.R7$(2),e.JRh(o.mappingEntry.name),e.R7$(2),e.SpI(" ",o.mappingEntry.unit,"\n"),e.R7$(4),e.Dyx(o.actualColors),e.R7$(3),e.Dyx(o.colorValues),e.R7$(2),e.Y8G("isInverted",o.isInverted)("showDeltas",o.showDeltas)("showGhosts",o.showGhosts))},dependencies:[G.YU,x.DJ,x.sA,x.UI,m.PW,y.f,z,k.g],styles:[".legend-item-kpi[_ngcontent-%COMP%]{color:#000000de;font-size:12px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-item-kpi-unit[_ngcontent-%COMP%]{color:#0000008a;font-size:12px}.legend-value[_ngcontent-%COMP%]{color:#0000008a;font-size:10px;font-weight:400}.outline[_ngcontent-%COMP%]{border:1px solid #bdbdbd}  .map-legend-tooltip{white-space:pre-line}.legend-items[_ngcontent-%COMP%]{margin-bottom:4px}.legend-items[_ngcontent-%COMP%]:last-child{margin-bottom:0}.legend-graph[_ngcontent-%COMP%]{padding-top:8px}.legend-graph[_ngcontent-%COMP%]   .graph-wrap[_ngcontent-%COMP%]{display:block!important;padding:0 4px}.legend-scale[_ngcontent-%COMP%]{margin:-4px 0 20px}.legend-scale[_ngcontent-%COMP%]   .legend-label[_ngcontent-%COMP%]{width:1px}.legend-scale[_ngcontent-%COMP%]   .legend-scale-dash[_ngcontent-%COMP%]{background-color:#0000008a;height:8px;width:1px}.graph-content-wrap[_ngcontent-%COMP%]{height:48px}.graph-bar-wrap[_ngcontent-%COMP%]{height:100%}.bar-value[_ngcontent-%COMP%]{margin-top:-2px;transform:rotate(90deg);transform-origin:left}.bar-color[_ngcontent-%COMP%]{width:calc(100% - 11px)}tpe-delta-legend[_ngcontent-%COMP%]{margin-top:8px}"]})}}return n})();const K=n=>({outline:n}
1);function Y(n,c){if(1&n&&e.nrm(0,"div",7),2&n){const t=c.$implicit,i=e.XpG();e.xc7("background-color",t.colorString),e.Y8G("ngClass",e.eq3(3,K,i.isWhite(t.color)))}}function Q(n,c){if(1&n&&(e.j41(0,"div",6),e.nrm(1,"span",8),e.j41(2,"span",9),e.EFF(3),e.nI1(4,"humanizeNumber"),e.k0s()()),2&n){const t=c.$implicit,i=e.XpG();e.R7$(3),e.SpI(" ",e.i5U(4,1,t,i.decimalPlaces)," ")}}let Z=(()=>{class n extends F{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=e.xGo(n)))(o||n)}})()}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-map-color-legend"]],standalone:!1,features:[e.Vt3],decls:12,vars:2,consts:[[1,"legend-item-kpi","seerene-qa-color-legend-kpi"],[1,"legend-item-kpi-unit","seerene-qa-color-legend-kpi-unit"],["fxLayout","row",1,"legend-graph"],["fxFlex","nogrow","fxLayout","column","fxLayoutAlign","start start",1,"legend-items"],["fxFlex","nogrow",1,"color-bar",3,"ngClass","background-color"],["fxFlex","nogrow","fxLayout","column","fxLayoutAlign","space-around start",1,"legend-scale"],["fxFlex","nogrow",1,"legend-value","legend-label"],["fxFlex","nogrow",1,"color-bar",3,"ngClass"],["fxFlex","nogrow",1,"legend-scale-dash"],["fxFlex","nogrow"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"tooltip-if-ellipsis"),e.EFF(2),e.k0s()(),e.j41(3,"div",1),e.EFF(4),e.k0s(),e.j41(5,"div",2)(6,"div",3),e.Z7z(7,Y,1,5,"div",4,e.fX1),e.k0s(),e.j41(9,"div",5),e.Z7z(10,Q,5,4,"div",6,e.fX1),e.k0s()()),2&i&&(e.R7$(2),e.JRh(o.mappingEntry.name),e.R7$(2),e.SpI(" ",o.mappingEntry.unit,"\n"),e.R7$(3),e.Dyx(o.actualColors),e.R7$(3),e.Dyx(o.colorValues))},dependencies:[G.YU,x.DJ,x.sA,x.UI,m.PW,y.f,k.g],styles:[".legend-item-kpi[_ngcontent-%COMP%]{color:#000000de;font-size:12px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-item-kpi-unit[_ngcontent-%COMP%]{color:#0000008a;font-size:12px}.legend-value[_ngcontent-%COMP%]{color:#0000008a;font-size:10px;font-weight:400}.outline[_ngcontent-%COMP%]{border:1px solid #bdbdbd}  .map-legend-tooltip{white-space:pre-line}.legend-items[_ngcontent-%COMP%]{margin-bottom:4px}.legend-items[_ngcontent-%COMP%]:last-child{margin-bottom:0}.legend-items[_ngcontent-%COMP%]{margin-bottom:8px}.legend-graph[_ngcontent-%COMP%]{padding-top:16px}.color-bar[_ngcontent-%COMP%]{height:16px;margin-bottom:11px;width:77px}.legend-scale[_ngcontent-%COMP%]{margin-top:-20px;padding-left:8px}.legend-scale[_ngcontent-%COMP%]   .legend-scale-dash[_ngcontent-%COMP%]{background-color:#0000008a;height:1px;margin:8px 8px 0 -12px;width:10px}.legend-label[_ngcontent-%COMP%]{height:16px;line-height:16px}"]})}}return n})(),q=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-map-height-legend"]],inputs:{mappingEntry:"mappingEntry",heights:"heights",isInverted:"isInverted",showDeltas:"showDeltas",showGhosts:"showGhosts"},standalone:!1,decls:15,vars:11,consts:[[1,"legend-item-kpi","seerene-qa-height-legend-kpi"],[1,"legend-item-kpi-unit","seerene-qa-height-legend-kpi-unit"],["fxLayout","row",1,"legend-graph"],["fxFlex","nogrow","fxLayout","column","fxLayoutAlign","center center",1,"legend-height"],["fxFlex","",1,"legend-value"],["fxFlex","nogrow",1,"legend-bar"],[3,"isInverted","showDeltas","showGhosts"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"tooltip-if-ellipsis"),e.EFF(2),e.k0s()(),e.j41(3,"div",1),e.EFF(4),e.k0s(),e.j41(5,"div",2)(6,"div",3)(7,"span",4),e.EFF(8),e.nI1(9,"humanizeNumber"),e.k0s(),e.nrm(10,"div",5),e.j41(11,"span",4),e.EFF(12),e.nI1(13,"humanizeNumber"),e.k0s()(),e.nrm(14,"tpe-delta-legend",6),e.k0s()),2&i&&(e.R7$(2),e.JRh(o.mappingEntry.name),e.R7$(2),e.SpI(" ",o.mappingEntry.unit,"\n"),e.R7$(4),e.JRh(e.bMT(9,7,o.heights.max)),e.R7$(4),e.JRh(e.bMT(13,9,o.heights.min)),e.R7$(2),e.Y8G("isInverted",o.isInverted)("showDeltas",o.showDeltas)("showGhosts",o.showGhosts))},dependencies:[x.DJ,x.sA,x.UI,y.f,z,k.g],styles:[".legend-item-kpi[_ngcontent-%COMP%]{color:#000000de;font-size:12px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-item-kpi-unit[_ngcontent-%COMP%]{color:#0000008a;font-size:12px}.legend-value[_ngcontent-%COMP%]{color:#0000008a;font-size:10px;font-weight:400}.outline[_ngcontent-%COMP%]{border:1px solid #bdbdbd}  .map-legend-tooltip{white-space:pre-line}.legend-items[_ngcontent-%COMP%]{margin-bottom:4px}.legend-items[_ngcontent-%COMP%]:last-child{margin-bottom:0}.legend-graph[_ngcontent-%COMP%]{padding-top:8px}.legend-height[_ngcontent-%COMP%]{margin-right:8px}
1.legend-height[_ngcontent-%COMP%]   .legend-bar[_ngcontent-%COMP%]{border:1px solid #bdbdbd;height:56px;width:24px}"]})}}return n})();function ee(n,c){if(1&n){const t=e.RV6();e.j41(0,"div",6),e.bIt("click",function(){p.eBV(t);const o=e.XpG();return p.Njj(o.toggleExpanded())}),e.j41(1,"button",7)(2,"mat-icon"),e.EFF(3,"info"),e.k0s()()()}}function te(n,c){1&n&&(e.j41(0,"mat-icon"),e.EFF(1,"opacity"),e.k0s())}function ne(n,c){1&n&&(e.j41(0,"mat-icon"),e.EFF(1,"stacked_bar_chart"),e.k0s())}function ie(n,c){1&n&&(e.j41(0,"span",12)(1,"span"),e.pXf(2,1),e.k0s()())}function oe(n,c){1&n&&(e.j41(0,"span",12)(1,"span"),e.pXf(2,2),e.k0s(),e.EFF(3," & "),e.j41(4,"span"),e.pXf(5,3),e.k0s()())}function se(n,c){if(1&n&&(e.j41(0,"div",15),e.nrm(1,"tpe-map-color-height-legend",19),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("mappingEntry",t.mapping.color)("colors",t.colors)("heights",t.heights)("isInverted",t.isInverted)("showDeltas",t.showDeltas)("showGhosts",t.showGhosts)("decimalPlaces",t.decimalPlaces)}}function ae(n,c){if(1&n&&(e.j41(0,"div",16),e.nrm(1,"tpe-map-color-legend",20),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("mappingEntry",t.mapping.color)("colors",t.colors)("decimalPlaces",t.decimalPlaces)}}function le(n,c){if(1&n&&(e.j41(0,"div",10)(1,"div",17)(2,"mat-icon"),e.EFF(3,"height"),e.k0s(),e.j41(4,"span"),e.pXf(5,4),e.k0s()(),e.j41(6,"div",15),e.nrm(7,"tpe-map-height-legend",21),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(7),e.Y8G("mappingEntry",t.mapping.height)("isInverted",t.isInverted)("showDeltas",t.showDeltas)("showGhosts",t.showGhosts)("heights",t.heights)}}function re(n,c){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"mat-card",8)(2,"mat-card-content",9)(3,"div",10)(4,"div",11),e.nVh(5,te,2,0,"mat-icon"),e.nVh(6,ne,2,0,"mat-icon"),e.nVh(7,ie,3,0,"span",12),e.nVh(8,oe,6,0,"span",12),e.j41(9,"span",13)(10,"button",14),e.bIt("click",function(){p.eBV(t);const o=e.XpG();return p.Njj(o.toggleExpanded())}),e.j41(11,"mat-icon"),e.EFF(12,"close"),e.k0s()()()(),e.nVh(13,se,2,7,"div",15),e.nVh(14,ae,2,3,"div",16),e.k0s(),e.nVh(15,le,8,5,"div",10),e.j41(16,"div",10)(17,"div",17)(18,"mat-icon"),e.EFF(19,"select_all"),e.k0s(),e.j41(20,"span"),e.pXf(21,0),e.k0s()(),e.j41(22,"div",15),e.nrm(23,"tpe-map-area-legend",18),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(5),e.vxM(t.isMergedLegend?-1:5),e.R7$(),e.vxM(t.isMergedLegend?6:-1),e.R7$(),e.vxM(t.isMergedLegend?-1:7),e.R7$(),e.vxM(t.isMergedLegend?8:-1),e.R7$(5),e.vxM(t.isMergedLegend?13:-1),e.R7$(),e.vxM(t.isMergedLegend?-1:14),e.R7$(),e.vxM(t.isMergedLegend?-1:15),e.R7$(8),e.Y8G("mappingEntry",t.mapping.area)}}let ce=(()=>{class n{constructor(t){this.media=t,this.forceClosed=!1,this.expandedChange=new p.bkB,this.isMergedLegend=!1,this.unsubscribe$=new u.B}set isExpanded(t){this._isExpanded!==t&&(this._isExpanded=t,this.expandedChange.emit(this._isExpanded))}get isExpanded(){return this._isExpanded}ngOnInit(){this.media.isActive("xs")&&(this.isExpanded=!1),this.unsubscribe$=new u.B}ngOnChanges(t){t.colors&&(this.updateColors(),this.decimalPlaces=this.checkDecimalPlaces(this.colors)),t.mapping&&this.cleanMapping()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}checkDecimalPlaces(t){if(Math.max(...t.map(o=>o.value))<.1)return 3}toggleExpanded(){this.forceClosed?(this._isExpanded=!0,this.expandedChange.emit(this._isExpanded)):this.isExpanded=!this.isExpanded}cleanMapping(){for(const t in this.mapping){const i=this.mapping[t];let o=i.description;o=o.replace(/<br ?\/?>/g,"\n"),o=o.replace(/<\/?.+?>/g,""),i.description=o}this.isMergedLegend=this.mapping.color.name===this.mapping.height.name,this.isInverted=this.mapping.height.inverted}updateColors(){for(const t of this.colors)t.color&&(t.colorString=this.toRgb(t.color))}toRgb([t,i,o]){return`rgb(${255*t}, ${255*i}, ${255*o})`}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(a.nJ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-map-legend"]],inputs:{colors:"colors",heights:"heights",mapping:"mapping",showDeltas:"showDeltas",showGhosts:"showGhosts",forceClosed:"forceClosed",isExpanded:"isExpanded"},outputs:{expandedChange:"expandedChange"},standalone:!1,features:[e.Jv_([]),e.OA$],decls:2,vars:2,consts:()=>{let t,i,o,_,A;return t="Area",i="Color",o="Color",_="Height",A="Height",[t,i,o,_,A,[1,"legend-toggle"],[1,"legend-toggle",3,"click"],["mat-mini-fab",""],[1,"legend-container"],["fxLayout","column"],["fxFlex","nogrow","fxLayout","column",1,"legend-section"],["fxFlex","nogrow","fxLayout","row","fxLayoutAlign","space-between center",1,"legend-section-header"],["fxFlex","auto"],["fxFlex","nogrow"],["mat-icon-button","",3,"click"],["fxFlex","nogrow",1,"legend-section-content"],["fxFlex","nogrow",1,"legend-section-content","no-bottom-padding"],["fxFlex","nogrow","fxLayout","row","fxLayoutAlign","start center",1,"legend-section-header"],[3,"mappingEntry"],[3,"mappingEntry","colors","heights","isInverted","showDeltas","showGhosts","decimalPlaces"],[3,"mappingEntry","colors","decimalPlaces"],[3,"mappingEntry","isInverted","showDeltas","showGhosts","heights"]]},template:function(i,o){1&i&&(e.nVh(0,ee,4,0,"div",5),e.nVh(1,re,24,8,"div")),2&i&&(e.vxM(!o.isExpanded||o.forceClosed?0:-1),e.R7$(),e.vxM(o.isExpanded&&!o.forceClosed?1:-1))},dependencies:[l.$0,h.iY,f.RN,f.m2,T.An,x.DJ,x.sA,x.UI,V,J,Z,q],styles:["[_nghost-%COMP%]{bottom:24px;position:absolute;right:24px}.legend-container[_ngcontent-%COMP%]{z-index:50}.legend-toggle[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff}.legend-toggle[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#00b0ff}.legend-section[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.legend-section[_ngcontent-%COMP%]:last-child{border-bottom:0 none}.legend-section-content[_ngcontent-%COMP%]{padding:8px 16px}.legend-section-content.no-bottom-padding[_ngcontent-%COMP%]{padding-bottom:0}.legend-section-header[_ngcontent-%COMP%]{background-color:#0000001f;color:#0000008a;font-size:12px;font-weight:500;height:20px;text-transform:uppercase}.legend-section-header[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px;line-height:16px;margin:0 2px}.legend-section-header[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{transform:scale(.5)}.legend-section-header[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{transform:scale(2);margin:0}mat-card[_ngcontent-%COMP%]{padding:0 0 8px}"]})}}return n})(),de=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-map-tooltip"]],inputs:{visualization:"visualization"},standalone:!1,features:[e.Jv_([])],decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return n})(),pe=(()=>{class n{static{this.DEBUG_MAP=[{headline:"Timing",children:[{key:"fps",unit:"",label:"Frames per Second",type:"number"},{key:"avgFrameTime",unit:"ms",label:"Average frame time",type:"number"},{key:"updFrameTime",unit:"ms",label:"Update frame time",type:"number"},{key:"minFrameTime",unit:"ms",label:"Minimum frame time",type:"number"},{key:"maxFrameTime",unit:"ms",label:"Maximum frame time",type:"number"}]},{headline:"WebGL",children:[{key:"graphicsApi",unit:"",label:"Graphics API",type:"string"},{key:"contextHash",unit:"",label:"Context Hash",type:"string"},{key:"multiframeNumber",unit:"",label:"Multi-frame number",type:"number"},{key:"intermediateFrameCount",unit:"",label:"Intermediate frame c
1ount",type:"number"},{key:"multiFrameCount",unit:"",label:"Multi-frame count",type:"number"},{key:"frameSize",unit:"",label:"Intermediate resolution",type:"string"},{key:"canvasSize",unit:"",label:"Canvas resolution",type:"string"}]},{headline:"Memory",children:[{key:"memoryAllocate",unit:"",label:"Allocated GPU memory (approx)",type:"string"}]},{headline:"Flags",children:[{key:"context1",unit:"",label:"alpha, pre-mult, depth, stencil",type:"string"},{key:"context2",unit:"",label:"aa, perf-fail, preserve-draw",type:"string"}]}]}}return n})();function he(n,c){if(1&n&&(e.j41(0,"span",7),e.EFF(1),e.nI1(2,"humanizeNumber"),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(4);e.R7$(),e.Lme(" ",e.bMT(2,2,i.data[t.key]),"",t.unit," ")}}function ge(n,c){if(1&n&&(e.j41(0,"span",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(4);e.R7$(),e.Lme(" ",i.data[t.key],"",t.unit," ")}}function ue(n,c){if(1&n&&(e.j41(0,"div",5)(1,"span",6),e.EFF(2),e.k0s(),e.nVh(3,he,3,4,"span",7),e.nVh(4,ge,2,2,"span",7),e.k0s()),2&n){const t=c.$implicit;e.R7$(2),e.JRh(t.label),e.R7$(),e.vxM("number"===t.type?3:-1),e.R7$(),e.vxM("string"===t.type?4:-1)}}function _e(n,c){if(1&n&&(e.j41(0,"div",4),e.Z7z(1,ue,5,3,"div",5,e.fX1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Dyx(t.children)}}function me(n,c){if(1&n){const t=e.RV6();e.j41(0,"div",1)(1,"div",2),e.bIt("click",function(){const o=p.eBV(t).$implicit,_=e.XpG(2);return p.Njj(_.toggleSection(o.headline))}
1),e.j41(2,"span",3),e.EFF(3),e.k0s()(),e.nVh(4,_e,3,0,"div",4),e.k0s()}if(2&n){const t=c.$implicit,i=e.XpG(2);e.R7$(3),e.JRh(t.headline),e.R7$(),e.vxM(i.showSection[t.headline]?4:-1)}}function fe(n,c){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",8)(2,"button",9),e.bIt("click",function(){p.eBV(t);const o=e.XpG(2);return p.Njj(o.debugTexture(-1))}),e.EFF(3,"Reset"),e.k0s(),e.j41(4,"button",9),e.bIt("click",function(){p.eBV(t);const o=e.XpG(2);return p.Njj(o.debugTexture(0))}),e.EFF(5,"Color"),e.k0s(),e.j41(6,"button",9),e.bIt("click",function(){p.eBV(t);const o=e.XpG(2);return p.Njj(o.debugTexture(1))}),e.EFF(7,"IDs"),e.k0s(),e.j41(8,"button",9),e.bIt("click",function(){p.eBV(t);const o=e.XpG(2);return p.Njj(o.debugTexture(2))}),e.EFF(9,"Depth"),e.k0s(),e.j41(10,"button",10),e.bIt("click",function(){p.eBV(t);const o=e.XpG(2);return p.Njj(o.loseContext())}),e.EFF(11,"Lose Context"),e.k0s(),e.j41(12,"button",11),e.bIt("click",function(){p.eBV(t);const o=e.XpG(2);return p.Njj(o.showDiagnostics())}),e.EFF(13,"full diagnostic info"),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("disabled",-1===t.currentDebugTexture),e.R7$(2),e.Y8G("disabled",0===t.currentDebugTexture),e.R7$(2),e.Y8G("disabled",1===t.currentDebugTexture),e.R7$(2),e.Y8G("disabled",2===t.currentDebugTexture)}}function Ce(n,c){if(1&n){const t=e.RV6();e.j41(0,"div",0),e.Z7z(1,me,5,2,"div",1,e.fX1),e.j41(3,"div",1)(4,"div",2),e.bIt("click",function(){p.eBV(t);const o=e.XpG();return p.Njj(o.toggleSection("buttonArea"))}
1),e.j41(5,"span",3),e.EFF(6,"Debug functions"),e.k0s()(),e.nVh(7,fe,14,4,"div",4),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Dyx(t.mapping),e.R7$(6),e.vxM(t.showSection.buttonArea?7:-1)}}let Me=(()=>{class n{constructor(){this.mapping=pe.DEBUG_MAP,this.currentDebugTexture=-1,this.pauseUpdateMetrics=!1,this.showSection={},this.showSection[this.mapping[0].headline]=!0}ngOnInit(){this.updateMetrics(),this.sub=this.canvas.controller.frameNumber$.subscribe(()=>{this.updateMetrics()}),window.debugContext={canvas:this.canvas}}ngOnDestroy(){window.debugContext=null,this.sub.unsubscribe()}updateMetrics(){if(this.pauseUpdateMetrics)return;const t=this.canvas.controller,i=this.canvas.context.allocationRegister,o=this.getContextInfo(),_=new Map(this.canvas.context.about());this.data={fps:t.framesPerSecond,avgFrameTime:t.averageFrameTime,updFrameTime:t.updateFrameTime,minFrameTime:t.minimumFrameTime,maxFrameTime:t.maximumFrameTime,graphicsApi:_.get("BACKEND (GLOPERATE)"),contextHash:_.get("CONTEXT_HASH (GLOPERATE)"),multiframeNumber:t.multiFrameNumber,intermediateFrameCount:t.intermediateFrameCount,multiFrameCount:t.multiFrameCount,frameSize:`${this.canvas.frameSize[0]} x ${this.canvas.frameSize[1]}`,canvasSize:`${this.canvas.size[0]} x ${this.canvas.size[1]}`,memoryAllocate:i.bytesToString(),context1:o[0],context2:o[1]}}getContextInfo(){const t=this.canvas.context;return[[t.alpha?"1":"0",t.premultipliedAlpha?"1":"0",t.depth?"1":"0",t.stencil?"1":"0"].join(", "),[t.antialias?"1":"0",t.failIfMajorPerformanceCaveat?"1":"0",t.preserveDrawingBuffer?"1":"0"].join(", ")]}debugTexture(t){this.currentDebugTexture=t,this.canvas.renderer.blitTarget=t}loseContext(){this.pauseUpdateMetrics=!0,this.canvas.testLoseContext(),window.setTimeout(()=>{this.canvas.testRestoreContext(),this.pauseUpdateMetrics=!1},2e3)}toggleSection(t){this.showSection[t]=!this.showSection[t]}showDiagnostics(){window.open("about:blank","","_blank").document.write(`<pre>${this.canvas.context.aboutString()}</pre>`)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-treemap-debug"]],inputs:{canvas:"canvas"},standalone:!1,features:[e.Jv_([])],decls:1,vars:1,consts:[[1,"canvas-debug-wrap","layout-column"],[1,"debug-section","flex","layout-column"],[1,"debug-section-header","flex","layout-row",3,"click"],[1,"flex-100"],[1,"property-contet","flex","layout-column"],[1,"debug-row","flex","layout-row"],[1,"debug-label","flex"],[1,"debug-value","flex-nogrow"],[1,"debug-row","flex","layout-row","layout-wrap","debug-buttons"],["mat-button","",1,"flex-33",3,"click","disabled"],["mat-button","",1,"flex-100",3,"click"],["mat-button","",1,"flex-33",3,"click"]],template:function(i,o){1&i&&e.nVh(0,Ce,8,1,"div",0),2&i&&e.vxM(o.data?0:-1)},dependencies:[l.$z,k.g],styles:["[_nghost-%COMP%]{background-color:#ffffffde;border-radius:3px;padding:8px;position:absolute;right:24px;top:24px}.debug-value[_ngcontent-%COMP%]{text-align:right;width:100px}.debug-row[_ngcontent-%COMP%]{padding:2px 0}.debug-section[_ngcontent-%COMP%]{margin-top:8px}.debug-section[_ngcontent-%COMP%]:first-child{margin-top:0}.debug-section-header[_ngcontent-%COMP%]{cursor:pointer;font-size:18px;font-weight:500;padding:2px 0}.debug-buttons[_ngcontent-%COMP%]{max-width:300px}"]})}}return n})();const xe=["mapCanvas"],Ee=["tooltipsContainer"];function ve(n,c){1&n&&e.nrm(0,"mat-progress-bar",3)}function be(n,c){if(1&n&&e.nrm(0,"tpe-map-tooltip",7),2&n){const t=e.XpG(2);e.Y8G("visualization",t.visualization)}}function Pe(n,c){if(1&n&&(e.j41(0,"div",null,1),e.nVh(2,be,1,1,"tpe-map-tooltip",7),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.tooltipComponent?-1:2)}}function Te(n,c){if(1&n){const t=e.RV6();e.j41(0,"tpe-map-legend",8),e.bIt("expandedChange",function(o){p.eBV(t);const _=e.XpG();return p.Njj(_.legendExpandedChange.emit(o))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("colors",t.colors)("heights",t.heights)("mapping",t.mapping)("isExpanded",t.legendExpanded)("forceClosed",t.legendForceClosed)("showDeltas",t.deltaToggleable&&t.showDeltas)("showGhosts",t.showGhosts)}}function Oe(n,c){if(1&n&&e.nrm(0,"tpe-treemap-debug",6),2&n){const t=e.XpG();e.Y8G("canvas",t.canvas)}}const U=new p.nKC("map.tooltip.component");let we=(()=>{class n{constructor(t,i,o,_,A,L,R,De){this.hierarchyService=t,this.comm=i,this.params=o,this.i18n=_,this.labels=A,this.notification=L,this.cdr=R,this.tooltipComponent=
1De,this.showLoader=!0,this.showLegend=!0,this.showTooltips=!0,this.showLabels=!0,this.showDeltas=!0,this.showGhosts=!0,this.pauseRendering=!1,this.clearColor="fafafa",this.noData=!1,this.loadingState=new p.bkB,this.noDataChange=new p.bkB,this.errorStateChange=new p.bkB,this.deltaToggleable=!1,this.legendExpandedChange=new p.bkB,this.legendForceClosed=!1,this.useDimensions={height:"100%",width:"100%"},this.debug=!1,this.webglEnabled=!0,this._resizeIntervalHandle=null}set loading(t){this._loading=t,this.loadingState.emit(this._loading),this.errorStateChange.emit(!1)}get loading(){return this._loading}ngAfterViewInit(){if(this.tooltipComponent&&this.showTooltips){const t=this.tooltipsContainer.createComponent(this.tooltipComponent);this.tooltipComponentInstance=t.instance,this.visualization&&(this.tooltipComponentInstance.visualization=this.visualization),this.cdr.detectChanges()}}ngOnDestroy(){this.loading=!1,this.destroyMap()}ngOnChanges(t){if(!this.config)return this.setLoading();this.dimensions&&(this.useDimensions={height:this.dimensions.height+"px",width:this.dimensions.width+"px"}),t.config&&this.updateConfig(t.config),t.pauseRendering&&this.toggleVisibility(!this.pauseRendering),(t.showLabels||t.noData)&&this.visualization&&(this.visualization.skipLeafLabeling=!this.showLabels||this.noData),(t.showDeltas||t.showGhosts)&&this.updateHierarchy()}onContextLost(){this.notification.create({message:this.i18n.get("webglContextLost"),style:s.Bz.ERROR})}onMouseLeave(){this.comm.hideTooltip.emit(),this.comm.clearHoveredNode()}onKeyUp(t){t.ctrlKey&&"i"===t.key&&(this.debug=!this.debug)}toggleVisibility(t){this.canvas&&(t?(this.canvas.controller.unblock(),setTimeout(()=>{this.canvas.resize()}),this.pollForSizeChanges(!0)):(this.canvas.controller.block(),this.pollForSizeChanges(!1)))}renderMap(t){if(!this.canvas){let i;window.headless&&(i={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!0,stencil:!1});try{this.canvas=(0,b.initialize)(this.mapCanvas.nativeElement,i,(new b.gloperate.Color).fromHex(this.clearColor))}catch(o){return void this.onWebGlError(o)}}if(!this.visualization){this.visualization=new b.Visualization,this.tooltipComponentInstance&&(this.tooltipComponentInstance.visualization=this.visualization),this.visualization.skipLeafLabeling=!this.showLabels||this.noData,this.connectLabels();try{this.canvas.renderer=this.visualization.renderer,window.canvas=this.canvas,window.visualization=this.visualization,window.setTimeout(()=>this.canvas.resize(),0),this.pollForSizeChanges(!0)}catch(i){return void this.onWebGlError(i)}}this.colorConfig(this.params.get("mapType"),this.params.get("mapping").color.inverted),this._colorConfig.minValue=this.hierarchyService.minColorMetricValue,this._colorConfig.maxValue=this.hierarchyService.maxColorMetricValue,this.colors=this._colorConfig.colorLegend,this.hierarchyService.applyColorConfig(this._colorConfig),this.visualization.configuration=t,this.canvas.controller.update(),this.heights={min:this.hierarchyService.minHeightMetricValue,max:this.hierarchyService.maxHeightMetricValue},this.noDataChange.emit(0===t.topology.edges.length),this.comm.connectMap(this.canvas,this.visualization,this.params.params.end_date),this.comm.mapInitialized.emit(!0)}pollForSizeChanges(t){if(window.clearInterval(this._resizeIntervalHandle),!t)return;const i=this.canvas.element;this._resizeIntervalHandle=window.setInterval(()=>{const o=this.canvas.constructor.elementSize(i);o&&(i.width!==o[0]||i.height!==o[1])&&this.canvas.resize()},100)}colorConfig(t,i){if(this._colorConfig)return this._colorConfig;let o;return"analysis"!==t&&console.warn(`unknown map type ${t}, falling back to analysis`),o=new D([[1,1,1],[254/255,213/255,0],[254/255,133/255,0],[230/255,35/255,37/255]],this.params.get("classBounds",null)),o.inverted=i,this._colorConfig=o,o}destroyMap(){this.subscription&&this.subscription.unsubscribe();try{this.canvas&&(this.canvas.controller.cancel(),this.canvas.dispose())}catch(t){console.error("canvas destroy error:",t)}this.canvas=null,this.visualization=null,this.comm.disconnectMap(),this.comm.mapInitialized.emit(!1),this.mapUpdateSubscription&&this.mapUpdateSubscription.unsubscribe(),window.clearInterval(this._resizeIntervalHandle)}setLoading(){this.canvas&&this.destroyMap(),this.loadingState.emit(!0)}
1updateConfig(t){t.firstChange&&this.comm.invalidateMap$.subscribe(()=>this.updateMap(!0)),P.BF.deepEquals(this.config,this.currentConfig)?this.loading=!1:(this.currentConfig=P.BF.deepCopy(this.config),this.mapUpdateSubscription||(this.mapUpdateSubscription=this.comm.reloadMap.subscribe(()=>{this.updateMap(!0)})),this.updateMap())}updateHierarchy(){this.hierarchyService.fetchData(!0,!this.showDeltas,!this.showGhosts).subscribe(t=>{this.renderMap(t),this.comm.hideCodeUnitDetails.emit()},t=>{console.error(t),this.errorStateChange.emit(!0)})}updateMap(t=!1){this.comm.mapInitialized.emit(!1),this._colorConfig=null,this.loading=!0;const i=new P.M4;this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.params.config=this.config,this.mapping=this.params.getMappingNames(),this.webglEnabled&&(this.subscription=this.hierarchyService.fetchData(t,!this.showDeltas,!this.showGhosts).subscribe(o=>{this.renderMap(o),this.loading=!1,i.step("updateMap -> renderMap; #nodes: "+(o.topology.edges.length/2+1))},o=>{console.error(o),this.loading=!1,this.errorStateChange.emit(!0)}))}onWebGlError(t){console.error(t),this.webglEnabled=!1,this.loading=!1;const i=this.i18n.get("webglDisabled");this.notification.create({message:i,style:s.Bz.ERROR})}connectLabels(){this.visualization.nameRequest=(t,i)=>{const o=Array.from(t);o.length?this.labels.getLabels(o,[]).subscribe(_=>{i(_)}):i(new Map)}}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(M.Te),e.rXU(M.Q6),e.rXU(M.tN),e.rXU(v.SU),e.rXU(M.rD),e.rXU(N.J),e.rXU(O.gRc),e.rXU(U,8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["tpe-treemap-component"]],viewQuery:function(i,o){if(1&i&&e.GBs(xe,7)(Ee,5,e.c1b),2&i){let _;e.mGM(_=e.lsd())&&(o.mapCanvas=_.first),e.mGM(_=e.lsd())&&(o.tooltipsContainer=_.first)}},hostVars:4,hostBindings:function(i,o){1&i&&e.bIt("keyup",function(A){return o.onKeyUp(A)},e.EBC),2&i&&e.xc7("height",o.useDimensions.height)("width",o.useDimensions.width)},inputs:{config:"config",dimensions:"dimensions",showLoader:"showLoader",showLegend:"showLegend",showTooltips:"showTooltips",showLabels:"showLabels",showDeltas:"showDeltas",showGhosts:"showGhosts",pauseRendering:"pauseRendering",clearColor:"clearColor",noData:"noData",deltaToggleable:"deltaToggleable",legendExpanded:"legendExpanded",legendForceClosed:"legendForceClosed"},outputs:{loadingState:"loadingState",noDataChange:"noDataChange",errorStateChange:"errorStateChange",legendExpandedChange:"legendExpandedChange"},standalone:!1,features:[e.Jv_([]),e.OA$],decls:14,vars:4,consts:[["mapCanvas",""],["tooltipsContainer",""],[1,"map-wrap"],["mode","indeterminate"],[3,"webglcontextlost","mouseleave"],[3,"colors","heights","mapping","isExpanded","forceClosed","showDeltas","showGhosts"],[3,"canvas"],[3,"visualization"],[3,"expandedChange","colors","heights","mapping","isExpanded","forceClosed","showDeltas","showGhosts"]],template:function(i,o){1&i&&(e.j41(0,"div",2),e.nVh(1,ve,1,0,"mat-progress-bar",3),e.j41(2,"canvas",4,0),e.bIt("webglcontextlost",function(){return o.onContextLost()})("mouseleave",function(){return o.onMouseLeave()}),e.EFF(4," Your browser does "),e.j41(5,"strong"),e.EFF(6,"not support"),e.k0s(),e.EFF(7," the "),e.j41(8,"code"),e.EFF(9,"<canvas>"),e.k0s(),e.EFF(10," element. "),e.k0s(),e.nVh(11,Pe,3,1,"div"),e.nVh(12,Te,1,7,"tpe-map-legend",5),e.nVh(13,Oe,1,1,"tpe-treemap-debug",6),e.k0s()),2&i&&(e.R7$(),e.vxM(o.loading&&o.showLoader?1:-1),e.R7$(10),e.vxM(o.showTooltips?11:-1),e.R7$(),e.vxM(o.showLegend&&o.colors&&o.mapping&&!o.noData?12:-1),e.R7$(),e.vxM(o.canvas&&o.debug?13:-1))},dependencies:[g.HM,ce,de,Me],styles:["[_nghost-%COMP%]{display:block}.map-wrap[_ngcontent-%COMP%]{height:100%;position:relative;width:100%}canvas[_ngcontent-%COMP%]{height:100%;-webkit-user-select:none;user-select:none;width:100%}"]})}}return n})()}}]);

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.