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:
this.update)};var G=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?G.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(g){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var S=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(g){g=S.apply(this,arguments);var y=this.editorUi,
H=y.editor.graph;if(H.isEnabled()){var O=y.getCurrentFile();null!=O&&O.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},function(R){y.editor.setAutosave(R);y.editor.autosave&&O.isModified()&&O.fileChanged()},{install:function(R){this.listener=function(){R(y.editor.autosave)};y.editor.addListener("autosaveChanged",this.listener)},destroy:function(){y.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&H.isEnabled()&&
"undefined"!==typeof MathJax){var P=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return H.mathEnabled},function(R){y.actions.get("mathematicalTypesetting").funct()},{install:function(R){this.listener=function(){R(H.mathEnabled)};y.addListener("mathEnabledChanged",this.listener)},destroy:function(){y.removeListener(this.listener)}});g.appendChild(P);var V=y.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");V.style.position="relative";V.style.marginLeft=
"6px";P.appendChild(V)}return g};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,