7.4.9 release

Former-commit-id: c1fb7e57b5
This commit is contained in:
Gaudenz Alder 2017-09-29 13:15:01 +02:00
parent 26502a6363
commit 1c91b7cdd5
16 changed files with 3557 additions and 3013 deletions

View file

@ -1,3 +1,8 @@
29-SEP-2017: 7.4.9
- Fixes ignored current page in window lightbox
- Fixes cross-origin frame access in fallback
28-SEP-2017: 7.4.8
- Adds #P for URL parameters (beta)

View file

@ -1 +1 @@
7.4.8
7.4.9

View file

@ -1,7 +1,7 @@
CACHE MANIFEST
# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 09/28/2017 09:30 PM
# 09/29/2017 01:08 PM
app.html
index.html?offline=1

1322
war/js/app.min.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

988
war/js/atlas.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -2123,46 +2123,69 @@ App.prototype.start = function()
if (urlParams['client'] == '1' && (window.location.hash == null ||
window.location.hash.length == 0 || window.location.hash.substring(0, 2) == '#P'))
{
var doLoadFile = mxUtils.bind(this, function(xml)
{
// Extracts graph model from PNG
if (xml.substring(0, 22) == 'data:image/png;base64,')
{
xml = this.extractGraphModelFromPng(xml);
}
var title = urlParams['title'];
if (title != null)
{
title = decodeURIComponent(title);
}
else
{
title = this.defaultFilename;
}
var file = new LocalFile(this, xml, title, true);
if (window.location.hash != null && window.location.hash.substring(0, 2) == '#P')
{
file.getHash = function()
{
return window.location.hash.substring(1);
};
}
this.fileLoaded(file);
this.getCurrentFile().setModified(!this.editor.chromeless);
});
var parent = window.opener || window.parent;
if (parent != window)
{
this.installMessageHandler(mxUtils.bind(this, function(xml, evt)
var value = urlParams['create'];
if (value != null)
{
// Ignores messages from other windows
if (evt.source == parent)
doLoadFile(parent[decodeURIComponent(value)]);
}
else
{
value = urlParams['data'];
if (value != null)
{
// Extracts graph model from PNG
if (xml.substring(0, 22) == 'data:image/png;base64,')
{
xml = this.extractGraphModelFromPng(xml);
}
var title = urlParams['title'];
if (title != null)
{
title = decodeURIComponent(title);
}
else
{
title = this.defaultFilename;
}
var file = new LocalFile(this, xml, title, true);
if (window.location.hash != null && window.location.hash.substring(0, 2) == '#P')
{
file.getHash = function()
{
return window.location.hash.substring(1);
};
}
this.fileLoaded(file);
this.getCurrentFile().setModified(!this.editor.chromeless);
doLoadFile(decodeURIComponent(value));
}
}));
else
{
this.installMessageHandler(mxUtils.bind(this, function(xml, evt)
{
// Ignores messages from other windows
if (evt.source == parent)
{
doLoadFile(xml);
}
}));
}
}
}
}
// Checks if no earlier loading errors are showing

View file

@ -239,15 +239,6 @@
*/
Editor.prototype.editButtonLink = (urlParams['edit'] != null) ? decodeURIComponent(urlParams['edit']) : null;
/**
*
*/
if (urlParams['dev'] == '1')
{
Editor.prototype.editBlankUrl = Editor.prototype.editBlankUrl + '&dev=1';
Editor.prototype.editBlankFallbackUrl = Editor.prototype.editBlankFallbackUrl + '&dev=1';
}
/**
* Adds support for old stylesheets and compressed files
*/

View file

@ -6412,6 +6412,37 @@
}
};
// Passes current page to editor window
var editorGetEditBlankUrl = ui.editor.getEditBlankUrl;
this.editor.getEditBlankUrl = function(params)
{
params = (params != null) ? params : '';
if (ui.pages != null && ui.currentPage != null)
{
for (var i = 0; i < ui.pages.length; i++)
{
if (ui.pages[i] == ui.currentPage)
{
if (i > 0)
{
params += ((params.length > 0) ? '&' : '?') + 'page=' + i;
}
break;
}
}
}
if (urlParams['dev'] == '1')
{
params += ((params.length > 0) ? '&' : '?') + 'dev=1&drawdev=1';
}
return editorGetEditBlankUrl.apply(this, arguments);
};
// For chromeless mode and lightbox mode in viewer
// Must be overridden before supercall to be applied
// in case of chromeless initialization

View file

