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:
B,g.container.scrollTop=H,this.pasteCells(v,n,!1,!0)}catch(L){this.handleError(L)}}),0)}}catch(L){this.handleError(L)}}),!0);var u=this.isSelectionAllowed;this.isSelectionAllowed=function(v){return mxEvent.getSource(v)==n?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"kennedy"==
d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g,n){function t(L){return"simple"==L||0==g&&"sketch"==L}g=null!=g?g:150;var u=Editor.currentTheme,v=t(u)&&this.isDefaultTheme(d)||this.isDefaultTheme(u)&&t(d),B=v&&"sketch"!=d&&"sketch"!=u;if(v&&!this.themeSwitching){Editor.currentTheme=d;this.themeSwitching=!0;var H=this.saveScrollState();mxUtils.setPrefixedStyle(this.container.style,"transition","all "+g+"ms ease-in-out");0==g&&(this.container.style.opacity="0");window.setTimeout(mxUtils.bind(this,