Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
`)),p("labelWrapKey",y)}else if(w==="ellipsis"){var ie=r.pstyle("text-max-width").pfValue,j="",he="…",Y=!1;if(this.calculateLabelDimensions(r,g).width<ie)return g;for(var ue=0;ue<g.length;ue++){var ee=this.calculateLabelDimensions(r,j+g[ue]+he).width;if(ee>ie)break;j+=g[ue],ue===g.length-1&&(Y=!0)}return Y||(j+=he),j}return g},pm.getLabelJustification=function(r){var s=r.pstyle("text-justification").strValue,o=r.pstyle("text-halign").strValue;if(s==="auto")if(r.isNode())switch(o){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return s},pm.calculateLabelDimensions=function(r,s){var o=this,h=Tx(s,r._private.labelDimsKey),g=o.labelDimCache||(o.labelDimCache=[]),b=g[h];if(b!=null)return b;var p=0,w=r.pstyle("font-style").strValue,y=r.pstyle("font-size").pfValue,k=r.pstyle("font-family").strValue,E=r.pstyle("font-weight").strValue,_=this.labelCalcCanvas,C=this.labelCalcCanvasContext;if(!_){_=this.labelCalcCanvas=document.createElement("canvas"),C=this.labelCalcCanvasContext=_.getContext("2d");var S=_.style;S.position="absolute",S.left="-9999px",S.top="-9999px",S.zIndex="-1",S.visibility="hidden",S.pointerEvents="none"}C.font="".concat(w," ").concat(E," ").concat(y,"px ").concat(k);for(var D=0,O=0,B=s.split(`