@ -2010,38 +2010,38 @@
//UI Input
'UI2ButtonBlock' : 'rounded=1;arcSize=25;',
'UI2CheckBoxBlock' : cs,
'UI2HorizontalCheckBoxBlock' : cs, //TODO
'UI2RadioBlock' : cs, //TODO
'UI2HorizontalRadioBlock' : cs, //TODO
'UI2HorizontalCheckBoxBlock' : cs,
'UI2RadioBlock' : cs,
'UI2HorizontalRadioBlock' : cs,
'UI2ColorPickerBlock' : s + 'mockup.forms.colorPicker;chosenColor=#aaddff',
'UI2TextInputBlock' : '',
'UI2SelectBlock' : s + 'mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666',
'UI2VSliderBlock' : cs,
'UI2HSliderBlock' : cs,
// 'UI2HSliderBlock' : s + 'mockup.forms.horSlider;sliderStyle=basic;sliderPos=20;handleStyle=circle',
// 'UI2DatePickerBlock' NA
'UI2SearchBlock' : s + 'mockup.forms.searchBox;mainText=;flipH=1',
'UI2NumericStepperBlock' : s + 'mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;fillColor=#000000;mainText=',
'UI2DatePickerBlock' : cs,
'UI2SearchBlock' : cs,
'UI2NumericStepperBlock' : cs,
'UI2TableBlock' : cs, //TODO
//UI Menus
'UI2ButtonBarBlock' : cs, //TODO
'UI2VerticalButtonBarBlock' : cs, //TODO
'UI2LinkBarBlock' : cs, //TODO
'UI2BreadCrumbsBlock' : cs, //TODO
'UI2MenuBarBlock' : cs, //TODO
'UI2AtoZBlock' : s + 'mockup.text.alphanumeric;linkText=;fontStyle=4',
'UI2PaginationBlock' : s + 'mockup.navigation.pagination;linkText=;fontStyle=4',
'UI2ContextMenuBlock' : cs, //TODO
'UI2ButtonBarBlock' : cs,
'UI2VerticalButtonBarBlock' : cs,
'UI2LinkBarBlock' : cs,
'UI2BreadCrumbsBlock' : cs,
'UI2MenuBarBlock' : cs,
'UI2AtoZBlock' : cs,
'UI2PaginationBlock' : cs,
'UI2ContextMenuBlock' : cs,
'UI2TreePaneBlock' : cs, //TODO
'UI2PlaybackControlsBlock' : s + 'mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none',
'Image_ui_formatting_toolbar' : s + 'mockup.menus_and_buttons.font_style_selector_2',
//UI Misc
'UI2ProgressBarBlock' : s + 'mockup.misc.progressBar;fillColor2=#888888;barPos=25',
'UI2ProgressBarBlock' : cs,
'UI2HelpIconBlock' : s + 'mockup.misc.help_icon',
'UI2BraceNoteBlock' : s + 'mockup.markup.curlyBrace;direction=north', //TODO
'UI2TooltipBlock' : s + 'basic.rectangular_callout;flipV=1', //TODO
'UI2CalloutBlock' : 'shape=ellipse',
'UI2AlertBlock' : cs, //TODO
'UI2BraceNoteBlock' : cs,
'UI2TooltipBlock' : s + 'basic.rectangular_callout;flipV=1',
'UI2TooltipSquareBlock' : cs,
'UI2CalloutBlock' : cs,
'UI2AlertBlock' : cs,
//iOS 6 iPad Elements
'Image_ipad_ipad' : s + 'ios.iPad;bgStyle=bgGreen',
'iPadGrayBackgroundBlock' : '',
@ -2660,7 +2660,7 @@
style += createStyle(mxConstants.STYLE_OPACITY, properties.Opacity, '100');
}
if (typeof properties.LineColor === 'string')
if (typeof properties.LineColor === 'string' && !hardOpacity.includes(action.Class))
{
if (properties.LineColor.length > 7)
{
@ -2669,7 +2669,7 @@
}
}
if (typeof properties.FillColor === 'string')
if (typeof properties.FillColor === 'string' && !hardOpacity.includes(action.Class))
{
if (properties.FillColor.length > 7)
{
@ -3305,7 +3305,8 @@
switch (obj.Class)
{
case 'BraceNoteBlock' :
case 'UI2BraceNoteBlock' :
var isRightBrace = false;
if (p.BraceDirection != null)
@ -8256,28 +8257,512 @@
}
v.style += 'sliderPos=' + (p.ScrollVal * 100) + ';';
break;
case 'UI2DatePickerBlock' :
v.style += 'strokeColor=none;fillColor=none;';
var item1 = new mxCell('', new mxGeometry(0, 0, w * 0.6, h), 'part=1;');
item1.vertex = true;
v.insert(item1);
item1.style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getLabelStyle(p.Date);
item1.value = convertText(p.Date);
var fc = getStrokeColor(p, a);
fc = fc.replace('strokeColor', 'fillColor');
if (fc == '')
{
fc = 'fillColor=#000000;'
}
var item2 = new mxCell('', new mxGeometry(w * 0.75, 0, w * 0.25, h), 'part=1;shape=mxgraph.gmdl.calendar;');
item2.vertex = true;
v.insert(item2);
item2.style += fc +
getOpacity(p, a) +
getStrokeColor(p, a) +
getFillColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p);
break;
case 'UI2SearchBlock' :
v.style += 'shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;' +
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getFontSize(p.Search) +
getFontColor(p.Search) +
getFontStyle(p.Search);
v.value = convertText(p.Search);
break;
case 'UI2NumericStepperBlock' :
var fc = getStrokeColor(p, a);
fc = fc.replace('strokeColor', 'fillColor');
if (fc == '')
{
fc = 'fillColor=#000000;'
}
v.style += 'shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;' + fc +
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getFontSize(p.Number) +
getFontColor(p.Number) +
getFontStyle(p.Number);
v.value = convertText(p.Number);
break;
case 'UI2TableBlock' :
break;
case 'UI2ButtonBarBlock' :
v.style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p);
var item1 = new Array();
var item2 = new Array();
var itemW = w / p.Buttons;
for (var i = 0; i <= (p.Buttons - 1); i++)
{
if (i == (p.Selected - 1))
{
item2[i] = new mxCell('', new mxGeometry(i * itemW, 0, itemW, h), '');
item2[i].vertex = true;
v.insert(item2[i]);
item2[i].style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getFillColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getLabelStyle(p['Button_' + (i + 1)]);
item2[i].value = convertText(p['Button_' + (i + 1)]);
}
else
{
item1[i] = new mxCell('', new mxGeometry(i * itemW, 0, itemW, h), 'strokeColor=none;');
item1[i].vertex = true;
v.insert(item1[i]);
item1[i].style +=
getOpacity(p, a) +
getFillColor(p, a) +
getShadow(p);
item2[i] = new mxCell('', new mxGeometry(0, 0, itemW, h), 'fillColor=#000000;fillOpacity=25;');
item2[i].vertex = true;
item1[i].insert(item2[i]);
item2[i].style +=
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getLabelStyle(p['Button_' + (i + 1)]);
item2[i].value = convertText(p['Button_' + (i + 1)]);
}
}
break;
case 'UI2VerticalButtonBarBlock' :
v.style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p);
var item1 = new Array();
var item2 = new Array();
var itemH = h / p.Buttons;
for (var i = 0; i <= (p.Buttons - 1); i++)
{
if (i == (p.Selected - 1))
{
item2[i] = new mxCell('', new mxGeometry(0, i * itemH, w, itemH), '');
item2[i].vertex = true;
v.insert(item2[i]);
item2[i].style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getFillColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getLabelStyle(p['Button_' + (i + 1)]);
item2[i].value = convertText(p['Button_' + (i + 1)]);
}
else
{
item1[i] = new mxCell('', new mxGeometry(0, i * itemH, w, itemH), 'strokeColor=none;');
item1[i].vertex = true;
v.insert(item1[i]);
item1[i].style +=
getOpacity(p, a) +
getFillColor(p, a) +
getShadow(p);
item2[i] = new mxCell('', new mxGeometry(0, 0, w, itemH), 'fillColor=#000000;fillOpacity=25;');
item2[i].vertex = true;
item1[i].insert(item2[i]);
item2[i].style +=
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getLabelStyle(p['Button_' + (i + 1)]);
item2[i].value = convertText(p['Button_' + (i + 1)]);
}
}
break;
case 'UI2LinkBarBlock' :
v.style += 'strokeColor=none;fillColor=none;'
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p);
var item1 = new Array();
var item2 = new Array();
var itemW = w / p.Links;
for (var i = 0; i < (p.Links); i++)
{
if (i != 0)
{
item2[i] = new mxCell('', new mxGeometry(i * itemW, 0, itemW, h), 'shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;');
item2[i].style +=
getOpacity(p, a) +
getShadow(p) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p);
}
else
{
item2[i] = new mxCell('', new mxGeometry(i * itemW, 0, itemW, h), 'fillColor=none;strokeColor=none;');
}
item2[i].vertex = true;
v.insert(item2[i]);
item2[i].style +=
getLabelStyle(p['Link_' + (i + 1)]);
item2[i].value = convertText(p['Link_' + (i + 1)]);
}
break;
case 'UI2BreadCrumbsBlock' :
v.style += 'strokeColor=none;fillColor=none;'
getOpacity(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p);
var item1 = new Array();
var item2 = new Array();
var itemW = w / p.Links;
for (var i = 0; i < (p.Links); i++)
{
item1[i] = new mxCell('', new mxGeometry(i * itemW, 0, itemW, h), 'fillColor=none;strokeColor=none;');
item1[i].vertex = true;
v.insert(item1[i]);
item1[i].style +=
getLabelStyle(p['Link_' + (i + 1)]);
item1[i].value = convertText(p['Link_' + (i + 1)]);
}
for (var i = 1; i < (p.Links); i++)
{
item2[i] = new mxCell('', new mxGeometry(i / p.Links, 0.5, 6, 10), 'shape=mxgraph.ios7.misc.right;');
item2[i].geometry.relative = true;
item2[i].geometry.offset = new mxPoint(-3, -5);
item2[i].vertex = true;
v.insert(item2[i]);
}
break;
case 'UI2MenuBarBlock' :
v.style += 'strokeColor=none;' +
getOpacity(p, a) +
getFillColor(p, a) +
getShadow(p);
var item1 = new Array();
var itemW = w / (p.Buttons + 1);
for (var i = 0; i <= (p.Buttons - 1); i++)
{
if (i != (p.Selected - 1))
{
item1[i] = new mxCell('', new mxGeometry(0, 0, itemW, h), 'strokeColor=none;fillColor=none;resizeHeight=1;');
}
else
{
item1[i] = new mxCell('', new mxGeometry(0, 0, itemW, h), 'fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;');
}
item1[i].geometry.relative = true;
item1[i].geometry.offset = new mxPoint(i * itemW, 0);
item1[i].vertex = true;
v.insert(item1[i]);
item1[i].style +=
getLabelStyle(p['MenuItem_' + (i + 1)]);
item1[i].value = convertText(p['MenuItem_' + (i + 1)]);
}
break;
case 'UI2AtoZBlock' :
v.style += 'fillColor=none;strokeColor=none;' +
getLabelStyle(p['Text_0']);
v.value = '0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z';
break;
case 'UI2PaginationBlock' :
v.style += 'fillColor=none;strokeColor=none;' +
getLabelStyle(p.Text_prev);
v.value = convertText(p.Text_prev) + ' ';
for (var i = 0; i < p.Links; i++)
{
v.value += convertText(p['Link_' + (i + 1)]) + ' ';
}
v.value += convertText(p.Text_next);
break;
case 'UI2ContextMenuBlock' :
v.style +=
getOpacity(p, a) +
getFillColor(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p);
var item = new Array();
var icon = new Array();
var shortcut = new Array();
var itemH = h / p.Lines;
var st = null;
for (var i = 0; i < p.Lines; i++)
{
//add label
if (p['Item_' + (i + 1)] != null)
{
if (st == null)
{
st = '' +
getFontSize(p['Item_' + (i + 1)]) +
getFontColor(p['Item_' + (i + 1)]) +
getFontStyle(p['Item_' + (i + 1)]);
}
item[i] = new mxCell('', new mxGeometry(0, i * h / p.Lines, w, itemH), 'strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;');
item[i].vertex = true;
v.insert(item[i]);
item[i].style += st;
item[i].value = convertText(p['Item_' + (i + 1)]);
}
//add icon
if (p.Icons[(i + 1)] != null && item[i] != null)
{
if (p.Icons[(i + 1)] == 'dot')
{
icon[i] = new mxCell('', new mxGeometry(0, 0.5, 8, 8), 'shape=ellipse;strokeColor=none;');
icon[i].geometry.offset = new mxPoint(6, -4);
}
else if (p.Icons[(i + 1)] == 'check')
{
icon[i] = new mxCell('', new mxGeometry(0, 0.5, 7, 8), 'shape=mxgraph.mscae.general.checkmark;strokeColor=none;');
icon[i].geometry.offset = new mxPoint(6.5, -4);
}
if (icon[i] != null)
{
icon[i].geometry.relative = true;
icon[i].vertex = true;
item[i].insert(icon[i]);
var fc = getStrokeColor(p, a);
fc = fc.replace('strokeColor', 'fillColor');
if (fc == '')
{
fc = 'fillColor=#000000;'
}
icon[i].style += fc;
}
}
//add shortcut
if (p['Shortcut_' + (i + 1)] != null)
{
if (st == null)
{
st = '' +
getFontSize(p['Shortcut_' + (i + 1)]) +
getFontColor(p['Shortcut_' + (i + 1)]) +
getFontStyle(p['Shortcut_' + (i + 1)]);
}
shortcut[i] = new mxCell('', new mxGeometry(w * 0.6, i * h / p.Lines, w * 0.4, itemH), 'strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;');
shortcut[i].vertex = true;
v.insert(shortcut[i]);
shortcut[i].style += st;
shortcut[i].value = convertText(p['Shortcut_' + (i + 1)]);
}
//add line
if (p.Dividers[(i + 1)] != null)
{
item[i] = new mxCell('', new mxGeometry(w * 0.05, i * h / p.Lines, w * 0.9, itemH), 'shape=line;strokeWidth=0.25;');
item[i].vertex = true;
v.insert(item[i]);
item[i].style += getStrokeColor(p, a);
}
}
break;
case 'UI2TreePaneBlock' :
break;
case 'UI2BraceNoteBlock' :
case 'UI2ProgressBarBlock' :
v.style += 'shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos=' + (p.ScrollVal * 100) + ';';
break;
case 'UI2TooltipBlock' :
case 'UI2TooltipSquareBlock' :
v.style += 'html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize=' + (p.RoundCorners) + ';' +
getOpacity(p, a) +
getFillColor(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getLabelStyle(p.Tip);
v.value = convertText(p.Tip);
break;
case 'UI2CalloutBlock' :
v.style += 'shape=ellipse;' +
getOpacity(p, a) +
getFillColor(p, a) +
getStrokeColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getLabelStyle(p.Txt);
v.value = convertText(p.Txt);
break;
case 'UI2AlertBlock' :
v.style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getFillColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getShadow(p) +
getRotation(p, a, v) +
getLabelStyle(p.Txt);
v.value = convertText(p.Txt);
var item1 = new mxCell('', new mxGeometry(0, 0, w, 30), 'part=1;resizeHeight=0;');
item1.vertex = true;
v.insert(item1);
item1.style += st +
getOpacity(p, a) +
getStrokeColor(p, a) +
getFillColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getLabelStyle(p.Title);
item1.value = convertText(p.Title);
var item2 = new mxCell('', new mxGeometry(1, 0.5, 20, 20), 'part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;');
item2.geometry.relative = true;
item2.geometry.offset = new mxPoint(-25, -10);
item2.vertex = true;
item1.insert(item2);
var bw = 45;
var bh = 20;
var bs = 10;
var totalW = bw * p.Buttons + (bs * p.Buttons - 1)
item3 = new Array();
for (var i = 0; i < p.Buttons; i++)
{
item3[i] = new mxCell('', new mxGeometry(0.5, 1, bw, bh), 'part=1;html=1;');
item3[i].geometry.relative = true;
item3[i].geometry.offset = new mxPoint(-totalW * 0.5 + i * (bw + bs), -40);
item3[i].vertex = true;
v.insert(item3[i]);
item3[i].style +=
getOpacity(p, a) +
getStrokeColor(p, a) +
getFillColor(p, a) +
getStrokeWidth(p) +
getStrokeStyle(p) +
getLabelStyle(p['Button_' + (i + 1)]);
item3[i].value = convertText(p['Button_' + (i + 1)]);
}
break;
case 'Image_ipad_alert_dialog' :
break;

View file

@ -18,11 +18,6 @@ mxUtils.extend(GraphViewer, mxEventSource);
*/
GraphViewer.prototype.editBlankUrl = 'https://www.draw.io/?client=1';
/**
* Redirects editing to absolue URLs.
*/
GraphViewer.prototype.editBlankFallbackUrl = 'https://www.draw.io/?create=drawdata&splash=0';
/**
* Base URL for relative images.
*/
@ -126,7 +121,6 @@ GraphViewer.prototype.init = function(container, xmlNode, graphConfig)
// Hack for using EditorUi methods on the graph instance
this.editor = new Editor(true, null, null, this.graph);
this.editor.editBlankUrl = this.editBlankUrl;
this.editor.editBlankFallbackUrl = this.editBlankFallbackUrl;
this.graph.lightbox = true;
this.graph.centerZoom = false;
this.graph.autoExtend = false;
@ -1197,72 +1191,80 @@ GraphViewer.prototype.showLightbox = function(editable, closable, target)
{
if (this.graphConfig.lightbox == 'open' || window.self !== window.top)
{
editable = (editable != null) ? editable : true;
closable = (closable != null) ? closable : true;
target = (target != null) ? target : 'blank';
var param = {'client': 1, 'lightbox': 1, 'target': target};
if (editable)
if (this.lightboxWindow != null && !this.lightboxWindow.closed)
{
param.edit = '_blank';
}
if (closable)
{
param.close = 1;
}
if (this.layersEnabled)
{
param.layers = 1;
}
if (this.graphConfig != null && this.graphConfig.nav != false)
{
param.nav = 1;
}
if (this.graphConfig != null && this.graphConfig.highlight != null)
{
param.highlight = this.graphConfig.highlight.substring(1);
}
if (this.currentPage != null && this.currentPage > 0)
{
param.page = this.currentPage;
}
var url = 'https://www.draw.io/#P' + encodeURIComponent(JSON.stringify(param));
if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
{
if (this.lightboxWindow != null && !this.lightboxWindow.closed)
{
this.lightboxWindow.focus();
}
else
{
this.lightboxWindow = window.open(url);
var receive = mxUtils.bind(this, function(evt)
{
if (evt.data == 'ready' && evt.source == this.lightboxWindow)
{
this.lightboxWindow.postMessage(this.xml, '*');
mxEvent.removeListener(window, 'message', receive);
}
});
mxEvent.addListener(window, 'message', receive);
}
this.lightboxWindow.focus();
}
else
{
// Data is pulled from global variable after tab loads
window.drawdata = this.xml;
window.open(url);
editable = (editable != null) ? editable :
((this.graphConfig.editable != null) ?
this.graphConfig.editable : true);
closable = (closable != null) ? closable : true;
target = (target != null) ? target : 'blank';
var param = {'client': 1, 'lightbox': 1, 'target': target};
if (editable)
{
param.edit = '_blank';
}
if (closable)
{
param.close = 1;
}
if (this.layersEnabled)
{
param.layers = 1;
}
if (this.graphConfig != null && this.graphConfig.nav != false)
{
param.nav = 1;
}
if (this.graphConfig != null && this.graphConfig.highlight != null)
{
param.highlight = this.graphConfig.highlight.substring(1);
}
if (this.currentPage != null && this.currentPage > 0)
{
param.page = this.currentPage;
}
if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
{
if (this.lightboxWindow == null)
{
mxEvent.addListener(window, 'message', mxUtils.bind(this, function(evt)
{
if (evt.data == 'ready' && evt.source == this.lightboxWindow)
{
this.lightboxWindow.postMessage(this.xml, '*');
}
}));
}
}
else
{
// Data is pulled from global variable after tab loads
param.data = encodeURIComponent(this.xml);
}
var domain = 'www.draw.io';
if (urlParams['dev'] == '1')
{
param.dev = '1';
param.drawdev = '1';
domain = 'test.draw.io';
}
this.lightboxWindow = window.open('https://' + domain +
'/#P' + encodeURIComponent(JSON.stringify(param)));
}
}
else
@ -1352,28 +1354,6 @@ GraphViewer.prototype.showLocalLightbox = function()
{
ui.destroy();
});
// Passes current page and local URLs to open in new window action
ui.editor.editBlankUrl = this.editBlankUrl;
ui.editor.editBlankFallbackUrl = this.editBlankFallbackUrl;
var editorGetEditBlankUrl = ui.editor.getEditBlankUrl;
ui.editor.getEditBlankUrl = function(params, fallback)
{
var param = '';
if (ui.pages != null && ui.currentPage != null)
{
var pageIndex = mxUtils.indexOf(ui.pages, ui.currentPage);
if (pageIndex > 0)
{
param = '&page=' + pageIndex;
}
}
return editorGetEditBlankUrl.apply(this, arguments) + param;
}
// Handles escape keystroke
var keydownHandler = mxUtils.bind(this, function(evt)
@ -1619,7 +1599,7 @@ GraphViewer.initCss = function()
try
{
var style = document.createElement('style')
style.type = 'text/css'
style.type = 'text/css';
style.innerHTML = ['div.mxTooltip {',
'-webkit-box-shadow: 3px 3px 12px #C0C0C0;',
'-moz-box-shadow: 3px 3px 12px #C0C0C0;',
@ -1685,7 +1665,7 @@ GraphViewer.initCss = function()
// These are required for the print dialog
'.geDialog { position:absolute; background:white; overflow:hidden; padding:30px; border:1px solid #acacac; -webkit-box-shadow:0px 0px 2px 2px #d5d5d5; -moz-box-shadow:0px 0px 2px 2px #d5d5d5; box-shadow:0px 0px 2px 2px #d5d5d5; _filter:progid:DXImageTransform.Microsoft.DropShadow(OffX=2, OffY=2, Color=\'#d5d5d5\', Positive=\'true\'); z-index: 2;}.geDialogClose { position:absolute; width:9px; height:9px; opacity:0.5; cursor:pointer; _filter:alpha(opacity=50);}.geDialogClose:hover { opacity:1;}.geDialogTitle { box-sizing:border-box; white-space:nowrap; background:rgb(229, 229, 229); border-bottom:1px solid rgb(192, 192, 192); font-size:15px; font-weight:bold; text-align:center; color:rgb(35, 86, 149);}.geDialogFooter { background:whiteSmoke; white-space:nowrap; text-align:right; box-sizing:border-box; border-top:1px solid #e5e5e5; color:darkGray;}',
'.geBtn { background-color: #f5f5f5; border-radius: 2px; border: 1px solid #d8d8d8; color: #333; cursor: default; font-size: 11px; font-weight: bold; height: 29px; line-height: 27px; margin: 0 0 0 8px; min-width: 72px; outline: 0; padding: 0 8px; cursor: pointer;}.geBtn:hover, .geBtn:focus { -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); box-shadow: 0px 1px 1px rgba(0,0,0,0.1); border: 1px solid #c6c6c6; background-color: #f8f8f8; background-image: linear-gradient(#f8f8f8 0px,#f1f1f1 100%); color: #111;}.geBtn:disabled { opacity: .5;}.gePrimaryBtn { background-color: #4d90fe; background-image: linear-gradient(#4d90fe 0px,#4787ed 100%); border: 1px solid #3079ed; color: #fff;}.gePrimaryBtn:hover, .gePrimaryBtn:focus { background-color: #357ae8; background-image: linear-gradient(#4d90fe 0px,#357ae8 100%); border: 1px solid #2f5bb7; color: #fff;}.gePrimaryBtn:disabled { opacity: .5;}'].join('\n');
document.getElementsByTagName('head')[0].appendChild(style)
document.getElementsByTagName('head')[0].appendChild(style);
}
catch (e)
{

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+y.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.8",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.9",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||

View file

@ -1,195 +1,208 @@
(function(){function l(h){var g=null!=h.Text?h.Text:null!=h.Value?h.Value:h.Lane_0;null==g&&null!=h.State?null!=h.State.t&&(g=h.State):null==g&&null!=h.Note?null!=h.Note.t&&(g=h.Note):null==g&&null!=h.Title?null!=h.Title.t&&(g=h.Title):null!=h.t&&(g=h);null==g&&null!=h.TextAreas&&null!=h.TextAreas.Text&&null!=h.TextAreas.Text.Value&&null!=h.TextAreas.Text.Value.t&&(g=h.TextAreas.Text.Value);if(null!=g){if(null!=g.t)return g.t=g.t.replace(/</g,"&lt;"),g.t=g.t.replace(/>/g,"&gt;"),g.t;if(null!=g.Value&&
null!=g.Value.t)return g.Value.t=g.Value.t.replace(/</g,"&lt;"),g.Value.t=g.Value.t.replace(/>/g,"&gt;"),g.Value.t}return""}function Xa(h){return null!=h.Action?h.Action:h}function va(h){if(null!=h.Text){if(null!=h.Text.m)return h.Text.m}else if(null!=h.TextAreas){if(null!=h.TextAreas.Text&&null!=h.TextAreas.Text.Value&&null!=h.TextAreas.Text.Value.m)return h.TextAreas.Text.Value.m}else if(null!=h.m)return h.m;return null}function n(h){return O(h)+K(h)+M(h)+fa(h)+pa(h)+qa(h)+Qa(h)+ra(h)+sa(h)+Ta(h)}
function O(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("s"==l.n&&null!=l.v)return"fontSize="+Math.round(.6*l.v)+";";g++}return"fontSize=10;"}function K(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("c"==l.n&&null!=l.v)return h=l.v,"#"!=h.charAt(0)&&(h="#"+h),h=h.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+h+";";g++}return""}function M(h){h=va(h);if(null!=h){var g=0,l=!1;if(null!=h)for(var b=0;!l&&b<h.length;){var a=h[b];"b"==a.n&&null!=a.v&&a.v&&(l=!0,g+=1);b++}l=
!1;if(null!=h)for(b=0;!l&&b<h.length;)a=h[b],"i"==a.n&&null!=a.v&&a.v&&(l=!0,g+=2),b++;l=!1;if(null!=h)for(b=0;!l&&b<h.length;)a=h[b],"u"==a.n&&null!=a.v&&a.v&&(l=!0,g+=4),b++;if(0<g)return"fontStyle="+g+";"}return""}function fa(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("a"==l.n&&null!=l.v)return"align="+l.v+";";g++}return""}function pa(h){var g=va(h);if(null!=g)for(var l=0;l<g.length;){var b=g[l];if("il"==b.n){if(null!=b.v)return"spacingLeft="+.6*b.v+";"}else if("s"==b.n&&"align=center;"!=
fa(h)&&null!=b.v)return"spacingLeft="+.6*b.v+";";l++}return""}function qa(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("ir"==l.n&&null!=l.v)return"spacingRight="+l.v+";";g++}return""}function Qa(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("mt"==l.n&&null!=l.v)return"spacingTop="+l.v+";";g++}return""}function ra(h){h=va(h);if(null!=h)for(var g=0;g<h.length;){var l=h[g];if("mb"==l.n&&null!=l.v)return"spacingBottom="+l.v+";";g++}return""}function sa(h){return"number"===
typeof h.InsetMargin?"spacing="+parseInt(h.InsetMargin)+";":""}function Ta(h){return null!=h.Text_VAlign&&"string"===typeof h.Text_VAlign?"verticalAlign="+h.Text_VAlign+";":ta(mxConstants.STYLE_VERTICAL_ALIGN,h.TextVAlign,"middle")}function g(h,g){return Ub.includes(g.Class)?"Venn"==g.Class.substring(0,4)?ta(mxConstants.STYLE_STROKECOLOR,h.FillColor.substring(0,7),"#FFFFFF"):"":0==h.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":ta(mxConstants.STYLE_STROKECOLOR,h.LineColor.substring(0,7),"#000000")}
function p(h,g){var l="";Vb.includes(g.Class)||(l+=ta(mxConstants.STYLE_OPACITY,h.Opacity,"100"));if("string"===typeof h.LineColor&&7<h.LineColor.length)var b="0x"+h.LineColor.substring(h.LineColor.length-2,h.LineColor.length),l=l+("strokeOpacity="+Math.round(parseInt(b)/2.55)+";");"string"===typeof h.FillColor&&7<h.FillColor.length&&(b="0x"+h.FillColor.substring(h.FillColor.length-2,h.FillColor.length),l+="fillOpacity="+Math.round(parseInt(b)/2.55)+";");return l}function Wb(h,g){if(null!=h.Rounding&&
!kc.includes(g.Class)){if(0<h.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+.6*h.Rounding+";"}else if(null==h.Rounding&&lc.includes(g.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function V(h,g,l){return null!=h.Rotation&&(h=mxUtils.toDegree(parseFloat(h.Rotation)),"AdvancedSwimLaneBlockRotated"==g.Class?(h+=90,l.geometry.rotate90()):mc.includes(g.Class)?(h-=90,l.geometry.rotate90(),l.geometry.rotate90(),l.geometry.rotate90()):nc.includes(g.Class)&&(h+=180,l.geometry.rotate90(),
l.geometry.rotate90()),0!=h)?"rotation="+h+";":""}function r(h){return null!=h.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function q(h,g){if(null!=h.FillColor&&!oc.includes(g.Class))if("object"===typeof h.FillColor){if(null!=h.FillColor.cs&&1<h.FillColor.cs.length)return ta(mxConstants.STYLE_FILLCOLOR,h.FillColor.cs[0].c.substring(0,7))+ta(mxConstants.STYLE_GRADIENTCOLOR,h.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof h.FillColor?ta(mxConstants.STYLE_FILLCOLOR,h.FillColor.substring(0,
7),"#FFFFFF"):ta(mxConstants.STYLE_FILLCOLOR,"none");return""}function t(h){return"dashed"==h.StrokeStyle?"dashed=1;":"dotted"==h.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==h.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==h.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function m(h){return ta(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(h.LineWidth),"1")}function Xb(h,n){var w=Xa(n);if(null!=w){var b=ab[w.Class]+";";null!=b&&(h.style+=b);b=null!=w.Properties?w.Properties:w;if(null!=
b){h.value=l(b);var a=h.style,B=O(b)+K(b)+M(b)+fa(b,h)+pa(b)+qa(b)+Qa(b)+ra(b)+sa(b)+Ta(b)+g(b,w)+p(b,w)+Wb(b,w)+V(b,w,h)+(b.FlipX?"flipH=1;":"")+(b.FlipY?"flipV=1;":"")+r(b)+q(b,w)+t(b)+m(b);w="ImageSearchBlock2"==w.Class?"image="+b.URL+";":"";h.style=a+(B+w);if(h.edge){h.style+="rounded=1;arcSize=6;";if("diagonal"!=b.Shape)if(null!=b.ElbowPoints)for(h.geometry.points=[],w=0;w<b.ElbowPoints.length;w++)h.geometry.points.push(new mxPoint(Math.round(.6*b.ElbowPoints[w].x+0),Math.round(.6*b.ElbowPoints[w].y+
0)));else"elbow"==b.Shape?h.style=null!=b.Endpoint1.Block&&null!=b.Endpoint1.Block?h.style+"edgeStyle=orthogonalEdgeStyle;":h.style+"edgeStyle=elbowEdgeStyle;":null!=b.Endpoint1.Block&&null!=b.Endpoint1.Block&&(h.style+="edgeStyle=orthogonalEdgeStyle;","curve"==b.Shape&&(h.style+="curved=1;"));null!=b.Endpoint1.Style&&(h.style+="startArrow="+nb[b.Endpoint1.Style]+";");null!=b.Endpoint2.Style&&(h.style+="endArrow="+nb[b.Endpoint2.Style].replace(/startSize/g,"endSize")+";");ob(h,b.Endpoint1,!0);ob(h,
b.Endpoint2,!1)}}}}function pb(h){var g=Xa(h).Properties.BoundingBox;null!=h.Class&&"AWS"===h.Class.substring(0,3)&&(g.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*g.x+0),Math.round(.6*g.y+0),Math.round(.6*g.w),Math.round(.6*g.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Xb(v,h);return v}function Ya(h,g,m){m=2*(parseFloat(h.Location)-.5);h=new mxCell(l(h),new mxGeometry(m,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;");h.geometry.relative=!0;h.vertex=!0;g.insert(h);return g}function ta(g,
l,m,b){null!=l&&null!=b&&(l=b(l));return null!=l&&l!=m?g+"="+l+";":""}function ob(g,l,m){null!=l&&null!=l.LinkX&&null!=l.LinkY&&(g.style+=(m?"exitX":"entryX")+"="+l.LinkX+";"+(m?"exitY":"entryY")+"="+l.LinkY+";"+(m?"exitPerimeter":"entryPerimeter")+"=0;")}function Pa(g,l,m,b,a,n,f,c){g=new mxCell("",new mxGeometry(g,l,0,0),"strokeColor=none;fillColor=none;");g.vertex=!0;f.insert(g);n=[g];m=sb.cloneCell(m);c.insertEdge(m,!1);g.insertEdge(m,!0);n.push(m);b.push(a.addCell(m,null,null,null,null))}function T(g,
l,m,b,a,n,f,c,p){g=new mxCell("",new mxGeometry(g,l,0,0),"strokeColor=none;fillColor=none;");g.vertex=!0;p.insert(g);m=new mxCell("",new mxGeometry(m,b,0,0),"strokeColor=none;fillColor=none;");m.vertex=!0;p.insert(m);c=[m];a=sb.cloneCell(a);g.insertEdge(a,!0);m.insertEdge(a,!1);c.push(a);n.push(f.addCell(a,null,null,null,null))}function pc(h,B,w){var b=Xa(h),a=b.Properties,ja=a.BoundingBox,f=Math.round(.6*ja.w),c=Math.round(.6*ja.h),wa=Math.round(.6*ja.x+0),xa=Math.round(.6*ja.y+0);v=new mxCell("",
new mxGeometry(wa,xa,f,c),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(h.Class){case "BraceNoteBlock":var ec=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ec=!0);var bb=null,ka=null;ec?(bb=new mxCell("",new mxGeometry(f-.125*c,0,.125*c,c),"shape=curlyBracket;rounded=1;"),ka=new mxCell("",new mxGeometry(0,0,f-.125*c,c),"strokeColor=none;fillColor=none;")):(bb=new mxCell("",new mxGeometry(0,0,.125*c,c),"shape=curlyBracket;rounded=1;flipH=1;"),ka=new mxCell("",new mxGeometry(.125*c,0,f-.125*
c,c),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=V(a,b,v);bb.vertex=!0;v.insert(bb);bb.style+=g(a,b)+p(a,b)+r(a)+t(a)+m(a);ka.vertex=!0;ka.value=l(a);v.insert(ka);ka.style+=O(a)+K(a)+M(a)+fa(a,ka)+pa(a)+qa(a)+Qa(a)+ra(a)+sa(a)+Ta(a);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var ta=0;null!=a.Lanes&&(ta=a.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var va=0,Ua=[],d=0;d<ta;d++){var fc=parseFloat(a.Lanes[d].p);
Ua.push(new mxCell("",new mxGeometry(f*va,0,f*fc,c),"shape=swimlane;startSize=25;"));Ua[d].vertex=!0;v.insert(Ua[d]);Ua[d].value=l(a["Lane_"+d]);Ua[d].style+=O(a["Lane_"+d])+K(a["Lane_"+d])+M(a["Lane_"+d])+fa(a["Lane_"+d],Ua[d])+pa(a["Lane_"+d])+qa(a["Lane_"+d])+Qa(a["Lane_"+d])+ra(a["Lane_"+d])+sa(a["Lane_"+d])+Ta(a["Lane_"+d])+g(a,b)+p(a,b)+Wb(a,b)+V(a,b,Ua[d])+(a.FlipX?"flipH=1;":"")+(a.FlipY?"flipV=1;":"")+r(a)+q(a,b)+t(a)+m(a);va+=fc}break;case "AndroidDevice":if(null!=a.AndroidDeviceName){v.style=
"fillColor=#000000;strokeColor=#000000;";var Va=null,qb=null,rb=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Va=new mxCell("",new mxGeometry(.112*f,.077*c,.77*f,.85*c),""),a.KeyboardShown&&(qb=new mxCell("",new mxGeometry(.112*f,.727*c,.77*f,.2*c),"shape=mxgraph.android.keyboard;")),a.FullScreen||(rb=new mxCell("",new mxGeometry(.112*f,.077*c,.77*f,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*c+";"));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Va=new mxCell("",new mxGeometry(.04*f,.092*c,.92*f,.816*c),""),a.KeyboardShown&&(qb=new mxCell("",new mxGeometry(.04*f,.708*c,.92*f,.2*c),"shape=mxgraph.android.keyboard;")),a.FullScreen||(rb=new mxCell("",new mxGeometry(.04*f,.092*c,.92*f,.03*c),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*c+";"));Va.vertex=!0;v.insert(Va);
"Dark"==a.Scheme?Va.style+="fillColor=#111111;":"Light"==a.Scheme&&(Va.style+="fillColor=#ffffff;");null!=qb&&(qb.vertex=!0,v.insert(qb));null!=rb&&(rb.vertex=!0,v.insert(rb))}break;case "AndroidAlertDialog":var ya=new mxCell("",new mxGeometry(0,0,f,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ya.vertex=!0;v.insert(ya);var R=new mxCell("",new mxGeometry(0,25,f,10),"shape=line;strokeColor=#33B5E5;");R.vertex=!0;v.insert(R);var tb=new mxCell("",new mxGeometry(0,30,f,c-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
tb.vertex=!0;v.insert(tb);var W=new mxCell("",new mxGeometry(0,c-25,.5*f,25),"fillColor=none;");W.vertex=!0;v.insert(W);var X=new mxCell("",new mxGeometry(.5*f,c-25,.5*f,25),"fillColor=none;");X.vertex=!0;v.insert(X);ya.value=l(a.DialogTitle);ya.style+=n(a.DialogTitle);tb.value=l(a.DialogText);tb.style+=n(a.DialogText);W.value=l(a.Button_0);W.style+=n(a.Button_0);X.value=l(a.Button_1);X.style+=n(a.Button_1);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",W.style+="strokeColor=#353535;",
X.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",W.style+="strokeColor=#E2E2E2;",X.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":ya=new mxCell("",new mxGeometry(0,0,f,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ya.vertex=!0;v.insert(ya);ya.value=l(a.DialogTitle);ya.style+=n(a.DialogTitle);R=new mxCell("",new mxGeometry(0,25,f,10),"shape=line;strokeColor=#33B5E5;");R.vertex=!0;v.insert(R);W=new mxCell("",new mxGeometry(0,
c-25,.5*f,25),"fillColor=none;");W.vertex=!0;v.insert(W);W.value=l(a.Button_0);W.style+=n(a.Button_0);X=new mxCell("",new mxGeometry(.5*f,c-25,.5*f,25),"fillColor=none;");X.vertex=!0;v.insert(X);X.value=l(a.Button_1);X.style+=n(a.Button_1);var cb=new mxCell("",new mxGeometry(.5*f-4,41,8,4),"shape=triangle;direction=north;");cb.vertex=!0;v.insert(cb);var db=new mxCell("",new mxGeometry(.25*f-4,41,8,4),"shape=triangle;direction=north;");db.vertex=!0;v.insert(db);var eb=new mxCell("",new mxGeometry(.75*
f-4,41,8,4),"shape=triangle;direction=north;");eb.vertex=!0;v.insert(eb);var ub=new mxCell("",new mxGeometry(.375*f,50,.2*f,15),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=l(a.Label_1);ub.style+=n(a.Label_1);var vb=new mxCell("",new mxGeometry(.125*f,50,.2*f,15),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=l(a.Label_0);vb.style+=n(a.Label_0);var fb=null;"AndroidDateDialog"==h.Class&&(fb=new mxCell("",new mxGeometry(.625*f,50,.2*f,15),"strokeColor=none;fillColor=none;"),
fb.vertex=!0,v.insert(fb),fb.value=l(a.Label_2),fb.style+=n(a.Label_2));var za=new mxCell("",new mxGeometry(.43*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");za.vertex=!0;v.insert(za);var Aa=new mxCell("",new mxGeometry(.18*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");Aa.vertex=!0;v.insert(Aa);var Ya=new mxCell("",new mxGeometry(.68*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");Ya.vertex=!0;v.insert(Ya);var wb=new mxCell("",new mxGeometry(.375*f,65,.2*f,15),"strokeColor=none;fillColor=none;");
wb.vertex=!0;v.insert(wb);wb.value=l(a.Label_4);wb.style+=n(a.Label_4);var gb=null;"AndroidTimeDialog"==h.Class&&(gb=new mxCell("",new mxGeometry(.3*f,65,.1*f,15),"strokeColor=none;fillColor=none;"),gb.vertex=!0,v.insert(gb),gb.value=l(a.Label_Colon),gb.style+=n(a.Label_Colon));var xb=new mxCell("",new mxGeometry(.125*f,65,.2*f,15),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=l(a.Label_3);xb.style+=n(a.Label_3);var yb=new mxCell("",new mxGeometry(.625*f,65,.2*f,15),"strokeColor=none;fillColor=none;");
yb.vertex=!0;v.insert(yb);yb.value=l(a.Label_5);yb.style+=n(a.Label_5);var ab=new mxCell("",new mxGeometry(.43*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");ab.vertex=!0;v.insert(ab);var nb=new mxCell("",new mxGeometry(.18*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");nb.vertex=!0;v.insert(nb);var ob=new mxCell("",new mxGeometry(.68*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");ob.vertex=!0;v.insert(ob);var zb=new mxCell("",new mxGeometry(.375*f,80,.2*f,15),"strokeColor=none;fillColor=none;");
zb.vertex=!0;v.insert(zb);zb.value=l(a.Label_7);zb.style+=n(a.Label_7);var Ab=new mxCell("",new mxGeometry(.125*f,80,.2*f,15),"strokeColor=none;fillColor=none;");Ab.vertex=!0;v.insert(Ab);Ab.value=l(a.Label_6);Ab.style+=n(a.Label_6);var Bb=new mxCell("",new mxGeometry(.625*f,80,.2*f,15),"strokeColor=none;fillColor=none;");Bb.vertex=!0;v.insert(Bb);Bb.value=l(a.Label_8);Bb.style+=n(a.Label_8);var hb=new mxCell("",new mxGeometry(.5*f-4,99,8,4),"shape=triangle;direction=south;");hb.vertex=!0;v.insert(hb);
var ib=new mxCell("",new mxGeometry(.25*f-4,99,8,4),"shape=triangle;direction=south;");ib.vertex=!0;v.insert(ib);var jb=new mxCell("",new mxGeometry(.75*f-4,99,8,4),"shape=triangle;direction=south;");jb.vertex=!0;v.insert(jb);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",W.style+="strokeColor=#353535;",X.style+="strokeColor=#353535;",cb.style+="strokeColor=none;fillColor=#7E7E7E;",db.style+="strokeColor=none;fillColor=#7E7E7E;",eb.style+="strokeColor=none;fillColor=#7E7E7E;",
hb.style+="strokeColor=none;fillColor=#7E7E7E;",ib.style+="strokeColor=none;fillColor=#7E7E7E;",jb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",W.style+="strokeColor=#E2E2E2;",X.style+="strokeColor=#E2E2E2;",cb.style+="strokeColor=none;fillColor=#939393;",db.style+="strokeColor=none;fillColor=#939393;",eb.style+="strokeColor=none;fillColor=#939393;",hb.style+="strokeColor=none;fillColor=#939393;",ib.style+="strokeColor=none;fillColor=#939393;",
jb.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var ea=c,Ra=0;if(a.ShowHeader){var Ra=8,Cb=new mxCell("",new mxGeometry(0,0,f,Ra),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.value=l(a.Header);Cb.style+=n(a.Header);var ea=ea-Ra,pb=new mxCell("",new mxGeometry(0,Ra-2,f,4),"shape=line;strokeColor=#999999;");pb.vertex=!0;v.insert(pb)}var Ba=parseInt(a.Items);0<Ba&&(ea/=Ba);for(var Y=[],R=[],d=0;d<Ba;d++)Y[d]=new mxCell("",new mxGeometry(0,Ra+d*ea,f,
ea),"strokeColor=none;fillColor=none;"),Y[d].vertex=!0,v.insert(Y[d]),Y[d].value=l(a["Item_"+d]),Y[d].style+=n(a["Item_"+d]),0<d&&(R[d]=new mxCell("",new mxGeometry(0,Ra+d*ea-2,f,4),"shape=line;"),R[d].vertex=!0,v.insert(R[d]),R[d].style="Dark"==a.Scheme?R[d].style+"strokeColor=#ffffff;":R[d].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var Ca=parseInt(a.Tabs),la=f;0<Ca&&
(la/=Ca);for(var J=[],R=[],d=0;d<Ca;d++)J[d]=new mxCell("",new mxGeometry(d*la,0,la,c),"strokeColor=none;fillColor=none;"),J[d].vertex=!0,v.insert(J[d]),J[d].value=l(a["Tab_"+d]),J[d].style+=n(a["Tab_"+d]),0<d&&(R[d]=new mxCell("",new mxGeometry(d*la-2,.2*c,4,.6*c),"shape=line;direction=north;"),R[d].vertex=!0,v.insert(R[d]),R[d].style="Dark"==a.Scheme?R[d].style+"strokeColor=#484848;":R[d].style+"strokeColor=#CCCCCC;");var Nb=new mxCell("",new mxGeometry(a.Selected*la+2,c-3,la-4,3),"strokeColor=none;fillColor=#33B5E5;");
Nb.vertex=!0;v.insert(Nb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(wa),Math.round(xa+.25*c),Math.round(f),Math.round(.5*c)),"html=1;whiteSpace=wrap;");v.vertex=!0;var Db=new mxCell("",new mxGeometry(0,0,f*a.BarPosition,Math.round(.5*c)),"strokeColor=none;fillColor=#33B5E5;");Db.vertex=!0;v.insert(Db);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":
(function(){function k(n){var g=null!=n.Text?n.Text:null!=n.Value?n.Value:n.Lane_0;null==g&&null!=n.State?null!=n.State.t&&(g=n.State):null==g&&null!=n.Note?null!=n.Note.t&&(g=n.Note):null==g&&null!=n.Title?null!=n.Title.t&&(g=n.Title):null!=n.t&&(g=n);null==g&&null!=n.TextAreas&&null!=n.TextAreas.Text&&null!=n.TextAreas.Text.Value&&null!=n.TextAreas.Text.Value.t&&(g=n.TextAreas.Text.Value);if(null!=g){if(null!=g.t)return g.t=g.t.replace(/</g,"&lt;"),g.t=g.t.replace(/>/g,"&gt;"),g.t;if(null!=g.Value&&
null!=g.Value.t)return g.Value.t=g.Value.t.replace(/</g,"&lt;"),g.Value.t=g.Value.t.replace(/>/g,"&gt;"),g.Value.t}return""}function Ya(n){return null!=n.Action?n.Action:n}function va(n){if(null!=n.Text){if(null!=n.Text.m)return n.Text.m}else if(null!=n.TextAreas){if(null!=n.TextAreas.Text&&null!=n.TextAreas.Text.Value&&null!=n.TextAreas.Text.Value.m)return n.TextAreas.Text.Value.m}else if(null!=n.m)return n.m;return null}function m(n){return P(n)+J(n)+O(n)+fa(n)+pa(n)+qa(n)+Ra(n)+ra(n)+sa(n)+Ua(n)}
function P(n){n=va(n);if(null!=n)for(var g=0;g<n.length;){var k=n[g];if("s"==k.n&&null!=k.v)return"fontSize="+Math.round(.6*k.v)+";";g++}return"fontSize=10;"}function J(n){n=va(n);if(null!=n)for(var g=0;g<n.length;){var k=n[g];if("c"==k.n&&null!=k.v)return n=k.v,"#"!=n.charAt(0)&&(n="#"+n),n=n.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+n+";";g++}return""}function O(n){n=va(n);if(null!=n){var g=0,k=!1;if(null!=n)for(var c=0;!k&&c<n.length;){var a=n[c];"b"==a.n&&null!=a.v&&a.v&&(k=!0,g+=1);c++}k=
!1;if(null!=n)for(c=0;!k&&c<n.length;)a=n[c],"i"==a.n&&null!=a.v&&a.v&&(k=!0,g+=2),c++;k=!1;if(null!=n)for(c=0;!k&&c<n.length;)a=n[c],"u"==a.n&&null!=a.v&&a.v&&(k=!0,g+=4),c++;if(0<g)return"fontStyle="+g+";"}return""}function fa(n){n=va(n);if(null!=n)for(var g=0;g<n.length;){var k=n[g];if("a"==k.n&&null!=k.v)return"align="+k.v+";";g++}return""}function pa(n){var g=va(n);if(null!=g)for(var k=0;k<g.length;){var c=g[k];if("il"==c.n){if(null!=c.v)return"spacingLeft="+.6*c.v+";"}else if("s"==c.n&&"align=center;"!=
fa(n)&&null!=c.v)return"spacingLeft="+.6*c.v+";";k++}return""}function qa(n){n=va(n);if(null!=n)for(var g=0;g<n.length;){var k=n[g];if("ir"==k.n&&null!=k.v)return"spacingRight="+k.v+";";g++}return""}function Ra(n){n=va(n);if(null!=n)for(var g=0;g<n.length;){var k=n[g];if("mt"==k.n&&null!=k.v)return"spacingTop="+k.v+";";g++}return""}function ra(n){n=va(n);if(null!=n)for(var g=0;g<n.length;){var k=n[g];if("mb"==k.n&&null!=k.v)return"spacingBottom="+k.v+";";g++}return""}function sa(g){return"number"===
typeof g.InsetMargin?"spacing="+parseInt(g.InsetMargin)+";":""}function Ua(g){return null!=g.Text_VAlign&&"string"===typeof g.Text_VAlign?"verticalAlign="+g.Text_VAlign+";":ta(mxConstants.STYLE_VERTICAL_ALIGN,g.TextVAlign,"middle")}function g(g,k){return Xb.includes(k.Class)?"Venn"==k.Class.substring(0,4)?ta(mxConstants.STYLE_STROKECOLOR,g.FillColor.substring(0,7),"#FFFFFF"):"":0==g.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":ta(mxConstants.STYLE_STROKECOLOR,g.LineColor.substring(0,7),"#000000")}
function p(g,k){var n="";bb.includes(k.Class)||(n+=ta(mxConstants.STYLE_OPACITY,g.Opacity,"100"));if("string"===typeof g.LineColor&&!bb.includes(k.Class)&&7<g.LineColor.length)var c="0x"+g.LineColor.substring(g.LineColor.length-2,g.LineColor.length),n=n+("strokeOpacity="+Math.round(parseInt(c)/2.55)+";");"string"===typeof g.FillColor&&!bb.includes(k.Class)&&7<g.FillColor.length&&(c="0x"+g.FillColor.substring(g.FillColor.length-2,g.FillColor.length),n+="fillOpacity="+Math.round(parseInt(c)/2.55)+";");
return n}function Yb(g,k){if(null!=g.Rounding&&!Zb.includes(k.Class)){if(0<g.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+.6*g.Rounding+";"}else if(null==g.Rounding&&$b.includes(k.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function U(g,k,l){return null!=g.Rotation&&(g=mxUtils.toDegree(parseFloat(g.Rotation)),"AdvancedSwimLaneBlockRotated"==k.Class?(g+=90,l.geometry.rotate90()):nc.includes(k.Class)?(g-=90,l.geometry.rotate90(),l.geometry.rotate90(),l.geometry.rotate90()):
oc.includes(k.Class)&&(g+=180,l.geometry.rotate90(),l.geometry.rotate90()),0!=g)?"rotation="+g+";":""}function r(g){return null!=g.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function q(g,k){if(null!=g.FillColor&&!pc.includes(k.Class))if("object"===typeof g.FillColor){if(null!=g.FillColor.cs&&1<g.FillColor.cs.length)return ta(mxConstants.STYLE_FILLCOLOR,g.FillColor.cs[0].c.substring(0,7))+ta(mxConstants.STYLE_GRADIENTCOLOR,g.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof g.FillColor?
ta(mxConstants.STYLE_FILLCOLOR,g.FillColor.substring(0,7),"#FFFFFF"):ta(mxConstants.STYLE_FILLCOLOR,"none");return""}function t(g){return"dashed"==g.StrokeStyle?"dashed=1;":"dotted"==g.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==g.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==g.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function l(g){return ta(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(g.LineWidth),"1")}function ac(n,m){var x=Ya(m);if(null!=x){var c=cb[x.Class]+";";null!=c&&(n.style+=
c);c=null!=x.Properties?x.Properties:x;if(null!=c){n.value=k(c);var a=n.style,B=P(c)+J(c)+O(c)+fa(c,n)+pa(c)+qa(c)+Ra(c)+ra(c)+sa(c)+Ua(c)+g(c,x)+p(c,x)+Yb(c,x)+U(c,x,n)+(c.FlipX?"flipH=1;":"")+(c.FlipY?"flipV=1;":"")+r(c)+q(c,x)+t(c)+l(c);x="ImageSearchBlock2"==x.Class?"image="+c.URL+";":"";n.style=a+(B+x);if(n.edge){n.style+="rounded=1;arcSize=6;";if("diagonal"!=c.Shape)if(null!=c.ElbowPoints)for(n.geometry.points=[],x=0;x<c.ElbowPoints.length;x++)n.geometry.points.push(new mxPoint(Math.round(.6*
c.ElbowPoints[x].x+0),Math.round(.6*c.ElbowPoints[x].y+0)));else"elbow"==c.Shape?n.style=null!=c.Endpoint1.Block&&null!=c.Endpoint1.Block?n.style+"edgeStyle=orthogonalEdgeStyle;":n.style+"edgeStyle=elbowEdgeStyle;":null!=c.Endpoint1.Block&&null!=c.Endpoint1.Block&&(n.style+="edgeStyle=orthogonalEdgeStyle;","curve"==c.Shape&&(n.style+="curved=1;"));null!=c.Endpoint1.Style&&(n.style+="startArrow="+qb[c.Endpoint1.Style]+";");null!=c.Endpoint2.Style&&(n.style+="endArrow="+qb[c.Endpoint2.Style].replace(/startSize/g,
"endSize")+";");rb(n,c.Endpoint1,!0);rb(n,c.Endpoint2,!1)}}}}function tb(g){var k=Ya(g).Properties.BoundingBox;null!=g.Class&&"AWS"===g.Class.substring(0,3)&&(k.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*k.x+0),Math.round(.6*k.y+0),Math.round(.6*k.w),Math.round(.6*k.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;ac(v,g);return v}function Za(g,l,m){m=2*(parseFloat(g.Location)-.5);g=new mxCell(k(g),new mxGeometry(m,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;");g.geometry.relative=
!0;g.vertex=!0;l.insert(g);return l}function ta(g,k,l,c){null!=k&&null!=c&&(k=c(k));return null!=k&&k!=l?g+"="+k+";":""}function rb(g,k,l){null!=k&&null!=k.LinkX&&null!=k.LinkY&&(g.style+=(l?"exitX":"entryX")+"="+k.LinkX+";"+(l?"exitY":"entryY")+"="+k.LinkY+";"+(l?"exitPerimeter":"entryPerimeter")+"=0;")}function Pa(g,k,l,c,a,m,f,d){g=new mxCell("",new mxGeometry(g,k,0,0),"strokeColor=none;fillColor=none;");g.vertex=!0;f.insert(g);m=[g];l=sb.cloneCell(l);d.insertEdge(l,!1);g.insertEdge(l,!0);m.push(l);
c.push(a.addCell(l,null,null,null,null))}function V(g,k,l,c,a,m,f,d,p){g=new mxCell("",new mxGeometry(g,k,0,0),"strokeColor=none;fillColor=none;");g.vertex=!0;p.insert(g);l=new mxCell("",new mxGeometry(l,c,0,0),"strokeColor=none;fillColor=none;");l.vertex=!0;p.insert(l);d=[l];a=sb.cloneCell(a);g.insertEdge(a,!0);l.insertEdge(a,!1);d.push(a);m.push(f.addCell(a,null,null,null,null))}function qc(n,B,x){var c=Ya(n),a=c.Properties,ja=a.BoundingBox,f=Math.round(.6*ja.w),d=Math.round(.6*ja.h),wa=Math.round(.6*
ja.x+0),xa=Math.round(.6*ja.y+0);v=new mxCell("",new mxGeometry(wa,xa,f,d),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(n.Class){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ic=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(ic=!0);var db=null,ka=null;ic?(db=new mxCell("",new mxGeometry(f-.125*d,0,.125*d,d),"shape=curlyBracket;rounded=1;"),ka=new mxCell("",new mxGeometry(0,0,f-.125*d,d),"strokeColor=none;fillColor=none;")):(db=new mxCell("",new mxGeometry(0,0,.125*d,d),"shape=curlyBracket;rounded=1;flipH=1;"),
ka=new mxCell("",new mxGeometry(.125*d,0,f-.125*d,d),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=U(a,c,v);db.vertex=!0;v.insert(db);db.style+=g(a,c)+p(a,c)+r(a)+t(a)+l(a);ka.vertex=!0;ka.value=k(a);v.insert(ka);ka.style+=P(a)+J(a)+O(a)+fa(a,ka)+pa(a)+qa(a)+Ra(a)+ra(a)+sa(a)+Ua(a);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var ta=0;null!=a.Lanes&&(ta=a.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var va=0,Va=[],
b=0;b<ta;b++){var jc=parseFloat(a.Lanes[b].p);Va.push(new mxCell("",new mxGeometry(f*va,0,f*jc,d),"shape=swimlane;startSize=25;"));Va[b].vertex=!0;v.insert(Va[b]);Va[b].value=k(a["Lane_"+b]);Va[b].style+=P(a["Lane_"+b])+J(a["Lane_"+b])+O(a["Lane_"+b])+fa(a["Lane_"+b],Va[b])+pa(a["Lane_"+b])+qa(a["Lane_"+b])+Ra(a["Lane_"+b])+ra(a["Lane_"+b])+sa(a["Lane_"+b])+Ua(a["Lane_"+b])+g(a,c)+p(a,c)+Yb(a,c)+U(a,c,Va[b])+(a.FlipX?"flipH=1;":"")+(a.FlipY?"flipV=1;":"")+r(a)+q(a,c)+t(a)+l(a);va+=jc}break;case "AndroidDevice":if(null!=
a.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Wa=null,ub=null,vb=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Wa=new mxCell("",new mxGeometry(.112*f,.077*d,.77*f,.85*d),""),a.KeyboardShown&&(ub=new mxCell("",new mxGeometry(.112*f,.727*d,.77*f,.2*d),"shape=mxgraph.android.keyboard;")),a.FullScreen||(vb=new mxCell("",new mxGeometry(.112*f,.077*d,.77*f,.03*d),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*d+";"));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Wa=new mxCell("",new mxGeometry(.04*f,.092*d,.92*f,.816*d),""),a.KeyboardShown&&(ub=new mxCell("",new mxGeometry(.04*f,.708*d,.92*f,.2*d),"shape=mxgraph.android.keyboard;")),a.FullScreen||(vb=new mxCell("",new mxGeometry(.04*f,.092*d,.92*f,.03*d),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*d+";"));Wa.vertex=!0;v.insert(Wa);
"Dark"==a.Scheme?Wa.style+="fillColor=#111111;":"Light"==a.Scheme&&(Wa.style+="fillColor=#ffffff;");null!=ub&&(ub.vertex=!0,v.insert(ub));null!=vb&&(vb.vertex=!0,v.insert(vb))}break;case "AndroidAlertDialog":var ya=new mxCell("",new mxGeometry(0,0,f,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ya.vertex=!0;v.insert(ya);var S=new mxCell("",new mxGeometry(0,25,f,10),"shape=line;strokeColor=#33B5E5;");S.vertex=!0;v.insert(S);var wb=new mxCell("",new mxGeometry(0,30,f,d-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
wb.vertex=!0;v.insert(wb);var X=new mxCell("",new mxGeometry(0,d-25,.5*f,25),"fillColor=none;");X.vertex=!0;v.insert(X);var Y=new mxCell("",new mxGeometry(.5*f,d-25,.5*f,25),"fillColor=none;");Y.vertex=!0;v.insert(Y);ya.value=k(a.DialogTitle);ya.style+=m(a.DialogTitle);wb.value=k(a.DialogText);wb.style+=m(a.DialogText);X.value=k(a.Button_0);X.style+=m(a.Button_0);Y.value=k(a.Button_1);Y.style+=m(a.Button_1);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",X.style+="strokeColor=#353535;",
Y.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",X.style+="strokeColor=#E2E2E2;",Y.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":ya=new mxCell("",new mxGeometry(0,0,f,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ya.vertex=!0;v.insert(ya);ya.value=k(a.DialogTitle);ya.style+=m(a.DialogTitle);S=new mxCell("",new mxGeometry(0,25,f,10),"shape=line;strokeColor=#33B5E5;");S.vertex=!0;v.insert(S);X=new mxCell("",new mxGeometry(0,
d-25,.5*f,25),"fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Button_0);X.style+=m(a.Button_0);Y=new mxCell("",new mxGeometry(.5*f,d-25,.5*f,25),"fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Button_1);Y.style+=m(a.Button_1);var eb=new mxCell("",new mxGeometry(.5*f-4,41,8,4),"shape=triangle;direction=north;");eb.vertex=!0;v.insert(eb);var fb=new mxCell("",new mxGeometry(.25*f-4,41,8,4),"shape=triangle;direction=north;");fb.vertex=!0;v.insert(fb);var gb=new mxCell("",new mxGeometry(.75*
f-4,41,8,4),"shape=triangle;direction=north;");gb.vertex=!0;v.insert(gb);var xb=new mxCell("",new mxGeometry(.375*f,50,.2*f,15),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=k(a.Label_1);xb.style+=m(a.Label_1);var yb=new mxCell("",new mxGeometry(.125*f,50,.2*f,15),"strokeColor=none;fillColor=none;");yb.vertex=!0;v.insert(yb);yb.value=k(a.Label_0);yb.style+=m(a.Label_0);var hb=null;"AndroidDateDialog"==n.Class&&(hb=new mxCell("",new mxGeometry(.625*f,50,.2*f,15),"strokeColor=none;fillColor=none;"),
hb.vertex=!0,v.insert(hb),hb.value=k(a.Label_2),hb.style+=m(a.Label_2));var za=new mxCell("",new mxGeometry(.43*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");za.vertex=!0;v.insert(za);var Aa=new mxCell("",new mxGeometry(.18*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");Aa.vertex=!0;v.insert(Aa);var Za=new mxCell("",new mxGeometry(.68*f,60,.14*f,10),"shape=line;strokeColor=#33B5E5;");Za.vertex=!0;v.insert(Za);var zb=new mxCell("",new mxGeometry(.375*f,65,.2*f,15),"strokeColor=none;fillColor=none;");
zb.vertex=!0;v.insert(zb);zb.value=k(a.Label_4);zb.style+=m(a.Label_4);var ib=null;"AndroidTimeDialog"==n.Class&&(ib=new mxCell("",new mxGeometry(.3*f,65,.1*f,15),"strokeColor=none;fillColor=none;"),ib.vertex=!0,v.insert(ib),ib.value=k(a.Label_Colon),ib.style+=m(a.Label_Colon));var Ab=new mxCell("",new mxGeometry(.125*f,65,.2*f,15),"strokeColor=none;fillColor=none;");Ab.vertex=!0;v.insert(Ab);Ab.value=k(a.Label_3);Ab.style+=m(a.Label_3);var Bb=new mxCell("",new mxGeometry(.625*f,65,.2*f,15),"strokeColor=none;fillColor=none;");
Bb.vertex=!0;v.insert(Bb);Bb.value=k(a.Label_5);Bb.style+=m(a.Label_5);var bb=new mxCell("",new mxGeometry(.43*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");bb.vertex=!0;v.insert(bb);var cb=new mxCell("",new mxGeometry(.18*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");cb.vertex=!0;v.insert(cb);var qb=new mxCell("",new mxGeometry(.68*f,75,.14*f,10),"shape=line;strokeColor=#33B5E5;");qb.vertex=!0;v.insert(qb);var Cb=new mxCell("",new mxGeometry(.375*f,80,.2*f,15),"strokeColor=none;fillColor=none;");
Cb.vertex=!0;v.insert(Cb);Cb.value=k(a.Label_7);Cb.style+=m(a.Label_7);var Db=new mxCell("",new mxGeometry(.125*f,80,.2*f,15),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.value=k(a.Label_6);Db.style+=m(a.Label_6);var Eb=new mxCell("",new mxGeometry(.625*f,80,.2*f,15),"strokeColor=none;fillColor=none;");Eb.vertex=!0;v.insert(Eb);Eb.value=k(a.Label_8);Eb.style+=m(a.Label_8);var jb=new mxCell("",new mxGeometry(.5*f-4,99,8,4),"shape=triangle;direction=south;");jb.vertex=!0;v.insert(jb);
var kb=new mxCell("",new mxGeometry(.25*f-4,99,8,4),"shape=triangle;direction=south;");kb.vertex=!0;v.insert(kb);var lb=new mxCell("",new mxGeometry(.75*f-4,99,8,4),"shape=triangle;direction=south;");lb.vertex=!0;v.insert(lb);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",X.style+="strokeColor=#353535;",Y.style+="strokeColor=#353535;",eb.style+="strokeColor=none;fillColor=#7E7E7E;",fb.style+="strokeColor=none;fillColor=#7E7E7E;",gb.style+="strokeColor=none;fillColor=#7E7E7E;",
jb.style+="strokeColor=none;fillColor=#7E7E7E;",kb.style+="strokeColor=none;fillColor=#7E7E7E;",lb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",X.style+="strokeColor=#E2E2E2;",Y.style+="strokeColor=#E2E2E2;",eb.style+="strokeColor=none;fillColor=#939393;",fb.style+="strokeColor=none;fillColor=#939393;",gb.style+="strokeColor=none;fillColor=#939393;",jb.style+="strokeColor=none;fillColor=#939393;",kb.style+="strokeColor=none;fillColor=#939393;",
lb.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var ea=d,Sa=0;if(a.ShowHeader){var Sa=8,Fb=new mxCell("",new mxGeometry(0,0,f,Sa),"strokeColor=none;fillColor=none;");Fb.vertex=!0;v.insert(Fb);Fb.value=k(a.Header);Fb.style+=m(a.Header);var ea=ea-Sa,rb=new mxCell("",new mxGeometry(0,Sa-2,f,4),"shape=line;strokeColor=#999999;");rb.vertex=!0;v.insert(rb)}var Ba=parseInt(a.Items);0<Ba&&(ea/=Ba);for(var M=[],S=[],b=0;b<Ba;b++)M[b]=new mxCell("",new mxGeometry(0,Sa+b*ea,f,
ea),"strokeColor=none;fillColor=none;"),M[b].vertex=!0,v.insert(M[b]),M[b].value=k(a["Item_"+b]),M[b].style+=m(a["Item_"+b]),0<b&&(S[b]=new mxCell("",new mxGeometry(0,Sa+b*ea-2,f,4),"shape=line;"),S[b].vertex=!0,v.insert(S[b]),S[b].style="Dark"==a.Scheme?S[b].style+"strokeColor=#ffffff;":S[b].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var Ca=parseInt(a.Tabs),la=f;0<Ca&&
(la/=Ca);for(var N=[],S=[],b=0;b<Ca;b++)N[b]=new mxCell("",new mxGeometry(b*la,0,la,d),"strokeColor=none;fillColor=none;"),N[b].vertex=!0,v.insert(N[b]),N[b].value=k(a["Tab_"+b]),N[b].style+=m(a["Tab_"+b]),0<b&&(S[b]=new mxCell("",new mxGeometry(b*la-2,.2*d,4,.6*d),"shape=line;direction=north;"),S[b].vertex=!0,v.insert(S[b]),S[b].style="Dark"==a.Scheme?S[b].style+"strokeColor=#484848;":S[b].style+"strokeColor=#CCCCCC;");var tb=new mxCell("",new mxGeometry(a.Selected*la+2,d-3,la-4,3),"strokeColor=none;fillColor=#33B5E5;");
tb.vertex=!0;v.insert(tb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(wa),Math.round(xa+.25*d),Math.round(f),Math.round(.5*d)),"html=1;whiteSpace=wrap;");v.vertex=!0;var Gb=new mxCell("",new mxGeometry(0,0,f*a.BarPosition,Math.round(.5*d)),"strokeColor=none;fillColor=#33B5E5;");Gb.vertex=!0;v.insert(Gb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":
v.style+"strokeColor=none;fillColor=#BBBBBB;";break;case "AndroidImageBlock":v.style="Dark"==a.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";break;case "AndroidTextBlock":v.style="Dark"==a.Scheme?a.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":a.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":
v.style+"fillColor=#ffffff;strokeColor=none;";v.value=l(a.Label);v.style+=n(a.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(a.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(a.HighlightShow){var Sa=null,Sa=a.HighlightTop?new mxCell("",new mxGeometry(0,0,f,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,c-
2,f,2),"strokeColor=none;");Sa.vertex=!0;v.insert(Sa);switch(a.HighlightColor){case "Blue":Sa.style+="fillColor=#33B5E5;";break;case "Dark Gray":Sa.style+="fillColor=#B0B0B0;";break;case "White":Sa.style+="fillColor=#ffffff;"}}if(a.VlignShow){var kb=new mxCell("",new mxGeometry(20,5,2,c-10),"shape=line;direction=north;");kb.vertex=!0;v.insert(kb);switch(a.VlignColor){case "Blue":kb.style+="strokeColor=#244C5A;";break;case "White":kb.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=
l(a.Label);v.style+=n(a.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==a.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=l(a.Label);v.style+=n(a.Label);var Eb=new mxCell("",new mxGeometry(2,c-6,f-4,4),"shape=partialRectangle;top=0;fillColor=none;");Eb.vertex=!0;v.insert(Eb);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";
Eb.style=a.TextFocused?Eb.style+"strokeColor=#33B5E5;":Eb.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var Za=null;a.Checked&&(Za=new mxCell("",new mxGeometry(.15*f,.15*c,.7*f,.7*c),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),Za.vertex=!0,v.insert(Za));"Dark"==a.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",a.Checked?(Za.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",
a.Checked&&(Za.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var Yb=null;a.Checked&&(Yb=new mxCell("",new mxGeometry(.25*f,.05*-c,f,.8*c),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Yb.vertex=!0,v.insert(Yb));v.style="Dark"==a.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==a.Scheme?a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":Ca=parseInt(a.Tabs);la=f;v.style+="strokeColor=none;fillColor=none;";0<Ca&&(la/=Ca);J=[];R=[];for(d=0;d<Ca;d++)J[d]=new mxCell("",new mxGeometry(d*la,
0,la,c),"strokeColor="+a.FillColor+";"),J[d].vertex=!0,v.insert(J[d]),J[d].value=l(a["Tab_"+d]),J[d].style+=n(a["Tab_"+d]),J[d].style=a.Selected==d?J[d].style+q(a,b):J[d].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(wa),Math.round(xa+.25*c),Math.round(f),Math.round(.5*c)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
v.vertex=!0;Db=new mxCell("",new mxGeometry(0,0,f*a.BarPosition,Math.round(.5*c)),"strokeColor=none;"+q(a,b));Db.vertex=!0;v.insert(Db);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+q(a,b)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+q(a,b)+"strokeColor=#000000;";var D=new mxCell(l(a.Text),new mxGeometry(.35*f,0,.3*f,c),"strokeColor=none;fillColor=none;");D.vertex=!0;v.insert(D);D.style+=n(a.Text);var ga=new mxCell(l(a.Carrier),
new mxGeometry(.09*f,0,.2*f,c),"strokeColor=none;fillColor=none;");ga.vertex=!0;v.insert(ga);ga.style+=n(a.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+q(a,b)+p(a,b)+Wb(a,b)+n(a.Search);v.value=l(a.Search);var F=new mxCell("",new mxGeometry(.3*f,.3*c,.4*c,.4*c),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");F.vertex=!0;v.insert(F);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+q(a,b)+p(a,b)+n(a.Title);
v.value=l(a.Title);D=new mxCell(l(a.LeftText),new mxGeometry(.03*f,0,.3*f,c),"strokeColor=none;fillColor=none;");D.vertex=!0;v.insert(D);D.style+=n(a.LeftText);ga=new mxCell(l(a.RightText),new mxGeometry(.65*f,0,.3*f,c),"strokeColor=none;fillColor=none;");ga.vertex=!0;v.insert(ga);ga.style+=n(a.RightText);F=new mxCell("",new mxGeometry(.02*f,.2*c,.3*c,.5*c),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");F.vertex=!0;v.insert(F);break;case "iOSTabs":Ca=parseInt(a.Tabs);la=f;v.style+=
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+q(a,b)+p(a,b);0<Ca&&(la/=Ca);J=[];R=[];for(d=0;d<Ca;d++)J[d]=new mxCell("",new mxGeometry(d*la,0,la,c),"strokeColor=none;"),J[d].vertex=!0,v.insert(J[d]),J[d].value=l(a["Tab_"+d]),J[d].style+=O(a["Tab_"+d]),J[d].style+=K(a["Tab_"+d])+M(a["Tab_"+d])+fa(a["Tab_"+d])+pa(a["Tab_"+d])+qa(a["Tab_"+d])+Qa(a["Tab_"+d])+ra(a["Tab_"+d])+sa(a["Tab_"+d]),J[d].style+="verticalAlign=bottom;",J[d].style=a.Selected==d?J[d].style+"fillColor=#BBBBBB;":
J[d].style+"fillColor=none;";break;case "iOSDatePicker":var Da=new mxCell("",new mxGeometry(0,0,.5*f,.2*c),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=l(a.Option11);Da.style+=n(a.Option11);var Ea=new mxCell("",new mxGeometry(.5*f,0,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=l(a.Option21);Ea.style+=n(a.Option21);var Fa=new mxCell("",new mxGeometry(.65*f,0,.15*f,.2*c),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=
l(a.Option31);Fa.style+=n(a.Option31);var Ga=new mxCell("",new mxGeometry(0,.2*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=l(a.Option12);Ga.style+=n(a.Option12);var Ha=new mxCell("",new mxGeometry(.5*f,.2*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=l(a.Option22);Ha.style+=n(a.Option22);var Ia=new mxCell("",new mxGeometry(.65*f,.2*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=l(a.Option32);
Ia.style+=n(a.Option32);var Z=new mxCell("",new mxGeometry(0,.4*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=l(a.Option13);Z.style+=n(a.Option13);var aa=new mxCell("",new mxGeometry(.5*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=l(a.Option23);aa.style+=n(a.Option23);var Ja=new mxCell("",new mxGeometry(.65*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);Ja.value=l(a.Option33);Ja.style+=
n(a.Option33);var ba=new mxCell("",new mxGeometry(.8*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=l(a.Option43);ba.style+=n(a.Option43);var ca=new mxCell("",new mxGeometry(0,.6*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=l(a.Option14);ca.style+=n(a.Option14);var Ka=new mxCell("",new mxGeometry(.5*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ka.vertex=!0;v.insert(Ka);Ka.value=l(a.Option24);Ka.style+=n(a.Option24);
var La=new mxCell("",new mxGeometry(.65*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.value=l(a.Option34);La.style+=n(a.Option34);var Ma=new mxCell("",new mxGeometry(.8*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ma.vertex=!0;v.insert(Ma);Ma.value=l(a.Option44);Ma.style+=n(a.Option44);var da=new mxCell("",new mxGeometry(0,.8*c,.5*f,.2*c),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=l(a.Option15);da.style+=n(a.Option15);var Na=
new mxCell("",new mxGeometry(.5*f,.8*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=l(a.Option25);Na.style+=n(a.Option25);var Oa=new mxCell("",new mxGeometry(.65*f,.8*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=l(a.Option35);Oa.style+=n(a.Option35);za=new mxCell("",new mxGeometry(0,.4*c-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*c-2,f,4),"shape=line;strokeColor=#888888;");
Aa.vertex=!0;v.insert(Aa);v.style+=q(a,b)+p(a,b)+"strokeColor=none;";break;case "iOSTimePicker":Da=new mxCell("",new mxGeometry(0,0,.25*f,.2*c),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=l(a.Option11);Da.style+=n(a.Option11);Ea=new mxCell("",new mxGeometry(.25*f,0,.3*f,.2*c),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=l(a.Option21);Ea.style+=n(a.Option21);Ga=new mxCell("",new mxGeometry(0,.2*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");Ga.vertex=
!0;v.insert(Ga);Ga.value=l(a.Option12);Ga.style+=n(a.Option12);Ha=new mxCell("",new mxGeometry(.25*f,.2*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=l(a.Option22);Ha.style+=n(a.Option22);Z=new mxCell("",new mxGeometry(0,.4*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=l(a.Option13);Z.style+=n(a.Option13);aa=new mxCell("",new mxGeometry(.25*f,.4*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=
l(a.Option23);aa.style+=n(a.Option23);ba=new mxCell("",new mxGeometry(.7*f,.4*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=l(a.Option33);ba.style+=n(a.Option33);ca=new mxCell("",new mxGeometry(0,.6*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=l(a.Option14);ca.style+=n(a.Option14);Ka=new mxCell("",new mxGeometry(.25*f,.6*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");Ka.vertex=!0;v.insert(Ka);Ka.value=l(a.Option24);Ka.style+=
n(a.Option24);Ma=new mxCell("",new mxGeometry(.7*f,.6*c,.15*f,.2*c),"strokeColor=none;fillColor=none;");Ma.vertex=!0;v.insert(Ma);Ma.value=l(a.Option34);Ma.style+=n(a.Option34);da=new mxCell("",new mxGeometry(0,.8*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=l(a.Option15);da.style+=n(a.Option15);Na=new mxCell("",new mxGeometry(.25*f,.8*c,.3*f,.2*c),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=l(a.Option25);Na.style+=n(a.Option25);za=
new mxCell("",new mxGeometry(0,.4*c-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*c-2,f,4),"shape=line;strokeColor=#888888;");Aa.vertex=!0;v.insert(Aa);v.style+=q(a,b)+p(a,b)+"strokeColor=none;";break;case "iOSCountdownPicker":Fa=new mxCell("",new mxGeometry(.45*f,0,.2*f,.2*c),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=l(a.Option31);Fa.style+=n(a.Option31);Ia=new mxCell("",new mxGeometry(.45*f,.2*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");
Ia.vertex=!0;v.insert(Ia);Ia.value=l(a.Option32);Ia.style+=n(a.Option32);Z=new mxCell("",new mxGeometry(0,.4*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=l(a.Option13);Z.style+=n(a.Option13);aa=new mxCell("",new mxGeometry(.2*f,.4*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=l(a.Option23);aa.style+=n(a.Option23);Ja=new mxCell("",new mxGeometry(.45*f,.4*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);
Ja.value=l(a.Option33);Ja.style+=n(a.Option33);ba=new mxCell("",new mxGeometry(.6*f,.4*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=l(a.Option43);ba.style+=n(a.Option43);ca=new mxCell("",new mxGeometry(0,.6*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=l(a.Option14);ca.style+=n(a.Option14);La=new mxCell("",new mxGeometry(.45*f,.6*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.value=l(a.Option34);
La.style+=n(a.Option34);da=new mxCell("",new mxGeometry(0,.8*c,.25*f,.2*c),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=l(a.Option15);da.style+=n(a.Option15);Oa=new mxCell("",new mxGeometry(.45*f,.8*c,.2*f,.2*c),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=l(a.Option35);Oa.style+=n(a.Option35);za=new mxCell("",new mxGeometry(0,.4*c-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*c-2,f,4),"shape=line;strokeColor=#888888;");
Aa.vertex=!0;v.insert(Aa);v.style+=q(a,b)+p(a,b)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*a.SeparatorInset+";";v.style+=O(a.text)+K(a.text)+M(a.text)+Ta(a.text);v.value=l(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);break;
case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);var Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "CheckMark":F=
new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),F.vertex=!0,v.insert(F)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*a.SeparatorInset+";";v.style+=O(a.subtext)+K(a.subtext)+M(a.subtext);v.value=l(a.subtext);var S=new mxCell("",new mxGeometry(0,.4*c,f,.6*c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+
.6*a.SeparatorInset+";");S.vertex=!0;v.insert(S);S.style+=O(a.text)+K(a.text)+M(a.text);S.value=l(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);break;case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,
.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "CheckMark":F=new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),F.vertex=!0,v.insert(F)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+
.6*a.SeparatorInset+";";v.style+=O(a.subtext)+K(a.subtext)+M(a.subtext);v.value=l(a.subtext);S=null;switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);S=new mxCell("",new mxGeometry(.55*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
F.vertex=!0;v.insert(F);Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);S=new mxCell("",new mxGeometry(.45*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);S=new mxCell("",new mxGeometry(.52*f,0,.3*f,
c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":F=new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");F.vertex=!0;v.insert(F);S=new mxCell("",new mxGeometry(.55*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:S=new mxCell("",new mxGeometry(.65*f,0,.3*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;")}S.vertex=!0;v.insert(S);S.style+=O(a.text)+K(a.text)+
M(a.text);S.value=l(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var ua=new mxCell("",new mxGeometry(0,0,.25*f,c),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");ua.vertex=!0;v.insert(ua);ua.style+=O(a.subtext)+K(a.subtext)+M(a.subtext);ua.value=l(a.subtext);S=new mxCell("",new mxGeometry(.25*f,0,.5*f,c),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
S.vertex=!0;v.insert(S);S.style+=O(a.text)+K(a.text)+M(a.text);S.value=l(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);break;case "DetailDisclosure":F=new mxCell("",new mxGeometry(.91*f,.35*c,.15*c,.3*c),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");F.vertex=!0;v.insert(F);Q=new mxCell("",new mxGeometry(.79*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
Q.vertex=!0;v.insert(Q);break;case "DetailIndicator":Q=new mxCell("",new mxGeometry(.87*f,.25*c,.5*c,.5*c),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");Q.vertex=!0;v.insert(Q);break;case "CheckMark":F=new mxCell("",new mxGeometry(.89*f,.37*c,.4*c,.26*c),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),F.vertex=!0,v.insert(F)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
D=new mxCell("",new mxGeometry(0,0,f,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");D.vertex=!0;v.insert(D);D.style+=O(a.text)+K(a.text)+M(a.text);D.value=l(a.text);ga=new mxCell("",new mxGeometry(0,.6*c,f,.4*c),"fillColor=none;strokeColor=none;spacing=10;align=left;");ga.vertex=!0;v.insert(ga);ga.style+=O(a["bottom-text"])+K(a["bottom-text"])+M(a["bottom-text"]);ga.value=l(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";
v.style+=O(a.text)+K(a.text)+M(a.text);v.value=l(a.text);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var e=new mxCell("",new mxGeometry(0,0,.9*f,.9*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);var k=new mxCell("",new mxGeometry(.1*f,.1*c,.9*f,.9*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a);k.value=l(a.Text);a.Future&&(e.style+="dashed=1;",k.style+="dashed=1;")}else a.Future&&(v.style+="dashed=1;"),
v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a),v.value=l(a.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);e=null;switch(h.Class){case "SMHome":e=new mxCell("",new mxGeometry(.5*f-.4*c,.1*c,.8*c,.8*c),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":e=new mxCell("",new mxGeometry(.5*f-.4*c,.19*c,.8*c,.62*c),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":e=new mxCell("",new mxGeometry(.5*f-.4*c,.1*c,.8*c,.8*c),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":e=new mxCell("",new mxGeometry(.5*f-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":e=new mxCell("",new mxGeometry(.5*f-.35*c,.2*c,.7*c,.6*c),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":e=new mxCell("",new mxGeometry(.5*f-.3*c,.25*c,.6*c,.5*c),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":e=new mxCell("",new mxGeometry(.5*f-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":e=new mxCell("",new mxGeometry(.5*f-.3*c,.2*c,.6*c,.6*c),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":e=new mxCell("",new mxGeometry(.5*f-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var y=q(a,b),y=""==y?"#ffffff;":y.replace("fillColor=",""),e=new mxCell("",new mxGeometry(.5*f-.35*c,.15*c,.7*c,.7*c),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
y);break;case "SMCloud":e=new mxCell("",new mxGeometry(.5*f-.4*c,.27*c,.8*c,.46*c),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":e=new mxCell("",new mxGeometry(.5*f-.25*c,.15*c,.5*c,.7*c),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":e=new mxCell("",new mxGeometry(.5*f-.4*c,.15*c,.8*c,.7*c),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":e=new mxCell("",new mxGeometry(.5*f-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":e=new mxCell("",new mxGeometry(.5*f-.4*c,.2*c,.8*c,.6*c),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}e.vertex=!0;v.insert(e);e.style+=n(a);e.value=l(a.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",
new mxGeometry(.1*f,0,.9*f,.9*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);k=new mxCell("",new mxGeometry(0,.1*c,.9*f,.9*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);k.value=l(a.Text);break;case "UMLConstraintBlock":var Ob=new mxCell("",new mxGeometry(0,0,.25*c,c),"shape=curlyBracket;rounded=1;");Ob.vertex=!0;v.insert(Ob);var Pb=new mxCell("",new mxGeometry(f-.25*c,0,.25*c,c),"shape=curlyBracket;rounded=1;flipH=1;");Pb.vertex=
!0;v.insert(Pb);ka=new mxCell("",new mxGeometry(.25*c,0,f-.5*c,c),"strokeColor=none;fillColor=none;");ka.vertex=!0;ka.value=l(a);v.insert(ka);v.style="strokeColor=none;fillColor=none;";v.style+=V(a,b,v);Ob.style+=g(a,b)+p(a,b)+r(a)+t(a)+m(a);Pb.style+=g(a,b)+p(a,b)+r(a)+t(a)+m(a);ka.style+=O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+Qa(a)+ra(a)+sa(a)+Ta(a);break;case "UMLTextBlock":v.style+="strokeColor=none;"+p(a,b)+r(a)+t(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case "BPMNActivity":switch(a.bpmnActivityType){case 1:v.style+=
q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case 2:v.style+="shape=ext;double=1;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+q(a,b)+g(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);v.value=l(a.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a.Text),v.value=l(a.Text)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");
v.style+"fillColor=#ffffff;strokeColor=none;";v.value=k(a.Label);v.style+=m(a.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(a.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(a.HighlightShow){var Ta=null,Ta=a.HighlightTop?new mxCell("",new mxGeometry(0,0,f,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,d-
2,f,2),"strokeColor=none;");Ta.vertex=!0;v.insert(Ta);switch(a.HighlightColor){case "Blue":Ta.style+="fillColor=#33B5E5;";break;case "Dark Gray":Ta.style+="fillColor=#B0B0B0;";break;case "White":Ta.style+="fillColor=#ffffff;"}}if(a.VlignShow){var mb=new mxCell("",new mxGeometry(20,5,2,d-10),"shape=line;direction=north;");mb.vertex=!0;v.insert(mb);switch(a.VlignColor){case "Blue":mb.style+="strokeColor=#244C5A;";break;case "White":mb.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=
k(a.Label);v.style+=m(a.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==a.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=k(a.Label);v.style+=m(a.Label);var Hb=new mxCell("",new mxGeometry(2,d-6,f-4,4),"shape=partialRectangle;top=0;fillColor=none;");Hb.vertex=!0;v.insert(Hb);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";
Hb.style=a.TextFocused?Hb.style+"strokeColor=#33B5E5;":Hb.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var $a=null;a.Checked&&($a=new mxCell("",new mxGeometry(.15*f,.15*d,.7*f,.7*d),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),$a.vertex=!0,v.insert($a));"Dark"==a.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",a.Checked?($a.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",
a.Checked&&($a.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var bc=null;a.Checked&&(bc=new mxCell("",new mxGeometry(.25*f,.05*-d,f,.8*d),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),bc.vertex=!0,v.insert(bc));v.style="Dark"==a.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==a.Scheme?a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":Ca=parseInt(a.Tabs);la=f;v.style+="strokeColor=none;fillColor=none;";0<Ca&&(la/=Ca);N=[];S=[];for(b=0;b<Ca;b++)N[b]=new mxCell("",new mxGeometry(b*la,
0,la,d),"strokeColor="+a.FillColor+";"),N[b].vertex=!0,v.insert(N[b]),N[b].value=k(a["Tab_"+b]),N[b].style+=m(a["Tab_"+b]),N[b].style=a.Selected==b?N[b].style+q(a,c):N[b].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(wa),Math.round(xa+.25*d),Math.round(f),Math.round(.5*d)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
v.vertex=!0;Gb=new mxCell("",new mxGeometry(0,0,f*a.BarPosition,Math.round(.5*d)),"strokeColor=none;"+q(a,c));Gb.vertex=!0;v.insert(Gb);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+q(a,c)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+q(a,c)+"strokeColor=#000000;";var D=new mxCell(k(a.Text),new mxGeometry(.35*f,0,.3*f,d),"strokeColor=none;fillColor=none;");D.vertex=!0;v.insert(D);D.style+=m(a.Text);var ga=new mxCell(k(a.Carrier),
new mxGeometry(.09*f,0,.2*f,d),"strokeColor=none;fillColor=none;");ga.vertex=!0;v.insert(ga);ga.style+=m(a.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+q(a,c)+p(a,c)+Yb(a,c)+m(a.Search);v.value=k(a.Search);var G=new mxCell("",new mxGeometry(.3*f,.3*d,.4*d,.4*d),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");G.vertex=!0;v.insert(G);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+q(a,c)+p(a,c)+m(a.Title);
v.value=k(a.Title);D=new mxCell(k(a.LeftText),new mxGeometry(.03*f,0,.3*f,d),"strokeColor=none;fillColor=none;");D.vertex=!0;v.insert(D);D.style+=m(a.LeftText);ga=new mxCell(k(a.RightText),new mxGeometry(.65*f,0,.3*f,d),"strokeColor=none;fillColor=none;");ga.vertex=!0;v.insert(ga);ga.style+=m(a.RightText);G=new mxCell("",new mxGeometry(.02*f,.2*d,.3*d,.5*d),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");G.vertex=!0;v.insert(G);break;case "iOSTabs":Ca=parseInt(a.Tabs);la=f;v.style+=
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+q(a,c)+p(a,c);0<Ca&&(la/=Ca);N=[];S=[];for(b=0;b<Ca;b++)N[b]=new mxCell("",new mxGeometry(b*la,0,la,d),"strokeColor=none;"),N[b].vertex=!0,v.insert(N[b]),N[b].value=k(a["Tab_"+b]),N[b].style+=P(a["Tab_"+b]),N[b].style+=J(a["Tab_"+b])+O(a["Tab_"+b])+fa(a["Tab_"+b])+pa(a["Tab_"+b])+qa(a["Tab_"+b])+Ra(a["Tab_"+b])+ra(a["Tab_"+b])+sa(a["Tab_"+b]),N[b].style+="verticalAlign=bottom;",N[b].style=a.Selected==b?N[b].style+"fillColor=#BBBBBB;":
N[b].style+"fillColor=none;";break;case "iOSDatePicker":var Da=new mxCell("",new mxGeometry(0,0,.5*f,.2*d),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=k(a.Option11);Da.style+=m(a.Option11);var Ea=new mxCell("",new mxGeometry(.5*f,0,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=k(a.Option21);Ea.style+=m(a.Option21);var Fa=new mxCell("",new mxGeometry(.65*f,0,.15*f,.2*d),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=
k(a.Option31);Fa.style+=m(a.Option31);var Ga=new mxCell("",new mxGeometry(0,.2*d,.5*f,.2*d),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=k(a.Option12);Ga.style+=m(a.Option12);var Ha=new mxCell("",new mxGeometry(.5*f,.2*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=k(a.Option22);Ha.style+=m(a.Option22);var Ia=new mxCell("",new mxGeometry(.65*f,.2*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=k(a.Option32);
Ia.style+=m(a.Option32);var Z=new mxCell("",new mxGeometry(0,.4*d,.5*f,.2*d),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option13);Z.style+=m(a.Option13);var aa=new mxCell("",new mxGeometry(.5*f,.4*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=k(a.Option23);aa.style+=m(a.Option23);var Ja=new mxCell("",new mxGeometry(.65*f,.4*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);Ja.value=k(a.Option33);Ja.style+=
m(a.Option33);var ba=new mxCell("",new mxGeometry(.8*f,.4*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=k(a.Option43);ba.style+=m(a.Option43);var ca=new mxCell("",new mxGeometry(0,.6*d,.5*f,.2*d),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=k(a.Option14);ca.style+=m(a.Option14);var Ka=new mxCell("",new mxGeometry(.5*f,.6*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ka.vertex=!0;v.insert(Ka);Ka.value=k(a.Option24);Ka.style+=m(a.Option24);
var La=new mxCell("",new mxGeometry(.65*f,.6*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.value=k(a.Option34);La.style+=m(a.Option34);var Ma=new mxCell("",new mxGeometry(.8*f,.6*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ma.vertex=!0;v.insert(Ma);Ma.value=k(a.Option44);Ma.style+=m(a.Option44);var da=new mxCell("",new mxGeometry(0,.8*d,.5*f,.2*d),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=k(a.Option15);da.style+=m(a.Option15);var Na=
new mxCell("",new mxGeometry(.5*f,.8*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=k(a.Option25);Na.style+=m(a.Option25);var Oa=new mxCell("",new mxGeometry(.65*f,.8*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=k(a.Option35);Oa.style+=m(a.Option35);za=new mxCell("",new mxGeometry(0,.4*d-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*d-2,f,4),"shape=line;strokeColor=#888888;");
Aa.vertex=!0;v.insert(Aa);v.style+=q(a,c)+p(a,c)+"strokeColor=none;";break;case "iOSTimePicker":Da=new mxCell("",new mxGeometry(0,0,.25*f,.2*d),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=k(a.Option11);Da.style+=m(a.Option11);Ea=new mxCell("",new mxGeometry(.25*f,0,.3*f,.2*d),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=k(a.Option21);Ea.style+=m(a.Option21);Ga=new mxCell("",new mxGeometry(0,.2*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");Ga.vertex=
!0;v.insert(Ga);Ga.value=k(a.Option12);Ga.style+=m(a.Option12);Ha=new mxCell("",new mxGeometry(.25*f,.2*d,.3*f,.2*d),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=k(a.Option22);Ha.style+=m(a.Option22);Z=new mxCell("",new mxGeometry(0,.4*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option13);Z.style+=m(a.Option13);aa=new mxCell("",new mxGeometry(.25*f,.4*d,.3*f,.2*d),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=
k(a.Option23);aa.style+=m(a.Option23);ba=new mxCell("",new mxGeometry(.7*f,.4*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=k(a.Option33);ba.style+=m(a.Option33);ca=new mxCell("",new mxGeometry(0,.6*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=k(a.Option14);ca.style+=m(a.Option14);Ka=new mxCell("",new mxGeometry(.25*f,.6*d,.3*f,.2*d),"strokeColor=none;fillColor=none;");Ka.vertex=!0;v.insert(Ka);Ka.value=k(a.Option24);Ka.style+=
m(a.Option24);Ma=new mxCell("",new mxGeometry(.7*f,.6*d,.15*f,.2*d),"strokeColor=none;fillColor=none;");Ma.vertex=!0;v.insert(Ma);Ma.value=k(a.Option34);Ma.style+=m(a.Option34);da=new mxCell("",new mxGeometry(0,.8*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=k(a.Option15);da.style+=m(a.Option15);Na=new mxCell("",new mxGeometry(.25*f,.8*d,.3*f,.2*d),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=k(a.Option25);Na.style+=m(a.Option25);za=
new mxCell("",new mxGeometry(0,.4*d-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*d-2,f,4),"shape=line;strokeColor=#888888;");Aa.vertex=!0;v.insert(Aa);v.style+=q(a,c)+p(a,c)+"strokeColor=none;";break;case "iOSCountdownPicker":Fa=new mxCell("",new mxGeometry(.45*f,0,.2*f,.2*d),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=k(a.Option31);Fa.style+=m(a.Option31);Ia=new mxCell("",new mxGeometry(.45*f,.2*d,.2*f,.2*d),"strokeColor=none;fillColor=none;");
Ia.vertex=!0;v.insert(Ia);Ia.value=k(a.Option32);Ia.style+=m(a.Option32);Z=new mxCell("",new mxGeometry(0,.4*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option13);Z.style+=m(a.Option13);aa=new mxCell("",new mxGeometry(.2*f,.4*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");aa.vertex=!0;v.insert(aa);aa.value=k(a.Option23);aa.style+=m(a.Option23);Ja=new mxCell("",new mxGeometry(.45*f,.4*d,.2*f,.2*d),"strokeColor=none;fillColor=none;");Ja.vertex=!0;v.insert(Ja);
Ja.value=k(a.Option33);Ja.style+=m(a.Option33);ba=new mxCell("",new mxGeometry(.6*f,.4*d,.2*f,.2*d),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.value=k(a.Option43);ba.style+=m(a.Option43);ca=new mxCell("",new mxGeometry(0,.6*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");ca.vertex=!0;v.insert(ca);ca.value=k(a.Option14);ca.style+=m(a.Option14);La=new mxCell("",new mxGeometry(.45*f,.6*d,.2*f,.2*d),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.value=k(a.Option34);
La.style+=m(a.Option34);da=new mxCell("",new mxGeometry(0,.8*d,.25*f,.2*d),"strokeColor=none;fillColor=none;");da.vertex=!0;v.insert(da);da.value=k(a.Option15);da.style+=m(a.Option15);Oa=new mxCell("",new mxGeometry(.45*f,.8*d,.2*f,.2*d),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=k(a.Option35);Oa.style+=m(a.Option35);za=new mxCell("",new mxGeometry(0,.4*d-2,f,4),"shape=line;strokeColor=#888888;");za.vertex=!0;v.insert(za);Aa=new mxCell("",new mxGeometry(0,.6*d-2,f,4),"shape=line;strokeColor=#888888;");
Aa.vertex=!0;v.insert(Aa);v.style+=q(a,c)+p(a,c)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*a.SeparatorInset+";";v.style+=P(a.text)+J(a.text)+O(a.text)+Ua(a.text);v.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);break;
case "DetailDisclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);var R=new mxCell("",new mxGeometry(.79*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);break;case "DetailIndicator":R=new mxCell("",new mxGeometry(.87*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);break;case "CheckMark":G=
new mxCell("",new mxGeometry(.89*f,.37*d,.4*d,.26*d),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),G.vertex=!0,v.insert(G)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*a.SeparatorInset+";";v.style+=P(a.subtext)+J(a.subtext)+O(a.subtext);v.value=k(a.subtext);var T=new mxCell("",new mxGeometry(0,.4*d,f,.6*d),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+
.6*a.SeparatorInset+";");T.vertex=!0;v.insert(T);T.style+=P(a.text)+J(a.text)+O(a.text);T.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);break;case "DetailDisclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);R=new mxCell("",new mxGeometry(.79*f,.25*d,.5*d,
.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);break;case "DetailIndicator":R=new mxCell("",new mxGeometry(.87*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);break;case "CheckMark":G=new mxCell("",new mxGeometry(.89*f,.37*d,.4*d,.26*d),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),G.vertex=!0,v.insert(G)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+
.6*a.SeparatorInset+";";v.style+=P(a.subtext)+J(a.subtext)+O(a.subtext);v.value=k(a.subtext);T=null;switch(a.AccessoryIndicatorType){case "Disclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);T=new mxCell("",new mxGeometry(.55*f,0,.3*f,d),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
G.vertex=!0;v.insert(G);R=new mxCell("",new mxGeometry(.79*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);T=new mxCell("",new mxGeometry(.45*f,0,.3*f,d),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":R=new mxCell("",new mxGeometry(.87*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);T=new mxCell("",new mxGeometry(.52*f,0,.3*f,
d),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":G=new mxCell("",new mxGeometry(.89*f,.37*d,.4*d,.26*d),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");G.vertex=!0;v.insert(G);T=new mxCell("",new mxGeometry(.55*f,0,.3*f,d),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:T=new mxCell("",new mxGeometry(.65*f,0,.3*f,d),"fillColor=none;strokeColor=none;spacing=0;align=right;")}T.vertex=!0;v.insert(T);T.style+=P(a.text)+J(a.text)+
O(a.text);T.value=k(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var ua=new mxCell("",new mxGeometry(0,0,.25*f,d),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");ua.vertex=!0;v.insert(ua);ua.style+=P(a.subtext)+J(a.subtext)+O(a.subtext);ua.value=k(a.subtext);T=new mxCell("",new mxGeometry(.25*f,0,.5*f,d),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
T.vertex=!0;v.insert(T);T.style+=P(a.text)+J(a.text)+O(a.text);T.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);break;case "DetailDisclosure":G=new mxCell("",new mxGeometry(.91*f,.35*d,.15*d,.3*d),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");G.vertex=!0;v.insert(G);R=new mxCell("",new mxGeometry(.79*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
R.vertex=!0;v.insert(R);break;case "DetailIndicator":R=new mxCell("",new mxGeometry(.87*f,.25*d,.5*d,.5*d),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");R.vertex=!0;v.insert(R);break;case "CheckMark":G=new mxCell("",new mxGeometry(.89*f,.37*d,.4*d,.26*d),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),G.vertex=!0,v.insert(G)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
D=new mxCell("",new mxGeometry(0,0,f,.4*d),"fillColor=none;strokeColor=none;spacing=10;align=left;");D.vertex=!0;v.insert(D);D.style+=P(a.text)+J(a.text)+O(a.text);D.value=k(a.text);ga=new mxCell("",new mxGeometry(0,.6*d,f,.4*d),"fillColor=none;strokeColor=none;spacing=10;align=left;");ga.vertex=!0;v.insert(ga);ga.style+=P(a["bottom-text"])+J(a["bottom-text"])+O(a["bottom-text"]);ga.value=k(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";
v.style+=P(a.text)+J(a.text)+O(a.text);v.value=k(a.text);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var e=new mxCell("",new mxGeometry(0,0,.9*f,.9*d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a);var h=new mxCell("",new mxGeometry(.1*f,.1*d,.9*f,.9*d),"part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a);h.value=k(a.Text);a.Future&&(e.style+="dashed=1;",h.style+="dashed=1;")}else a.Future&&(v.style+="dashed=1;"),
v.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a),v.value=k(a.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a);e=null;switch(n.Class){case "SMHome":e=new mxCell("",new mxGeometry(.5*f-.4*d,.1*d,.8*d,.8*d),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":e=new mxCell("",new mxGeometry(.5*f-.4*d,.19*d,.8*d,.62*d),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":e=new mxCell("",new mxGeometry(.5*f-.4*d,.1*d,.8*d,.8*d),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":e=new mxCell("",new mxGeometry(.5*f-.35*d,.15*d,.7*d,.7*d),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":e=new mxCell("",new mxGeometry(.5*f-.35*d,.2*d,.7*d,.6*d),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":e=new mxCell("",new mxGeometry(.5*f-.3*d,.25*d,.6*d,.5*d),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":e=new mxCell("",new mxGeometry(.5*f-.4*d,.2*d,.8*d,.6*d),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":e=new mxCell("",new mxGeometry(.5*f-.3*d,.2*d,.6*d,.6*d),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":e=new mxCell("",new mxGeometry(.5*f-.4*d,.15*d,.8*d,.7*d),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var w=q(a,c),w=""==w?"#ffffff;":w.replace("fillColor=",""),e=new mxCell("",new mxGeometry(.5*f-.35*d,.15*d,.7*d,.7*d),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
w);break;case "SMCloud":e=new mxCell("",new mxGeometry(.5*f-.4*d,.27*d,.8*d,.46*d),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":e=new mxCell("",new mxGeometry(.5*f-.25*d,.15*d,.5*d,.7*d),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":e=new mxCell("",new mxGeometry(.5*f-.4*d,.15*d,.8*d,.7*d),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":e=new mxCell("",new mxGeometry(.5*f-.4*d,.2*d,.8*d,.6*d),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":e=new mxCell("",new mxGeometry(.5*f-.4*d,.2*d,.8*d,.6*d),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}e.vertex=!0;v.insert(e);e.style+=m(a);e.value=k(a.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",
new mxGeometry(.1*f,0,.9*f,.9*d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a);h=new mxCell("",new mxGeometry(0,.1*d,.9*f,.9*d),"part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a.Text);h.value=k(a.Text);break;case "UMLConstraintBlock":var Rb=new mxCell("",new mxGeometry(0,0,.25*d,d),"shape=curlyBracket;rounded=1;");Rb.vertex=!0;v.insert(Rb);var Sb=new mxCell("",new mxGeometry(f-.25*d,0,.25*d,d),"shape=curlyBracket;rounded=1;flipH=1;");Sb.vertex=
!0;v.insert(Sb);ka=new mxCell("",new mxGeometry(.25*d,0,f-.5*d,d),"strokeColor=none;fillColor=none;");ka.vertex=!0;ka.value=k(a);v.insert(ka);v.style="strokeColor=none;fillColor=none;";v.style+=U(a,c,v);Rb.style+=g(a,c)+p(a,c)+r(a)+t(a)+l(a);Sb.style+=g(a,c)+p(a,c)+r(a)+t(a)+l(a);ka.style+=P(a)+J(a)+O(a)+fa(a)+pa(a)+qa(a)+Ra(a)+ra(a)+sa(a)+Ua(a);break;case "UMLTextBlock":v.style+="strokeColor=none;"+p(a,c)+r(a)+t(a)+l(a)+m(a.Text);v.value=k(a.Text);break;case "BPMNActivity":switch(a.bpmnActivityType){case 1:v.style+=
q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+l(a)+m(a.Text);v.value=k(a.Text);break;case 2:v.style+="shape=ext;double=1;"+q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+l(a)+m(a.Text);v.value=k(a.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+q(a,c)+g(a,c)+p(a,c)+r(a)+l(a)+m(a.Text);v.value=k(a.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+m(a.Text),v.value=k(a.Text)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");
e.geometry.offset=new mxPoint(4,7);break;case 2:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");e.geometry.offset=new mxPoint(4,7);break;case 3:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");e.geometry.offset=new mxPoint(4,5);break;case 4:e=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");e.geometry.offset=new mxPoint(4,7);break;case 5:e=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");e.geometry.offset=
new mxPoint(4,7);break;case 6:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");e.geometry.offset=new mxPoint(4,5);break;case 7:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),e.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Fb=q(a,b),y=g(a,b),y=y.replace("strokeColor","fillColor"),Fb=Fb.replace("fillColor","strokeColor");""==y&&(y="fillColor=#000000;");""==Fb&&(Fb="strokeColor=#ffffff;");e.style+=Fb+y+"part=1;"}else e.style+=q(a,
b)+g(a,b)+"part=1;";e.geometry.relative=!0;e.vertex=!0;v.insert(e)}var Gb=0;0!=a.bpmnActivityMarker1&&Gb++;0!=a.bpmnActivityMarker2&&Gb++;var ha=0;1==Gb?ha=-7.5:2==Gb&&(ha=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 2:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=
q(a,b)+g(a,b);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");e.geometry.offset=new mxPoint(ha,-17);y=g(a,b);y=y.replace("strokeColor",
"fillColor");""==y&&(y="fillColor=#000000;");e.style+=y;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ha,-18),e.style+=q(a,b)+g(a,b)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}2==Gb&&(ha=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 2:e=new mxCell("",new mxGeometry(.5,
1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,b)+g(a,b);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");
e.geometry.offset=new mxPoint(ha,-17);y=g(a,b);y=y.replace("strokeColor","fillColor");""==y&&(y="fillColor=#000000;");e.style+=y;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ha,-18),e.style+=q(a,b)+g(a,b)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+
qa(a)+Qa(a)+ra(a)+sa(a);v.value=l(a.Text);if(1==a.bpmnDashed)switch(a.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(a.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(a.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+=
"symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);v.style=0==a.bpmnConversationType?v.style+
m(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(e=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),e.geometry.offset=new mxPoint(-6,-17),e.style+=q(a,b)+g(a,b),e.geometry.relative=!0,e.vertex=!0,v.insert(e));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);switch(a.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";
break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break;case "BPMNData":v.style+="shape=note;size=14;"+q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);switch(a.bpmnDataType){case 1:e=new mxCell("",new mxGeometry(.5,1,12,
10),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(-6,-15);e.style+=q(a,b)+g(a,b);e.geometry.relative=!0;e.vertex=!0;v.insert(e);break;case 2:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");e.geometry.offset=new mxPoint(3,3);e.style+=q(a,b)+g(a,b);e.geometry.relative=!0;e.vertex=!0;v.insert(e);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";D=new mxCell("",new mxGeometry(0,0,f,20),"strokeColor=none;fillColor=none;");D.geometry.offset=
new mxPoint(0,14);D.geometry.relative=!0;D.vertex=!0;v.insert(D);D.value=l(a.Text);D.style+=n(a);break;case 3:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),e.geometry.offset=new mxPoint(3,3),e.style+=g(a,b),e.geometry.relative=!0,e.vertex=!0,v.insert(e),y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),e.style+=y,D=new mxCell("",new mxGeometry(0,0,f,20),"strokeColor=none;fillColor=none;"),D.geometry.offset=new mxPoint(0,
14),D.geometry.relative=!0,D.vertex=!0,v.insert(D),D.value=l(a.Text),D.style+=n(a)}break;case "BPMNBlackPool":v.style+=q(a,b)+g(a,b)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,f,c),"fillColor=#000000;strokeColor=none;opacity=30;");e.vertex=!0;v.insert(e);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.95*f,.95*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a);k=new mxCell("",
new mxGeometry(.05*f,.05*c,.95*f,.95*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);k.value=l(a.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Text);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,.2*f,c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Number);e.value=l(a.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==h.Class?v.value=l(a.Text):"VSMProductionControlBlock"==h.Class&&(v.value=l(a.Resources));v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+ra(a)+sa(a)+Ta(a);"VSMDedicatedProcessBlock"==h.Class&&(e=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),e.geometry.relative=!0,e.geometry.offset=new mxPoint(4,-13),e.vertex=!0,v.insert(e),e.style+=g(a,b)+q(a,
b)+p(a,b)+r(a)+m(a));D=new mxCell("",new mxGeometry(0,0,f,15),"strokeColor=none;fillColor=none;part=1;");D.vertex=!0;v.insert(D);D.value=l(a.Title);D.style+=n(a.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=l(a.Text);v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+ra(a)+Qa(a)+sa(a);D=new mxCell("",new mxGeometry(.1*f,.3*c,.8*f,.6*c),"part=1;");D.vertex=!0;v.insert(D);D.value=
l(a.Resource);D.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+ra(a)+sa(a);v.value=l(a.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var ea=c,Ba=parseInt(a.Cells),P=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+"part=1;";0<Ba&&(ea/=Ba);Y=[];R=[];for(d=1;d<=Ba;d++)Y[d]=
new mxCell("",new mxGeometry(0,(d-1)*ea,f,ea),P),Y[d].vertex=!0,v.insert(Y[d]),Y[d].value=l(a["cell_"+d]),Y[d].style+=n(a["cell_"+d]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+O(a)+K(a)+M(a)+fa(a)+pa(a)+qa(a)+Qa(a)+ra(a)+sa(a);v.value=l(a.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+q(a,b);ea=c;Ba=parseInt(a.Cells);P=g(a,b)+p(a,b)+m(a)+"part=1;fillColor=none;";
0<Ba&&(ea/=Ba);Y=[];ua=[];for(d=1;d<=Ba;d++)Y[d]=new mxCell("",new mxGeometry(.5*f,(d-1)*ea,.5*f,ea),"shape=partialRectangle;left=0;"+P),Y[d].vertex=!0,v.insert(Y[d]),ua[d]=new mxCell("",new mxGeometry(0,(d-1)*ea,f,ea),"strokeColor=none;fillColor=none;part=1;"),ua[d].vertex=!0,v.insert(ua[d]),ua[d].value=l(a["cell_"+d]),ua[d].style+=n(a["cell_"+d]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+=
"shape=ellipse;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.17*f,.2*c,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+p(a,b)+m(a);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";P="shape=card;size=18;flipH=1;part=1;"+g(a,b)+q(a,b)+p(a,b)+m(a);e=new mxCell("",new mxGeometry(.1*f,0,.9*f,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");
e.vertex=!0;v.insert(e);e.style+=P;k=new mxCell("",new mxGeometry(.05*f,.1*c,.9*f,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");k.vertex=!0;v.insert(k);k.style+=P;var u=new mxCell("",new mxGeometry(0,.2*c,.9*f,.8*c),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");u.vertex=!0;v.insert(u);u.style+=P+n(a);u.value=l(a.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(e=new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):
a.Beanstalk?(e=new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):
a.EC2?(e=new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.Subnet?(e=
new mxCell("",new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.VPC?(e=new mxCell("",
new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.AWS?(e=new mxCell("",
new mxGeometry(0,0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):a.Corporate?(e=new mxCell("",new mxGeometry(0,
0,f,c-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,b)+n(a.Title)+t(a)+m(a),e.value=l(a.Title),k=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(30,0),k.vertex=!0,v.insert(k)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+
g(a,b)+n(a.Title)+t(a)+m(a),v.value=l(a.Title));break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var G=new mxCell("",new mxGeometry(.25*f,.25*c,.5*f,.5*c),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");G.vertex=!0;v.insert(G);var I=[G];G.style+=q(a,b);var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");E.geometry.relative=!0;E.edge=!0;Pa(.5*f,0,E,B,w,
I,v,G);Pa(.855*f,.145*c,E,B,w,I,v,G);Pa(f,.5*c,E,B,w,I,v,G);Pa(.855*f,.855*c,E,B,w,I,v,G);Pa(.5*f,c,E,B,w,I,v,G);Pa(.145*f,.855*c,E,B,w,I,v,G);Pa(0,.5*c,E,B,w,I,v,G);Pa(.145*f,.145*c,E,B,w,I,v,G);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";G=new mxCell("",new mxGeometry(0,.5*c-10,f,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");G.vertex=!0;v.insert(G);
I=[G];E=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");E.geometry.relative=!0;E.edge=!0;for(var I=[G],Hb=f/a.NumTopNodes,d=0;d<a.NumTopNodes;d++)Pa(.5*Hb+d*Hb,0,E,B,w,I,v,G);Hb=f/a.NumBottomNodes;for(d=0;d<a.NumBottomNodes;d++)Pa(.5*Hb+d*Hb,c,E,B,w,I,v,G);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+n(a);v.value=l(a.Title);a.ToggleCharge&&(v.style+="flipV=1;");
break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);"EIMessageChannelBlock"==h.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIDatatypeChannelBlock"==h.Class?
(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIInvalidMessageChannelBlock"==h.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIDeadLetterChannelBlock"==h.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),e.geometry.offset=
new mxPoint(.45*-f,0)):"EIGuaranteedDeliveryBlock"==h.Class&&(e=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(-10,-7));e.geometry.relative=!0;e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;T(.15*f,.25*c,.85*f,.25*c,E,B,w,I,v,G);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,.07*c,.21*f,.86*c),"fillColor=#FFFF33;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a)+t(a);k=new mxCell("",new mxGeometry(.26*f,.09*c,.2*f,.82*c),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+p(a,b)+m(a)+t(a);u=new mxCell("",new mxGeometry(1,.5,.35*f,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
u.geometry.relative=!0;u.geometry.offset=new mxPoint(.4*-f,-10);u.vertex=!0;v.insert(u);u.style+=g(a,b)+p(a,b)+m(a)+t(a);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");z.geometry.relative=!0;z.edge=!0;e.insertEdge(z,!0);k.insertEdge(z,!1);z.style+=g(a,b);B.push(w.addCell(z,null,null,null,null));x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
x.geometry.relative=!0;x.edge=!0;k.insertEdge(x,!0);u.insertEdge(x,!1);B.push(w.addCell(x,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);for(var Ib=a.Messages,Zb=(c-17)/
Ib,k=[],E=[],d=0;d<Ib;d++){var Jb=Zb*(d+1)-3;k[d]=new mxCell("",new mxGeometry(f-20,Jb,20,20),"part=1;");k[d].vertex=!0;v.insert(k[d]);k[d].style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a);switch(h.Class){case "EIMessageBlock":k[d].value=l(a["message_"+(d+1)]);k.style+=n(a["message_"+(d+1)]);break;case "EICommandMessageBlock":k[d].value="C";k[d].style+="fontStyle=1;fontSize=10;";break;case "EIDocumentMessageBlock":k[d].value="D";k[d].style+="fontStyle=1;fontSize=10;";break;case "EIEventMessageBlock":k[d].value=
"E",k[d].style+="fontStyle=1;fontSize=10;"}E[d]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");E[d].geometry.relative=!0;E[d].edge=!0;e.insertEdge(E[d],!1);k[d].insertEdge(E[d],!0);E[d].style+=g(a,b)+m(a);var Wa=[];Wa.push(new mxPoint(wa+8.5,xa+Jb+10));E[d].geometry.points=Wa;B.push(w.addCell(E[d],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,
b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.45*f,.25*c,.3*f,.5*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;T(0,.5*c,.4*f,.5*c,E,B,w,I,v,G);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+
q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);var z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;T(.05*f,.5*c,.85*f,.5*c,z,B,w,I,v,G);var x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;T(.05*f,.5*c,.85*f,.15*
c,x,B,w,I,v,G);var H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");H.geometry.relative=!0;H.edge=!0;T(.05*f,.5*c,.85*f,.85*c,H,B,w,I,v,G);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
z.geometry.relative=!0;z.edge=!0;z.style+=g(a,b);T(.05*f,.5*c,.95*f,.5*c,z,B,w,I,v,G);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");x.geometry.relative=!0;x.edge=!0;x.style+=g(a,b);T(.3*f,.1*c,.3*f,.5*c,x,B,w,I,v,G);H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
H.geometry.relative=!0;H.edge=!0;H.style+=g(a,b);T(.7*f,.1*c,.7*f,.5*c,H,B,w,I,v,G);var U=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");U.geometry.relative=!0;U.edge=!0;U.style+=g(a,b);T(.5*f,.5*c,.5*f,.9*c,U,B,w,I,v,G);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);
e=new mxCell("",new mxGeometry(.2*f,.21*c,.16*f,.24*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;T(.45*f,.33*c,.8*f,.33*c,z,B,w,I,v,G);k=new mxCell("",new mxGeometry(.64*f,.55*c,.16*f,.24*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+p(a,b)+m(a);x=new mxCell("",new mxGeometry(0,0,0,0),
"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;T(.55*f,.67*c,.2*f,.67*c,x,B,w,I,v,G);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.1*f,.15*c,.8*f,.7*c),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+p(a,b)+m(a);break;
case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.04*f,.06*c,.18*f,.28*c),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);k=new mxCell("",new mxGeometry(.2*f,.56*c,.2*f,.32*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+p(a,b)+m(a)+t(a);k.value="A";k.style+="fontStyle=1;fontSize=10;";z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");
z.geometry.relative=!0;z.edge=!0;e.insertEdge(z,!1);k.insertEdge(z,!0);z.style+=g(a,b)+m(a);Wa=[];Wa.push(new mxPoint(wa+.13*f,xa+.72*c));z.geometry.points=Wa;B.push(w.addCell(z,null,null,null,null));u=new mxCell("",new mxGeometry(.6*f,.06*c,.18*f,.28*c),"shape=ellipse;fillColor=#808080;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,b)+m(a);C=new mxCell("",new mxGeometry(.76*f,.56*c,.2*f,.32*c),"part=1;");C.vertex=!0;v.insert(C);C.style+=g(a,b)+p(a,b)+m(a)+t(a);C.value="B";C.style+="fontStyle=1;fontSize=10;";
x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");x.geometry.relative=!0;x.edge=!0;u.insertEdge(x,!1);C.insertEdge(x,!0);x.style+=g(a,b)+m(a);var gc=[];gc.push(new mxPoint(wa+.69*f,xa+.72*c));x.geometry.points=gc;B.push(w.addCell(x,null,null,null,null));H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");H.geometry.relative=!0;H.edge=!0;e.insertEdge(H,
!1);u.insertEdge(H,!0);H.style+=g(a,b)+m(a);B.push(w.addCell(H,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("1",new mxGeometry(.2*f,.4*c,.1*f,.19*c),"fontStyle=1;fontSize=10;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);k=new mxCell("2",new mxGeometry(.45*f,.4*c,.1*f,.19*c),"fontStyle=1;fontSize=10;part=1;");k.vertex=!0;v.insert(k);k.style+=g(a,b)+
m(a);u=new mxCell("3",new mxGeometry(.7*f,.4*c,.1*f,.19*c),"fontStyle=1;fontSize=10;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,b)+m(a);z=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");e.insertEdge(z,!1);k.insertEdge(z,!0);z.geometry.points=[new mxPoint(wa+.375*f,xa+.15*c)];z.geometry.relative=!0;z.edge=!0;z.style+=g(a,b)+m(a);B.push(w.addCell(z,null,null,null,null));x=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
k.insertEdge(x,!1);u.insertEdge(x,!0);x.geometry.points=[new mxPoint(wa+.675*f,xa+.15*c)];x.geometry.relative=!0;x.edge=!0;x.style+=g(a,b)+m(a);B.push(w.addCell(x,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.3*f,.2*c,.4*f,.6*c),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);break;case "EIMessageBrokerBlock":v.style+=
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+O(a)+K(a)+M(a)+fa(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.38*f,.42*c,.24*f,.16*c),"part=1;fillColor=#aefe7d;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);k=new mxCell("",new mxGeometry(.38*f,0,.24*f,.16*c),"part=1;");k.vertex=!0;v.insert(k);k.style+=q(a,b)+g(a,b)+m(a);u=new mxCell("",new mxGeometry(.76*f,.23*c,.24*f,.16*c),"part=1;");u.vertex=!0;v.insert(u);u.style=k.style;var C=new mxCell("",new mxGeometry(.76*
f,.61*c,.24*f,.16*c),"part=1;");C.vertex=!0;v.insert(C);C.style=k.style;var Qb=new mxCell("",new mxGeometry(.38*f,.84*c,.24*f,.16*c),"part=1;");Qb.vertex=!0;v.insert(Qb);Qb.style=k.style;var Rb=new mxCell("",new mxGeometry(0,.61*c,.24*f,.16*c),"part=1;");Rb.vertex=!0;v.insert(Rb);Rb.style=k.style;var Sb=new mxCell("",new mxGeometry(0,.23*c,.24*f,.16*c),"part=1;");Sb.vertex=!0;v.insert(Sb);Sb.style=k.style;z=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(z,!1);k.insertEdge(z,
!0);z.edge=!0;z.style+=g(a,b)+m(a);B.push(w.addCell(z,null,null,null,null));x=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(x,!1);u.insertEdge(x,!0);x.edge=!0;x.style+=g(a,b)+m(a);B.push(w.addCell(x,null,null,null,null));H=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(H,!1);C.insertEdge(H,!0);H.edge=!0;H.style+=g(a,b)+m(a);B.push(w.addCell(H,null,null,null,null));U=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(U,
!1);Qb.insertEdge(U,!0);U.edge=!0;U.style+=g(a,b)+m(a);B.push(w.addCell(U,null,null,null,null));var lb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(lb,!1);Rb.insertEdge(lb,!0);lb.edge=!0;lb.style+=g(a,b)+m(a);B.push(w.addCell(lb,null,null,null,null));var mb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(mb,!1);Sb.insertEdge(mb,!0);mb.edge=!0;mb.style+=g(a,b)+m(a);B.push(w.addCell(mb,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;T(.05*f,.5*c,.6*f,.25*c,z,B,w,I,v,G);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;T(.05*f,.5*c,.6*f,.75*c,x,B,w,I,v,G);e=new mxCell("",new mxGeometry(.7*
f,.1*c,.15*f,.32*c),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.25*f,.25*c,.5*f,.5*c),"shape=mxgraph.eip.control_bus;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+
n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);u=new mxCell("",new mxGeometry(f-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,b)+m(a);H=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");H.geometry.relative=!0;H.edge=!0;e.insertEdge(H,!1);u.insertEdge(H,
!0);H.style+=g(a,b)+m(a);H.geometry.points=[new mxPoint(wa+8.5,xa+40)];B.push(w.addCell(H,null,null,null,null));C=new mxCell("",new mxGeometry(f-45,c-20,20,20),"part=1;");C.vertex=!0;v.insert(C);C.value=l(a.message_0);C.style+=n(a.message_0);C.style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a);U=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");U.geometry.relative=!0;U.edge=!0;e.insertEdge(U,!1);C.insertEdge(U,!0);U.style+=g(a,
b)+m(a);U.geometry.points=[new mxPoint(wa+8.5,xa+c-10)];B.push(w.addCell(U,null,null,null,null));Ib=a.HistoryMessages;Zb=(c-75)/Ib;k=[];E=[];for(d=0;d<Ib;d++)Jb=Zb*(d+1)+30,k[d]=new mxCell("",new mxGeometry(f-20,Jb,20,20),"part=1;"),k[d].vertex=!0,k[d].value=l(a["message_"+(d+1)]),k.style+=n(a["message_"+(d+1)]),v.insert(k[d]),k[d].style+=g(a,b)+q(a,b)+p(a,b)+r(a)+m(a)+t(a),E[d]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),
E[d].geometry.relative=!0,E[d].edge=!0,u.insertEdge(E[d],!1),k[d].insertEdge(E[d],!0),E[d].style+=g(a,b)+m(a),Wa=[],Wa.push(new mxPoint(wa+f-30,xa+Jb+10)),E[d].geometry.points=Wa,B.push(w.addCell(E[d],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+g(a,b)+p(a,b)+r(a)+m(a)+V(a,b,v);t(a);0>a.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+g(a,b)+p(a,b)+r(a)+m(a)+V(a,b,v)+t(a);0<a.DoorAngle&&(v.style+="flipV=1;");
break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+V(a,b,v);e=new mxCell("",new mxGeometry(0,0,f,.25*c),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);for(var k=[],hc=.02*f,$b=(f-2*hc)/a.LightCount,ic=.8*$b,d=0;d<a.LightCount;d++)k[d]=new mxCell("",new mxGeometry(hc+$b*d+($b-ic)/2,.25*c,ic,.75*c),"part=1;shape=ellipse;"),k[d].vertex=!0,v.insert(k[d]),k[d].style+=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;"+
V(a,b,v);for(var e=[],jc=f/a.SinkCount,d=0;d<a.SinkCount;d++)e[d]=new mxCell("",new mxGeometry(jc*d,0,jc,c),"part=1;shape=mxgraph.floorplan.sink_2;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var ia=.1*f/a.StallCount,e=new mxCell("",new mxGeometry(0,0,ia,c),"fillColor=#000000;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,b)+m(a);for(var oa=(f-ia)/a.StallCount,ac=[],Kb=[],Lb=[],Mb=[],y=g(a,
b),y=""==y?"#000000;":y.replace("stokreColor=",""),Ub="part=1;fillColor="+y+g(a,b)+m(a),bc=q(a,b)+g(a,b)+m(a),d=0;d<a.StallCount;d++)ac[d]=new mxCell("",new mxGeometry((d+1)*oa,0,ia,c),Ub),ac[d].vertex=!0,v.insert(ac[d]),Lb[d]=new mxCell("",new mxGeometry(ia+d*oa+.05*(oa-ia),c-.92*(oa-ia),.9*(oa-ia),.92*(oa-ia)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Lb[d].vertex=!0,v.insert(Lb[d]),Lb[d].style+=bc,Kb[d]=new mxCell("",new mxGeometry(ia+d*oa+.2*(oa-ia),0,.6*(oa-ia),.8*(oa-ia)),"shape=mxgraph.floorplan.toilet;part=1;"),
Kb[d].vertex=!0,v.insert(Kb[d]),Kb[d].style+=bc,Mb[d]=new mxCell("",new mxGeometry(ia+d*oa,.42*c,.15*(oa-ia),.12*(oa-ia)),"part=1;"),Mb[d].vertex=!0,v.insert(Mb[d]),Mb[d].style+=bc;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Tb="edgeStyle=none;endArrow=none;part=1;"+g(a,b)+m(a)+p(a,b)+r(a)+t(a),y=g(a,b),y=""==y?"#000000;":y.replace("stokreColor=",""),cc="shape=triangle;part=1;fillColor="+y+g(a,b)+m(a)+p(a,b)+r(a)+t(a),z=new mxCell("",new mxGeometry(0,0,0,0),Tb);z.geometry.relative=
!0;z.edge=!0;T(0,.5*c,.65*f,.5*c,z,B,w,I,v,G);for(var A=c/a.numLines,x=[],$a=[],d=0;d<a.numLines;d++)x[d]=new mxCell("",new mxGeometry(0,0,0,0),Tb),x[d].geometry.relative=!0,x[d].edge=!0,T(.65*f,.5*c,.96*f,(d+.5)*A,x[d],B,w,I,v,G),$a[d]=new mxCell("",new mxGeometry(.95*f,(d+.2)*A,.05*f,.6*A),cc),$a[d].vertex=!0,v.insert($a[d]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";Tb="edgeStyle=none;endArrow=none;part=1;"+g(a,b)+m(a)+p(a,b)+r(a)+t(a);y=g(a,b);y=""==y?"#000000;":y.replace("stokreColor=",
"");cc="shape=triangle;part=1;fillColor="+y+g(a,b)+m(a)+p(a,b)+r(a)+t(a);A=c/a.numLines;x=[];$a=[];for(d=0;d<a.numLines;d++)x[d]=new mxCell("",new mxGeometry(0,0,0,0),Tb),x[d].geometry.relative=!0,x[d].edge=!0,T(0,(d+.5)*A,.96*f,(d+.5)*A,x[d],B,w,I,v,G),$a[d]=new mxCell("",new mxGeometry(.95*f,(d+.2)*A,.05*f,.6*A),cc),$a[d].vertex=!0,v.insert($a[d]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);switch(a.vesselType){case 1:v.style+=
"shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);1==a.peakedRoof&&0==a.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==a.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a)+n(a);v.value=l(a.Text);v.style=0==a.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+V(a,b,v)+n(a);v.value=l(a.Text);P=g(a,b)+q(a,b)+m(a)+p(a,b)+r(a)+t(a);e=new mxCell("",new mxGeometry(0,.2*c,f,.6*c),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=P;P+="endSize=4;endArrow=block;endFill=1;";0==
a.compressorType?(z=new mxCell("",new mxGeometry(0,0,0,0),""),z.geometry.relative=!0,z.edge=!0,z.style+=P,T(0,0,0,.2*c,z,B,w,I,v,G),x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=P,T(f,.67*c,f,c,x,B,w,I,v,G)):(e.style+="flipH=1;",z=new mxCell("",new mxGeometry(0,0,0,0),""),z.geometry.relative=!0,z.edge=!0,z.style+=P,T(0,0,0,.33*c,z,B,w,I,v,G),x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=P,T(f,.8*c,f,c,x,B,w,I,v,G));1==
a.centerLineType&&(H=new mxCell("",new mxGeometry(0,0,0,0),""),H.geometry.relative=!0,H.edge=!0,H.style+=P,T(.2*f,.5*c,.8*f,.5*c,H,B,w,I,v,G));break;case "PEMotorDrivenTurbineBlock":P=g(a,b)+q(a,b)+m(a)+p(a,b)+t(a);v.style+="shape=ellipse;"+r(a)+V(a,b,v)+n(a);v.value=l(a.Text);e=new mxCell("",new mxGeometry(.2*f,.2*c,.6*f,.6*c),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=P;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":P=
p(a,b);v.style+=P+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);switch(h.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==h.Class||"PESharedIndicator2Block"==h.Class?(e=new mxCell("",new mxGeometry(0,0,f,.5*f),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=P+n(a.TopText),e.value=l(a.TopText),k=new mxCell("",new mxGeometry(0,.5*f,f,.5*f),"part=1;strokeColor=none;fillColor=none;")):(e=new mxCell("",new mxGeometry(0,0,f,.5*c),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=P+n(a.TopText),e.value=l(a.TopText),
k=new mxCell("",new mxGeometry(0,.5*c,f,.5*c),"part=1;strokeColor=none;fillColor=none;"));k.vertex=!0;v.insert(k);k.style+=P;n(a.BotText);k.value=l(a.BotText);switch(a.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var dc=!1;"PEPoweredValveBlock"==
h.Class?1!=a.poweredHandOperated&&(dc=!0):1!=a.handOperated&&(dc=!0);if(dc){var a=Xa(h).Properties,ja=a.BoundingBox,Vb=ja.h;ja.h="PEAngleValveBlock"==h.Class||"PEAngleGlobeValveBlock"==h.Class?.7*ja.h:.6*ja.h;v=new mxCell("",new mxGeometry(Math.round(.6*ja.x+0),Math.round(.6*(ja.y+Vb-ja.h)+0),Math.round(.6*ja.w),Math.round(.6*ja.h)),"");v.vertex=!0;Xb(v,h)}if("PEPoweredValveBlock"==h.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+p(a,b)+g(a,b)+q(a,
b)+m(a)+t(a)+r(a)+V(a,b,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",e=new mxCell("",new mxGeometry(.325*f,0,.35*f,.35*c),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),e.vertex=!0,v.insert(e),e.style+=P+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+"fontSize=6;"+K(a.PoweredText)+M(a.PoweredText)+fa(a.PoweredText)+pa(a.PoweredText)+qa(a.PoweredText)+ra(a.PoweredText)+sa(a.PoweredText)+Ta(a.PoweredText),e.value=l(a.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+
p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v)+O(a)+K(a)+M(a)+fa(a);v.value=l(a.Text);switch(h.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==a.handOperated&&(v.style+="actuator=man;")}break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;"+p(a,b)+g(a,b)+
q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,110),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,
1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2WindowBlock":v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v)+O(a.Title)+K(a.Title)+M(a.Title);v.value=
l(a.Title);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,30),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):
new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2DialogBlock":v.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v)+n(a.Text);v.value=l(a.Text);e=new mxCell("",new mxGeometry(0,0,f,30),"part=1;resizeHeight=0;");e.vertex=!0;v.insert(e);e.style+=P+n(a.Title);e.value=l(a.Title);k=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
k.geometry.relative=!0;k.geometry.offset=new mxPoint(-25,-10);k.vertex=!0;e.insert(k);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,30),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");
1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2AccordionBlock":v.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);e=[];A=25;for(d=0;d<=a.Panels-1;d++)e[d]=d<a.Selected-1?new mxCell("",
new mxGeometry(0,d*A,f,A),"part=1;fillColor=#000000;fillOpacity=25;"):d==a.Selected-1?new mxCell("",new mxGeometry(0,d*A,f,A),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,c-(a.Panels-a.Selected)*A+(d-a.Selected)*A,f,A),"part=1;fillColor=#000000;fillOpacity=25;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=n(a["Panel_"+(d+1)]),e[d].value=l(a["Panel_"+(d+1)]),e[d].style.includes(";align=")||(e[d].style+="align=left;spacingLeft=5;");var L=g(a,b),L=L.replace("strokeColor","fillColor2");""==
L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-a.Selected*A-20-(a.Panels-a.Selected)*A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-a.Selected*A-(a.Panels-a.Selected)*A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,a.Selected*A),k.vertex=!0,v.insert(k),v.style+=
"spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*A),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));C=1==a.vScroll?new mxCell("",
new mxGeometry(0,a.Selected*A,f-20,c-a.Selected*A-20-(a.Panels-a.Selected)*A),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,a.Selected*A,f-20,c-a.Selected*A-(a.Panels-a.Selected)*A),"part=1;fillColor=none;strokeColor=none;");C.vertex=!0;v.insert(C);C.style+=n(a.Content_1);C.style.includes(";align=")||(C.style+="align=left;spacingLeft=5;");C.value=l(a.Content_1);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var e=[],k=[],A=25,ma=3,N=(f+
ma)/(a.Tabs+1),na=new mxCell("",new mxGeometry(0,A,f,c-A),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);for(d=0;d<=a.Tabs-1;d++)d==a.Selected-1?(k[d]=new mxCell("",new mxGeometry(10+d*N,0,N-ma,A),""),k[d].vertex=!0,v.insert(k[d]),k[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Tab_"+(d+1)])):(e[d]=new mxCell("",new mxGeometry(10+d*N,0,N-ma,A),"strokeColor=none;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+q(a,b)+r(a),k[d]=new mxCell("",new mxGeometry(0,
0,N-ma,A),"fillColor=#000000;fillOpacity=25;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=g(a,b)+m(a)+t(a)+n(a["Tab_"+(d+1)])),k[d].value=l(a["Tab_"+(d+1)]),k[d].style.includes(";align=")||(k[d].style+="align=left;spacingLeft=2;");L=g(a,b);L=L.replace("strokeColor","fillColor2");""==L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
0,20,c-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,A),k.vertex=!0,v.insert(k),v.style+="spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";e=[];k=[];A=25;ma=3;N=(f+ma)/a.Tabs;na=new mxCell("",new mxGeometry(0,A,f,c-A),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);for(d=0;d<=a.Tabs-1;d++)d==a.Selected-1?(k[d]=new mxCell("",new mxGeometry(d*N,0,N-ma,A),""),k[d].vertex=!0,v.insert(k[d]),
k[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Tab_"+(d+1)])):(e[d]=new mxCell("",new mxGeometry(d*N,0,N-ma,A),"strokeColor=none;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+q(a,b)+r(a),k[d]=new mxCell("",new mxGeometry(0,0,N-ma,A),"fillColor=#000000;fillOpacity=25;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=g(a,b)+m(a)+t(a)+n(a["Tab_"+(d+1)])),k[d].value=l(a["Tab_"+(d+1)]),k[d].style.includes(";align=")||(k[d].style+="align=left;spacingLeft=2;");L=g(a,b);L=L.replace("strokeColor",
"fillColor2");""==L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,c-A),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,A),k.vertex=!0,v.insert(k),v.style+="spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));
1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";e=[];k=[];ma=3;A=25+ma;N=80;Ra=
10;na=new mxCell("",new mxGeometry(N,0,f-N,c),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+V(a,b,v);for(d=0;d<=a.Tabs-1;d++)d==a.Selected-1?(k[d]=new mxCell("",new mxGeometry(0,Ra+d*A,N,A-ma),""),k[d].vertex=!0,v.insert(k[d]),k[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Tab_"+(d+1)])):(e[d]=new mxCell("",new mxGeometry(0,Ra+d*A,N,A-ma),"strokeColor=none;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+q(a,b)+r(a),k[d]=new mxCell("",new mxGeometry(0,
0,N,A-ma),"fillColor=#000000;fillOpacity=25;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=g(a,b)+m(a)+t(a)+n(a["Tab_"+(d+1)])),k[d].value=l(a["Tab_"+(d+1)]),k[d].style.includes(";align=")||(k[d].style+="align=left;spacingLeft=2;");L=g(a,b);L=L.replace("strokeColor","fillColor2");""==L&&(L="fillColor2=#000000;");1==a.vScroll&&(k=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,c-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
0,20,c),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),k.geometry.relative=!0,k.geometry.offset=new mxPoint(-20,0),k.vertex=!0,v.insert(k),v.style+="spacingRight=20;",k.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(N,1,f-20-N,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(N,1,f-N,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=L+p(a,b)+g(a,b)+q(a,b)+m(a)+t(a));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";A=c/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(0,d*A+.5*A-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+
(d+1)]),null!=a.Selected[d+1]&&1==a.Selected[d+1]&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),e[d].value=l(a["Option_"+(d+1)]);break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";N=f/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(d*N,.5*
c-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+(d+1)]),null!=a.Selected[d+1]&&1==a.Selected[d+1]&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),
e[d].value=l(a["Option_"+(d+1)]);break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";A=c/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(0,d*A+.5*A-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+(d+1)]),null!=a.Selected&&a.Selected==d+1&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),
""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"shape=ellipse;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),e[d].value=l(a["Option_"+(d+1)]);break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";N=f/a.Options;e=[];k=[];for(d=0;d<a.Options;d++)e[d]=new mxCell("",new mxGeometry(d*N,.5*c-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
e[d].vertex=!0,v.insert(e[d]),e[d].style+=p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a)+n(a["Option_"+(d+1)]),null!=a.Selected&&a.Selected==d+1&&(y=g(a,b),y=y.replace("strokeColor","fillColor"),""==y&&(y="fillColor=#000000;"),k[d]=new mxCell("",new mxGeometry(2,2,6,6),"shape=ellipse;part=1;"),k[d].vertex=!0,e[d].insert(k[d]),k[d].style+=y+p(a,b)+g(a,b)+m(a)+t(a)),e[d].value=l(a["Option_"+(d+1)]);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;"+
p(a,b)+g(a,b)+q(a,b)+m(a)+t(a)+r(a),"UI2VSliderBlock"==h.Class&&(v.style+="direction=south;"),v.style+="sliderPos="+100*a.ScrollVal+";"}return v}var kc=["GSDFDProcessBlock","GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],lc=["ProcessBlock","UMLActivationBlock"],Ub="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "),
oc="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),Vb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),
mc=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],nc=["fpDoor"],nb={None:"none",Arrow:"block;endFill=1","Hollow Arrow":"block;endFill=0","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10","CFN ERD Many Arrow":"ERmany;startSize=10","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10","CFN ERD One Arrow":"ERone;startSize=16",
Generalization:"block;endFill=0;startSize=12","Big Open Arrow":"open;startSize=10",Asynch1:"openAsync;flipH=1;startSize=10",Asynch2:"openAsync;startSize=10",Aggregation:"diamond;endFill=0;startSize=16",Composition:"diamond;endFill=1;startSize=16",BlockEnd:"none;endFill=1;startSize=16"},ab={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",
new mxPoint(4,7);break;case 6:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");e.geometry.offset=new mxPoint(4,5);break;case 7:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),e.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Ib=q(a,c),w=g(a,c),w=w.replace("strokeColor","fillColor"),Ib=Ib.replace("fillColor","strokeColor");""==w&&(w="fillColor=#000000;");""==Ib&&(Ib="strokeColor=#ffffff;");e.style+=Ib+w+"part=1;"}else e.style+=q(a,
c)+g(a,c)+"part=1;";e.geometry.relative=!0;e.vertex=!0;v.insert(e)}var Jb=0;0!=a.bpmnActivityMarker1&&Jb++;0!=a.bpmnActivityMarker2&&Jb++;var ha=0;1==Jb?ha=-7.5:2==Jb&&(ha=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 2:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=
q(a,c)+g(a,c);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");e.geometry.offset=new mxPoint(ha,-17);w=g(a,c);w=w.replace("strokeColor",
"fillColor");""==w&&(w="fillColor=#000000;");e.style+=w;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ha,-18),e.style+=q(a,c)+g(a,c)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}2==Jb&&(ha=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 2:e=new mxCell("",new mxGeometry(.5,
1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ha,-20);e.style+=q(a,c)+g(a,c);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");
e.geometry.offset=new mxPoint(ha,-17);w=g(a,c);w=w.replace("strokeColor","fillColor");""==w&&(w="fillColor=#000000;");e.style+=w;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ha,-18),e.style+=q(a,c)+g(a,c)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+l(a)+P(a)+J(a)+O(a)+fa(a)+pa(a)+
qa(a)+Ra(a)+ra(a)+sa(a);v.value=k(a.Text);if(1==a.bpmnDashed)switch(a.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(a.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(a.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+=
"symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;"+q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+m(a);v.value=k(a.Text);v.style=0==a.bpmnConversationType?v.style+
l(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(e=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),e.geometry.offset=new mxPoint(-6,-17),e.style+=q(a,c)+g(a,c),e.geometry.relative=!0,e.vertex=!0,v.insert(e));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+m(a);switch(a.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";
break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break;case "BPMNData":v.style+="shape=note;size=14;"+q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+m(a);switch(a.bpmnDataType){case 1:e=new mxCell("",new mxGeometry(.5,1,12,
10),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(-6,-15);e.style+=q(a,c)+g(a,c);e.geometry.relative=!0;e.vertex=!0;v.insert(e);break;case 2:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");e.geometry.offset=new mxPoint(3,3);e.style+=q(a,c)+g(a,c);e.geometry.relative=!0;e.vertex=!0;v.insert(e);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";D=new mxCell("",new mxGeometry(0,0,f,20),"strokeColor=none;fillColor=none;");D.geometry.offset=
new mxPoint(0,14);D.geometry.relative=!0;D.vertex=!0;v.insert(D);D.value=k(a.Text);D.style+=m(a);break;case 3:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),e.geometry.offset=new mxPoint(3,3),e.style+=g(a,c),e.geometry.relative=!0,e.vertex=!0,v.insert(e),w=g(a,c),w=w.replace("strokeColor","fillColor"),""==w&&(w="fillColor=#000000;"),e.style+=w,D=new mxCell("",new mxGeometry(0,0,f,20),"strokeColor=none;fillColor=none;"),D.geometry.offset=new mxPoint(0,
14),D.geometry.relative=!0,D.vertex=!0,v.insert(D),D.value=k(a.Text),D.style+=m(a)}break;case "BPMNBlackPool":v.style+=q(a,c)+g(a,c)+p(a,c)+r(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,f,d),"fillColor=#000000;strokeColor=none;opacity=30;");e.vertex=!0;v.insert(e);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.95*f,.95*d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a);h=new mxCell("",
new mxGeometry(.05*f,.05*d,.95*f,.95*d),"part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a.Text);h.value=k(a.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a.Text);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,.2*f,d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a.Number);e.value=k(a.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==n.Class?v.value=k(a.Text):"VSMProductionControlBlock"==n.Class&&(v.value=k(a.Resources));v.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+P(a)+J(a)+O(a)+fa(a)+pa(a)+qa(a)+ra(a)+sa(a)+Ua(a);"VSMDedicatedProcessBlock"==n.Class&&(e=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),e.geometry.relative=!0,e.geometry.offset=new mxPoint(4,-13),e.vertex=!0,v.insert(e),e.style+=g(a,c)+q(a,
c)+p(a,c)+r(a)+l(a));D=new mxCell("",new mxGeometry(0,0,f,15),"strokeColor=none;fillColor=none;part=1;");D.vertex=!0;v.insert(D);D.value=k(a.Title);D.style+=m(a.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=k(a.Text);v.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+P(a)+J(a)+O(a)+fa(a)+pa(a)+qa(a)+ra(a)+Ra(a)+sa(a);D=new mxCell("",new mxGeometry(.1*f,.3*d,.8*f,.6*d),"part=1;");D.vertex=!0;v.insert(D);D.value=
k(a.Resource);D.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+P(a)+J(a)+O(a)+fa(a)+pa(a)+qa(a)+ra(a)+sa(a);v.value=k(a.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var ea=d,Ba=parseInt(a.Cells),L=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+"part=1;";0<Ba&&(ea/=Ba);M=[];S=[];for(b=1;b<=Ba;b++)M[b]=
new mxCell("",new mxGeometry(0,(b-1)*ea,f,ea),L),M[b].vertex=!0,v.insert(M[b]),M[b].value=k(a["cell_"+b]),M[b].style+=m(a["cell_"+b]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+P(a)+J(a)+O(a)+fa(a)+pa(a)+qa(a)+Ra(a)+ra(a)+sa(a);v.value=k(a.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+q(a,c);ea=d;Ba=parseInt(a.Cells);L=g(a,c)+p(a,c)+l(a)+"part=1;fillColor=none;";
0<Ba&&(ea/=Ba);M=[];ua=[];for(b=1;b<=Ba;b++)M[b]=new mxCell("",new mxGeometry(.5*f,(b-1)*ea,.5*f,ea),"shape=partialRectangle;left=0;"+L),M[b].vertex=!0,v.insert(M[b]),ua[b]=new mxCell("",new mxGeometry(0,(b-1)*ea,f,ea),"strokeColor=none;fillColor=none;part=1;"),ua[b].vertex=!0,v.insert(ua[b]),ua[b].value=k(a["cell_"+b]),ua[b].style+=m(a["cell_"+b]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+=
"shape=ellipse;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.17*f,.2*d,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+q(a,c)+p(a,c)+l(a);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";L="shape=card;size=18;flipH=1;part=1;"+g(a,c)+q(a,c)+p(a,c)+l(a);e=new mxCell("",new mxGeometry(.1*f,0,.9*f,.8*d),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");
e.vertex=!0;v.insert(e);e.style+=L;h=new mxCell("",new mxGeometry(.05*f,.1*d,.9*f,.8*d),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");h.vertex=!0;v.insert(h);h.style+=L;var u=new mxCell("",new mxGeometry(0,.2*d,.9*f,.8*d),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");u.vertex=!0;v.insert(u);u.style+=L+m(a);u.value=k(a.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(e=new mxCell("",new mxGeometry(0,0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):
a.Beanstalk?(e=new mxCell("",new mxGeometry(0,0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):
a.EC2?(e=new mxCell("",new mxGeometry(0,0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):a.Subnet?(e=
new mxCell("",new mxGeometry(0,0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):a.VPC?(e=new mxCell("",
new mxGeometry(0,0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):a.AWS?(e=new mxCell("",
new mxGeometry(0,0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):a.Corporate?(e=new mxCell("",new mxGeometry(0,
0,f,d-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=g(a,c)+m(a.Title)+t(a)+l(a),e.value=k(a.Title),h=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(30,0),h.vertex=!0,v.insert(h)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+
g(a,c)+m(a.Title)+t(a)+l(a),v.value=k(a.Title));break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var H=new mxCell("",new mxGeometry(.25*f,.25*d,.5*f,.5*d),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");H.vertex=!0;v.insert(H);var K=[H];H.style+=q(a,c);var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");E.geometry.relative=!0;E.edge=!0;Pa(.5*f,0,E,B,x,
K,v,H);Pa(.855*f,.145*d,E,B,x,K,v,H);Pa(f,.5*d,E,B,x,K,v,H);Pa(.855*f,.855*d,E,B,x,K,v,H);Pa(.5*f,d,E,B,x,K,v,H);Pa(.145*f,.855*d,E,B,x,K,v,H);Pa(0,.5*d,E,B,x,K,v,H);Pa(.145*f,.145*d,E,B,x,K,v,H);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";H=new mxCell("",new mxGeometry(0,.5*d-10,f,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");H.vertex=!0;v.insert(H);
K=[H];E=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");E.geometry.relative=!0;E.edge=!0;for(var K=[H],Kb=f/a.NumTopNodes,b=0;b<a.NumTopNodes;b++)Pa(.5*Kb+b*Kb,0,E,B,x,K,v,H);Kb=f/a.NumBottomNodes;for(b=0;b<a.NumBottomNodes;b++)Pa(.5*Kb+b*Kb,d,E,B,x,K,v,H);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+m(a);v.value=k(a.Title);a.ToggleCharge&&(v.style+="flipV=1;");
break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);"EIMessageChannelBlock"==n.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIDatatypeChannelBlock"==n.Class?
(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIInvalidMessageChannelBlock"==n.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-f,0)):"EIDeadLetterChannelBlock"==n.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*f,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),e.geometry.offset=
new mxPoint(.45*-f,0)):"EIGuaranteedDeliveryBlock"==n.Class&&(e=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(-10,-7));e.geometry.relative=!0;e.vertex=!0;v.insert(e);e.style+=g(a,c)+p(a,c)+l(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;V(.15*f,.25*d,.85*f,.25*d,E,B,x,K,v,H);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,.07*d,.21*f,.86*d),"fillColor=#FFFF33;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+p(a,c)+l(a)+t(a);h=new mxCell("",new mxGeometry(.26*f,.09*d,.2*f,.82*d),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+p(a,c)+l(a)+t(a);u=new mxCell("",new mxGeometry(1,.5,.35*f,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
u.geometry.relative=!0;u.geometry.offset=new mxPoint(.4*-f,-10);u.vertex=!0;v.insert(u);u.style+=g(a,c)+p(a,c)+l(a)+t(a);A=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");A.geometry.relative=!0;A.edge=!0;e.insertEdge(A,!0);h.insertEdge(A,!1);A.style+=g(a,c);B.push(x.addCell(A,null,null,null,null));y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
y.geometry.relative=!0;y.edge=!0;h.insertEdge(y,!0);u.insertEdge(y,!1);B.push(x.addCell(y,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);for(var Lb=a.Messages,cc=(d-17)/
Lb,h=[],E=[],b=0;b<Lb;b++){var Mb=cc*(b+1)-3;h[b]=new mxCell("",new mxGeometry(f-20,Mb,20,20),"part=1;");h[b].vertex=!0;v.insert(h[b]);h[b].style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a);switch(n.Class){case "EIMessageBlock":h[b].value=k(a["message_"+(b+1)]);h.style+=m(a["message_"+(b+1)]);break;case "EICommandMessageBlock":h[b].value="C";h[b].style+="fontStyle=1;fontSize=10;";break;case "EIDocumentMessageBlock":h[b].value="D";h[b].style+="fontStyle=1;fontSize=10;";break;case "EIEventMessageBlock":h[b].value=
"E",h[b].style+="fontStyle=1;fontSize=10;"}E[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");E[b].geometry.relative=!0;E[b].edge=!0;e.insertEdge(E[b],!1);h[b].insertEdge(E[b],!0);E[b].style+=g(a,c)+l(a);var Xa=[];Xa.push(new mxPoint(wa+8.5,xa+Mb+10));E[b].geometry.points=Xa;B.push(x.addCell(E[b],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,
c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.45*f,.25*d,.3*f,.5*d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+p(a,c)+l(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;V(0,.5*d,.4*f,.5*d,E,B,x,K,v,H);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+
q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);var A=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");A.geometry.relative=!0;A.edge=!0;V(.05*f,.5*d,.85*f,.5*d,A,B,x,K,v,H);var y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");y.geometry.relative=!0;y.edge=!0;V(.05*f,.5*d,.85*f,.15*
d,y,B,x,K,v,H);var I=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");I.geometry.relative=!0;I.edge=!0;V(.05*f,.5*d,.85*f,.85*d,I,B,x,K,v,H);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);A=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
A.geometry.relative=!0;A.edge=!0;A.style+=g(a,c);V(.05*f,.5*d,.95*f,.5*d,A,B,x,K,v,H);y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");y.geometry.relative=!0;y.edge=!0;y.style+=g(a,c);V(.3*f,.1*d,.3*f,.5*d,y,B,x,K,v,H);I=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
I.geometry.relative=!0;I.edge=!0;I.style+=g(a,c);V(.7*f,.1*d,.7*f,.5*d,I,B,x,K,v,H);var W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");W.geometry.relative=!0;W.edge=!0;W.style+=g(a,c);V(.5*f,.5*d,.5*f,.9*d,W,B,x,K,v,H);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);
e=new mxCell("",new mxGeometry(.2*f,.21*d,.16*f,.24*d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+p(a,c)+l(a);A=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");A.geometry.relative=!0;A.edge=!0;V(.45*f,.33*d,.8*f,.33*d,A,B,x,K,v,H);h=new mxCell("",new mxGeometry(.64*f,.55*d,.16*f,.24*d),"part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+p(a,c)+l(a);y=new mxCell("",new mxGeometry(0,0,0,0),
"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");y.geometry.relative=!0;y.edge=!0;V(.55*f,.67*d,.2*f,.67*d,y,B,x,K,v,H);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.1*f,.15*d,.8*f,.7*d),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+p(a,c)+l(a);break;
case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.04*f,.06*d,.18*f,.28*d),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);h=new mxCell("",new mxGeometry(.2*f,.56*d,.2*f,.32*d),"part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+p(a,c)+l(a)+t(a);h.value="A";h.style+="fontStyle=1;fontSize=10;";A=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");
A.geometry.relative=!0;A.edge=!0;e.insertEdge(A,!1);h.insertEdge(A,!0);A.style+=g(a,c)+l(a);Xa=[];Xa.push(new mxPoint(wa+.13*f,xa+.72*d));A.geometry.points=Xa;B.push(x.addCell(A,null,null,null,null));u=new mxCell("",new mxGeometry(.6*f,.06*d,.18*f,.28*d),"shape=ellipse;fillColor=#808080;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,c)+l(a);C=new mxCell("",new mxGeometry(.76*f,.56*d,.2*f,.32*d),"part=1;");C.vertex=!0;v.insert(C);C.style+=g(a,c)+p(a,c)+l(a)+t(a);C.value="B";C.style+="fontStyle=1;fontSize=10;";
y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");y.geometry.relative=!0;y.edge=!0;u.insertEdge(y,!1);C.insertEdge(y,!0);y.style+=g(a,c)+l(a);var Qb=[];Qb.push(new mxPoint(wa+.69*f,xa+.72*d));y.geometry.points=Qb;B.push(x.addCell(y,null,null,null,null));I=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");I.geometry.relative=!0;I.edge=!0;e.insertEdge(I,
!1);u.insertEdge(I,!0);I.style+=g(a,c)+l(a);B.push(x.addCell(I,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("1",new mxGeometry(.2*f,.4*d,.1*f,.19*d),"fontStyle=1;fontSize=10;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);h=new mxCell("2",new mxGeometry(.45*f,.4*d,.1*f,.19*d),"fontStyle=1;fontSize=10;part=1;");h.vertex=!0;v.insert(h);h.style+=g(a,c)+
l(a);u=new mxCell("3",new mxGeometry(.7*f,.4*d,.1*f,.19*d),"fontStyle=1;fontSize=10;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,c)+l(a);A=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");e.insertEdge(A,!1);h.insertEdge(A,!0);A.geometry.points=[new mxPoint(wa+.375*f,xa+.15*d)];A.geometry.relative=!0;A.edge=!0;A.style+=g(a,c)+l(a);B.push(x.addCell(A,null,null,null,null));y=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
h.insertEdge(y,!1);u.insertEdge(y,!0);y.geometry.points=[new mxPoint(wa+.675*f,xa+.15*d)];y.geometry.relative=!0;y.edge=!0;y.style+=g(a,c)+l(a);B.push(x.addCell(y,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.3*f,.2*d,.4*f,.6*d),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);break;case "EIMessageBrokerBlock":v.style+=
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+P(a)+J(a)+O(a)+fa(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.38*f,.42*d,.24*f,.16*d),"part=1;fillColor=#aefe7d;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);h=new mxCell("",new mxGeometry(.38*f,0,.24*f,.16*d),"part=1;");h.vertex=!0;v.insert(h);h.style+=q(a,c)+g(a,c)+l(a);u=new mxCell("",new mxGeometry(.76*f,.23*d,.24*f,.16*d),"part=1;");u.vertex=!0;v.insert(u);u.style=h.style;var C=new mxCell("",new mxGeometry(.76*
f,.61*d,.24*f,.16*d),"part=1;");C.vertex=!0;v.insert(C);C.style=h.style;var Tb=new mxCell("",new mxGeometry(.38*f,.84*d,.24*f,.16*d),"part=1;");Tb.vertex=!0;v.insert(Tb);Tb.style=h.style;var Ub=new mxCell("",new mxGeometry(0,.61*d,.24*f,.16*d),"part=1;");Ub.vertex=!0;v.insert(Ub);Ub.style=h.style;var Vb=new mxCell("",new mxGeometry(0,.23*d,.24*f,.16*d),"part=1;");Vb.vertex=!0;v.insert(Vb);Vb.style=h.style;A=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(A,!1);h.insertEdge(A,
!0);A.edge=!0;A.style+=g(a,c)+l(a);B.push(x.addCell(A,null,null,null,null));y=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(y,!1);u.insertEdge(y,!0);y.edge=!0;y.style+=g(a,c)+l(a);B.push(x.addCell(y,null,null,null,null));I=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(I,!1);C.insertEdge(I,!0);I.edge=!0;I.style+=g(a,c)+l(a);B.push(x.addCell(I,null,null,null,null));W=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(W,
!1);Tb.insertEdge(W,!0);W.edge=!0;W.style+=g(a,c)+l(a);B.push(x.addCell(W,null,null,null,null));var nb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(nb,!1);Ub.insertEdge(nb,!0);nb.edge=!0;nb.style+=g(a,c)+l(a);B.push(x.addCell(nb,null,null,null,null));var ob=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(ob,!1);Vb.insertEdge(ob,!0);ob.edge=!0;ob.style+=g(a,c)+l(a);B.push(x.addCell(ob,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);A=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");A.geometry.relative=!0;A.edge=!0;V(.05*f,.5*d,.6*f,.25*d,A,B,x,K,v,H);y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");y.geometry.relative=!0;y.edge=!0;V(.05*f,.5*d,.6*f,.75*d,y,B,x,K,v,H);e=new mxCell("",new mxGeometry(.7*
f,.1*d,.15*f,.32*d),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.25*f,.25*d,.5*f,.5*d),"shape=mxgraph.eip.control_bus;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+
m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);u=new mxCell("",new mxGeometry(f-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");u.vertex=!0;v.insert(u);u.style+=g(a,c)+l(a);I=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");I.geometry.relative=!0;I.edge=!0;e.insertEdge(I,!1);u.insertEdge(I,
!0);I.style+=g(a,c)+l(a);I.geometry.points=[new mxPoint(wa+8.5,xa+40)];B.push(x.addCell(I,null,null,null,null));C=new mxCell("",new mxGeometry(f-45,d-20,20,20),"part=1;");C.vertex=!0;v.insert(C);C.value=k(a.message_0);C.style+=m(a.message_0);C.style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a);W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");W.geometry.relative=!0;W.edge=!0;e.insertEdge(W,!1);C.insertEdge(W,!0);W.style+=g(a,
c)+l(a);W.geometry.points=[new mxPoint(wa+8.5,xa+d-10)];B.push(x.addCell(W,null,null,null,null));Lb=a.HistoryMessages;cc=(d-75)/Lb;h=[];E=[];for(b=0;b<Lb;b++)Mb=cc*(b+1)+30,h[b]=new mxCell("",new mxGeometry(f-20,Mb,20,20),"part=1;"),h[b].vertex=!0,h[b].value=k(a["message_"+(b+1)]),h.style+=m(a["message_"+(b+1)]),v.insert(h[b]),h[b].style+=g(a,c)+q(a,c)+p(a,c)+r(a)+l(a)+t(a),E[b]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),
E[b].geometry.relative=!0,E[b].edge=!0,u.insertEdge(E[b],!1),h[b].insertEdge(E[b],!0),E[b].style+=g(a,c)+l(a),Xa=[],Xa.push(new mxPoint(wa+f-30,xa+Mb+10)),E[b].geometry.points=Xa,B.push(x.addCell(E[b],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+g(a,c)+p(a,c)+r(a)+l(a)+U(a,c,v);t(a);0>a.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+g(a,c)+p(a,c)+r(a)+l(a)+U(a,c,v)+t(a);0<a.DoorAngle&&(v.style+="flipV=1;");
break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+U(a,c,v);e=new mxCell("",new mxGeometry(0,0,f,.25*d),"part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a);for(var h=[],kc=.02*f,dc=(f-2*kc)/a.LightCount,lc=.8*dc,b=0;b<a.LightCount;b++)h[b]=new mxCell("",new mxGeometry(kc+dc*b+(dc-lc)/2,.25*d,lc,.75*d),"part=1;shape=ellipse;"),h[b].vertex=!0,v.insert(h[b]),h[b].style+=g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;"+
U(a,c,v);for(var e=[],mc=f/a.SinkCount,b=0;b<a.SinkCount;b++)e[b]=new mxCell("",new mxGeometry(mc*b,0,mc,d),"part=1;shape=mxgraph.floorplan.sink_2;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var ia=.1*f/a.StallCount,e=new mxCell("",new mxGeometry(0,0,ia,d),"fillColor=#000000;part=1;");e.vertex=!0;v.insert(e);e.style+=g(a,c)+l(a);for(var oa=(f-ia)/a.StallCount,ec=[],Nb=[],Ob=[],Pb=[],w=g(a,
c),w=""==w?"#000000;":w.replace("stokreColor=",""),Xb="part=1;fillColor="+w+g(a,c)+l(a),fc=q(a,c)+g(a,c)+l(a),b=0;b<a.StallCount;b++)ec[b]=new mxCell("",new mxGeometry((b+1)*oa,0,ia,d),Xb),ec[b].vertex=!0,v.insert(ec[b]),Ob[b]=new mxCell("",new mxGeometry(ia+b*oa+.05*(oa-ia),d-.92*(oa-ia),.9*(oa-ia),.92*(oa-ia)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Ob[b].vertex=!0,v.insert(Ob[b]),Ob[b].style+=fc,Nb[b]=new mxCell("",new mxGeometry(ia+b*oa+.2*(oa-ia),0,.6*(oa-ia),.8*(oa-ia)),"shape=mxgraph.floorplan.toilet;part=1;"),
Nb[b].vertex=!0,v.insert(Nb[b]),Nb[b].style+=fc,Pb[b]=new mxCell("",new mxGeometry(ia+b*oa,.42*d,.15*(oa-ia),.12*(oa-ia)),"part=1;"),Pb[b].vertex=!0,v.insert(Pb[b]),Pb[b].style+=fc;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Wb="edgeStyle=none;endArrow=none;part=1;"+g(a,c)+l(a)+p(a,c)+r(a)+t(a),w=g(a,c),w=""==w?"#000000;":w.replace("stokreColor=",""),gc="shape=triangle;part=1;fillColor="+w+g(a,c)+l(a)+p(a,c)+r(a)+t(a),A=new mxCell("",new mxGeometry(0,0,0,0),Wb);A.geometry.relative=
!0;A.edge=!0;V(0,.5*d,.65*f,.5*d,A,B,x,K,v,H);for(var z=d/a.numLines,y=[],ab=[],b=0;b<a.numLines;b++)y[b]=new mxCell("",new mxGeometry(0,0,0,0),Wb),y[b].geometry.relative=!0,y[b].edge=!0,V(.65*f,.5*d,.96*f,(b+.5)*z,y[b],B,x,K,v,H),ab[b]=new mxCell("",new mxGeometry(.95*f,(b+.2)*z,.05*f,.6*z),gc),ab[b].vertex=!0,v.insert(ab[b]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";Wb="edgeStyle=none;endArrow=none;part=1;"+g(a,c)+l(a)+p(a,c)+r(a)+t(a);w=g(a,c);w=""==w?"#000000;":w.replace("stokreColor=",
"");gc="shape=triangle;part=1;fillColor="+w+g(a,c)+l(a)+p(a,c)+r(a)+t(a);z=d/a.numLines;y=[];ab=[];for(b=0;b<a.numLines;b++)y[b]=new mxCell("",new mxGeometry(0,0,0,0),Wb),y[b].geometry.relative=!0,y[b].edge=!0,V(0,(b+.5)*z,.96*f,(b+.5)*z,y[b],B,x,K,v,H),ab[b]=new mxCell("",new mxGeometry(.95*f,(b+.2)*z,.05*f,.6*z),gc),ab[b].vertex=!0,v.insert(ab[b]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a)+m(a);v.value=k(a.Text);switch(a.vesselType){case 1:v.style+=
"shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a)+m(a);v.value=k(a.Text);1==a.peakedRoof&&0==a.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==a.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a)+m(a);v.value=k(a.Text);v.style=0==a.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+U(a,c,v)+m(a);v.value=k(a.Text);L=g(a,c)+q(a,c)+l(a)+p(a,c)+r(a)+t(a);e=new mxCell("",new mxGeometry(0,.2*d,f,.6*d),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=L;L+="endSize=4;endArrow=block;endFill=1;";0==
a.compressorType?(A=new mxCell("",new mxGeometry(0,0,0,0),""),A.geometry.relative=!0,A.edge=!0,A.style+=L,V(0,0,0,.2*d,A,B,x,K,v,H),y=new mxCell("",new mxGeometry(0,0,0,0),""),y.geometry.relative=!0,y.edge=!0,y.style+=L,V(f,.67*d,f,d,y,B,x,K,v,H)):(e.style+="flipH=1;",A=new mxCell("",new mxGeometry(0,0,0,0),""),A.geometry.relative=!0,A.edge=!0,A.style+=L,V(0,0,0,.33*d,A,B,x,K,v,H),y=new mxCell("",new mxGeometry(0,0,0,0),""),y.geometry.relative=!0,y.edge=!0,y.style+=L,V(f,.8*d,f,d,y,B,x,K,v,H));1==
a.centerLineType&&(I=new mxCell("",new mxGeometry(0,0,0,0),""),I.geometry.relative=!0,I.edge=!0,I.style+=L,V(.2*f,.5*d,.8*f,.5*d,I,B,x,K,v,H));break;case "PEMotorDrivenTurbineBlock":L=g(a,c)+q(a,c)+l(a)+p(a,c)+t(a);v.style+="shape=ellipse;"+r(a)+U(a,c,v)+m(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.2*f,.2*d,.6*f,.6*d),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=L;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":L=
p(a,c);v.style+=L+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v);switch(n.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==n.Class||"PESharedIndicator2Block"==n.Class?(e=new mxCell("",new mxGeometry(0,0,f,.5*f),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=L+m(a.TopText),e.value=k(a.TopText),h=new mxCell("",new mxGeometry(0,.5*f,f,.5*f),"part=1;strokeColor=none;fillColor=none;")):(e=new mxCell("",new mxGeometry(0,0,f,.5*d),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=L+m(a.TopText),e.value=k(a.TopText),
h=new mxCell("",new mxGeometry(0,.5*d,f,.5*d),"part=1;strokeColor=none;fillColor=none;"));h.vertex=!0;v.insert(h);h.style+=L;m(a.BotText);h.value=k(a.BotText);switch(a.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var hc=!1;"PEPoweredValveBlock"==
n.Class?1!=a.poweredHandOperated&&(hc=!0):1!=a.handOperated&&(hc=!0);if(hc){var a=Ya(n).Properties,ja=a.BoundingBox,Zb=ja.h;ja.h="PEAngleValveBlock"==n.Class||"PEAngleGlobeValveBlock"==n.Class?.7*ja.h:.6*ja.h;v=new mxCell("",new mxGeometry(Math.round(.6*ja.x+0),Math.round(.6*(ja.y+Zb-ja.h)+0),Math.round(.6*ja.w),Math.round(.6*ja.h)),"");v.vertex=!0;ac(v,n)}if("PEPoweredValveBlock"==n.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+p(a,c)+g(a,c)+q(a,
c)+l(a)+t(a)+r(a)+U(a,c,v),1==a.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",e=new mxCell("",new mxGeometry(.325*f,0,.35*f,.35*d),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),e.vertex=!0,v.insert(e),e.style+=L+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+"fontSize=6;"+J(a.PoweredText)+O(a.PoweredText)+fa(a.PoweredText)+pa(a.PoweredText)+qa(a.PoweredText)+ra(a.PoweredText)+sa(a.PoweredText)+Ua(a.PoweredText),e.value=k(a.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+
p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v)+P(a)+J(a)+O(a)+fa(a);v.value=k(a.Text);switch(n.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==a.handOperated&&(v.style+="actuator=man;")}break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;"+p(a,c)+g(a,c)+
q(a,c)+l(a)+t(a)+r(a)+U(a,c,v);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,d-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,110),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,
1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2WindowBlock":v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v)+P(a.Title)+J(a.Title)+O(a.Title);v.value=
k(a.Title);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,d-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,30),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):
new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2DialogBlock":v.style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v)+m(a.Text);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,f,30),"part=1;resizeHeight=0;");e.vertex=!0;v.insert(e);e.style+=L+m(a.Title);e.value=k(a.Title);h=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
h.geometry.relative=!0;h.geometry.offset=new mxPoint(-25,-10);h.vertex=!0;e.insert(h);1==a.vScroll&&(u=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,d-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,30),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;");
1==a.hScroll&&(C=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),C.geometry.relative=!0,C.geometry.offset=new mxPoint(0,-20),C.vertex=!0,v.insert(C));break;case "UI2AccordionBlock":v.style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v);e=[];z=25;for(b=0;b<=a.Panels-1;b++)e[b]=b<a.Selected-1?new mxCell("",
new mxGeometry(0,b*z,f,z),"part=1;fillColor=#000000;fillOpacity=25;"):b==a.Selected-1?new mxCell("",new mxGeometry(0,b*z,f,z),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,d-(a.Panels-a.Selected)*z+(b-a.Selected)*z,f,z),"part=1;fillColor=#000000;fillOpacity=25;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=m(a["Panel_"+(b+1)]),e[b].value=k(a["Panel_"+(b+1)]),e[b].style.includes(";align=")||(e[b].style+="align=left;spacingLeft=5;");var Q=g(a,c),Q=Q.replace("strokeColor","fillColor2");""==
Q&&(Q="fillColor2=#000000;");1==a.vScroll&&(h=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-a.Selected*z-20-(a.Panels-a.Selected)*z),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,d-a.Selected*z-(a.Panels-a.Selected)*z),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(-20,a.Selected*z),h.vertex=!0,v.insert(h),v.style+=
"spacingRight=20;",h.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20-(a.Panels-a.Selected)*z),u.vertex=!0,v.insert(u),u.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));C=1==a.vScroll?new mxCell("",
new mxGeometry(0,a.Selected*z,f-20,d-a.Selected*z-20-(a.Panels-a.Selected)*z),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,a.Selected*z,f-20,d-a.Selected*z-(a.Panels-a.Selected)*z),"part=1;fillColor=none;strokeColor=none;");C.vertex=!0;v.insert(C);C.style+=m(a.Content_1);C.style.includes(";align=")||(C.style+="align=left;spacingLeft=5;");C.value=k(a.Content_1);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var e=[],h=[],z=25,ma=3,F=(f+
ma)/(a.Tabs+1),na=new mxCell("",new mxGeometry(0,z,f,d-z),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(h[b]=new mxCell("",new mxGeometry(10+b*F,0,F-ma,z),""),h[b].vertex=!0,v.insert(h[b]),h[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Tab_"+(b+1)])):(e[b]=new mxCell("",new mxGeometry(10+b*F,0,F-ma,z),"strokeColor=none;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+q(a,c)+r(a),h[b]=new mxCell("",new mxGeometry(0,
0,F-ma,z),"fillColor=#000000;fillOpacity=25;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=g(a,c)+l(a)+t(a)+m(a["Tab_"+(b+1)])),h[b].value=k(a["Tab_"+(b+1)]),h[b].style.includes(";align=")||(h[b].style+="align=left;spacingLeft=2;");Q=g(a,c);Q=Q.replace("strokeColor","fillColor2");""==Q&&(Q="fillColor2=#000000;");1==a.vScroll&&(h=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-20-z),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
0,20,d-z),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(-20,z),h.vertex=!0,v.insert(h),v.style+="spacingRight=20;",h.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";e=[];h=[];z=25;ma=3;F=(f+ma)/a.Tabs;na=new mxCell("",new mxGeometry(0,z,f,d-z),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(h[b]=new mxCell("",new mxGeometry(b*F,0,F-ma,z),""),h[b].vertex=!0,v.insert(h[b]),
h[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Tab_"+(b+1)])):(e[b]=new mxCell("",new mxGeometry(b*F,0,F-ma,z),"strokeColor=none;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+q(a,c)+r(a),h[b]=new mxCell("",new mxGeometry(0,0,F-ma,z),"fillColor=#000000;fillOpacity=25;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=g(a,c)+l(a)+t(a)+m(a["Tab_"+(b+1)])),h[b].value=k(a["Tab_"+(b+1)]),h[b].style.includes(";align=")||(h[b].style+="align=left;spacingLeft=2;");Q=g(a,c);Q=Q.replace("strokeColor",
"fillColor2");""==Q&&(Q="fillColor2=#000000;");1==a.vScroll&&(h=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-20-z),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,d-z),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(-20,z),h.vertex=!0,v.insert(h),v.style+="spacingRight=20;",h.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));
1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(0,1,f-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,f,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";e=[];h=[];ma=3;z=25+ma;F=80;Sa=
10;na=new mxCell("",new mxGeometry(F,0,f-F,d),"part=1;");na.vertex=!0;v.insert(na);na.style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v);for(b=0;b<=a.Tabs-1;b++)b==a.Selected-1?(h[b]=new mxCell("",new mxGeometry(0,Sa+b*z,F,z-ma),""),h[b].vertex=!0,v.insert(h[b]),h[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Tab_"+(b+1)])):(e[b]=new mxCell("",new mxGeometry(0,Sa+b*z,F,z-ma),"strokeColor=none;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+q(a,c)+r(a),h[b]=new mxCell("",new mxGeometry(0,
0,F,z-ma),"fillColor=#000000;fillOpacity=25;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=g(a,c)+l(a)+t(a)+m(a["Tab_"+(b+1)])),h[b].value=k(a["Tab_"+(b+1)]),h[b].style.includes(";align=")||(h[b].style+="align=left;spacingLeft=2;");Q=g(a,c);Q=Q.replace("strokeColor","fillColor2");""==Q&&(Q="fillColor2=#000000;");1==a.vScroll&&(h=1==a.hScroll?new mxCell("",new mxGeometry(1,0,20,d-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,
0,20,d),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),h.geometry.relative=!0,h.geometry.offset=new mxPoint(-20,0),h.vertex=!0,v.insert(h),v.style+="spacingRight=20;",h.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));1==a.hScroll&&(u=1==a.vScroll?new mxCell("",new mxGeometry(F,1,f-20-F,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(F,1,f-F,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
u.geometry.relative=!0,u.geometry.offset=new mxPoint(0,-20),u.vertex=!0,v.insert(u),u.style+=Q+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";z=d/a.Options;e=[];h=[];for(b=0;b<a.Options;b++)e[b]=new mxCell("",new mxGeometry(0,b*z+.5*z-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Option_"+
(b+1)]),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(w=g(a,c),w=w.replace("strokeColor","fillColor"),""==w&&(w="fillColor=#000000;"),h[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=w+p(a,c)+g(a,c)+l(a)+t(a)),e[b].value=k(a["Option_"+(b+1)]);break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";F=f/a.Options;e=[];h=[];for(b=0;b<a.Options;b++)e[b]=new mxCell("",new mxGeometry(b*F,.5*
d-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Option_"+(b+1)]),null!=a.Selected[b+1]&&1==a.Selected[b+1]&&(w=g(a,c),w=w.replace("strokeColor","fillColor"),""==w&&(w="fillColor=#000000;"),h[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=w+p(a,c)+g(a,c)+l(a)+t(a)),
e[b].value=k(a["Option_"+(b+1)]);break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";z=d/a.Options;e=[];h=[];for(b=0;b<a.Options;b++)e[b]=new mxCell("",new mxGeometry(0,b*z+.5*z-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Option_"+(b+1)]),null!=a.Selected&&a.Selected==b+1&&(w=g(a,c),w=w.replace("strokeColor","fillColor"),
""==w&&(w="fillColor=#000000;"),h[b]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"shape=ellipse;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=w+p(a,c)+g(a,c)+l(a)+t(a)),e[b].value=k(a["Option_"+(b+1)]);break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";F=f/a.Options;e=[];h=[];for(b=0;b<a.Options;b++)e[b]=new mxCell("",new mxGeometry(b*F,.5*d-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Option_"+(b+1)]),null!=a.Selected&&a.Selected==b+1&&(w=g(a,c),w=w.replace("strokeColor","fillColor"),""==w&&(w="fillColor=#000000;"),h[b]=new mxCell("",new mxGeometry(2,2,6,6),"shape=ellipse;part=1;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=w+p(a,c)+g(a,c)+l(a)+t(a)),e[b].value=k(a["Option_"+(b+1)]);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;"+
p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a);"UI2VSliderBlock"==n.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*a.ScrollVal+";";break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.6*f,d),"part=1;");e.vertex=!0;v.insert(e);e.style+=p(a,c)+g(a,c)+l(a)+t(a)+r(a)+m(a.Date);e.value=k(a.Date);w=g(a,c);w=w.replace("strokeColor","fillColor");""==w&&(w="fillColor=#000000;");h=new mxCell("",new mxGeometry(.75*f,0,.25*f,d),"part=1;shape=mxgraph.gmdl.calendar;");
h.vertex=!0;v.insert(h);h.style+=w+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a);break;case "UI2SearchBlock":v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+p(a,c)+g(a,c)+l(a)+t(a)+r(a)+P(a.Search)+J(a.Search)+O(a.Search);v.value=k(a.Search);break;case "UI2NumericStepperBlock":w=g(a,c);w=w.replace("strokeColor","fillColor");""==w&&(w="fillColor=#000000;");v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
w+p(a,c)+g(a,c)+l(a)+t(a)+r(a)+P(a.Number)+J(a.Number)+O(a.Number);v.value=k(a.Number);break;case "UI2ButtonBarBlock":v.style+=p(a,c)+g(a,c)+l(a)+t(a)+r(a);e=[];h=[];F=f/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(h[b]=new mxCell("",new mxGeometry(b*F,0,F,d),""),h[b].vertex=!0,v.insert(h[b]),h[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Button_"+(b+1)])):(e[b]=new mxCell("",new mxGeometry(b*F,0,F,d),"strokeColor=none;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+q(a,c)+r(a),
h[b]=new mxCell("",new mxGeometry(0,0,F,d),"fillColor=#000000;fillOpacity=25;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=g(a,c)+l(a)+t(a)+m(a["Button_"+(b+1)])),h[b].value=k(a["Button_"+(b+1)]);break;case "UI2VerticalButtonBarBlock":v.style+=p(a,c)+g(a,c)+l(a)+t(a)+r(a);e=[];h=[];z=d/a.Buttons;for(b=0;b<=a.Buttons-1;b++)b==a.Selected-1?(h[b]=new mxCell("",new mxGeometry(0,b*z,f,z),""),h[b].vertex=!0,v.insert(h[b]),h[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+m(a["Button_"+(b+1)])):(e[b]=new mxCell("",
new mxGeometry(0,b*z,f,z),"strokeColor=none;"),e[b].vertex=!0,v.insert(e[b]),e[b].style+=p(a,c)+q(a,c)+r(a),h[b]=new mxCell("",new mxGeometry(0,0,f,z),"fillColor=#000000;fillOpacity=25;"),h[b].vertex=!0,e[b].insert(h[b]),h[b].style+=g(a,c)+l(a)+t(a)+m(a["Button_"+(b+1)])),h[b].value=k(a["Button_"+(b+1)]);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";p(a,c)+g(a,c)+l(a)+t(a)+r(a);e=[];h=[];F=f/a.Links;for(b=0;b<a.Links;b++)0!=b?(h[b]=new mxCell("",new mxGeometry(b*F,0,F,d),
"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),h[b].style+=p(a,c)+r(a)+g(a,c)+l(a)+t(a)):h[b]=new mxCell("",new mxGeometry(b*F,0,F,d),"fillColor=none;strokeColor=none;"),h[b].vertex=!0,v.insert(h[b]),h[b].style+=m(a["Link_"+(b+1)]),h[b].value=k(a["Link_"+(b+1)]);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";p(a,c)+g(a,c)+l(a)+t(a)+r(a);e=[];h=[];F=f/a.Links;for(b=0;b<a.Links;b++)e[b]=new mxCell("",new mxGeometry(b*F,0,F,d),"fillColor=none;strokeColor=none;"),
e[b].vertex=!0,v.insert(e[b]),e[b].style+=m(a["Link_"+(b+1)]),e[b].value=k(a["Link_"+(b+1)]);for(b=1;b<a.Links;b++)h[b]=new mxCell("",new mxGeometry(b/a.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),h[b].geometry.relative=!0,h[b].geometry.offset=new mxPoint(-3,-5),h[b].vertex=!0,v.insert(h[b]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;"+p(a,c)+q(a,c)+r(a);e=[];F=f/(a.Buttons+1);for(b=0;b<=a.Buttons-1;b++)e[b]=b!=a.Selected-1?new mxCell("",new mxGeometry(0,0,F,d),"strokeColor=none;fillColor=none;resizeHeight=1;"):
new mxCell("",new mxGeometry(0,0,F,d),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),e[b].geometry.relative=!0,e[b].geometry.offset=new mxPoint(b*F,0),e[b].vertex=!0,v.insert(e[b]),e[b].style+=m(a["MenuItem_"+(b+1)]),e[b].value=k(a["MenuItem_"+(b+1)]);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+m(a.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+m(a.Text_prev);
v.value=k(a.Text_prev)+" ";for(b=0;b<a.Links;b++)v.value+=k(a["Link_"+(b+1)])+" ";v.value+=k(a.Text_next);break;case "UI2ContextMenuBlock":v.style+=p(a,c)+q(a,c)+g(a,c)+l(a)+t(a)+r(a);for(var M=[],Qa=[],pb=[],z=d/a.Lines,L=null,b=0;b<a.Lines;b++)null!=a["Item_"+(b+1)]&&(null==L&&(L=""+P(a["Item_"+(b+1)])+J(a["Item_"+(b+1)])+O(a["Item_"+(b+1)])),M[b]=new mxCell("",new mxGeometry(0,b*d/a.Lines,f,z),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),M[b].vertex=!0,v.insert(M[b]),M[b].style+=
L,M[b].value=k(a["Item_"+(b+1)])),null!=a.Icons[b+1]&&null!=M[b]&&("dot"==a.Icons[b+1]?(Qa[b]=new mxCell("",new mxGeometry(0,.5,8,8),"shape=ellipse;strokeColor=none;"),Qa[b].geometry.offset=new mxPoint(6,-4)):"check"==a.Icons[b+1]&&(Qa[b]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),Qa[b].geometry.offset=new mxPoint(6.5,-4)),null!=Qa[b]&&(Qa[b].geometry.relative=!0,Qa[b].vertex=!0,M[b].insert(Qa[b]),w=g(a,c),w=w.replace("strokeColor","fillColor"),
""==w&&(w="fillColor=#000000;"),Qa[b].style+=w)),null!=a["Shortcut_"+(b+1)]&&(null==L&&(L=""+P(a["Shortcut_"+(b+1)])+J(a["Shortcut_"+(b+1)])+O(a["Shortcut_"+(b+1)])),pb[b]=new mxCell("",new mxGeometry(.6*f,b*d/a.Lines,.4*f,z),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),pb[b].vertex=!0,v.insert(pb[b]),pb[b].style+=L,pb[b].value=k(a["Shortcut_"+(b+1)])),null!=a.Dividers[b+1]&&(M[b]=new mxCell("",new mxGeometry(.05*f,b*d/a.Lines,.9*f,z),"shape=line;strokeWidth=0.25;"),M[b].vertex=
!0,v.insert(M[b]),M[b].style+=g(a,c));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*a.ScrollVal+";";break;case "UI2TooltipSquareBlock":v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+a.RoundCorners+";"+p(a,c)+q(a,c)+g(a,c)+l(a)+t(a)+r(a)+m(a.Tip);v.value=k(a.Tip);break;case "UI2CalloutBlock":v.style+="shape=ellipse;"+p(a,c)+q(a,c)+g(a,c)+l(a)+t(a)+r(a)+m(a.Txt);v.value=k(a.Txt);
break;case "UI2AlertBlock":v.style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+r(a)+U(a,c,v)+m(a.Txt);v.value=k(a.Txt);e=new mxCell("",new mxGeometry(0,0,f,30),"part=1;resizeHeight=0;");e.vertex=!0;v.insert(e);e.style+=L+p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+m(a.Title);e.value=k(a.Title);h=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");h.geometry.relative=!0;h.geometry.offset=new mxPoint(-25,-10);h.vertex=!0;e.insert(h);for(var $b=45*a.Buttons+
(10*a.Buttons-1),u=[],b=0;b<a.Buttons;b++)u[b]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),u[b].geometry.relative=!0,u[b].geometry.offset=new mxPoint(.5*-$b+55*b,-40),u[b].vertex=!0,v.insert(u[b]),u[b].style+=p(a,c)+g(a,c)+q(a,c)+l(a)+t(a)+m(a["Button_"+(b+1)]),u[b].value=k(a["Button_"+(b+1)])}return v}var Zb=["GSDFDProcessBlock","GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],$b=["ProcessBlock","UMLActivationBlock"],Xb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "),
pc="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),bb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),
nc=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],oc=["fpDoor"],qb={None:"none",Arrow:"block;endFill=1","Hollow Arrow":"block;endFill=0","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10","CFN ERD Many Arrow":"ERmany;startSize=10","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10","CFN ERD One Arrow":"ERone;startSize=16",
Generalization:"block;endFill=0;startSize=12","Big Open Arrow":"open;startSize=10",Asynch1:"openAsync;flipH=1;startSize=10",Asynch2:"openAsync;startSize=10",Aggregation:"diamond;endFill=0;startSize=16",Composition:"diamond;endFill=1;startSize=16",BlockEnd:"none;endFill=1;startSize=16"},cb={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",
HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon",DataBlock:"shape=parallelogram",DataBlockNew:"shape=parallelogram",DatabaseBlock:"shape=cylinder",DirectAccessStorageBlock:"shape=mxgraph.flowchart.direct_data",
InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",
AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",
@ -401,22 +414,21 @@ iOS7IconPrivacy:"shape=mxgraph.ios7.icons.privacy",iOS7IconLink:"shape=mxgraph.i
UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"",UI2ElementBlock:"",UI2AccordionBlock:"mxCompositeShape",UI2TabBarContainerBlock:"mxCompositeShape",UI2TabBar2ContainerBlock:"mxCompositeShape",UI2VTabBarContainerBlock:"mxCompositeShape",UI2VScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar;direction=north",UI2HScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar",UI2VerticalSplitterBlock:"shape=mxgraph.mockup.forms.splitter;direction=north",UI2HorizontalSplitterBlock:"shape=mxgraph.mockup.forms.splitter",
UI2ImageBlock:"shape=mxgraph.mockup.graphics.simpleIcon",UI2VideoBlock:"shape=mxgraph.mockup.containers.videoPlayer;barHeight=30",UI2AudioBlock:"shape=mxgraph.mockup.misc.playbackControls",UI2MapBlock:"shape=mxgraph.mockup.misc.map",UI2BarChartBlock:"shape=mxgraph.mockup.graphics.barChart;strokeColor=none;strokeColor2=none",UI2ColumnChartBlock:"shape=mxgraph.mockup.graphics.columnChart;strokeColor=none;strokeColor2=none",UI2LineChartBlock:"shape=mxgraph.mockup.graphics.lineChart;strokeColor=none",
UI2PieChartBlock:"shape=mxgraph.mockup.graphics.pieChart;parts=10,20,35",UI2WebcamBlock:"shape=mxgraph.mockup.containers.userMale",UI2CaptchaBlock:"shape=mxgraph.mockup.text.captcha;mainText=",UI2ButtonBlock:"rounded=1;arcSize=25;",UI2CheckBoxBlock:"mxCompositeShape",UI2HorizontalCheckBoxBlock:"mxCompositeShape",UI2RadioBlock:"mxCompositeShape",UI2HorizontalRadioBlock:"mxCompositeShape",UI2ColorPickerBlock:"shape=mxgraph.mockup.forms.colorPicker;chosenColor=#aaddff",UI2TextInputBlock:"",UI2SelectBlock:"shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666",
UI2VSliderBlock:"mxCompositeShape",UI2HSliderBlock:"mxCompositeShape",UI2SearchBlock:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",UI2NumericStepperBlock:"shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;fillColor=#000000;mainText=",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",
UI2AtoZBlock:"shape=mxgraph.mockup.text.alphanumeric;linkText=;fontStyle=4",UI2PaginationBlock:"shape=mxgraph.mockup.navigation.pagination;linkText=;fontStyle=4",UI2ContextMenuBlock:"mxCompositeShape",UI2TreePaneBlock:"mxCompositeShape",UI2PlaybackControlsBlock:"shape=mxgraph.mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none",Image_ui_formatting_toolbar:"shape=mxgraph.mockup.menus_and_buttons.font_style_selector_2",
UI2ProgressBarBlock:"shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos=25",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"shape=mxgraph.mockup.markup.curlyBrace;direction=north",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2CalloutBlock:"shape=ellipse",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc",
Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_alert_dialog:"mxCompositeShape",Image_ipad_dialog:"mxCompositeShape",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",Image_ipad_table:"mxCompositeShape",Image_ipad_vtab:"mxCompositeShape",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa",
Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",
Image_ipad_large_tabbed_button:"mxCompositeShape",Image_ipad_sort_button:"mxCompositeShape",Image_ipad_tab_bar:"mxCompositeShape",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",
Image_ipad_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_arrow:"shape=mxgraph.ios7.misc.more",Image_ipad_checkmark:"shape=mxgraph.ios7.misc.check",Image_ipad_check_off:"shape=ellipse",Image_ipad_location_dot:"shape=ellipse",Image_ipad_mark_as_read:"shape=ellipse",Image_ipad_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_ipad_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",
Image_ipad_radio_off:"shape=ellipse",Image_ipad_checkbox_off:"absoluteArcSize=1;arcSize=6;rounded=1",Image_ipad_indicator:"absoluteArcSize=1;arcSize=6;rounded=1;fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_iphone_4:"shape=mxgraph.ios.iPhone;bg=bgGreen",Image_iphone_bg_black:"",Image_iphone_bg_gray:"",Image_iphone_bg_stripe_drk:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_stripe_lt:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",
Image_iphone_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_table:"mxCompositeShape",Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCompositeShape",
Image_iphone_list:"mxCompositeShape",Image_iphone_gray_grad_list:"",Image_iphone_dialog:"mxCompositeShape",Image_iphone_scroll_pane:"mxCompositeShape",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",Image_iphone_button_lg_red:"",Image_iphone_button_lg_yellow:"",Image_iphone_button_xl_green:"",
Image_iphone_back_button:"shape=mxgraph.ios.iButtonBack;strokeColor=#444444;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_iphone_sort_handle:"shape=mxgraph.ios7.icons.options",Image_iphone_slider:"shape=mxgraph.ios.iSlider;barPos=60",Image_iphone_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_email_name:"",
Image_iphone_switch_off:"shape=mxgraph.android.switch_off;fillColor=#666666",Image_iphone_keyboard_button_blue:"",Image_iphone_keyboard_letters:"shape=mxgraph.ios.iKeybLett",Image_iphone_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_iphone_large_tabbed_button:"mxCompositeShape",Image_iphone_sort_button:"mxCompositeShape",Image_iphone_tab_bar:"mxCompositeShape",Image_iphone_picker_multi:"mxCompositeShape",Image_iphone_picker_web:"mxCompositeShape",Image_iphone_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",
Image_iphone_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_iphone_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",Image_iphone_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_iphone_arrow:"shape=mxgraph.ios7.misc.more",Image_iphone_checkmark:"shape=mxgraph.ios7.misc.check",Image_iphone_check_off:"shape=ellipse",Image_iphone_location_dot:"shape=ellipse",
Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},Nb=function(g,l,m){m.includes(g)||m.push(g);if(g in l){var b=l[g];
b.id=g;if(null!=b.Members)for(var a in b.Members)m=Nb(a,l,m)}return m};EditorUi.prototype.pasteLucidChart=function(g,l,m,b){var a=this.editor.graph;a.getModel().beginUpdate();try{var h=function(b,g){var d=null!=g.Endpoint1.Block?c[g.Endpoint1.Block]:null,l=null!=g.Endpoint2.Block?c[g.Endpoint2.Block]:null,h;h=new mxCell("",new mxGeometry(0,0,100,100),"html=1;");h.geometry.relative=!0;h.edge=!0;Xb(h,b);var m=Xa(b).Properties,n=null!=m?m.TextAreas:b.TextAreas;if(null!=n){for(var p=0;null!=n["t"+p];){var q=
n["t"+p];h=Ya(q,h);p++}for(p=1;null!=n["m"+p];)q=n["m"+p],h=Ya(q,h,b),p++;null!=n.Text&&(h=Ya(n,h,b));n=null!=m?m.TextAreas:b.TextAreas;null!=n.Message&&(h=Ya(n.Message,h,b))}null==d&&null!=g.Endpoint1&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*g.Endpoint1.x),Math.round(.6*g.Endpoint1.y)),!0);null==l&&null!=g.Endpoint2&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*g.Endpoint2.x),Math.round(.6*g.Endpoint2.y)),!1);f.push(a.addCell(h,null,null,d,l))},f=[],c={},n=[],p=[],q=0;if(null!=
g.Groups)for(var t in g.Groups){var r=g.Groups[t];r.id=t;if(1==r.Hidden&&null!=r.Members){p.includes(t)||p.push(t);for(var w in r.Members)p=Nb(w,g.Groups,p)}}if(null!=g.Blocks)for(t in g.Blocks)r=g.Blocks[t],r.id=t,p.includes(t)||(w=!1,null!=ab[r.Class]&&"mxCompositeShape"==ab[r.Class]&&(c[r.id]=pc(r,f,a),n.push(r),w=!0),w||(c[r.id]=pb(r),n.push(r)));else for(q=0;q<g.Objects.length;q++)r=g.Objects[q],r.IsBlock&&null!=r.Action&&null!=r.Action.Properties&&(c[r.id]=pb(r)),n.push(r);n.sort(function(a,
b){a=Xa(a);b=Xa(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(q=0;q<n.length;q++){var r=n[q],B=c[r.id];null!=B?f.push(a.addCell(B)):r.IsLine&&null!=r.Action&&null!=r.Action.Properties&&h(r,r.Action.Properties)}if(null!=g.Lines)for(t in g.Lines)p.includes(t)||(r=g.Lines[t],h(r,r));if(b&&null!=l&&null!=m){a.isGridEnabled()&&(l=a.snap(l),m=a.snap(m));var K=a.getBoundingBoxFromGeometry(f,!0);null!=K&&a.moveCells(f,l-K.x,m-K.y)}a.setSelectionCells(f)}finally{a.getModel().endUpdate()}a.isSelectionEmpty()||
(a.scrollCellToVisible(a.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(a.view.getState(a.getSelectionCell())))}})();
UI2VSliderBlock:"mxCompositeShape",UI2HSliderBlock:"mxCompositeShape",UI2DatePickerBlock:"mxCompositeShape",UI2SearchBlock:"mxCompositeShape",UI2NumericStepperBlock:"mxCompositeShape",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",UI2AtoZBlock:"mxCompositeShape",UI2PaginationBlock:"mxCompositeShape",UI2ContextMenuBlock:"mxCompositeShape",
UI2TreePaneBlock:"mxCompositeShape",UI2PlaybackControlsBlock:"shape=mxgraph.mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none",Image_ui_formatting_toolbar:"shape=mxgraph.mockup.menus_and_buttons.font_style_selector_2",UI2ProgressBarBlock:"mxCompositeShape",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"mxCompositeShape",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",
UI2TooltipSquareBlock:"mxCompositeShape",UI2CalloutBlock:"mxCompositeShape",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc",Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_alert_dialog:"mxCompositeShape",Image_ipad_dialog:"mxCompositeShape",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",
Image_ipad_table:"mxCompositeShape",Image_ipad_vtab:"mxCompositeShape",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa",Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",
Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_ipad_large_tabbed_button:"mxCompositeShape",Image_ipad_sort_button:"mxCompositeShape",Image_ipad_tab_bar:"mxCompositeShape",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",
Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",Image_ipad_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_arrow:"shape=mxgraph.ios7.misc.more",Image_ipad_checkmark:"shape=mxgraph.ios7.misc.check",Image_ipad_check_off:"shape=ellipse",Image_ipad_location_dot:"shape=ellipse",
Image_ipad_mark_as_read:"shape=ellipse",Image_ipad_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_ipad_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_ipad_radio_off:"shape=ellipse",Image_ipad_checkbox_off:"absoluteArcSize=1;arcSize=6;rounded=1",Image_ipad_indicator:"absoluteArcSize=1;arcSize=6;rounded=1;fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_iphone_4:"shape=mxgraph.ios.iPhone;bg=bgGreen",
Image_iphone_bg_black:"",Image_iphone_bg_gray:"",Image_iphone_bg_stripe_drk:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_stripe_lt:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",
Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_table:"mxCompositeShape",Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCompositeShape",Image_iphone_list:"mxCompositeShape",Image_iphone_gray_grad_list:"",Image_iphone_dialog:"mxCompositeShape",Image_iphone_scroll_pane:"mxCompositeShape",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",
Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",Image_iphone_button_lg_red:"",Image_iphone_button_lg_yellow:"",Image_iphone_button_xl_green:"",Image_iphone_back_button:"shape=mxgraph.ios.iButtonBack;strokeColor=#444444;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",
Image_iphone_sort_handle:"shape=mxgraph.ios7.icons.options",Image_iphone_slider:"shape=mxgraph.ios.iSlider;barPos=60",Image_iphone_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_email_name:"",Image_iphone_switch_off:"shape=mxgraph.android.switch_off;fillColor=#666666",Image_iphone_keyboard_button_blue:"",Image_iphone_keyboard_letters:"shape=mxgraph.ios.iKeybLett",Image_iphone_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_iphone_large_tabbed_button:"mxCompositeShape",
Image_iphone_sort_button:"mxCompositeShape",Image_iphone_tab_bar:"mxCompositeShape",Image_iphone_picker_multi:"mxCompositeShape",Image_iphone_picker_web:"mxCompositeShape",Image_iphone_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_iphone_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_iphone_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",
Image_iphone_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_iphone_arrow:"shape=mxgraph.ios7.misc.more",Image_iphone_checkmark:"shape=mxgraph.ios7.misc.check",Image_iphone_check_off:"shape=ellipse",Image_iphone_location_dot:"shape=ellipse",Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",
Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},Qb=function(g,k,l){l.includes(g)||l.push(g);if(g in k){var c=k[g];c.id=g;if(null!=c.Members)for(var a in c.Members)l=Qb(a,k,l)}return l};EditorUi.prototype.pasteLucidChart=function(g,k,l,c){var a=this.editor.graph;a.getModel().beginUpdate();try{var m=function(b,c){var g=null!=c.Endpoint1.Block?d[c.Endpoint1.Block]:null,
k=null!=c.Endpoint2.Block?d[c.Endpoint2.Block]:null,l;l=new mxCell("",new mxGeometry(0,0,100,100),"html=1;");l.geometry.relative=!0;l.edge=!0;ac(l,b);var n=Ya(b).Properties,m=null!=n?n.TextAreas:b.TextAreas;if(null!=m){for(var p=0;null!=m["t"+p];){var q=m["t"+p];l=Za(q,l);p++}for(p=1;null!=m["m"+p];)q=m["m"+p],l=Za(q,l,b),p++;null!=m.Text&&(l=Za(m,l,b));m=null!=n?n.TextAreas:b.TextAreas;null!=m.Message&&(l=Za(m.Message,l,b))}null==g&&null!=c.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.6*
c.Endpoint1.x),Math.round(.6*c.Endpoint1.y)),!0);null==k&&null!=c.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.6*c.Endpoint2.x),Math.round(.6*c.Endpoint2.y)),!1);f.push(a.addCell(l,null,null,g,k))},f=[],d={},n=[],p=[],q=0;if(null!=g.Groups)for(var t in g.Groups){var r=g.Groups[t];r.id=t;if(1==r.Hidden&&null!=r.Members){p.includes(t)||p.push(t);for(var x in r.Members)p=Qb(x,g.Groups,p)}}if(null!=g.Blocks)for(t in g.Blocks)r=g.Blocks[t],r.id=t,p.includes(t)||(x=!1,null!=cb[r.Class]&&
"mxCompositeShape"==cb[r.Class]&&(d[r.id]=qc(r,f,a),n.push(r),x=!0),x||(d[r.id]=tb(r),n.push(r)));else for(q=0;q<g.Objects.length;q++)r=g.Objects[q],r.IsBlock&&null!=r.Action&&null!=r.Action.Properties&&(d[r.id]=tb(r)),n.push(r);n.sort(function(a,c){a=Ya(a);c=Ya(c);return null!=a.Properties&&null!=c.Properties?a.Properties.ZOrder-c.Properties.ZOrder:0});for(q=0;q<n.length;q++){var r=n[q],B=d[r.id];null!=B?f.push(a.addCell(B)):r.IsLine&&null!=r.Action&&null!=r.Action.Properties&&m(r,r.Action.Properties)}if(null!=
g.Lines)for(t in g.Lines)p.includes(t)||(r=g.Lines[t],m(r,r));if(c&&null!=k&&null!=l){a.isGridEnabled()&&(k=a.snap(k),l=a.snap(l));var J=a.getBoundingBoxFromGeometry(f,!0);null!=J&&a.moveCells(f,k-J.x,l-J.y)}a.setSelectionCells(f)}finally{a.getModel().endUpdate()}a.isSelectionEmpty()||(a.scrollCellToVisible(a.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(a.view.getState(a.getSelectionCell())))}})();

View file

@ -261,12 +261,7 @@ Editor.prototype.appName = document.title;
/**
*
*/
Editor.prototype.editBlankUrl = window.location.protocol + '//' + window.location.host + '/?client=1';
/**
*
*/
Editor.prototype.editBlankFallbackUrl = window.location.protocol + '//' + window.location.host + '/?create=drawdata&splash=0';
Editor.prototype.editBlankUrl = window.location.protocol + '//' + window.location.host + '/';
/**
* Initializes the environment.
@ -285,9 +280,9 @@ Editor.prototype.setAutosave = function(value)
/**
*
*/
Editor.prototype.getEditBlankUrl = function(params, fallback)
Editor.prototype.getEditBlankUrl = function(params)
{
return ((fallback) ? this.editBlankFallbackUrl : this.editBlankUrl) + params;
return this.editBlankUrl + params;
}
/**
@ -295,29 +290,35 @@ Editor.prototype.getEditBlankUrl = function(params, fallback)
*/
Editor.prototype.editAsNew = function(xml, title)
{
var p = (title != null) ? '&title=' + encodeURIComponent(title) : '';
var p = (title != null) ? '?title=' + encodeURIComponent(title) : '';
if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
if (this.editorWindow != null && !this.editorWindow.closed)
{
var wnd = null;
var receive = mxUtils.bind(this, function(evt)
{
if (evt.data == 'ready' && evt.source == wnd)
{
wnd.postMessage(xml, '*');
mxEvent.removeListener(window, 'message', receive);
}
});
mxEvent.addListener(window, 'message', receive);
wnd = window.open(this.getEditBlankUrl(p, false));
this.editorWindow.focus();
}
else
{
// Data is pulled from global variable after tab loads
window.drawdata = xml;
window.open(this.getEditBlankUrl(p, true));
if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
{
if (this.editorWindow == null)
{
mxEvent.addListener(window, 'message', mxUtils.bind(this, function(evt)
{
if (evt.data == 'ready' && evt.source == this.editorWindow)
{
this.editorWindow.postMessage(xml, '*');
}
}));
}
this.editorWindow = window.open(this.getEditBlankUrl(p +
((p.length > 0) ? '&' : '?') + 'client=1'));
}
else
{
this.editorWindow = window.open(this.getEditBlankUrl(p) +
'#R' + encodeURIComponent(xml));
}
}
};

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+y.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.8",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.9",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||

1468
war/js/viewer.min.js vendored

File diff suppressed because one or more lines are too long