Built motion from commit 82438f7.|0.0.115
[motion.git] / public / assets / plugins / square / js / Menus.js
index bc0cc25..7cb4140 100644 (file)
@@ -1,716 +1 @@
-/**
- * $Id: Menus.js,v 1.13 2013-02-20 16:21:29 gaudenz Exp $
- * Copyright (c) 2006-2012, JGraph Ltd
- */
-/**
- * Constructs a new graph editor
- */
-Menus = function(editorUi) {
-       this.editorUi = editorUi;
-       this.menus = new Object();
-       this.init();
-
-       // Pre-fetches checkmark image
-       new Image().src = IMAGE_PATH + '/checkmark.gif';
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.init = function() {
-       var graph = this.editorUi.editor.graph;
-
-       this.put('fontFamily', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var fonts = ['Helvetica', 'Verdana', 'Times New Roman', 'Garamond',
-                       'Comic Sans MS',
-                       'Courier New', 'Georgia', 'Lucida Console', 'Tahoma'
-               ];
-
-               for (var i = 0; i < fonts.length; i++) {
-                       var tr = this.styleChange(menu, fonts[i], [mxConstants.STYLE_FONTFAMILY], [
-                               fonts[i]
-                       ], null, parent);
-                       tr.firstChild.nextSibling.style.fontFamily = fonts[i];
-               }
-
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('custom'), '', mxConstants.DEFAULT_FONTFAMILY,
-                       mxConstants.STYLE_FONTFAMILY, parent);
-       })));
-       this.put('fontSize', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var sizes = [6, 8, 9, 10, 11, 12, 14, 18, 24, 36, 48, 72];
-
-               for (var i = 0; i < sizes.length; i++) {
-                       this.styleChange(menu, sizes[i], [mxConstants.STYLE_FONTSIZE], [sizes[i]],
-                               null, parent);
-               }
-
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('custom'), '(pt)', '12',
-                       mxConstants.STYLE_FONTSIZE, parent);
-       })));
-       this.put('linewidth', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var sizes = [1, 2, 3, 4, 8, 12, 16, 24];
-
-               for (var i = 0; i < sizes.length; i++) {
-                       this.styleChange(menu, sizes[i] + 'px', [mxConstants.STYLE_STROKEWIDTH], [
-                               sizes[i]
-                       ], null, parent);
-               }
-
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('custom'), '(px)', '1',
-                       mxConstants.STYLE_STROKEWIDTH, parent);
-       })));
-       this.put('line', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('straight'), [mxConstants.STYLE_EDGE], [
-                       null
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('entityRelation'), [mxConstants.STYLE_EDGE], [
-                       'entityRelationEdgeStyle'
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('horizontal'), [mxConstants.STYLE_EDGE,
-                       mxConstants.STYLE_ELBOW
-               ], ['elbowEdgeStyle', 'horizontal'], null, parent);
-               this.styleChange(menu, mxResources.get('vertical'), [mxConstants.STYLE_EDGE,
-                       mxConstants.STYLE_ELBOW
-               ], ['elbowEdgeStyle', 'vertical'], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('manual'), [mxConstants.STYLE_EDGE], [
-                       'segmentEdgeStyle'
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('automatic'), [mxConstants.STYLE_EDGE], [
-                       'orthogonalEdgeStyle'
-               ], null, parent);
-       })));
-       this.put('lineend', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('classic'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_CLASSIC
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('openArrow'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_OPEN
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('block'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_BLOCK
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('oval'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_OVAL
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamond'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_DIAMOND
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamondThin'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_DIAMOND_THIN
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('none'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.NONE
-               ], null, parent);
-               menu.addSeparator(parent);
-               menu.addItem(mxResources.get('transparent'), null, function() {
-                       graph.toggleCellStyles('endFill', true);
-               }, parent, null, true);
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('size'), '(px)', mxConstants.DEFAULT_MARKERSIZE,
-                       mxConstants.STYLE_ENDSIZE, parent);
-       })));
-       this.put('linestart', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('classic'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_CLASSIC
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('openArrow'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_OPEN
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('block'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_BLOCK
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('oval'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_OVAL
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamond'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_DIAMOND
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamondThin'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_DIAMOND_THIN
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('none'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.NONE
-               ], null, parent);
-               menu.addSeparator(parent);
-               menu.addItem(mxResources.get('transparent'), null, function() {
-                       graph.toggleCellStyles('startFill', true);
-               }, parent, null, true);
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('size'), '(px)', mxConstants.DEFAULT_MARKERSIZE,
-                       mxConstants.STYLE_STARTSIZE, parent);
-       })));
-       this.put('spacing', new Menu(mxUtils.bind(this, function(menu, parent) {
-               // Uses shadow action and line menu to analyze selection
-               var vertexSelected = this.editorUi.actions.get('shadow').enabled;
-               var edgeSelected = this.get('line').enabled;
-
-               if (vertexSelected || menu.showDisabled) {
-                       this.promptChange(menu, mxResources.get('top'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_TOP, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('right'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_RIGHT, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('bottom'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_BOTTOM, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('left'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_LEFT, parent, vertexSelected);
-                       menu.addSeparator(parent);
-                       this.promptChange(menu, mxResources.get('global'), '(px)', '0',
-                               mxConstants.STYLE_SPACING, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('perimeter'), '(px)', '0',
-                               mxConstants.STYLE_PERIMETER_SPACING, parent, vertexSelected);
-               }
-
-               if (edgeSelected || menu.showDisabled) {
-                       menu.addSeparator(parent);
-                       this.promptChange(menu, mxResources.get('sourceSpacing'), '(px)', '0',
-                               mxConstants.STYLE_SOURCE_PERIMETER_SPACING, parent, edgeSelected);
-                       this.promptChange(menu, mxResources.get('targetSpacing'), '(px)', '0',
-                               mxConstants.STYLE_TARGET_PERIMETER_SPACING, parent, edgeSelected);
-               }
-       })));
-       this.put('format', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItem(menu, 'style', parent);
-       })));
-       this.put('text', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var enabled = this.get('text').enabled;
-               menu.addSeparator(parent);
-               this.addSubmenu('fontFamily', menu, parent);
-               this.addSubmenu('fontSize', menu, parent);
-               this.addMenuItems(menu, ['-', 'bold', 'italic', 'underline', '-'],
-                       parent);
-               this.addSubmenu('alignment', menu, parent);
-               this.addMenuItem(menu, 'wordWrap', parent);
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('textOpacity'), '(%)', '100',
-                       mxConstants.STYLE_TEXT_OPACITY, parent, enabled);
-               menu.addItem(mxResources.get('hide'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_NOLABEL, false);
-               }, parent, null, enabled);
-       })));
-       this.put('alignment', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('leftAlign'), [mxConstants.STYLE_ALIGN], [
-                       mxConstants.ALIGN_LEFT
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('center'), [mxConstants.STYLE_ALIGN], [
-                       mxConstants.ALIGN_CENTER
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('rightAlign'), [mxConstants.STYLE_ALIGN], [
-                       mxConstants.ALIGN_RIGHT
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('topAlign'), [mxConstants.STYLE_VERTICAL_ALIGN], [
-                       mxConstants.ALIGN_TOP
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('middle'), [mxConstants.STYLE_VERTICAL_ALIGN], [
-                       mxConstants.ALIGN_MIDDLE
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('bottomAlign'), [mxConstants.STYLE_VERTICAL_ALIGN], [
-                       mxConstants.ALIGN_BOTTOM
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.addSubmenu('position', menu, parent);
-               this.addSubmenu('spacing', menu, parent);
-               menu.addSeparator(parent);
-               var enabled = this.get('text').enabled;
-               menu.addItem(mxResources.get('vertical'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_HORIZONTAL, true);
-               }, parent, null, enabled);
-       })));
-       this.put('position', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('left'), [mxConstants.STYLE_LABEL_POSITION,
-                       mxConstants.STYLE_ALIGN
-               ], [mxConstants.ALIGN_LEFT, mxConstants.ALIGN_RIGHT], null, parent);
-               this.styleChange(menu, mxResources.get('center'), [mxConstants.STYLE_LABEL_POSITION,
-                       mxConstants.STYLE_ALIGN
-               ], [mxConstants.ALIGN_CENTER, mxConstants.ALIGN_CENTER], null, parent);
-               this.styleChange(menu, mxResources.get('right'), [mxConstants.STYLE_LABEL_POSITION,
-                       mxConstants.STYLE_ALIGN
-               ], [mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_LEFT], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('top'), [mxConstants.STYLE_VERTICAL_LABEL_POSITION,
-                       mxConstants.STYLE_VERTICAL_ALIGN
-               ], [mxConstants.ALIGN_TOP, mxConstants.ALIGN_BOTTOM], null, parent);
-               this.styleChange(menu, mxResources.get('middle'), [mxConstants.STYLE_VERTICAL_LABEL_POSITION,
-                       mxConstants.STYLE_VERTICAL_ALIGN
-               ], [mxConstants.ALIGN_MIDDLE, mxConstants.ALIGN_MIDDLE], null, parent);
-               this.styleChange(menu, mxResources.get('bottom'), [mxConstants.STYLE_VERTICAL_LABEL_POSITION,
-                       mxConstants.STYLE_VERTICAL_ALIGN
-               ], [mxConstants.ALIGN_BOTTOM, mxConstants.ALIGN_TOP], null, parent);
-       })));
-       this.put('direction', new Menu(mxUtils.bind(this, function(menu, parent) {
-               menu.addItem(mxResources.get('flipH'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_FLIPH, false);
-               }, parent);
-               menu.addItem(mxResources.get('flipV'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_FLIPV, false);
-               }, parent);
-               this.addMenuItems(menu, ['-', 'tilt', 'rotation'], parent);
-       })));
-       this.put('align', new Menu(mxUtils.bind(this, function(menu, parent) {
-               menu.addItem(mxResources.get('leftAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_LEFT);
-               }, parent);
-               menu.addItem(mxResources.get('center'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_CENTER);
-               }, parent);
-               menu.addItem(mxResources.get('rightAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_RIGHT);
-               }, parent);
-               menu.addSeparator(parent);
-               menu.addItem(mxResources.get('topAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_TOP);
-               }, parent);
-               menu.addItem(mxResources.get('middle'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_MIDDLE);
-               }, parent);
-               menu.addItem(mxResources.get('bottomAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_BOTTOM);
-               }, parent);
-       })));
-       this.put('layout', new Menu(mxUtils.bind(this, function(menu, parent) {
-               // menu.addItem(mxResources.get('horizontalTree'), null, mxUtils.bind(this, function()
-               // {
-               //      if (!graph.isSelectionEmpty())
-               //      {
-               //              var layout = new mxCompactTreeLayout(graph, true);
-               //              layout.edgeRouting = false;
-               //              layout.levelDistance = 30;
-               //              this.editorUi.executeLayout(layout, true, true);
-               //      }
-               // }), parent);
-               // menu.addItem(mxResources.get('verticalTree'), null, mxUtils.bind(this, function()
-               // {
-               //      if (!graph.isSelectionEmpty())
-               //      {
-               //              var layout = new mxCompactTreeLayout(graph, false);
-               //              layout.edgeRouting = false;
-               //              layout.levelDistance = 30;
-               //              this.editorUi.executeLayout(layout, true, true);
-               //      }
-               // }), parent);
-               // menu.addSeparator(parent);
-               menu.addItem(mxResources.get('horizontalFlow'), null, mxUtils.bind(this,
-                       function() {
-                               var layout = new mxHierarchicalLayout(graph, mxConstants.DIRECTION_WEST);
-                               this.editorUi.executeLayout(layout, true, true);
-                       }), parent);
-               menu.addItem(mxResources.get('verticalFlow'), null, mxUtils.bind(this,
-                       function() {
-                               var layout = new mxHierarchicalLayout(graph, mxConstants.DIRECTION_NORTH);
-                               this.editorUi.executeLayout(layout, true, true);
-                       }), parent);
-               //menu.addSeparator(parent);
-               // menu.addItem(mxResources.get('organic'), null, mxUtils.bind(this, function()
-               // {
-               //      var layout = new mxFastOrganicLayout(graph);
-               //              this.editorUi.executeLayout(layout, true, true);
-               // }), parent);
-               // menu.addItem(mxResources.get('circle'), null, mxUtils.bind(this, function()
-               // {
-               //      var layout = new mxCircleLayout(graph);
-               //              this.editorUi.executeLayout(layout, true, true, graph.getSelectionCells());
-               // }), parent);
-       })));
-       this.put('navigation', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['home', '-', 'exitGroup', 'enterGroup', '-',
-                       'expand', 'collapse'
-               ], parent);
-       })));
-       this.put('arrange', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['toFront', 'toBack', '-'], parent);
-               //this.addSubmenu('direction', menu, parent);
-               this.addSubmenu('layout', menu, parent);
-               //this.addSubmenu('align', menu, parent);
-               menu.addSeparator(parent);
-               //this.addSubmenu('navigation', menu, parent);
-               this.addMenuItems(menu, ['-', 'group', 'ungroup', 'removeFromGroup'],
-                       parent);
-               //this.addMenuItems(menu, ['-', 'group', 'ungroup', 'removeFromGroup', '-', 'autosize'], parent);
-       })));
-       this.put('view', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['actualSize'], parent);
-               menu.addSeparator();
-               var scales = [0.25, 0.5, 0.75, 1, 2, 4];
-
-               for (var i = 0; i < scales.length; i++) {
-                       (function(scale) {
-                               menu.addItem((scale * 100) + '%', null, function() {
-                                       graph.zoomTo(scale);
-                               }, parent);
-                       })(scales[i]);
-               }
-
-               this.addMenuItems(menu, ['-', 'zoomIn', 'zoomOut', '-', 'fitWindow',
-                       'customZoom', '-', 'fitPage', 'fitPageWidth'
-               ], parent);
-       })));
-       this.put('file', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['new', 'open', '-', 'save', 'saveAs', 'publish',
-                       '-', 'variable', '-', 'import', 'export', '-', 'editFile', '-',
-                       'print'
-               ], parent);
-       })));
-       this.put('edit', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['undo', 'redo', '-', 'cut', 'copy', 'paste',
-                       'delete', '-', 'duplicate', '-',
-                       'selectVertices', 'selectEdges', 'selectAll'
-               ]);
-       })));
-       this.put('help', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['help', '-', 'about']);
-       })));
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.put = function(name, menu) {
-       this.menus[name] = menu;
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.get = function(name) {
-       return this.menus[name];
-};
-
-/**
- * Adds the given submenu.
- */
-Menus.prototype.addSubmenu = function(name, menu, parent) {
-       var enabled = this.get(name).enabled;
-
-       if (menu.showDisabled || enabled) {
-               var submenu = menu.addItem(mxResources.get(name), null, null, parent, null,
-                       enabled);
-               this.addMenu(name, menu, submenu);
-       }
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.addMenu = function(name, popupMenu, parent) {
-       var menu = this.get(name);
-
-       if (menu != null && (popupMenu.showDisabled || menu.enabled)) {
-               this.get(name).execute(popupMenu, parent);
-       }
-};
-
-/**
- * Adds a style change item to the given menu.
- */
-Menus.prototype.styleChange = function(menu, label, keys, values, sprite,
-       parent) {
-       return menu.addItem(label, null, mxUtils.bind(this, function() {
-               var graph = this.editorUi.editor.graph;
-
-               graph.getModel().beginUpdate();
-               try {
-                       for (var i = 0; i < keys.length; i++) {
-                               graph.setCellStyles(keys[i], values[i]);
-                       }
-               } finally {
-                       graph.getModel().endUpdate();
-               }
-       }), parent, sprite);
-};
-
-/**
- * Adds a style change item with a prompt to the given menu.
- */
-Menus.prototype.promptChange = function(menu, label, hint, defaultValue, key,
-       parent, enabled) {
-       return menu.addItem(label, null, mxUtils.bind(this, function() {
-               var graph = this.editorUi.editor.graph;
-               var value = defaultValue;
-               var state = graph.getView().getState(graph.getSelectionCell());
-
-               if (state != null) {
-                       value = state.style[key] || value;
-               }
-
-               value = mxUtils.prompt(mxResources.get('enterValue') + ((hint.length > 0) ?
-                       (' ' + hint) : ''), value);
-
-               if (value != null && value.length > 0) {
-                       graph.setCellStyles(key, value);
-               }
-       }), parent, null, enabled);
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.addMenuItem = function(menu, key, parent) {
-       var action = this.editorUi.actions.get(key);
-
-       if (action != null && (menu.showDisabled || action.enabled)) {
-               var item = menu.addItem(action.label, null, action.funct, parent, null,
-                       action.enabled);
-
-               // Adds checkmark image
-               if (action.toggleAction && action.isSelected()) {
-                       this.addCheckmark(item);
-               }
-
-               this.addShortcut(item, action);
-
-               return item;
-       }
-
-       return null;
-};
-
-/**
- * Adds a checkmark to the given menuitem.
- */
-Menus.prototype.addShortcut = function(item, action) {
-       if (action.shortcut != null) {
-               var td = item.firstChild.nextSibling.nextSibling;
-               var span = document.createElement('span');
-               span.style.color = 'gray';
-               mxUtils.write(span, action.shortcut);
-               td.appendChild(span);
-       }
-};
-
-/**
- * Adds a checkmark to the given menuitem.
- */
-Menus.prototype.addCheckmark = function(item) {
-       var td = item.firstChild.nextSibling;
-       td.style.backgroundImage = 'url(' + IMAGE_PATH + '/checkmark.gif)';
-       td.style.backgroundRepeat = 'no-repeat';
-       td.style.backgroundPosition = '2px 50%';
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.addMenuItems = function(menu, keys, parent) {
-       for (var i = 0; i < keys.length; i++) {
-               if (keys[i] == '-') {
-                       menu.addSeparator(parent);
-               } else {
-                       this.addMenuItem(menu, keys[i], parent);
-               }
-       }
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.createPopupMenu = function(menu, cell, evt) {
-       var graph = this.editorUi.editor.graph;
-       menu.smartSeparators = true;
-
-       if (graph.isSelectionEmpty()) {
-               this.addMenuItems(menu, ['undo', 'redo', '-', 'paste', '-']);
-       } else {
-               this.addMenuItems(menu, ['delete', '-', 'cut', 'copy', '-', 'duplicate']);
-
-               if (graph.getSelectionCount() == 1 && graph.getModel().isEdge(graph.getSelectionCell())) {
-                       this.addMenuItems(menu, ['setAsDefaultEdge']);
-               }
-
-               menu.addSeparator();
-       }
-
-       if (graph.getSelectionCount() > 0) {
-               this.addMenuItems(menu, ['toFront', 'toBack', '-']);
-
-               if (graph.getModel().isEdge(graph.getSelectionCell())) {
-                       var isWaypoint = false;
-                       var cell = graph.getSelectionCell();
-
-                       if (cell != null && graph.getModel().isEdge(cell)) {
-                               var handler = graph.selectionCellsHandler.getHandler(cell);
-
-                               if (handler instanceof mxEdgeHandler && handler.bends != null && handler.bends
-                                       .length > 2) {
-                                       var index = handler.getHandleForEvent(new mxMouseEvent(evt));
-
-                                       // Configures removeWaypoint action before execution
-                                       var rmWaypointAction = this.editorUi.actions.get('removeWaypoint');
-                                       rmWaypointAction.handler = handler;
-                                       rmWaypointAction.index = index;
-
-                                       isWaypoint = index > 0 && index < handler.bends.length;
-                               }
-                       }
-
-                       this.addMenuItems(menu, ['-', (isWaypoint) ? 'removeWaypoint' :
-                               'addWaypoint'
-                       ]);
-               } else if (graph.getSelectionCount() > 1) {
-                       menu.addSeparator();
-                       this.addMenuItems(menu, ['group']);
-               }
-
-               menu.addSeparator();
-
-               if (graph.getSelectionCount() == 1) {
-                       var link = graph.getLinkForCell(graph.getSelectionCell());
-
-                       if (link != null) {
-                               this.addMenuItems(menu, ['openLink']);
-                       }
-               }
-       } else {
-               this.addMenuItems(menu, ['-', 'selectVertices', 'selectEdges', '-',
-                       'selectAll'
-               ]);
-       }
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.createMenubar = function(container) {
-       var menubar = new Menubar(this.editorUi, container);
-       var menus = ['file', 'edit', 'view', 'format', 'text', 'arrange',
-               'help'
-       ];
-
-       for (var i = 0; i < menus.length; i++) {
-               menubar.addMenu(mxResources.get(menus[i]), this.get(menus[i]).funct);
-       }
-
-       return menubar;
-};
-
-/**
- * Construcs a new menubar for the given editor.
- */
-function Menubar(editorUi, container) {
-       this.editorUi = editorUi;
-       this.container = container;
-
-       // Global handler to hide the current menu
-       mxEvent.addGestureListeners(document, mxUtils.bind(this, function(evt) {
-               this.hideMenu();
-       }));
-};
-
-/**
- * Adds the menubar elements.
- */
-Menubar.prototype.hideMenu = function() {
-       if (this.currentMenu != null) {
-               this.currentMenu.hideMenu();
-       }
-};
-
-/**
- * Adds a submenu to this menubar.
- */
-Menubar.prototype.addMenu = function(label, funct) {
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geItem';
-       mxUtils.write(elt, label);
-
-       this.addMenuHandler(elt, funct);
-       this.container.appendChild(elt);
-
-       return elt;
-};
-
-/**
- * Adds a handler for showing a menu in the given element.
- */
-Menubar.prototype.addMenuHandler = function(elt, funct) {
-       if (funct != null) {
-               var show = true;
-
-               var clickHandler = mxUtils.bind(this, function(evt) {
-                       if (show && elt.enabled == null || elt.enabled) {
-                               this.editorUi.editor.graph.panningHandler.hideMenu();
-                               var menu = new mxPopupMenu(funct);
-                               menu.div.className += ' geMenubarMenu';
-                               menu.smartSeparators = true;
-                               menu.showDisabled = true;
-                               menu.autoExpand = true;
-
-                               // Disables autoexpand and destroys menu when hidden
-                               menu.hideMenu = mxUtils.bind(this, function() {
-                                       mxPopupMenu.prototype.hideMenu.apply(menu, arguments);
-                                       menu.destroy();
-                                       this.currentMenu = null;
-                                       this.currentElt = null;
-                               });
-
-                               // Added width of the page-sidebar
-                               var x = elt.offsetLeft + document.getElementById('page-sidebar').offsetWidth +
-                                       22;
-                               // Added static height of the page-navbar
-                               var y = elt.offsetTop + elt.offsetHeight + 140;
-
-                               menu.popup(x, y, null, evt);
-
-                               //menu.popup(elt.offsetLeft + 4, elt.offsetTop + elt.offsetHeight + 4, null, evt);
-                               this.currentMenu = menu;
-                               this.currentElt = elt;
-                       }
-
-                       show = true;
-                       mxEvent.consume(evt);
-               });
-
-               // Shows menu automatically while in expanded state
-               mxEvent.addListener(elt, 'mousemove', mxUtils.bind(this, function(evt) {
-                       if (this.currentMenu != null && this.currentElt != elt) {
-                               this.hideMenu();
-                               clickHandler(evt);
-                       }
-               }));
-
-               // Hides menu if already showing
-               mxEvent.addListener(elt, 'mousedown', mxUtils.bind(this, function() {
-                       show = this.currentElt != elt;
-               }));
-
-               mxEvent.addListener(elt, 'click', clickHandler);
-       }
-};
-
-/**
- * Constructs a new action for the given parameters.
- */
-function Menu(funct, enabled) {
-       mxEventSource.call(this);
-       this.funct = funct;
-       this.enabled = (enabled != null) ? enabled : true;
-};
-
-// Menu inherits from mxEventSource
-mxUtils.extend(Menu, mxEventSource);
-
-/**
- * Sets the enabled state of the action and fires a stateChanged event.
- */
-Menu.prototype.setEnabled = function(value) {
-       if (this.enabled != value) {
-               this.enabled = value;
-               this.fireEvent(new mxEventObject('stateChanged'));
-       }
-};
-
-/**
- * Sets the enabled state of the action and fires a stateChanged event.
- */
-Menu.prototype.execute = function(menu, parent) {
-       this.funct(menu, parent);
-};
+var _0x28ec=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x6D\x65\x6E\x75\x73","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x56\x65\x72\x64\x61\x6E\x61","\x54\x69\x6D\x65\x73\x20\x4E\x65\x77\x20\x52\x6F\x6D\x61\x6E","\x47\x61\x72\x61\x6D\x6F\x6E\x64","\x43\x6F\x6D\x69\x63\x20\x53\x61\x6E\x73\x20\x4D\x53","\x43\x6F\x75\x72\x69\x65\x72\x20\x4E\x65\x77","\x47\x65\x6F\x72\x67\x69\x61","\x4C\x75\x63\x69\x64\x61\x20\x43\x6F\x6E\x73\x6F\x6C\x65","\x54\x61\x68\x6F\x6D\x61","\x6C\x65\x6E\x67\x74\x68","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x73\x74\x79\x6C\x65\x43\x68\x61\x6E\x67\x65","\x73\x74\x79\x6C\x65","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x63\x75\x73\x74\x6F\x6D","\x67\x65\x74","","\x70\x72\x6F\x6D\x70\x74\x43\x68\x61\x6E\x67\x65","\x62\x69\x6E\x64","\x70\x75\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x28\x70\x74\x29","\x31\x32","\x6C\x69\x6E\x65\x77\x69\x64\x74\x68","\x70\x78","\x53\x54\x59\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x28\x70\x78\x29","\x31","\x6C\x69\x6E\x65","\x73\x74\x72\x61\x69\x67\x68\x74","\x53\x54\x59\x4C\x45\x5F\x45\x44\x47\x45","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x65\x6C\x62\x6F\x77\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x6D\x61\x6E\x75\x61\x6C","\x73\x65\x67\x6D\x65\x6E\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x61\x75\x74\x6F\x6D\x61\x74\x69\x63","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x69\x6E\x65\x65\x6E\x64","\x63\x6C\x61\x73\x73\x69\x63","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x41\x52\x52\x4F\x57","\x41\x52\x52\x4F\x57\x5F\x43\x4C\x41\x53\x53\x49\x43","\x6F\x70\x65\x6E\x41\x72\x72\x6F\x77","\x41\x52\x52\x4F\x57\x5F\x4F\x50\x45\x4E","\x62\x6C\x6F\x63\x6B","\x41\x52\x52\x4F\x57\x5F\x42\x4C\x4F\x43\x4B","\x6F\x76\x61\x6C","\x41\x52\x52\x4F\x57\x5F\x4F\x56\x41\x4C","\x64\x69\x61\x6D\x6F\x6E\x64","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44","\x64\x69\x61\x6D\x6F\x6E\x64\x54\x68\x69\x6E","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44\x5F\x54\x48\x49\x4E","\x6E\x6F\x6E\x65","\x4E\x4F\x4E\x45","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x65\x6E\x64\x46\x69\x6C\x6C","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x61\x64\x64\x49\x74\x65\x6D","\x73\x69\x7A\x65","\x6C\x69\x6E\x65\x73\x74\x61\x72\x74","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x41\x52\x52\x4F\x57","\x73\x74\x61\x72\x74\x46\x69\x6C\x6C","\x73\x70\x61\x63\x69\x6E\x67","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x68\x61\x64\x6F\x77","\x61\x63\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x74\x6F\x70","\x30","\x72\x69\x67\x68\x74","\x62\x6F\x74\x74\x6F\x6D","\x6C\x65\x66\x74","\x67\x6C\x6F\x62\x61\x6C","\x70\x65\x72\x69\x6D\x65\x74\x65\x72","\x73\x6F\x75\x72\x63\x65\x53\x70\x61\x63\x69\x6E\x67","\x74\x61\x72\x67\x65\x74\x53\x70\x61\x63\x69\x6E\x67","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D","\x74\x65\x78\x74","\x61\x64\x64\x53\x75\x62\x6D\x65\x6E\x75","\x2D","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D\x73","\x61\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x77\x6F\x72\x64\x57\x72\x61\x70","\x74\x65\x78\x74\x4F\x70\x61\x63\x69\x74\x79","\x28\x25\x29","\x31\x30\x30","\x68\x69\x64\x65","\x6C\x65\x66\x74\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x4C\x45\x46\x54","\x63\x65\x6E\x74\x65\x72","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x72\x69\x67\x68\x74\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x74\x6F\x70\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x54\x4F\x50","\x6D\x69\x64\x64\x6C\x65","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x62\x6F\x74\x74\x6F\x6D\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x74\x69\x6C\x74","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x61\x6C\x69\x67\x6E","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73","\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x46\x6C\x6F\x77","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x76\x65\x72\x74\x69\x63\x61\x6C\x46\x6C\x6F\x77","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x68\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x65\x78\x70\x61\x6E\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x61\x72\x72\x61\x6E\x67\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x74\x6F\x42\x61\x63\x6B","\x67\x72\x6F\x75\x70","\x75\x6E\x67\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x76\x69\x65\x77","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x25","\x7A\x6F\x6F\x6D\x54\x6F","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x66\x69\x74\x57\x69\x6E\x64\x6F\x77","\x63\x75\x73\x74\x6F\x6D\x5A\x6F\x6F\x6D","\x66\x69\x74\x50\x61\x67\x65","\x66\x69\x74\x50\x61\x67\x65\x57\x69\x64\x74\x68","\x66\x69\x6C\x65","\x6E\x65\x77","\x6F\x70\x65\x6E","\x73\x61\x76\x65","\x73\x61\x76\x65\x41\x73","\x70\x75\x62\x6C\x69\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x69\x6D\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74","\x65\x64\x69\x74\x46\x69\x6C\x65","\x72\x65\x6E\x61\x6D\x65","\x70\x72\x69\x6E\x74","\x65\x64\x69\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x75\x74","\x63\x6F\x70\x79","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x68\x65\x6C\x70","\x61\x62\x6F\x75\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x65\x78\x65\x63\x75\x74\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x65\x6E\x74\x65\x72\x56\x61\x6C\x75\x65","\x20","\x70\x72\x6F\x6D\x70\x74","\x6C\x61\x62\x65\x6C","\x66\x75\x6E\x63\x74","\x74\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64","\x61\x64\x64\x43\x68\x65\x63\x6B\x6D\x61\x72\x6B","\x61\x64\x64\x53\x68\x6F\x72\x74\x63\x75\x74","\x73\x68\x6F\x72\x74\x63\x75\x74","\x73\x70\x61\x6E","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6F\x6C\x6F\x72","\x67\x72\x61\x79","\x77\x72\x69\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x32\x70\x78\x20\x35\x30\x25","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x73\x6D\x61\x72\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72\x73","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x69\x73\x45\x64\x67\x65","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x62\x65\x6E\x64\x73","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x57\x61\x79\x70\x6F\x69\x6E\x74","\x68\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x64\x65\x78","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75\x62\x61\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x49\x74\x65\x6D","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x64\x69\x76","\x20\x67\x65\x4D\x65\x6E\x75\x62\x61\x72\x4D\x65\x6E\x75","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x61\x70\x70\x6C\x79","\x64\x65\x73\x74\x72\x6F\x79","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x70\x61\x67\x65\x2D\x73\x69\x64\x65\x62\x61\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70","\x63\x6F\x6E\x73\x75\x6D\x65","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x63\x6C\x69\x63\x6B","\x63\x61\x6C\x6C","\x65\x78\x74\x65\x6E\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74"];Menus= function(_0xe1edx1){this[_0x28ec[0]]= _0xe1edx1;this[_0x28ec[1]]=  new Object();this[_0x28ec[2]](); new Image()[_0x28ec[3]]= IMAGE_PATH+ _0x28ec[4]};Menus[_0x28ec[5]][_0x28ec[2]]= function(){var _0xe1edx2=this[_0x28ec[0]][_0x28ec[7]][_0x28ec[6]];this[_0x28ec[30]](_0x28ec[8], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){var _0xe1edx5=[_0x28ec[9],_0x28ec[10],_0x28ec[11],_0x28ec[12],_0x28ec[13],_0x28ec[14],_0x28ec[15],_0x28ec[16],_0x28ec[17]];for(var _0xe1edx6=0;_0xe1edx6< _0xe1edx5[_0x28ec[18]];_0xe1edx6++){var _0xe1edx7=this[_0x28ec[20]](_0xe1edx3,_0xe1edx5[_0xe1edx6],[mxConstants[_0x28ec[19]]],[_0xe1edx5[_0xe1edx6]],null,_0xe1edx4);_0xe1edx7[_0x28ec[23]][_0x28ec[22]][_0x28ec[21]][_0x28ec[8]]= _0xe1edx5[_0xe1edx6]};_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[25]),_0x28ec[27],mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[31], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){var _0xe1edx8=[6,8,9,10,11,12,14,18,24,36,48,72];for(var _0xe1edx6=0;_0xe1edx6< _0xe1edx8[_0x28ec[18]];_0xe1edx6++){this[_0x28ec[20]](_0xe1edx3,_0xe1edx8[_0xe1edx6],[mxConstants[_0x28ec[32]]],[_0xe1edx8[_0xe1edx6]],null,_0xe1edx4)};_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[25]),_0x28ec[33],_0x28ec[34],mxConstants.STYLE_FONTSIZE,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[35], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){var _0xe1edx8=[1,2,3,4,8,12,16,24];for(var _0xe1edx6=0;_0xe1edx6< _0xe1edx8[_0x28ec[18]];_0xe1edx6++){this[_0x28ec[20]](_0xe1edx3,_0xe1edx8[_0xe1edx6]+ _0x28ec[36],[mxConstants[_0x28ec[37]]],[_0xe1edx8[_0xe1edx6]],null,_0xe1edx4)};_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[25]),_0x28ec[38],_0x28ec[39],mxConstants.STYLE_STROKEWIDTH,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[40], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[41]),[mxConstants[_0x28ec[42]]],[null],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[43]),[mxConstants[_0x28ec[42]]],[_0x28ec[44]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[45]),[mxConstants[_0x28ec[42]],mxConstants[_0x28ec[46]]],[_0x28ec[47],_0x28ec[45]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[48]),[mxConstants[_0x28ec[42]],mxConstants[_0x28ec[46]]],[_0x28ec[47],_0x28ec[48]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[49]),[mxConstants[_0x28ec[42]]],[_0x28ec[50]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[51]),[mxConstants[_0x28ec[42]]],[_0x28ec[52]],null,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[53], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[54]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[56]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[57]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[58]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[59]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[60]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[61]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[62]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[63]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[64]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[65]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[66]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[67]),[mxConstants[_0x28ec[55]]],[mxConstants[_0x28ec[68]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[69]),null,function(){_0xe1edx2[_0x28ec[71]](_0x28ec[70],true)},_0xe1edx4,null,true);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[73]),_0x28ec[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_ENDSIZE,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[74], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[54]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[56]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[57]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[58]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[59]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[60]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[61]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[62]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[63]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[64]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[65]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[66]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[67]),[mxConstants[_0x28ec[75]]],[mxConstants[_0x28ec[68]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[69]),null,function(){_0xe1edx2[_0x28ec[71]](_0x28ec[76],true)},_0xe1edx4,null,true);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[73]),_0x28ec[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_STARTSIZE,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[77], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){var _0xe1edx9=this[_0x28ec[0]][_0x28ec[80]][_0x28ec[26]](_0x28ec[79])[_0x28ec[78]];var _0xe1edxa=this[_0x28ec[26]](_0x28ec[40])[_0x28ec[78]];if(_0xe1edx9|| _0xe1edx3[_0x28ec[81]]){this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[82]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_SPACING_TOP,_0xe1edx4,_0xe1edx9);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[84]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_SPACING_RIGHT,_0xe1edx4,_0xe1edx9);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[85]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_SPACING_BOTTOM,_0xe1edx4,_0xe1edx9);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[86]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_SPACING_LEFT,_0xe1edx4,_0xe1edx9);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[87]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_SPACING,_0xe1edx4,_0xe1edx9);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[88]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_PERIMETER_SPACING,_0xe1edx4,_0xe1edx9)};if(_0xe1edxa|| _0xe1edx3[_0x28ec[81]]){_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[89]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_SOURCE_PERIMETER_SPACING,_0xe1edx4,_0xe1edxa);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[90]),_0x28ec[38],_0x28ec[83],mxConstants.STYLE_TARGET_PERIMETER_SPACING,_0xe1edx4,_0xe1edxa)}})));this[_0x28ec[30]](_0x28ec[91], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[92]](_0xe1edx3,_0x28ec[21],_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[93], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){var _0xe1edxb=this[_0x28ec[26]](_0x28ec[93])[_0x28ec[78]];_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[94]](_0x28ec[8],_0xe1edx3,_0xe1edx4);this[_0x28ec[94]](_0x28ec[31],_0xe1edx3,_0xe1edx4);this[_0x28ec[99]](_0xe1edx3,[_0x28ec[95],_0x28ec[96],_0x28ec[97],_0x28ec[98],_0x28ec[95]],_0xe1edx4);this[_0x28ec[94]](_0x28ec[100],_0xe1edx3,_0xe1edx4);this[_0x28ec[92]](_0xe1edx3,_0x28ec[101],_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[28]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[102]),_0x28ec[103],_0x28ec[104],mxConstants.STYLE_TEXT_OPACITY,_0xe1edx4,_0xe1edxb);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[105]),null,function(){_0xe1edx2[_0x28ec[71]](mxConstants.STYLE_NOLABEL,false)},_0xe1edx4,null,_0xe1edxb)})));this[_0x28ec[30]](_0x28ec[100], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[106]),[mxConstants[_0x28ec[107]]],[mxConstants[_0x28ec[108]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[109]),[mxConstants[_0x28ec[107]]],[mxConstants[_0x28ec[110]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[111]),[mxConstants[_0x28ec[107]]],[mxConstants[_0x28ec[112]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[113]),[mxConstants[_0x28ec[114]]],[mxConstants[_0x28ec[115]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[116]),[mxConstants[_0x28ec[114]]],[mxConstants[_0x28ec[117]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[118]),[mxConstants[_0x28ec[114]]],[mxConstants[_0x28ec[119]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[94]](_0x28ec[120],_0xe1edx3,_0xe1edx4);this[_0x28ec[94]](_0x28ec[77],_0xe1edx3,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);var _0xe1edxb=this[_0x28ec[26]](_0x28ec[93])[_0x28ec[78]];_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[48]),null,function(){_0xe1edx2[_0x28ec[71]](mxConstants.STYLE_HORIZONTAL,true)},_0xe1edx4,null,_0xe1edxb)})));this[_0x28ec[30]](_0x28ec[120], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[86]),[mxConstants[_0x28ec[121]],mxConstants[_0x28ec[107]]],[mxConstants[_0x28ec[108]],mxConstants[_0x28ec[112]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[109]),[mxConstants[_0x28ec[121]],mxConstants[_0x28ec[107]]],[mxConstants[_0x28ec[110]],mxConstants[_0x28ec[110]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[84]),[mxConstants[_0x28ec[121]],mxConstants[_0x28ec[107]]],[mxConstants[_0x28ec[112]],mxConstants[_0x28ec[108]]],null,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[82]),[mxConstants[_0x28ec[122]],mxConstants[_0x28ec[114]]],[mxConstants[_0x28ec[115]],mxConstants[_0x28ec[119]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[116]),[mxConstants[_0x28ec[122]],mxConstants[_0x28ec[114]]],[mxConstants[_0x28ec[117]],mxConstants[_0x28ec[117]]],null,_0xe1edx4);this[_0x28ec[20]](_0xe1edx3,mxResources[_0x28ec[26]](_0x28ec[85]),[mxConstants[_0x28ec[122]],mxConstants[_0x28ec[114]]],[mxConstants[_0x28ec[119]],mxConstants[_0x28ec[115]]],null,_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[123], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[124]),null,function(){_0xe1edx2[_0x28ec[71]](mxConstants.STYLE_FLIPH,false)},_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[125]),null,function(){_0xe1edx2[_0x28ec[71]](mxConstants.STYLE_FLIPV,false)},_0xe1edx4);this[_0x28ec[99]](_0xe1edx3,[_0x28ec[95],_0x28ec[126],_0x28ec[127]],_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[128], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[106]),null,function(){_0xe1edx2[_0x28ec[129]](mxConstants.ALIGN_LEFT)},_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[109]),null,function(){_0xe1edx2[_0x28ec[129]](mxConstants.ALIGN_CENTER)},_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[111]),null,function(){_0xe1edx2[_0x28ec[129]](mxConstants.ALIGN_RIGHT)},_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[113]),null,function(){_0xe1edx2[_0x28ec[129]](mxConstants.ALIGN_TOP)},_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[116]),null,function(){_0xe1edx2[_0x28ec[129]](mxConstants.ALIGN_MIDDLE)},_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[118]),null,function(){_0xe1edx2[_0x28ec[129]](mxConstants.ALIGN_BOTTOM)},_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[130], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[131]),null,mxUtils[_0x28ec[29]](this,function(){var _0xe1edxc= new mxHierarchicalLayout(_0xe1edx2,mxConstants.DIRECTION_WEST);this[_0x28ec[0]][_0x28ec[132]](_0xe1edxc,true,true)}),_0xe1edx4);_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0x28ec[133]),null,mxUtils[_0x28ec[29]](this,function(){var _0xe1edxc= new mxHierarchicalLayout(_0xe1edx2,mxConstants.DIRECTION_NORTH);this[_0x28ec[0]][_0x28ec[132]](_0xe1edxc,true,true)}),_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[134], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[135],_0x28ec[95],_0x28ec[136],_0x28ec[137],_0x28ec[95],_0x28ec[138],_0x28ec[139]],_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[140], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[141],_0x28ec[142],_0x28ec[95]],_0xe1edx4);this[_0x28ec[94]](_0x28ec[130],_0xe1edx3,_0xe1edx4);_0xe1edx3[_0x28ec[24]](_0xe1edx4);this[_0x28ec[99]](_0xe1edx3,[_0x28ec[95],_0x28ec[143],_0x28ec[144],_0x28ec[145]],_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[146], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[147]],_0xe1edx4);_0xe1edx3[_0x28ec[24]]();var _0xe1edxd=[0.25,0.5,0.75,1,2,4];for(var _0xe1edx6=0;_0xe1edx6< _0xe1edxd[_0x28ec[18]];_0xe1edx6++){(function(_0xe1edxe){_0xe1edx3[_0x28ec[72]]((_0xe1edxe* 100)+ _0x28ec[148],null,function(){_0xe1edx2[_0x28ec[149]](_0xe1edxe)},_0xe1edx4)})(_0xe1edxd[_0xe1edx6])};this[_0x28ec[99]](_0xe1edx3,[_0x28ec[95],_0x28ec[150],_0x28ec[151],_0x28ec[95],_0x28ec[152],_0x28ec[153],_0x28ec[95],_0x28ec[154],_0x28ec[155]],_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[156], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[157],_0x28ec[158],_0x28ec[95],_0x28ec[159],_0x28ec[160],_0x28ec[161],_0x28ec[95],_0x28ec[162],_0x28ec[95],_0x28ec[163],_0x28ec[164],_0x28ec[95],_0x28ec[165],_0x28ec[166],_0x28ec[95],_0x28ec[167]],_0xe1edx4)})));this[_0x28ec[30]](_0x28ec[168], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[169],_0x28ec[170],_0x28ec[95],_0x28ec[171],_0x28ec[172],_0x28ec[173],_0x28ec[174],_0x28ec[95],_0x28ec[175],_0x28ec[95],_0x28ec[176],_0x28ec[177],_0x28ec[178]])})));this[_0x28ec[30]](_0x28ec[179], new Menu(mxUtils[_0x28ec[29]](this,function(_0xe1edx3,_0xe1edx4){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[179],_0x28ec[95],_0x28ec[180]])})))};Menus[_0x28ec[5]][_0x28ec[30]]= function(_0xe1edxf,_0xe1edx3){this[_0x28ec[1]][_0xe1edxf]= _0xe1edx3};Menus[_0x28ec[5]][_0x28ec[26]]= function(_0xe1edxf){return this[_0x28ec[1]][_0xe1edxf]};Menus[_0x28ec[5]][_0x28ec[94]]= function(_0xe1edxf,_0xe1edx3,_0xe1edx4){var _0xe1edxb=this[_0x28ec[26]](_0xe1edxf)[_0x28ec[78]];if(_0xe1edx3[_0x28ec[81]]|| _0xe1edxb){var _0xe1edx10=_0xe1edx3[_0x28ec[72]](mxResources[_0x28ec[26]](_0xe1edxf),null,null,_0xe1edx4,null,_0xe1edxb);this[_0x28ec[181]](_0xe1edxf,_0xe1edx3,_0xe1edx10)}};Menus[_0x28ec[5]][_0x28ec[181]]= function(_0xe1edxf,_0xe1edx11,_0xe1edx4){var _0xe1edx3=this[_0x28ec[26]](_0xe1edxf);if(_0xe1edx3!= null&& (_0xe1edx11[_0x28ec[81]]|| _0xe1edx3[_0x28ec[78]])){this[_0x28ec[26]](_0xe1edxf)[_0x28ec[182]](_0xe1edx11,_0xe1edx4)}};Menus[_0x28ec[5]][_0x28ec[20]]= function(_0xe1edx3,_0xe1edx12,_0xe1edx13,_0xe1edx14,_0xe1edx15,_0xe1edx4){return _0xe1edx3[_0x28ec[72]](_0xe1edx12,null,mxUtils[_0x28ec[29]](this,function(){var _0xe1edx2=this[_0x28ec[0]][_0x28ec[7]][_0x28ec[6]];_0xe1edx2[_0x28ec[184]]()[_0x28ec[183]]();try{for(var _0xe1edx6=0;_0xe1edx6< _0xe1edx13[_0x28ec[18]];_0xe1edx6++){_0xe1edx2[_0x28ec[185]](_0xe1edx13[_0xe1edx6],_0xe1edx14[_0xe1edx6])}}finally{_0xe1edx2[_0x28ec[184]]()[_0x28ec[186]]()}}),_0xe1edx4,_0xe1edx15)};Menus[_0x28ec[5]][_0x28ec[28]]= function(_0xe1edx3,_0xe1edx12,_0xe1edx16,_0xe1edx17,_0xe1edx18,_0xe1edx4,_0xe1edxb){return _0xe1edx3[_0x28ec[72]](_0xe1edx12,null,mxUtils[_0x28ec[29]](this,function(){var _0xe1edx2=this[_0x28ec[0]][_0x28ec[7]][_0x28ec[6]];var _0xe1edx19=_0xe1edx17;var _0xe1edx1a=_0xe1edx2[_0x28ec[189]]()[_0x28ec[188]](_0xe1edx2[_0x28ec[187]]());if(_0xe1edx1a!= null){_0xe1edx19= _0xe1edx1a[_0x28ec[21]][_0xe1edx18]|| _0xe1edx19};_0xe1edx19= mxUtils[_0x28ec[192]](mxResources[_0x28ec[26]](_0x28ec[190])+ ((_0xe1edx16[_0x28ec[18]]> 0)?(_0x28ec[191]+ _0xe1edx16):_0x28ec[27]),_0xe1edx19);if(_0xe1edx19!= null&& _0xe1edx19[_0x28ec[18]]> 0){_0xe1edx2[_0x28ec[185]](_0xe1edx18,_0xe1edx19)}}),_0xe1edx4,null,_0xe1edxb)};Menus[_0x28ec[5]][_0x28ec[92]]= function(_0xe1edx3,_0xe1edx18,_0xe1edx4){var _0xe1edx1b=this[_0x28ec[0]][_0x28ec[80]][_0x28ec[26]](_0xe1edx18);if(_0xe1edx1b!= null&& (_0xe1edx3[_0x28ec[81]]|| _0xe1edx1b[_0x28ec[78]])){var _0xe1edx1c=_0xe1edx3[_0x28ec[72]](_0xe1edx1b[_0x28ec[193]],null,_0xe1edx1b[_0x28ec[194]],_0xe1edx4,null,_0xe1edx1b[_0x28ec[78]]);if(_0xe1edx1b[_0x28ec[195]]&& _0xe1edx1b[_0x28ec[196]]()){this[_0x28ec[197]](_0xe1edx1c)};this[_0x28ec[198]](_0xe1edx1c,_0xe1edx1b);return _0xe1edx1c};return null};Menus[_0x28ec[5]][_0x28ec[198]]= function(_0xe1edx1c,_0xe1edx1b){if(_0xe1edx1b[_0x28ec[199]]!= null){var _0xe1edx1d=_0xe1edx1c[_0x28ec[23]][_0x28ec[22]][_0x28ec[22]];var _0xe1edx1e=document[_0x28ec[201]](_0x28ec[200]);_0xe1edx1e[_0x28ec[21]][_0x28ec[202]]= _0x28ec[203];mxUtils[_0x28ec[204]](_0xe1edx1e,_0xe1edx1b[_0x28ec[199]]);_0xe1edx1d[_0x28ec[205]](_0xe1edx1e)}};Menus[_0x28ec[5]][_0x28ec[197]]= function(_0xe1edx1c){var _0xe1edx1d=_0xe1edx1c[_0x28ec[23]][_0x28ec[22]];_0xe1edx1d[_0x28ec[21]][_0x28ec[206]]= _0x28ec[207]+ IMAGE_PATH+ _0x28ec[208];_0xe1edx1d[_0x28ec[21]][_0x28ec[209]]= _0x28ec[210];_0xe1edx1d[_0x28ec[21]][_0x28ec[211]]= _0x28ec[212]};Menus[_0x28ec[5]][_0x28ec[99]]= function(_0xe1edx3,_0xe1edx13,_0xe1edx4){for(var _0xe1edx6=0;_0xe1edx6< _0xe1edx13[_0x28ec[18]];_0xe1edx6++){if(_0xe1edx13[_0xe1edx6]== _0x28ec[95]){_0xe1edx3[_0x28ec[24]](_0xe1edx4)}else {this[_0x28ec[92]](_0xe1edx3,_0xe1edx13[_0xe1edx6],_0xe1edx4)}}};Menus[_0x28ec[5]][_0x28ec[213]]= function(_0xe1edx3,_0xe1edx1f,_0xe1edx20){var _0xe1edx2=this[_0x28ec[0]][_0x28ec[7]][_0x28ec[6]];_0xe1edx3[_0x28ec[214]]= true;if(_0xe1edx2[_0x28ec[215]]()){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[169],_0x28ec[170],_0x28ec[95],_0x28ec[173],_0x28ec[95]])}else {this[_0x28ec[99]](_0xe1edx3,[_0x28ec[174],_0x28ec[95],_0x28ec[171],_0x28ec[172],_0x28ec[95],_0x28ec[175]]);if(_0xe1edx2[_0x28ec[216]]()== 1&& _0xe1edx2[_0x28ec[184]]()[_0x28ec[217]](_0xe1edx2[_0x28ec[187]]())){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[218]])};_0xe1edx3[_0x28ec[24]]()};if(_0xe1edx2[_0x28ec[216]]()> 0){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[141],_0x28ec[142],_0x28ec[95]]);if(_0xe1edx2[_0x28ec[184]]()[_0x28ec[217]](_0xe1edx2[_0x28ec[187]]())){var _0xe1edx21=false;var _0xe1edx1f=_0xe1edx2[_0x28ec[187]]();if(_0xe1edx1f!= null&& _0xe1edx2[_0x28ec[184]]()[_0x28ec[217]](_0xe1edx1f)){var _0xe1edx22=_0xe1edx2[_0x28ec[220]][_0x28ec[219]](_0xe1edx1f);if(_0xe1edx22 instanceof  mxEdgeHandler&& _0xe1edx22[_0x28ec[221]]!= null&& _0xe1edx22[_0x28ec[221]][_0x28ec[18]]> 2){var _0xe1edx23=_0xe1edx22[_0x28ec[222]]( new mxMouseEvent(_0xe1edx20));var _0xe1edx24=this[_0x28ec[0]][_0x28ec[80]][_0x28ec[26]](_0x28ec[223]);_0xe1edx24[_0x28ec[224]]= _0xe1edx22;_0xe1edx24[_0x28ec[225]]= _0xe1edx23;_0xe1edx21= _0xe1edx23> 0&& _0xe1edx23< _0xe1edx22[_0x28ec[221]][_0x28ec[18]]}};this[_0x28ec[99]](_0xe1edx3,[_0x28ec[95],(_0xe1edx21)?_0x28ec[223]:_0x28ec[226]])}else {if(_0xe1edx2[_0x28ec[216]]()> 1){_0xe1edx3[_0x28ec[24]]();this[_0x28ec[99]](_0xe1edx3,[_0x28ec[143]])}};_0xe1edx3[_0x28ec[24]]();if(_0xe1edx2[_0x28ec[216]]()== 1){var _0xe1edx25=_0xe1edx2[_0x28ec[227]](_0xe1edx2[_0x28ec[187]]());if(_0xe1edx25!= null){this[_0x28ec[99]](_0xe1edx3,[_0x28ec[228]])}}}else {this[_0x28ec[99]](_0xe1edx3,[_0x28ec[95],_0x28ec[176],_0x28ec[177],_0x28ec[95],_0x28ec[178]])}};Menus[_0x28ec[5]][_0x28ec[229]]= function(_0xe1edx26){var _0xe1edx27= new Menubar(this[_0x28ec[0]],_0xe1edx26);var _0xe1edx28=[_0x28ec[156],_0x28ec[168],_0x28ec[146],_0x28ec[91],_0x28ec[93],_0x28ec[140],_0x28ec[179]];for(var _0xe1edx6=0;_0xe1edx6< _0xe1edx28[_0x28ec[18]];_0xe1edx6++){_0xe1edx27[_0x28ec[181]](mxResources[_0x28ec[26]](_0xe1edx28[_0xe1edx6]),this[_0x28ec[26]](_0xe1edx28[_0xe1edx6])[_0x28ec[194]])};return _0xe1edx27};function Menubar(_0xe1edx1,_0xe1edx26){this[_0x28ec[0]]= _0xe1edx1;this[_0x28ec[230]]= _0xe1edx26;mxEvent[_0x28ec[232]](document,mxUtils[_0x28ec[29]](this,function(_0xe1edx20){this[_0x28ec[231]]()}))}Menubar[_0x28ec[5]][_0x28ec[231]]= function(){if(this[_0x28ec[233]]!= null){this[_0x28ec[233]][_0x28ec[231]]()}};Menubar[_0x28ec[5]][_0x28ec[181]]= function(_0xe1edx12,_0xe1edx2a){var _0xe1edx2b=document[_0x28ec[201]](_0x28ec[234]);_0xe1edx2b[_0x28ec[237]](_0x28ec[235],_0x28ec[236]);_0xe1edx2b[_0x28ec[238]]= _0x28ec[239];mxUtils[_0x28ec[204]](_0xe1edx2b,_0xe1edx12);this[_0x28ec[240]](_0xe1edx2b,_0xe1edx2a);this[_0x28ec[230]][_0x28ec[205]](_0xe1edx2b);return _0xe1edx2b};Menubar[_0x28ec[5]][_0x28ec[240]]= function(_0xe1edx2b,_0xe1edx2a){if(_0xe1edx2a!= null){var _0xe1edx2c=true;var _0xe1edx2d=mxUtils[_0x28ec[29]](this,function(_0xe1edx20){if(_0xe1edx2c&& _0xe1edx2b[_0x28ec[78]]== null|| _0xe1edx2b[_0x28ec[78]]){this[_0x28ec[0]][_0x28ec[7]][_0x28ec[6]][_0x28ec[241]][_0x28ec[231]]();var _0xe1edx3= new mxPopupMenu(_0xe1edx2a);_0xe1edx3[_0x28ec[242]][_0x28ec[238]]+= _0x28ec[243];_0xe1edx3[_0x28ec[214]]= true;_0xe1edx3[_0x28ec[81]]= true;_0xe1edx3[_0x28ec[244]]= true;_0xe1edx3[_0x28ec[231]]= mxUtils[_0x28ec[29]](this,function(){mxPopupMenu[_0x28ec[5]][_0x28ec[231]][_0x28ec[245]](_0xe1edx3,arguments);_0xe1edx3[_0x28ec[246]]();this[_0x28ec[233]]= null;this[_0x28ec[247]]= null});var _0xe1edx2e=_0xe1edx2b[_0x28ec[248]]+ document[_0x28ec[251]](_0x28ec[250])[_0x28ec[249]]+ 22;var _0xe1edx2f=_0xe1edx2b[_0x28ec[252]]+ _0xe1edx2b[_0x28ec[253]]+ 140;_0xe1edx3[_0x28ec[254]](_0xe1edx2e,_0xe1edx2f,null,_0xe1edx20);this[_0x28ec[233]]= _0xe1edx3;this[_0x28ec[247]]= _0xe1edx2b};_0xe1edx2c= true;mxEvent[_0x28ec[255]](_0xe1edx20)});mxEvent[_0x28ec[257]](_0xe1edx2b,_0x28ec[256],mxUtils[_0x28ec[29]](this,function(_0xe1edx20){if(this[_0x28ec[233]]!= null&& this[_0x28ec[247]]!= _0xe1edx2b){this[_0x28ec[231]]();_0xe1edx2d(_0xe1edx20)}}));mxEvent[_0x28ec[257]](_0xe1edx2b,_0x28ec[258],mxUtils[_0x28ec[29]](this,function(){_0xe1edx2c= this[_0x28ec[247]]!= _0xe1edx2b}));mxEvent[_0x28ec[257]](_0xe1edx2b,_0x28ec[259],_0xe1edx2d)}};function Menu(_0xe1edx2a,_0xe1edxb){mxEventSource[_0x28ec[260]](this);this[_0x28ec[194]]= _0xe1edx2a;this[_0x28ec[78]]= (_0xe1edxb!= null)?_0xe1edxb:true}mxUtils[_0x28ec[261]](Menu,mxEventSource);Menu[_0x28ec[5]][_0x28ec[262]]= function(_0xe1edx19){if(this[_0x28ec[78]]!= _0xe1edx19){this[_0x28ec[78]]= _0xe1edx19;this[_0x28ec[264]]( new mxEventObject(_0x28ec[263]))}};Menu[_0x28ec[5]][_0x28ec[182]]= function(_0xe1edx3,_0xe1edx4){this[_0x28ec[194]](_0xe1edx3,_0xe1edx4)}
\ No newline at end of file