<\/i> ' + LS('About...') , new MenuItem(($clinit_SafeHtmlUtils() , new SafeHtmlString(icoStr)), null));
$addItem_0(this$static.fileMenuBar, this$static.aboutItem);
$setScheduledCommand(this$static.aboutItem, new MyCommand('file', 'about'));
this$static.menuBar = new MenuBar;
$addItem_0(this$static.menuBar, new MenuItem_2(LS('File'), this$static.fileMenuBar));
m = new MenuBar_0(true);
$addItem_0(m, this$static.undoItem = $menuItemWithShortcut('ccw', 'Undo', LS(this$static.ctrlMetaKey + 'Z'), new MyCommand('edit', 'undo')));
$addItem_0(m, this$static.redoItem = $menuItemWithShortcut('cw', 'Redo', LS(this$static.ctrlMetaKey + 'Y'), new MyCommand('edit', 'redo')));
$addSeparator(m, new MenuItemSeparator);
$addItem_0(m, this$static.cutItem = $menuItemWithShortcut('scissors', 'Cut', LS(this$static.ctrlMetaKey + 'X'), new MyCommand('edit', 'cut')));
$addItem_0(m, this$static.copyItem = $menuItemWithShortcut('copy', 'Copy', LS(this$static.ctrlMetaKey + 'C'), new MyCommand('edit', 'copy')));
$addItem_0(m, this$static.pasteItem = $menuItemWithShortcut('paste', 'Paste', LS(this$static.ctrlMetaKey + 'V'), new MyCommand('edit', 'paste')));
$setEnabled_1(this$static.pasteItem, false);
$addItem_0(m, $menuItemWithShortcut('clone', 'Duplicate', LS(this$static.ctrlMetaKey + 'D'), new MyCommand('edit', 'duplicate')));
$addSeparator(m, new MenuItemSeparator);
$addItem_0(m, $menuItemWithShortcut('select-all', 'Select All', LS(this$static.ctrlMetaKey + 'A'), new MyCommand('edit', 'selectAll')));
$addSeparator(m, new MenuItemSeparator);
$addItem_0(m, $menuItemWithShortcut('search', 'Find Component...', '/', new MyCommand('edit', 'search')));
$addItem_0(m, $iconMenuItem('target', weAreInUS(false)?'Center Circuit':'Centre Circuit', new MyCommand('edit', 'centercircuit')));
$addItem_0(m, $menuItemWithShortcut('zoom-11', 'Zoom 100%', '0', new MyCommand('zoom', 'zoom100')));
$addItem_0(m, $menuItemWithShortcut('zoom-in', 'Zoom In', '+', new MyCommand('zoom', 'zoomin')));
$addItem_0(m, $menuItemWithShortcut('zoom-out', 'Zoom Out', '-', new MyCommand('zoom', 'zoomout')));
$addItem_0(m, this$static.rotateItem = $iconMenuItem('cw', 'Rotate', new MyCommand('edit', 'rotate')));
$addItem_0(m, this$static.mirrorItem = $iconMenuItem('flip-x', 'Mirror', new MyCommand('edit', 'mirror')));
$addItem_0(this$static.menuBar, new MenuItem_2(LS('Edit'), m));
drawMenuBar = new MenuBar_0(true);
drawMenuBar.autoOpen = true;
$addItem_0(this$static.menuBar, new MenuItem_2(LS('Draw'), drawMenuBar));
m = new MenuBar_0(true);
$addItem_0(m, this$static.stackAllItem = $iconMenuItem('lines', 'Stack All', new MyCommand('scopes', 'stackAll')));
$addItem_0(m, this$static.unstackAllItem = $iconMenuItem('columns', 'Unstack All', new MyCommand('scopes', 'unstackAll')));
$addItem_0(m, this$static.combineAllItem = $iconMenuItem('object-group', 'Combine All', new MyCommand('scopes', 'combineAll')));
$addItem_0(m, this$static.separateAllItem = $iconMenuItem('object-ungroup', 'Separate All', new MyCommand('scopes', 'separateAll')));
$addItem_0(this$static.menuBar, new MenuItem_2(LS('Scopes'), m));
this$static.optionsMenuBar = m = new MenuBar_0(true);
$addItem_0(this$static.menuBar, new MenuItem_2(LS('Options'), this$static.optionsMenuBar));
$addItem_0(m, this$static.dotsCheckItem = new CheckboxMenuItem(LS('Show Current')));
$setState_1(this$static.dotsCheckItem, true);
$addItem_0(m, this$static.voltsCheckItem = new CheckboxMenuItem_0(LS('Show Voltage'), new Menus$1(this$static)));
$setState_1(this$static.voltsCheckItem, true);
$addItem_0(m, this$static.powerCheckItem = new CheckboxMenuItem_0(LS('Show Power'), new Menus$2(this$static)));
$addItem_0(m, this$static.showValuesCheckItem = new CheckboxMenuItem(LS('Show Values')));
$setState_1(this$static.showValuesCheckItem, true);
$addItem_0(m, this$static.smallGridCheckItem = new CheckboxMenuItem_0(LS('Small Grid'), new Menus$3(this$static)));
$addItem_0(m, this$static.toolbarCheckItem = new CheckboxMenuItem_0(LS('Toolbar'), new Menus$4(this$static)));
$addItem_0(m, this$static.crossHairCheckItem = new CheckboxMenuItem_0(LS('Show Cursor Crosshair'), new Menus$5(this$static)));
$addItem_0(m, this$static.euroResistorCheckItem = new CheckboxMenuItem(LS('European Resistors')));
$addItem_0(m, this$static.euroGatesCheckItem = new CheckboxMenuItem(LS('IEC Gates')));
$addItem_0(m, this$static.printableCheckItem = new CheckboxMenuItem(LS('White Background')));
$addItem_0(m, this$static.conventionCheckItem = new CheckboxMenuItem(LS('Conventional Current Motion')));
$addItem_0(m, this$static.noEditCheckItem = new CheckboxMenuItem(LS('Disable Editing')));
$addItem_0(m, this$static.mouseWheelEditCheckItem = new CheckboxMenuItem_0(LS('Edit Values With Mouse Wheel'), new Menus$6(this$static)));
$addItem_0(m, new CheckboxAlignedMenuItem(LS('Shortcuts...'), new MyCommand('options', 'shortcuts')));
$addItem_0(m, new CheckboxAlignedMenuItem(LS('Other Options...'), new MyCommand('options', 'other')));
$wnd.openFile != undefined && $addItem_0(m, new CheckboxAlignedMenuItem(LS('Toggle Dev Tools'), new MyCommand('options', 'devtools')));
m = new MenuBar_0(true);
$addItem_0(m, new MenuItem_1(LS('Convert Wires to Routed Wires'), new MyCommand('tools', 'convertWires')));
$addItem_0(m, new MenuItem_1(LS('Subcircuit Manager'), new MyCommand('tools', 'subcircuits')));
$addItem_0(this$static.menuBar, new MenuItem_2(LS('Tools'), m));
this$static.mainMenuBar = new MenuBar_0(true);
this$static.mainMenuBar.autoOpen = true;
$composeMainMenu(this$static, this$static.mainMenuBar, 0);
$composeMainMenu(this$static, drawMenuBar, 1);
this$static.elmMenuBar = new MenuBar_0(true);
this$static.elmMenuBar.autoOpen = true;
$addItem_0(this$static.elmMenuBar, this$static.elmEditMenuItem = new MenuItem_1(LS('Edit...'), new MyCommand('elm', 'edit')));
$addItem_0(this$static.elmMenuBar, this$static.elmScopeMenuItem = new MenuItem_1(LS('View in New Scope'), new MyCommand('elm', 'viewInScope')));
$addItem_0(this$static.elmMenuBar, this$static.elmFloatScopeMenuItem = new MenuItem_1(LS('View in New Undocked Scope'), new MyCommand('elm', 'viewInFloatScope')));
$addItem_0(this$static.elmMenuBar, this$static.elmAddScopeMenuItem = new MenuItem_1(LS('Add to Existing Scope'), new MyCommand('elm', 'addToScope0')));
$addItem_0(this$static.elmMenuBar, new MenuItem_1(LS('Cut'), new MyCommand('elm', 'cut')));
$addItem_0(this$static.elmMenuBar, new MenuItem_1(LS('Copy'), new MyCommand('elm', 'copy')));
$addItem_0(this$static.elmMenuBar, new MenuItem_1(LS('Delete'), new MyCommand('elm', 'delete')));
$addItem_0(this$static.elmMenuBar, new MenuItem_1(LS('Duplicate'), new MyCommand('elm', 'duplicate')));
$addItem_0(this$static.elmMenuBar, new MenuItem_1(LS('Swap Terminals'), new MyCommand('elm', 'flip')));
$addItem_0(this$static.elmMenuBar, this$static.elmRotateMenuItem = new MenuItem_1(LS('Rotate'), new MyCommand('elm', 'rotate')));
$addItem_0(this$static.elmMenuBar, this$static.elmMirrorMenuItem = new MenuItem_1(LS('Mirror'), new MyCommand('elm', 'mirror')));
$addItem_0(this$static.elmMenuBar, this$static.elmSplitMenuItem = $menuItemWithShortcut('', 'Split Wire Manually', LS(this$static.ctrlMetaKey + 'click'), new MyCommand('elm', 'split')));
$addItem_0(this$static.elmMenuBar, this$static.elmSliderMenuItem = new MenuItem_1(LS('Sliders...'), new MyCommand('elm', 'sliders')));
}
function $makeClassCheckItems(this$static, mb, items){
var i;
for (i = 0; i < items.length; i += 2)
$addItem_0(mb, $getClassCheckItem(this$static, LS(items[i]), items[i + 1]));
}
function $menuItemWithShortcut(icon, text_0, shortcut, cmd){
var nbsp, schtml, sn;
nbsp = ' ';
icon == '' && (nbsp = '');
schtml = shortcut.length <= 1?'