Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
d.applyStyle(b,this):a?null:this.getStyleColor(b);b=c.getQuickStyleVariation();if(null!=a&&0<(b&8)){b=this.getStyleColor(8).toHsl();c=this.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(c);d=c.toHsl();var f=a.toHsl();.1666<=Math.abs(b.getLum()-f.getLum())||(.7292>=b.getLum()?a=new g.mxgraph.io.vsdx.theme.Color(255,255,255):Math.abs(b.getLum()-d.getLum())>Math.abs(b.getLum()-f.getLum())&&(a=c))}return a};h.prototype.getFillColor=function(c,a){if(!(null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||
null===c)||"boolean"!==typeof a&&null!==a){if((null!=c&&c instanceof g.mxgraph.io.vsdx.theme.QuickStyleVals||null===c)&&void 0===a)return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(c);throw Error("invalid overload");}return this.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals$boolean(c,a)};h.prototype.getLineStyle=function(c,a){this.processTheme();var b=null;switch(c){case 1:case 2:case 3:case 4:case 5:case 6:b=a[c-1];break;case 100:case 101:case 102:case 103:b=a===this.lineStyles?